Skip to content

Commit

Permalink
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f8…
Browse files Browse the repository at this point in the history
…0058eb415516baff0287784518c3a22be1b1b6
  • Loading branch information
twilio-dx committed Apr 4, 2024
1 parent fdee56a commit 6f2be22
Show file tree
Hide file tree
Showing 301 changed files with 583 additions and 3,012 deletions.
28 changes: 28 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
twilio-go changelog
====================
[2024-04-04] Version 1.20.0
---------------------------
**Library - Feature**
- [PR #239](https://github.com/twilio/twilio-go/pull/239): added support for application/json content type in request body. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Api**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Flex**
- Remove optional parameter from `plugins` and it to `plugin_versions`

**Lookups**
- Add new `pre_fill` package to the lookup response

**Messaging**
- Cleanup api.messaging.next-gen from Messaging Services endpoints
- Readd Sending-Window after fixing test failure

**Verify**
- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints

**Voice**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Twiml**
- Add new `token_type` value `payment-method` for `Pay` verb


[2024-04-01] Version 1.19.1
---------------------------
**Library - Chore**
Expand Down
4 changes: 4 additions & 0 deletions rest/api/v2010/accounts_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ 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 @@ -162,6 +163,7 @@ 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 @@ -195,6 +197,7 @@ 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 @@ -462,6 +465,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_available_phone_numbers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_calls_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ 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
13 changes: 7 additions & 6 deletions rest/api/v2010/accounts_conferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ func (c *ApiService) FetchConference(Sid string, params *FetchConferenceParams)
type ListConferenceParams struct {
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read.
PathAccountSid *string `json:"PathAccountSid,omitempty"`
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
DateCreated *string `json:"DateCreated,omitempty"`
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
DateCreatedBefore *string `json:"DateCreated&lt;,omitempty"`
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
DateCreatedAfter *string `json:"DateCreated&gt;,omitempty"`
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
DateUpdated *string `json:"DateUpdated,omitempty"`
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
DateUpdatedBefore *string `json:"DateUpdated&lt;,omitempty"`
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
DateUpdatedAfter *string `json:"DateUpdated&gt;,omitempty"`
// The string that identifies the Conference resources to read.
FriendlyName *string `json:"FriendlyName,omitempty"`
Expand Down Expand Up @@ -311,6 +311,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_conferences_participants.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_incoming_phone_numbers_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_incoming_phone_numbers_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ 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,6 +172,7 @@ 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: 4 additions & 0 deletions rest/api/v2010/accounts_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ 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 @@ -81,6 +82,7 @@ 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 @@ -114,6 +116,7 @@ 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 @@ -306,6 +309,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_outgoing_caller_ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ 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: 2 additions & 0 deletions rest/api/v2010/accounts_recordings_transcriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ 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 @@ -68,6 +69,7 @@ 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: 3 additions & 0 deletions rest/api/v2010/accounts_signing_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ 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 @@ -115,6 +116,7 @@ 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 @@ -307,6 +309,7 @@ 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: 1 addition & 0 deletions rest/api/v2010/accounts_usage_triggers.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ 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
12 changes: 6 additions & 6 deletions rest/api/v2010/docs/AccountsConferencesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ Other parameters are passed through a pointer to a ListConferenceParams struct
Name | Type | Description
------------- | ------------- | -------------
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read.
**DateCreated** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
**DateCreatedBefore** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
**DateCreatedAfter** | **string** | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
**DateUpdated** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
**DateUpdatedBefore** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
**DateUpdatedAfter** | **string** | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
**DateCreated** | **string** | Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
**DateCreatedBefore** | **string** | Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
**DateCreatedAfter** | **string** | Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
**DateUpdated** | **string** | Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
**DateUpdatedBefore** | **string** | Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
**DateUpdatedAfter** | **string** | Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
**FriendlyName** | **string** | The string that identifies the Conference resources to read.
**Status** | **string** | The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
Expand Down
Loading

0 comments on commit 6f2be22

Please sign in to comment.