Skip to content

Commit 737f04f

Browse files
committed
[Librarian] Regenerated @ c35acb6403159875204e9df8c17f07aca438b6e3 73d02e4e1f49601fe81e10b2293248aeafda0e43
1 parent 2a762cf commit 737f04f

33 files changed

+566
-80
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
twilio-go changelog
22
====================
3+
[2025-10-14] Version 1.28.4
4+
---------------------------
5+
**Api**
6+
- Updated description for property `CallerDisplayName` for participant create request
7+
- Updated description for property `CallerDisplayName` for participant create request
8+
9+
**Accounts**
10+
- FILE_IS_AUTO_GENERATED: false
11+
12+
313
[2025-09-30] Version 1.28.3
414
---------------------------
515
**Library - Chore**

rest/accounts/v1/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Class | Method | HTTP request | Description
4646
*CredentialsPublicKeysApi* | [**FetchCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} | Fetch the public key specified by the provided Credential Sid
4747
*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
4848
*CredentialsPublicKeysApi* | [**UpdateCredentialPublicKey**](docs/CredentialsPublicKeysApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} | Modify the properties of a given Account
49+
*MessagingGeoPermissionsApi* | [**FetchMessagingGeopermissions**](docs/MessagingGeoPermissionsApi.md#fetchmessaginggeopermissions) | **Get** /v1/Messaging/GeoPermissions |
50+
*MessagingGeoPermissionsApi* | [**UpdateMessagingGeopermissions**](docs/MessagingGeoPermissionsApi.md#updatemessaginggeopermissions) | **Patch** /v1/Messaging/GeoPermissions |
4951
*SafeListNumbersApi* | [**CreateSafelist**](docs/SafeListNumbersApi.md#createsafelist) | **Post** /v1/SafeList/Numbers | Add a new phone number or phone number 1k prefix to SafeList.
5052
*SafeListNumbersApi* | [**DeleteSafelist**](docs/SafeListNumbersApi.md#deletesafelist) | **Delete** /v1/SafeList/Numbers | Remove a phone number or phone number 1k prefix from SafeList.
5153
*SafeListNumbersApi* | [**FetchSafelist**](docs/SafeListNumbersApi.md#fetchsafelist) | **Get** /v1/SafeList/Numbers | Check if a phone number or phone number 1k prefix exists in SafeList.
@@ -56,6 +58,7 @@ Class | Method | HTTP request | Description
5658
- [AccountsV1BulkContacts](docs/AccountsV1BulkContacts.md)
5759
- [AccountsV1BulkConsents](docs/AccountsV1BulkConsents.md)
5860
- [ListCredentialAwsResponse](docs/ListCredentialAwsResponse.md)
61+
- [AccountsV1MessagingGeopermissions](docs/AccountsV1MessagingGeopermissions.md)
5962
- [ListCredentialPublicKeyResponse](docs/ListCredentialPublicKeyResponse.md)
6063
- [AccountsV1SecondaryAuthToken](docs/AccountsV1SecondaryAuthToken.md)
6164
- [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# AccountsV1MessagingGeopermissions
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Permissions** | Pointer to **interface{}** | A list of objects where each object represents the result of processing a messaging Geo Permission. Each object contains the following fields: `country_code`, the country code of the country for which the permission was updated; `type`, the type of the permission i.e. country; `enabled`, true if the permission is enabled else false; `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. |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# MessagingGeoPermissionsApi
2+
3+
All URIs are relative to *https://accounts.twilio.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**FetchMessagingGeopermissions**](MessagingGeoPermissionsApi.md#FetchMessagingGeopermissions) | **Get** /v1/Messaging/GeoPermissions |
8+
[**UpdateMessagingGeopermissions**](MessagingGeoPermissionsApi.md#UpdateMessagingGeopermissions) | **Patch** /v1/Messaging/GeoPermissions |
9+
10+
11+
12+
## FetchMessagingGeopermissions
13+
14+
> AccountsV1MessagingGeopermissions FetchMessagingGeopermissions(ctx, optional)
15+
16+
17+
18+
19+
20+
### Path Parameters
21+
22+
This endpoint does not need any path parameter.
23+
24+
### Other Parameters
25+
26+
Other parameters are passed through a pointer to a FetchMessagingGeopermissionsParams struct
27+
28+
29+
Name | Type | Description
30+
------------- | ------------- | -------------
31+
**CountryCode** | **string** | The country code to filter the geo permissions. If provided, only the geo permission for the specified country will be returned.
32+
33+
### Return type
34+
35+
[**AccountsV1MessagingGeopermissions**](AccountsV1MessagingGeopermissions.md)
36+
37+
### Authorization
38+
39+
[accountSid_authToken](../README.md#accountSid_authToken)
40+
41+
### HTTP request headers
42+
43+
- **Content-Type**: Not defined
44+
- **Accept**: application/json
45+
46+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
47+
[[Back to Model list]](../README.md#documentation-for-models)
48+
[[Back to README]](../README.md)
49+
50+
51+
## UpdateMessagingGeopermissions
52+
53+
> AccountsV1MessagingGeopermissions UpdateMessagingGeopermissions(ctx, optional)
54+
55+
56+
57+
58+
59+
### Path Parameters
60+
61+
This endpoint does not need any path parameter.
62+
63+
### Other Parameters
64+
65+
Other parameters are passed through a pointer to a UpdateMessagingGeopermissionsParams struct
66+
67+
68+
Name | Type | Description
69+
------------- | ------------- | -------------
70+
**Permissions** | **[]interface{}** | A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: `country_code`, unique code for each country of Geo Permission; `type`, permission type of the Geo Permission i.e. country; `enabled`, configure true for enabling the Geo Permission, false for disabling the Geo Permission.
71+
72+
### Return type
73+
74+
[**AccountsV1MessagingGeopermissions**](AccountsV1MessagingGeopermissions.md)
75+
76+
### Authorization
77+
78+
[accountSid_authToken](../README.md#accountSid_authToken)
79+
80+
### HTTP request headers
81+
82+
- **Content-Type**: application/x-www-form-urlencoded
83+
- **Accept**: application/json
84+
85+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
86+
[[Back to Model list]](../README.md#documentation-for-models)
87+
[[Back to README]](../README.md)
88+
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Accounts
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
package openapi
16+
17+
import (
18+
"encoding/json"
19+
"net/url"
20+
)
21+
22+
// Optional parameters for the method 'FetchMessagingGeopermissions'
23+
type FetchMessagingGeopermissionsParams struct {
24+
// The country code to filter the geo permissions. If provided, only the geo permission for the specified country will be returned.
25+
CountryCode *string `json:"CountryCode,omitempty"`
26+
}
27+
28+
func (params *FetchMessagingGeopermissionsParams) SetCountryCode(CountryCode string) *FetchMessagingGeopermissionsParams {
29+
params.CountryCode = &CountryCode
30+
return params
31+
}
32+
33+
//
34+
func (c *ApiService) FetchMessagingGeopermissions(params *FetchMessagingGeopermissionsParams) (*AccountsV1MessagingGeopermissions, error) {
35+
path := "/v1/Messaging/GeoPermissions"
36+
37+
data := url.Values{}
38+
headers := map[string]interface{}{
39+
"Content-Type": "application/x-www-form-urlencoded",
40+
}
41+
42+
if params != nil && params.CountryCode != nil {
43+
data.Set("CountryCode", *params.CountryCode)
44+
}
45+
46+
resp, err := c.requestHandler.Get(c.baseURL+path, data, headers)
47+
if err != nil {
48+
return nil, err
49+
}
50+
51+
defer resp.Body.Close()
52+
53+
ps := &AccountsV1MessagingGeopermissions{}
54+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
55+
return nil, err
56+
}
57+
58+
return ps, err
59+
}
60+
61+
// Optional parameters for the method 'UpdateMessagingGeopermissions'
62+
type UpdateMessagingGeopermissionsParams struct {
63+
// A list of objects where each object represents the Geo Permission to be updated. Each object contains the following fields: `country_code`, unique code for each country of Geo Permission; `type`, permission type of the Geo Permission i.e. country; `enabled`, configure true for enabling the Geo Permission, false for disabling the Geo Permission.
64+
Permissions *[]interface{} `json:"Permissions,omitempty"`
65+
}
66+
67+
func (params *UpdateMessagingGeopermissionsParams) SetPermissions(Permissions []interface{}) *UpdateMessagingGeopermissionsParams {
68+
params.Permissions = &Permissions
69+
return params
70+
}
71+
72+
//
73+
func (c *ApiService) UpdateMessagingGeopermissions(params *UpdateMessagingGeopermissionsParams) (*AccountsV1MessagingGeopermissions, error) {
74+
path := "/v1/Messaging/GeoPermissions"
75+
76+
data := url.Values{}
77+
headers := map[string]interface{}{
78+
"Content-Type": "application/x-www-form-urlencoded",
79+
}
80+
81+
if params != nil && params.Permissions != nil {
82+
for _, item := range *params.Permissions {
83+
v, err := json.Marshal(item)
84+
85+
if err != nil {
86+
return nil, err
87+
}
88+
89+
data.Add("Permissions", string(v))
90+
}
91+
}
92+
93+
resp, err := c.requestHandler.Patch(c.baseURL+path, data, headers)
94+
if err != nil {
95+
return nil, err
96+
}
97+
98+
defer resp.Body.Close()
99+
100+
ps := &AccountsV1MessagingGeopermissions{}
101+
if err := json.NewDecoder(resp.Body).Decode(ps); err != nil {
102+
return nil, err
103+
}
104+
105+
return ps, err
106+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Accounts
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
package openapi
16+
17+
// AccountsV1MessagingGeopermissions struct for AccountsV1MessagingGeopermissions
18+
type AccountsV1MessagingGeopermissions struct {
19+
// A list of objects where each object represents the result of processing a messaging Geo Permission. Each object contains the following fields: `country_code`, the country code of the country for which the permission was updated; `type`, the type of the permission i.e. country; `enabled`, true if the permission is enabled else false; `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.
20+
Permissions *interface{} `json:"permissions,omitempty"`
21+
}

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type CreateParticipantParams struct {
123123
Trim *string `json:"Trim,omitempty"`
124124
// A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
125125
CallToken *string `json:"CallToken,omitempty"`
126-
// The name that appears to the called party for this call. Must be between 2 and 255 characters.
126+
// The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
127127
CallerDisplayName *string `json:"CallerDisplayName,omitempty"`
128128
}
129129

rest/api/v2010/accounts_messages.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,9 @@ func (c *ApiService) FetchMessage(Sid string, params *FetchMessageParams) (*ApiV
366366
type ListMessageParams struct {
367367
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resources.
368368
PathAccountSid *string `json:"PathAccountSid,omitempty"`
369-
// Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
369+
// Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`.
370370
To *string `json:"To,omitempty"`
371-
// Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
371+
// Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`.
372372
From *string `json:"From,omitempty"`
373373
// Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
374374
DateSent *time.Time `json:"DateSent,omitempty"`

rest/api/v2010/docs/AccountsConferencesParticipantsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Name | Type | Description
8484
**AmdStatusCallbackMethod** | **string** | The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
8585
**Trim** | **string** | Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
8686
**CallToken** | **string** | A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
87-
**CallerDisplayName** | **string** | The name that appears to the called party for this call. Must be between 2 and 255 characters.
87+
**CallerDisplayName** | **string** | The name that populates the display name in the From header. Must be between 2 and 255 characters. Only applicable for calls to sip address.
8888

8989
### Return type
9090

rest/api/v2010/docs/AccountsMessagesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ Other parameters are passed through a pointer to a ListMessageParams struct
181181
Name | Type | Description
182182
------------- | ------------- | -------------
183183
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resources.
184-
**To** | **string** | Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
185-
**From** | **string** | Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
184+
**To** | **string** | Filter by recipient. For example: Set this parameter to `+15558881111` to retrieve a list of Message resources sent to `+15558881111`.
185+
**From** | **string** | Filter by sender. For example: Set this parameter to `+15552229999` to retrieve a list of Message resources sent by `+15552229999`.
186186
**DateSent** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
187187
**DateSentBefore** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
188188
**DateSentAfter** | **time.Time** | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).

0 commit comments

Comments
 (0)