github.com/twilio/twilio-go@v1.20.1/rest/chat/v2/model_chat_v2_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  // ChatV2Service struct for ChatV2Service
    22  type ChatV2Service 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/iam/api/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 [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    30  	DateCreated *time.Time `json:"date_created,omitempty"`
    31  	// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) 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 [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
    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 [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
    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 [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles.
    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  	// 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.
    50  	PreWebhookUrl *string `json:"pre_webhook_url,omitempty"`
    51  	// 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.
    52  	PostWebhookUrl *string `json:"post_webhook_url,omitempty"`
    53  	// 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.
    54  	WebhookMethod *string `json:"webhook_method,omitempty"`
    55  	// 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.
    56  	WebhookFilters *[]string `json:"webhook_filters,omitempty"`
    57  	// 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.
    58  	PreWebhookRetryCount *int `json:"pre_webhook_retry_count,omitempty"`
    59  	// 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.
    60  	PostWebhookRetryCount *int `json:"post_webhook_retry_count,omitempty"`
    61  	// The notification configuration for the Service instance. See [Push Notification Configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
    62  	Notifications *interface{} `json:"notifications,omitempty"`
    63  	// 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.
    64  	Media *interface{} `json:"media,omitempty"`
    65  	// The absolute URL of the Service resource.
    66  	Url *string `json:"url,omitempty"`
    67  	// 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).
    68  	Links *map[string]interface{} `json:"links,omitempty"`
    69  }