{
  "openapi": "3.0.4",
  "info": {
    "title": "Gateway.Api",
    "version": "1.0"
  },
  "paths": {
    "/identity/sign-in": {
      "get": {
        "tags": [
          "FoundationSignIn"
        ],
        "parameters": [
          {
            "name": "flow",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "return_url",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "restart",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/identity/sign-in/start": {
      "post": {
        "tags": [
          "FoundationSignIn"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/identity/sign-in/resend": {
      "post": {
        "tags": [
          "FoundationSignIn"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/identity/sign-in/verify": {
      "post": {
        "tags": [
          "FoundationSignIn"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/live": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/ready": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/prospect-sessions": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/.well-known/agent-card.json": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/public/service": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceDescription"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/onboarding": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/v1/public/coverage": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoverageCatalog"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/eligibility": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentalAddress"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EligibilityResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/public/contact-policy": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringStringBoolean<>f__AnonymousType20"
                }
              }
            }
          }
        }
      }
    },
    "/v1/catalog": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OperationDefinition"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/a2a/v1/message:send": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/a2a/v1/tasks/{id}": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/a2a/v1/tasks/{id}:cancel": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/me": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringStringStringStringIReadOnlySet<>f__AnonymousType21"
                }
              }
            }
          }
        }
      }
    },
    "/v1/capabilities": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "home_id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CapabilityView"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/homes/{id}/capabilities": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CapabilityView"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/properties": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/v1/queries": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommandRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/v1/operations": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommandRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/maintenance": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceEnvelope"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/tasks/{id}": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationView"
                }
              }
            }
          }
        }
      }
    },
    "/v1/tasks/{id}/cancel": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationView"
                }
              }
            }
          }
        }
      }
    },
    "/v1/events": {
      "get": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints": {
      "post": {
        "tags": [
          "Gateway.Api"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": { }
              }
            }
          }
        }
      }
    },
    "/v1/webhook-endpoints/{id}": {
      "delete": {
        "tags": [
          "Gateway.Api"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "tags": [
          "GatewayOAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource/mcp": {
      "get": {
        "tags": [
          "GatewayOAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/register": {
      "post": {
        "tags": [
          "GatewayOAuth"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/authorize": {
      "get": {
        "tags": [
          "GatewayOAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "GatewayOAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/token": {
      "post": {
        "tags": [
          "GatewayOAuth"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/identity/foundation/session": {
      "post": {
        "tags": [
          "GatewayOwner"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FoundationSessionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FoundationSessionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FoundationSessionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/grants": {
      "get": {
        "tags": [
          "GatewayOwner"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/grants/data": {
      "get": {
        "tags": [
          "GatewayOwner"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/grants/{id}/revoke": {
      "post": {
        "tags": [
          "GatewayOwner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/approvals/{id}": {
      "get": {
        "tags": [
          "GatewayOwner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "GatewayOwner"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/logout": {
      "post": {
        "tags": [
          "GatewayOwner"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acquisition/belong": {
      "get": {
        "tags": [
          "HumanAcquisition"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acquisition/create-account": {
      "get": {
        "tags": [
          "HumanAcquisition"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acquisition/continue": {
      "get": {
        "tags": [
          "HumanAcquisition"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/onboarding/session": {
      "get": {
        "tags": [
          "HumanAcquisition"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/onboarding": {
      "post": {
        "tags": [
          "HumanAcquisition"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": { }
            },
            "text/json": {
              "schema": { }
            },
            "application/*+json": {
              "schema": { }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/account/onboarding/tasks/{id}": {
      "get": {
        "tags": [
          "HumanAcquisition"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CapabilityRequirements": {
        "type": "object",
        "properties": {
          "verifiedIdentity": {
            "type": "boolean"
          },
          "home": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CapabilityView": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "risk": {
            "$ref": "#/components/schemas/RiskClass"
          },
          "implemented": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "authorized": {
            "type": "boolean"
          },
          "available": {
            "type": "boolean"
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "constraints": {
            "nullable": true
          },
          "inputSchema": { },
          "requirements": {
            "$ref": "#/components/schemas/CapabilityRequirements"
          }
        },
        "additionalProperties": false
      },
      "CommandRequest": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "nullable": true
          },
          "homeId": {
            "type": "string",
            "nullable": true
          },
          "input": { }
        },
        "additionalProperties": false
      },
      "CoverageCatalog": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "regions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceRegion"
            },
            "nullable": true
          },
          "evidence": {
            "$ref": "#/components/schemas/EvidenceSource"
          },
          "reason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EligibilityResult": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "evidence": {
            "$ref": "#/components/schemas/EvidenceSource"
          },
          "finalAcceptance": {
            "type": "boolean"
          },
          "requiredNextSteps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EvidenceSource": {
        "type": "object",
        "properties": {
          "system": {
            "type": "string",
            "nullable": true
          },
          "operation": {
            "type": "string",
            "nullable": true
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time"
          },
          "maxAgeSeconds": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FoundationSessionRequest": {
        "type": "object",
        "properties": {
          "consumerAccessToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MaintenanceEnvelope": {
        "type": "object",
        "properties": {
          "homeId": {
            "type": "string",
            "nullable": true
          },
          "input": { }
        },
        "additionalProperties": false
      },
      "OperationDefinition": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "risk": {
            "$ref": "#/components/schemas/RiskClass"
          },
          "requiresHome": {
            "type": "boolean"
          },
          "mutating": {
            "type": "boolean"
          },
          "inputSchema": { },
          "requiresIdentity": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "OperationView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "homeId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "cancelRequested": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "result": {
            "nullable": true
          },
          "errorCode": {
            "type": "string",
            "nullable": true
          },
          "approval": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RentalAddress": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "unit": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RiskClass": {
        "enum": [
          "Read",
          "Reversible",
          "Commitment",
          "Sensitive"
        ],
        "type": "string"
      },
      "ServiceDescription": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "nextSteps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "termsUrl": {
            "type": "string",
            "nullable": true
          },
          "coverageStatus": {
            "type": "string",
            "nullable": true
          },
          "onboardingStatus": {
            "type": "string",
            "nullable": true
          },
          "existingCustomerRequired": {
            "type": "boolean"
          },
          "requiredInformation": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "boundaries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "createAccountUrl": {
            "type": "string",
            "nullable": true
          },
          "signInUrl": {
            "type": "string",
            "nullable": true
          },
          "continueUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceRegion": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "availability": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StringStringBoolean<>f__AnonymousType20": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "available": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "StringStringStringStringIReadOnlySet<>f__AnonymousType21": {
        "type": "object",
        "properties": {
          "principalId": {
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string",
            "nullable": true
          },
          "grantId": {
            "type": "string",
            "nullable": true
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WebhookRequest": {
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}