Skip to content

Commit 17fb8cb

Browse files
committed
[Librarian] Regenerated @ 967832a5f99248b8f29e15ebffef693b3540f4df 6d26e026aeb767bd3d3bad21fb12fa291a3bba00
1 parent c9c83ed commit 17fb8cb

File tree

100 files changed

+3136
-20
lines changed

Some content is hidden

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

100 files changed

+3136
-20
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
twilio-go changelog
22
====================
3+
[2025-09-25] Version 1.28.2
4+
---------------------------
5+
**Api**
6+
- Added optional parameter `CallerDisplayName` for conference participant outbound
7+
- Updated description for property `to` in the participant create request
8+
9+
310
[2025-09-18] Version 1.28.1
411
---------------------------
512
**Api**

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type CreateParticipantParams struct {
2929
PathAccountSid *string `json:"PathAccountSid,omitempty"`
3030
// The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
3131
From *string `json:"From,omitempty"`
32-
// The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
32+
// The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
3333
To *string `json:"To,omitempty"`
3434
// The URL we should call using the `status_callback_method` to send status information to your application.
3535
StatusCallback *string `json:"StatusCallback,omitempty"`
@@ -123,6 +123,8 @@ 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.
127+
CallerDisplayName *string `json:"CallerDisplayName,omitempty"`
126128
}
127129

128130
func (params *CreateParticipantParams) SetPathAccountSid(PathAccountSid string) *CreateParticipantParams {
@@ -321,6 +323,10 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar
321323
params.CallToken = &CallToken
322324
return params
323325
}
326+
func (params *CreateParticipantParams) SetCallerDisplayName(CallerDisplayName string) *CreateParticipantParams {
327+
params.CallerDisplayName = &CallerDisplayName
328+
return params
329+
}
324330

