{
  "$id": "spec-kitty-events/connector_provisioned_payload",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Payload for ConnectorProvisioned events.",
  "properties": {
    "actor_id": {
      "minLength": 1,
      "title": "Actor Id",
      "type": "string"
    },
    "actor_type": {
      "pattern": "^(human|service|system)$",
      "title": "Actor Type",
      "type": "string"
    },
    "config_hash": {
      "minLength": 1,
      "title": "Config Hash",
      "type": "string"
    },
    "connector_id": {
      "minLength": 1,
      "title": "Connector Id",
      "type": "string"
    },
    "connector_type": {
      "minLength": 1,
      "title": "Connector Type",
      "type": "string"
    },
    "credentials_ref": {
      "minLength": 1,
      "title": "Credentials Ref",
      "type": "string"
    },
    "endpoint_url": {
      "format": "uri",
      "minLength": 1,
      "title": "Endpoint Url",
      "type": "string"
    },
    "mission_id": {
      "minLength": 1,
      "title": "Mission Id",
      "type": "string"
    },
    "project_uuid": {
      "format": "uuid",
      "title": "Project Uuid",
      "type": "string"
    },
    "provider": {
      "minLength": 1,
      "title": "Provider",
      "type": "string"
    },
    "recorded_at": {
      "format": "date-time",
      "title": "Recorded At",
      "type": "string"
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "User Id"
    }
  },
  "required": [
    "connector_id",
    "connector_type",
    "provider",
    "mission_id",
    "project_uuid",
    "actor_id",
    "actor_type",
    "endpoint_url",
    "recorded_at",
    "credentials_ref",
    "config_hash"
  ],
  "title": "ConnectorProvisionedPayload",
  "type": "object"
}
