Skip to content

Commit a34bf76

Browse files
committed
chore: autogenerate
1 parent 516a70d commit a34bf76

File tree

1,849 files changed

+7236
-3744
lines changed

Some content is hidden

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

1,849 files changed

+7236
-3744
lines changed

rest/accounts/v1/README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@ All URIs are relative to *https://accounts.twilio.com*
3131

3232
Class | Method | HTTP request | Description
3333
------------ | ------------- | ------------- | -------------
34-
*AuthTokensPromoteApi* | [**UpdateAuthTokenPromotion**](docs/AuthTokensPromoteApi.md#updateauthtokenpromotion) | **Post** /v1/AuthTokens/Promote |
35-
*AuthTokensSecondaryApi* | [**CreateSecondaryAuthToken**](docs/AuthTokensSecondaryApi.md#createsecondaryauthtoken) | **Post** /v1/AuthTokens/Secondary |
36-
*AuthTokensSecondaryApi* | [**DeleteSecondaryAuthToken**](docs/AuthTokensSecondaryApi.md#deletesecondaryauthtoken) | **Delete** /v1/AuthTokens/Secondary |
34+
*AuthTokensPromoteApi* | [**UpdateAuthTokenPromotion**](docs/AuthTokensPromoteApi.md#updateauthtokenpromotion) | **Post** /v1/AuthTokens/Promote | Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.
35+
*AuthTokensSecondaryApi* | [**CreateSecondaryAuthToken**](docs/AuthTokensSecondaryApi.md#createsecondaryauthtoken) | **Post** /v1/AuthTokens/Secondary | Create a new secondary Auth Token
36+
*AuthTokensSecondaryApi* | [**DeleteSecondaryAuthToken**](docs/AuthTokensSecondaryApi.md#deletesecondaryauthtoken) | **Delete** /v1/AuthTokens/Secondary | Delete the secondary Auth Token from your account
3737
*ConsentsBulkApi* | [**CreateBulkConsents**](docs/ConsentsBulkApi.md#createbulkconsents) | **Post** /v1/Consents/Bulk |
3838
*ContactsBulkApi* | [**CreateBulkContacts**](docs/ContactsBulkApi.md#createbulkcontacts) | **Post** /v1/Contacts/Bulk |
39-
*CredentialsAWSApi* | [**CreateCredentialAws**](docs/CredentialsAWSApi.md#createcredentialaws) | **Post** /v1/Credentials/AWS |
40-
*CredentialsAWSApi* | [**DeleteCredentialAws**](docs/CredentialsAWSApi.md#deletecredentialaws) | **Delete** /v1/Credentials/AWS/{Sid} |
41-
*CredentialsAWSApi* | [**FetchCredentialAws**](docs/CredentialsAWSApi.md#fetchcredentialaws) | **Get** /v1/Credentials/AWS/{Sid} |
42-
*CredentialsAWSApi* | [**ListCredentialAws**](docs/CredentialsAWSApi.md#listcredentialaws) | **Get** /v1/Credentials/AWS |
43-
*CredentialsAWSApi* | [**UpdateCredentialAws**](docs/CredentialsAWSApi.md#updatecredentialaws) | **Post** /v1/Credentials/AWS/{Sid} |
44-
*CredentialsPublicKeysApi* | [**CreateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#createcredentialpublickey) | **Post** /v1/Credentials/PublicKeys |
45-
*CredentialsPublicKeysApi* | [**DeleteCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#deletecredentialpublickey) | **Delete** /v1/Credentials/PublicKeys/{Sid} |
46-
*CredentialsPublicKeysApi* | [**FetchCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} |
47-
*CredentialsPublicKeysApi* | [**ListCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#listcredentialpublickey) | **Get** /v1/Credentials/PublicKeys |
48-
*CredentialsPublicKeysApi* | [**UpdateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} |
49-
*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /v1/SafeList/Numbers |
50-
*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /v1/SafeList/Numbers |
51-
*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /v1/SafeList/Numbers |
39+
*CredentialsAWSApi* | [**CreateCredentialAws**](docs/CredentialsAWSApi.md#createcredentialaws) | **Post** /v1/Credentials/AWS | Create a new AWS Credential
40+
*CredentialsAWSApi* | [**DeleteCredentialAws**](docs/CredentialsAWSApi.md#deletecredentialaws) | **Delete** /v1/Credentials/AWS/{Sid} | Delete a Credential from your account
41+
*CredentialsAWSApi* | [**FetchCredentialAws**](docs/CredentialsAWSApi.md#fetchcredentialaws) | **Get** /v1/Credentials/AWS/{Sid} | Fetch the AWS credentials specified by the provided Credential Sid
42+
*CredentialsAWSApi* | [**ListCredentialAws**](docs/CredentialsAWSApi.md#listcredentialaws) | **Get** /v1/Credentials/AWS | Retrieves a collection of AWS Credentials belonging to the account used to make the request
43+
*CredentialsAWSApi* | [**UpdateCredentialAws**](docs/CredentialsAWSApi.md#updatecredentialaws) | **Post** /v1/Credentials/AWS/{Sid} | Modify the properties of a given Account
44+
*CredentialsPublicKeysApi* | [**CreateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#createcredentialpublickey) | **Post** /v1/Credentials/PublicKeys | Create a new Public Key Credential
45+
*CredentialsPublicKeysApi* | [**DeleteCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#deletecredentialpublickey) | **Delete** /v1/Credentials/PublicKeys/{Sid} | Delete a Credential from your account
46+
*CredentialsPublicKeysApi* | [**FetchCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} | Fetch the public key specified by the provided Credential Sid
47+
*CredentialsPublicKeysApi* | [**ListCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#listcredentialpublickey) | **Get** /v1/Credentials/PublicKeys | Retrieves a collection of Public Key Credentials belonging to the account used to make the request
48+
*CredentialsPublicKeysApi* | [**UpdateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} | Modify the properties of a given Account
49+
*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /v1/SafeList/Numbers | Add a new phone number to SafeList.
50+
*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /v1/SafeList/Numbers | Remove a phone number from SafeList.
51+
*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /v1/SafeList/Numbers | Check if a phone number exists in SafeList.
5252

5353

5454
## Documentation For Models

rest/accounts/v1/auth_tokens_promote.go

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ package openapi
1616

1717
import (
1818
"encoding/json"
19+
"fmt"
1920
"net/url"
21+
22+
"github.com/twilio/twilio-go/client"
2023
)
2124

2225
// Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.

rest/accounts/v1/auth_tokens_secondary.go

+3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ package openapi
1616

1717
import (
1818
"encoding/json"
19+
"fmt"
1920
"net/url"
21+
22+
"github.com/twilio/twilio-go/client"
2023
)
2124

2225
// Create a new secondary Auth Token

rest/accounts/v1/consents_bulk.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ package openapi
1616

1717
import (
1818
"encoding/json"
19+
"fmt"
1920
"net/url"
21+
22+
"github.com/twilio/twilio-go/client"
2023
)
2124

2225
// Optional parameters for the method 'CreateBulkConsents'
2326
type CreateBulkConsentsParams struct {
2427
// This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
25-
Items *[]interface{} `json:"Items,omitempty"`
28+
Items *[]map[string]interface{} `json:"Items,omitempty"`
2629
}
2730

28-
func (params *CreateBulkConsentsParams) SetItems(Items []interface{}) *CreateBulkConsentsParams {
31+
func (params *CreateBulkConsentsParams) SetItems(Items []map[string]interface{}) *CreateBulkConsentsParams {
2932
params.Items = &Items
3033
return params
3134
}

rest/accounts/v1/contacts_bulk.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ package openapi
1616

1717
import (
1818
"encoding/json"
19+
"fmt"
1920
"net/url"
21+
22+
"github.com/twilio/twilio-go/client"
2023
)
2124

2225
// Optional parameters for the method 'CreateBulkContacts'
2326
type CreateBulkContactsParams struct {
2427
// A list of objects where each object represents a contact's details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code.
25-
Items *[]interface{} `json:"Items,omitempty"`
28+
Items *[]map[string]interface{} `json:"Items,omitempty"`
2629
}
2730

28-
func (params *CreateBulkContactsParams) SetItems(Items []interface{}) *CreateBulkContactsParams {
31+
func (params *CreateBulkContactsParams) SetItems(Items []map[string]interface{}) *CreateBulkContactsParams {
2932
params.Items = &Items
3033
return params
3134
}

rest/accounts/v1/credentials_aws.go

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"encoding/json"
1919
"fmt"
2020
"net/url"
21-
"strings"
2221

2322
"github.com/twilio/twilio-go/client"
2423
)

rest/accounts/v1/credentials_public_keys.go

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"encoding/json"
1919
"fmt"
2020
"net/url"
21-
"strings"
2221

2322
"github.com/twilio/twilio-go/client"
2423
)

rest/accounts/v1/docs/AccountsV1BulkConsents.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Items** | Pointer to **interface{}** | A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty. |
7+
**Items** | Pointer to **map[string]interface{}** | A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty. |
88

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

rest/accounts/v1/docs/AccountsV1BulkContacts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**Items** | Pointer to **interface{}** | A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty. |
7+
**Items** | Pointer to **map[string]interface{}** | A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty. |
88

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

rest/accounts/v1/docs/AuthTokensPromoteApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ All URIs are relative to *https://accounts.twilio.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**UpdateAuthTokenPromotion**](AuthTokensPromoteApi.md#UpdateAuthTokenPromotion) | **Post** /v1/AuthTokens/Promote |
7+
[**UpdateAuthTokenPromotion**](AuthTokensPromoteApi.md#UpdateAuthTokenPromotion) | **Post** /v1/AuthTokens/Promote | Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.
88

99

1010

1111
## UpdateAuthTokenPromotion
1212

1313
> AccountsV1AuthTokenPromotion UpdateAuthTokenPromotion(ctx, )
1414
15-
15+
Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.
1616

1717
Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error.
1818

rest/accounts/v1/docs/AuthTokensSecondaryApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ All URIs are relative to *https://accounts.twilio.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**CreateSecondaryAuthToken**](AuthTokensSecondaryApi.md#CreateSecondaryAuthToken) | **Post** /v1/AuthTokens/Secondary |
8-
[**DeleteSecondaryAuthToken**](AuthTokensSecondaryApi.md#DeleteSecondaryAuthToken) | **Delete** /v1/AuthTokens/Secondary |
7+
[**CreateSecondaryAuthToken**](AuthTokensSecondaryApi.md#CreateSecondaryAuthToken) | **Post** /v1/AuthTokens/Secondary | Create a new secondary Auth Token
8+
[**DeleteSecondaryAuthToken**](AuthTokensSecondaryApi.md#DeleteSecondaryAuthToken) | **Delete** /v1/AuthTokens/Secondary | Delete the secondary Auth Token from your account
99

1010

1111

1212
## CreateSecondaryAuthToken
1313

1414
> AccountsV1SecondaryAuthToken CreateSecondaryAuthToken(ctx, )
1515
16-
16+
Create a new secondary Auth Token
1717

1818
Create a new secondary Auth Token
1919

@@ -48,7 +48,7 @@ Other parameters are passed through a pointer to a CreateSecondaryAuthTokenParam
4848

4949
> DeleteSecondaryAuthToken(ctx, )
5050
51-
51+
Delete the secondary Auth Token from your account
5252

5353
Delete the secondary Auth Token from your account
5454

rest/accounts/v1/docs/ConsentsBulkApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a CreateBulkConsentsParams stru
2727

2828
Name | Type | Description
2929
------------- | ------------- | -------------
30-
**Items** | **[]interface{}** | This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
30+
**Items** | **[]map[string]interface{}** | This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
3131

3232
### Return type
3333

rest/accounts/v1/docs/ContactsBulkApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Other parameters are passed through a pointer to a CreateBulkContactsParams stru
2727

2828
Name | Type | Description
2929
------------- | ------------- | -------------
30-
**Items** | **[]interface{}** | A list of objects where each object represents a contact's details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code.
30+
**Items** | **[]map[string]interface{}** | A list of objects where each object represents a contact's details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code.
3131

3232
### Return type
3333

rest/accounts/v1/docs/CredentialsAWSApi.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ All URIs are relative to *https://accounts.twilio.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**CreateCredentialAws**](CredentialsAWSApi.md#CreateCredentialAws) | **Post** /v1/Credentials/AWS |
8-
[**DeleteCredentialAws**](CredentialsAWSApi.md#DeleteCredentialAws) | **Delete** /v1/Credentials/AWS/{Sid} |
9-
[**FetchCredentialAws**](CredentialsAWSApi.md#FetchCredentialAws) | **Get** /v1/Credentials/AWS/{Sid} |
10-
[**ListCredentialAws**](CredentialsAWSApi.md#ListCredentialAws) | **Get** /v1/Credentials/AWS |
11-
[**UpdateCredentialAws**](CredentialsAWSApi.md#UpdateCredentialAws) | **Post** /v1/Credentials/AWS/{Sid} |
7+
[**CreateCredentialAws**](CredentialsAWSApi.md#CreateCredentialAws) | **Post** /v1/Credentials/AWS | Create a new AWS Credential
8+
[**DeleteCredentialAws**](CredentialsAWSApi.md#DeleteCredentialAws) | **Delete** /v1/Credentials/AWS/{Sid} | Delete a Credential from your account
9+
[**FetchCredentialAws**](CredentialsAWSApi.md#FetchCredentialAws) | **Get** /v1/Credentials/AWS/{Sid} | Fetch the AWS credentials specified by the provided Credential Sid
10+
[**ListCredentialAws**](CredentialsAWSApi.md#ListCredentialAws) | **Get** /v1/Credentials/AWS | Retrieves a collection of AWS Credentials belonging to the account used to make the request
11+
[**UpdateCredentialAws**](CredentialsAWSApi.md#UpdateCredentialAws) | **Post** /v1/Credentials/AWS/{Sid} | Modify the properties of a given Account
1212

1313

1414

1515
## CreateCredentialAws
1616

1717
> AccountsV1CredentialAws CreateCredentialAws(ctx, optional)
1818
19-
19+
Create a new AWS Credential
2020

2121
Create a new AWS Credential
2222

@@ -57,7 +57,7 @@ Name | Type | Description
5757

5858
> DeleteCredentialAws(ctx, Sid)
5959
60-
60+
Delete a Credential from your account
6161

6262
Delete a Credential from your account
6363

@@ -99,7 +99,7 @@ Name | Type | Description
9999

100100
> AccountsV1CredentialAws FetchCredentialAws(ctx, Sid)
101101
102-
102+
Fetch the AWS credentials specified by the provided Credential Sid
103103

104104
Fetch the AWS credentials specified by the provided Credential Sid
105105

@@ -141,7 +141,7 @@ Name | Type | Description
141141

142142
> []AccountsV1CredentialAws ListCredentialAws(ctx, optional)
143143
144-
144+
Retrieves a collection of AWS Credentials belonging to the account used to make the request
145145

146146
Retrieves a collection of AWS Credentials belonging to the account used to make the request
147147

@@ -181,7 +181,7 @@ Name | Type | Description
181181

182182
> AccountsV1CredentialAws UpdateCredentialAws(ctx, Sidoptional)
183183
184-
184+
Modify the properties of a given Account
185185

186186
Modify the properties of a given Account
187187

0 commit comments

Comments
 (0)