{
  "name": "GitHubWebhook",
  "plane": "internal",
  "terraformEligible": false,
  "subProduct": "runner",
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudDeploy.Runner.GitHubWebhook",
    "service": "deploy"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "deliveryId": {
        "type": "string"
      },
      "event": {
        "type": "string"
      },
      "payload": {
        "description": "Raw GitHub JSON body. HMAC is over these bytes — not a re-serialized Value.",
        "type": "string"
      },
      "signature": {
        "type": "string"
      }
    },
    "required": [
      "deliveryId",
      "event",
      "payload",
      "signature"
    ],
    "title": "GitHubWebhookRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "deliveryId": {
        "type": "string"
      },
      "duplicate": {
        "type": "boolean"
      },
      "githubJobId": {
        "type": "string"
      },
      "status": {
        "type": "string"
      }
    },
    "required": [
      "deliveryId",
      "duplicate",
      "githubJobId",
      "status"
    ],
    "title": "GitHubWebhookStatusResponse",
    "type": "object"
  }
}
