Skip to content

Commit 6d9c60b

Browse files
committed
[Librarian] Regenerated @ 964f1611ab7481d828261f49551385a276499e30
1 parent 6ad2654 commit 6d9c60b

File tree

72 files changed

+631
-97
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

+631
-97
lines changed

CHANGES.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
twilio-go changelog
22
====================
3+
[2022-12-14] Version 1.3.0
4+
--------------------------
5+
**Api**
6+
- Add `street_secondary` param to address create and update
7+
- Make `method` optional for user defined message subscription **(breaking change)**
8+
9+
**Flex**
10+
- Flex Conversations is now Generally Available
11+
- Adding the ie1 mapping for authorization api, updating service base uri and base url response attribute **(breaking change)**
12+
- Change web channels to GA and library visibility to public
13+
- Changing the uri for authorization api from using Accounts to Insights **(breaking change)**
14+
15+
**Media**
16+
- Gate Twilio Live endpoints behind beta_feature for EOS
17+
18+
**Messaging**
19+
- Mark `MessageFlow` as a required field for Campaign Creation **(breaking change)**
20+
21+
**Oauth**
22+
- updated openid discovery endpoint uri **(breaking change)**
23+
- Added device code authorization endpoint
24+
25+
**Supersim**
26+
- Allow filtering the SettingsUpdates resource by `status`
27+
28+
**Twiml**
29+
- Add new Polly Neural voices
30+
- Add tr-TR, ar-AE, yue-CN, fi-FI languages to SSML `<lang>` element.
31+
- Add x-amazon-jyutping, x-amazon-pinyin, x-amazon-pron-kana, x-amazon-yomigana alphabets to SSML `<phoneme>` element.
32+
- Rename `character` value for SSML `<say-as>` `interpret-as` attribute to `characters`. **(breaking change)**
33+
- Rename `role` attribute to `format` in SSML `<say-as>` element. **(breaking change)**
34+
35+
336
[2022-11-30] Version 1.2.2
437
--------------------------
538
**Flex**

rest/accounts/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.37.4
8+
- API version: 1.38.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)

rest/api/v2010/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.37.4
8+
- API version: 1.38.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)

rest/api/v2010/accounts_addresses.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ type CreateAddressParams struct {
4545
EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"`
4646
// Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide.
4747
AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"`
48+
// The additional number and street address of the address.
49+
StreetSecondary *string `json:"StreetSecondary,omitempty"`
4850
}
4951

