Skip to content

Commit 004ac51

Browse files
committed
[Librarian] Regenerated @ 922c1fef02b8c8fbbbe2315aa9b9d1dba49f3fc0
1 parent 500219f commit 004ac51

File tree

72 files changed

+154
-105
lines changed

Some content is hidden

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

72 files changed

+154
-105
lines changed

CHANGES.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
twilio-go changelog
22
====================
3+
[2023-10-19] Version 1.15.0
4+
---------------------------
5+
**Accounts**
6+
- Updated Safelist metadata to correct the docs.
7+
- Add Global SafeList API changes
8+
9+
**Api**
10+
- Added optional parameter `CallToken` for create participant api
11+
12+
**Flex**
13+
- Adding `offline_config` to Flex Configuration
14+
15+
**Intelligence**
16+
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**
17+
18+
**Lookups**
19+
- Add new `phone_number_quality_score` package to the lookup response
20+
- Remove `disposable_phone_number_risk` package **(breaking change)**
21+
22+
**Messaging**
23+
- Update US App To Person documentation with current `message_samples` requirements
24+
25+
**Taskrouter**
26+
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
27+
- Add `virtual_start_time` property to tasks
28+
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**
29+
30+
331
[2023-10-05] Version 1.14.1
432
---------------------------
533
**Library - Chore**

rest/accounts/v1/README.md

