Skip to content

Commit 91da2e6

Browse files
committed
[Librarian] Regenerated @ 45fa5159053e1c1f62f6d613f3b67a9239b43a5f 2551818144b7f525e66740ded45831b930db82b8
1 parent bd87738 commit 91da2e6

9 files changed

+340
-0
lines changed

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
twilio-go changelog
22
====================
3+
[2024-12-05] Version 1.23.7
4+
---------------------------
5+
**Api**
6+
- Add optional parameter `intelligence_service` to `transcription`
7+
- Updated `phone_number_sid` to be populated for sip trunking terminating calls.
8+
9+
**Numbers**
10+
- Add Update Hosted Number Order V2 API endpoint
11+
- Update Port in docs
12+
13+
**Twiml**
14+
- Add optional parameter `intelligence_service` to `<Transcription>`
15+
- Add support for new `<ConversationRelay>` and `<Assistant>` noun
16+
- Add `events` attribute to `<Dial>` verb
17+
18+
319
[2024-11-15] Version 1.23.6
420
---------------------------
521
**Api**

rest/api/v2010/accounts_calls_transcriptions.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ type CreateRealtimeTranscriptionParams struct {
5151
Hints *string `json:"Hints,omitempty"`
5252
// The provider will add punctuation to recognition result
5353
EnableAutomaticPunctuation *bool `json:"EnableAutomaticPunctuation,omitempty"`
54+
// The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
55+
IntelligenceService *string `json:"IntelligenceService,omitempty"`
5456
}
5557