5052
func (params *CreateAddressParams) SetPathAccountSid(PathAccountSid string) *CreateAddressParams {
@@ -87,6 +89,10 @@ func (params *CreateAddressParams) SetAutoCorrectAddress(AutoCorrectAddress bool
8789
params.AutoCorrectAddress = &AutoCorrectAddress
8890
return params
8991
}
92+
func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *CreateAddressParams {
93+
params.StreetSecondary = &StreetSecondary
94+
return params
95+
}
9096

9197
//
9298
func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) {
@@ -127,6 +133,9 @@ func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Addres
127133
if params != nil && params.AutoCorrectAddress != nil {
128134
data.Set("AutoCorrectAddress", fmt.Sprint(*params.AutoCorrectAddress))
129135
}
136+
if params != nil && params.StreetSecondary != nil {
137+
data.Set("StreetSecondary", *params.StreetSecondary)
138+
}
130139

131140
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
132141
if err != nil {
@@ -411,6 +420,8 @@ type UpdateAddressParams struct {
411420
EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"`
412421
// Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide.
413422
AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"`
423+
// The additional number and street address of the address.
424+
StreetSecondary *string `json:"StreetSecondary,omitempty"`
414425
}
415426

416427
func (params *UpdateAddressParams) SetPathAccountSid(PathAccountSid string) *UpdateAddressParams {
@@ -449,6 +460,10 @@ func (params *UpdateAddressParams) SetAutoCorrectAddress(AutoCorrectAddress bool
449460
params.AutoCorrectAddress = &AutoCorrectAddress
450461
return params
451462
}
463+
func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *UpdateAddressParams {
464+
params.StreetSecondary = &StreetSecondary
465+
return params
466+
}
452467

453468
//
454469
func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) {
@@ -487,6 +502,9 @@ func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*Ap
487502
if params != nil && params.AutoCorrectAddress != nil {
488503
data.Set("AutoCorrectAddress", fmt.Sprint(*params.AutoCorrectAddress))
489504
}
505+
if params != nil && params.StreetSecondary != nil {
506+
data.Set("StreetSecondary", *params.StreetSecondary)
507+
}
490508

491509
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
492510
if err != nil {

rest/api/v2010/accounts_calls_user_defined_message_subscriptions.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ type CreateUserDefinedMessageSubscriptionParams struct {
2626
PathAccountSid *string `json:"PathAccountSid,omitempty"`
2727
// The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted).
2828
Callback *string `json:"Callback,omitempty"`
29-
// The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
30-
Method *string `json:"Method,omitempty"`
3129
// A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
3230
IdempotencyKey *string `json:"IdempotencyKey,omitempty"`
31+
// The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
32+
Method *string `json:"Method,omitempty"`
3333
}
3434

3535
func (params *CreateUserDefinedMessageSubscriptionParams) SetPathAccountSid(PathAccountSid string) *CreateUserDefinedMessageSubscriptionParams {
@@ -40,14 +40,14 @@ func (params *CreateUserDefinedMessageSubscriptionParams) SetCallback(Callback s
4040
params.Callback = &Callback
4141
return params
4242
}
43-
func (params *CreateUserDefinedMessageSubscriptionParams) SetMethod(Method string) *CreateUserDefinedMessageSubscriptionParams {
44-
params.Method = &Method
45-
return params
46-
}
4743
func (params *CreateUserDefinedMessageSubscriptionParams) SetIdempotencyKey(IdempotencyKey string) *CreateUserDefinedMessageSubscriptionParams {
4844
params.IdempotencyKey = &IdempotencyKey
4945
return params
5046
}
47+
func (params *CreateUserDefinedMessageSubscriptionParams) SetMethod(Method string) *CreateUserDefinedMessageSubscriptionParams {
48+
params.Method = &Method
49+
return params
50+
}
5151

5252
// Subscribe to User Defined Messages for a given Call SID.
5353
func (c *ApiService) CreateUserDefinedMessageSubscription(CallSid string, params *CreateUserDefinedMessageSubscriptionParams) (*ApiV2010UserDefinedMessageSubscription, error) {
@@ -65,12 +65,12 @@ func (c *ApiService) CreateUserDefinedMessageSubscription(CallSid string, params
6565
if params != nil && params.Callback != nil {
6666
data.Set("Callback", *params.Callback)
6767
}
68-
if params != nil && params.Method != nil {
69-
data.Set("Method", *params.Method)
70-
}
7168
if params != nil && params.IdempotencyKey != nil {
7269
data.Set("IdempotencyKey", *params.IdempotencyKey)
7370
}
71+
if params != nil && params.Method != nil {
72+
data.Set("Method", *params.Method)
73+
}
7474

7575
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
7676
if err != nil {

rest/api/v2010/docs/AccountsAddressesApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Name | Type | Description
4141
**FriendlyName** | **string** | A descriptive string that you create to describe the new address. It can be up to 64 characters long.
4242
**EmergencyEnabled** | **bool** | Whether to enable emergency calling on the new address. Can be: `true` or `false`.
4343
**AutoCorrectAddress** | **bool** | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide.
44+
**StreetSecondary** | **string** | The additional number and street address of the address.
4445

4546
### Return type
4647

@@ -222,6 +223,7 @@ Name | Type | Description
222223
**PostalCode** | **string** | The postal code of the address.
223224
**EmergencyEnabled** | **bool** | Whether to enable emergency calling on the address. Can be: `true` or `false`.
224225
**AutoCorrectAddress** | **bool** | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide.
226+
**StreetSecondary** | **string** | The additional number and street address of the address.
225227

226228
### Return type
227229

rest/api/v2010/docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Name | Type | Description
3434
------------- | ------------- | -------------
3535
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages.
3636
**Callback** | **string** | The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted).
37-
**Method** | **string** | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
3837
**IdempotencyKey** | **string** | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated.
38+
**Method** | **string** | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`.
3939

4040
### Return type
4141

rest/api/v2010/docs/ApiV2010Address.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**EmergencyEnabled** | Pointer to **bool** | Whether emergency calling has been enabled on this number |
2020
**Validated** | Pointer to **bool** | Whether the address has been validated to comply with local regulation |
2121
**Verified** | Pointer to **bool** | Whether the address has been verified to comply with regulation |
22+
**StreetSecondary** | Pointer to **string** | The additional number and street address of the address |
2223

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

rest/api/v2010/model_api_v2010_address.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,6 @@ type ApiV2010Address struct {
4646
Validated *bool `json:"validated,omitempty"`
4747
// Whether the address has been verified to comply with regulation
4848
Verified *bool `json:"verified,omitempty"`
49+
// The additional number and street address of the address
50+
StreetSecondary *string `json:"street_secondary,omitempty"`
4951
}

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.37.4
8+
- API version: 1.38.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)