{
  "openapi": "3.1.0",
  "info": {
    "title": "Sanket Patel Portfolio API",
    "version": "1.0.0",
    "description": "Read-only public data about Sanket Patel, his projects, notebook entries, and open-source work. No authentication is required.",
    "contact": {
      "name": "Sanket Patel",
      "url": "https://sanketp.com/contact",
      "email": "sanpatel323@gmail.com"
    },
    "license": {
      "name": "Content is owned by Sanket Patel; API metadata may be reused for interoperability."
    },
    "x-versioning-policy": "The public API uses URL path versioning under /v1/ (for example /v1/api/projects). The API-Version response header carries the major version. Breaking response-shape changes increment the major version and introduce a new path prefix; additive fields may be introduced without notice and consumers must ignore unknown fields.",
    "x-deprecation-policy": "Endpoints being retired return a Deprecation response header and a Sunset header once the removal date is known. Endpoints remain available for at least 90 days after deprecation unless security or legal constraints require earlier action. Deprecated fields are marked in OpenAPI.",
    "x-rate-limit-policy": "API, MCP, and NLWeb endpoints accept up to 120 requests per client IP per minute. Responses include RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and RateLimit-Policy; HTTP 429 responses include Retry-After.",
    "x-pagination-policy": "List endpoints use cursor pagination. Pass limit (1-100, default 50) and the opaque nextCursor value returned in pagination.nextCursor. Responses also include limit, offset, total, and hasMore for observability; clients should treat nextCursor as opaque.",
    "x-async-operation-policy": "The API has no long-running write operations. Future operations that cannot finish synchronously will return HTTP 202 with a pollable status resource."
  },
  "servers": [
    {
      "url": "https://sanketp.com",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Portfolio",
      "description": "Profile, project, notebook, and open-source data"
    },
    {
      "name": "Agent",
      "description": "Natural-language agent interfaces"
    }
  ],
  "paths": {
    "/v1/api": {
      "get": {
        "operationId": "getApiOverview",
        "summary": "Get API overview",
        "description": "Returns the API name, version, documentation links, authentication requirements, and available endpoints.",
        "tags": [
          "Portfolio"
        ],
        "responses": {
          "200": {
            "description": "API overview",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "name",
                    "version",
                    "description",
                    "authentication",
                    "endpoints"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "authentication": {
                      "type": "string"
                    },
                    "documentation": {
                      "type": "string",
                      "format": "uri"
                    },
                    "openapi": {
                      "type": "string",
                      "format": "uri"
                    },
                    "endpoints": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/api/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "Get Sanket Patel's profile",
        "description": "Returns Sanket Patel's public identity, role, location, contact email, description, and public profile links.",
        "tags": [
          "Portfolio"
        ],
        "responses": {
          "200": {
            "description": "Public profile",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "name",
                    "role",
                    "employer",
                    "location",
                    "email",
                    "url",
                    "description",
                    "sameAs"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    },
                    "employer": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "timeZone": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string",
                      "format": "email"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "description": {
                      "type": "string"
                    },
                    "sameAs": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/api/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List projects",
        "description": "Returns summaries and links for every project case study published on sanketp.com. Results are cursor-paginated with limit and cursor query parameters.",
        "tags": [
          "Portfolio"
        ],
        "responses": {
          "200": {
            "description": "Project list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "projects",
                    "pagination"
                  ],
                  "properties": {
                    "projects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "slug",
                          "title",
                          "summary",
                          "kind",
                          "visibility",
                          "period",
                          "role",
                          "url",
                          "markdownUrl"
                        ],
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "work",
                              "tool",
                              "app",
                              "fork",
                              "experiment"
                            ]
                          },
                          "visibility": {
                            "type": "string",
                            "enum": [
                              "public",
                              "private"
                            ]
                          },
                          "period": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "links": {
                            "type": "object",
                            "properties": {
                              "repo": {
                                "type": "string",
                                "format": "uri"
                              },
                              "live": {
                                "type": "string",
                                "format": "uri"
                              },
                              "upstream": {
                                "type": "string",
                                "format": "uri"
                              }
                            }
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "limit",
                        "offset",
                        "total",
                        "hasMore",
                        "nextCursor"
                      ],
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100,
                          "description": "Maximum number of items requested."
                        },
                        "offset": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Zero-based offset represented by the current cursor."
                        },
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Total number of items in the collection."
                        },
                        "hasMore": {
                          "type": "boolean",
                          "description": "Whether another page is available."
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque cursor for the next page; null when hasMore is false."
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque nextCursor value returned by a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/api/projects/{slug}": {
      "get": {
        "operationId": "getProject",
        "summary": "Get one project",
        "description": "Returns one project case study, including the markdown content published on the project page.",
        "tags": [
          "Portfolio"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Project slug from the project URL, such as blunt-code.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$"
            },
            "examples": {
              "blunt-code": {
                "value": "blunt-code"
              },
              "voice-ai-platform": {
                "value": "voice-ai-platform"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project detail",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "slug",
                    "title",
                    "summary",
                    "kind",
                    "visibility",
                    "period",
                    "role",
                    "url",
                    "markdownUrl",
                    "content",
                    "apiUrl"
                  ],
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "work",
                        "tool",
                        "app",
                        "fork",
                        "experiment"
                      ]
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "public",
                        "private"
                      ]
                    },
                    "period": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    },
                    "featured": {
                      "type": "boolean"
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "repo": {
                          "type": "string",
                          "format": "uri"
                        },
                        "live": {
                          "type": "string",
                          "format": "uri"
                        },
                        "upstream": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "markdownUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "content": {
                      "type": "string",
                      "description": "Markdown body of the public case study."
                    },
                    "apiUrl": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Project not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "resolution"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "documentation": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/api/diary": {
      "get": {
        "operationId": "listDiaryEntries",
        "summary": "List notebook entries",
        "description": "Returns metadata and links for public notebook entries, newest first. Results are cursor-paginated with limit and cursor query parameters.",
        "tags": [
          "Portfolio"
        ],
        "responses": {
          "200": {
            "description": "Notebook entry list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "entries",
                    "pagination"
                  ],
                  "properties": {
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "slug",
                          "title",
                          "date",
                          "tags",
                          "url",
                          "markdownUrl"
                        ],
                        "properties": {
                          "slug": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "date": {
                            "type": "string",
                            "format": "date"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "limit",
                        "offset",
                        "total",
                        "hasMore",
                        "nextCursor"
                      ],
                      "properties": {
                        "limit": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100,
                          "description": "Maximum number of items requested."
                        },
                        "offset": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Zero-based offset represented by the current cursor."
                        },
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Total number of items in the collection."
                        },
                        "hasMore": {
                          "type": "boolean",
                          "description": "Whether another page is available."
                        },
                        "nextCursor": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Opaque cursor for the next page; null when hasMore is false."
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of items to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque nextCursor value returned by a previous response.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/api/open-source": {
      "get": {
        "operationId": "getOpenSourceSnapshot",
        "summary": "Get open-source snapshot",
        "description": "Returns the build-time snapshot of Sanket Patel's owned repositories and upstream pull requests.",
        "tags": [
          "Portfolio"
        ],
        "responses": {
          "200": {
            "description": "Open-source snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "fetchedAt",
                    "partial",
                    "owned",
                    "contributions"
                  ],
                  "properties": {
                    "fetchedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "partial": {
                      "type": "boolean"
                    },
                    "owned": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "repo",
                          "url",
                          "summary"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "repo": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "project": {
                            "type": "string"
                          },
                          "live": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "contributions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "repo",
                          "title",
                          "url",
                          "status",
                          "summary",
                          "createdAt"
                        ],
                        "properties": {
                          "repo": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "merged",
                              "open",
                              "closed"
                            ]
                          },
                          "summary": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "mergedAt": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/ask": {
      "get": {
        "operationId": "askQuestionGet",
        "summary": "Ask a question with a query parameter",
        "description": "NLWeb-compatible convenience form of the ask endpoint. Use query.text for the natural-language question.",
        "tags": [
          "Agent"
        ],
        "parameters": [
          {
            "name": "query.text",
            "in": "query",
            "required": true,
            "description": "Natural-language question about Sanket Patel or this site.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "NLWeb answer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "_meta",
                    "results"
                  ],
                  "properties": {
                    "_meta": {
                      "type": "object",
                      "required": [
                        "response_type",
                        "version"
                      ],
                      "properties": {
                        "response_type": {
                          "type": "string",
                          "enum": [
                            "answer",
                            "failure"
                          ]
                        },
                        "response_format": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "@type",
                          "name",
                          "url"
                        ],
                        "properties": {
                          "@type": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed question",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "resolution"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "documentation": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "askQuestion",
        "summary": "Ask a natural-language question",
        "description": "NLWeb v0.55 ask endpoint. Send query.text and receive structured matching pages from this site. Set prefer.streaming to true or Accept text/event-stream for server-sent events.",
        "tags": [
          "Agent"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "query"
                ],
                "properties": {
                  "query": {
                    "type": "object",
                    "required": [
                      "text"
                    ],
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 1,
                        "description": "Natural-language question."
                      },
                      "site": {
                        "type": "string",
                        "description": "Optional site restriction."
                      }
                    }
                  },
                  "prefer": {
                    "type": "object",
                    "properties": {
                      "streaming": {
                        "type": "boolean"
                      },
                      "response_format": {
                        "type": "string",
                        "enum": [
                          "conversational_search"
                        ]
                      },
                      "mode": {
                        "type": "string",
                        "description": "Comma-separated list such as list or list, summarize."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "NLWeb answer or event stream",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "_meta",
                    "results"
                  ],
                  "properties": {
                    "_meta": {
                      "type": "object",
                      "required": [
                        "response_type",
                        "version"
                      ],
                      "properties": {
                        "response_type": {
                          "type": "string",
                          "enum": [
                            "answer",
                            "failure"
                          ]
                        },
                        "response_format": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "@type",
                          "name",
                          "url"
                        ],
                        "properties": {
                          "@type": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "markdownUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "Server-sent events named start, result, error, and complete."
                }
              }
            }
          },
          "400": {
            "description": "Malformed request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error"
                  ],
                  "properties": {
                    "error": {
                      "type": "object",
                      "required": [
                        "code",
                        "message",
                        "resolution"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        },
                        "resolution": {
                          "type": "string"
                        },
                        "documentation": {
                          "type": "string",
                          "format": "uri"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiOverview": {
        "type": "object",
        "required": [
          "name",
          "version",
          "description",
          "authentication",
          "endpoints"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "authentication": {
            "type": "string"
          },
          "documentation": {
            "type": "string",
            "format": "uri"
          },
          "openapi": {
            "type": "string",
            "format": "uri"
          },
          "endpoints": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "Profile": {
        "type": "object",
        "required": [
          "name",
          "role",
          "employer",
          "location",
          "email",
          "url",
          "description",
          "sameAs"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "employer": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "sameAs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      },
      "ProjectSummary": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "summary",
          "kind",
          "visibility",
          "period",
          "role",
          "url",
          "markdownUrl"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "work",
              "tool",
              "app",
              "fork",
              "experiment"
            ]
          },
          "visibility": {
            "type": "string",
            "enum": [
              "public",
              "private"
            ]
          },
          "period": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "featured": {
            "type": "boolean"
          },
          "links": {
            "type": "object",
            "properties": {
              "repo": {
                "type": "string",
                "format": "uri"
              },
              "live": {
                "type": "string",
                "format": "uri"
              },
              "upstream": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "facts": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ProjectDetail": {
        "$ref": "#/components/schemas/ProjectSummary",
        "type": "object",
        "required": [
          "content",
          "apiUrl"
        ],
        "properties": {
          "content": {
            "type": "string",
            "description": "Markdown body of the public case study."
          },
          "apiUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "DiaryEntry": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "date",
          "tags",
          "url",
          "markdownUrl"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "summary": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdownUrl": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "OpenSourceSnapshot": {
        "type": "object",
        "required": [
          "fetchedAt",
          "partial",
          "owned",
          "contributions"
        ],
        "properties": {
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          },
          "partial": {
            "type": "boolean"
          },
          "owned": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "repo",
                "url",
                "summary"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "repo": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "summary": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "project": {
                  "type": "string"
                },
                "live": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "contributions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "repo",
                "title",
                "url",
                "status",
                "summary",
                "createdAt"
              ],
              "properties": {
                "repo": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "merged",
                    "open",
                    "closed"
                  ]
                },
                "summary": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time"
                },
                "mergedAt": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              }
            }
          }
        }
      },
      "NlwebRequest": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "object",
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "description": "Natural-language question."
              },
              "site": {
                "type": "string",
                "description": "Optional site restriction."
              }
            }
          },
          "prefer": {
            "type": "object",
            "properties": {
              "streaming": {
                "type": "boolean"
              },
              "response_format": {
                "type": "string",
                "enum": [
                  "conversational_search"
                ]
              },
              "mode": {
                "type": "string",
                "description": "Comma-separated list such as list or list, summarize."
              }
            }
          }
        }
      },
      "NlwebAnswer": {
        "type": "object",
        "required": [
          "_meta",
          "results"
        ],
        "properties": {
          "_meta": {
            "type": "object",
            "required": [
              "response_type",
              "version"
            ],
            "properties": {
              "response_type": {
                "type": "string",
                "enum": [
                  "answer",
                  "failure"
                ]
              },
              "response_format": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "@type",
                "name",
                "url"
              ],
              "properties": {
                "@type": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "markdownUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "resolution"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "resolution": {
                "type": "string"
              },
              "documentation": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "Pagination": {
        "type": "object",
        "required": [
          "limit",
          "offset",
          "total",
          "hasMore",
          "nextCursor"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of items requested."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "Zero-based offset represented by the current cursor."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "description": "Total number of items in the collection."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page is available."
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque cursor for the next page; null when hasMore is false."
          }
        }
      }
    }
  }
}
