Skip to content

Commit bcd8617

Browse files
committed
[Librarian] Regenerated @ a7caf52aaea6fe6c7b30170a468564bcea4f0362 13ec50967b82ae43900a263102daafb96aa61935
1 parent 02e7c9b commit bcd8617

File tree

12 files changed

+86
-0
lines changed

12 files changed

+86
-0
lines changed

CHANGES.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
twilio-go changelog
22
====================
3+
[2025-01-28] Version 1.23.11
4+
----------------------------
5+
**Api**
6+
- Add open-api file tag to `conference/call recordings` and `recording_transcriptions`.
7+
8+
**Events**
9+
- Add support for subaccount subscriptions (beta)
10+
11+
**Insights**
12+
- add new region to conference APIs
13+
14+
**Lookups**
15+
- Add new `parnter_sub_id` query parameter to the lookup request
16+
17+
318
[2025-01-13] Version 1.23.10
419
----------------------------
520
**Messaging**

rest/content/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Class | Method | HTTP request | Description
5252
- [CarouselActionType](docs/CarouselActionType.md)
5353
- [QuickReplyAction](docs/QuickReplyAction.md)
5454
- [CardActionType](docs/CardActionType.md)
55+
- [TwilioSchedule](docs/TwilioSchedule.md)
5556
- [ContentV1ContentAndApprovals](docs/ContentV1ContentAndApprovals.md)
5657
- [TwilioLocation](docs/TwilioLocation.md)
5758
- [FlowsPage](docs/FlowsPage.md)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# TwilioSchedule
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **string** | |
8+
**Title** | **string** | |
9+
**TimeSlots** | **string** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

rest/content/v1/docs/Types.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**TwilioCatalog** | Pointer to [**TwilioCatalog**](TwilioCatalog.md) | |
1515
**TwilioCarousel** | Pointer to [**TwilioCarousel**](TwilioCarousel.md) | |
1616
**TwilioFlows** | Pointer to [**TwilioFlows**](TwilioFlows.md) | |
17+
**TwilioSchedule** | Pointer to [**TwilioSchedule**](TwilioSchedule.md) | |
1718
**WhatsappCard** | Pointer to [**WhatsappCard**](WhatsappCard.md) | |
1819
**WhatsappAuthentication** | Pointer to [**WhatsappAuthentication**](WhatsappAuthentication.md) | |
1920

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Content
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+
// TwilioSchedule twilio/schedule templates allow us to send a message with a schedule with different time slots
18+
type TwilioSchedule struct {
19+
Id string `json:"id"`
20+
Title string `json:"title"`
21+
TimeSlots string `json:"timeSlots"`
22+
}

rest/content/v1/model_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type Types struct {
2626
TwilioCatalog *TwilioCatalog `json:"twilio/catalog,omitempty"`
2727
TwilioCarousel *TwilioCarousel `json:"twilio/carousel,omitempty"`
2828
TwilioFlows *TwilioFlows `json:"twilio/flows,omitempty"`
29+
TwilioSchedule *TwilioSchedule `json:"twilio/schedule,omitempty"`
2930
WhatsappCard *WhatsappCard `json:"whatsapp/card,omitempty"`
3031
WhatsappAuthentication *WhatsappAuthentication `json:"whatsapp/authentication,omitempty"`
3132
}

rest/events/v1/docs/EventsV1Subscription.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**SinkSid** | Pointer to **string** | The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. |
1313
**Url** | Pointer to **string** | The URL of this resource. |
1414
**Links** | Pointer to **map[string]interface{}** | Contains a dictionary of URL links to nested resources of this Subscription. |
15+
**ReceiveEventsFromSubaccounts** | Pointer to **bool** | Receive events from all children accounts in the parent account subscription. |
1516

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

rest/events/v1/docs/SubscriptionsApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Name | Type | Description
3434
**Description** | **string** | A human readable description for the Subscription **This value should not contain PII.**
3535
**SinkSid** | **string** | The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
3636
**Types** | **[]interface{}** | An array of objects containing the subscribed Event Types
37+
**ReceiveEventsFromSubaccounts** | **bool** | Receive events from all children accounts in the parent account subscription.
3738

3839
### Return type
3940

