Skip to content

Commit

Permalink
[Librarian] Regenerated @ 0430a9c977225d55252b84f4d16e16ad2091cde1
Browse files Browse the repository at this point in the history
twilio-dx committed Jun 15, 2023
1 parent c074dd5 commit 1d9933e
Showing 50 changed files with 83 additions and 71 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
twilio-go changelog
====================
[2023-06-15] Version 1.8.0
--------------------------
**Api**
- Added `content_sid` as conditional parameter
- Removed `content_sid` as optional field **(breaking change)**

**Insights**
- Added `annotation` to list summary output


[2023-06-01] Version 1.7.2
--------------------------
**Api**
2 changes: 1 addition & 1 deletion rest/accounts/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/api/v2010/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
18 changes: 9 additions & 9 deletions rest/api/v2010/accounts_messages.go
Original file line number Diff line number Diff line change
@@ -60,8 +60,6 @@ type CreateMessageParams struct {
SendAt *time.Time `json:"SendAt,omitempty"`
// If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media.
SendAsMms *bool `json:"SendAsMms,omitempty"`
// The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.
ContentSid *string `json:"ContentSid,omitempty"`
// Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time.
ContentVariables *string `json:"ContentVariables,omitempty"`
// A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty.
@@ -72,6 +70,8 @@ type CreateMessageParams struct {
Body *string `json:"Body,omitempty"`
// The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada.
MediaUrl *[]string `json:"MediaUrl,omitempty"`
// The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.
ContentSid *string `json:"ContentSid,omitempty"`
}

func (params *CreateMessageParams) SetPathAccountSid(PathAccountSid string) *CreateMessageParams {
@@ -142,10 +142,6 @@ func (params *CreateMessageParams) SetSendAsMms(SendAsMms bool) *CreateMessagePa
params.SendAsMms = &SendAsMms
return params
}
func (params *CreateMessageParams) SetContentSid(ContentSid string) *CreateMessageParams {
params.ContentSid = &ContentSid
return params
}
func (params *CreateMessageParams) SetContentVariables(ContentVariables string) *CreateMessageParams {
params.ContentVariables = &ContentVariables
return params
@@ -166,6 +162,10 @@ func (params *CreateMessageParams) SetMediaUrl(MediaUrl []string) *CreateMessage
params.MediaUrl = &MediaUrl
return params
}
func (params *CreateMessageParams) SetContentSid(ContentSid string) *CreateMessageParams {
params.ContentSid = &ContentSid
return params
}

// Send a message from the account used to make the request
func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Message, error) {
@@ -229,9 +229,6 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag
if params != nil && params.SendAsMms != nil {
data.Set("SendAsMms", fmt.Sprint(*params.SendAsMms))
}
if params != nil && params.ContentSid != nil {
data.Set("ContentSid", *params.ContentSid)
}
if params != nil && params.ContentVariables != nil {
data.Set("ContentVariables", *params.ContentVariables)
}
@@ -249,6 +246,9 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag
data.Add("MediaUrl", item)
}
}
if params != nil && params.ContentSid != nil {
data.Set("ContentSid", *params.ContentSid)
}

resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
if err != nil {
2 changes: 1 addition & 1 deletion rest/api/v2010/docs/AccountsMessagesApi.md
Original file line number Diff line number Diff line change
@@ -48,12 +48,12 @@ Name | Type | Description
**ScheduleType** | **string** |
**SendAt** | **time.Time** | The time that Twilio will send the message. Must be in ISO 8601 format.
**SendAsMms** | **bool** | If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media.
**ContentSid** | **string** | The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.
**ContentVariables** | **string** | Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time.
**From** | **string** | A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty.
**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery.
**Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters in length.
**MediaUrl** | **[]string** | The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada.
**ContentSid** | **string** | The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized.

### Return type

2 changes: 1 addition & 1 deletion rest/autopilot/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)

This comment has been minimized.

Copy link
@Maki11253

Maki11253 Jun 15, 2023

Hello I want to make a twilio generator

2 changes: 1 addition & 1 deletion rest/bulkexports/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/chat/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/chat/v2/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/chat/v3/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/content/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/conversations/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/events/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/flex/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/flex/v2/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/frontline/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
2 changes: 1 addition & 1 deletion rest/insights/v1/README.md
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ This is the public Twilio REST API.
## Overview
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.

- API version: 1.43.2
- API version: 1.44.0
- Package version: 1.0.0
- Build package: com.twilio.oai.TwilioGoGenerator
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
1 change: 1 addition & 0 deletions rest/insights/v1/docs/InsightsV1CallSummaries.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
**Attributes** | Pointer to **interface{}** | |
**Properties** | Pointer to **interface{}** | |
**Trust** | Pointer to **interface{}** | |
**Annotation** | Pointer to **interface{}** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