5658
func (params *CreateRealtimeTranscriptionParams) SetPathAccountSid(PathAccountSid string) *CreateRealtimeTranscriptionParams {
@@ -109,6 +111,10 @@ func (params *CreateRealtimeTranscriptionParams) SetEnableAutomaticPunctuation(E
109111
params.EnableAutomaticPunctuation = &EnableAutomaticPunctuation
110112
return params
111113
}
114+
func (params *CreateRealtimeTranscriptionParams) SetIntelligenceService(IntelligenceService string) *CreateRealtimeTranscriptionParams {
115+
params.IntelligenceService = &IntelligenceService
116+
return params
117+
}
112118

113119
// Create a Transcription
114120
func (c *ApiService) CreateRealtimeTranscription(CallSid string, params *CreateRealtimeTranscriptionParams) (*ApiV2010RealtimeTranscription, error) {
@@ -164,6 +170,9 @@ func (c *ApiService) CreateRealtimeTranscription(CallSid string, params *CreateR
164170
if params != nil && params.EnableAutomaticPunctuation != nil {
165171
data.Set("EnableAutomaticPunctuation", fmt.Sprint(*params.EnableAutomaticPunctuation))
166172
}
173+
if params != nil && params.IntelligenceService != nil {
174+
data.Set("IntelligenceService", *params.IntelligenceService)
175+
}
167176

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

rest/api/v2010/docs/AccountsCallsTranscriptionsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Name | Type | Description
4646
**SpeechModel** | **string** | Recognition model used by the transcription engine, among those supported by the provider
4747
**Hints** | **string** | A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
4848
**EnableAutomaticPunctuation** | **bool** | The provider will add punctuation to recognition result
49+
**IntelligenceService** | **string** | The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
4950

5051
### Return type
5152

rest/numbers/v2/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Class | Method | HTTP request | Description
4040
*HostedNumberOrdersApi* | [**DeleteHostedNumberOrder**](docs/HostedNumberOrdersApi.md#deletehostednumberorder) | **Delete** /v2/HostedNumber/Orders/{Sid} |
4141
*HostedNumberOrdersApi* | [**FetchHostedNumberOrder**](docs/HostedNumberOrdersApi.md#fetchhostednumberorder) | **Get** /v2/HostedNumber/Orders/{Sid} |
4242
*HostedNumberOrdersApi* | [**ListHostedNumberOrder**](docs/HostedNumberOrdersApi.md#listhostednumberorder) | **Get** /v2/HostedNumber/Orders |
43+
*HostedNumberOrdersApi* | [**UpdateHostedNumberOrder**](docs/HostedNumberOrdersApi.md#updatehostednumberorder) | **Post** /v2/HostedNumber/Orders/{Sid} |
4344
*HostedNumberOrdersBulkApi* | [**CreateBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#createbulkhostednumberorder) | **Post** /v2/HostedNumber/Orders/Bulk |
4445
*HostedNumberOrdersBulkApi* | [**FetchBulkHostedNumberOrder**](docs/HostedNumberOrdersBulkApi.md#fetchbulkhostednumberorder) | **Get** /v2/HostedNumber/Orders/Bulk/{BulkHostingSid} |
4546
*RegulatoryComplianceBundlesApi* | [**CreateBundle**](docs/RegulatoryComplianceBundlesApi.md#createbundle) | **Post** /v2/RegulatoryCompliance/Bundles |

rest/numbers/v2/docs/HostedNumberOrdersApi.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**DeleteHostedNumberOrder**](HostedNumberOrdersApi.md#DeleteHostedNumberOrder) | **Delete** /v2/HostedNumber/Orders/{Sid} |
99
[**FetchHostedNumberOrder**](HostedNumberOrdersApi.md#FetchHostedNumberOrder) | **Get** /v2/HostedNumber/Orders/{Sid} |
1010
[**ListHostedNumberOrder**](HostedNumberOrdersApi.md#ListHostedNumberOrder) | **Get** /v2/HostedNumber/Orders |
11+
[**UpdateHostedNumberOrder**](HostedNumberOrdersApi.md#UpdateHostedNumberOrder) | **Post** /v2/HostedNumber/Orders/{Sid} |
1112

1213

1314

@@ -193,3 +194,48 @@ Name | Type | Description
193194
[[Back to Model list]](../README.md#documentation-for-models)
194195
[[Back to README]](../README.md)
195196

197+
198+
## UpdateHostedNumberOrder
199+
200+
> NumbersV2HostedNumberOrder UpdateHostedNumberOrder(ctx, Sidoptional)
201+
202+
203+
204+
Updates a specific HostedNumberOrder.
205+
206+
### Path Parameters
207+
208+
209+
Name | Type | Description
210+
------------- | ------------- | -------------
211+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
212+
**Sid** | **string** | The SID of the HostedNumberOrder resource to update.
213+
214+
### Other Parameters
215+
216+
Other parameters are passed through a pointer to a UpdateHostedNumberOrderParams struct
217+
218+
219+
Name | Type | Description
220+
------------- | ------------- | -------------
221+
**Status** | **string** |
222+
**VerificationCallDelay** | **int** | The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
223+
**VerificationCallExtension** | **string** | The numerical extension to dial when making the ownership verification call.
224+
225+
### Return type
226+
227+
[**NumbersV2HostedNumberOrder**](NumbersV2HostedNumberOrder.md)
228+
229+
### Authorization
230+
231+
[accountSid_authToken](../README.md#accountSid_authToken)
232+
233+
### HTTP request headers
234+
235+
- **Content-Type**: application/x-www-form-urlencoded
236+
- **Accept**: application/json
237+
238+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
239+
[[Back to Model list]](../README.md#documentation-for-models)
240+
[[Back to README]](../README.md)
241+

rest/numbers/v2/docs/NumbersV2HostedNumberOrder.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Name | Type | Description | Notes
2323
**ContactPhoneNumber** | Pointer to **string** | The contact phone number of the person authorized to sign the Authorization Document. |
2424
**BulkHostingRequestSid** | Pointer to **string** | A 34 character string that uniquely identifies the bulk hosting request associated with this HostedNumberOrder. |
2525
**NextStep** | Pointer to **string** | The next step you need to take to complete the hosted number order and request it successfully. |
26+
**VerificationAttempts** | **int** | The number of attempts made to verify ownership via a call for the hosted phone number. |[optional] [default to 0]
27+
**VerificationCallSids** | Pointer to **[]string** | The Call SIDs that identify the calls placed to verify ownership. |
28+
**VerificationCallDelay** | **int** | The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive. |[optional] [default to 0]
29+
**VerificationCallExtension** | Pointer to **string** | The numerical extension to dial when making the ownership verification call. |
30+
**VerificationCode** | Pointer to **string** | The digits the user must pass in the ownership verification call. |
31+
**VerificationType** | Pointer to [**string**](HostedNumberOrderEnumVerificationType.md) | |
2632

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

rest/numbers/v2/hosted_number_orders.go

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,3 +426,61 @@ func (c *ApiService) getNextListHostedNumberOrderResponse(nextPageUrl string) (i
426426
}
427427
return ps, nil
428428
}
429+
430+
// Optional parameters for the method 'UpdateHostedNumberOrder'
431+
type UpdateHostedNumberOrderParams struct {
432+
//
433+
Status *string `json:"Status,omitempty"`
434+
// The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
435+
VerificationCallDelay *int `json:"VerificationCallDelay,omitempty"`
436+
// The numerical extension to dial when making the ownership verification call.
437+
VerificationCallExtension *string `json:"VerificationCallExtension,omitempty"`
438+
}
439+
440+
func (params *UpdateHostedNumberOrderParams) SetStatus(Status string) *UpdateHostedNumberOrderParams {
441+
params.Status = &Status
442+
return params
443+
}
444+
func (params *UpdateHostedNumberOrderParams) SetVerificationCallDelay(VerificationCallDelay int) *UpdateHostedNumberOrderParams {
445+
params.VerificationCallDelay = &VerificationCallDelay
446+
return params
447+
}
448+
func (params *UpdateHostedNumberOrderParams) SetVerificationCallExtension(VerificationCallExtension string) *UpdateHostedNumberOrderParams {
449+
params.VerificationCallExtension = &VerificationCallExtension
450+
return params
451+
}
452+
453+
// Updates a specific HostedNumberOrder.
454+
func (c *ApiService) UpdateHostedNumberOrder(Sid string, params *UpdateHostedNumberOrderParams) (*NumbersV2HostedNumberOrder, error) {
455+
path := "/v2/HostedNumber/Orders/{Sid}"
456+
path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1)
457+
458+
data := url.Values{}
459+
headers := map[string]interface{}{
460+
"Content-Type": "application/x-www-form-urlencoded",
461+
}
462+
463+
if params != nil && params.Status != nil {
464+
data.Set("Status", *params.Status)
465+
}
466+
if params != nil && params.VerificationCallDelay != nil {
467+
data.Set("VerificationCallDelay", fmt.Sprint(*params.VerificationCallDelay))
468+
}
469+
if params != nil && params.VerificationCallExtension != nil {
470+
data.Set("VerificationCallExtension", *params.VerificationCallExtension)
471+
}
472+
473+
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
474+
if err != nil {
475+
return nil, err
476+
}
477+
478+
defer resp.Body.Close()
479+
480+
ps := &NumbersV2HostedNumberOrder{}
481+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
482+
return nil, err
483+
}
484+
485+
return ps, err
486+
}

rest/numbers/v2/model_numbers_v2_hosted_number_order.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,15 @@ type NumbersV2HostedNumberOrder struct {
5656
BulkHostingRequestSid *string `json:"bulk_hosting_request_sid,omitempty"`
5757
// The next step you need to take to complete the hosted number order and request it successfully.
5858
NextStep *string `json:"next_step,omitempty"`
59+
// The number of attempts made to verify ownership via a call for the hosted phone number.
60+
VerificationAttempts int `json:"verification_attempts,omitempty"`
61+
// The Call SIDs that identify the calls placed to verify ownership.
62+
VerificationCallSids *[]string `json:"verification_call_sids,omitempty"`
63+
// The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
64+
VerificationCallDelay int `json:"verification_call_delay,omitempty"`
65+
// The numerical extension to dial when making the ownership verification call.
66+
VerificationCallExtension *string `json:"verification_call_extension,omitempty"`
67+
// The digits the user must pass in the ownership verification call.
68+
VerificationCode *string `json:"verification_code,omitempty"`
69+
VerificationType *string `json:"verification_type,omitempty"`
5970
}

0 commit comments

Comments
 (0)