Skip to content

Commit 5717e3a

Browse files
committed
[Librarian] Regenerated @ be1009287706f9668165e2c57e337a331cc8e657 217af8d5996ea240f27310f5573ccec8426015bd
1 parent 528469a commit 5717e3a

File tree

44 files changed

+382
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+382
-112
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
twilio-go changelog
22
====================
3+
[2025-05-13] Version 1.26.1
4+
---------------------------
5+
**Library - Docs**
6+
- [PR #285](https://github.com/twilio/twilio-go/pull/285): add changelog for jwt v5. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
7+
8+
**Accounts**
9+
- Changes to add date_of_consent param in Bulk Consent API
10+
11+
**Api**
12+
- Change `friendly_name`, `date_created` and `date_updated` properties to type `string`.
13+
14+
**Twiml**
15+
- Update twiml definition for `<ConversationRelay>` and `<Assistant>`
16+
17+
318
[2025-05-05] Version 1.26.0
419
---------------------------
520
**Library - Chore**

rest/accounts/v1/consents_bulk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
// Optional parameters for the method 'CreateBulkConsents'
2323
type CreateBulkConsentsParams struct {
24-
// This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
24+
// This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty.
2525
Items *[]map[string]interface{} `json:"Items,omitempty"`
2626
}
2727

rest/accounts/v1/docs/ConsentsBulkApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a CreateBulkConsentsParams stru
2727

2828
Name | Type | Description
2929
------------- | ------------- | -------------
30-
**Items** | **[]map[string]interface{}** | This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
30+
**Items** | **[]map[string]interface{}** | This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty.
3131

3232
### Return type
3333

rest/api/v2010/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ Class | Method | HTTP request | Description
332332
- [ApiV2010Message](docs/ApiV2010Message.md)
333333
- [ListUsageTriggerResponse](docs/ListUsageTriggerResponse.md)
334334
- [ApiV2010UsageRecordLastMonth](docs/ApiV2010UsageRecordLastMonth.md)
335+
- [ApiV2010AccountAddressDependentPhoneNumberCapabilities](docs/ApiV2010AccountAddressDependentPhoneNumberCapabilities.md)
335336
- [ApiV2010RecordingAddOnResult](docs/ApiV2010RecordingAddOnResult.md)
336337
- [ListSipCredentialListResponse](docs/ListSipCredentialListResponse.md)
337338
- [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md)

rest/api/v2010/accounts_calls_transcriptions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type CreateRealtimeTranscriptionParams struct {
5151
Hints *string `json:"Hints,omitempty"`
5252
// The provider will add punctuation to recognition result
5353
EnableAutomaticPunctuation *bool `json:"EnableAutomaticPunctuation,omitempty"`
54-
// The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
54+
// The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
5555
IntelligenceService *string `json:"IntelligenceService,omitempty"`
5656
}
5757

rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Name | Type | Description
4646
**SpeechModel** | **string** | Recognition model used by the transcription engine, among those supported by the provider
4747
**Hints** | **string** | A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
4848
**EnableAutomaticPunctuation** | **bool** | The provider will add punctuation to recognition result
49-
**IntelligenceService** | **string** | The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
49+
**IntelligenceService** | **string** | The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
5050

5151
### Return type
5252

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ApiV2010AccountAddressDependentPhoneNumberCapabilities
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Mms** | **bool** | |[optional]
8+
**Sms** | **bool** | |[optional]
9+
**Voice** | **bool** | |[optional]
10+
**Fax** | **bool** | |[optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

rest/api/v2010/docs/ApiV2010DependentPhoneNumber.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020
**SmsMethod** | Pointer to **string** | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. |
2121
**SmsUrl** | Pointer to **string** | The URL we call when the phone number receives an incoming SMS message. |
2222
**AddressRequirements** | Pointer to [**string**](DependentPhoneNumberEnumAddressRequirement.md) | |
23-
**Capabilities** | Pointer to **map[string]interface{}** | The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. |
23+
**Capabilities** | Pointer to [**ApiV2010AccountAddressDependentPhoneNumberCapabilities**](ApiV2010AccountAddressDependentPhoneNumberCapabilities.md) | |
2424
**StatusCallback** | Pointer to **string** | The URL we call using the `status_callback_method` to send status information to your application. |
2525
**StatusCallbackMethod** | Pointer to **string** | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. |
2626
**ApiVersion** | Pointer to **string** | The API version used to start a new TwiML session. |
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Api
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
package openapi
16+
17+
// ApiV2010AccountAddressDependentPhoneNumberCapabilities The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
18+
type ApiV2010AccountAddressDependentPhoneNumberCapabilities struct {
19+
Mms bool `json:"mms,omitempty"`
20+
Sms bool `json:"sms,omitempty"`
21+
Voice bool `json:"voice,omitempty"`
22+
Fax bool `json:"fax,omitempty"`
23+
}

rest/api/v2010/model_api_v2010_dependent_phone_number.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ type ApiV2010DependentPhoneNumber struct {
4545
// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
4646
SmsMethod *string `json:"sms_method,omitempty"`
4747
// The URL we call when the phone number receives an incoming SMS message.
48-
SmsUrl *string `json:"sms_url,omitempty"`
49-
AddressRequirements *string `json:"address_requirements,omitempty"`
50-
// The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
51-
Capabilities *map[string]interface{} `json:"capabilities,omitempty"`
48+
SmsUrl *string `json:"sms_url,omitempty"`
49+
AddressRequirements *string `json:"address_requirements,omitempty"`
50+
Capabilities *ApiV2010AccountAddressDependentPhoneNumberCapabilities `json:"capabilities,omitempty"`
5251
// The URL we call using the `status_callback_method` to send status information to your application.
5352
StatusCallback *string `json:"status_callback,omitempty"`
5453
// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.

0 commit comments

Comments
 (0)