Skip to content

Commit

Permalink
[Librarian] Regenerated @ bb1ac274ed061aeecd32f3c2c4226d23c9c910ce
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Apr 5, 2023
1 parent 40ccfc1 commit 4b9510e
Show file tree
Hide file tree
Showing 60 changed files with 267 additions and 50 deletions.
18 changes: 18 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
twilio-go changelog
====================
[2023-04-05] Version 1.5.0
--------------------------
**Conversations**
- Expose query parameters `start_date`, `end_date` and `state` in list operation on Conversations resource for sorting and filtering

**Insights**
- Added answered by filter in Call Summaries

**Lookups**
- Remove `disposable_phone_number_risk` package **(breaking change)**

**Messaging**
- Add support for `SOLE_PROPRIETOR` brand type and `SOLE_PROPRIETOR` campaign use case.
- New Sole Proprietor Brands should be created with `SOLE_PROPRIETOR` brand type. Brand registration requests with `STARTER` brand type will be rejected.
- New Sole Proprietor Campaigns should be created with `SOLE_PROPRIETOR` campaign use case. Campaign registration requests with `STARTER` campaign use case will be rejected.
- Add Brand Registrations OTP API


[2023-03-22] Version 1.4.0
--------------------------
**Api**
Expand Down
2 changes: 1 addition & 1 deletion rest/accounts/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v2010/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/autopilot/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/bulkexports/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/chat/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/chat/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/chat/v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/content/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/conversations/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
27 changes: 27 additions & 0 deletions rest/conversations/v1/conversations.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,30 @@ func (c *ApiService) FetchConversation(Sid string) (*ConversationsV1Conversation

// Optional parameters for the method 'ListConversation'
type ListConversationParams struct {
// Start date in ISO8601 format for sorting and filtering list of Conversations.
StartDate *string `json:"StartDate,omitempty"`
// End date in ISO8601 format for sorting and filtering list of Conversations.
EndDate *string `json:"EndDate,omitempty"`
// State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
State *string `json:"State,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.
Limit *int `json:"limit,omitempty"`
}

func (params *ListConversationParams) SetStartDate(StartDate string) *ListConversationParams {
params.StartDate = &StartDate
return params
}
func (params *ListConversationParams) SetEndDate(EndDate string) *ListConversationParams {
params.EndDate = &EndDate
return params
}
func (params *ListConversationParams) SetState(State string) *ListConversationParams {
params.State = &State
return params
}
func (params *ListConversationParams) SetPageSize(PageSize int) *ListConversationParams {
params.PageSize = &PageSize
return params
Expand All @@ -223,6 +241,15 @@ func (c *ApiService) PageConversation(params *ListConversationParams, pageToken,
data := url.Values{}
headers := make(map[string]interface{})

if params != nil && params.StartDate != nil {
data.Set("StartDate", *params.StartDate)
}
if params != nil && params.EndDate != nil {
data.Set("EndDate", *params.EndDate)
}
if params != nil && params.State != nil {
data.Set("State", *params.State)
}
if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
}
Expand Down
3 changes: 3 additions & 0 deletions rest/conversations/v1/docs/ConversationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ Other parameters are passed through a pointer to a ListConversationParams struct

Name | Type | Description
------------- | ------------- | -------------
**StartDate** | **string** | Start date in ISO8601 format for sorting and filtering list of Conversations.
**EndDate** | **string** | End date in ISO8601 format for sorting and filtering list of Conversations.
**State** | **string** | State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
**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.

Expand Down
3 changes: 3 additions & 0 deletions rest/conversations/v1/docs/ServicesConversationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ Other parameters are passed through a pointer to a ListServiceConversationParams

Name | Type | Description
------------- | ------------- | -------------
**StartDate** | **string** | Start date in ISO8601 format for sorting and filtering list of Conversations.
**EndDate** | **string** | End date in ISO8601 format for sorting and filtering list of Conversations.
**State** | **string** | State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
**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.

Expand Down
27 changes: 27 additions & 0 deletions rest/conversations/v1/services_conversations.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,30 @@ func (c *ApiService) FetchServiceConversation(ChatServiceSid string, Sid string)

// Optional parameters for the method 'ListServiceConversation'
type ListServiceConversationParams struct {
// Start date in ISO8601 format for sorting and filtering list of Conversations.
StartDate *string `json:"StartDate,omitempty"`
// End date in ISO8601 format for sorting and filtering list of Conversations.
EndDate *string `json:"EndDate,omitempty"`
// State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
State *string `json:"State,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.
Limit *int `json:"limit,omitempty"`
}

func (params *ListServiceConversationParams) SetStartDate(StartDate string) *ListServiceConversationParams {
params.StartDate = &StartDate
return params
}
func (params *ListServiceConversationParams) SetEndDate(EndDate string) *ListServiceConversationParams {
params.EndDate = &EndDate
return params
}
func (params *ListServiceConversationParams) SetState(State string) *ListServiceConversationParams {
params.State = &State
return params
}
func (params *ListServiceConversationParams) SetPageSize(PageSize int) *ListServiceConversationParams {
params.PageSize = &PageSize
return params
Expand All @@ -228,6 +246,15 @@ func (c *ApiService) PageServiceConversation(ChatServiceSid string, params *List
data := url.Values{}
headers := make(map[string]interface{})

if params != nil && params.StartDate != nil {
data.Set("StartDate", *params.StartDate)
}
if params != nil && params.EndDate != nil {
data.Set("EndDate", *params.EndDate)
}
if params != nil && params.State != nil {
data.Set("State", *params.State)
}
if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
}
Expand Down
2 changes: 1 addition & 1 deletion rest/events/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/flex/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/flex/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/frontline/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/insights/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
1 change: 1 addition & 0 deletions rest/insights/v1/docs/VoiceSummariesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Name | Type | Description
**SortBy** | **string** |
**Subaccount** | **string** |
**AbnormalSession** | **bool** |
**AnsweredBy** | **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.

Expand Down
9 changes: 9 additions & 0 deletions rest/insights/v1/voice_summaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ type ListCallSummariesParams struct {
Subaccount *string `json:"Subaccount,omitempty"`
//
AbnormalSession *bool `json:"AbnormalSession,omitempty"`
//
AnsweredBy *string `json:"AnsweredBy,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.
Expand Down Expand Up @@ -138,6 +140,10 @@ func (params *ListCallSummariesParams) SetAbnormalSession(AbnormalSession bool)
params.AbnormalSession = &AbnormalSession
return params
}
func (params *ListCallSummariesParams) SetAnsweredBy(AnsweredBy string) *ListCallSummariesParams {
params.AnsweredBy = &AnsweredBy
return params
}
func (params *ListCallSummariesParams) SetPageSize(PageSize int) *ListCallSummariesParams {
params.PageSize = &PageSize
return params
Expand Down Expand Up @@ -208,6 +214,9 @@ func (c *ApiService) PageCallSummaries(params *ListCallSummariesParams, pageToke
if params != nil && params.AbnormalSession != nil {
data.Set("AbnormalSession", fmt.Sprint(*params.AbnormalSession))
}
if params != nil && params.AnsweredBy != nil {
data.Set("AnsweredBy", *params.AnsweredBy)
}
if params != nil && params.PageSize != nil {
data.Set("PageSize", fmt.Sprint(*params.PageSize))
}
Expand Down
2 changes: 1 addition & 1 deletion rest/ip_messaging/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/ip_messaging/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/lookups/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
2 changes: 1 addition & 1 deletion rest/lookups/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.40.0
- API version: 1.41.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)
Expand Down
1 change: 0 additions & 1 deletion rest/lookups/v2/docs/LookupsV2PhoneNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Name | Type | Description | Notes
**LineTypeIntelligence** | Pointer to **interface{}** | An object that contains line type information including the carrier name, mobile country code, and mobile network code. |
**IdentityMatch** | Pointer to **interface{}** | An object that contains identity match information. The result of comparing user-provided information including name, address, date of birth, national ID, against authoritative phone-based data sources |
**SmsPumpingRisk** | Pointer to **interface{}** | An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates. |
**DisposablePhoneNumberRisk** | Pointer to **interface{}** | An object that contains information on if a mobile phone number could be a disposable or burner number. |
**Url** | Pointer to **string** | The absolute URL of the resource. |

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

0 comments on commit 4b9510e

Please sign in to comment.