{
  "openapi": "3.0.0",
  "info": {
    "title": "Skmtc API",
    "description": "The public HTTP API of Skmtc Hub: publish an OpenAPI document, from a file or a URL, as an API or a revision, check a document for problems, and manage the deliveries and webhook secret of a pipeline.",
    "version": "0.0.0"
  },
  "tags": [
    {
      "name": "Publishing"
    },
    {
      "name": "Linting"
    },
    {
      "name": "Pipelines"
    }
  ],
  "servers": [
    {
      "url": "https://api.skmtc.dev",
      "description": "Skmtc API",
      "variables": {}
    }
  ],
  "paths": {
    "/v1/apis/publish": {
      "post": {
        "operationId": "Apis_publishApi",
        "summary": "Publish an API schema",
        "description": "Publish a schema. Visibility is mandatory so an omitted query parameter can\nnever publish a private schema publicly by accident. The body is the raw\nOpenAPI JSON or YAML document. Repeating the same document is\ncontent-addressed and deduplicated.\n\nWith `slug`, the publish adds a revision to the API at that slug, or creates\nit there. Without `slug`, it creates a new API at a slug derived from the\ndocument's `info.title`, unless the owner already has an API with the same\nbytes, which is returned with `deduped: true`, or, with `originUrl`, an API\nthat already has that source, which takes the revision. Either way, a\npublish onto an API that exists needs that API's visibility, or it is a 409.",
        "parameters": [
          {
            "name": "owner",
            "in": "query",
            "required": false,
            "description": "Handle of the account that will own the API - the caller, or an\norganization the caller is a member of. Defaults to the caller.",
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "explode": false
          },
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "description": "URL slug of the API within the owner's namespace. Omit to derive one from the document's `info.title`.",
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "explode": false
          },
          {
            "name": "visibility",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Visibility"
            },
            "explode": false
          },
          {
            "name": "filename",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "explode": false
          },
          {
            "name": "originUrl",
            "in": "query",
            "required": false,
            "description": "As on `uploadApi`: the fetchable origin of these bytes, when known.",
            "schema": {
              "type": "string"
            },
            "explode": false
          }
        ],
        "responses": {
          "201": {
            "description": "The request has succeeded and a new resource has been created as a result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportApiResult"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "x-skmtc-authz": {
          "scope": "publish:schemas"
        }
      }
    },
    "/v1/apis/publish/import": {
      "post": {
        "operationId": "Apis_publishApiFromUrl",
        "summary": "Publish an API from a URL",
        "description": "Publish an API from a schema document at a URL, as `importApi` does, with\nthe `publish:schemas` scope. The document is fetched, validated,\ncontent-addressed and deduplicated. Re-importing a URL the owner already\nimported adds a revision to that API. Visibility is mandatory.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "The request has succeeded and a new resource has been created as a result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportApiResult"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishApiFromUrlRequest"
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "x-skmtc-authz": {
          "scope": "publish:schemas"
        }
      }
    },
    "/v1/apis/publish/uploads/{token}": {
      "post": {
        "operationId": "Apis_publishUpload",
        "summary": "Publish through an upload URL",
        "description": "Publish the document bytes through an upload URL from\n`createPublishUpload`, as the user who minted it. The token in the path is\nthe only credential. An unknown, used or expired token is a 401, and no\nrevision is created.",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "The request has succeeded and a new resource has been created as a result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportApiResult"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "409": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "x-skmtc-public": true
      }
    },
    "/v1/apis/{account}/{api}/revisions": {
      "post": {
        "operationId": "Apis_addApiRevision",
        "summary": "Add an API revision by upload",
        "description": "Add a new revision to an existing API by uploading a schema document - the raw\nfile bytes are the request body. The document is validated, content-addressed\nand deduplicated: re-uploading identical bytes (or a cosmetic reformat) is a\nno-op (`deduped: true`); changed bytes append a revision. Use this to record a\nnew snapshot of an API whose schema is built locally and has no refetchable\nURL source.",
        "parameters": [
          {
            "name": "account",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filename",
            "in": "query",
            "required": false,
            "description": "Original filename, used to detect JSON vs YAML.",
            "schema": {
              "type": "string"
            },
            "explode": false
          },
          {
            "name": "originUrl",
            "in": "query",
            "required": false,
            "description": "As on `uploadApi`: the fetchable origin of these bytes, when known.",
            "schema": {
              "type": "string"
            },
            "explode": false
          },
          {
            "name": "sourceType",
            "in": "query",
            "required": false,
            "description": "As on `uploadApi`.",
            "schema": {
              "$ref": "#/components/schemas/ApiSourceType"
            },
            "explode": false
          }
        ],
        "responses": {
          "201": {
            "description": "The request has succeeded and a new resource has been created as a result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportApiResult"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "401": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "x-skmtc-authz": {
          "scope": "publish:schemas",
          "relation": "writer",
          "resource": "api",
          "key": "account/api"
        }
      }
    },
    "/v1/lint": {
      "post": {
        "operationId": "Lint_lintDocument",
        "summary": "Lint an OpenAPI document",
        "description": "Lint an OpenAPI document, in JSON or YAML, sent as the body. Send its\n`content-length`: a body without one is refused with 400, and one over 60\nMiB with 413, before it is read.\n\nWith no query, the report has the first 5 problems of each rule. With\n`rule`, it has only that rule, and `offset` and `limit` page its problems.\n\n422 for a document no rule is for, one the linter cannot read, or one too\nlarge for the linter to check. 503 with `Retry-After` when the linter is\nbusy with large documents or stopped. No sign-in; rate-limited per caller.",
        "parameters": [
          {
            "name": "rule",
            "in": "query",
            "required": false,
            "description": "The one rule to report, as `operation-operationId`.",
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "explode": false
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "The problems of `rule` to skip, 0 by default. Only with `rule`.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "explode": false
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The problems of `rule` to give, 100 by default. Only with `rule`.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 1,
              "maximum": 200
            },
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LintReport"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "413": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "503 - the service cannot answer this request now.",
            "headers": {
              "Retry-After": {
                "required": true,
                "description": "Seconds to wait before retrying - see `ErrorCode.unavailable`.",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Linting"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "description": "The document."
        },
        "x-skmtc-authz": {
          "scope": "read:catalog",
          "anonOk": true
        }
      }
    },
    "/v1/lint/url": {
      "post": {
        "operationId": "Lint_lintDocumentAtUrl",
        "summary": "Lint the OpenAPI document at a URL",
        "description": "Lint the OpenAPI document at a URL. The URL is fetched as an import fetches\none: `https` only, no private host, each redirect checked, at most 60 MiB.\nThe query and the answers are those of `lintDocument`, and also:\n\n- 422 for a URL refused as above, one that cannot be reached, or one that\nanswers a status other than 429 or 5xx.\n- 503 with `Retry-After` for a host that answers 429 or 5xx, or does not\nanswer in time, and when the service cannot read its stored copy of the\ndocument.",
        "parameters": [
          {
            "name": "rule",
            "in": "query",
            "required": false,
            "description": "The one rule to report, as `operation-operationId`.",
            "schema": {
              "type": "string",
              "minLength": 1
            },
            "explode": false
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "The problems of `rule` to skip, 0 by default. Only with `rule`.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            },
            "explode": false
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "The problems of `rule` to give, 100 by default. Only with `rule`.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 1,
              "maximum": 200
            },
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LintReport"
                }
              }
            }
          },
          "400": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "413": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "503": {
            "description": "503 - the service cannot answer this request now.",
            "headers": {
              "Retry-After": {
                "required": true,
                "description": "Seconds to wait before retrying - see `ErrorCode.unavailable`.",
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Linting"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LintDocumentAtUrlRequest"
              }
            }
          }
        },
        "x-skmtc-authz": {
          "scope": "read:catalog",
          "anonOk": true
        }
      }
    },
    "/v1/pipelines/{account}/{pipeline}/deliveries": {
      "get": {
        "operationId": "Pipelines_listPipelineDeliveries",
        "summary": "List pipeline deliveries",
        "description": "List a pipeline's deliveries, newest first. Use this for the delivery\ntimeline on the pipeline page.",
        "parameters": [
          {
            "name": "account",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pipeline",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "explode": false
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "pagination"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PipelineDelivery"
                      }
                    },
                    "pagination": {
                      "$ref": "#/components/schemas/Pagination"
                    }
                  },
                  "description": "A single page of `T` items plus its pagination metadata."
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Pipelines"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "x-skmtc-authz": {
          "scope": "read:catalog",
          "relation": "reader",
          "resource": "pipeline",
          "key": "account/pipeline"
        }
      }
    },
    "/v1/pipelines/{account}/{pipeline}/rotate-webhook-secret": {
      "post": {
        "operationId": "Pipelines_rotatePipelineWebhookSecret",
        "summary": "Rotate a pipeline's webhook secret",
        "description": "Replace the signing secret of a pipeline's webhook action. The response\ncarries the new secret, shown only this once. The old secret stops at\nonce: every later attempt signs with the new one, including retries of\nevents captured before the rotation. 422 for a pipeline with no webhook\naction. Signed-in sessions only: a leaked personal access token must not be\nable to replace the secret and break a working receiver.",
        "parameters": [
          {
            "name": "account",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pipeline",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request has succeeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PipelineWithSecret"
                }
              }
            }
          },
          "401": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "403": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "404": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "422": {
            "description": "Binds a concrete HTTP `Status` to the shared `ApiError` body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          }
        },
        "tags": [
          "Pipelines"
        ],
        "x-skmtc-authz": {
          "scope": "write:catalog",
          "sessionOnly": true,
          "relation": "writer",
          "resource": "pipeline",
          "key": "account/pipeline"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Account": {
        "type": "object",
        "required": [
          "id",
          "handle",
          "displayName",
          "type",
          "avatarUrl",
          "bio",
          "joinedAt",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable row id, immutable across handle renames - what cross-environment\ntooling (the staging-sync link ledger) keys on."
          },
          "handle": {
            "type": "string",
            "description": "Unique URL handle, e.g. `acme`."
          },
          "displayName": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/AccountType"
          },
          "avatarUrl": {
            "$ref": "#/components/schemas/url"
          },
          "bio": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "emailDomain": {
            "type": "string",
            "description": "The company's email domain, e.g. `stripe.com` - org accounts only.\nA user with a verified email at this domain can claim the org."
          },
          "claimStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrgClaimStatus"
              }
            ],
            "description": "Claim state of the org - org accounts only."
          },
          "joinedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the account was created."
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "API self-link for this account."
          },
          "htmlUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Web UI link for this account."
          }
        },
        "description": "A user or organization account - the polymorphic resource owner."
      },
      "AccountType": {
        "type": "string",
        "enum": [
          "user",
          "org"
        ],
        "description": "Whether an account represents a single person or an organization."
      },
      "Api": {
        "type": "object",
        "required": [
          "id",
          "owner",
          "slug",
          "name",
          "translations",
          "visibility",
          "description",
          "readme",
          "isVerified",
          "sources",
          "versions",
          "versionCount",
          "starCount",
          "consumerCount",
          "createdAt",
          "updatedAt",
          "url",
          "htmlUrl",
          "viewer"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Stable row id, immutable across slug renames - what cross-environment\ntooling (the staging-sync link ledger) keys on."
          },
          "owner": {
            "$ref": "#/components/schemas/Account"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Human-readable title, from the document's `info.title`."
          },
          "displayName": {
            "type": "string",
            "description": "The name to SHOW, when the title alone is ambiguous - present only when\nthis owner has another live API with the same `name`, and only when\nsomething distinguishing can be derived.\n\nAzure publishes one management client as dozens of fragment files sharing\nan `info.title`, so 67 catalog entries read `SqlManagementClient`. They are\nnot duplicates and must not be merged - each is a different fragment - so\nthe qualifier names the fragment: `SqlManagementClient (DatabaseSchema)`.\n\nAbsent means `name` is unambiguous, or that nothing could be derived (an\nupload carries no path). Render `displayName ?? name`."
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiLanguage"
              }
            ],
            "description": "The language of the documents. Absent when not recorded; the pages render as English."
          },
          "translationOf": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiTranslation"
              }
            ],
            "description": "On a translation: the API it translates, with that API's own language."
          },
          "translations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiTranslation"
            },
            "description": "The API's live translations, ordered by `language`. The same list on the\nAPI and on each of its translations."
          },
          "visibility": {
            "$ref": "#/components/schemas/Visibility"
          },
          "description": {
            "type": "string",
            "description": "One-line summary."
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiCategory"
              }
            ],
            "description": "The API's primary subject category. Absent when unresolved or not yet classified."
          },
          "readme": {
            "type": "string",
            "description": "Rendered README / long-form documentation, Markdown."
          },
          "providerName": {
            "type": "string",
            "description": "Provider / publisher name, e.g. `Stripe, Inc.`."
          },
          "homepageUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "The provider's homepage."
          },
          "logoUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "A logo for the API or its provider."
          },
          "isVerified": {
            "type": "boolean",
            "description": "Whether the entry has been verified by skmtc-hub."
          },
          "license": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaLicense"
              }
            ],
            "description": "License of the latest version's schema document, when declared."
          },
          "contact": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaContact"
              }
            ],
            "description": "Contact of the latest revision's schema document, when declared."
          },
          "externalDocs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaExternalDocs"
              }
            ],
            "description": "External docs of the latest revision's schema document, when declared."
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiSource"
            },
            "description": "Where this API's schema is fetched from."
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiVersion"
            },
            "description": "Publisher-declared versions, newest first. Empty for the long tail -\nmost APIs publish one unversioned stream of revisions."
          },
          "lastCheckedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When skmtc-hub last checked any of this API's sources for updates."
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the schema last changed: the newest revision's publisher date where\nthere is one, else when skmtc-hub observed the change.\n\nThe coalesce is deliberate and is NOT the conflation `publishedAt` avoids.\n\"Updated\" is a claim about a change having happened, which the existence of\na revision establishes either way - unlike \"published at\", which names who\nproduced it and when."
          },
          "latestVersionRef": {
            "type": "string",
            "description": "Content ref of the most recent version - its URL identifier. Absent if the\nlatest is a link-only version (no stored document)."
          },
          "versionCount": {
            "type": "integer",
            "format": "int32"
          },
          "retiredAt": {
            "type": "string",
            "format": "date-time",
            "description": "When skmtc-hub retired this API: its sources stopped serving and no move\nor version change was found, or every one of its versions was retired.\nAbsent for a current API. A retired API stays listed and keeps its history."
          },
          "starCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of accounts that have starred this API."
          },
          "consumerCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of projects consuming this API."
          },
          "getStarted": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiGetStarted"
              }
            ],
            "description": "How to sign up, authenticate and pay. Absent when no record is stored."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          },
          "viewer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ResourcePermissions"
              }
            ],
            "description": "The requesting viewer's effective permissions on this API."
          }
        },
        "description": "Full API resource, including README and aggregate counts."
      },
      "ApiCategory": {
        "type": "string",
        "enum": [
          "ai-machine-learning",
          "developer-tools",
          "cloud-infrastructure",
          "security-identity",
          "data-analytics",
          "payments-finance",
          "commerce-retail",
          "marketing-advertising",
          "sales-customer-support",
          "business-operations-hr",
          "communications-messaging",
          "productivity-collaboration",
          "media-content",
          "maps-location",
          "travel-transport-logistics",
          "healthcare-life-sciences",
          "iot-devices",
          "government-public-data",
          "education-research"
        ],
        "description": "The primary subject of an API's operations."
      },
      "ApiError": {
        "type": "object",
        "required": [
          "code",
          "message",
          "requestId"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "message": {
            "type": "string",
            "description": "Human-readable summary safe to surface to end users."
          },
          "requestId": {
            "type": "string",
            "description": "Correlates the response with server logs for support."
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetail"
            }
          }
        },
        "description": "The uniform error envelope returned for every non-2xx response."
      },
      "ApiGetStarted": {
        "type": "object",
        "required": [
          "signUp",
          "auth",
          "pricing"
        ],
        "properties": {
          "signUp": {
            "$ref": "#/components/schemas/GetStartedSignUp"
          },
          "auth": {
            "$ref": "#/components/schemas/GetStartedPart"
          },
          "pricing": {
            "$ref": "#/components/schemas/GetStartedPricing"
          }
        },
        "description": "How to start with an API: sign up, auth and pricing, each with the provider\npages it was read from. Written by hand through an internal route."
      },
      "ApiLanguage": {
        "type": "string",
        "enum": [
          "en",
          "zh",
          "ja",
          "es",
          "fr",
          "pt",
          "ru",
          "ko",
          "de"
        ],
        "description": "The language of an API's documents, as the URL tag: `zh` is Simplified\nChinese and `pt` is Brazilian Portuguese. Adding a value needs a row in\n`@skmtc/web-routes/languages`."
      },
      "ApiRef": {
        "type": "object",
        "required": [
          "account",
          "slug",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "account": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          },
          "iconUrl": {
            "type": "string",
            "description": "The API's icon: its logo, else its owner's avatar. Set where a list draws it (the projects list); absent when there is none."
          }
        },
        "description": "A compact pointer to an API."
      },
      "ApiRevision": {
        "type": "object",
        "required": [
          "isLatest",
          "hasDocument",
          "specType",
          "retrievedAt",
          "sourceType",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "publishedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the change became public, by the publisher's account: for a git\nsource, the merge time of the pull request that brought the commit into\nthe tracked branch, else the committer date. **Absent\nwhen no publisher timestamp was ever known**, which is most of the\nnon-git catalog.\n\nIt used to fall back to `retrievedAt`, which passed skmtc-hub's own\nobservation time off as the publisher's and made \"updated 3d ago\" mean two\ndifferent things. `docs/api-versioning-vocabulary.md` is explicit that\n`retrievedAt` is always labelled as ours; read that field for the\nobservation, and treat its absence here as \"the publisher never said\".\n\nOrdering still coalesces the two - a revision with no publisher date sorts\nby when it was retrieved - but the ORDER is not the same claim as the date."
          },
          "isLatest": {
            "type": "boolean"
          },
          "hasDocument": {
            "type": "boolean",
            "description": "Whether skmtc-hub stores the version's document. `false` for link-only\nhistory versions of git-sourced APIs; the document fields below are\nabsent for those."
          },
          "documentUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Upstream link to the document at this version (git-sourced APIs)."
          },
          "commit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CommitRef"
              }
            ],
            "description": "The commit this version came from - present for git-sourced APIs."
          },
          "linkedRepositoryRun": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LinkedRepositoryRun"
              }
            ],
            "description": "The workflow run that added this revision with a linked repository token.\nAbsent for a revision added any other way."
          },
          "specType": {
            "$ref": "#/components/schemas/SpecType"
          },
          "specVersion": {
            "type": "string"
          },
          "documentVersion": {
            "type": "string"
          },
          "license": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaLicense"
              }
            ],
            "description": "License declared by the document - absent for link-only versions."
          },
          "contact": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaContact"
              }
            ],
            "description": "`info.contact` declared by the document - absent for link-only versions."
          },
          "externalDocs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SchemaExternalDocs"
              }
            ],
            "description": "Root `externalDocs` declared by the document - absent for link-only versions."
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time"
          },
          "sourceType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiSourceType"
              }
            ],
            "description": "As on `ApiRevisionSummary`."
          },
          "derivedFrom": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DerivedProvenance"
              }
            ],
            "description": "As on `ApiRevisionSummary`."
          },
          "operationCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of operations in the document - absent for link-only versions."
          },
          "schemaCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of component schemas in the document - absent for link-only versions."
          },
          "serverUrl": {
            "type": "string",
            "description": "The document's first top-level server URL, as written: variables at their\ndefaults, a relative URL left unresolved. Swagger 2 gives\n`schemes[0]://host` + `basePath`, or the bare `basePath` when the document\nhas no `schemes` or no `host`. An empty string when the document\ndeclares no server. Absent when not derived yet, and for link-only\nversions."
          },
          "authSchemes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuthScheme"
            },
            "description": "Auth mechanisms the document declares, sorted. Absent means not known\n(not derived yet, or a link-only version); it does not mean \"none\"."
          },
          "documentFormat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentFormat"
              }
            ],
            "description": "Serialization of the stored document - absent for link-only versions."
          },
          "byteSize": {
            "type": "integer",
            "format": "int64",
            "description": "Size of the raw document, in bytes - absent for link-only versions."
          },
          "contentHash": {
            "type": "string",
            "description": "SHA-256 of the raw document bytes - absent for link-only versions."
          },
          "contentRef": {
            "type": "string",
            "description": "Short content ref (first 12 hex chars of `contentHash`) - the version's URL\nidentifier (git-style). Absent for link-only versions, which have no bytes."
          },
          "externalRefs": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ExternalRefs"
              }
            ],
            "description": "The other files the document's `$ref`s point at. Present only when the\ndocument has a `$ref` that does not start with `#`; the hub stores one\nfile per revision, so docs, the deep index, new summaries and generation\nare off for this revision. Absent when there are none, when the\ndocument has not been scanned yet, and for link-only versions."
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          }
        },
        "description": "Full API version record, including the stored document's metadata."
      },
      "ApiSource": {
        "type": "object",
        "required": [
          "id",
          "type",
          "requestMethod",
          "isPrimary",
          "refetchEnabled",
          "createdAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the source within its API."
          },
          "type": {
            "$ref": "#/components/schemas/ApiSourceType"
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Canonical fetch URL; absent for direct uploads. For a `docs_derived`\nsource with an `extractor`, the origin of the documentation site."
          },
          "extractor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocsExtractor"
              }
            ],
            "description": "The extractor a refetch runs on `url`. Present only for a `docs_derived`\nsource the hub builds itself."
          },
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentationPage"
            },
            "description": "The documentation pages the latest document was written from. Present\nonly when `type` is `docs_derived`."
          },
          "requestMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SourceRequestMethod"
              }
            ],
            "description": "The method every fetch of `url` sends. `GET` for an `upload` source, which has no `url`."
          },
          "requestContentType": {
            "type": "string",
            "description": "The `content-type` of the body a `POST` sends. Absent for a `GET` and\nfor a `POST` with no body. The body itself is not listed: it can hold\nproject identifiers, and readers of a public API are anonymous."
          },
          "discoveredVia": {
            "type": "string",
            "description": "The discovery channel that surfaced this source - the harvester or\naggregator it came from (e.g. `scalar`, `apis.guru`, `well-known-probe`).\nAbsent for sources added by hand rather than through a seeding pipeline."
          },
          "isPrimary": {
            "type": "boolean",
            "description": "Whether this is the API's primary source."
          },
          "refetchEnabled": {
            "type": "boolean",
            "description": "Whether the source is refetched automatically (once a day) to pick up\nthe latest version. Always `false` for uploads, and for a `docs_derived`\nsource with no `extractor`."
          },
          "lastCheckedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the source was last checked for changes."
          },
          "lastStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SourceRefetchStatus"
              }
            ],
            "description": "Outcome of the most recent check."
          },
          "lastError": {
            "type": "string",
            "description": "Error message of the most recent failed check."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "One configured fetch source for an API."
      },
      "ApiSourceType": {
        "type": "string",
        "enum": [
          "direct_url",
          "github",
          "gitlab",
          "stainless",
          "google_discovery",
          "upload",
          "docs_derived"
        ],
        "description": "Where an API's schema document is fetched from."
      },
      "ApiTranslation": {
        "type": "object",
        "required": [
          "language",
          "slug",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "language": {
            "$ref": "#/components/schemas/ApiLanguage"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          }
        },
        "description": "An API's documents in one language: an API, or one of its translations.\n`slug` is the internal address; `htmlUrl` is the language URL."
      },
      "ApiVersion": {
        "type": "object",
        "required": [
          "label",
          "stability",
          "isDefault",
          "sortRank"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "The publisher's name for the version, verbatim: `v3`, `2026-03`, …"
          },
          "stability": {
            "$ref": "#/components/schemas/VersionStability"
          },
          "isDefault": {
            "type": "boolean",
            "description": "The version an API's page shows when none is selected."
          },
          "sortRank": {
            "type": "integer",
            "format": "int32",
            "description": "Display order, newest first (labels mix styles and never sort lexically)."
          },
          "releasedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Publisher release date, when known."
          },
          "eolAt": {
            "type": "string",
            "format": "date-time",
            "description": "Publisher end-of-support date, when known."
          }
        },
        "description": "A publisher-declared version of an API - `v3`, `2025-09`, `2022-11-28` -\nas distinct from a revision (a point-in-time snapshot of a version's\nschema). Minted from structural signals (paths, filenames, registries) or\nby curators; the long tail has none."
      },
      "ApiWebhookUrl": {
        "type": "string",
        "description": "A webhook destination as a request sends it: at most 2048 characters.",
        "maxLength": 2048
      },
      "AuthScheme": {
        "type": "string",
        "enum": [
          "apiKey",
          "http",
          "oauth2",
          "openIdConnect",
          "mutualTLS"
        ],
        "description": "An auth mechanism an API declares, normalised to the OpenAPI 3 vocabulary.\n\nA CLOSED set: these are search-facet values, derived from a spec's\n`securitySchemes` - or Swagger 2's `securityDefinitions`, whose `basic` maps\nto `http` so one vocabulary covers both dialects. A scraped spec declaring\nanything else contributes nothing rather than putting its invention in the\nfilter UI."
      },
      "BundleLimit": {
        "type": "string",
        "enum": [
          "referenced_files",
          "referenced_file_bytes",
          "referenced_file_depth",
          "root_bytes",
          "bundle_bytes"
        ],
        "description": "The limit a document reached while it was bundled."
      },
      "BundleRefusal": {
        "type": "object",
        "required": [
          "reason"
        ],
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/BundleRefusalReason"
          },
          "url": {
            "type": "string",
            "description": "The referenced file, as resolved, or the `$ref` as written for an upload."
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "The HTTP status the referenced file answered."
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BundleLimit"
              }
            ],
            "description": "The limit reached."
          },
          "limitValue": {
            "type": "integer",
            "format": "int32",
            "description": "The value of the limit reached."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong, in words, when the reason has more to say."
          }
        },
        "description": "The reason and the evidence for a document that was not bundled."
      },
      "BundleRefusalReason": {
        "type": "string",
        "enum": [
          "relative_refs_in_upload",
          "referenced_file_status",
          "referenced_file_unreachable",
          "referenced_file_blocked",
          "referenced_file_unparseable",
          "missing_pointer",
          "ref_loop",
          "limit"
        ],
        "description": "Why a document was not bundled with the files it refers to."
      },
      "CommitRef": {
        "type": "object",
        "required": [
          "sha",
          "message",
          "date"
        ],
        "properties": {
          "sha": {
            "type": "string",
            "description": "The commit SHA."
          },
          "message": {
            "type": "string",
            "description": "First line of the commit message."
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "description": "Commit (author) date."
          },
          "htmlUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Link to the commit on the host, when known."
          }
        },
        "description": "A commit a version's document was captured from (GitHub-sourced APIs)."
      },
      "DerivedProvenance": {
        "type": "object",
        "required": [
          "pages",
          "snapshotAt",
          "extractor"
        ],
        "properties": {
          "pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentationPage"
            },
            "description": "The documentation pages the document was written from."
          },
          "snapshotAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the pages were read."
          },
          "extractor": {
            "type": "string",
            "description": "The deterministic code that built the document, with its version where it\nhas one, e.g. \"docusaurus-openapi-docs embedded api data\n(docusaurus-plugin-openapi-docs 3.0.0-beta.10)\". Never a model."
          },
          "repairs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DerivedRepair"
            },
            "description": "The fixes made to errors in the vendor's own data."
          }
        },
        "description": "Where a `docs_derived` revision's document came from. The document carries\nthe same record in `info['x-skmtc-derived']`."
      },
      "DerivedRepair": {
        "type": "object",
        "required": [
          "repair",
          "at"
        ],
        "properties": {
          "repair": {
            "type": "string",
            "description": "The kind of fix, named by the extractor (e.g. `status-label`)."
          },
          "at": {
            "type": "string",
            "description": "JSON pointer into the document, to what the fix changed."
          }
        },
        "description": "A fix the extractor made to an error in the vendor's own data."
      },
      "DocsExtractor": {
        "type": "string",
        "enum": [
          "docusaurus-openapi-docs"
        ],
        "description": "The deterministic code that builds a `docs_derived` document from a\ndocumentation site, named by its id."
      },
      "DocumentFormat": {
        "type": "string",
        "enum": [
          "json",
          "yaml"
        ],
        "description": "The serialization of a stored schema document."
      },
      "DocumentationPage": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "checkedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the page was last read."
          },
          "changedAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the page's content last changed."
          },
          "contentHash": {
            "type": "string",
            "description": "SHA-256 of the content the page was read from."
          },
          "operationCount": {
            "type": "integer",
            "format": "int32",
            "description": "How many operations of the document came from this page."
          }
        },
        "description": "One documentation page a `docs_derived` document was written from."
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "badRequest",
          "unauthorized",
          "forbidden",
          "notFound",
          "conflict",
          "unprocessable",
          "gone",
          "payloadTooLarge",
          "unsupportedMediaType",
          "documentTooLarge",
          "documentRefersToOtherFiles",
          "marked",
          "webhookLimitReached",
          "rateLimited",
          "internal",
          "unavailable",
          "badGateway",
          "notImplemented"
        ],
        "description": "Machine-readable error category. Each value pairs with one HTTP status."
      },
      "ErrorDetail": {
        "type": "object",
        "required": [
          "message"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "Dotted path to the offending field, when applicable."
          },
          "message": {
            "type": "string",
            "description": "Human-readable explanation of this specific problem."
          }
        },
        "description": "One field-level detail attached to an `ApiError`."
      },
      "ExternalRefFile": {
        "type": "object",
        "required": [
          "path",
          "refs"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "The file as the `$ref` writes it, without its `#` fragment."
          },
          "refs": {
            "type": "integer",
            "format": "int32",
            "description": "How many `$ref`s point at this file."
          }
        },
        "description": "One file that a document's `$ref`s point at."
      },
      "ExternalRefs": {
        "type": "object",
        "required": [
          "fileCount",
          "refCount",
          "files"
        ],
        "properties": {
          "fileCount": {
            "type": "integer",
            "format": "int32",
            "description": "How many different files the `$ref`s point at."
          },
          "refCount": {
            "type": "integer",
            "format": "int32",
            "description": "How many `$ref`s point at another file."
          },
          "files": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalRefFile"
            },
            "description": "Up to 10 of those files, most referenced first."
          },
          "bundleRefusal": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BundleRefusal"
              }
            ],
            "description": "Why the hub could not bundle the referenced files into one document at\nimport or refetch. Absent for a document stored before bundling, and\nfor one whose refusal was not recorded."
          }
        },
        "description": "The `$ref`s in a document that point at other files."
      },
      "GetStartedActor": {
        "type": "string",
        "enum": [
          "agent",
          "human"
        ],
        "description": "Who does a sign-up step."
      },
      "GetStartedAgentPayment": {
        "type": "string",
        "enum": [
          "x402",
          "mpp",
          "acp"
        ],
        "description": "A protocol an agent uses to pay by itself."
      },
      "GetStartedAgenticScore": {
        "type": "number",
        "enum": [
          1,
          2,
          3
        ],
        "description": "How far an agent can sign up by itself. 1: humans only, an agent can only\nuse a key a person gives it. 2: an agent signs up, with human steps. 3: an\nagent signs up with no human step."
      },
      "GetStartedAgents": {
        "type": "object",
        "required": [
          "score",
          "steps",
          "facts",
          "sources"
        ],
        "properties": {
          "score": {
            "$ref": "#/components/schemas/GetStartedAgenticScore"
          },
          "firstAccess": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GetStartedFirstAccess"
              }
            ],
            "description": "Absent when the score is 1 or the pages do not say."
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedStep"
            }
          },
          "facts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedFact"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedSource"
            }
          }
        },
        "description": "Sign-up as an agent does it."
      },
      "GetStartedFact": {
        "type": "object",
        "required": [
          "kind",
          "tone",
          "label"
        ],
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/GetStartedFactKind"
          },
          "tone": {
            "$ref": "#/components/schemas/GetStartedFactTone"
          },
          "label": {
            "type": "string",
            "description": "The fact as it is shown, e.g. \"No phone number\", \"Phone number needed\"."
          }
        },
        "description": "One sign-up fact. The page shows `label`; it does not build it from `kind`."
      },
      "GetStartedFactKind": {
        "type": "string",
        "enum": [
          "agentSignUp",
          "emailCheck",
          "phoneNumber",
          "creditCard",
          "firstAccess"
        ],
        "description": "What a sign-up fact is about."
      },
      "GetStartedFactTone": {
        "type": "string",
        "enum": [
          "easier",
          "step",
          "limit",
          "unknown"
        ],
        "description": "How a sign-up fact affects starting with the API."
      },
      "GetStartedFirstAccess": {
        "type": "string",
        "enum": [
          "live",
          "sandbox",
          "restricted",
          "receiveOnly"
        ],
        "description": "What an agent can do right after its own sign-up."
      },
      "GetStartedFreeTier": {
        "type": "string",
        "enum": [
          "none",
          "trial",
          "free"
        ],
        "description": "Whether the API can be used without paying."
      },
      "GetStartedHumans": {
        "type": "object",
        "required": [
          "steps",
          "facts",
          "sources"
        ],
        "properties": {
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Numbered steps for a person. Inline Markdown: links only, each to an http(s) URL."
          },
          "facts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedFact"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedSource"
            }
          }
        },
        "description": "Sign-up as a person does it."
      },
      "GetStartedPart": {
        "type": "object",
        "required": [
          "rows",
          "sources"
        ],
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedRow"
            },
            "description": "Label and value rows, e.g. Method / Bearer token. Values are inline Markdown: links only, each to an http(s) URL."
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedSource"
            }
          }
        },
        "description": "The auth or pricing part of a Get started record."
      },
      "GetStartedPaymentMethod": {
        "type": "string",
        "enum": [
          "card",
          "invoice",
          "bankTransfer",
          "stablecoin"
        ],
        "description": "What you pay with."
      },
      "GetStartedPricing": {
        "type": "object",
        "required": [
          "rows",
          "sources",
          "paymentMethods",
          "agentPayments"
        ],
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedRow"
            },
            "description": "Label and value rows, e.g. Method / Bearer token. Values are inline Markdown: links only, each to an http(s) URL."
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedSource"
            }
          },
          "paymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedPaymentMethod"
            }
          },
          "agentPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GetStartedAgentPayment"
            },
            "description": "Empty when the docs name no way for an agent to pay."
          },
          "freeTier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GetStartedFreeTier"
              }
            ],
            "description": "Absent when the pages do not say."
          }
        },
        "description": "The pricing part of a Get started record. The rows are the text people read;\nthe lists hold the same facts as fixed values, so the catalog can be queried\nby how an API is paid for. A value the provider's pages do not state is left\nout."
      },
      "GetStartedRow": {
        "type": "object",
        "required": [
          "label",
          "value"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "description": "One label and value row of a Get started part."
      },
      "GetStartedSignUp": {
        "type": "object",
        "required": [
          "humans",
          "agents"
        ],
        "properties": {
          "humans": {
            "$ref": "#/components/schemas/GetStartedHumans"
          },
          "agents": {
            "$ref": "#/components/schemas/GetStartedAgents"
          }
        },
        "description": "The sign-up part of a Get started record, from two points of view."
      },
      "GetStartedSource": {
        "type": "object",
        "required": [
          "title",
          "url",
          "checkedAt"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "checkedAt": {
            "type": "string",
            "format": "date",
            "description": "The date the page was read."
          }
        },
        "description": "A provider page a Get started part was read from. The write route refuses a\n`url` that is not http(s) and a `checkedAt` that is not a real date."
      },
      "GetStartedStep": {
        "type": "object",
        "required": [
          "actor",
          "text"
        ],
        "properties": {
          "actor": {
            "$ref": "#/components/schemas/GetStartedActor"
          },
          "text": {
            "type": "string",
            "description": "Inline Markdown: links only, each to an http(s) URL."
          }
        },
        "description": "One numbered sign-up step on the Agents tab."
      },
      "ImportApiResult": {
        "type": "object",
        "required": [
          "api",
          "revision",
          "deduped",
          "isNewApi",
          "docsUrl",
          "diffsPending",
          "bundlePending"
        ],
        "properties": {
          "api": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Api"
              }
            ],
            "description": "The API the schema belongs to - newly created, or extended with a revision."
          },
          "revision": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiRevision"
              }
            ],
            "description": "The revision created - or the pre-existing one when `deduped` is true."
          },
          "deduped": {
            "type": "boolean",
            "description": "True when identical content already existed; no new revision was created."
          },
          "isNewApi": {
            "type": "boolean",
            "description": "True when the import created a brand-new API entry."
          },
          "docsUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "The absolute URL of the API's docs page."
          },
          "diffsPending": {
            "type": "boolean",
            "description": "True when the API's full revision history is still being archived + diffed in\nthe background - a large GitHub history deferred to the diff-backfill queue\nso the import responds without waiting on minutes of container diffs. The\nreturned `revision` (the newest) is complete; older revisions' diffs fill in\nshortly. False for single-revision imports, which diff inline."
          },
          "bundlePending": {
            "type": "boolean",
            "description": "True when the returned `revision` is not the bundle yet: its document\nrefers to other files, and their download and the bundle run in the\nbackground. False when the revision's document is complete."
          }
        },
        "description": "The outcome of importing a schema document into the catalog."
      },
      "LinkedRepositoryRun": {
        "type": "object",
        "required": [
          "repository",
          "sha",
          "runId",
          "runAttempt",
          "workflowRef",
          "htmlUrl"
        ],
        "properties": {
          "repository": {
            "type": "string",
            "description": "The repository, as `owner/name`."
          },
          "sha": {
            "type": "string",
            "description": "The commit the run ran on."
          },
          "runId": {
            "type": "string",
            "description": "GitHub's id of the workflow run."
          },
          "runAttempt": {
            "type": "string",
            "description": "The attempt of the run, from 1."
          },
          "workflowRef": {
            "type": "string",
            "description": "The workflow file and ref, e.g. `owner/name/.github/workflows/publish.yml@refs/heads/main`."
          },
          "htmlUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Link to the run attempt on GitHub."
          }
        },
        "description": "The GitHub Actions run of a linked repository that added a revision."
      },
      "LintCounts": {
        "type": "object",
        "required": [
          "error",
          "warn",
          "info",
          "hint"
        ],
        "properties": {
          "error": {
            "type": "integer",
            "format": "int32"
          },
          "warn": {
            "type": "integer",
            "format": "int32"
          },
          "info": {
            "type": "integer",
            "format": "int32"
          },
          "hint": {
            "type": "integer",
            "format": "int32"
          }
        },
        "description": "How many problems the document has of each severity."
      },
      "LintDocumentAtUrlRequest": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "An `https` URL of an OpenAPI document, in JSON or YAML."
          }
        },
        "description": "The address of a document to lint."
      },
      "LintProblem": {
        "type": "object",
        "required": [
          "message",
          "path",
          "line",
          "character"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The keys from the root of the document to the value the problem is in."
          },
          "line": {
            "type": "integer",
            "format": "int32",
            "description": "The line the problem starts on, from 1."
          },
          "character": {
            "type": "integer",
            "format": "int32",
            "description": "The character on the line the problem starts at, in UTF-16 code units, from 1."
          }
        },
        "description": "One problem in the document."
      },
      "LintReport": {
        "type": "object",
        "required": [
          "counts",
          "rules"
        ],
        "properties": {
          "counts": {
            "$ref": "#/components/schemas/LintCounts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LintRule"
            }
          }
        },
        "description": "What the linter found. The counts are of the whole document, whatever the\nquery. Rules with errors come first, then the rules with the most problems."
      },
      "LintRule": {
        "type": "object",
        "required": [
          "code",
          "severity",
          "count",
          "problems"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "The name of the rule, as `operation-operationId`."
          },
          "severity": {
            "$ref": "#/components/schemas/LintSeverity"
          },
          "count": {
            "type": "integer",
            "format": "int32",
            "description": "How many problems the rule has in the document."
          },
          "problems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LintProblem"
            },
            "description": "A page of the problems, in the order of the document."
          }
        },
        "description": "The problems of one rule with one severity."
      },
      "LintSeverity": {
        "type": "string",
        "enum": [
          "error",
          "warn",
          "info",
          "hint"
        ],
        "description": "How serious a problem is, as Spectral says it."
      },
      "OrgClaimStatus": {
        "type": "string",
        "enum": [
          "claimed",
          "unclaimed"
        ],
        "description": "Whether an organization account has been claimed by someone at the company\nit represents. An org is `unclaimed` when the system created it as a\nthird-party listing (it has an `emailDomain`) and nobody from that domain\nhas claimed it yet. An org a user creates is `claimed` from the start,\nwith or without an email domain."
      },
      "Pagination": {
        "type": "object",
        "required": [
          "hasMore"
        ],
        "properties": {
          "nextCursor": {
            "type": "string",
            "description": "Opaque cursor to pass back as `cursor` for the next page."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether a further page exists."
          },
          "totalCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total matching items, when the backend can compute it cheaply."
          },
          "offset": {
            "type": "integer",
            "format": "int32",
            "description": "Zero-based index of this page's first item within the full result set.\nReturned by offset-paginated lists (e.g. the control windowed tables) so a\nclient can map an absolute row index to a position in `items`, and by\n`GET /v1/apis` on a cursor page read with `withOffset`."
          }
        },
        "description": "Cursor-pagination metadata returned alongside every list page."
      },
      "PipelineAction": {
        "type": "object",
        "oneOf": [
          {
            "$ref": "#/components/schemas/PipelineGenerateAction"
          },
          {
            "$ref": "#/components/schemas/PipelinePullRequestAction"
          },
          {
            "$ref": "#/components/schemas/PipelinePublishAction"
          },
          {
            "$ref": "#/components/schemas/PipelineWebhookAction"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "generate": "#/components/schemas/PipelineGenerateAction",
            "pullRequest": "#/components/schemas/PipelinePullRequestAction",
            "publish": "#/components/schemas/PipelinePublishAction",
            "webhook": "#/components/schemas/PipelineWebhookAction"
          }
        },
        "description": "One action of a pipeline. `type` tells the actions apart."
      },
      "PipelineActionOutcome": {
        "type": "string",
        "enum": [
          "succeeded",
          "failed",
          "skipped",
          "notRun"
        ],
        "description": "What one action of a delivery came to.\n\n`skipped` - the action is set to skip.\n`notRun` - an earlier action failed, so the delivery stopped before it."
      },
      "PipelineActionResult": {
        "type": "object",
        "required": [
          "type",
          "outcome"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/PipelineActionType"
          },
          "outcome": {
            "$ref": "#/components/schemas/PipelineActionOutcome"
          },
          "reasonCode": {
            "type": "string",
            "description": "A stable machine-readable code, when the action failed or did not run."
          },
          "detail": {
            "type": "string",
            "description": "What the action did or why it failed, e.g. the pull request URL or the\npublished `name@version`."
          },
          "durationMs": {
            "type": "integer",
            "format": "int32",
            "description": "How long the action took; absent for an action that did not run."
          }
        },
        "description": "What one action of a delivery came to."
      },
      "PipelineActionType": {
        "type": "string",
        "enum": [
          "generate",
          "pullRequest",
          "publish",
          "webhook"
        ],
        "description": "The type of an action."
      },
      "PipelineDelivery": {
        "type": "object",
        "required": [
          "id",
          "status",
          "apiRevisionId",
          "actions",
          "results",
          "startedAt",
          "finishedAt",
          "createdAt",
          "url"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/uuid"
          },
          "status": {
            "$ref": "#/components/schemas/PipelineDeliveryStatus"
          },
          "apiRevisionId": {
            "type": "string",
            "description": "Id of the revision this delivery fired for."
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineAction"
            },
            "description": "The actions and their settings when the delivery started."
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineActionResult"
            },
            "description": "One result for each action that has finished, in the order of\n`actions`. Empty while the delivery is pending, and for a `skipped`\ndelivery."
          },
          "reasonCode": {
            "type": "string",
            "description": "A stable machine-readable code for a `skipped` or `failed` delivery,\ne.g. `pipeline_paused`."
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the delivery started; `null` while pending."
          },
          "finishedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the delivery reached a terminal state; `null` while non-terminal."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          }
        },
        "description": "One firing of a pipeline for one revision of its API. A delivery keeps a\ncopy of the actions it started with, so an edit to the pipeline applies\nfrom the next delivery."
      },
      "PipelineDeliveryStatus": {
        "type": "string",
        "enum": [
          "pending",
          "running",
          "succeeded",
          "failed",
          "superseded",
          "skipped"
        ],
        "description": "In-flight and terminal states of a delivery. `superseded` means a newer\nlatest revision came before the delivery finished. `skipped` means the\ndelivery did not act, e.g. for a pipeline paused before it ran; the delivery's `reasonCode` says why."
      },
      "PipelineGenerateAction": {
        "type": "object",
        "required": [
          "type",
          "skipped",
          "stack",
          "stackPin",
          "project"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "generate"
            ]
          },
          "skipped": {
            "type": "boolean",
            "description": "A skipped action keeps its settings and does not run; the delivery\nrecords it as `skipped`."
          },
          "stack": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StackRef"
              }
            ],
            "description": "The stack, at the version a delivery runs."
          },
          "stackPin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/StackVersionPin"
              }
            ],
            "description": "How the action pins its stack version - `latest` (follow newest), an\nexact published version, or `production` (follow the version of the\nstack's production server). Resolved to an exact version when a generation is created."
          },
          "project": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ProjectRef"
              }
            ],
            "description": "The project the hub made from the API and the stack."
          }
        },
        "description": "Makes code from the project of the subscription's API and this stack. The\nhub makes the private project (`{api}-{stack}`) from the two."
      },
      "PipelinePublishAction": {
        "type": "object",
        "required": [
          "type",
          "skipped",
          "packageName",
          "firstVersion",
          "credentialId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "publish"
            ]
          },
          "skipped": {
            "type": "boolean",
            "description": "A skipped action keeps its settings and does not run; the delivery\nrecords it as `skipped`."
          },
          "packageName": {
            "type": "string",
            "maxLength": 214,
            "pattern": "^@[a-z0-9][a-z0-9._~-]*/[a-z0-9][a-z0-9._~-]*$",
            "description": "The package name, e.g. `@acme/stripe-sdk`: scoped and lower-case, as\nGitHub's npm registry takes only scoped names."
          },
          "firstVersion": {
            "type": "string",
            "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
            "description": "The version of the first publish, e.g. `0.1.0`: `x.y.z`, numbers\nwithout leading zeros, no pre-release or build part."
          },
          "credentialId": {
            "type": "string",
            "description": "The stored packages token used to publish, e.g. `gcr_…`."
          }
        },
        "description": "Publishes the generated code, compiled, as a package on the GitHub npm\nregistry. Each delivery publishes the next patch version."
      },
      "PipelinePullRequestAction": {
        "type": "object",
        "required": [
          "type",
          "skipped",
          "repo",
          "credentialId"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "pullRequest"
            ]
          },
          "skipped": {
            "type": "boolean",
            "description": "A skipped action keeps its settings and does not run; the delivery\nrecords it as `skipped`."
          },
          "repo": {
            "type": "string",
            "description": "Target repository, `owner/name` form."
          },
          "baseBranch": {
            "type": "string",
            "description": "Base branch; omitted = the repository's default branch at delivery\ntime."
          },
          "credentialId": {
            "type": "string",
            "description": "The stored git credential used to push and open the PR (`gcr_…`)."
          }
        },
        "description": "Pushes the generated code to `repo` and keeps one pull request open\nagainst `baseBranch`."
      },
      "PipelineStatus": {
        "type": "string",
        "enum": [
          "active",
          "paused"
        ],
        "description": "Whether a pipeline fires. `paused` is entered by hand, or after 5 failed\ndeliveries in a row."
      },
      "PipelineSubscription": {
        "type": "object",
        "required": [
          "api"
        ],
        "properties": {
          "api": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiRef"
              }
            ],
            "description": "The API whose latest revision starts the pipeline."
          }
        },
        "description": "The trigger of a pipeline: which API starts it. A pipeline fires when a\nrevision becomes the latest revision of the API."
      },
      "PipelineWebhookAction": {
        "type": "object",
        "required": [
          "type",
          "skipped",
          "url"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "webhook"
            ]
          },
          "skipped": {
            "type": "boolean",
            "description": "A skipped action keeps its settings and does not run; the delivery\nrecords it as `skipped`."
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ApiWebhookUrl"
              }
            ],
            "description": "The destination. It must be a public HTTPS URL with no credentials in it;\nloopback, private and reserved addresses are rejected."
          }
        },
        "description": "Sends a signed delivery-result event to an HTTPS destination, after the\nother actions, also when one of them failed."
      },
      "PipelineWithSecret": {
        "type": "object",
        "required": [
          "id",
          "owner",
          "name",
          "status",
          "subscription",
          "actions",
          "consecutiveFailures",
          "lastDelivery",
          "viewer",
          "createdAt",
          "updatedAt",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/uuid"
          },
          "owner": {
            "$ref": "#/components/schemas/Account"
          },
          "name": {
            "type": "string",
            "description": "Unique within the owner account."
          },
          "status": {
            "$ref": "#/components/schemas/PipelineStatus"
          },
          "subscription": {
            "$ref": "#/components/schemas/PipelineSubscription"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PipelineAction"
            },
            "description": "At most one action of each type, in the order they run."
          },
          "consecutiveFailures": {
            "type": "integer",
            "format": "int32",
            "description": "Failed deliveries in a row; the auto-pause counter."
          },
          "lastDelivery": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PipelineDelivery"
              }
            ],
            "nullable": true,
            "description": "The newest delivery; `null` when the pipeline has none."
          },
          "viewer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ResourcePermissions"
              }
            ],
            "description": "The requesting viewer's effective permissions on this pipeline."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          },
          "webhookSecret": {
            "type": "string",
            "description": "The webhook action's signing secret in plaintext, shown only this once.\nPresent when the request added the webhook action, and on rotate. It\ncannot be read again; rotate it to get a new one."
          }
        },
        "description": "A pipeline with its webhook action's signing secret. Returned by create,\nupdate and rotate only."
      },
      "ProjectRef": {
        "type": "object",
        "required": [
          "account",
          "slug",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "account": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          }
        },
        "description": "A compact pointer to a project."
      },
      "PublishApiFromUrlRequest": {
        "type": "object",
        "required": [
          "url",
          "visibility"
        ],
        "properties": {
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "A URL to an OpenAPI / Swagger document - raw, a GitHub blob or a GitLab blob."
          },
          "owner": {
            "type": "string",
            "minLength": 1,
            "description": "Handle of the account that will own the API - the caller, or an\norganization the caller is a member of. Defaults to the caller."
          },
          "slug": {
            "type": "string",
            "minLength": 1,
            "description": "URL slug for the new API within the owner's namespace. Omit to derive one\nfrom the document's `info.title`. Ignored when the URL extends an API the\nowner has already imported."
          },
          "visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Visibility"
              }
            ],
            "description": "Visibility for a newly created API."
          }
        },
        "description": "Request body for publishing an API from a schema document at a URL."
      },
      "ResourcePermissions": {
        "type": "object",
        "required": [
          "canRead",
          "canWrite",
          "canAdmin"
        ],
        "properties": {
          "canRead": {
            "type": "boolean",
            "description": "May view the resource."
          },
          "canWrite": {
            "type": "boolean",
            "description": "May edit metadata and settings (the `writer` relation)."
          },
          "canAdmin": {
            "type": "boolean",
            "description": "May manage collaborators and delete the resource (the `admin` relation)."
          }
        },
        "description": "The requesting viewer's effective permissions on a resource - computed from\nthe authorization graph, mirroring GitHub's repo `permissions` block. The\nclient renders edit affordances off these, never off a client-side ownership\nguess. Role nesting: admin ⊇ write ⊇ read. Carried by every resource with\nan owner-managed settings surface (API, stack, generator, project)."
      },
      "SchemaContact": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Contact name, e.g. `Arcmira`."
          },
          "url": {
            "type": "string",
            "description": "The publisher's homepage, as declared."
          },
          "email": {
            "type": "string",
            "description": "Contact email address, as declared."
          }
        },
        "description": "Who publishes an API's schema document, from the document's\n`info.contact`. Values are as declared: a reader renders `url` as a link\nonly when it is `http` or `https`, and `email` only when it looks like an\naddress."
      },
      "SchemaExternalDocs": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "description": "Link to the documentation, as declared."
          },
          "description": {
            "type": "string",
            "description": "What the link is, e.g. `Official Arcmira API documentation`."
          }
        },
        "description": "The documentation an API's schema document points to, from its root\n`externalDocs`. `url` is as declared: a reader renders it as a link only\nwhen it is `http` or `https`."
      },
      "SchemaLicense": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "License name, e.g. `Apache 2.0`."
          },
          "spdxId": {
            "type": "string",
            "description": "SPDX identifier, e.g. `Apache-2.0` - OpenAPI 3.1 `info.license.identifier`."
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/url"
              }
            ],
            "description": "Link to the license text."
          }
        },
        "description": "The license of an API's schema document, from the document's\n`info.license`."
      },
      "SourceRefetchStatus": {
        "type": "string",
        "enum": [
          "updated",
          "unchanged",
          "error"
        ],
        "description": "Outcome of the most recent refetch attempt of an API source."
      },
      "SourceRequestMethod": {
        "type": "string",
        "enum": [
          "GET",
          "POST"
        ],
        "description": "The HTTP method every fetch of a URL source sends. Most sources are a GET.\nSome docs platforms (Apifox) serve the document only from a POST with a\nJSON body, which the source stores and sends as given."
      },
      "SpecType": {
        "type": "string",
        "enum": [
          "openapi",
          "swagger"
        ],
        "description": "The spec family of an ingested API document."
      },
      "StackRef": {
        "type": "object",
        "required": [
          "account",
          "slug",
          "version",
          "url",
          "htmlUrl"
        ],
        "properties": {
          "account": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "version": {
            "type": "string",
            "description": "Resolved or requested version."
          },
          "url": {
            "$ref": "#/components/schemas/url"
          },
          "htmlUrl": {
            "$ref": "#/components/schemas/url"
          }
        },
        "description": "A compact pointer to a stack, with the resolved or requested version."
      },
      "StackVersionPin": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/StackVersionPinMode"
          },
          "version": {
            "type": "string",
            "description": "Exact published stack version, e.g. `3.0.1`. Present iff `mode` is `exact`."
          }
        },
        "description": "A project's pin to its generator stack. `latest` follows the newest published\nversion; `exact` holds `version`; `production` follows the version of the\nstack's production server, so a promote moves the project from its next\ngeneration on. Each mode is resolved to an exact version when a generation is created.\nStack versions are breaking, so `exact` is the usual choice."
      },
      "StackVersionPinMode": {
        "type": "string",
        "enum": [
          "latest",
          "exact",
          "production"
        ],
        "description": "Whether a stack pin follows the newest version, holds an exact one, or\nfollows the stack's production server."
      },
      "VersionStability": {
        "type": "string",
        "enum": [
          "ga",
          "beta",
          "preview",
          "deprecated",
          "retired"
        ],
        "description": "Lifecycle stage of a publisher-declared API version. `retired` versions\nkeep their archived revision history."
      },
      "Visibility": {
        "type": "string",
        "enum": [
          "public",
          "private"
        ],
        "description": "Whether a resource is world-readable or restricted to its owner."
      },
      "url": {
        "type": "string",
        "description": "An absolute URL."
      },
      "uuid": {
        "type": "string",
        "format": "uuid",
        "description": "An RFC 4122 UUID, rendered as a string."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "Bearer"
      }
    }
  }
}
