{
  "components": {
    "schemas": {
      "ErrorResponse": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "maxLength": 80,
                "minLength": 3,
                "type": "string"
              },
              "message": {
                "maxLength": 500,
                "minLength": 1,
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "PublicArtifactSummary": {
        "additionalProperties": false,
        "allOf": [
          {
            "else": {
              "properties": {
                "projection_version": {
                  "const": "1.0.0"
                },
                "summary_schema_version": {
                  "const": "1.0.0"
                }
              }
            },
            "if": {
              "properties": {
                "incidents": {
                  "contains": {
                    "properties": {
                      "source_reports": {
                        "contains": {
                          "properties": {
                            "source_id": {
                              "enum": [
                                "gbsec:source:go-vulnerability-database",
                                "gbsec:source:openssf-malicious-packages",
                                "gbsec:source:rustsec-advisory-database"
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            },
            "then": {
              "properties": {
                "projection_version": {
                  "const": "1.1.0"
                },
                "summary_schema_version": {
                  "const": "1.1.0"
                }
              }
            }
          }
        ],
        "properties": {
          "action_authorized": {
            "const": false
          },
          "artifact": {
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "npm"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "registry.npmjs.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "pypi"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "pypi.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "not": {
                        "anyOf": [
                          {
                            "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                          }
                        ]
                      },
                      "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "github-actions"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "github.com"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^(?:v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?|[0-9a-fA-F]{40})$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "go"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "proxy.golang.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "rust"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "crates.io"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "composer"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "repo.packagist.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "not": {
                        "anyOf": [
                          {
                            "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                          },
                          {
                            "pattern": "^(?:[Dd][Ee][Vv]-|[^+]*-[Dd][Ee][Vv](?:\\+|$)|[^+]*(?:^|\\.)[Xx](?:\\.|\\+|$))"
                          }
                        ]
                      },
                      "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "erlang"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "hex.pm"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "git"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "github.com"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64}|v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?|refs/tags/(?!(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$)(?!.*\\.lock(?:/|$))(?!\\.)[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+(?:\\.[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+)*(?:/(?!\\.)[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+(?:\\.[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+)*)*)$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "maven"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "repo1.maven.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "not": {
                        "anyOf": [
                          {
                            "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                          },
                          {
                            "pattern": "[Ss][Nn][Aa][Pp][Ss][Hh][Oo][Tt]$"
                          }
                        ]
                      },
                      "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "nuget"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "api.nuget.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "not": {
                        "anyOf": [
                          {
                            "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                          }
                        ]
                      },
                      "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "open-vsx"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "open-vsx.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "pub"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "pub.dev"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "rubygems"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "rubygems.org"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "not": {
                        "anyOf": [
                          {
                            "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                          }
                        ]
                      },
                      "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "swift"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "swiftpackageindex.com"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "vscode"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "type": "null"
                    },
                    "registry_host": {
                      "enum": [
                        "marketplace.visualstudio.com"
                      ]
                    },
                    "version": {
                      "maxLength": 200,
                      "minLength": 1,
                      "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "version",
                    "registry_host"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "oci"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "maxLength": 71,
                      "minLength": 71,
                      "pattern": "^sha256:[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "registry_host": {
                      "enum": [
                        "docker.io",
                        "ghcr.io",
                        "public.ecr.aws",
                        "quay.io"
                      ]
                    },
                    "version": {
                      "anyOf": [
                        {
                          "maxLength": 200,
                          "minLength": 1,
                          "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "registry_host",
                    "digest"
                  ]
                }
              },
              {
                "if": {
                  "properties": {
                    "ecosystem": {
                      "const": "docker"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "digest": {
                      "maxLength": 71,
                      "minLength": 71,
                      "pattern": "^sha256:[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "registry_host": {
                      "enum": [
                        "docker.io",
                        "ghcr.io",
                        "public.ecr.aws",
                        "quay.io"
                      ]
                    },
                    "version": {
                      "anyOf": [
                        {
                          "maxLength": 200,
                          "minLength": 1,
                          "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "registry_host",
                    "digest"
                  ]
                }
              }
            ],
            "properties": {
              "digest": {
                "maxLength": 71,
                "minLength": 71,
                "pattern": "^sha256:[a-f0-9]{64}$",
                "type": [
                  "string",
                  "null"
                ]
              },
              "ecosystem": {
                "enum": [
                  "npm",
                  "pypi",
                  "github-actions",
                  "oci",
                  "docker",
                  "go",
                  "rust",
                  "composer",
                  "erlang",
                  "git",
                  "maven",
                  "nuget",
                  "open-vsx",
                  "pub",
                  "rubygems",
                  "swift",
                  "vscode"
                ]
              },
              "name": {
                "maxLength": 300,
                "minLength": 1,
                "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
                "type": "string"
              },
              "public_visibility": {
                "const": "asserted_public"
              },
              "registry_host": {
                "enum": [
                  "api.nuget.org",
                  "crates.io",
                  "docker.io",
                  "ghcr.io",
                  "github.com",
                  "hex.pm",
                  "marketplace.visualstudio.com",
                  "open-vsx.org",
                  "proxy.golang.org",
                  "pub.dev",
                  "public.ecr.aws",
                  "pypi.org",
                  "quay.io",
                  "registry.npmjs.org",
                  "repo.packagist.org",
                  "repo1.maven.org",
                  "rubygems.org",
                  "swiftpackageindex.com"
                ]
              },
              "version": {
                "maxLength": 200,
                "minLength": 1,
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "ecosystem",
              "name",
              "version",
              "digest",
              "registry_host",
              "public_visibility"
            ],
            "type": "object"
          },
          "assessment": {
            "additionalProperties": false,
            "properties": {
              "created_at": {
                "format": "date-time",
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              },
              "revision": {
                "maximum": 2147483647,
                "minimum": 1,
                "type": "integer"
              },
              "schema_version": {
                "enum": [
                  "2.4.0",
                  "2.5.0"
                ]
              },
              "updated_at": {
                "format": "date-time",
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "schema_version",
              "revision",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          },
          "assessment_freshness": {
            "enum": [
              "fresh",
              "stale"
            ]
          },
          "check_state": {
            "enum": [
              "completed",
              "partial"
            ]
          },
          "client_signature_verified": {
            "const": false
          },
          "coverage": {
            "additionalProperties": false,
            "properties": {
              "as_of": {
                "format": "date-time",
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              },
              "ecosystem": {
                "enum": [
                  "npm",
                  "pypi",
                  "github-actions",
                  "oci",
                  "docker",
                  "go",
                  "rust",
                  "composer",
                  "erlang",
                  "git",
                  "maven",
                  "nuget",
                  "open-vsx",
                  "pub",
                  "rubygems",
                  "swift",
                  "vscode",
                  "unknown"
                ]
              },
              "result": {
                "enum": [
                  "supported",
                  "partial",
                  "unsupported",
                  "stale",
                  "unknown"
                ]
              },
              "stage": {
                "enum": [
                  "research",
                  "intake",
                  "normalized",
                  "matched",
                  "response-tested"
                ]
              }
            },
            "required": [
              "ecosystem",
              "stage",
              "result",
              "as_of"
            ],
            "type": "object"
          },
          "generated_at": {
            "format": "date-time",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "identity_assurance": {
            "const": "caller_asserted"
          },
          "incidents": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "aliases": {
                  "items": {
                    "maxLength": 160,
                    "minLength": 1,
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]+$",
                    "type": "string"
                  },
                  "maxItems": 20,
                  "type": "array"
                },
                "applies_to_version": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "citations": {
                  "items": {
                    "maxLength": 512,
                    "minLength": 1,
                    "pattern": "^https://[A-Za-z0-9./_?=-]+$",
                    "type": "string"
                  },
                  "maxItems": 4,
                  "type": "array"
                },
                "confidence": {
                  "enum": [
                    "confirmed",
                    "probable",
                    "possible",
                    "unverified",
                    "disputed",
                    "unknown"
                  ]
                },
                "fix_evidence_incomplete": {
                  "type": "boolean"
                },
                "incident_id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^gbsec:(?:catalog-incident|incident):[a-zA-Z0-9._:-]+$",
                  "type": "string"
                },
                "last_changed_at": {
                  "format": "date-time",
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                },
                "revision": {
                  "maximum": 2147483647,
                  "minimum": 1,
                  "type": "integer"
                },
                "source_reports": {
                  "items": {
                    "additionalProperties": false,
                    "allOf": [
                      {
                        "if": {
                          "properties": {
                            "source_id": {
                              "const": "gbsec:source:openssf-malicious-packages"
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "source_attribution": {
                              "additionalProperties": false,
                              "properties": {
                                "license": {
                                  "const": "Apache-2.0"
                                },
                                "name": {
                                  "const": "OpenSSF Malicious Packages"
                                },
                                "record_url": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "pattern": "^https://github\\.com/ossf/malicious-packages/blob/[0-9a-f]{40}/osv/(?:malicious|withdrawn)/[A-Za-z0-9:@%+._/-]+/MAL-[0-9]{4}-[0-9]+\\.json$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "license",
                                "record_url"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "source_attribution"
                          ]
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "source_id": {
                              "const": "gbsec:source:go-vulnerability-database"
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "source_attribution": {
                              "additionalProperties": false,
                              "properties": {
                                "license": {
                                  "const": "CC-BY-4.0"
                                },
                                "name": {
                                  "const": "Go Vulnerability Database"
                                },
                                "record_url": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "pattern": "^https://pkg\\.go\\.dev/vuln/GO-[0-9]{4}-[0-9]{4,}$",
                                  "type": "string"
                                },
                                "review_status": {
                                  "enum": [
                                    "REVIEWED",
                                    "UNREVIEWED"
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "license",
                                "record_url",
                                "review_status"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "source_attribution"
                          ]
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "source_id": {
                              "const": "gbsec:source:rustsec-advisory-database"
                            }
                          }
                        },
                        "then": {
                          "properties": {
                            "source_attribution": {
                              "additionalProperties": false,
                              "allOf": [
                                {
                                  "else": {
                                    "properties": {
                                      "original_source_urls": {
                                        "maxItems": 0
                                      }
                                    }
                                  },
                                  "if": {
                                    "properties": {
                                      "license": {
                                        "const": "CC-BY-4.0"
                                      }
                                    }
                                  },
                                  "then": {
                                    "properties": {
                                      "original_source_urls": {
                                        "minItems": 1
                                      }
                                    }
                                  }
                                }
                              ],
                              "properties": {
                                "license": {
                                  "enum": [
                                    "CC0-1.0",
                                    "CC-BY-4.0"
                                  ]
                                },
                                "name": {
                                  "const": "RustSec Advisory Database"
                                },
                                "original_source_urls": {
                                  "items": {
                                    "maxLength": 4096,
                                    "minLength": 1,
                                    "pattern": "^https://github\\.com/(?:advisories|[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+/security/advisories)/GHSA-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}$",
                                    "type": "string"
                                  },
                                  "maxItems": 4,
                                  "type": "array"
                                },
                                "record_url": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "pattern": "^https://github\\.com/RustSec/advisory-db/blob/[0-9a-f]{40}/(?:crates|rust)/RUSTSEC-[0-9]{4}-[0-9]{4}\\.json$",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "license",
                                "record_url",
                                "original_source_urls"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "source_attribution"
                          ]
                        }
                      },
                      {
                        "if": {
                          "properties": {
                            "source_id": {
                              "not": {
                                "enum": [
                                  "gbsec:source:go-vulnerability-database",
                                  "gbsec:source:openssf-malicious-packages",
                                  "gbsec:source:rustsec-advisory-database"
                                ]
                              }
                            }
                          }
                        },
                        "then": {
                          "not": {
                            "required": [
                              "source_attribution"
                            ]
                          }
                        }
                      }
                    ],
                    "properties": {
                      "applies_to_version": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "fix_evidence": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "applies_to_requested_version": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            },
                            "fixed_version": {
                              "maxLength": 200,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9.!+_~-]*$",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "introduced_version": {
                              "maxLength": 200,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9.!+_~-]*$",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "package_entry_id": {
                              "maxLength": 160,
                              "minLength": 1,
                              "pattern": "^gbsec:advisory-package:[a-f0-9]{40}$",
                              "type": "string"
                            },
                            "patch_field_state": {
                              "enum": [
                                "absent",
                                "explicit_null",
                                "explicit_value",
                                "invalid",
                                "no_fixed_event",
                                "unsupported_range_type"
                              ]
                            },
                            "range_index": {
                              "maximum": 10000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "range_sha256": {
                              "maxLength": 71,
                              "minLength": 1,
                              "pattern": "^sha256:[a-f0-9]{64}$",
                              "type": "string"
                            },
                            "range_type": {
                              "enum": [
                                "GITHUB",
                                "SEMVER",
                                "ECOSYSTEM",
                                "GIT",
                                "other"
                              ]
                            },
                            "source_field": {
                              "maxLength": 80,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9_.\\[\\]-]+$",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "package_entry_id",
                            "range_sha256",
                            "range_index",
                            "range_type",
                            "introduced_version",
                            "fixed_version",
                            "source_field",
                            "applies_to_requested_version",
                            "patch_field_state"
                          ],
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "fix_evidence_incomplete": {
                        "type": "boolean"
                      },
                      "historical_metadata_incomplete": {
                        "type": "boolean"
                      },
                      "observed_at": {
                        "format": "date-time",
                        "maxLength": 40,
                        "minLength": 1,
                        "type": "string"
                      },
                      "range_bound_evidence": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "kind": {
                              "enum": [
                                "exclusive_upper",
                                "inclusive_upper",
                                "last_affected",
                                "limit"
                              ]
                            },
                            "package_entry_id": {
                              "maxLength": 160,
                              "minLength": 1,
                              "pattern": "^gbsec:advisory-package:[a-f0-9]{40}$",
                              "type": "string"
                            },
                            "range_index": {
                              "maximum": 10000,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "version": {
                              "maxLength": 200,
                              "minLength": 1,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9.!+_~-]*$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "package_entry_id",
                            "range_index",
                            "kind",
                            "version"
                          ],
                          "type": "object"
                        },
                        "maxItems": 8,
                        "type": "array"
                      },
                      "source_attribution": {
                        "oneOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "license": {
                                "const": "Apache-2.0"
                              },
                              "name": {
                                "const": "OpenSSF Malicious Packages"
                              },
                              "record_url": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "pattern": "^https://github\\.com/ossf/malicious-packages/blob/[0-9a-f]{40}/osv/(?:malicious|withdrawn)/[A-Za-z0-9:@%+._/-]+/MAL-[0-9]{4}-[0-9]+\\.json$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "license",
                              "record_url"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "properties": {
                              "license": {
                                "const": "CC-BY-4.0"
                              },
                              "name": {
                                "const": "Go Vulnerability Database"
                              },
                              "record_url": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "pattern": "^https://pkg\\.go\\.dev/vuln/GO-[0-9]{4}-[0-9]{4,}$",
                                "type": "string"
                              },
                              "review_status": {
                                "enum": [
                                  "REVIEWED",
                                  "UNREVIEWED"
                                ]
                              }
                            },
                            "required": [
                              "name",
                              "license",
                              "record_url",
                              "review_status"
                            ],
                            "type": "object"
                          },
                          {
                            "additionalProperties": false,
                            "allOf": [
                              {
                                "else": {
                                  "properties": {
                                    "original_source_urls": {
                                      "maxItems": 0
                                    }
                                  }
                                },
                                "if": {
                                  "properties": {
                                    "license": {
                                      "const": "CC-BY-4.0"
                                    }
                                  }
                                },
                                "then": {
                                  "properties": {
                                    "original_source_urls": {
                                      "minItems": 1
                                    }
                                  }
                                }
                              }
                            ],
                            "properties": {
                              "license": {
                                "enum": [
                                  "CC0-1.0",
                                  "CC-BY-4.0"
                                ]
                              },
                              "name": {
                                "const": "RustSec Advisory Database"
                              },
                              "original_source_urls": {
                                "items": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "pattern": "^https://github\\.com/(?:advisories|[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+/security/advisories)/GHSA-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}$",
                                  "type": "string"
                                },
                                "maxItems": 4,
                                "type": "array"
                              },
                              "record_url": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "pattern": "^https://github\\.com/RustSec/advisory-db/blob/[0-9a-f]{40}/(?:crates|rust)/RUSTSEC-[0-9]{4}-[0-9]{4}\\.json$",
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "license",
                              "record_url",
                              "original_source_urls"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "source_context_state": {
                        "enum": [
                          "available",
                          "unavailable",
                          "omitted_budget"
                        ]
                      },
                      "source_fixed_versions": {
                        "items": {
                          "maxLength": 200,
                          "minLength": 1,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9.!+_~-]*$",
                          "type": "string"
                        },
                        "maxItems": 20,
                        "type": "array"
                      },
                      "source_id": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^gbsec:source:[a-z0-9-]+$",
                        "type": "string"
                      },
                      "source_state_status": {
                        "enum": [
                          "current",
                          "historical_unresolved",
                          "unknown"
                        ]
                      },
                      "source_updated_at": {
                        "format": "date-time",
                        "maxLength": 40,
                        "minLength": 1,
                        "type": "string"
                      },
                      "state": {
                        "enum": [
                          "active",
                          "removed",
                          "withdrawn"
                        ]
                      },
                      "upstream_record_id": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]+$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "source_id",
                      "upstream_record_id",
                      "state",
                      "source_updated_at",
                      "observed_at",
                      "source_state_status",
                      "applies_to_version",
                      "source_fixed_versions",
                      "fix_evidence_incomplete",
                      "historical_metadata_incomplete",
                      "fix_evidence",
                      "range_bound_evidence",
                      "source_context_state"
                    ],
                    "type": "object"
                  },
                  "maxItems": 4,
                  "type": "array"
                },
                "source_reports_truncated": {
                  "type": "boolean"
                },
                "status": {
                  "enum": [
                    "internal_candidate",
                    "emerging_unverified",
                    "investigating",
                    "reported",
                    "corroborated",
                    "confirmed",
                    "contained",
                    "resolved",
                    "disputed",
                    "withdrawn",
                    "expired"
                  ]
                }
              },
              "required": [
                "incident_id",
                "revision",
                "status",
                "confidence",
                "last_changed_at",
                "applies_to_version",
                "aliases",
                "citations",
                "source_reports",
                "source_reports_truncated",
                "fix_evidence_incomplete"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "limitations": {
            "const": [
              "Advisory evidence only; not a safety verdict or permission to install or change software.",
              "Service-issued derived report; no client signature verification ran.",
              "Original source and assessment clocks remain authoritative; recheck before a later decision.",
              "Source-listed fixes and range boundaries are different; neither is a tested application repair.",
              "Source prose, original responses and raw lookup references are excluded; omissions are explicit."
            ]
          },
          "local_applicability": {
            "const": "not_evaluated"
          },
          "not_applicable_incident_count": {
            "maximum": 1000000,
            "minimum": 0,
            "type": "integer"
          },
          "omissions": {
            "additionalProperties": false,
            "properties": {
              "aliases": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "citations": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "cve_contexts": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "fix_evidence": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "incident_titles": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "incidents": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "preliminary_warnings": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "range_bound_evidence": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "registry_project_context": {
                "type": "boolean"
              },
              "source_contexts": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "source_fixed_versions": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "source_reports": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "unknown_texts": {
                "maximum": 1000000,
                "minimum": 0,
                "type": "integer"
              },
              "upstream_incidents_truncated": {
                "type": "boolean"
              },
              "upstream_source_reports_truncated": {
                "type": "boolean"
              },
              "upstream_warnings_truncated": {
                "type": "boolean"
              }
            },
            "required": [
              "incidents",
              "source_reports",
              "fix_evidence",
              "range_bound_evidence",
              "source_fixed_versions",
              "citations",
              "aliases",
              "source_contexts",
              "incident_titles",
              "unknown_texts",
              "preliminary_warnings",
              "cve_contexts",
              "registry_project_context",
              "upstream_incidents_truncated",
              "upstream_source_reports_truncated",
              "upstream_warnings_truncated"
            ],
            "type": "object"
          },
          "projection_version": {
            "enum": [
              "1.0.0",
              "1.1.0"
            ]
          },
          "reason_codes": {
            "items": {
              "enum": [
                "no_matching_advisory",
                "identity_unverified",
                "ecosystem_not_covered",
                "artifact_evidence_missing",
                "source_stale",
                "source_unavailable",
                "version_not_evaluable",
                "source_conflict",
                "historical_metadata_incomplete",
                "results_incomplete"
              ]
            },
            "maxItems": 10,
            "type": "array"
          },
          "registry_state": {
            "enum": [
              "available",
              "removed",
              "yanked",
              "deprecated",
              "unknown"
            ]
          },
          "report_origin": {
            "const": "hosted_projection"
          },
          "result": {
            "enum": [
              "affected",
              "not_affected",
              "possibly_affected",
              "conflicting",
              "unknown"
            ]
          },
          "source_freshness": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "freshness_state": {
                  "enum": [
                    "fresh",
                    "complete",
                    "stale",
                    "failed",
                    "missing",
                    "in_progress",
                    "reconciling",
                    "unresolved"
                  ]
                },
                "last_success_at": {
                  "format": "date-time",
                  "maxLength": 40,
                  "minLength": 1,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "record_type": {
                  "maxLength": 80,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "source_id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^gbsec:source:[a-z0-9-]+$",
                  "type": "string"
                },
                "unresolved_record_count": {
                  "maximum": 1000000,
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "source_id",
                "record_type",
                "freshness_state",
                "last_success_at",
                "unresolved_record_count"
              ],
              "type": "object"
            },
            "maxItems": 10,
            "type": "array"
          },
          "summary_schema_version": {
            "enum": [
              "1.0.0",
              "1.1.0"
            ]
          },
          "valid_until": {
            "format": "date-time",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "summary_schema_version",
          "projection_version",
          "report_origin",
          "client_signature_verified",
          "action_authorized",
          "check_state",
          "artifact",
          "assessment",
          "generated_at",
          "valid_until",
          "assessment_freshness",
          "result",
          "reason_codes",
          "identity_assurance",
          "local_applicability",
          "registry_state",
          "coverage",
          "source_freshness",
          "incidents",
          "not_applicable_incident_count",
          "omissions",
          "limitations"
        ],
        "type": "object"
      },
      "PublicArtifactSummaryError": {
        "additionalProperties": false,
        "properties": {
          "action_authorized": {
            "const": false
          },
          "check_state": {
            "const": "incomplete"
          },
          "client_signature_verified": {
            "const": false
          },
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "invalid_request",
                  "invalid_origin",
                  "version_not_exact",
                  "unsupported_media_type",
                  "request_limit_exceeded",
                  "request_deadline_exceeded",
                  "service_capacity_exceeded",
                  "anonymous_burst_limit_exceeded",
                  "anonymous_daily_limit_exceeded",
                  "assessment_in_progress",
                  "anonymous_quota_unavailable",
                  "proxy_network_identity_invalid",
                  "service_unavailable",
                  "summary_unavailable",
                  "summary_identity_mismatch",
                  "summary_schema_unsupported",
                  "summary_time_invalid",
                  "summary_limit_exceeded",
                  "invalid_tool_arguments"
                ]
              },
              "message": {
                "const": "The summary request did not complete; no safety or action conclusion is available."
              },
              "retry_after_seconds": {
                "maximum": 86400,
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "retryable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "retry_after_seconds"
            ],
            "type": "object"
          },
          "summary_schema_version": {
            "const": "1.0.0"
          }
        },
        "required": [
          "summary_schema_version",
          "check_state",
          "client_signature_verified",
          "action_authorized",
          "error"
        ],
        "type": "object"
      },
      "PublicArtifactSummaryRequest": {
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "npm"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "registry.npmjs.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "pypi"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "pypi.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "not": {
                    "anyOf": [
                      {
                        "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                      }
                    ]
                  },
                  "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "github-actions"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "github.com"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^(?:v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?|[0-9a-fA-F]{40})$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "go"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "proxy.golang.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "rust"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "crates.io"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "composer"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "repo.packagist.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "not": {
                    "anyOf": [
                      {
                        "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                      },
                      {
                        "pattern": "^(?:[Dd][Ee][Vv]-|[^+]*-[Dd][Ee][Vv](?:\\+|$)|[^+]*(?:^|\\.)[Xx](?:\\.|\\+|$))"
                      }
                    ]
                  },
                  "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "erlang"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "hex.pm"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "git"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "github.com"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^(?:[0-9a-fA-F]{40}|[0-9a-fA-F]{64}|v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?|refs/tags/(?!(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$)(?!.*\\.lock(?:/|$))(?!\\.)[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+(?:\\.[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+)*(?:/(?!\\.)[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+(?:\\.[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]():@{}./\\\\?]+)*)*)$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "maven"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "repo1.maven.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "not": {
                    "anyOf": [
                      {
                        "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                      },
                      {
                        "pattern": "[Ss][Nn][Aa][Pp][Ss][Hh][Oo][Tt]$"
                      }
                    ]
                  },
                  "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "nuget"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "api.nuget.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "not": {
                    "anyOf": [
                      {
                        "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                      }
                    ]
                  },
                  "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "open-vsx"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "open-vsx.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "pub"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "pub.dev"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "rubygems"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "rubygems.org"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "not": {
                    "anyOf": [
                      {
                        "pattern": "^(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Nn][Ee][Xx][Tt]|[Ss][Tt][Aa][Bb][Ll][Ee]|[Rr][Ee][Ll][Ee][Aa][Ss][Ee]|[Hh][Ee][Aa][Dd]|[Mm][Aa][Ii][Nn]|[Mm][Aa][Ss][Tt][Ee][Rr]|[Xx]|\\*)$"
                      }
                    ]
                  },
                  "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "swift"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "swiftpackageindex.com"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "vscode"
                }
              }
            },
            "then": {
              "not": {
                "required": [
                  "digest"
                ]
              },
              "properties": {
                "registry_host": {
                  "enum": [
                    "marketplace.visualstudio.com"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "version"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "oci"
                }
              }
            },
            "then": {
              "properties": {
                "digest": {
                  "maxLength": 71,
                  "minLength": 71,
                  "pattern": "^sha256:[a-f0-9]{64}$",
                  "type": "string"
                },
                "registry_host": {
                  "enum": [
                    "docker.io",
                    "ghcr.io",
                    "public.ecr.aws",
                    "quay.io"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "registry_host",
                "digest"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "ecosystem": {
                  "const": "docker"
                }
              }
            },
            "then": {
              "properties": {
                "digest": {
                  "maxLength": 71,
                  "minLength": 71,
                  "pattern": "^sha256:[a-f0-9]{64}$",
                  "type": "string"
                },
                "registry_host": {
                  "enum": [
                    "docker.io",
                    "ghcr.io",
                    "public.ecr.aws",
                    "quay.io"
                  ]
                },
                "version": {
                  "maxLength": 200,
                  "minLength": 1,
                  "pattern": "^v?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*)(?:\\.(?:0|[1-9][0-9]*|[0-9]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$",
                  "type": "string"
                }
              },
              "required": [
                "registry_host",
                "digest"
              ]
            }
          }
        ],
        "description": "One explicitly authorized exact public coordinate across SmithGuard's 17 supported ecosystems. Packages require an exact version (no digest) and default registry_host to their public registry. Container images (oci, docker) require registry_host and an immutable sha256 digest, with an optional exact X.Y.Z tag as version. No files, private names, inventory, ranges or moving tags. Publicness is caller-asserted.",
        "properties": {
          "digest": {
            "maxLength": 71,
            "minLength": 71,
            "pattern": "^sha256:[a-f0-9]{64}$",
            "type": "string"
          },
          "ecosystem": {
            "enum": [
              "npm",
              "pypi",
              "github-actions",
              "oci",
              "docker",
              "go",
              "rust",
              "composer",
              "erlang",
              "git",
              "maven",
              "nuget",
              "open-vsx",
              "pub",
              "rubygems",
              "swift",
              "vscode"
            ]
          },
          "name": {
            "maxLength": 300,
            "minLength": 1,
            "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
            "type": "string"
          },
          "registry_host": {
            "enum": [
              "api.nuget.org",
              "crates.io",
              "docker.io",
              "ghcr.io",
              "github.com",
              "hex.pm",
              "marketplace.visualstudio.com",
              "open-vsx.org",
              "proxy.golang.org",
              "pub.dev",
              "public.ecr.aws",
              "pypi.org",
              "quay.io",
              "registry.npmjs.org",
              "repo.packagist.org",
              "repo1.maven.org",
              "rubygems.org",
              "swiftpackageindex.com"
            ]
          },
          "version": {
            "description": "One exact published version. SemVer ecosystems (npm, go, rust, swift, erlang, vscode, open-vsx, pub) and optional container release tags require full X.Y.Z SemVer; github-actions requires full SemVer or a 40-hex commit; npm and pypi also apply strict runtime SemVer/PEP 440 parsing.",
            "maxLength": 200,
            "minLength": 1,
            "pattern": "^[^\\x00-\\x20\\x7f\\s^~*<>=|,[\\]()]+$",
            "type": "string"
          }
        },
        "required": [
          "ecosystem",
          "name"
        ],
        "type": "object"
      }
    }
  },
  "info": {
    "description": "Compact, read-only public software supply-chain advisory summaries across 17 ecosystems. No account, API key, source code, lockfile or private inventory upload. Reports are unsigned advisory projections.",
    "title": "SmithGuard Agent Summaries",
    "version": "0.16.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/artifacts/assessment-summary": {
      "post": {
        "description": "Assess one user-selected exact public package version or container digest across 17 ecosystems. Returns a compact unsigned advisory summary (<=32 KB). Never send source code, lockfiles, private names or inventories.",
        "operationId": "assess_public_artifact_summary",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicArtifactSummaryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummary"
                }
              }
            },
            "description": "Bounded service-issued derived report; not client-verified."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummaryError"
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummaryError"
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback."
          },
          "405": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Unsupported HTTP method; origin or transport error only."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummaryError"
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PublicArtifactSummaryError"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback. Origin proxy errors may use ErrorResponse."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummaryError"
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PublicArtifactSummaryError"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback. Origin proxy errors may use ErrorResponse."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicArtifactSummaryError"
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PublicArtifactSummaryError"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                }
              }
            },
            "description": "Incomplete summary request; never a raw-response fallback. Origin proxy errors may use ErrorResponse."
          }
        },
        "summary": "Read a compact, unsigned report for one exact public package version or container digest",
        "x-smithguard-availability": "public_beta",
        "x-smithguard-limits": {
          "max_input_bytes": 8192,
          "max_output_bytes": 32768,
          "timeout_seconds": 10
        },
        "x-smithguard-public-service-allowed": true,
        "x-smithguard-read-only": true
      }
    }
  },
  "servers": [
    {
      "url": "https://api.smithguard.io"
    }
  ],
  "x-smithguard-contract-version": "1.1.0",
  "x-smithguard-service-state": "public_beta",
  "x-smithguard-summary-mcp": {
    "authentication": "none",
    "client_signature_verified": false,
    "read_only": true,
    "tools": [
      "assess_public_artifact_summary"
    ],
    "transport": "streamable-http",
    "url": "https://api.smithguard.io/mcp/summaries"
  }
}
