Skip to content

Commit

Permalink
[Librarian] Regenerated @ fffff4e2a9903902262deb482f4cefeb44c2d081
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed May 18, 2023
1 parent c63c27f commit ce94596
Show file tree
Hide file tree
Showing 86 changed files with 635 additions and 232 deletions.
17 changes: 17 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
twilio-go changelog
====================
[2023-05-18] Version 1.7.1
--------------------------
**Conversations**
- Added `AddressCountry` parameter to Address Configuration endpoint, to support regional short code addresses
- Added query parameters `start_date`, `end_date` and `state` in list Conversations resource for filtering

**Insights**
- Added annotations parameters to list summary api

**Messaging**
- Add GET domainByMessagingService endpoint to linkShortening service
- Add `disable_https` to link shortening domain_config properties

**Numbers**
- Add bulk_eligibility api under version `/v1`.


[2023-05-04] Version 1.7.0
--------------------------
**Conversations**
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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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
9 changes: 9 additions & 0 deletions rest/conversations/v1/configuration_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type CreateConfigurationAddressParams struct {
AutoCreationStudioFlowSid *string `json:"AutoCreation.StudioFlowSid,omitempty"`
// For type `studio`, number of times to retry the webhook request
AutoCreationStudioRetryCount *int `json:"AutoCreation.StudioRetryCount,omitempty"`
// An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
AddressCountry *string `json:"AddressCountry,omitempty"`
}

func (params *CreateConfigurationAddressParams) SetType(Type string) *CreateConfigurationAddressParams {
Expand Down Expand Up @@ -93,6 +95,10 @@ func (params *CreateConfigurationAddressParams) SetAutoCreationStudioRetryCount(
params.AutoCreationStudioRetryCount = &AutoCreationStudioRetryCount
return params
}
func (params *CreateConfigurationAddressParams) SetAddressCountry(AddressCountry string) *CreateConfigurationAddressParams {
params.AddressCountry = &AddressCountry
return params
}

// Create a new address configuration
func (c *ApiService) CreateConfigurationAddress(params *CreateConfigurationAddressParams) (*ConversationsV1ConfigurationAddress, error) {
Expand Down Expand Up @@ -136,6 +142,9 @@ func (c *ApiService) CreateConfigurationAddress(params *CreateConfigurationAddre
if params != nil && params.AutoCreationStudioRetryCount != nil {
data.Set("AutoCreation.StudioRetryCount", fmt.Sprint(*params.AutoCreationStudioRetryCount))
}
if params != nil && params.AddressCountry != nil {
data.Set("AddressCountry", *params.AddressCountry)
}

resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
if err != nil {
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 or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
StartDate *string `json:"StartDate,omitempty"`
// End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
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
1 change: 1 addition & 0 deletions rest/conversations/v1/docs/ConfigurationAddressesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Name | Type | Description
**AutoCreationWebhookFilters** | **[]string** | The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
**AutoCreationStudioFlowSid** | **string** | For type `studio`, the studio flow SID where the webhook should be sent to.
**AutoCreationStudioRetryCount** | **int** | For type `studio`, number of times to retry the webhook request
**AddressCountry** | **string** | An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.

### Return type

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 or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
**EndDate** | **string** | End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
**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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**DateCreated** | Pointer to [**time.Time**](time.Time.md) | The date that this resource was created. |
**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | The date that this resource was last updated. |
**Url** | Pointer to **string** | An absolute API resource URL for this address configuration. |
**AddressCountry** | Pointer to **string** | An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses. |

[[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
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 or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
**EndDate** | **string** | End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
**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
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ type ConversationsV1ConfigurationAddress struct {
DateUpdated *time.Time `json:"date_updated,omitempty"`
// An absolute API resource URL for this address configuration.
Url *string `json:"url,omitempty"`
// An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
AddressCountry *string `json:"address_country,omitempty"`
}
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 or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
StartDate *string `json:"StartDate,omitempty"`
// End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
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.43.0
- API version: 1.43.1
- 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.43.0
- API version: 1.43.1
- 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/docs/InsightsConversationsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a ListInsightsConversationsPara

Name | Type | Description
------------- | ------------- | -------------
**Token** | **string** | The Token HTTP request header
**Authorization** | **string** | The Authorization HTTP request header
**SegmentId** | **string** | Unique Id of the segment for which conversation details needs to be fetched
**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
8 changes: 3 additions & 5 deletions rest/flex/v1/docs/InsightsQualityManagementAssessmentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ Other parameters are passed through a pointer to a CreateInsightsAssessmentsPara

Name | Type | Description
------------- | ------------- | -------------
**Token** | **string** | The Token HTTP request header
**Authorization** | **string** | The Authorization HTTP request header
**CategorySid** | **string** | The SID of the category
**CategoryName** | **string** | The name of the category
**SegmentId** | **string** | Segment Id of the conversation
**UserName** | **string** | Name of the user assessing conversation
**UserEmail** | **string** | Email of the user assessing conversation
**AgentId** | **string** | The id of the Agent
**Offset** | **float32** | The offset of the conversation.
**MetricId** | **string** | The question SID selected for assessment
Expand Down Expand Up @@ -80,7 +78,7 @@ Other parameters are passed through a pointer to a ListInsightsAssessmentsParams

Name | Type | Description
------------- | ------------- | -------------
**Token** | **string** | The Token HTTP request header
**Authorization** | **string** | The Authorization HTTP request header
**SegmentId** | **string** | The id of the segment.
**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 Expand Up @@ -126,7 +124,7 @@ Other parameters are passed through a pointer to a UpdateInsightsAssessmentsPara

Name | Type | Description
------------- | ------------- | -------------
**Token** | **string** | The Token HTTP request header
**Authorization** | **string** | The Authorization HTTP request header
**Offset** | **float32** | The offset of the conversation
**AnswerText** | **string** | The answer text selected by user
**AnswerId** | **string** | The id of the answer selected by user
Expand Down
Loading

0 comments on commit ce94596

Please sign in to comment.