diff --git a/CHANGES.md b/CHANGES.md index 57762842f..c4b05022a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,25 @@ twilio-go changelog ==================== +[2022-10-31] Version 1.1.1 +-------------------------- +**Library - Miscellaneous** +- [PR #195](https://github.com/twilio/twilio-go/pull/195): move webhook cluster test. Thanks to [@claudiachua](https://github.com/claudiachua)! + +**Api** +- Added `contentSid` and `contentVariables` to Message resource with public visibility as Beta +- Add `UserDefinedMessageSubscription` and `UserDefinedMessage` resource + +**Proxy** +- Remove FailOnParticipantConflict param from Proxy Session create and update and Proxy Participant create + +**Supersim** +- Update SettingsUpdates resource to remove PackageSid + +**Taskrouter** +- Add `Ordering` query parameter to Workers and TaskQueues for sorting by +- Add `worker_sid` query param for list reservations endpoint + + [2022-10-19] Version 1.1.0 -------------------------- **Library - Docs** diff --git a/client/version.go b/client/version.go index 3a964d6a3..14f66686f 100644 --- a/client/version.go +++ b/client/version.go @@ -2,4 +2,4 @@ package client // LibraryVersion specifies the current version of twilio-go. -const LibraryVersion = "1.1.0" +const LibraryVersion = "1.1.1" diff --git a/cluster_test.go b/cluster_test.go index 39a34628f..29dd7a9fe 100644 --- a/cluster_test.go +++ b/cluster_test.go @@ -4,12 +4,13 @@ package twilio import ( + "os" + "testing" + "github.com/stretchr/testify/assert" Api "github.com/twilio/twilio-go/rest/api/v2010" ChatV2 "github.com/twilio/twilio-go/rest/chat/v2" EventsV1 "github.com/twilio/twilio-go/rest/events/v1" - "os" - "testing" ) var from string diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md index a34fd8627..ac47df7b1 100644 --- a/rest/accounts/v1/README.md +++ b/rest/accounts/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index fd6e5d44f..ad067c349 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -82,6 +82,9 @@ Class | Method | HTTP request | Description *AccountsCallsSiprecApi* | [**UpdateSiprec**](docs/AccountsCallsSiprecApi.md#updatesiprec) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | *AccountsCallsStreamsApi* | [**CreateStream**](docs/AccountsCallsStreamsApi.md#createstream) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | *AccountsCallsStreamsApi* | [**UpdateStream**](docs/AccountsCallsStreamsApi.md#updatestream) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | +*AccountsCallsUserDefinedMessageSubscriptionsApi* | [**CreateUserDefinedMessageSubscription**](docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md#createuserdefinedmessagesubscription) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +*AccountsCallsUserDefinedMessageSubscriptionsApi* | [**DeleteUserDefinedMessageSubscription**](docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md#deleteuserdefinedmessagesubscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | +*AccountsCallsUserDefinedMessagesApi* | [**CreateUserDefinedMessage**](docs/AccountsCallsUserDefinedMessagesApi.md#createuserdefinedmessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | *AccountsConferencesApi* | [**FetchConference**](docs/AccountsConferencesApi.md#fetchconference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | *AccountsConferencesApi* | [**ListConference**](docs/AccountsConferencesApi.md#listconference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences.json | *AccountsConferencesApi* | [**UpdateConference**](docs/AccountsConferencesApi.md#updateconference) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | @@ -240,6 +243,7 @@ Class | Method | HTTP request | Description - [ListApplicationResponse](docs/ListApplicationResponse.md) - [ApiV2010UsageRecord](docs/ApiV2010UsageRecord.md) - [ListIncomingPhoneNumberLocalResponse](docs/ListIncomingPhoneNumberLocalResponse.md) + - [ApiV2010UserDefinedMessage](docs/ApiV2010UserDefinedMessage.md) - [ApiV2010RecordingAddOnResultPayload](docs/ApiV2010RecordingAddOnResultPayload.md) - [ListMessageResponse](docs/ListMessageResponse.md) - [ApiV2010Transcription](docs/ApiV2010Transcription.md) @@ -319,6 +323,7 @@ Class | Method | HTTP request | Description - [ApiV2010SipAuthCallsCredentialListMapping](docs/ApiV2010SipAuthCallsCredentialListMapping.md) - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) - [ApiV2010NewKey](docs/ApiV2010NewKey.md) + - [ApiV2010UserDefinedMessageSubscription](docs/ApiV2010UserDefinedMessageSubscription.md) - [ApiV2010NewSigningKey](docs/ApiV2010NewSigningKey.md) - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) diff --git a/rest/api/v2010/accounts_calls_user_defined_message_subscriptions.go b/rest/api/v2010/accounts_calls_user_defined_message_subscriptions.go new file mode 100644 index 000000000..af414e565 --- /dev/null +++ b/rest/api/v2010/accounts_calls_user_defined_message_subscriptions.go @@ -0,0 +1,123 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "encoding/json" + "net/url" + "strings" +) + +// Optional parameters for the method 'CreateUserDefinedMessageSubscription' +type CreateUserDefinedMessageSubscriptionParams struct { + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + PathAccountSid *string `json:"PathAccountSid,omitempty"` + // 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). + Callback *string `json:"Callback,omitempty"` + // The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. + Method *string `json:"Method,omitempty"` + // A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` +} + +func (params *CreateUserDefinedMessageSubscriptionParams) SetPathAccountSid(PathAccountSid string) *CreateUserDefinedMessageSubscriptionParams { + params.PathAccountSid = &PathAccountSid + return params +} +func (params *CreateUserDefinedMessageSubscriptionParams) SetCallback(Callback string) *CreateUserDefinedMessageSubscriptionParams { + params.Callback = &Callback + return params +} +func (params *CreateUserDefinedMessageSubscriptionParams) SetMethod(Method string) *CreateUserDefinedMessageSubscriptionParams { + params.Method = &Method + return params +} +func (params *CreateUserDefinedMessageSubscriptionParams) SetIdempotencyKey(IdempotencyKey string) *CreateUserDefinedMessageSubscriptionParams { + params.IdempotencyKey = &IdempotencyKey + return params +} + +// Subscribe to User Defined Messages for a given call sid. +func (c *ApiService) CreateUserDefinedMessageSubscription(CallSid string, params *CreateUserDefinedMessageSubscriptionParams) (*ApiV2010UserDefinedMessageSubscription, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json" + if params != nil && params.PathAccountSid != nil { + path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) + } else { + path = strings.Replace(path, "{"+"AccountSid"+"}", c.requestHandler.Client.AccountSid(), -1) + } + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Callback != nil { + data.Set("Callback", *params.Callback) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010UserDefinedMessageSubscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +// Optional parameters for the method 'DeleteUserDefinedMessageSubscription' +type DeleteUserDefinedMessageSubscriptionParams struct { + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + PathAccountSid *string `json:"PathAccountSid,omitempty"` +} + +func (params *DeleteUserDefinedMessageSubscriptionParams) SetPathAccountSid(PathAccountSid string) *DeleteUserDefinedMessageSubscriptionParams { + params.PathAccountSid = &PathAccountSid + return params +} + +// Delete a specific User Defined Message Subscription. +func (c *ApiService) DeleteUserDefinedMessageSubscription(CallSid string, Sid string, params *DeleteUserDefinedMessageSubscriptionParams) error { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json" + if params != nil && params.PathAccountSid != nil { + path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) + } else { + path = strings.Replace(path, "{"+"AccountSid"+"}", c.requestHandler.Client.AccountSid(), -1) + } + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + resp, err := c.requestHandler.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} diff --git a/rest/api/v2010/accounts_calls_user_defined_messages.go b/rest/api/v2010/accounts_calls_user_defined_messages.go new file mode 100644 index 000000000..b3c0eeb5d --- /dev/null +++ b/rest/api/v2010/accounts_calls_user_defined_messages.go @@ -0,0 +1,79 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +import ( + "encoding/json" + "net/url" + "strings" +) + +// Optional parameters for the method 'CreateUserDefinedMessage' +type CreateUserDefinedMessageParams struct { + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. + PathAccountSid *string `json:"PathAccountSid,omitempty"` + // A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. + Content *string `json:"Content,omitempty"` + // A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` +} + +func (params *CreateUserDefinedMessageParams) SetPathAccountSid(PathAccountSid string) *CreateUserDefinedMessageParams { + params.PathAccountSid = &PathAccountSid + return params +} +func (params *CreateUserDefinedMessageParams) SetContent(Content string) *CreateUserDefinedMessageParams { + params.Content = &Content + return params +} +func (params *CreateUserDefinedMessageParams) SetIdempotencyKey(IdempotencyKey string) *CreateUserDefinedMessageParams { + params.IdempotencyKey = &IdempotencyKey + return params +} + +// Create a new User Defined Message for the given call sid. +func (c *ApiService) CreateUserDefinedMessage(CallSid string, params *CreateUserDefinedMessageParams) (*ApiV2010UserDefinedMessage, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json" + if params != nil && params.PathAccountSid != nil { + path = strings.Replace(path, "{"+"AccountSid"+"}", *params.PathAccountSid, -1) + } else { + path = strings.Replace(path, "{"+"AccountSid"+"}", c.requestHandler.Client.AccountSid(), -1) + } + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Content != nil { + data.Set("Content", *params.Content) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + + resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010UserDefinedMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/api/v2010/accounts_messages.go b/rest/api/v2010/accounts_messages.go index 42d3c7151..75cd96a5e 100644 --- a/rest/api/v2010/accounts_messages.go +++ b/rest/api/v2010/accounts_messages.go @@ -60,6 +60,10 @@ type CreateMessageParams struct { SendAt *time.Time `json:"SendAt,omitempty"` // If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. SendAsMms *bool `json:"SendAsMms,omitempty"` + // The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. + ContentSid *string `json:"ContentSid,omitempty"` + // Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time. + ContentVariables *string `json:"ContentVariables,omitempty"` // A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. From *string `json:"From,omitempty"` // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery. @@ -138,6 +142,14 @@ func (params *CreateMessageParams) SetSendAsMms(SendAsMms bool) *CreateMessagePa params.SendAsMms = &SendAsMms return params } +func (params *CreateMessageParams) SetContentSid(ContentSid string) *CreateMessageParams { + params.ContentSid = &ContentSid + return params +} +func (params *CreateMessageParams) SetContentVariables(ContentVariables string) *CreateMessageParams { + params.ContentVariables = &ContentVariables + return params +} func (params *CreateMessageParams) SetFrom(From string) *CreateMessageParams { params.From = &From return params @@ -217,6 +229,12 @@ func (c *ApiService) CreateMessage(params *CreateMessageParams) (*ApiV2010Messag if params != nil && params.SendAsMms != nil { data.Set("SendAsMms", fmt.Sprint(*params.SendAsMms)) } + if params != nil && params.ContentSid != nil { + data.Set("ContentSid", *params.ContentSid) + } + if params != nil && params.ContentVariables != nil { + data.Set("ContentVariables", *params.ContentVariables) + } if params != nil && params.From != nil { data.Set("From", *params.From) } diff --git a/rest/api/v2010/docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md b/rest/api/v2010/docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md new file mode 100644 index 000000000..59104296b --- /dev/null +++ b/rest/api/v2010/docs/AccountsCallsUserDefinedMessageSubscriptionsApi.md @@ -0,0 +1,100 @@ +# AccountsCallsUserDefinedMessageSubscriptionsApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateUserDefinedMessageSubscription**](AccountsCallsUserDefinedMessageSubscriptionsApi.md#CreateUserDefinedMessageSubscription) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +[**DeleteUserDefinedMessageSubscription**](AccountsCallsUserDefinedMessageSubscriptionsApi.md#DeleteUserDefinedMessageSubscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | + + + +## CreateUserDefinedMessageSubscription + +> ApiV2010UserDefinedMessageSubscription CreateUserDefinedMessageSubscription(ctx, CallSidoptional) + + + +Subscribe to User Defined Messages for a given call sid. + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the call sid that is producing the user defined messages. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateUserDefinedMessageSubscriptionParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. +**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). +**Method** | **string** | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. +**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. + +### Return type + +[**ApiV2010UserDefinedMessageSubscription**](ApiV2010UserDefinedMessageSubscription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteUserDefinedMessageSubscription + +> DeleteUserDefinedMessageSubscription(ctx, CallSidSidoptional) + + + +Delete a specific User Defined Message Subscription. + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the call sid that is producing the user defined messages. +**Sid** | **string** | The SID that uniquely identifies this User Defined Message Subscription. + +### Other Parameters + +Other parameters are passed through a pointer to a DeleteUserDefinedMessageSubscriptionParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/rest/api/v2010/docs/AccountsCallsUserDefinedMessagesApi.md b/rest/api/v2010/docs/AccountsCallsUserDefinedMessagesApi.md new file mode 100644 index 000000000..cf7e302f5 --- /dev/null +++ b/rest/api/v2010/docs/AccountsCallsUserDefinedMessagesApi.md @@ -0,0 +1,54 @@ +# AccountsCallsUserDefinedMessagesApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateUserDefinedMessage**](AccountsCallsUserDefinedMessagesApi.md#CreateUserDefinedMessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | + + + +## CreateUserDefinedMessage + +> ApiV2010UserDefinedMessage CreateUserDefinedMessage(ctx, CallSidoptional) + + + +Create a new User Defined Message for the given call sid. + +### Path Parameters + + +Name | Type | Description +------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. + +### Other Parameters + +Other parameters are passed through a pointer to a CreateUserDefinedMessageParams struct + + +Name | Type | Description +------------- | ------------- | ------------- +**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. +**Content** | **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. +**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. + +### Return type + +[**ApiV2010UserDefinedMessage**](ApiV2010UserDefinedMessage.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/rest/api/v2010/docs/AccountsMessagesApi.md b/rest/api/v2010/docs/AccountsMessagesApi.md index 3cd454676..6f1c9c6c9 100644 --- a/rest/api/v2010/docs/AccountsMessagesApi.md +++ b/rest/api/v2010/docs/AccountsMessagesApi.md @@ -48,6 +48,8 @@ Name | Type | Description **ScheduleType** | **string** | **SendAt** | **time.Time** | The time that Twilio will send the message. Must be in ISO 8601 format. **SendAsMms** | **bool** | If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. +**ContentSid** | **string** | The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. +**ContentVariables** | **string** | Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time. **From** | **string** | A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. **MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot) you want to associate with the Message. Set this parameter to use the [Messaging Service Settings and Copilot Features](https://www.twilio.com/console/sms/services) you have configured and leave the `from` parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the `from` phone number for delivery. **Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters in length. diff --git a/rest/api/v2010/docs/ApiV2010UserDefinedMessage.md b/rest/api/v2010/docs/ApiV2010UserDefinedMessage.md new file mode 100644 index 000000000..728e250a5 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010UserDefinedMessage.md @@ -0,0 +1,14 @@ +# ApiV2010UserDefinedMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | Pointer to **string** | Account Sid. | +**CallSid** | Pointer to **string** | Call Sid. | +**Sid** | Pointer to **string** | A string that uniquely identifies this User Defined Message. | +**DateCreated** | Pointer to **string** | The date this User Defined Message was created | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/api/v2010/docs/ApiV2010UserDefinedMessageSubscription.md b/rest/api/v2010/docs/ApiV2010UserDefinedMessageSubscription.md new file mode 100644 index 000000000..ceb5e7aab --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010UserDefinedMessageSubscription.md @@ -0,0 +1,15 @@ +# ApiV2010UserDefinedMessageSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | Pointer to **string** | Account Sid. | +**CallSid** | Pointer to **string** | Call Sid. | +**Sid** | Pointer to **string** | User Defined Message Subscription Sid | +**DateCreated** | Pointer to **string** | The date this User Defined Message Subscription was created | +**Uri** | Pointer to **string** | The URI of the resource, relative to `https://api.twilio.com`. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rest/api/v2010/model_api_v2010_user_defined_message.go b/rest/api/v2010/model_api_v2010_user_defined_message.go new file mode 100644 index 000000000..384b294d5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_user_defined_message.go @@ -0,0 +1,27 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// ApiV2010UserDefinedMessage struct for ApiV2010UserDefinedMessage +type ApiV2010UserDefinedMessage struct { + // Account Sid. + AccountSid *string `json:"account_sid,omitempty"` + // Call Sid. + CallSid *string `json:"call_sid,omitempty"` + // A string that uniquely identifies this User Defined Message. + Sid *string `json:"sid,omitempty"` + // The date this User Defined Message was created + DateCreated *string `json:"date_created,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_user_defined_message_subscription.go b/rest/api/v2010/model_api_v2010_user_defined_message_subscription.go new file mode 100644 index 000000000..e30111903 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_user_defined_message_subscription.go @@ -0,0 +1,29 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package openapi + +// ApiV2010UserDefinedMessageSubscription struct for ApiV2010UserDefinedMessageSubscription +type ApiV2010UserDefinedMessageSubscription struct { + // Account Sid. + AccountSid *string `json:"account_sid,omitempty"` + // Call Sid. + CallSid *string `json:"call_sid,omitempty"` + // User Defined Message Subscription Sid + Sid *string `json:"sid,omitempty"` + // The date this User Defined Message Subscription was created + DateCreated *string `json:"date_created,omitempty"` + // The URI of the resource, relative to `https://api.twilio.com`. + Uri *string `json:"uri,omitempty"` +} diff --git a/rest/autopilot/v1/README.md b/rest/autopilot/v1/README.md index d02316fcc..db7980476 100644 --- a/rest/autopilot/v1/README.md +++ b/rest/autopilot/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/bulkexports/v1/README.md b/rest/bulkexports/v1/README.md index e36bcbd94..1a67adba4 100644 --- a/rest/bulkexports/v1/README.md +++ b/rest/bulkexports/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/chat/v1/README.md b/rest/chat/v1/README.md index d9d731d6a..9c2506c4e 100644 --- a/rest/chat/v1/README.md +++ b/rest/chat/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/chat/v2/README.md b/rest/chat/v2/README.md index a3db789fe..91b86e9b7 100644 --- a/rest/chat/v2/README.md +++ b/rest/chat/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/chat/v3/README.md b/rest/chat/v3/README.md index 9bdb5592a..1f232756c 100644 --- a/rest/chat/v3/README.md +++ b/rest/chat/v3/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/conversations/v1/README.md b/rest/conversations/v1/README.md index fb773fd83..c24331419 100644 --- a/rest/conversations/v1/README.md +++ b/rest/conversations/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md index 705cb2e8f..39ca231de 100644 --- a/rest/events/v1/README.md +++ b/rest/events/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 0b11813e9..df3cc2ccd 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/frontline/v1/README.md b/rest/frontline/v1/README.md index 1ccb9694b..792ed5877 100644 --- a/rest/frontline/v1/README.md +++ b/rest/frontline/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md index dad52b1df..b953ed889 100644 --- a/rest/insights/v1/README.md +++ b/rest/insights/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/ip_messaging/v1/README.md b/rest/ip_messaging/v1/README.md index 45595c165..beb8dfec3 100644 --- a/rest/ip_messaging/v1/README.md +++ b/rest/ip_messaging/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/ip_messaging/v2/README.md b/rest/ip_messaging/v2/README.md index 7e510923c..b7bd9702e 100644 --- a/rest/ip_messaging/v2/README.md +++ b/rest/ip_messaging/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/lookups/v1/README.md b/rest/lookups/v1/README.md index 9df685bab..e3ef8a1af 100644 --- a/rest/lookups/v1/README.md +++ b/rest/lookups/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/lookups/v2/README.md b/rest/lookups/v2/README.md index e5c35126c..4145d50a3 100644 --- a/rest/lookups/v2/README.md +++ b/rest/lookups/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/media/v1/README.md b/rest/media/v1/README.md index a0a356dae..ed9c07931 100644 --- a/rest/media/v1/README.md +++ b/rest/media/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/messaging/v1/README.md b/rest/messaging/v1/README.md index 2c370fdd4..9392b4a90 100644 --- a/rest/messaging/v1/README.md +++ b/rest/messaging/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/microvisor/v1/README.md b/rest/microvisor/v1/README.md index 2c908df4b..c375b6082 100644 --- a/rest/microvisor/v1/README.md +++ b/rest/microvisor/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/monitor/v1/README.md b/rest/monitor/v1/README.md index 21fb2e625..93d0e622a 100644 --- a/rest/monitor/v1/README.md +++ b/rest/monitor/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/notify/v1/README.md b/rest/notify/v1/README.md index 9640869fe..c44eddbcb 100644 --- a/rest/notify/v1/README.md +++ b/rest/notify/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index 92095d494..58b86bf56 100644 --- a/rest/numbers/v2/README.md +++ b/rest/numbers/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/oauth/v1/README.md b/rest/oauth/v1/README.md index 9a23807c2..dca48a544 100644 --- a/rest/oauth/v1/README.md +++ b/rest/oauth/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md index 2b1949c51..d35eb59f6 100644 --- a/rest/pricing/v1/README.md +++ b/rest/pricing/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/pricing/v2/README.md b/rest/pricing/v2/README.md index c211f4aa4..ffee06277 100644 --- a/rest/pricing/v2/README.md +++ b/rest/pricing/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md index e46db6883..aecdfab8d 100644 --- a/rest/proxy/v1/README.md +++ b/rest/proxy/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/proxy/v1/docs/ServicesSessionsApi.md b/rest/proxy/v1/docs/ServicesSessionsApi.md index 50079841a..c3eeda811 100644 --- a/rest/proxy/v1/docs/ServicesSessionsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsApi.md @@ -41,7 +41,6 @@ Name | Type | Description **Mode** | **string** | **Status** | **string** | **Participants** | **[]interface{}** | The Participant objects to include in the new session. -**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. ### Return type @@ -218,7 +217,6 @@ Name | Type | Description **DateExpiry** | **time.Time** | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. **Ttl** | **int** | The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. **Status** | **string** | -**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. ### Return type diff --git a/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md b/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md index f84abc54f..920ec2304 100644 --- a/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md +++ b/rest/proxy/v1/docs/ServicesSessionsParticipantsApi.md @@ -39,7 +39,6 @@ Name | Type | Description **FriendlyName** | **string** | The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** **ProxyIdentifier** | **string** | The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. **ProxyIdentifierSid** | **string** | The SID of the Proxy Identifier to assign to the Participant. -**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. ### Return type diff --git a/rest/proxy/v1/services_sessions.go b/rest/proxy/v1/services_sessions.go index 4adc3a65a..6b1cff4d7 100644 --- a/rest/proxy/v1/services_sessions.go +++ b/rest/proxy/v1/services_sessions.go @@ -38,8 +38,6 @@ type CreateSessionParams struct { Status *string `json:"Status,omitempty"` // The Participant objects to include in the new session. Participants *[]interface{} `json:"Participants,omitempty"` - // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` } func (params *CreateSessionParams) SetUniqueName(UniqueName string) *CreateSessionParams { @@ -66,10 +64,6 @@ func (params *CreateSessionParams) SetParticipants(Participants []interface{}) * params.Participants = &Participants return params } -func (params *CreateSessionParams) SetFailOnParticipantConflict(FailOnParticipantConflict bool) *CreateSessionParams { - params.FailOnParticipantConflict = &FailOnParticipantConflict - return params -} // Create a new Session func (c *ApiService) CreateSession(ServiceSid string, params *CreateSessionParams) (*ProxyV1Session, error) { @@ -105,9 +99,6 @@ func (c *ApiService) CreateSession(ServiceSid string, params *CreateSessionParam data.Add("Participants", string(v)) } } - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) - } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { @@ -313,8 +304,6 @@ type UpdateSessionParams struct { Ttl *int `json:"Ttl,omitempty"` // Status *string `json:"Status,omitempty"` - // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` } func (params *UpdateSessionParams) SetDateExpiry(DateExpiry time.Time) *UpdateSessionParams { @@ -329,10 +318,6 @@ func (params *UpdateSessionParams) SetStatus(Status string) *UpdateSessionParams params.Status = &Status return params } -func (params *UpdateSessionParams) SetFailOnParticipantConflict(FailOnParticipantConflict bool) *UpdateSessionParams { - params.FailOnParticipantConflict = &FailOnParticipantConflict - return params -} // Update a specific Session. func (c *ApiService) UpdateSession(ServiceSid string, Sid string, params *UpdateSessionParams) (*ProxyV1Session, error) { @@ -352,9 +337,6 @@ func (c *ApiService) UpdateSession(ServiceSid string, Sid string, params *Update if params != nil && params.Status != nil { data.Set("Status", *params.Status) } - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) - } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/proxy/v1/services_sessions_participants.go b/rest/proxy/v1/services_sessions_participants.go index ef3e567ce..dd9262e19 100644 --- a/rest/proxy/v1/services_sessions_participants.go +++ b/rest/proxy/v1/services_sessions_participants.go @@ -33,8 +33,6 @@ type CreateParticipantParams struct { ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` // The SID of the Proxy Identifier to assign to the Participant. ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` - // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` } func (params *CreateParticipantParams) SetIdentifier(Identifier string) *CreateParticipantParams { @@ -53,10 +51,6 @@ func (params *CreateParticipantParams) SetProxyIdentifierSid(ProxyIdentifierSid params.ProxyIdentifierSid = &ProxyIdentifierSid return params } -func (params *CreateParticipantParams) SetFailOnParticipantConflict(FailOnParticipantConflict bool) *CreateParticipantParams { - params.FailOnParticipantConflict = &FailOnParticipantConflict - return params -} // Add a new Participant to the Session func (c *ApiService) CreateParticipant(ServiceSid string, SessionSid string, params *CreateParticipantParams) (*ProxyV1Participant, error) { @@ -79,9 +73,6 @@ func (c *ApiService) CreateParticipant(ServiceSid string, SessionSid string, par if params != nil && params.ProxyIdentifierSid != nil { data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) } - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) - } resp, err := c.requestHandler.Post(c.baseURL+path, data, headers) if err != nil { diff --git a/rest/routes/v2/README.md b/rest/routes/v2/README.md index 139fc64a5..4ab76a545 100644 --- a/rest/routes/v2/README.md +++ b/rest/routes/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/serverless/v1/README.md b/rest/serverless/v1/README.md index c0281cd65..85610e65a 100644 --- a/rest/serverless/v1/README.md +++ b/rest/serverless/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/studio/v1/README.md b/rest/studio/v1/README.md index d09d13653..841ed9cf2 100644 --- a/rest/studio/v1/README.md +++ b/rest/studio/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md index f0d36cd3b..3575f7a01 100644 --- a/rest/studio/v2/README.md +++ b/rest/studio/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/supersim/v1/README.md b/rest/supersim/v1/README.md index 406da6bc1..dfda0907d 100644 --- a/rest/supersim/v1/README.md +++ b/rest/supersim/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md index c2b0fceb0..b80b361b5 100644 --- a/rest/sync/v1/README.md +++ b/rest/sync/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md index 408e61950..aadb6dd14 100644 --- a/rest/taskrouter/v1/README.md +++ b/rest/taskrouter/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md index 5cb9767dc..5b7903f34 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTaskQueuesApi.md @@ -172,6 +172,7 @@ Name | Type | Description **FriendlyName** | **string** | The `friendly_name` of the TaskQueue resources to read. **EvaluateWorkerAttributes** | **string** | The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. **WorkerSid** | **string** | The SID of the Worker with the TaskQueue resources to read. +**Ordering** | **string** | Sorting parameter for TaskQueues **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md b/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md index d9f881917..ef4761dcc 100644 --- a/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesTasksReservationsApi.md @@ -79,6 +79,7 @@ Other parameters are passed through a pointer to a ListTaskReservationParams str Name | Type | Description ------------- | ------------- | ------------- **ReservationStatus** | **string** | Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. +**WorkerSid** | **string** | The SID of the reserved Worker resource to read. **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md b/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md index 069a2d6c4..5e2b9a1bb 100644 --- a/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md +++ b/rest/taskrouter/v1/docs/WorkspacesWorkersApi.md @@ -174,6 +174,7 @@ Name | Type | Description **TargetWorkersExpression** | **string** | Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. **TaskQueueName** | **string** | The `friendly_name` of the TaskQueue that the Workers to read are eligible for. **TaskQueueSid** | **string** | The SID of the TaskQueue that the Workers to read are eligible for. +**Ordering** | **string** | Sorting parameter for Workers **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. **Limit** | **int** | Max number of records to return. diff --git a/rest/taskrouter/v1/workspaces_task_queues.go b/rest/taskrouter/v1/workspaces_task_queues.go index 158918f08..9bdfc7224 100644 --- a/rest/taskrouter/v1/workspaces_task_queues.go +++ b/rest/taskrouter/v1/workspaces_task_queues.go @@ -157,6 +157,8 @@ type ListTaskQueueParams struct { EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` // The SID of the Worker with the TaskQueue resources to read. WorkerSid *string `json:"WorkerSid,omitempty"` + // Sorting parameter for TaskQueues + Ordering *string `json:"Ordering,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. @@ -175,6 +177,10 @@ func (params *ListTaskQueueParams) SetWorkerSid(WorkerSid string) *ListTaskQueue params.WorkerSid = &WorkerSid return params } +func (params *ListTaskQueueParams) SetOrdering(Ordering string) *ListTaskQueueParams { + params.Ordering = &Ordering + return params +} func (params *ListTaskQueueParams) SetPageSize(PageSize int) *ListTaskQueueParams { params.PageSize = &PageSize return params @@ -202,6 +208,9 @@ func (c *ApiService) PageTaskQueue(WorkspaceSid string, params *ListTaskQueuePar if params != nil && params.WorkerSid != nil { data.Set("WorkerSid", *params.WorkerSid) } + if params != nil && params.Ordering != nil { + data.Set("Ordering", *params.Ordering) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/taskrouter/v1/workspaces_tasks_reservations.go b/rest/taskrouter/v1/workspaces_tasks_reservations.go index 722512ef3..894549bbc 100644 --- a/rest/taskrouter/v1/workspaces_tasks_reservations.go +++ b/rest/taskrouter/v1/workspaces_tasks_reservations.go @@ -52,6 +52,8 @@ func (c *ApiService) FetchTaskReservation(WorkspaceSid string, TaskSid string, S type ListTaskReservationParams struct { // Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. ReservationStatus *string `json:"ReservationStatus,omitempty"` + // The SID of the reserved Worker resource to read. + WorkerSid *string `json:"WorkerSid,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. @@ -62,6 +64,10 @@ func (params *ListTaskReservationParams) SetReservationStatus(ReservationStatus params.ReservationStatus = &ReservationStatus return params } +func (params *ListTaskReservationParams) SetWorkerSid(WorkerSid string) *ListTaskReservationParams { + params.WorkerSid = &WorkerSid + return params +} func (params *ListTaskReservationParams) SetPageSize(PageSize int) *ListTaskReservationParams { params.PageSize = &PageSize return params @@ -84,6 +90,9 @@ func (c *ApiService) PageTaskReservation(WorkspaceSid string, TaskSid string, pa if params != nil && params.ReservationStatus != nil { data.Set("ReservationStatus", *params.ReservationStatus) } + if params != nil && params.WorkerSid != nil { + data.Set("WorkerSid", *params.WorkerSid) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/taskrouter/v1/workspaces_workers.go b/rest/taskrouter/v1/workspaces_workers.go index 4ea65074a..01614e7e8 100644 --- a/rest/taskrouter/v1/workspaces_workers.go +++ b/rest/taskrouter/v1/workspaces_workers.go @@ -153,6 +153,8 @@ type ListWorkerParams struct { TaskQueueName *string `json:"TaskQueueName,omitempty"` // The SID of the TaskQueue that the Workers to read are eligible for. TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + // Sorting parameter for Workers + Ordering *string `json:"Ordering,omitempty"` // How many resources to return in each list page. The default is 50, and the maximum is 1000. PageSize *int `json:"PageSize,omitempty"` // Max number of records to return. @@ -187,6 +189,10 @@ func (params *ListWorkerParams) SetTaskQueueSid(TaskQueueSid string) *ListWorker params.TaskQueueSid = &TaskQueueSid return params } +func (params *ListWorkerParams) SetOrdering(Ordering string) *ListWorkerParams { + params.Ordering = &Ordering + return params +} func (params *ListWorkerParams) SetPageSize(PageSize int) *ListWorkerParams { params.PageSize = &PageSize return params @@ -226,6 +232,9 @@ func (c *ApiService) PageWorker(WorkspaceSid string, params *ListWorkerParams, p if params != nil && params.TaskQueueSid != nil { data.Set("TaskQueueSid", *params.TaskQueueSid) } + if params != nil && params.Ordering != nil { + data.Set("Ordering", *params.Ordering) + } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md index e1bb46fc3..baec522de 100644 --- a/rest/trunking/v1/README.md +++ b/rest/trunking/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/trusthub/v1/README.md b/rest/trusthub/v1/README.md index 5fee67b0b..d035c3fc3 100644 --- a/rest/trusthub/v1/README.md +++ b/rest/trusthub/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index e68817a19..09ac1211d 100644 --- a/rest/verify/v2/README.md +++ b/rest/verify/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/verify/v2/docs/ServicesVerificationsApi.md b/rest/verify/v2/docs/ServicesVerificationsApi.md index 71fdf8808..2bbcb74f4 100644 --- a/rest/verify/v2/docs/ServicesVerificationsApi.md +++ b/rest/verify/v2/docs/ServicesVerificationsApi.md @@ -38,14 +38,14 @@ Name | Type | Description **CustomFriendlyName** | **string** | A custom user defined friendly name that overwrites the existing one in the verification message **CustomMessage** | **string** | The text of a custom message to use for the verification. **SendDigits** | **string** | The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). -**Locale** | **string** | Locale will automatically resolve based on phone number country code for SMS, WhatsApp and call channel verifications. This parameter will override the automatic locale. [See supported languages and more information here.](https://www.twilio.com/docs/verify/supported-languages). +**Locale** | **string** | Locale will automatically resolve based on phone number country code for SMS, WhatsApp and call channel verifications. This parameter will override the automatic locale. [See supported languages and more information here](https://www.twilio.com/docs/verify/supported-languages). **CustomCode** | **string** | A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. **Amount** | **string** | The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. **Payee** | **string** | The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. **RateLimits** | [**interface{}**](interface{}.md) | The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. **ChannelConfiguration** | [**interface{}**](interface{}.md) | [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address. **AppHash** | **string** | Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. -**TemplateSid** | **string** | The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS channel only. +**TemplateSid** | **string** | The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. **TemplateCustomSubstitutions** | **string** | A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. ### Return type diff --git a/rest/verify/v2/docs/VerifyV2VerificationTemplate.md b/rest/verify/v2/docs/VerifyV2VerificationTemplate.md index d82c0624d..0f9f8d15f 100644 --- a/rest/verify/v2/docs/VerifyV2VerificationTemplate.md +++ b/rest/verify/v2/docs/VerifyV2VerificationTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Sid** | Pointer to **string** | A string that uniquely identifies this Template | **AccountSid** | Pointer to **string** | Account Sid | **FriendlyName** | Pointer to **string** | A string to describe the verification template | -**Channels** | Pointer to **[]string** | | +**Channels** | Pointer to **[]string** | A list of channels that support the Template | **Translations** | Pointer to **interface{}** | Object with the template translations. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rest/verify/v2/model_verify_v2_verification_template.go b/rest/verify/v2/model_verify_v2_verification_template.go index ff240c363..5c58d7f93 100644 --- a/rest/verify/v2/model_verify_v2_verification_template.go +++ b/rest/verify/v2/model_verify_v2_verification_template.go @@ -21,8 +21,9 @@ type VerifyV2VerificationTemplate struct { // Account Sid AccountSid *string `json:"account_sid,omitempty"` // A string to describe the verification template - FriendlyName *string `json:"friendly_name,omitempty"` - Channels *[]string `json:"channels,omitempty"` + FriendlyName *string `json:"friendly_name,omitempty"` + // A list of channels that support the Template + Channels *[]string `json:"channels,omitempty"` // Object with the template translations. Translations *interface{} `json:"translations,omitempty"` } diff --git a/rest/verify/v2/services_verifications.go b/rest/verify/v2/services_verifications.go index 014e7ceda..e2284ed3e 100644 --- a/rest/verify/v2/services_verifications.go +++ b/rest/verify/v2/services_verifications.go @@ -32,7 +32,7 @@ type CreateVerificationParams struct { CustomMessage *string `json:"CustomMessage,omitempty"` // The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). SendDigits *string `json:"SendDigits,omitempty"` - // Locale will automatically resolve based on phone number country code for SMS, WhatsApp and call channel verifications. This parameter will override the automatic locale. [See supported languages and more information here.](https://www.twilio.com/docs/verify/supported-languages). + // Locale will automatically resolve based on phone number country code for SMS, WhatsApp and call channel verifications. This parameter will override the automatic locale. [See supported languages and more information here](https://www.twilio.com/docs/verify/supported-languages). Locale *string `json:"Locale,omitempty"` // A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. CustomCode *string `json:"CustomCode,omitempty"` @@ -46,7 +46,7 @@ type CreateVerificationParams struct { ChannelConfiguration *interface{} `json:"ChannelConfiguration,omitempty"` // Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. AppHash *string `json:"AppHash,omitempty"` - // The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS channel only. + // The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. TemplateSid *string `json:"TemplateSid,omitempty"` // A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. TemplateCustomSubstitutions *string `json:"TemplateCustomSubstitutions,omitempty"` diff --git a/rest/video/v1/README.md b/rest/video/v1/README.md index e2cfc9f93..b79db0c91 100644 --- a/rest/video/v1/README.md +++ b/rest/video/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/voice/v1/README.md b/rest/voice/v1/README.md index 3e00b0378..6b2044a73 100644 --- a/rest/voice/v1/README.md +++ b/rest/voice/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/wireless/v1/README.md b/rest/wireless/v1/README.md index 75c1fb94f..f1cbdea66 100644 --- a/rest/wireless/v1/README.md +++ b/rest/wireless/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview 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. -- API version: 1.37.0 +- API version: 1.37.1 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/twiml/voice_response.go b/twiml/voice_response.go index fff3f2025..69c85524e 100644 --- a/twiml/voice_response.go +++ b/twiml/voice_response.go @@ -1608,6 +1608,8 @@ type VoiceConversation struct { // inbound_autocreation: Inbound autocreation // routing_assignment_timeout: Routing assignment timeout // inbound_timeout: Inbound timeout + // url: TwiML URL + // method: TwiML URL method // record: Record // trim: Trim // recording_status_callback: Recording status callback URL @@ -1621,6 +1623,8 @@ type VoiceConversation struct { InboundAutocreation string RoutingAssignmentTimeout string InboundTimeout string + Url string + Method string Record string Trim string RecordingStatusCallback string @@ -1647,6 +1651,8 @@ func (m VoiceConversation) GetAttr() (map[string]string, map[string]string) { "InboundAutocreation": m.InboundAutocreation, "RoutingAssignmentTimeout": m.RoutingAssignmentTimeout, "InboundTimeout": m.InboundTimeout, + "Url": m.Url, + "Method": m.Method, "Record": m.Record, "Trim": m.Trim, "RecordingStatusCallback": m.RecordingStatusCallback,