Skip to content

Commit

Permalink
chore: preview changes by twiml gather
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Jan 31, 2025
1 parent 25276eb commit 6e74adb
Show file tree
Hide file tree
Showing 173 changed files with 62 additions and 530 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
twilio-go changelog
====================
[2025-01-31] Version 1.24.0
---------------------------
**Twiml**
- Convert Twiml Attribute `speechModel` of type enum to string **(breaking change)**


[2025-01-28] Version 1.23.11
----------------------------
**Api**
Expand Down
1 change: 0 additions & 1 deletion rest/accounts/v1/consents_bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (params *CreateBulkConsentsParams) SetItems(Items []interface{}) *CreateBul
return params
}

//
func (c *ApiService) CreateBulkConsents(params *CreateBulkConsentsParams) (*AccountsV1BulkConsents, error) {
path := "/v1/Consents/Bulk"

Expand Down
1 change: 0 additions & 1 deletion rest/accounts/v1/contacts_bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func (params *CreateBulkContactsParams) SetItems(Items []interface{}) *CreateBul
return params
}

//
func (c *ApiService) CreateBulkContacts(params *CreateBulkContactsParams) (*AccountsV1BulkContacts, error) {
path := "/v1/Contacts/Bulk"

Expand Down
4 changes: 0 additions & 4 deletions rest/api/v2010/accounts_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *C
return params
}

//
func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -165,7 +164,6 @@ func (params *DeleteAddressParams) SetPathAccountSid(PathAccountSid string) *Del
return params
}

//
func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -201,7 +199,6 @@ func (params *FetchAddressParams) SetPathAccountSid(PathAccountSid string) *Fetc
return params
}

//
func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -473,7 +470,6 @@ func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *U
return params
}

//
func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_available_phone_numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco
return params
}

//
func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) {
path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_calls_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri
return params
}

//
func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_conferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ func (params *UpdateConferenceParams) SetAnnounceMethod(AnnounceMethod string) *
return params
}

//
func (c *ApiService) UpdateConference(Sid string, params *UpdateConferenceParams) (*ApiV2010Conference, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_conferences_participants.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar
return params
}

