{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-webhook-dispatches-schema.json",
  "title": "webhookDispatches",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-webhooks-api-openapi.yml#/components/schemas/webhookDispatches",
  "type": "array",
  "items": {
    "$ref": "#/$defs/webhookDispatch"
  },
  "$defs": {
    "webhookDispatch": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "companyId": {
          "type": "string"
        },
        "endpointId": {
          "type": "string"
        },
        "eventName": {
          "type": "string"
        },
        "eventTimestamp": {
          "type": "string",
          "format": "date-time"
        },
        "lastResponseCode": {
          "type": "string"
        },
        "sentAt": {
          "type": "string",
          "format": "date-time"
        },
        "firstSentAt": {
          "type": "string",
          "format": "date-time"
        },
        "retries": {
          "type": "integer"
        },
        "data": {
          "type": "object"
        }
      },
      "required": [
        "id",
        "companyId",
        "endpointId",
        "eventName",
        "eventTimestamp",
        "lastResponseCode",
        "sentAt",
        "firstSentAt",
        "retries",
        "data"
      ]
    }
  }
}