{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsjunction-com/json-schema/agentsjunction-com-passport-schema.json",
  "title": "Passport",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentsjunction-com-openapi.json#/components/schemas/Passport",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "identity": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "ownerHandle": {
              "type": [
                "string",
                "null"
              ]
            },
            "providerUrl": {
              "type": [
                "string",
                "null"
              ]
            },
            "agentCardUrl": {
              "type": [
                "string",
                "null"
              ]
            },
            "signature": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "keyId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "algorithm": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "checkedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "status",
                "keyId",
                "algorithm",
                "checkedAt"
              ],
              "additionalProperties": false
            },
            "source": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "type",
                "url"
              ],
              "additionalProperties": false
            },
            "updatedAt": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "ownerHandle",
            "providerUrl",
            "agentCardUrl",
            "signature",
            "source",
            "updatedAt"
          ],
          "additionalProperties": false
        },
        "interfaces": {
          "type": "object",
          "properties": {
            "protocols": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "protocol": {
                    "type": "string"
                  },
                  "protocolVersion": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "url": {
                    "type": "string"
                  },
                  "isPreferred": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "protocol",
                  "protocolVersion",
                  "url",
                  "isPreferred"
                ],
                "additionalProperties": false
              }
            },
            "source": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "type",
                "url"
              ],
              "additionalProperties": false
            },
            "updatedAt": {
              "type": "string"
            }
          },
          "required": [
            "protocols",
            "source",
            "updatedAt"
          ],
          "additionalProperties": false
        },
        "capabilities": {
          "type": "object",
          "properties": {
            "skills": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "skill": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "state": {
                    "type": "string"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evaluationCount": {
                    "type": "number"
                  }
                },
                "required": [
                  "skill",
                  "name",
                  "state",
                  "description",
                  "tags",
                  "evaluationCount"
                ],
                "additionalProperties": false
              }
            },
            "defaultInputModes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "defaultOutputModes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "source": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "type",
                "url"
              ],
              "additionalProperties": false
            },
            "updatedAt": {
              "type": "string"
            }
          },
          "required": [
            "skills",
            "defaultInputModes",
            "defaultOutputModes",
            "source",
            "updatedAt"
          ],
          "additionalProperties": false
        },
        "verification": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "identity",
                  "capability",
                  "registry",
                  "activity",
                  "relationship",
                  "operations"
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "verifiable",
                  "declared",
                  "observed"
                ]
              },
              "value": {},
              "source": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "url"
                ],
                "additionalProperties": false
              },
              "observedAt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "category",
              "state",
              "value",
              "source",
              "observedAt"
            ],
            "additionalProperties": false
          }
        },
        "activity": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "category": {
                "type": "string",
                "enum": [
                  "identity",
                  "capability",
                  "registry",
                  "activity",
                  "relationship",
                  "operations"
                ]
              },
              "state": {
                "type": "string",
                "enum": [
                  "verifiable",
                  "declared",
                  "observed"
                ]
              },
              "value": {},
              "source": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type",
                  "url"
                ],
                "additionalProperties": false
              },
              "observedAt": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "category",
              "state",
              "value",
              "source",
              "observedAt"
            ],
            "additionalProperties": false
          }
        },
        "operations": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "resourceType": {
                  "type": "string",
                  "enum": [
                    "agent",
                    "mcp-server"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unknown",
                    "online",
                    "degraded",
                    "offline"
                  ]
                },
                "lastCheckedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lastSuccessfulCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latencyMs": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "consecutiveFailures": {
                  "type": "number"
                },
                "isStale": {
                  "type": "boolean"
                },
                "checks": {
                  "type": "object",
                  "properties": {
                    "endpointReachable": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "protocolValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "agentCardValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "mcpHandshakeValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "endpointReachable",
                    "protocolValid",
                    "agentCardValid",
                    "mcpHandshakeValid"
                  ],
                  "additionalProperties": false
                },
                "lastSeen": {
                  "type": "null"
                },
                "lastSuccessfulInteraction": {
                  "type": "null"
                },
                "lastHealthCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "url"
                  ],
                  "additionalProperties": false
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "resourceType",
                "name",
                "status",
                "lastCheckedAt",
                "lastSuccessfulCheck",
                "latencyMs",
                "consecutiveFailures",
                "isStale",
                "checks",
                "lastSeen",
                "lastSuccessfulInteraction",
                "lastHealthCheck",
                "source",
                "observedAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "source": {
                  "type": "null"
                },
                "observedAt": {
                  "type": "null"
                }
              },
              "required": [
                "status",
                "source",
                "observedAt"
              ],
              "additionalProperties": false
            }
          ]
        },
        "profile": {
          "type": "object",
          "properties": {
            "apiVersion": {
              "type": "string",
              "const": "1"
            },
            "schemaVersion": {
              "type": "string",
              "const": "1"
            },
            "id": {
              "type": "string"
            },
            "resourceType": {
              "type": "string",
              "const": "agent"
            },
            "canonicalUrl": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "interfaces": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "protocol": {
                    "type": "string"
                  },
                  "protocolVersion": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "transport": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "package": {
                    "type": "string"
                  },
                  "registryType": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "protocol"
                ],
                "additionalProperties": false
              }
            },
            "operations": {
              "type": "object",
              "properties": {
                "resourceType": {
                  "type": "string",
                  "enum": [
                    "agent",
                    "mcp-server"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "unknown",
                    "online",
                    "degraded",
                    "offline"
                  ]
                },
                "lastCheckedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lastSuccessfulCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "latencyMs": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "consecutiveFailures": {
                  "type": "number"
                },
                "isStale": {
                  "type": "boolean"
                },
                "checks": {
                  "type": "object",
                  "properties": {
                    "endpointReachable": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "protocolValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "agentCardValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "mcpHandshakeValid": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "endpointReachable",
                    "protocolValid",
                    "agentCardValid",
                    "mcpHandshakeValid"
                  ],
                  "additionalProperties": false
                },
                "lastSeen": {
                  "type": "null"
                },
                "lastSuccessfulInteraction": {
                  "type": "null"
                },
                "lastHealthCheck": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "type",
                    "url"
                  ],
                  "additionalProperties": false
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "resourceType",
                "name",
                "status",
                "lastCheckedAt",
                "lastSuccessfulCheck",
                "latencyMs",
                "consecutiveFailures",
                "isStale",
                "checks",
                "lastSeen",
                "lastSuccessfulInteraction",
                "lastHealthCheck",
                "source",
                "observedAt"
              ],
              "additionalProperties": false
            },
            "security": {
              "type": "null"
            },
            "timestamps": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updatedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "observedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "createdAt",
                "updatedAt",
                "observedAt"
              ],
              "additionalProperties": false
            },
            "compatibility": {
              "type": "object",
              "properties": {
                "serverVersion": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "protocolVersions": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "protocol": {
                        "type": "string"
                      },
                      "version": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "protocol",
                      "version"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "serverVersion",
                "protocolVersions"
              ],
              "additionalProperties": false
            },
            "capabilities": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "state": {
                    "type": "string"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "evaluationCount": {
                    "type": "number"
                  },
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "state",
                  "description",
                  "tags",
                  "evaluationCount",
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "identity": {
              "type": "object",
              "properties": {
                "ownerHandle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "providerUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "agentCardUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "source": {
                  "type": "string"
                }
              },
              "required": [
                "ownerHandle",
                "providerUrl",
                "agentCardUrl",
                "source"
              ],
              "additionalProperties": false
            },
            "verification": {
              "type": "object",
              "properties": {
                "identity": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "keyId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "algorithm": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "checkedAt": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "status",
                    "keyId",
                    "algorithm",
                    "checkedAt"
                  ],
                  "additionalProperties": false
                },
                "capabilities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "skill": {
                        "type": "string"
                      },
                      "state": {
                        "type": "string"
                      },
                      "evaluationCount": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "skill",
                      "state",
                      "evaluationCount"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "identity",
                "capabilities"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "apiVersion",
            "schemaVersion",
            "id",
            "resourceType",
            "canonicalUrl",
            "name",
            "description",
            "interfaces",
            "operations",
            "security",
            "timestamps",
            "compatibility",
            "capabilities",
            "identity",
            "verification"
          ],
          "additionalProperties": false
        },
        "signalsUrl": {
          "type": "string"
        },
        "generatedAt": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "identity",
        "interfaces",
        "capabilities",
        "verification",
        "activity",
        "operations",
        "profile",
        "signalsUrl",
        "generatedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}