Skip to content

Commit c74923c

Browse files
committed
[Librarian] Regenerated @ 73b691d4309bbf652c00c8e81516e936534d2117 e39c0f89ecf837b35a77b0ecc773832297b7d7e3
1 parent c40393c commit c74923c

Some content is hidden

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

45 files changed

+1199
-119
lines changed

CHANGES.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
twilio-go changelog
22
====================
3+
[2025-05-05] Version 1.26.0
4+
---------------------------
5+
**Library - Chore**
6+
- [PR #282](https://github.com/twilio/twilio-go/pull/282): add access token example. Thanks to [@manisha1997](https://github.com/manisha1997)!
7+
- [PR #277](https://github.com/twilio/twilio-go/pull/277): retract 1.25.0. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
- [PR #275](https://github.com/twilio/twilio-go/pull/275): cluster test. Thanks to [@manisha1997](https://github.com/manisha1997)!
9+
10+
**Library - Feature**
11+
- [PR #281](https://github.com/twilio/twilio-go/pull/281): orgs api. Thanks to [@manisha1997](https://github.com/manisha1997)!
12+
13+
**Library - Fix**
14+
- [PR #280](https://github.com/twilio/twilio-go/pull/280): update github.com/golang-jwt/jwt to address vulnerability. Thanks to [@sigi-glovebox](https://github.com/sigi-glovebox)!
15+
16+
**Api**
17+
- Add `response_key` for `Usage Triggers` fetch endpoint.
18+
19+
**Flex**
20+
- Add Update Interaction API
21+
- Adding `webhook_ttid` as optional parameter in Interactions API
22+
23+
**Serverless**
24+
- Add node22 as a valid Build runtime
25+
- Add node20 as a valid Build runtime
26+
27+
**Video**
28+
- removed `transcribe_participants_on_connect` and `transcriptions_configuration` from the room resource **(breaking change)**
29+
- Added `transcribe_participants_on_connect` and `transcriptions_configuration` to the room resource
30+
31+
332
[2024-04-08] Version 1.25.1
433
---------------------------
534
**Library - Chore**

rest/api/v2010/accounts_calls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type CreateCallParams struct {
4444
StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"`
4545
// The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.
4646
StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"`
47-
// A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
47+
// The string of keys to dial after connecting to the number, with a maximum length of 32 digits. Valid digits in the string include any digit (`0`-`9`), '`A`', '`B`', '`C`', '`D`', '`#`', and '`*`'. You can also use '`w`' to insert a half-second pause and '`W`' to insert a one-second pause. For example, to pause for one second after connecting and then dial extension 1234 followed by the # key, set this parameter to `W1234#`. Be sure to URL-encode this string because the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
4848
SendDigits *string `json:"SendDigits,omitempty"`
4949
// The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail.
5050
Timeout *int `json:"Timeout,omitempty"`

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type CreateParticipantParams struct {
5151
StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"`
5252
// Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
5353
EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"`
54-
// 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).
54+
// The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
5555
WaitUrl *string `json:"WaitUrl,omitempty"`
5656
// 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.
5757
WaitMethod *string `json:"WaitMethod,omitempty"`
@@ -778,7 +778,7 @@ type UpdateParticipantParams struct {
778778
AnnounceUrl *string `json:"AnnounceUrl,omitempty"`
779779
// The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
780780
AnnounceMethod *string `json:"AnnounceMethod,omitempty"`
781-
// 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).
781+
// The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
782782
WaitUrl *string `json:"WaitUrl,omitempty"`
783783
// 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.
784784
WaitMethod *string `json:"WaitMethod,omitempty"`

rest/api/v2010/docs/AccountsCallsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Name | Type | Description
4040
**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).
4141
**StatusCallbackEvent** | **[]string** | The call progress events that we will send to the `status_callback` URL. Can be: `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, we send the `completed` status. If you want to receive multiple events, specify each one in a separate `status_callback_event` parameter. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored.
4242
**StatusCallbackMethod** | **string** | The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.
43-
**SendDigits** | **string** | A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
43+
**SendDigits** | **string** | The string of keys to dial after connecting to the number, with a maximum length of 32 digits. Valid digits in the string include any digit (`0`-`9`), '`A`', '`B`', '`C`', '`D`', '`#`', and '`*`'. You can also use '`w`' to insert a half-second pause and '`W`' to insert a one-second pause. For example, to pause for one second after connecting and then dial extension 1234 followed by the # key, set this parameter to `W1234#`. Be sure to URL-encode this string because the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored.
4444
**Timeout** | **int** | The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail.
4545
**Record** | **bool** | Whether to record the call. Can be `true` to record the phone call, or `false` to not. The default is `false`. The `recording_url` is sent to the `status_callback` URL.
4646
**RecordingChannels** | **string** | The number of channels in the final recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both legs of the call in a single channel of the recording file. `dual` records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call.

rest/api/v2010/docs/AccountsConferencesParticipantsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Name | Type | Description
4848
**Beep** | **string** | Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`.
4949
**StartConferenceOnEnter** | **bool** | Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
5050
**EndConferenceOnExit** | **bool** | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.
51-
**WaitUrl** | **string** | 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).
51+
**WaitUrl** | **string** | The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
5252
**WaitMethod** | **string** | 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.
5353
**EarlyMedia** | **bool** | Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`.
5454
**MaxParticipants** | **int** | The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`.
@@ -270,7 +270,7 @@ Name | Type | Description
270270
**HoldMethod** | **string** | The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`.
271271
**AnnounceUrl** | **string** | 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.
272272
**AnnounceMethod** | **string** | The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`.
273-
**WaitUrl** | **string** | 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).
273+
**WaitUrl** | **string** | The URL that Twilio calls using the `wait_method` before the conference has started. The URL may return an MP3 file, a WAV file, or a TwiML document. The default value is the URL of our standard hold music. If you do not want anything to play while waiting for the conference to start, specify an empty string by setting `wait_url` to `''`. For more details on the allowable verbs within the `waitUrl`, see the `waitUrl` attribute in the [<Conference> TwiML instruction](https://www.twilio.com/docs/voice/twiml/conference#attributes-waiturl).
274274
**WaitMethod** | **string** | 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.
275275
**BeepOnExit** | **bool** | Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`.
276276
**EndConferenceOnExit** | **bool** | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`.

rest/flex/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Class | Method | HTTP request | Description
6969
*InsightsUserRolesApi* | [**FetchInsightsUserRoles**](docs/InsightsUserRolesApi.md#fetchinsightsuserroles) | **Get** /v1/Insights/UserRoles | This is used by Flex UI and Quality Management to fetch the Flex Insights roles for the user
7070
*InteractionsApi* | [**CreateInteraction**](docs/InteractionsApi.md#createinteraction) | **Post** /v1/Interactions | Create a new Interaction.
7171
*InteractionsApi* | [**FetchInteraction**](docs/InteractionsApi.md#fetchinteraction) | **Get** /v1/Interactions/{Sid} |
72+
*InteractionsApi* | [**UpdateInteraction**](docs/InteractionsApi.md#updateinteraction) | **Post** /v1/Interactions/{Sid} | Updates an interaction.
7273
*InteractionsChannelsApi* | [**FetchInteractionChannel**](docs/InteractionsChannelsApi.md#fetchinteractionchannel) | **Get** /v1/Interactions/{InteractionSid}/Channels/{Sid} | Fetch a Channel for an Interaction.
7374
*InteractionsChannelsApi* | [**ListInteractionChannel**](docs/InteractionsChannelsApi.md#listinteractionchannel) | **Get** /v1/Interactions/{InteractionSid}/Channels | List all Channels for an Interaction.
7475
*InteractionsChannelsApi* | [**UpdateInteractionChannel**](docs/InteractionsChannelsApi.md#updateinteractionchannel) | **Post** /v1/Interactions/{InteractionSid}/Channels/{Sid} | Update an existing Interaction Channel.

rest/flex/v1/docs/FlexV1Interaction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**Url** | Pointer to **string** | |
1111
**Links** | Pointer to **map[string]interface{}** | |
1212
**InteractionContextSid** | Pointer to **string** | |
13+
**WebhookTtid** | Pointer to **string** | |
1314

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

rest/flex/v1/docs/InteractionsApi.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**CreateInteraction**](InteractionsApi.md#CreateInteraction) | **Post** /v1/Interactions | Create a new Interaction.
88
[**FetchInteraction**](InteractionsApi.md#FetchInteraction) | **Get** /v1/Interactions/{Sid} |
9+
[**UpdateInteraction**](InteractionsApi.md#UpdateInteraction) | **Post** /v1/Interactions/{Sid} | Updates an interaction.
910

1011

1112

@@ -31,6 +32,7 @@ Name | Type | Description
3132
**Channel** | [**map[string]interface{}**](map[string]interface{}.md) | The Interaction's channel.
3233
**Routing** | [**map[string]interface{}**](map[string]interface{}.md) | The Interaction's routing logic.
3334
**InteractionContextSid** | **string** | The Interaction context sid is used for adding a context lookup sid
35+
**WebhookTtid** | **string** | The unique identifier for Interaction level webhook
3436

3537
### Return type
3638

@@ -91,3 +93,46 @@ Name | Type | Description
9193
[[Back to Model list]](../README.md#documentation-for-models)
9294
[[Back to README]](../README.md)
9395

96+
97+
## UpdateInteraction
98+
99+
> FlexV1Interaction UpdateInteraction(ctx, Sidoptional)
100+
101+
Updates an interaction.
102+
103+
Updates an interaction.
104+
105+
### Path Parameters
106+
107+
108+
Name | Type | Description
109+
------------- | ------------- | -------------
110+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
111+
**Sid** | **string** | The SID of the Interaction resource to fetch.
112+
113+
### Other Parameters
114+
115+
Other parameters are passed through a pointer to a UpdateInteractionParams struct
116+
117+
118+
Name | Type | Description
119+
------------- | ------------- | -------------
120+
**WebhookTtid** | **string** | The unique identifier for Interaction level webhook
121+
122+
### Return type
123+
124+
[**FlexV1Interaction**](FlexV1Interaction.md)
125+
126+
### Authorization
127+
128+
[accountSid_authToken](../README.md#accountSid_authToken)
129+
130+
### HTTP request headers
131+
132+
- **Content-Type**: application/x-www-form-urlencoded
133+
- **Accept**: application/json
134+
135+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
136+
[[Back to Model list]](../README.md#documentation-for-models)
137+
[[Back to README]](../README.md)
138+

0 commit comments

Comments
 (0)