2024-07-28 15:20:05 -07:00
import datetime
from typing import Any , Dict , List , Literal , Optional , Union
from uuid import UUID
2023-08-17 12:48:13 -07:00
2024-07-28 15:20:05 -07:00
from pydantic import AnyUrl , Base64Bytes , BaseModel , ConfigDict
from pydantic_extra_types . phone_numbers import PhoneNumber
2023-08-17 12:48:13 -07:00
2024-07-28 15:20:05 -07:00
from . base64data import Base64Data
2023-08-17 12:48:13 -07:00
2023-11-29 00:39:14 -08:00
2023-11-28 23:50:50 -08:00
class IceServer ( BaseModel ) :
""" Representation of an ICE server used for STUN/TURN Used to initiate WebRTC connections based on <https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer> """
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
credential : Optional [ str ] = None
2023-08-17 12:48:13 -07:00
2023-11-28 23:50:50 -08:00
urls : List [ str ]
2023-08-17 12:48:13 -07:00
2023-11-28 23:50:50 -08:00
username : Optional [ str ] = None
2024-01-06 18:32:21 -08:00
model_config = ConfigDict ( protected_namespaces = ( ) )