/** Auto-generated by web/gen/tflow_js.py */
import type {HTTPFlow, TCPFlow, UDPFlow, DNSFlow} from '../../flow';
export function THTTPFlow(): Required<HTTPFlow> {
    return     {
        "client_conn": {
            "alpn": "http/1.1",
            "cert": undefined,
            "cipher": "cipher",
            "id": "4a18d1a0-50a1-48dd-9aa6-d45d74282939",
            "peername": [
                "127.0.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "",
                0
            ],
            "timestamp_end": 946681206,
            "timestamp_start": 946681200,
            "timestamp_tls_setup": 946681201,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "comment": "I'm a comment!",
        "error": {
            "msg": "error",
            "timestamp": 946681207.0
        },
        "id": "d91165be-ca1f-4612-88a9-c0f8696f3e29",
        "intercepted": false,
        "is_replay": undefined,
        "marked": "",
        "modified": false,
        "request": {
            "contentHash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
            "contentLength": 7,
            "headers": [
                [
                    "header",
                    "qvalue"
                ],
                [
                    "content-length",
                    "7"
                ]
            ],
            "host": "address",
            "http_version": "HTTP/1.1",
            "method": "GET",
            "path": "/path",
            "port": 22,
            "pretty_host": "address",
            "scheme": "http",
            "timestamp_end": 946681201,
            "timestamp_start": 946681200
        },
        "response": {
            "contentHash": "ab530a13e45914982b79f9b7e3fba994cfd1f3fb22f71cea1afbf02b460c6d1d",
            "contentLength": 7,
            "headers": [
                [
                    "header-response",
                    "svalue"
                ],
                [
                    "content-length",
                    "7"
                ]
            ],
            "http_version": "HTTP/1.1",
            "reason": "OK",
            "status_code": 200,
            "timestamp_end": 946681203,
            "timestamp_start": 946681202,
            "trailers": [
                [
                    "trailer",
                    "qvalue"
                ]
            ]
        },
        "server_conn": {
            "address": [
                "address",
                22
            ],
            "alpn": undefined,
            "cert": {
                "altnames": [
                    "example.mitmproxy.org"
                ],
                "issuer": [
                    [
                        "C",
                        "AU"
                    ],
                    [
                        "ST",
                        "Some-State"
                    ],
                    [
                        "O",
                        "Internet Widgits Pty Ltd"
                    ]
                ],
                "keyinfo": [
                    "RSA",
                    2048
                ],
                "notafter": 2235107007,
                "notbefore": 1604387007,
                "serial": "247170098335718583458667965517443538258472437317",
                "sha256": "e5f62a1175031b6feb959bc8e6dd0f8e2546dbbf7c32da39534309d8aa92967c",
                "subject": [
                    [
                        "C",
                        "AU"
                    ],
                    [
                        "ST",
                        "Some-State"
                    ],
                    [
                        "O",
                        "Internet Widgits Pty Ltd"
                    ]
                ]
            },
            "cipher": undefined,
            "id": "f087e7b2-6d0a-41a8-a8f0-e1a4761395f8",
            "peername": [
                "192.168.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "address",
                22
            ],
            "timestamp_end": 946681205,
            "timestamp_start": 946681202,
            "timestamp_tcp_setup": 946681203,
            "timestamp_tls_setup": 946681204,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "timestamp_created": 946681200,
        "type": "http",
        "websocket": {
            "close_code": 1000,
            "close_reason": "Close Reason",
            "closed_by_client": false,
            "messages_meta": {
                "contentLength": 29,
                "count": 3,
                "timestamp_last": 946681205
            },
            "timestamp_end": 946681205
        }
    }
}
export function TTCPFlow(): Required<TCPFlow> {
    return     {
        "client_conn": {
            "alpn": "http/1.1",
            "cert": undefined,
            "cipher": "cipher",
            "id": "8be32b99-a0b3-446e-93bc-b29982fe1322",
            "peername": [
                "127.0.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "",
                0
            ],
            "timestamp_end": 946681206,
            "timestamp_start": 946681200,
            "timestamp_tls_setup": 946681201,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "comment": "",
        "error": {
            "msg": "error",
            "timestamp": 946681207.0
        },
        "id": "2ea7012b-21b5-4f8f-98cd-d49819954001",
        "intercepted": false,
        "is_replay": undefined,
        "marked": "",
        "messages_meta": {
            "contentLength": 12,
            "count": 2,
            "timestamp_last": 946681204.5
        },
        "modified": false,
        "server_conn": {
            "address": [
                "address",
                22
            ],
            "alpn": undefined,
            "cert": undefined,
            "cipher": undefined,
            "id": "e33bb2cd-c07e-4214-9a8e-3a8f85f25200",
            "peername": [
                "192.168.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "address",
                22
            ],
            "timestamp_end": 946681205,
            "timestamp_start": 946681202,
            "timestamp_tcp_setup": 946681203,
            "timestamp_tls_setup": 946681204,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "timestamp_created": 946681200,
        "type": "tcp"
    }
}
export function TUDPFlow(): Required<UDPFlow> {
    return     {
        "client_conn": {
            "alpn": "http/1.1",
            "cert": undefined,
            "cipher": "cipher",
            "id": "0a8833da-88e4-429d-ac54-61cda8a7f91c",
            "peername": [
                "127.0.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "",
                0
            ],
            "timestamp_end": 946681206,
            "timestamp_start": 946681200,
            "timestamp_tls_setup": 946681201,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "comment": "",
        "error": {
            "msg": "error",
            "timestamp": 946681207.0
        },
        "id": "f9f7b2b9-7727-4477-822d-d3526e5b8951",
        "intercepted": false,
        "is_replay": undefined,
        "marked": "",
        "messages_meta": {
            "contentLength": 12,
            "count": 2,
            "timestamp_last": 946681204.5
        },
        "modified": false,
        "server_conn": {
            "address": [
                "address",
                22
            ],
            "alpn": undefined,
            "cert": undefined,
            "cipher": undefined,
            "id": "c49f9c2b-a729-4b16-9212-d181717e294b",
            "peername": [
                "192.168.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "address",
                22
            ],
            "timestamp_end": 946681205,
            "timestamp_start": 946681202,
            "timestamp_tcp_setup": 946681203,
            "timestamp_tls_setup": 946681204,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "timestamp_created": 946681200,
        "type": "udp"
    }
}
export function TDNSFlow(): Required<DNSFlow> {
    return     {
        "client_conn": {
            "alpn": "http/1.1",
            "cert": undefined,
            "cipher": "cipher",
            "id": "0b4cc0a3-6acb-4880-81c0-1644084126fc",
            "peername": [
                "127.0.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "",
                0
            ],
            "timestamp_end": 946681206,
            "timestamp_start": 946681200,
            "timestamp_tls_setup": 946681201,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "comment": "",
        "error": {
            "msg": "error",
            "timestamp": 946681207.0
        },
        "id": "5434da94-1017-42fa-872d-a189508d48e4",
        "intercepted": false,
        "is_replay": undefined,
        "marked": "",
        "modified": false,
        "request": {
            "additionals": [],
            "answers": [],
            "authoritative_answer": false,
            "authorities": [],
            "id": 42,
            "op_code": "QUERY",
            "query": true,
            "questions": [
                {
                    "class": "IN",
                    "name": "dns.google",
                    "type": "A"
                }
            ],
            "recursion_available": false,
            "recursion_desired": true,
            "response_code": "NOERROR",
            "size": 0,
            "status_code": 200,
            "timestamp": 946681200,
            "truncation": false
        },
        "response": {
            "additionals": [],
            "answers": [
                {
                    "class": "IN",
                    "data": "8.8.8.8",
                    "name": "dns.google",
                    "ttl": 32,
                    "type": "A"
                },
                {
                    "class": "IN",
                    "data": "8.8.4.4",
                    "name": "dns.google",
                    "ttl": 32,
                    "type": "A"
                }
            ],
            "authoritative_answer": false,
            "authorities": [],
            "id": 42,
            "op_code": "QUERY",
            "query": false,
            "questions": [
                {
                    "class": "IN",
                    "name": "dns.google",
                    "type": "A"
                }
            ],
            "recursion_available": true,
            "recursion_desired": true,
            "response_code": "NOERROR",
            "size": 8,
            "status_code": 200,
            "timestamp": 946681201,
            "truncation": false
        },
        "server_conn": {
            "address": [
                "address",
                22
            ],
            "alpn": undefined,
            "cert": undefined,
            "cipher": undefined,
            "id": "db5294af-c008-4098-a320-a94f901eaf2f",
            "peername": [
                "192.168.0.1",
                22
            ],
            "sni": "address",
            "sockname": [
                "address",
                22
            ],
            "timestamp_end": 946681205,
            "timestamp_start": 946681202,
            "timestamp_tcp_setup": 946681203,
            "timestamp_tls_setup": 946681204,
            "tls_established": true,
            "tls_version": "TLSv1.2"
        },
        "timestamp_created": 946681200,
        "type": "dns"
    }
}
