Skip to content

Commit

Permalink
[Librarian] Regenerated @ 5eb406c4977c9f6976e6053cb5b581056f541a59
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Nov 6, 2023
1 parent 3946662 commit d566e47
Show file tree
Hide file tree
Showing 56 changed files with 508 additions and 69 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-11-06] Version 1.15.1
---------------------------
**Flex**
- Adding `provisioning_status` for Email Manager

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Messaging**
- Add DELETE support to Tollfree Verification resource

**Serverless**
- Add node18 as a valid Build runtime

**Verify**
- Update Verify TOTP maturity to GA.


[2023-10-19] Version 1.15.0
---------------------------
**Accounts**
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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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.51.0
- API version: 1.51.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/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.51.0
- API version: 1.51.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
4 changes: 3 additions & 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.51.0
- API version: 1.51.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 All @@ -31,6 +31,7 @@ All URIs are relative to *https://flex-api.twilio.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccountProvisionStatusApi* | [**FetchProvisioningStatus**](docs/AccountProvisionStatusApi.md#fetchprovisioningstatus) | **Get** /v1/account/provision/status |
*ChannelsApi* | [**CreateChannel**](docs/ChannelsApi.md#createchannel) | **Post** /v1/Channels |
*ChannelsApi* | [**DeleteChannel**](docs/ChannelsApi.md#deletechannel) | **Delete** /v1/Channels/{Sid} |
*ChannelsApi* | [**FetchChannel**](docs/ChannelsApi.md#fetchchannel) | **Get** /v1/Channels/{Sid} |
Expand Down Expand Up @@ -115,6 +116,7 @@ Class | Method | HTTP request | Description
- [FlexV1InsightsAssessments](docs/FlexV1InsightsAssessments.md)
- [FlexV1InsightsConversations](docs/FlexV1InsightsConversations.md)
- [FlexV1InsightsQuestionnairesCategory](docs/FlexV1InsightsQuestionnairesCategory.md)
- [FlexV1ProvisioningStatus](docs/FlexV1ProvisioningStatus.md)
- [ListChannelResponseMeta](docs/ListChannelResponseMeta.md)
- [ListInteractionChannelInviteResponse](docs/ListInteractionChannelInviteResponse.md)

Expand Down
42 changes: 42 additions & 0 deletions rest/flex/v1/account_provision_status.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Flex
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package openapi

import (
"encoding/json"
"net/url"
)

//
func (c *ApiService) FetchProvisioningStatus() (*FlexV1ProvisioningStatus, error) {
path := "/v1/account/provision/status"

data := url.Values{}
headers := make(map[string]interface{})

resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
if err != nil {
return nil, err
}

defer resp.Body.Close()

ps := &FlexV1ProvisioningStatus{}
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
return nil, err
}

return ps, err
}
44 changes: 44 additions & 0 deletions rest/flex/v1/docs/AccountProvisionStatusApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# AccountProvisionStatusApi

All URIs are relative to *https://flex-api.twilio.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**FetchProvisioningStatus**](AccountProvisionStatusApi.md#FetchProvisioningStatus) | **Get** /v1/account/provision/status |



## FetchProvisioningStatus

> FlexV1ProvisioningStatus FetchProvisioningStatus(ctx, )




### Path Parameters

This endpoint does not need any path parameter.

### Other Parameters

Other parameters are passed through a pointer to a FetchProvisioningStatusParams struct


### Return type

[**FlexV1ProvisioningStatus**](FlexV1ProvisioningStatus.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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

12 changes: 12 additions & 0 deletions rest/flex/v1/docs/FlexV1ProvisioningStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# FlexV1ProvisioningStatus

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | Pointer to [**string**](ProvisioningStatusEnumStatus.md) | |
**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)


22 changes: 22 additions & 0 deletions rest/flex/v1/model_flex_v1_provisioning_status.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Flex
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package openapi

// FlexV1ProvisioningStatus struct for FlexV1ProvisioningStatus
type FlexV1ProvisioningStatus struct {
Status *string `json:"status,omitempty"`
// The absolute URL of the resource.
Url *string `json:"url,omitempty"`
}
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.51.0
- API version: 1.51.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/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.51.0
- API version: 1.51.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/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.51.0
- API version: 1.51.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/intelligence/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.51.0
- API version: 1.51.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
1 change: 1 addition & 0 deletions rest/intelligence/v2/docs/IntelligenceV2OperatorResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Name | Type | Description | Notes
**PredictedProbability** | Pointer to **float32** | Percentage of 'matching' class needed to consider a sentence matches. |
**LabelProbabilities** | Pointer to **interface{}** | The labels probabilities. This might be available on conversation classify model outputs. |
**ExtractResults** | Pointer to **interface{}** | List of text extraction results. This might be available on classify-extract model outputs. |
**TextGenerationResults** | Pointer to **interface{}** | Output of a text generation operator for example Conversation Sumamary. |
**TranscriptSid** | Pointer to **string** | A 34 character string that uniquely identifies this Transcript. |
**Url** | Pointer to **string** | The URL of this resource. |

Expand Down
56 changes: 30 additions & 26 deletions rest/intelligence/v2/model_intelligence_v2_operator_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ type IntelligenceV2OperatorResult struct {
LabelProbabilities *interface{} `json:"label_probabilities,omitempty"`
// List of text extraction results. This might be available on classify-extract model outputs.
ExtractResults *interface{} `json:"extract_results,omitempty"`
// Output of a text generation operator for example Conversation Sumamary.
TextGenerationResults *interface{} `json:"text_generation_results,omitempty"`
// A 34 character string that uniquely identifies this Transcript.
TranscriptSid *string `json:"transcript_sid,omitempty"`
// The URL of this resource.
Expand All @@ -53,39 +55,41 @@ type IntelligenceV2OperatorResult struct {

func (response *IntelligenceV2OperatorResult) UnmarshalJSON(bytes []byte) (err error) {
raw := struct {
OperatorType *string `json:"operator_type"`
Name *string `json:"name"`
OperatorSid *string `json:"operator_sid"`
ExtractMatch *bool `json:"extract_match"`
MatchProbability *interface{} `json:"match_probability"`
NormalizedResult *string `json:"normalized_result"`
UtteranceResults *[]interface{} `json:"utterance_results"`
UtteranceMatch *bool `json:"utterance_match"`
PredictedLabel *string `json:"predicted_label"`
PredictedProbability *interface{} `json:"predicted_probability"`
LabelProbabilities *interface{} `json:"label_probabilities"`
ExtractResults *interface{} `json:"extract_results"`
TranscriptSid *string `json:"transcript_sid"`
Url *string `json:"url"`
OperatorType *string `json:"operator_type"`
Name *string `json:"name"`
OperatorSid *string `json:"operator_sid"`
ExtractMatch *bool `json:"extract_match"`
MatchProbability *interface{} `json:"match_probability"`
NormalizedResult *string `json:"normalized_result"`
UtteranceResults *[]interface{} `json:"utterance_results"`
UtteranceMatch *bool `json:"utterance_match"`
PredictedLabel *string `json:"predicted_label"`
PredictedProbability *interface{} `json:"predicted_probability"`
LabelProbabilities *interface{} `json:"label_probabilities"`
ExtractResults *interface{} `json:"extract_results"`
TextGenerationResults *interface{} `json:"text_generation_results"`
TranscriptSid *string `json:"transcript_sid"`
Url *string `json:"url"`
}{}

if err = json.Unmarshal(bytes, &raw); err != nil {
return err
}

*response = IntelligenceV2OperatorResult{
OperatorType: raw.OperatorType,
Name: raw.Name,
OperatorSid: raw.OperatorSid,
ExtractMatch: raw.ExtractMatch,
NormalizedResult: raw.NormalizedResult,
UtteranceResults: raw.UtteranceResults,
UtteranceMatch: raw.UtteranceMatch,
PredictedLabel: raw.PredictedLabel,
LabelProbabilities: raw.LabelProbabilities,
ExtractResults: raw.ExtractResults,
TranscriptSid: raw.TranscriptSid,
Url: raw.Url,
OperatorType: raw.OperatorType,
Name: raw.Name,
OperatorSid: raw.OperatorSid,
ExtractMatch: raw.ExtractMatch,
NormalizedResult: raw.NormalizedResult,
UtteranceResults: raw.UtteranceResults,
UtteranceMatch: raw.UtteranceMatch,
PredictedLabel: raw.PredictedLabel,
LabelProbabilities: raw.LabelProbabilities,
ExtractResults: raw.ExtractResults,
TextGenerationResults: raw.TextGenerationResults,
TranscriptSid: raw.TranscriptSid,
Url: raw.Url,
}

responseMatchProbability, err := client.UnmarshalFloat32(raw.MatchProbability)
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.51.0
- API version: 1.51.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
Loading

0 comments on commit d566e47

Please sign in to comment.