//
func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_incoming_phone_numbers_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberLocalParams) SetBundleSid(BundleSid strin
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberLocal(params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010IncomingPhoneNumberLocal, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_incoming_phone_numbers_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberMobileParams) SetBundleSid(BundleSid stri
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberMobile(params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010IncomingPhoneNumberMobile, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func (params *CreateIncomingPhoneNumberTollFreeParams) SetBundleSid(BundleSid st
return params
}

//
func (c *ApiService) CreateIncomingPhoneNumberTollFree(params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010IncomingPhoneNumberTollFree, error) {
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
4 changes: 0 additions & 4 deletions rest/api/v2010/accounts_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (params *CreateNewKeyParams) SetFriendlyName(FriendlyName string) *CreateNe
return params
}

//
func (c *ApiService) CreateNewKey(params *CreateNewKeyParams) (*ApiV2010NewKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -84,7 +83,6 @@ func (params *DeleteKeyParams) SetPathAccountSid(PathAccountSid string) *DeleteK
return params
}

//
func (c *ApiService) DeleteKey(Sid string, params *DeleteKeyParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -120,7 +118,6 @@ func (params *FetchKeyParams) SetPathAccountSid(PathAccountSid string) *FetchKey
return params
}

//
func (c *ApiService) FetchKey(Sid string, params *FetchKeyParams) (*ApiV2010Key, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -317,7 +314,6 @@ func (params *UpdateKeyParams) SetFriendlyName(FriendlyName string) *UpdateKeyPa
return params
}

//
func (c *ApiService) UpdateKey(Sid string, params *UpdateKeyParams) (*ApiV2010Key, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_outgoing_caller_ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (params *CreateValidationRequestParams) SetStatusCallbackMethod(StatusCallb
return params
}

//
func (c *ApiService) CreateValidationRequest(params *CreateValidationRequestParams) (*ApiV2010ValidationRequest, error) {
path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
2 changes: 0 additions & 2 deletions rest/api/v2010/accounts_recordings_transcriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *DeleteRecordingTranscriptionParams) SetPathAccountSid(PathAccountS
return params
}

//
func (c *ApiService) DeleteRecordingTranscription(RecordingSid string, Sid string, params *DeleteRecordingTranscriptionParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -71,7 +70,6 @@ func (params *FetchRecordingTranscriptionParams) SetPathAccountSid(PathAccountSi
return params
}

//
func (c *ApiService) FetchRecordingTranscription(RecordingSid string, Sid string, params *FetchRecordingTranscriptionParams) (*ApiV2010RecordingTranscription, error) {
path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
3 changes: 0 additions & 3 deletions rest/api/v2010/accounts_signing_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func (params *DeleteSigningKeyParams) SetPathAccountSid(PathAccountSid string) *
return params
}

//
func (c *ApiService) DeleteSigningKey(Sid string, params *DeleteSigningKeyParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -120,7 +119,6 @@ func (params *FetchSigningKeyParams) SetPathAccountSid(PathAccountSid string) *F
return params
}

//
func (c *ApiService) FetchSigningKey(Sid string, params *FetchSigningKeyParams) (*ApiV2010SigningKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down Expand Up @@ -317,7 +315,6 @@ func (params *UpdateSigningKeyParams) SetFriendlyName(FriendlyName string) *Upda
return params
}

//
func (c *ApiService) UpdateSigningKey(Sid string, params *UpdateSigningKeyParams) (*ApiV2010SigningKey, error) {
path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
1 change: 0 additions & 1 deletion rest/api/v2010/accounts_usage_triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func (params *DeleteUsageTriggerParams) SetPathAccountSid(PathAccountSid string)
return params
}

//
func (c *ApiService) DeleteUsageTrigger(Sid string, params *DeleteUsageTriggerParams) error {
path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json"
if params != nil && params.PathAccountSid != nil {
Expand Down
3 changes: 0 additions & 3 deletions rest/bulkexports/v1/exports_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ func (params *CreateExportCustomJobParams) SetEmail(Email string) *CreateExportC
return params
}

//
func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportCustomJob, error) {
path := "/v1/Exports/{ResourceType}/Jobs"
path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1)
Expand Down Expand Up @@ -108,7 +107,6 @@ func (c *ApiService) CreateExportCustomJob(ResourceType string, params *CreateEx
return ps, err
}

//
func (c *ApiService) DeleteJob(JobSid string) error {
path := "/v1/Exports/Jobs/{JobSid}"
path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1)
Expand All @@ -128,7 +126,6 @@ func (c *ApiService) DeleteJob(JobSid string) error {
return nil
}

//
func (c *ApiService) FetchJob(JobSid string) (*BulkexportsV1Job, error) {
path := "/v1/Exports/Jobs/{JobSid}"
path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1)
Expand Down
4 changes: 0 additions & 4 deletions rest/chat/v1/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredential
return params
}

//
func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) {
path := "/v1/Credentials"

Expand Down Expand Up @@ -116,7 +115,6 @@ func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Cr
return ps, err
}

//
func (c *ApiService) DeleteCredential(Sid string) error {
path := "/v1/Credentials/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand All @@ -136,7 +134,6 @@ func (c *ApiService) DeleteCredential(Sid string) error {
return nil
}

//
func (c *ApiService) FetchCredential(Sid string) (*ChatV1Credential, error) {
path := "/v1/Credentials/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand Down Expand Up @@ -340,7 +337,6 @@ func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredential
return params
}

//
func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) {
path := "/v1/Credentials/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand Down
4 changes: 0 additions & 4 deletions rest/chat/v1/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateS
return params
}

//
func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) {
path := "/v1/Services"

Expand Down Expand Up @@ -62,7 +61,6 @@ func (c *ApiService) CreateService(params *CreateServiceParams) (*ChatV1Service,
return ps, err
}

//
func (c *ApiService) DeleteService(Sid string) error {
path := "/v1/Services/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand All @@ -82,7 +80,6 @@ func (c *ApiService) DeleteService(Sid string) error {
return nil
}

//
func (c *ApiService) FetchService(Sid string) (*ChatV1Service, error) {
path := "/v1/Services/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand Down Expand Up @@ -574,7 +571,6 @@ func (params *UpdateServiceParams) SetLimitsUserChannels(LimitsUserChannels int)
return params
}

//
func (c *ApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) {
path := "/v1/Services/{Sid}"
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
Expand Down
4 changes: 0 additions & 4 deletions rest/chat/v1/services_channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func (params *CreateChannelParams) SetType(Type string) *CreateChannelParams {
return params
}

//
func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV1Channel, error) {
path := "/v1/Services/{ServiceSid}/Channels"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down Expand Up @@ -90,7 +89,6 @@ func (c *ApiService) CreateChannel(ServiceSid string, params *CreateChannelParam
return ps, err
}

//
func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error {
path := "/v1/Services/{ServiceSid}/Channels/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand All @@ -111,7 +109,6 @@ func (c *ApiService) DeleteChannel(ServiceSid string, Sid string) error {
return nil
}

//
func (c *ApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV1Channel, error) {
path := "/v1/Services/{ServiceSid}/Channels/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down Expand Up @@ -311,7 +308,6 @@ func (params *UpdateChannelParams) SetAttributes(Attributes string) *UpdateChann
return params
}

//
func (c *ApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV1Channel, error) {
path := "/v1/Services/{ServiceSid}/Channels/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down
3 changes: 0 additions & 3 deletions rest/chat/v1/services_channels_invites.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (params *CreateInviteParams) SetRoleSid(RoleSid string) *CreateInviteParams
return params
}

//
func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV1Invite, error) {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down Expand Up @@ -73,7 +72,6 @@ func (c *ApiService) CreateInvite(ServiceSid string, ChannelSid string, params *
return ps, err
}

//
func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) error {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand All @@ -95,7 +93,6 @@ func (c *ApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid stri
return nil
}

//
func (c *ApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Invite, error) {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down
4 changes: 0 additions & 4 deletions rest/chat/v1/services_channels_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (params *CreateMemberParams) SetRoleSid(RoleSid string) *CreateMemberParams
return params
}

//
func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV1Member, error) {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down Expand Up @@ -73,7 +72,6 @@ func (c *ApiService) CreateMember(ServiceSid string, ChannelSid string, params *
return ps, err
}

//
func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) error {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand All @@ -95,7 +93,6 @@ func (c *ApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid stri
return nil
}

//
func (c *ApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV1Member, error) {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down Expand Up @@ -291,7 +288,6 @@ func (params *UpdateMemberParams) SetLastConsumedMessageIndex(LastConsumedMessag
return params
}

//
func (c *ApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV1Member, error) {
path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}"
path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1)
Expand Down
Loading

0 comments on commit 6e74adb

Please sign in to comment.