6 changes: 3 additions & 3 deletions rest/insights/v1/docs/VoiceSummariesApi.md
Original file line number Diff line number Diff line change
@@ -46,10 +46,10 @@ Name | Type | Description
**Subaccount** | **string** |
**AbnormalSession** | **bool** |
**AnsweredBy** | **string** |
**ConnectivityIssues** | **string** |
**QualityIssues** | **string** |
**ConnectivityIssue** | **string** |
**QualityIssue** | **string** |
**Spam** | **bool** |
**CallScores** | **string** |
**CallScore** | **string** |
**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
**Limit** | **int** | Max number of records to return.

1 change: 1 addition & 0 deletions rest/insights/v1/model_insights_v1_call_summaries.go
Original file line number Diff line number Diff line change
@@ -42,4 +42,5 @@ type InsightsV1CallSummaries struct {
Attributes *interface{} `json:"attributes,omitempty"`
Properties *interface{} `json:"properties,omitempty"`
Trust *interface{} `json:"trust,omitempty"`
Annotation *interface{} `json:"annotation,omitempty"`
}
30 changes: 15 additions & 15 deletions rest/insights/v1/voice_summaries.go
Original file line number Diff line number Diff line change
@@ -63,13 +63,13 @@ type ListCallSummariesParams struct {
//
AnsweredBy *string `json:"AnsweredBy,omitempty"`
//
ConnectivityIssues *string `json:"ConnectivityIssues,omitempty"`
ConnectivityIssue *string `json:"ConnectivityIssue,omitempty"`
//
QualityIssues *string `json:"QualityIssues,omitempty"`
QualityIssue *string `json:"QualityIssue,omitempty"`
//
Spam *bool `json:"Spam,omitempty"`
//
CallScores *string `json:"CallScores,omitempty"`
CallScore *string `json:"CallScore,omitempty"`
// How many resources to return in each list page. The default is 50, and the maximum is 1000.
PageSize *int `json:"PageSize,omitempty"`
// Max number of records to return.
@@ -152,20 +152,20 @@ func (params *ListCallSummariesParams) SetAnsweredBy(AnsweredBy string) *ListCal
params.AnsweredBy = &AnsweredBy
return params
}
func (params *ListCallSummariesParams) SetConnectivityIssues(ConnectivityIssues string) *ListCallSummariesParams {
params.ConnectivityIssues = &ConnectivityIssues
func (params *ListCallSummariesParams) SetConnectivityIssue(ConnectivityIssue string) *ListCallSummariesParams {
params.ConnectivityIssue = &ConnectivityIssue
return params
}
func (params *ListCallSummariesParams) SetQualityIssues(QualityIssues string) *ListCallSummariesParams {
params.QualityIssues = &QualityIssues
func (params *ListCallSummariesParams) SetQualityIssue(QualityIssue string) *ListCallSummariesParams {
params.QualityIssue = &QualityIssue
return params
}
func (params *ListCallSummariesParams) SetSpam(Spam bool) *ListCallSummariesParams {
params.Spam = &Spam
return params
}
func (params *ListCallSummariesParams) SetCallScores(CallScores string) *ListCallSummariesParams {
params.CallScores = &CallScores
func (params *ListCallSummariesParams) SetCallScore(CallScore string) *ListCallSummariesParams {
params.CallScore = &CallScore
return params
}
func (params *ListCallSummariesParams) SetPageSize(PageSize int) *ListCallSummariesParams {
@@ -241,17 +241,17 @@ func (c *ApiService) PageCallSummaries(params *ListCallSummariesParams, pageToke
if params != nil && params.AnsweredBy != nil {
data.Set("AnsweredBy", *params.AnsweredBy)
}
if params != nil && params.ConnectivityIssues != nil {
data.Set("ConnectivityIssues", *params.ConnectivityIssues)
if params != nil && params.ConnectivityIssue != nil {
data.Set("ConnectivityIssue", *params.ConnectivityIssue)
}
if params != nil && params.QualityIssues != nil {
data.Set("QualityIssues", *params.QualityIssues)
if params != nil && params.QualityIssue != nil {
data.Set("QualityIssue", *params.QualityIssue)
}
if params != nil && params.Spam != nil {
data.Set("Spam", fmt.Sprint(*params.Spam))
}
if params != nil && params.CallScores != nil {
data.Set("CallScores", *params.CallScores)
if params != nil && params.CallScore != nil {
data.Set("CallScore", *params.CallScore)
}
if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
Loading

0 comments on commit 1d9933e

Please sign in to comment.