@@ -203,6 +204,7 @@ Name | Type | Description
203204
------------- | ------------- | -------------
204205
**Description** | **string** | A human readable description for the Subscription.
205206
**SinkSid** | **string** | The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
207+
**ReceiveEventsFromSubaccounts** | **bool** | Receive events from all children accounts in the parent account subscription.
206208

207209
### Return type
208210

rest/events/v1/model_events_v1_subscription.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ type EventsV1Subscription struct {
3636
Url *string `json:"url,omitempty"`
3737
// Contains a dictionary of URL links to nested resources of this Subscription.
3838
Links *map[string]interface{} `json:"links,omitempty"`
39+
// Receive events from all children accounts in the parent account subscription.
40+
ReceiveEventsFromSubaccounts *bool `json:"receive_events_from_subaccounts,omitempty"`
3941
}

rest/events/v1/subscriptions.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ type CreateSubscriptionParams struct {
3131
SinkSid *string `json:"SinkSid,omitempty"`
3232
// An array of objects containing the subscribed Event Types
3333
Types *[]interface{} `json:"Types,omitempty"`
34+
// Receive events from all children accounts in the parent account subscription.
35+
ReceiveEventsFromSubaccounts *bool `json:"ReceiveEventsFromSubaccounts,omitempty"`
3436
}
3537

3638
func (params *CreateSubscriptionParams) SetDescription(Description string) *CreateSubscriptionParams {
@@ -45,6 +47,10 @@ func (params *CreateSubscriptionParams) SetTypes(Types []interface{}) *CreateSub
4547
params.Types = &Types
4648
return params
4749
}
50+
func (params *CreateSubscriptionParams) SetReceiveEventsFromSubaccounts(ReceiveEventsFromSubaccounts bool) *CreateSubscriptionParams {
51+
params.ReceiveEventsFromSubaccounts = &ReceiveEventsFromSubaccounts
52+
return params
53+
}
4854

4955
// Create a new Subscription.
5056
func (c *ApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error) {
@@ -72,6 +78,9 @@ func (c *ApiService) CreateSubscription(params *CreateSubscriptionParams) (*Even
7278
data.Add("Types", string(v))
7379
}
7480
}
81+
if params != nil && params.ReceiveEventsFromSubaccounts != nil {
82+
data.Set("ReceiveEventsFromSubaccounts", fmt.Sprint(*params.ReceiveEventsFromSubaccounts))
83+
}
7584

7685
resp, err := c.requestHandler.Post(c.baseURL+path, data, headers)
7786
if err != nil {
@@ -286,6 +295,8 @@ type UpdateSubscriptionParams struct {
286295
Description *string `json:"Description,omitempty"`
287296
// The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
288297
SinkSid *string `json:"SinkSid,omitempty"`
298+
// Receive events from all children accounts in the parent account subscription.
299+
ReceiveEventsFromSubaccounts *bool `json:"ReceiveEventsFromSubaccounts,omitempty"`
289300
}
290301

291302
func (params *UpdateSubscriptionParams) SetDescription(Description string) *UpdateSubscriptionParams {
@@ -296,6 +307,10 @@ func (params *UpdateSubscriptionParams) SetSinkSid(SinkSid string) *UpdateSubscr
296307
params.SinkSid = &SinkSid
297308
return params
298309
}
310+
func (params *UpdateSubscriptionParams) SetReceiveEventsFromSubaccounts(ReceiveEventsFromSubaccounts bool) *UpdateSubscriptionParams {
311+
params.ReceiveEventsFromSubaccounts = &ReceiveEventsFromSubaccounts
312+
return params
313+
}
299314

300315
// Update a Subscription.
301316
func (c *ApiService) UpdateSubscription(Sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error) {
@@ -313,6 +328,9 @@ func (c *ApiService) UpdateSubscription(Sid string, params *UpdateSubscriptionPa
313328
if params != nil && params.SinkSid != nil {
314329
data.Set("SinkSid", *params.SinkSid)
315330
}
331+
if params != nil && params.ReceiveEventsFromSubaccounts != nil {
332+
data.Set("ReceiveEventsFromSubaccounts", fmt.Sprint(*params.ReceiveEventsFromSubaccounts))
333+
}
316334

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

0 commit comments

Comments
 (0)