Skip to content

Commit 5d2f615

Browse files
committed
[Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd
1 parent e6a8445 commit 5d2f615

File tree

286 files changed

+1860
-8104
lines changed

Some content is hidden

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

286 files changed

+1860
-8104
lines changed

CHANGES.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
twilio-go changelog
22
====================
3+
[2024-02-09] Version 1.18.0
4+
---------------------------
5+
**Library - Fix**
6+
- [PR #228](https://github.com/twilio/twilio-go/pull/228): added validation check for user credentials. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
7+
8+
**Api**
9+
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
10+
- Update documentation to reflect RiskCheck GA
11+
- Added optional parameter `CallToken` for create participant api
12+
13+
**Events**
14+
- Marked as GA
15+
16+
**Flex**
17+
- Adding `flex_instance_sid` to Flex Configuration
18+
- Adding `provisioning_status` for Email Manager
19+
- Adding `offline_config` to Flex Configuration
20+
21+
**Insights**
22+
- add flag to restrict access to unapid customers
23+
- decommission voice-qualitystats-endpoint role
24+
25+
**Intelligence**
26+
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
27+
28+
**Lookups**
29+
- Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
30+
- Remove carrier information from call forwarding package **(breaking change)**
31+
32+
**Messaging**
33+
- Add update instance endpoints to us_app_to_person api
34+
- Add tollfree edit_allowed and edit_reason fields
35+
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
36+
- Add DELETE support to Tollfree Verification resource
37+
38+
**Numbers**
39+
- Add Get Port In request api
40+
41+
**Push**
42+
- Migrated to new Push API V4 with Resilient Notification Delivery.
43+
44+
**Serverless**
45+
- Add node18 as a valid Build runtime
46+
47+
**Taskrouter**
48+
- Add `jitter_buffer_size` param in update reservation
49+
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
50+
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
51+
52+
**Trusthub**
53+
- Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
54+
- Add additional optional fields in compliance_tollfree_inquiry.json
55+
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
56+
- Add new optional field notification_email to compliance_tollfree_inquiry.json
57+
58+
**Verify**
59+
- `Tags` property added again to Public Docs **(breaking change)**
60+
- Remove `Tags` from Public Docs **(breaking change)**
61+
- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
62+
- Add `Tags` optional parameter on Verification creation.
63+
- Update Verify TOTP maturity to GA.
64+
65+
366
[2024-01-25] Version 1.17.0
467
---------------------------
568
**Oauth**

rest/accounts/v1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 1.53.0
8+
- API version: 1.54.0
99
- Package version: 1.0.0
1010
- Build package: com.twilio.oai.TwilioGoGenerator
1111
For more information, please visit [https://support.twilio.com](https://support.twilio.com)

rest/api/v2010/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 1.53.0
8+
- API version: 1.54.0
99
- Package version: 1.0.0
1010
- Build package: com.twilio.oai.TwilioGoGenerator
1111
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
@@ -368,6 +368,7 @@ Class | Method | HTTP request | Description
368368
- [ListRecordingAddOnResultResponse](docs/ListRecordingAddOnResultResponse.md)
369369
- [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md)
370370
- [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md)
371+
- [FetchHealthCheck200Response](docs/FetchHealthCheck200Response.md)
371372
- [ApiV2010AuthorizedConnectApp](docs/ApiV2010AuthorizedConnectApp.md)
372373
- [ListUsageRecordAllTimeResponse](docs/ListUsageRecordAllTimeResponse.md)
373374
- [ListSipDomainResponse](docs/ListSipDomainResponse.md)

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ type CreateParticipantParams struct {
121121
AmdStatusCallbackMethod *string `json:"AmdStatusCallbackMethod,omitempty"`
122122
// Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
123123
Trim *string `json:"Trim,omitempty"`
124+
// A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
125+
CallToken *string `json:"CallToken,omitempty"`
124126
}
125127

126128
func (params *CreateParticipantParams) SetPathAccountSid(PathAccountSid string) *CreateParticipantParams {
@@ -315,6 +317,10 @@ func (params *CreateParticipantParams) SetTrim(Trim string) *CreateParticipantPa
315317
params.Trim = &Trim
316318
return params
317319
}
320+
func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreateParticipantParams {
321+
params.CallToken = &CallToken
322+
return params
323+
}
318324

319325
//
320326
func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) {
@@ -478,6 +484,9 @@ func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParti
478484
if params != nil && params.Trim != nil {
479485
data.Set("Trim", *params.Trim)
480486
}
487+
if params != nil && params.CallToken != nil {
488+
data.Set("CallToken", *params.CallToken)
489+
}
481490

482491
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
483492
if err != nil {

rest/api/v2010/accounts_messages.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type CreateMessageParams struct {
5252
SmartEncoded *bool `json:"SmartEncoded,omitempty"`
5353
// Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp).
5454
PersistentAction *[]string `json:"PersistentAction,omitempty"`
55-
// For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
55+
// For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
5656
ShortenUrls *bool `json:"ShortenUrls,omitempty"`
5757
//
5858
ScheduleType *string `json:"ScheduleType,omitempty"`
@@ -64,13 +64,13 @@ type CreateMessageParams struct {
6464
ContentVariables *string `json:"ContentVariables,omitempty"`
6565
//
6666
RiskCheck *string `json:"RiskCheck,omitempty"`
67-
// The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
67+
// The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
6868
From *string `json:"From,omitempty"`
6969
// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
7070
MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
7171
// The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
7272
Body *string `json:"Body,omitempty"`
73-
// The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
73+
// The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
7474
MediaUrl *[]string `json:"MediaUrl,omitempty"`
7575
// For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
7676
ContentSid *string `json:"ContentSid,omitempty"`

rest/api/v2010/docs/AccountsConferencesParticipantsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Name | Type | Description
8383
**AmdStatusCallback** | **string** | The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
8484
**AmdStatusCallbackMethod** | **string** | The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
8585
**Trim** | **string** | Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
86+
**CallToken** | **string** | A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
8687

8788
### Return type
8889

rest/api/v2010/docs/AccountsMessagesApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ Name | Type | Description
4444
**AddressRetention** | **string** |
4545
**SmartEncoded** | **bool** | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`.
4646
**PersistentAction** | **[]string** | Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp).
47-
**ShortenUrls** | **bool** | For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
47+
**ShortenUrls** | **bool** | For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided.
4848
**ScheduleType** | **string** |
4949
**SendAt** | **time.Time** | The time that Twilio will send the message. Must be in ISO 8601 format.
5050
**SendAsMms** | **bool** | If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
5151
**ContentVariables** | **string** | For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
5252
**RiskCheck** | **string** |
53-
**From** | **string** | The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
53+
**From** | **string** | The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
5454
**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
5555
**Body** | **string** | The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages).
56-
**MediaUrl** | **[]string** | The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
56+
**MediaUrl** | **[]string** | The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply.
5757
**ContentSid** | **string** | For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources).
5858

5959
### Return type

0 commit comments

Comments
 (0)