Skip to content

Commit 12f6940

Browse files
committed
[Librarian] Regenerated @ 1f092ba9afa4c22854ac65f8a1af7e63b84aae2a
1 parent 581bd54 commit 12f6940

File tree

88 files changed

+1587
-95
lines changed

Some content is hidden

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

88 files changed

+1587
-95
lines changed

CHANGES.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
twilio-go changelog
22
====================
3+
[2022-10-19] Version 1.1.0
4+
--------------------------
5+
**Library - Docs**
6+
- [PR #192](https://github.com/twilio/twilio-go/pull/192): Update readme to remove pilot warning. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
7+
8+
**Api**
9+
- Make link shortening parameters public **(breaking change)**
10+
11+
**Oauth**
12+
- added oauth JWKS endpoint
13+
- Get userinfo resource
14+
- OpenID discovery resource
15+
- Add new API for token endpoint
16+
17+
**Supersim**
18+
- Add SettingsUpdates resource
19+
20+
**Verify**
21+
- Update Verify Push endpoints to `ga` maturity
22+
- Verify BYOT add Channels property to the Get Templates response
23+
24+
325
[2022-10-05] Version 1.0.0
426
--------------------------
527
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2022-10-05-026x-to-1xx) for detailed migration notes.

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.36.0
8+
- API version: 1.37.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.36.0
8+
- API version: 1.37.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_conferences.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ type UpdateConferenceParams struct {
288288
PathAccountSid *string `json:"PathAccountSid,omitempty"`
289289
//
290290
Status *string `json:"Status,omitempty"`
291-
// The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `<Play>` or `<Say>`.
291+
// The URL we should call to announce something into the conference. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
292292
AnnounceUrl *string `json:"AnnounceUrl,omitempty"`
293293
// The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST`
294294
AnnounceMethod *string `json:"AnnounceMethod,omitempty"`

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,15 +744,15 @@ type UpdateParticipantParams struct {
744744
Muted *bool `json:"Muted,omitempty"`
745745
// Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference.
746746
Hold *bool `json:"Hold,omitempty"`
747-
// The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains the `<Play>`, `<Say>` or `<Redirect>` commands.
747+
// The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
748748
HoldUrl *string `json:"HoldUrl,omitempty"`
749749
// The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
750750
HoldMethod *string `json:"HoldMethod,omitempty"`
751-
// The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `<Play>` or `<Say>` commands.
751+
// The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs.
752752
AnnounceUrl *string `json:"AnnounceUrl,omitempty"`
753753
// The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
754754
AnnounceMethod *string `json:"AnnounceMethod,omitempty"`
755-
// The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
755+
// The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains `<Play>`, `<Say>`, `<Pause>`, or `<Redirect>` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
756756
WaitUrl *string `json:"WaitUrl,omitempty"`
757757
// The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file.
758758
WaitMethod *string `json:"WaitMethod,omitempty"`

rest/api/v2010/accounts_messages.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type CreateMessageParams struct {
5252
SmartEncoded *bool `json:"SmartEncoded,omitempty"`
5353
// Rich actions for Channels Messages.
5454
PersistentAction *[]string `json:"PersistentAction,omitempty"`
55+
// Determines the usage of Click Tracking. Setting it to `true` will instruct Twilio to replace all links in the Message with a shortened version based on the associated Domain Sid and track clicks on them. If this parameter is not set on an API call, we will use the value set on the Messaging Service. If this parameter is not set and the value is not configured on the Messaging Service used this will default to `false`.
56+
ShortenUrls *bool `json:"ShortenUrls,omitempty"`
5557
//
5658
ScheduleType *string `json:"ScheduleType,omitempty"`
5759
// The time that Twilio will send the message. Must be in ISO 8601 format.
@@ -120,6 +122,10 @@ func (params *CreateMessageParams) SetPersistentAction(PersistentAction []string
120122
params.PersistentAction = &PersistentAction
121123
return params
122124
}
125+
func (params *CreateMessageParams) SetShortenUrls(ShortenUrls bool) *CreateMessageParams {
126+
params.ShortenUrls = &ShortenUrls
127+
return params
128+
}
123129
func (params *CreateMessageParams) SetScheduleType(ScheduleType string) *CreateMessageParams {
124130
params.ScheduleType = &ScheduleType
125131
return params
@@ -199,6 +205,9 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag
199205
data.Add("PersistentAction", item)
200206
}
201207
}
208+
if params != nil && params.ShortenUrls != nil {
209+
data.Set("ShortenUrls", fmt.Sprint(*params.ShortenUrls))
210+
}
202211
if params != nil && params.ScheduleType != nil {
203212
data.Set("ScheduleType", *params.ScheduleType)
204213
}

rest/api/v2010/docs/AccountsConferencesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Name | Type | Description
127127
------------- | ------------- | -------------
128128
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update.
129129
**Status** | **string** |
130-
**AnnounceUrl** | **string** | The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with &#x60;&lt;Play&gt;&#x60; or &#x60;&lt;Say&gt;&#x60;.
130+
**AnnounceUrl** | **string** | The URL we should call to announce something into the conference. The URL may return an MP3 file, a WAV file, or a TwiML document that contains &#x60;&lt;Play&gt;&#x60;, &#x60;&lt;Say&gt;&#x60;, &#x60;&lt;Pause&gt;&#x60;, or &#x60;&lt;Redirect&gt;&#x60; verbs.
131131
**AnnounceMethod** | **string** | The HTTP method used to call &#x60;announce_url&#x60;. Can be: &#x60;GET&#x60; or &#x60;POST&#x60; and the default is &#x60;POST&#x60;
132132

133133
### Return type

rest/api/v2010/docs/AccountsConferencesParticipantsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ Name | Type | Description
264264
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update.
265265
**Muted** | **bool** | Whether the participant should be muted. Can be &#x60;true&#x60; or &#x60;false&#x60;. &#x60;true&#x60; will mute the participant, and &#x60;false&#x60; will un-mute them. Anything value other than &#x60;true&#x60; or &#x60;false&#x60; is interpreted as &#x60;false&#x60;.
266266
**Hold** | **bool** | Whether the participant should be on hold. Can be: &#x60;true&#x60; or &#x60;false&#x60;. &#x60;true&#x60; puts the participant on hold, and &#x60;false&#x60; lets them rejoin the conference.
267-
**HoldUrl** | **string** | The URL we call using the &#x60;hold_method&#x60; for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains the &#x60;&lt;Play&gt;&#x60;, &#x60;&lt;Say&gt;&#x60; or &#x60;&lt;Redirect&gt;&#x60; commands.
267+
**HoldUrl** | **string** | The URL we call using the &#x60;hold_method&#x60; for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains &#x60;&lt;Play&gt;&#x60;, &#x60;&lt;Say&gt;&#x60;, &#x60;&lt;Pause&gt;&#x60;, or &#x60;&lt;Redirect&gt;&#x60; verbs.
268268
**HoldMethod** | **string** | The HTTP method we should use to call &#x60;hold_url&#x60;. Can be: &#x60;GET&#x60; or &#x60;POST&#x60; and the default is &#x60;GET&#x60;.
269-
**AnnounceUrl** | **string** | The URL we call using the &#x60;announce_method&#x60; for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains &#x60;&lt;Play&gt;&#x60; or &#x60;&lt;Say&gt;&#x60; commands.
269+
**AnnounceUrl** | **string** | The URL we call using the &#x60;announce_method&#x60; for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains &#x60;&lt;Play&gt;&#x60;, &#x60;&lt;Say&gt;&#x60;, &#x60;&lt;Pause&gt;&#x60;, or &#x60;&lt;Redirect&gt;&#x60; verbs.
270270
**AnnounceMethod** | **string** | The HTTP method we should use to call &#x60;announce_url&#x60;. Can be: &#x60;GET&#x60; or &#x60;POST&#x60; and defaults to &#x60;POST&#x60;.
271-
**WaitUrl** | **string** | The URL we should call using the &#x60;wait_method&#x60; for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
271+
**WaitUrl** | **string** | The URL we call using the &#x60;wait_method&#x60; for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains &#x60;&lt;Play&gt;&#x60;, &#x60;&lt;Say&gt;&#x60;, &#x60;&lt;Pause&gt;&#x60;, or &#x60;&lt;Redirect&gt;&#x60; verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic).
272272
**WaitMethod** | **string** | The HTTP method we should use to call &#x60;wait_url&#x60;. Can be &#x60;GET&#x60; or &#x60;POST&#x60; and the default is &#x60;POST&#x60;. When using a static audio file, this should be &#x60;GET&#x60; so that we can cache the file.
273273
**BeepOnExit** | **bool** | Whether to play a notification beep to the conference when the participant exits. Can be: &#x60;true&#x60; or &#x60;false&#x60;.
274274
**EndConferenceOnExit** | **bool** | Whether to end the conference when the participant leaves. Can be: &#x60;true&#x60; or &#x60;false&#x60; and defaults to &#x60;false&#x60;.

rest/api/v2010/docs/AccountsMessagesApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Name | Type | Description
4444
**AddressRetention** | **string** |
4545
**SmartEncoded** | **bool** | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: &#x60;true&#x60; or &#x60;false&#x60;.
4646
**PersistentAction** | **[]string** | Rich actions for Channels Messages.
47+
**ShortenUrls** | **bool** | Determines the usage of Click Tracking. Setting it to &#x60;true&#x60; will instruct Twilio to replace all links in the Message with a shortened version based on the associated Domain Sid and track clicks on them. If this parameter is not set on an API call, we will use the value set on the Messaging Service. If this parameter is not set and the value is not configured on the Messaging Service used this will default to &#x60;false&#x60;.
4748
**ScheduleType** | **string** |
4849
**SendAt** | **time.Time** | The time that Twilio will send the message. Must be in ISO 8601 format.
4950
**SendAsMms** | **bool** | If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media.

rest/api/v2010/docs/ApiV2010AvailablePhoneNumberLocal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Name | Type | Description | Notes
99
**Lata** | Pointer to **string** | The LATA of this phone number |
1010
**Locality** | Pointer to **string** | The locality or city of this phone number's location |
1111
**RateCenter** | Pointer to **string** | The rate center of this phone number |
12-
**Latitude** | Pointer to **string** | The latitude of this phone number's location |
13-
**Longitude** | Pointer to **string** | The longitude of this phone number's location |
12+
**Latitude** | Pointer to **float32** | The latitude of this phone number's location |
13+
**Longitude** | Pointer to **float32** | The longitude of this phone number's location |
1414
**Region** | Pointer to **string** | The two-letter state or province abbreviation of this phone number's location |
1515
**PostalCode** | Pointer to **string** | The postal or ZIP code of this phone number's location |
1616
**IsoCountry** | Pointer to **string** | The ISO country code of this phone number |

0 commit comments

Comments
 (0)