sinch.domains.number_lookup.models.v1.shared package

class sinch.domains.number_lookup.models.v1.shared.Line(
*,
carrier: Annotated[str, Strict(strict=True)] | None = None,
type: Annotated[str, Strict(strict=True)] | None = None,
mobileCountryCode: Annotated[str, Strict(strict=True)] | None = None,
mobileNetworkCode: Annotated[str, Strict(strict=True)] | None = None,
ported: Annotated[bool, Strict(strict=True)] | None = None,
portingDate: datetime | None = None,
error: LookupError | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • carrier (Annotated[str, Strict(strict=True)] | None)

  • type (Annotated[str, Strict(strict=True)] | None)

  • mobileCountryCode (Annotated[str, Strict(strict=True)] | None)

  • mobileNetworkCode (Annotated[str, Strict(strict=True)] | None)

  • ported (Annotated[bool, Strict(strict=True)] | None)

  • portingDate (datetime | None)

  • error (LookupError | None)

  • extra_data (Any)

carrier: Annotated[str, Strict(strict=True)] | None
type: Annotated[str, Strict(strict=True)] | None
mobile_country_code: Annotated[str, Strict(strict=True)] | None
mobile_network_code: Annotated[str, Strict(strict=True)] | None
ported: Annotated[bool, Strict(strict=True)] | None
porting_date: datetime | None
error: LookupError | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sinch.domains.number_lookup.models.v1.shared.SimSwap(
*,
swapped: Annotated[bool, Strict(strict=True)] | None = None,
swapPeriod: Literal['Undefined', 'SP4H', 'SP12H', 'SP24H', 'SP48H', 'SP5D', 'SP7D', 'SP14D', 'SP30D', 'SPMAX'] | Annotated[str, Strict(strict=True)] | None = None,
error: LookupError | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • swapped (Annotated[bool, Strict(strict=True)] | None)

  • swapPeriod (Literal['Undefined', 'SP4H', 'SP12H', 'SP24H', 'SP48H', 'SP5D', 'SP7D', 'SP14D', 'SP30D', 'SPMAX'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • error (LookupError | None)

  • extra_data (Any)

swapped: Annotated[bool, Strict(strict=True)] | None
swap_period: Literal['Undefined', 'SP4H', 'SP12H', 'SP24H', 'SP48H', 'SP5D', 'SP7D', 'SP14D', 'SP30D', 'SPMAX'] | Annotated[str, Strict(strict=True)] | None
error: LookupError | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sinch.domains.number_lookup.models.v1.shared.VoIPDetection(
*,
probability: Literal['Unknown', 'High', 'Likely', 'Low'] | Annotated[str, Strict(strict=True)] | None = None,
error: LookupError | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • probability (Literal['Unknown', 'High', 'Likely', 'Low'] | ~typing.Annotated[str, ~pydantic.types.Strict(strict=True)] | None)

  • error (LookupError | None)

  • extra_data (Any)

probability: Literal['Unknown', 'High', 'Likely', 'Low'] | Annotated[str, Strict(strict=True)] | None
error: LookupError | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sinch.domains.number_lookup.models.v1.shared.Rnd(
*,
disconnected: Annotated[bool, Strict(strict=True)] | None = None,
error: LookupError | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • disconnected (Annotated[bool, Strict(strict=True)] | None)

  • error (LookupError | None)

  • extra_data (Any)

disconnected: Annotated[bool, Strict(strict=True)] | None
error: LookupError | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sinch.domains.number_lookup.models.v1.shared.LookupError(
*,
status: Annotated[int, Strict(strict=True)] | None = None,
title: Annotated[str, Strict(strict=True)] | None = None,
detail: Annotated[str, Strict(strict=True)] | None = None,
type: Annotated[str, Strict(strict=True)] | None = None,
**extra_data: Any,
)[source]

Bases: SnakeCaseExtrasModel

Parameters:
  • status (Annotated[int, Strict(strict=True)] | None)

  • title (Annotated[str, Strict(strict=True)] | None)

  • detail (Annotated[str, Strict(strict=True)] | None)

  • type (Annotated[str, Strict(strict=True)] | None)

  • extra_data (Any)

status: Annotated[int, Strict(strict=True)] | None
title: Annotated[str, Strict(strict=True)] | None
detail: Annotated[str, Strict(strict=True)] | None
type: Annotated[str, Strict(strict=True)] | None
model_config = {'extra': 'allow', 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].