{
  "openapi": "3.0.0",
  "info": {
    "title": "introspect",
    "version": "1.0.0"
  },
  "tags": [
    {
      "name": "Authorization"
    }
  ],
  "paths": {
    "/iam/introspect_pairs": {
      "post": {
        "security": [{ "chx_auth_session": [] }, { "bearer": [] }],
        "operationId": "Introspect pairs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/compiuta.api.iam.v2.IntrospectPairsResp"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/compiuta.api.iam.v2.IntrospectPairsReq"
              }
            }
          },
          "required": true
        },
        "tags": ["Authorization"]
      }
    }
  },
  "servers": [
    {
      "url": "https://apis.connhex.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": { "type": "http", "scheme": "bearer" },
      "chx_auth_session": {
        "type": "apiKey",
        "in": "cookie",
        "name": "chx_auth_session"
      }
    },
    "schemas": {
      "compiuta.api.iam.v2.IntrospectPairsReq": {
        "type": "object",
        "properties": {
          "pairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/compiuta.domain.authz.Pair"
            }
          }
        }
      },
      "compiuta.api.iam.v2.IntrospectPairsResp": {
        "type": "object",
        "properties": {
          "pairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/compiuta.domain.authz.Pair"
            }
          }
        }
      },
      "compiuta.api.iam.v2.IntrospectReq": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "parameters": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "compiuta.api.iam.v2.IntrospectResp": {
        "type": "object",
        "properties": {
          "endpoints": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/compiuta.api.iam.v2.MethodsAllowed"
            }
          }
        }
      },
      "compiuta.api.iam.v2.IntrospectSomeReq": {
        "type": "object",
        "properties": {
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "compiuta.api.iam.v2.MethodsAllowed": {
        "type": "object",
        "properties": {
          "get": {
            "type": "boolean"
          },
          "put": {
            "type": "boolean"
          },
          "post": {
            "type": "boolean"
          },
          "delete": {
            "type": "boolean"
          },
          "patch": {
            "type": "boolean"
          }
        }
      },
      "compiuta.domain.authz.Pair": {
        "type": "object",
        "properties": {
          "resource": {
            "type": "string"
          },
          "action": {
            "type": "string"
          }
        }
      },
      "google.protobuf.Any": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string"
          }
        },
        "additionalProperties": {}
      },
      "google.rpc.Status": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/google.protobuf.Any"
            }
          }
        }
      }
    }
  }
}
