{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT \n            trigger_config AS \"trigger_config: _\", \n            owner, \n            email\n        FROM \n            capture_config\n        WHERE \n            workspace_id = $1\n            AND path = $2\n            AND is_flow = $3\n            AND trigger_kind = $4\n            AND last_client_ping > NOW() - INTERVAL '10 seconds'\n            AND (\n                $5::bool IS FALSE\n                OR (\n                    trigger_config IS NOT NULL\n                    AND trigger_config ->> 'delivery_type' = 'push'\n                )\n            )\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "trigger_config: _",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 1,
        "name": "owner",
        "type_info": "Varchar"
      },
      {
        "ordinal": 2,
        "name": "email",
        "type_info": "Varchar"
      }
    ],
    "parameters": {
      "Left": [
        "Text",
        "Text",
        "Bool",
        {
          "Custom": {
            "name": "trigger_kind",
            "kind": {
              "Enum": [
                "webhook",
                "http",
                "websocket",
                "kafka",
                "email",
                "nats",
                "postgres",
                "sqs",
                "mqtt",
                "gcp",
                "default_email",
                "nextcloud"
              ]
            }
          }
        },
        "Bool"
      ]
    },
    "nullable": [
      true,
      false,
      false
    ]
  },
  "hash": "23419adcd74c326d716527293eff518b42f4cdb33e034441015494bd26c172d2"
}
