Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix: TwilioAuthToken and SID set to Optional #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/vapi/types/twilio_phone_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from ..core.pydantic_utilities import UniversalBaseModel
import typing_extensions
import typing
from .twilio_phone_number_fallback_destination import TwilioPhoneNumberFallbackDestination
from .twilio_phone_number_fallback_destination import (
TwilioPhoneNumberFallbackDestination,
)
from ..core.serialization import FieldMetadata
import pydantic
import datetime as dt
Expand All @@ -12,7 +14,8 @@

class TwilioPhoneNumber(UniversalBaseModel):
fallback_destination: typing_extensions.Annotated[
typing.Optional[TwilioPhoneNumberFallbackDestination], FieldMetadata(alias="fallbackDestination")
typing.Optional[TwilioPhoneNumberFallbackDestination],
FieldMetadata(alias="fallbackDestination"),
] = pydantic.Field(default=None)
"""
This is the fallback destination an inbound call will be transferred to if:
Expand Down Expand Up @@ -92,12 +95,16 @@ class TwilioPhoneNumber(UniversalBaseModel):
These are the digits of the phone number you own on your Twilio.
"""

twilio_account_sid: typing_extensions.Annotated[str, FieldMetadata(alias="twilioAccountSid")] = pydantic.Field()
twilio_account_sid: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="twilioAccountSid")] = (
pydantic.Field(default=None)
)
"""
This is the Twilio Account SID for the phone number.
"""

twilio_auth_token: typing_extensions.Annotated[str, FieldMetadata(alias="twilioAuthToken")] = pydantic.Field()
twilio_auth_token: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="twilioAuthToken")] = (
pydantic.Field(default=None)
)
"""
This is the Twilio Auth Token for the phone number.
"""
Expand Down