Skip to content

Commit c24f7a8

Browse files
committed
[Librarian] Regenerated @ bd01257c5bef8696988f5e9f18d803d8ccdb5a0f 0d301f7b8858e2f9dc391bd6803943499955b8f0
1 parent 4fc132a commit c24f7a8

19 files changed

+404
-11
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
twilio-go changelog
22
====================
3+
[2024-04-18] Version 1.20.1
4+
---------------------------
5+
**Flex**
6+
- Add header `ui_version` to `web_channels` API
7+
8+
**Messaging**
9+
- Redeploy after failed pipeline
10+
11+
**Numbers**
12+
- Add Delete Port In request phone number api and Add Delete Port In request api
13+
14+
315
[2024-04-04] Version 1.20.0
416
---------------------------
517
**Library - Feature**

rest/api/v2010/accounts_calls_streams.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ import (
2424
type CreateStreamParams struct {
2525
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource.
2626
PathAccountSid *string `json:"PathAccountSid,omitempty"`
27-
// Relative or absolute url where WebSocket connection will be established.
27+
// Relative or absolute URL where WebSocket connection will be established.
2828
Url *string `json:"Url,omitempty"`
29-
// The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream.
29+
// The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
3030
Name *string `json:"Name,omitempty"`
3131
//
3232
Track *string `json:"Track,omitempty"`
33-
// Absolute URL of the status callback.
33+
// Absolute URL to which Twilio sends status callback HTTP requests.
3434
StatusCallback *string `json:"StatusCallback,omitempty"`
35-
// The http method for the status_callback (one of GET, POST).
35+
// The HTTP method Twilio uses when sending `status_callback` requests. Possible values are `GET` and `POST`. Default is `POST`.
3636
StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"`
3737
// Parameter name
3838
Parameter1Name *string `json:"Parameter1.Name,omitempty"`

rest/api/v2010/docs/AccountsCallsStreamsApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Other parameters are passed through a pointer to a CreateStreamParams struct
3333
Name | Type | Description
3434
------------- | ------------- | -------------
3535
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource.
36-
**Url** | **string** | Relative or absolute url where WebSocket connection will be established.
37-
**Name** | **string** | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream.
36+
**Url** | **string** | Relative or absolute URL where WebSocket connection will be established.
37+
**Name** | **string** | The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
3838
**Track** | **string** |
39-
**StatusCallback** | **string** | Absolute URL of the status callback.
40-
**StatusCallbackMethod** | **string** | The http method for the status_callback (one of GET, POST).
39+
**StatusCallback** | **string** | Absolute URL to which Twilio sends status callback HTTP requests.
40+
**StatusCallbackMethod** | **string** | The HTTP method Twilio uses when sending `status_callback` requests. Possible values are `GET` and `POST`. Default is `POST`.
4141
**Parameter1Name** | **string** | Parameter name
4242
**Parameter1Value** | **string** | Parameter value
4343
**Parameter2Name** | **string** | Parameter name
@@ -270,7 +270,7 @@ Name | Type | Description
270270
------------- | ------------- | -------------
271271
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
272272
**CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with.
273-
**Sid** | **string** | The SID of the Stream resource, or the `name` used when creating the resource
273+
**Sid** | **string** | The SID or the `name` of the Stream resource to be stopped
274274

275275
### Other Parameters
276276

rest/api/v2010/docs/ApiV2010Stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**Sid** | Pointer to **string** | The SID of the Stream resource. |
88
**AccountSid** | Pointer to **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. |
99
**CallSid** | Pointer to **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. |
10-
**Name** | Pointer to **string** | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. |
10+
**Name** | Pointer to **string** | The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream. |
1111
**Status** | Pointer to [**string**](StreamEnumStatus.md) | |
1212
**DateUpdated** | Pointer to **string** | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. |
1313
**Uri** | Pointer to **string** | The URI of the resource, relative to `https://api.twilio.com`. |

rest/api/v2010/model_api_v2010_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ApiV2010Stream struct {
2222
AccountSid *string `json:"account_sid,omitempty"`
2323
// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with.
2424
CallSid *string `json:"call_sid,omitempty"`
25-
// The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream.
25+
// The user-specified name of this Stream, if one was given when the Stream was created. This can be used to stop the Stream.
2626
Name *string `json:"name,omitempty"`
2727
Status *string `json:"status,omitempty"`
2828
// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.

rest/flex/v2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ All URIs are relative to *https://flex-api.twilio.com*
3131

3232
Class | Method | HTTP request | Description
3333
------------ | ------------- | ------------- | -------------
34+
*InstancesUsersApi* | [**FetchFlexUser**](docs/InstancesUsersApi.md#fetchflexuser) | **Get** /v2/Instances/{InstanceSid}/Users/{FlexUserSid} |
3435
*WebChatsApi* | [**CreateWebChannel**](docs/WebChatsApi.md#createwebchannel) | **Post** /v2/WebChats |
3536

3637

3738
## Documentation For Models
3839

40+
- [FlexV2FlexUser](docs/FlexV2FlexUser.md)
3941
- [FlexV2WebChannel](docs/FlexV2WebChannel.md)
4042

4143

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# FlexV2FlexUser
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**AccountSid** | Pointer to **string** | The unique SID of the account that created the resource. |
8+
**InstanceSid** | Pointer to **string** | The unique ID created by Twilio to identify a Flex instance. |
9+
**UserSid** | Pointer to **string** | The unique SID identifier of the Twilio Unified User. |
10+
**FlexUserSid** | Pointer to **string** | The unique SID identifier of the Flex User. |
11+
**WorkerSid** | Pointer to **string** | The unique SID identifier of the worker. |
12+
**WorkspaceSid** | Pointer to **string** | The unique SID identifier of the workspace. |
13+
**FlexTeamSid** | Pointer to **string** | The unique SID identifier of the Flex Team. |
14+
**FirstName** | Pointer to **string** | First name of the User. |
15+
**LastName** | Pointer to **string** | Last name of the User. |
16+
**Username** | Pointer to **string** | Username of the User. |
17+
**Email** | Pointer to **string** | Email of the User. |
18+
**FriendlyName** | Pointer to **string** | Friendly name of the User. |
19+
**CreatedDate** | Pointer to [**time.Time**](time.Time.md) | The date that this user was created, given in ISO 8601 format. |
20+
**UpdatedDate** | Pointer to [**time.Time**](time.Time.md) | The date that this user was updated, given in ISO 8601 format. |
21+
**Version** | Pointer to **int** | The current version of the user. |
22+
**Url** | Pointer to **string** | |
23+
24+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
25+
26+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# InstancesUsersApi
2+
3+
All URIs are relative to *https://flex-api.twilio.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**FetchFlexUser**](InstancesUsersApi.md#FetchFlexUser) | **Get** /v2/Instances/{InstanceSid}/Users/{FlexUserSid} |
8+
9+
10+
11+
## FetchFlexUser
12+
13+
> FlexV2FlexUser FetchFlexUser(ctx, InstanceSidFlexUserSid)
14+
15+
16+
17+
Fetch flex user for the given flex user sid
18+
19+
### Path Parameters
20+
21+
22+
Name | Type | Description
23+
------------- | ------------- | -------------
24+
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
25+
**InstanceSid** | **string** | The unique ID created by Twilio to identify a Flex instance.
26+
**FlexUserSid** | **string** | The unique id for the flex user to be retrieved.
27+
28+
### Other Parameters
29+
30+
Other parameters are passed through a pointer to a FetchFlexUserParams struct
31+
32+
33+
Name | Type | Description
34+
------------- | ------------- | -------------
35+
36+
### Return type
37+
38+
[**FlexV2FlexUser**](FlexV2FlexUser.md)
39+
40+
### Authorization
41+
42+
[accountSid_authToken](../README.md#accountSid_authToken)
43+
44+
### HTTP request headers
45+
46+
- **Content-Type**: Not defined
47+
- **Accept**: application/json
48+
49+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
50+
[[Back to Model list]](../README.md#documentation-for-models)
51+
[[Back to README]](../README.md)
52+

rest/flex/v2/docs/WebChatsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Other parameters are passed through a pointer to a CreateWebChannelParams struct
2727

2828
Name | Type | Description
2929
------------- | ------------- | -------------
30+
**UiVersion** | **string** | The Ui-Version HTTP request header
3031
**AddressSid** | **string** | The SID of the Conversations Address. See [Address Configuration Resource](https://www.twilio.com/docs/conversations/api/address-configuration-resource) for configuration details. When a conversation is created on the Flex backend, the callback URL will be set to the corresponding Studio Flow SID or webhook URL in your address configuration.
3132
**ChatFriendlyName** | **string** | The Conversation's friendly name. See the [Conversation resource](https://www.twilio.com/docs/conversations/api/conversation-resource) for an example.
3233
**CustomerFriendlyName** | **string** | The Conversation participant's friendly name. See the [Conversation Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) for an example.

rest/flex/v2/instances_users.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Flex
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
package openapi
16+
17+
import (
18+
"encoding/json"
19+
"net/url"
20+
"strings"
21+
)
22+
23+
// Fetch flex user for the given flex user sid
24+
func (c *ApiService) FetchFlexUser(InstanceSid string, FlexUserSid string) (*FlexV2FlexUser, error) {
25+
path := "/v2/Instances/{InstanceSid}/Users/{FlexUserSid}"
26+
path = strings.Replace(path, "{"+"InstanceSid"+"}", InstanceSid, -1)
27+
path = strings.Replace(path, "{"+"FlexUserSid"+"}", FlexUserSid, -1)
28+
29+
data := url.Values{}
30+
headers := make(map[string]interface{})
31+
32+
resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
33+
if err != nil {
34+
return nil, err
35+
}
36+
37+
defer resp.Body.Close()
38+
39+
ps := &FlexV2FlexUser{}
40+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
41+
return nil, err
42+
}
43+
44+
return ps, err
45+
}

0 commit comments

Comments
 (0)