325331
//
326332
func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) {
@@ -489,6 +495,9 @@ func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParti
489495
if params != nil && params.CallToken != nil {
490496
data.Set("CallToken", *params.CallToken)
491497
}
498+
if params != nil && params.CallerDisplayName != nil {
499+
data.Set("CallerDisplayName", *params.CallerDisplayName)
500+
}
492501

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

rest/api/v2010/docs/AccountsConferencesParticipantsApi.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Name | Type | Description
3737
------------- | ------------- | -------------
3838
**PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.
3939
**From** | **string** | The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
40-
**To** | **string** | The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
40+
**To** | **string** | The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
4141
**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application.
4242
**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
4343
**StatusCallbackEvent** | **[]string** | The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
@@ -84,6 +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.
8788

8889
### Return type
8990

rest/iam/v1/docs/IamV1CreateAccountRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**OwnerId** | **string** | The owner of the account to be provisioned. |[optional]
8+
**ParentAccountId** | **string** | The parent account ID of the subaccount to be provisioned. |[optional]
89
**FriendlyName** | **string** | |
910
**Tags** | **map[string]string** | |[optional]
1011

rest/iam/v1/model_iam_v1_create_account_request.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ package openapi
1717
// IamV1CreateAccountRequest struct for IamV1CreateAccountRequest
1818
type IamV1CreateAccountRequest struct {
1919
// The owner of the account to be provisioned.
20-
OwnerId string `json:"ownerId,omitempty"`
21-
FriendlyName string `json:"friendlyName"`
22-
Tags map[string]string `json:"tags,omitempty"`
20+
OwnerId string `json:"ownerId,omitempty"`
21+
// The parent account ID of the subaccount to be provisioned.
22+
ParentAccountId string `json:"parentAccountId,omitempty"`
23+
FriendlyName string `json:"friendlyName"`
24+
Tags map[string]string `json:"tags,omitempty"`
2325
}

rest/knowledge/v1/README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Go API client for openapi
2+
3+
This is the public Twilio REST API.
4+
5+
## Overview
6+
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.
7+
8+
- API version: 1.0.0
9+
- Package version: 1.0.0
10+
- Build package: com.twilio.oai.TwilioGoGenerator
11+
For more information, please visit [https://support.twilio.com](https://support.twilio.com)
12+
13+
## Installation
14+
15+
Install the following dependencies:
16+
17+
```shell
18+
go get github.com/stretchr/testify/assert
19+
go get golang.org/x/net/context
20+
```
21+
22+
Put the package under your project folder and add the following in import:
23+
24+
```golang
25+
import "./openapi"
26+
```
27+
28+
## Documentation for API Endpoints
29+
30+
All URIs are relative to *https://knowledge.twilio.com*
31+
32+
Class | Method | HTTP request | Description
33+
------------ | ------------- | ------------- | -------------
34+
*KnowledgeApi* | [**CreateKnowledge**](docs/KnowledgeApi.md#createknowledge) | **Post** /v1/Knowledge | Create knowledge
35+
*KnowledgeApi* | [**DeleteKnowledge**](docs/KnowledgeApi.md#deleteknowledge) | **Delete** /v1/Knowledge/{id} | Delete knowledge
36+
*KnowledgeApi* | [**FetchKnowledge**](docs/KnowledgeApi.md#fetchknowledge) | **Get** /v1/Knowledge/{id} | Get knowledge
37+
*KnowledgeApi* | [**ListKnowledge**](docs/KnowledgeApi.md#listknowledge) | **Get** /v1/Knowledge | List all knowledge
38+
*KnowledgeApi* | [**UpdateKnowledge**](docs/KnowledgeApi.md#updateknowledge) | **Put** /v1/Knowledge/{id} | Update knowledge
39+
*KnowledgeChunksApi* | [**ListKnowledgeChunks**](docs/KnowledgeChunksApi.md#listknowledgechunks) | **Get** /v1/Knowledge/{id}/Chunks | List knowledge chunks
40+
*KnowledgeStatusApi* | [**FetchKnowledgeStatus**](docs/KnowledgeStatusApi.md#fetchknowledgestatus) | **Get** /v1/Knowledge/{id}/Status | Get knowledge status
41+
42+
43+
## Documentation For Models
44+
45+
- [KnowledgeV1TagValue](docs/KnowledgeV1TagValue.md)
46+
- [ListKnowledgeResponseMeta](docs/ListKnowledgeResponseMeta.md)
47+
- [KnowledgeV1CreateKnowledgeRequest](docs/KnowledgeV1CreateKnowledgeRequest.md)
48+
- [KnowledgeV1UpdateKnowledgeRequest](docs/KnowledgeV1UpdateKnowledgeRequest.md)
49+
- [ListKnowledgeChunksResponse](docs/ListKnowledgeChunksResponse.md)
50+
- [ListKnowledgeResponse](docs/ListKnowledgeResponse.md)
51+
- [KnowledgeV1CreateTagRequest](docs/KnowledgeV1CreateTagRequest.md)
52+
- [KnowledgeV1KnowledgeChunkWithScore](docs/KnowledgeV1KnowledgeChunkWithScore.md)
53+
- [KnowledgeV1Tag](docs/KnowledgeV1Tag.md)
54+
- [KnowledgeV1CreatePolicyRequest](docs/KnowledgeV1CreatePolicyRequest.md)
55+
- [Tags1](docs/Tags1.md)
56+
- [KnowledgeV1UpdateTagRequest](docs/KnowledgeV1UpdateTagRequest.md)
57+
- [KnowledgeV1Knowledge](docs/KnowledgeV1Knowledge.md)
58+
- [KnowledgeV1CreateTagValueRequest](docs/KnowledgeV1CreateTagValueRequest.md)
59+
- [KnowledgeV1KnowledgeStatus](docs/KnowledgeV1KnowledgeStatus.md)
60+
- [KnowledgeV1UpdateTagValueRequest](docs/KnowledgeV1UpdateTagValueRequest.md)
61+
- [KnowledgeV1KnowledgeChunk](docs/KnowledgeV1KnowledgeChunk.md)
62+
- [ListKnowledgeResponseKnowledge](docs/ListKnowledgeResponseKnowledge.md)
63+
64+
65+
## Documentation For Authorization
66+
67+
68+
69+
## accountSid_authToken
70+
71+
- **Type**: HTTP basic authentication
72+
73+
Example
74+
75+
```golang
76+
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
77+
UserName: "username",
78+
Password: "password",
79+
})
80+
r, err := client.Service.Operation(auth, args)
81+
```
82+

rest/knowledge/v1/api_service.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Knowledge
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+
twilio "github.com/twilio/twilio-go/client"
19+
)
20+
21+
type ApiService struct {
22+
baseURL string
23+
requestHandler *twilio.RequestHandler
24+
}
25+
26+
func (c *ApiService) RequestHandler() *twilio.RequestHandler {
27+
return c.requestHandler
28+
}
29+
30+
func NewApiService(requestHandler *twilio.RequestHandler) *ApiService {
31+
return &ApiService{
32+
requestHandler: requestHandler,
33+
baseURL: "https://knowledge.twilio.com",
34+
}
35+
}
36+
37+
func NewApiServiceWithClient(client twilio.BaseClient) *ApiService {
38+
return NewApiService(twilio.NewRequestHandler(client))
39+
}

0 commit comments

Comments
 (0)