Lines changed: 5 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.50.1
8+
- API version: 1.51.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)
@@ -44,6 +44,9 @@ Class | Method | HTTP request | Description
4444
*CredentialsPublicKeysApi* | [**FetchCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} |
4545
*CredentialsPublicKeysApi* | [**ListCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#listcredentialpublickey) | **Get** /v1/Credentials/PublicKeys |
4646
*CredentialsPublicKeysApi* | [**UpdateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} |
47+
*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /v1/SafeList/Numbers |
48+
*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /v1/SafeList/Numbers |
49+
*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /v1/SafeList/Numbers |
4750

4851

4952
## Documentation For Models
@@ -54,6 +57,7 @@ Class | Method | HTTP request | Description
5457
- [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md)
5558
- [AccountsV1CredentialAws](docs/AccountsV1CredentialAws.md)
5659
- [AccountsV1CredentialPublicKey](docs/AccountsV1CredentialPublicKey.md)
60+
- [AccountsV1Safelist](docs/AccountsV1Safelist.md)
5761
- [ListCredentialAwsResponseMeta](docs/ListCredentialAwsResponseMeta.md)
5862

5963

rest/api/v2010/docs/ApiV2010Safelist.md renamed to rest/accounts/v1/docs/AccountsV1Safelist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ApiV2010Safelist
1+
# AccountsV1Safelist
22

33
## Properties
44

rest/api/v2010/docs/SafeListNumbersApi.md renamed to rest/accounts/v1/docs/SafeListNumbersApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# SafeListNumbersApi
22

3-
All URIs are relative to *https://api.twilio.com*
3+
All URIs are relative to *https://accounts.twilio.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**CreateSafelist**](SafeListNumbersApi.md#CreateSafelist) | **Post** /2010-04-01/SafeList/Numbers.json |
8-
[**DeleteSafelist**](SafeListNumbersApi.md#DeleteSafelist) | **Delete** /2010-04-01/SafeList/Numbers.json |
9-
[**FetchSafelist**](SafeListNumbersApi.md#FetchSafelist) | **Get** /2010-04-01/SafeList/Numbers.json |
7+
[**CreateSafelist**](SafeListNumbersApi.md#CreateSafelist) | **Post** /v1/SafeList/Numbers |
8+
[**DeleteSafelist**](SafeListNumbersApi.md#DeleteSafelist) | **Delete** /v1/SafeList/Numbers |
9+
[**FetchSafelist**](SafeListNumbersApi.md#FetchSafelist) | **Get** /v1/SafeList/Numbers |
1010

1111

1212

1313
## CreateSafelist
1414

15-
> ApiV2010Safelist CreateSafelist(ctx, optional)
15+
> AccountsV1Safelist CreateSafelist(ctx, optional)
1616
1717

1818

@@ -33,7 +33,7 @@ Name | Type | Description
3333

3434
### Return type
3535

36-
[**ApiV2010Safelist**](ApiV2010Safelist.md)
36+
[**AccountsV1Safelist**](AccountsV1Safelist.md)
3737

3838
### Authorization
3939

@@ -90,7 +90,7 @@ Name | Type | Description
9090

9191
## FetchSafelist
9292

93-
> ApiV2010Safelist FetchSafelist(ctx, optional)
93+
> AccountsV1Safelist FetchSafelist(ctx, optional)
9494
9595

9696

@@ -111,7 +111,7 @@ Name | Type | Description
111111

112112
### Return type
113113

114-
[**ApiV2010Safelist**](ApiV2010Safelist.md)
114+
[**AccountsV1Safelist**](AccountsV1Safelist.md)
115115

116116
### Authorization
117117

rest/api/v2010/model_api_v2010_safelist.go renamed to rest/accounts/v1/model_accounts_v1_safelist.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
*
7-
* Twilio - Api
7+
* Twilio - Accounts
88
* This is the public Twilio REST API.
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator.
@@ -14,8 +14,8 @@
1414

1515
package openapi
1616

17-
// ApiV2010Safelist struct for ApiV2010Safelist
18-
type ApiV2010Safelist struct {
17+
// AccountsV1Safelist struct for AccountsV1Safelist
18+
type AccountsV1Safelist struct {
1919
// The unique string that we created to identify the SafeList resource.
2020
Sid *string `json:"sid,omitempty"`
2121
// The phone number in SafeList.

rest/api/v2010/safe_list_numbers.go renamed to rest/accounts/v1/safe_list_numbers.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
*
7-
* Twilio - Api
7+
* Twilio - Accounts
88
* This is the public Twilio REST API.
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator.
@@ -31,8 +31,8 @@ func (params *CreateSafelistParams) SetPhoneNumber(PhoneNumber string) *CreateSa
3131
}
3232

3333
// Add a new phone number to SafeList.
34-
func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*ApiV2010Safelist, error) {
35-
path := "/2010-04-01/SafeList/Numbers.json"
34+
func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*AccountsV1Safelist, error) {
35+
path := "/v1/SafeList/Numbers"
3636

3737
data := url.Values{}
3838
headers := make(map[string]interface{})
@@ -48,7 +48,7 @@ func (c *ApiService) CreateSafelist(params *CreateSafelistParams) (*ApiV2010Safe
4848

4949
defer resp.Body.Close()
5050

51-
ps := &ApiV2010Safelist{}
51+
ps := &AccountsV1Safelist{}
5252
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
5353
return nil, err
5454
}
@@ -69,7 +69,7 @@ func (params *DeleteSafelistParams) SetPhoneNumber(PhoneNumber string) *DeleteSa
6969

7070
// Remove a phone number from SafeList.
7171
func (c *ApiService) DeleteSafelist(params *DeleteSafelistParams) error {
72-
path := "/2010-04-01/SafeList/Numbers.json"
72+
path := "/v1/SafeList/Numbers"
7373

7474
data := url.Values{}
7575
headers := make(map[string]interface{})
@@ -100,8 +100,8 @@ func (params *FetchSafelistParams) SetPhoneNumber(PhoneNumber string) *FetchSafe
100100
}
101101

102102
// Check if a phone number exists in SafeList.
103-
func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*ApiV2010Safelist, error) {
104-
path := "/2010-04-01/SafeList/Numbers.json"
103+
func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*AccountsV1Safelist, error) {
104+
path := "/v1/SafeList/Numbers"
105105

106106
data := url.Values{}
107107
headers := make(map[string]interface{})
@@ -117,7 +117,7 @@ func (c *ApiService) FetchSafelist(params *FetchSafelistParams) (*ApiV2010Safeli
117117

118118
defer resp.Body.Close()
119119

120-
ps := &ApiV2010Safelist{}
120+
ps := &AccountsV1Safelist{}
121121
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
122122
return nil, err
123123
}

rest/api/v2010/README.md

Lines changed: 1 addition & 5 deletions
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.50.1
8+
- API version: 1.51.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)
@@ -230,9 +230,6 @@ Class | Method | HTTP request | Description
230230
*AccountsUsageTriggersApi* | [**FetchUsageTrigger**](docs/AccountsUsageTriggersApi.md#fetchusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json |
231231
*AccountsUsageTriggersApi* | [**ListUsageTrigger**](docs/AccountsUsageTriggersApi.md#listusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json |
232232
*AccountsUsageTriggersApi* | [**UpdateUsageTrigger**](docs/AccountsUsageTriggersApi.md#updateusagetrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json |
233-
*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /2010-04-01/SafeList/Numbers.json |
234-
*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /2010-04-01/SafeList/Numbers.json |
235-
*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /2010-04-01/SafeList/Numbers.json |
236233

237234

238235
## Documentation For Models
@@ -283,7 +280,6 @@ Class | Method | HTTP request | Description
283280
- [ApiV2010UsageRecordThisMonth](docs/ApiV2010UsageRecordThisMonth.md)
284281
- [ListAvailablePhoneNumberVoipResponse](docs/ListAvailablePhoneNumberVoipResponse.md)
285282
- [ListShortCodeResponse](docs/ListShortCodeResponse.md)
286-
- [ApiV2010Safelist](docs/ApiV2010Safelist.md)
287283
- [ApiV2010Call](docs/ApiV2010Call.md)
288284
- [ListCallResponse](docs/ListCallResponse.md)
289285
- [ApiV2010ShortCode](docs/ApiV2010ShortCode.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/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/autopilot/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.50.1
8+
- API version: 1.51.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)

0 commit comments

Comments
 (0)