github.com/twilio/twilio-go@v1.20.1/rest/chat/v1/model_chat_v1_service.go (about) 1 /* 2 * This code was generated by 3 * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ 4 * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ 5 * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ 6 * 7 * Twilio - Chat 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 "time" 19 ) 20 21 // ChatV1Service struct for ChatV1Service 22 type ChatV1Service struct { 23 // The unique string that we created to identify the Service resource. 24 Sid *string `json:"sid,omitempty"` 25 // The SID of the [Account](https://www.twilio.com/docs/api/rest/account) that created the Service resource. 26 AccountSid *string `json:"account_sid,omitempty"` 27 // The string that you assigned to describe the resource. 28 FriendlyName *string `json:"friendly_name,omitempty"` 29 // The date and time in GMT when the resource was created specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format. 30 DateCreated *time.Time `json:"date_created,omitempty"` 31 // The date and time in GMT when the resource was last updated specified in [RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format. 32 DateUpdated *time.Time `json:"date_updated,omitempty"` 33 // The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. 34 DefaultServiceRoleSid *string `json:"default_service_role_sid,omitempty"` 35 // The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. 36 DefaultChannelRoleSid *string `json:"default_channel_role_sid,omitempty"` 37 // The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. 38 DefaultChannelCreatorRoleSid *string `json:"default_channel_creator_role_sid,omitempty"` 39 // Whether the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature is enabled. The default is `true`. 40 ReadStatusEnabled *bool `json:"read_status_enabled,omitempty"` 41 // Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Service instance. The default is `false`. 42 ReachabilityEnabled *bool `json:"reachability_enabled,omitempty"` 43 // 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. 44 TypingIndicatorTimeout *int `json:"typing_indicator_timeout,omitempty"` 45 // DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. 46 ConsumptionReportInterval *int `json:"consumption_report_interval,omitempty"` 47 // 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. 48 Limits *interface{} `json:"limits,omitempty"` 49 // An object that contains information about the webhooks configured for this service. 50 Webhooks *interface{} `json:"webhooks,omitempty"` 51 // The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. 52 PreWebhookUrl *string `json:"pre_webhook_url,omitempty"` 53 // The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. 54 PostWebhookUrl *string `json:"post_webhook_url,omitempty"` 55 // 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. 56 WebhookMethod *string `json:"webhook_method,omitempty"` 57 // 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. 58 WebhookFilters *[]string `json:"webhook_filters,omitempty"` 59 // The notification configuration for the Service instance. See [Push Notification Configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information. 60 Notifications *interface{} `json:"notifications,omitempty"` 61 // The absolute URL of the Service resource. 62 Url *string `json:"url,omitempty"` 63 // The absolute URLs of the Service's [Channels](https://www.twilio.com/docs/chat/api/channels), [Roles](https://www.twilio.com/docs/chat/api/roles), and [Users](https://www.twilio.com/docs/chat/api/users). 64 Links *map[string]interface{} `json:"links,omitempty"` 65 }