{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-contact-response-schema.json",
  "title": "ContactResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-listings-api-openapi.yml#/components/schemas/ContactResponse",
  "properties": {
    "conversation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Conversation Id"
    },
    "target_agent": {
      "$ref": "#/$defs/AgentRead"
    },
    "listing": {
      "$ref": "#/$defs/ListingRead"
    },
    "contact": {
      "additionalProperties": true,
      "type": "object",
      "title": "Contact"
    },
    "suggested_protocol": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Suggested Protocol"
    },
    "endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Endpoint"
    }
  },
  "type": "object",
  "required": [
    "target_agent",
    "listing",
    "contact"
  ],
  "$defs": {
    "AgentRead": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "agent_card_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Card Url"
        },
        "a2a_endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "A2A Endpoint"
        },
        "mcp_endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Mcp Endpoint"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Tags"
        },
        "verified": {
          "type": "boolean",
          "title": "Verified"
        },
        "inbox_mode": {
          "type": "string",
          "title": "Inbox Mode",
          "default": "public"
        },
        "public_handle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Public Handle"
        },
        "has_inbox_token": {
          "type": "boolean",
          "title": "Has Inbox Token",
          "default": false
        },
        "inbox_public_key_set": {
          "type": "boolean",
          "title": "Inbox Public Key Set",
          "default": false
        },
        "e2ee_enabled": {
          "type": "boolean",
          "title": "E2Ee Enabled",
          "default": false
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "last_seen_at": {
          "type": "string",
          "format": "date-time",
          "title": "Last Seen At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "agent_card_url",
        "a2a_endpoint",
        "mcp_endpoint",
        "tags",
        "verified",
        "created_at",
        "last_seen_at"
      ],
      "title": "AgentRead"
    },
    "ListingRead": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "agent_id": {
          "type": "string",
          "title": "Agent Id"
        },
        "listing_type": {
          "type": "string",
          "title": "Listing Type"
        },
        "capability": {
          "type": "string",
          "title": "Capability"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Tags"
        },
        "requirements": {
          "additionalProperties": true,
          "type": "object",
          "title": "Requirements"
        },
        "terms": {
          "additionalProperties": true,
          "type": "object",
          "title": "Terms"
        },
        "contact": {
          "additionalProperties": true,
          "type": "object",
          "title": "Contact"
        },
        "original_lang": {
          "type": "string",
          "title": "Original Lang",
          "default": ""
        },
        "intent_card": {
          "additionalProperties": true,
          "type": "object",
          "title": "Intent Card"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "title": "Expires At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "title": "Updated At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "agent_id",
        "listing_type",
        "capability",
        "title",
        "description",
        "tags",
        "requirements",
        "terms",
        "contact",
        "status",
        "expires_at",
        "created_at",
        "updated_at"
      ],
      "title": "ListingRead"
    }
  }
}