/
model_chat_v2_service.go
69 lines (66 loc) · 5.87 KB
/
model_chat_v2_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Chat
* 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 (
"time"
)
// ChatV2Service struct for ChatV2Service
type ChatV2Service struct {
// The unique string that we created to identify the Service resource.
Sid *string `json:"sid,omitempty"`
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.
AccountSid *string `json:"account_sid,omitempty"`
// The string that you assigned to describe the resource.
FriendlyName *string `json:"friendly_name,omitempty"`
// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
DateCreated *time.Time `json:"date_created,omitempty"`
// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
DateUpdated *time.Time `json:"date_updated,omitempty"`
// The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
DefaultServiceRoleSid *string `json:"default_service_role_sid,omitempty"`
// The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
DefaultChannelRoleSid *string `json:"default_channel_role_sid,omitempty"`
// The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
DefaultChannelCreatorRoleSid *string `json:"default_channel_creator_role_sid,omitempty"`
// Whether the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature is enabled. The default is `true`.
ReadStatusEnabled *bool `json:"read_status_enabled,omitempty"`
// Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Service instance. The default is `false`.
ReachabilityEnabled *bool `json:"reachability_enabled,omitempty"`
// How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds.
TypingIndicatorTimeout *int `json:"typing_indicator_timeout,omitempty"`
// DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints.
ConsumptionReportInterval *int `json:"consumption_report_interval,omitempty"`
// An object that describes the limits of the service instance. The `limits` object contains `channel_members` to describe the members/channel limit and `user_channels` to describe the channels/user limit. `channel_members` can be 1,000 or less, with a default of 250. `user_channels` can be 1,000 or less, with a default value of 100.
Limits *interface{} `json:"limits,omitempty"`
// The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
PreWebhookUrl *string `json:"pre_webhook_url,omitempty"`
// The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
PostWebhookUrl *string `json:"post_webhook_url,omitempty"`
// The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
WebhookMethod *string `json:"webhook_method,omitempty"`
// The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
WebhookFilters *[]string `json:"webhook_filters,omitempty"`
// The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried.
PreWebhookRetryCount *int `json:"pre_webhook_retry_count,omitempty"`
// The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried.
PostWebhookRetryCount *int `json:"post_webhook_retry_count,omitempty"`
// The notification configuration for the Service instance. See [Push Notification Configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
Notifications *interface{} `json:"notifications,omitempty"`
// An object that describes the properties of media that the service supports. The object contains the `size_limit_mb` property, which describes the size of the largest media file in MB; and the `compatibility_message` property, which contains the message text to send when a media message does not have any text.
Media *interface{} `json:"media,omitempty"`
// The absolute URL of the Service resource.
Url *string `json:"url,omitempty"`
// The absolute URLs of the Service's [Channels](https://www.twilio.com/docs/chat/channels), [Roles](https://www.twilio.com/docs/chat/rest/role-resource), [Bindings](https://www.twilio.com/docs/chat/rest/binding-resource), and [Users](https://www.twilio.com/docs/chat/rest/user-resource).
Links *map[string]interface{} `json:"links,omitempty"`
}