Optional connection token presented by the SDK client during the handshake.
| 1203 | # Internal: this type is an internal SDK API and is not part of the public surface. |
| 1204 | @dataclass |
| 1205 | class _ConnectRequest: |
| 1206 | """Optional connection token presented by the SDK client during the handshake.""" |
| 1207 | |
| 1208 | token: str | None = None |
| 1209 | """Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN""" |
| 1210 | |
| 1211 | @staticmethod |
| 1212 | def from_dict(obj: Any) -> '_ConnectRequest': |
| 1213 | assert isinstance(obj, dict) |
| 1214 | token = from_union([from_str, from_none], obj.get("token")) |
| 1215 | return _ConnectRequest(token) |
| 1216 | |
| 1217 | def to_dict(self) -> dict: |
| 1218 | result: dict = {} |
| 1219 | if self.token is not None: |
| 1220 | result["token"] = from_union([from_str, from_none], self.token) |
| 1221 | return result |
| 1222 | |
| 1223 | # Experimental: this type is part of an experimental API and may change or be removed. |
| 1224 | # Internal: this type is an internal SDK API and is not part of the public surface. |
no outgoing calls
no test coverage detected
searching dependent graphs…