openapi

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 6 Imported by: 1

README

Go API client for openapi

This is the public Twilio REST API.

Overview

This API client was generated by the OpenAPI Generator project from the OpenAPI specs located at twilio/twilio-oai. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.43.2
  • Package version: 1.0.0
  • Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit https://support.twilio.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://conversations.twilio.com

Class Method HTTP request Description
ConfigurationApi FetchConfiguration Get /v1/Configuration
ConfigurationApi UpdateConfiguration Post /v1/Configuration
ConfigurationAddressesApi CreateConfigurationAddress Post /v1/Configuration/Addresses
ConfigurationAddressesApi DeleteConfigurationAddress Delete /v1/Configuration/Addresses/{Sid}
ConfigurationAddressesApi FetchConfigurationAddress Get /v1/Configuration/Addresses/{Sid}
ConfigurationAddressesApi ListConfigurationAddress Get /v1/Configuration/Addresses
ConfigurationAddressesApi UpdateConfigurationAddress Post /v1/Configuration/Addresses/{Sid}
ConfigurationWebhooksApi FetchConfigurationWebhook Get /v1/Configuration/Webhooks
ConfigurationWebhooksApi UpdateConfigurationWebhook Post /v1/Configuration/Webhooks
ConversationsApi CreateConversation Post /v1/Conversations
ConversationsApi DeleteConversation Delete /v1/Conversations/{Sid}
ConversationsApi FetchConversation Get /v1/Conversations/{Sid}
ConversationsApi ListConversation Get /v1/Conversations
ConversationsApi UpdateConversation Post /v1/Conversations/{Sid}
ConversationsMessagesApi CreateConversationMessage Post /v1/Conversations/{ConversationSid}/Messages
ConversationsMessagesApi DeleteConversationMessage Delete /v1/Conversations/{ConversationSid}/Messages/{Sid}
ConversationsMessagesApi FetchConversationMessage Get /v1/Conversations/{ConversationSid}/Messages/{Sid}
ConversationsMessagesApi ListConversationMessage Get /v1/Conversations/{ConversationSid}/Messages
ConversationsMessagesApi UpdateConversationMessage Post /v1/Conversations/{ConversationSid}/Messages/{Sid}
ConversationsMessagesReceiptsApi FetchConversationMessageReceipt Get /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}
ConversationsMessagesReceiptsApi ListConversationMessageReceipt Get /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts
ConversationsParticipantsApi CreateConversationParticipant Post /v1/Conversations/{ConversationSid}/Participants
ConversationsParticipantsApi DeleteConversationParticipant Delete /v1/Conversations/{ConversationSid}/Participants/{Sid}
ConversationsParticipantsApi FetchConversationParticipant Get /v1/Conversations/{ConversationSid}/Participants/{Sid}
ConversationsParticipantsApi ListConversationParticipant Get /v1/Conversations/{ConversationSid}/Participants
ConversationsParticipantsApi UpdateConversationParticipant Post /v1/Conversations/{ConversationSid}/Participants/{Sid}
ConversationsWebhooksApi CreateConversationScopedWebhook Post /v1/Conversations/{ConversationSid}/Webhooks
ConversationsWebhooksApi DeleteConversationScopedWebhook Delete /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
ConversationsWebhooksApi FetchConversationScopedWebhook Get /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
ConversationsWebhooksApi ListConversationScopedWebhook Get /v1/Conversations/{ConversationSid}/Webhooks
ConversationsWebhooksApi UpdateConversationScopedWebhook Post /v1/Conversations/{ConversationSid}/Webhooks/{Sid}
CredentialsApi CreateCredential Post /v1/Credentials
CredentialsApi DeleteCredential Delete /v1/Credentials/{Sid}
CredentialsApi FetchCredential Get /v1/Credentials/{Sid}
CredentialsApi ListCredential Get /v1/Credentials
CredentialsApi UpdateCredential Post /v1/Credentials/{Sid}
ParticipantConversationsApi ListParticipantConversation Get /v1/ParticipantConversations
RolesApi CreateRole Post /v1/Roles
RolesApi DeleteRole Delete /v1/Roles/{Sid}
RolesApi FetchRole Get /v1/Roles/{Sid}
RolesApi ListRole Get /v1/Roles
RolesApi UpdateRole Post /v1/Roles/{Sid}
ServicesApi CreateService Post /v1/Services
ServicesApi DeleteService Delete /v1/Services/{Sid}
ServicesApi FetchService Get /v1/Services/{Sid}
ServicesApi ListService Get /v1/Services
ServicesBindingsApi DeleteServiceBinding Delete /v1/Services/{ChatServiceSid}/Bindings/{Sid}
ServicesBindingsApi FetchServiceBinding Get /v1/Services/{ChatServiceSid}/Bindings/{Sid}
ServicesBindingsApi ListServiceBinding Get /v1/Services/{ChatServiceSid}/Bindings
ServicesConfigurationApi FetchServiceConfiguration Get /v1/Services/{ChatServiceSid}/Configuration
ServicesConfigurationApi UpdateServiceConfiguration Post /v1/Services/{ChatServiceSid}/Configuration
ServicesConfigurationNotificationsApi FetchServiceNotification Get /v1/Services/{ChatServiceSid}/Configuration/Notifications
ServicesConfigurationNotificationsApi UpdateServiceNotification Post /v1/Services/{ChatServiceSid}/Configuration/Notifications
ServicesConfigurationWebhooksApi FetchServiceWebhookConfiguration Get /v1/Services/{ChatServiceSid}/Configuration/Webhooks
ServicesConfigurationWebhooksApi UpdateServiceWebhookConfiguration Post /v1/Services/{ChatServiceSid}/Configuration/Webhooks
ServicesConversationsApi CreateServiceConversation Post /v1/Services/{ChatServiceSid}/Conversations
ServicesConversationsApi DeleteServiceConversation Delete /v1/Services/{ChatServiceSid}/Conversations/{Sid}
ServicesConversationsApi FetchServiceConversation Get /v1/Services/{ChatServiceSid}/Conversations/{Sid}
ServicesConversationsApi ListServiceConversation Get /v1/Services/{ChatServiceSid}/Conversations
ServicesConversationsApi UpdateServiceConversation Post /v1/Services/{ChatServiceSid}/Conversations/{Sid}
ServicesConversationsMessagesApi CreateServiceConversationMessage Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages
ServicesConversationsMessagesApi DeleteServiceConversationMessage Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
ServicesConversationsMessagesApi FetchServiceConversationMessage Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
ServicesConversationsMessagesApi ListServiceConversationMessage Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages
ServicesConversationsMessagesApi UpdateServiceConversationMessage Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}
ServicesConversationsMessagesReceiptsApi FetchServiceConversationMessageReceipt Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}
ServicesConversationsMessagesReceiptsApi ListServiceConversationMessageReceipt Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts
ServicesConversationsParticipantsApi CreateServiceConversationParticipant Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants
ServicesConversationsParticipantsApi DeleteServiceConversationParticipant Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
ServicesConversationsParticipantsApi FetchServiceConversationParticipant Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
ServicesConversationsParticipantsApi ListServiceConversationParticipant Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants
ServicesConversationsParticipantsApi UpdateServiceConversationParticipant Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}
ServicesConversationsWebhooksApi CreateServiceConversationScopedWebhook Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks
ServicesConversationsWebhooksApi DeleteServiceConversationScopedWebhook Delete /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
ServicesConversationsWebhooksApi FetchServiceConversationScopedWebhook Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
ServicesConversationsWebhooksApi ListServiceConversationScopedWebhook Get /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks
ServicesConversationsWebhooksApi UpdateServiceConversationScopedWebhook Post /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
ServicesParticipantConversationsApi ListServiceParticipantConversation Get /v1/Services/{ChatServiceSid}/ParticipantConversations
ServicesRolesApi CreateServiceRole Post /v1/Services/{ChatServiceSid}/Roles
ServicesRolesApi DeleteServiceRole Delete /v1/Services/{ChatServiceSid}/Roles/{Sid}
ServicesRolesApi FetchServiceRole Get /v1/Services/{ChatServiceSid}/Roles/{Sid}
ServicesRolesApi ListServiceRole Get /v1/Services/{ChatServiceSid}/Roles
ServicesRolesApi UpdateServiceRole Post /v1/Services/{ChatServiceSid}/Roles/{Sid}
ServicesUsersApi CreateServiceUser Post /v1/Services/{ChatServiceSid}/Users
ServicesUsersApi DeleteServiceUser Delete /v1/Services/{ChatServiceSid}/Users/{Sid}
ServicesUsersApi FetchServiceUser Get /v1/Services/{ChatServiceSid}/Users/{Sid}
ServicesUsersApi ListServiceUser Get /v1/Services/{ChatServiceSid}/Users
ServicesUsersApi UpdateServiceUser Post /v1/Services/{ChatServiceSid}/Users/{Sid}
ServicesUsersConversationsApi DeleteServiceUserConversation Delete /v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}
ServicesUsersConversationsApi FetchServiceUserConversation Get /v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}
ServicesUsersConversationsApi ListServiceUserConversation Get /v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations
ServicesUsersConversationsApi UpdateServiceUserConversation Post /v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}
UsersApi CreateUser Post /v1/Users
UsersApi DeleteUser Delete /v1/Users/{Sid}
UsersApi FetchUser Get /v1/Users/{Sid}
UsersApi ListUser Get /v1/Users
UsersApi UpdateUser Post /v1/Users/{Sid}
UsersConversationsApi DeleteUserConversation Delete /v1/Users/{UserSid}/Conversations/{ConversationSid}
UsersConversationsApi FetchUserConversation Get /v1/Users/{UserSid}/Conversations/{ConversationSid}
UsersConversationsApi ListUserConversation Get /v1/Users/{UserSid}/Conversations
UsersConversationsApi UpdateUserConversation Post /v1/Users/{UserSid}/Conversations/{ConversationSid}

Documentation For Models

Documentation For Authorization

accountSid_authToken

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService added in v0.11.0

type ApiService struct {
	// contains filtered or unexported fields
}

func NewApiService added in v0.11.0

func NewApiService(requestHandler *twilio.RequestHandler) *ApiService

func NewApiServiceWithClient added in v0.11.0

func NewApiServiceWithClient(client twilio.BaseClient) *ApiService

func (*ApiService) CreateConfigurationAddress added in v0.21.0

func (c *ApiService) CreateConfigurationAddress(params *CreateConfigurationAddressParams) (*ConversationsV1ConfigurationAddress, error)

Create a new address configuration

func (*ApiService) CreateConversation added in v0.11.0

func (c *ApiService) CreateConversation(params *CreateConversationParams) (*ConversationsV1Conversation, error)

Create a new conversation in your account's default service

func (*ApiService) CreateConversationMessage added in v0.11.0

func (c *ApiService) CreateConversationMessage(ConversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationMessage, error)

Add a new message to the conversation

func (*ApiService) CreateConversationParticipant added in v0.11.0

func (c *ApiService) CreateConversationParticipant(ConversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationParticipant, error)

Add a new participant to the conversation

func (*ApiService) CreateConversationScopedWebhook added in v0.11.0

func (c *ApiService) CreateConversationScopedWebhook(ConversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationScopedWebhook, error)

Create a new webhook scoped to the conversation

func (*ApiService) CreateCredential added in v0.11.0

func (c *ApiService) CreateCredential(params *CreateCredentialParams) (*ConversationsV1Credential, error)

Add a new push notification credential to your account

func (*ApiService) CreateRole added in v0.11.0

func (c *ApiService) CreateRole(params *CreateRoleParams) (*ConversationsV1Role, error)

Create a new user role in your account's default service

func (*ApiService) CreateService added in v0.11.0

func (c *ApiService) CreateService(params *CreateServiceParams) (*ConversationsV1Service, error)

Create a new conversation service on your account

func (*ApiService) CreateServiceConversation added in v0.11.0

func (c *ApiService) CreateServiceConversation(ChatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceConversation, error)

Create a new conversation in your service

func (*ApiService) CreateServiceConversationMessage added in v0.11.0

func (c *ApiService) CreateServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceConversationMessage, error)

Add a new message to the conversation in a specific service

func (*ApiService) CreateServiceConversationParticipant added in v0.11.0

func (c *ApiService) CreateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceConversationParticipant, error)

Add a new participant to the conversation in a specific service

func (*ApiService) CreateServiceConversationScopedWebhook added in v0.11.0

func (c *ApiService) CreateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceConversationScopedWebhook, error)

Create a new webhook scoped to the conversation in a specific service

func (*ApiService) CreateServiceRole added in v0.11.0

func (c *ApiService) CreateServiceRole(ChatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceRole, error)

Create a new user role in your service

func (*ApiService) CreateServiceUser added in v0.11.0

func (c *ApiService) CreateServiceUser(ChatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceUser, error)

Add a new conversation user to your service

func (*ApiService) CreateUser added in v0.11.0

func (c *ApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, error)

Add a new conversation user to your account's default service

func (*ApiService) DeleteConfigurationAddress added in v0.21.0

func (c *ApiService) DeleteConfigurationAddress(Sid string) error

Remove an existing address configuration

func (*ApiService) DeleteConversation added in v0.11.0

func (c *ApiService) DeleteConversation(Sid string, params *DeleteConversationParams) error

Remove a conversation from your account's default service

func (*ApiService) DeleteConversationMessage added in v0.11.0

func (c *ApiService) DeleteConversationMessage(ConversationSid string, Sid string, params *DeleteConversationMessageParams) error

Remove a message from the conversation

func (*ApiService) DeleteConversationParticipant added in v0.11.0

func (c *ApiService) DeleteConversationParticipant(ConversationSid string, Sid string, params *DeleteConversationParticipantParams) error

Remove a participant from the conversation

func (*ApiService) DeleteConversationScopedWebhook added in v0.11.0

func (c *ApiService) DeleteConversationScopedWebhook(ConversationSid string, Sid string) error

Remove an existing webhook scoped to the conversation

func (*ApiService) DeleteCredential added in v0.11.0

func (c *ApiService) DeleteCredential(Sid string) error

Remove a push notification credential from your account

func (*ApiService) DeleteRole added in v0.11.0

func (c *ApiService) DeleteRole(Sid string) error

Remove a user role from your account's default service

func (*ApiService) DeleteService added in v0.11.0

func (c *ApiService) DeleteService(Sid string) error

Remove a conversation service with all its nested resources from your account

func (*ApiService) DeleteServiceBinding added in v0.11.0

func (c *ApiService) DeleteServiceBinding(ChatServiceSid string, Sid string) error

Remove a push notification binding from the conversation service

func (*ApiService) DeleteServiceConversation added in v0.11.0

func (c *ApiService) DeleteServiceConversation(ChatServiceSid string, Sid string, params *DeleteServiceConversationParams) error

Remove a conversation from your service

func (*ApiService) DeleteServiceConversationMessage added in v0.11.0

func (c *ApiService) DeleteServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationMessageParams) error

Remove a message from the conversation

func (*ApiService) DeleteServiceConversationParticipant added in v0.11.0

func (c *ApiService) DeleteServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationParticipantParams) error

Remove a participant from the conversation

func (*ApiService) DeleteServiceConversationScopedWebhook added in v0.11.0

func (c *ApiService) DeleteServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) error

Remove an existing webhook scoped to the conversation

func (*ApiService) DeleteServiceRole added in v0.11.0

func (c *ApiService) DeleteServiceRole(ChatServiceSid string, Sid string) error

Remove a user role from your service

func (*ApiService) DeleteServiceUser added in v0.11.0

func (c *ApiService) DeleteServiceUser(ChatServiceSid string, Sid string, params *DeleteServiceUserParams) error

Remove a conversation user from your service

func (*ApiService) DeleteServiceUserConversation added in v0.12.0

func (c *ApiService) DeleteServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string) error

Delete a specific User Conversation.

func (*ApiService) DeleteUser added in v0.11.0

func (c *ApiService) DeleteUser(Sid string, params *DeleteUserParams) error

Remove a conversation user from your account's default service

func (*ApiService) DeleteUserConversation added in v0.12.0

func (c *ApiService) DeleteUserConversation(UserSid string, ConversationSid string) error

Delete a specific User Conversation.

func (*ApiService) FetchConfiguration added in v0.11.0

func (c *ApiService) FetchConfiguration() (*ConversationsV1Configuration, error)

Fetch the global configuration of conversations on your account

func (*ApiService) FetchConfigurationAddress added in v0.21.0

func (c *ApiService) FetchConfigurationAddress(Sid string) (*ConversationsV1ConfigurationAddress, error)

Fetch an address configuration

func (*ApiService) FetchConfigurationWebhook added in v0.11.0

func (c *ApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationWebhook, error)

func (*ApiService) FetchConversation added in v0.11.0

func (c *ApiService) FetchConversation(Sid string) (*ConversationsV1Conversation, error)

Fetch a conversation from your account's default service

func (*ApiService) FetchConversationMessage added in v0.11.0

func (c *ApiService) FetchConversationMessage(ConversationSid string, Sid string) (*ConversationsV1ConversationMessage, error)

Fetch a message from the conversation

func (*ApiService) FetchConversationMessageReceipt added in v0.11.0

func (c *ApiService) FetchConversationMessageReceipt(ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ConversationMessageReceipt, error)

Fetch the delivery and read receipts of the conversation message

func (*ApiService) FetchConversationParticipant added in v0.11.0

func (c *ApiService) FetchConversationParticipant(ConversationSid string, Sid string) (*ConversationsV1ConversationParticipant, error)

Fetch a participant of the conversation

func (*ApiService) FetchConversationScopedWebhook added in v0.11.0

func (c *ApiService) FetchConversationScopedWebhook(ConversationSid string, Sid string) (*ConversationsV1ConversationScopedWebhook, error)

Fetch the configuration of a conversation-scoped webhook

func (*ApiService) FetchCredential added in v0.11.0

func (c *ApiService) FetchCredential(Sid string) (*ConversationsV1Credential, error)

Fetch a push notification credential from your account

func (*ApiService) FetchRole added in v0.11.0

func (c *ApiService) FetchRole(Sid string) (*ConversationsV1Role, error)

Fetch a user role from your account's default service

func (*ApiService) FetchService added in v0.11.0

func (c *ApiService) FetchService(Sid string) (*ConversationsV1Service, error)

Fetch a conversation service from your account

func (*ApiService) FetchServiceBinding added in v0.11.0

func (c *ApiService) FetchServiceBinding(ChatServiceSid string, Sid string) (*ConversationsV1ServiceBinding, error)

Fetch a push notification binding from the conversation service

func (*ApiService) FetchServiceConfiguration added in v0.11.0

func (c *ApiService) FetchServiceConfiguration(ChatServiceSid string) (*ConversationsV1ServiceConfiguration, error)

Fetch the configuration of a conversation service

func (*ApiService) FetchServiceConversation added in v0.11.0

func (c *ApiService) FetchServiceConversation(ChatServiceSid string, Sid string) (*ConversationsV1ServiceConversation, error)

Fetch a conversation from your service

func (*ApiService) FetchServiceConversationMessage added in v0.11.0

func (c *ApiService) FetchServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationMessage, error)

Fetch a message from the conversation

func (*ApiService) FetchServiceConversationMessageReceipt added in v0.11.0

func (c *ApiService) FetchServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ServiceConversationMessageReceipt, error)

Fetch the delivery and read receipts of the conversation message

func (*ApiService) FetchServiceConversationParticipant added in v0.11.0

func (c *ApiService) FetchServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationParticipant, error)

Fetch a participant of the conversation

func (*ApiService) FetchServiceConversationScopedWebhook added in v0.11.0

func (c *ApiService) FetchServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceConversationScopedWebhook, error)

Fetch the configuration of a conversation-scoped webhook

func (*ApiService) FetchServiceNotification added in v0.11.0

func (c *ApiService) FetchServiceNotification(ChatServiceSid string) (*ConversationsV1ServiceNotification, error)

Fetch push notification service settings

func (*ApiService) FetchServiceRole added in v0.11.0

func (c *ApiService) FetchServiceRole(ChatServiceSid string, Sid string) (*ConversationsV1ServiceRole, error)

Fetch a user role from your service

func (*ApiService) FetchServiceUser added in v0.11.0

func (c *ApiService) FetchServiceUser(ChatServiceSid string, Sid string) (*ConversationsV1ServiceUser, error)

Fetch a conversation user from your service

func (*ApiService) FetchServiceUserConversation added in v0.12.0

func (c *ApiService) FetchServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string) (*ConversationsV1ServiceUserConversation, error)

Fetch a specific User Conversation.

func (*ApiService) FetchServiceWebhookConfiguration added in v0.18.2

func (c *ApiService) FetchServiceWebhookConfiguration(ChatServiceSid string) (*ConversationsV1ServiceWebhookConfiguration, error)

Fetch a specific service webhook configuration.

func (*ApiService) FetchUser added in v0.11.0

func (c *ApiService) FetchUser(Sid string) (*ConversationsV1User, error)

Fetch a conversation user from your account's default service

func (*ApiService) FetchUserConversation added in v0.12.0

func (c *ApiService) FetchUserConversation(UserSid string, ConversationSid string) (*ConversationsV1UserConversation, error)

Fetch a specific User Conversation.

func (*ApiService) ListConfigurationAddress added in v0.21.0

func (c *ApiService) ListConfigurationAddress(params *ListConfigurationAddressParams) ([]ConversationsV1ConfigurationAddress, error)

Lists ConfigurationAddress records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListConversation added in v0.11.0

func (c *ApiService) ListConversation(params *ListConversationParams) ([]ConversationsV1Conversation, error)

Lists Conversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListConversationMessage added in v0.11.0

func (c *ApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) ([]ConversationsV1ConversationMessage, error)

Lists ConversationMessage records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListConversationMessageReceipt added in v0.11.0

func (c *ApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) ([]ConversationsV1ConversationMessageReceipt, error)

Lists ConversationMessageReceipt records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListConversationParticipant added in v0.11.0

func (c *ApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) ([]ConversationsV1ConversationParticipant, error)

Lists ConversationParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListConversationScopedWebhook added in v0.11.0

func (c *ApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) ([]ConversationsV1ConversationScopedWebhook, error)

Lists ConversationScopedWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListCredential added in v0.11.0

func (c *ApiService) ListCredential(params *ListCredentialParams) ([]ConversationsV1Credential, error)

Lists Credential records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListParticipantConversation added in v0.13.0

Lists ParticipantConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListRole added in v0.11.0

func (c *ApiService) ListRole(params *ListRoleParams) ([]ConversationsV1Role, error)

Lists Role records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListService added in v0.11.0

func (c *ApiService) ListService(params *ListServiceParams) ([]ConversationsV1Service, error)

Lists Service records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceBinding added in v0.11.0

func (c *ApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) ([]ConversationsV1ServiceBinding, error)

Lists ServiceBinding records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceConversation added in v0.11.0

func (c *ApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) ([]ConversationsV1ServiceConversation, error)

Lists ServiceConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceConversationMessage added in v0.11.0

func (c *ApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) ([]ConversationsV1ServiceConversationMessage, error)

Lists ServiceConversationMessage records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceConversationMessageReceipt added in v0.11.0

func (c *ApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) ([]ConversationsV1ServiceConversationMessageReceipt, error)

Lists ServiceConversationMessageReceipt records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceConversationParticipant added in v0.11.0

func (c *ApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) ([]ConversationsV1ServiceConversationParticipant, error)

Lists ServiceConversationParticipant records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceConversationScopedWebhook added in v0.11.0

func (c *ApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) ([]ConversationsV1ServiceConversationScopedWebhook, error)

Lists ServiceConversationScopedWebhook records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceParticipantConversation added in v0.13.0

func (c *ApiService) ListServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) ([]ConversationsV1ServiceParticipantConversation, error)

Lists ServiceParticipantConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceRole added in v0.11.0

func (c *ApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) ([]ConversationsV1ServiceRole, error)

Lists ServiceRole records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceUser added in v0.11.0

func (c *ApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) ([]ConversationsV1ServiceUser, error)

Lists ServiceUser records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListServiceUserConversation added in v0.12.0

func (c *ApiService) ListServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams) ([]ConversationsV1ServiceUserConversation, error)

Lists ServiceUserConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListUser added in v0.11.0

func (c *ApiService) ListUser(params *ListUserParams) ([]ConversationsV1User, error)

Lists User records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) ListUserConversation added in v0.12.0

func (c *ApiService) ListUserConversation(UserSid string, params *ListUserConversationParams) ([]ConversationsV1UserConversation, error)

Lists UserConversation records from the API as a list. Unlike stream, this operation is eager and loads 'limit' records into memory before returning.

func (*ApiService) PageConfigurationAddress added in v0.21.0

func (c *ApiService) PageConfigurationAddress(params *ListConfigurationAddressParams, pageToken, pageNumber string) (*ListConfigurationAddressResponse, error)

Retrieve a single page of ConfigurationAddress records from the API. Request is executed immediately.

func (*ApiService) PageConversation added in v0.13.0

func (c *ApiService) PageConversation(params *ListConversationParams, pageToken, pageNumber string) (*ListConversationResponse, error)

Retrieve a single page of Conversation records from the API. Request is executed immediately.

func (*ApiService) PageConversationMessage added in v0.13.0

func (c *ApiService) PageConversationMessage(ConversationSid string, params *ListConversationMessageParams, pageToken, pageNumber string) (*ListConversationMessageResponse, error)

Retrieve a single page of ConversationMessage records from the API. Request is executed immediately.

func (*ApiService) PageConversationMessageReceipt added in v0.13.0

func (c *ApiService) PageConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams, pageToken, pageNumber string) (*ListConversationMessageReceiptResponse, error)

Retrieve a single page of ConversationMessageReceipt records from the API. Request is executed immediately.

func (*ApiService) PageConversationParticipant added in v0.13.0

func (c *ApiService) PageConversationParticipant(ConversationSid string, params *ListConversationParticipantParams, pageToken, pageNumber string) (*ListConversationParticipantResponse, error)

Retrieve a single page of ConversationParticipant records from the API. Request is executed immediately.

func (*ApiService) PageConversationScopedWebhook added in v0.13.0

func (c *ApiService) PageConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams, pageToken, pageNumber string) (*ListConversationScopedWebhookResponse, error)

Retrieve a single page of ConversationScopedWebhook records from the API. Request is executed immediately.

func (*ApiService) PageCredential added in v0.13.0

func (c *ApiService) PageCredential(params *ListCredentialParams, pageToken, pageNumber string) (*ListCredentialResponse, error)

Retrieve a single page of Credential records from the API. Request is executed immediately.

func (*ApiService) PageParticipantConversation added in v0.13.0

func (c *ApiService) PageParticipantConversation(params *ListParticipantConversationParams, pageToken, pageNumber string) (*ListParticipantConversationResponse, error)

Retrieve a single page of ParticipantConversation records from the API. Request is executed immediately.

func (*ApiService) PageRole added in v0.13.0

func (c *ApiService) PageRole(params *ListRoleParams, pageToken, pageNumber string) (*ListRoleResponse, error)

Retrieve a single page of Role records from the API. Request is executed immediately.

func (*ApiService) PageService added in v0.13.0

func (c *ApiService) PageService(params *ListServiceParams, pageToken, pageNumber string) (*ListServiceResponse, error)

Retrieve a single page of Service records from the API. Request is executed immediately.

func (*ApiService) PageServiceBinding added in v0.13.0

func (c *ApiService) PageServiceBinding(ChatServiceSid string, params *ListServiceBindingParams, pageToken, pageNumber string) (*ListServiceBindingResponse, error)

Retrieve a single page of ServiceBinding records from the API. Request is executed immediately.

func (*ApiService) PageServiceConversation added in v0.13.0

func (c *ApiService) PageServiceConversation(ChatServiceSid string, params *ListServiceConversationParams, pageToken, pageNumber string) (*ListServiceConversationResponse, error)

Retrieve a single page of ServiceConversation records from the API. Request is executed immediately.

func (*ApiService) PageServiceConversationMessage added in v0.13.0

func (c *ApiService) PageServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams, pageToken, pageNumber string) (*ListServiceConversationMessageResponse, error)

Retrieve a single page of ServiceConversationMessage records from the API. Request is executed immediately.

func (*ApiService) PageServiceConversationMessageReceipt added in v0.13.0

func (c *ApiService) PageServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams, pageToken, pageNumber string) (*ListServiceConversationMessageReceiptResponse, error)

Retrieve a single page of ServiceConversationMessageReceipt records from the API. Request is executed immediately.

func (*ApiService) PageServiceConversationParticipant added in v0.13.0

func (c *ApiService) PageServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams, pageToken, pageNumber string) (*ListServiceConversationParticipantResponse, error)

Retrieve a single page of ServiceConversationParticipant records from the API. Request is executed immediately.

func (*ApiService) PageServiceConversationScopedWebhook added in v0.13.0

func (c *ApiService) PageServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams, pageToken, pageNumber string) (*ListServiceConversationScopedWebhookResponse, error)

Retrieve a single page of ServiceConversationScopedWebhook records from the API. Request is executed immediately.

func (*ApiService) PageServiceParticipantConversation added in v0.13.0

func (c *ApiService) PageServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams, pageToken, pageNumber string) (*ListServiceParticipantConversationResponse, error)

Retrieve a single page of ServiceParticipantConversation records from the API. Request is executed immediately.

func (*ApiService) PageServiceRole added in v0.13.0

func (c *ApiService) PageServiceRole(ChatServiceSid string, params *ListServiceRoleParams, pageToken, pageNumber string) (*ListServiceRoleResponse, error)

Retrieve a single page of ServiceRole records from the API. Request is executed immediately.

func (*ApiService) PageServiceUser added in v0.13.0

func (c *ApiService) PageServiceUser(ChatServiceSid string, params *ListServiceUserParams, pageToken, pageNumber string) (*ListServiceUserResponse, error)

Retrieve a single page of ServiceUser records from the API. Request is executed immediately.

func (*ApiService) PageServiceUserConversation added in v0.13.0

func (c *ApiService) PageServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams, pageToken, pageNumber string) (*ListServiceUserConversationResponse, error)

Retrieve a single page of ServiceUserConversation records from the API. Request is executed immediately.

func (*ApiService) PageUser added in v0.13.0

func (c *ApiService) PageUser(params *ListUserParams, pageToken, pageNumber string) (*ListUserResponse, error)

Retrieve a single page of User records from the API. Request is executed immediately.

func (*ApiService) PageUserConversation added in v0.13.0

func (c *ApiService) PageUserConversation(UserSid string, params *ListUserConversationParams, pageToken, pageNumber string) (*ListUserConversationResponse, error)

Retrieve a single page of UserConversation records from the API. Request is executed immediately.

func (*ApiService) StreamConfigurationAddress added in v0.21.0

func (c *ApiService) StreamConfigurationAddress(params *ListConfigurationAddressParams) (chan ConversationsV1ConfigurationAddress, chan error)

Streams ConfigurationAddress records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamConversation added in v0.13.0

func (c *ApiService) StreamConversation(params *ListConversationParams) (chan ConversationsV1Conversation, chan error)

Streams Conversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamConversationMessage added in v0.13.0

func (c *ApiService) StreamConversationMessage(ConversationSid string, params *ListConversationMessageParams) (chan ConversationsV1ConversationMessage, chan error)

Streams ConversationMessage records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamConversationMessageReceipt added in v0.13.0

func (c *ApiService) StreamConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (chan ConversationsV1ConversationMessageReceipt, chan error)

Streams ConversationMessageReceipt records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamConversationParticipant added in v0.13.0

func (c *ApiService) StreamConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (chan ConversationsV1ConversationParticipant, chan error)

Streams ConversationParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamConversationScopedWebhook added in v0.13.0

func (c *ApiService) StreamConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (chan ConversationsV1ConversationScopedWebhook, chan error)

Streams ConversationScopedWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamCredential added in v0.13.0

func (c *ApiService) StreamCredential(params *ListCredentialParams) (chan ConversationsV1Credential, chan error)

Streams Credential records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamParticipantConversation added in v0.13.0

func (c *ApiService) StreamParticipantConversation(params *ListParticipantConversationParams) (chan ConversationsV1ParticipantConversation, chan error)

Streams ParticipantConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamRole added in v0.13.0

func (c *ApiService) StreamRole(params *ListRoleParams) (chan ConversationsV1Role, chan error)

Streams Role records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamService added in v0.13.0

func (c *ApiService) StreamService(params *ListServiceParams) (chan ConversationsV1Service, chan error)

Streams Service records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceBinding added in v0.13.0

func (c *ApiService) StreamServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (chan ConversationsV1ServiceBinding, chan error)

Streams ServiceBinding records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceConversation added in v0.13.0

func (c *ApiService) StreamServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (chan ConversationsV1ServiceConversation, chan error)

Streams ServiceConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceConversationMessage added in v0.13.0

func (c *ApiService) StreamServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (chan ConversationsV1ServiceConversationMessage, chan error)

Streams ServiceConversationMessage records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceConversationMessageReceipt added in v0.13.0

func (c *ApiService) StreamServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (chan ConversationsV1ServiceConversationMessageReceipt, chan error)

Streams ServiceConversationMessageReceipt records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceConversationParticipant added in v0.13.0

func (c *ApiService) StreamServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (chan ConversationsV1ServiceConversationParticipant, chan error)

Streams ServiceConversationParticipant records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceConversationScopedWebhook added in v0.13.0

func (c *ApiService) StreamServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (chan ConversationsV1ServiceConversationScopedWebhook, chan error)

Streams ServiceConversationScopedWebhook records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceParticipantConversation added in v0.13.0

func (c *ApiService) StreamServiceParticipantConversation(ChatServiceSid string, params *ListServiceParticipantConversationParams) (chan ConversationsV1ServiceParticipantConversation, chan error)

Streams ServiceParticipantConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceRole added in v0.13.0

func (c *ApiService) StreamServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (chan ConversationsV1ServiceRole, chan error)

Streams ServiceRole records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceUser added in v0.13.0

func (c *ApiService) StreamServiceUser(ChatServiceSid string, params *ListServiceUserParams) (chan ConversationsV1ServiceUser, chan error)

Streams ServiceUser records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamServiceUserConversation added in v0.13.0

func (c *ApiService) StreamServiceUserConversation(ChatServiceSid string, UserSid string, params *ListServiceUserConversationParams) (chan ConversationsV1ServiceUserConversation, chan error)

Streams ServiceUserConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamUser added in v0.13.0

func (c *ApiService) StreamUser(params *ListUserParams) (chan ConversationsV1User, chan error)

Streams User records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) StreamUserConversation added in v0.13.0

func (c *ApiService) StreamUserConversation(UserSid string, params *ListUserConversationParams) (chan ConversationsV1UserConversation, chan error)

Streams UserConversation records from the API as a channel stream. This operation lazily loads records as efficiently as possible until the limit is reached.

func (*ApiService) UpdateConfiguration added in v0.11.0

func (c *ApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*ConversationsV1Configuration, error)

Update the global configuration of conversations on your account

func (*ApiService) UpdateConfigurationAddress added in v0.21.0

func (c *ApiService) UpdateConfigurationAddress(Sid string, params *UpdateConfigurationAddressParams) (*ConversationsV1ConfigurationAddress, error)

Update an existing address configuration

func (*ApiService) UpdateConfigurationWebhook added in v0.11.0

func (c *ApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationWebhook, error)

func (*ApiService) UpdateConversation added in v0.11.0

func (c *ApiService) UpdateConversation(Sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error)

Update an existing conversation in your account's default service

func (*ApiService) UpdateConversationMessage added in v0.11.0

func (c *ApiService) UpdateConversationMessage(ConversationSid string, Sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationMessage, error)

Update an existing message in the conversation

func (*ApiService) UpdateConversationParticipant added in v0.11.0

func (c *ApiService) UpdateConversationParticipant(ConversationSid string, Sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationParticipant, error)

Update an existing participant in the conversation

func (*ApiService) UpdateConversationScopedWebhook added in v0.11.0

func (c *ApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationScopedWebhook, error)

Update an existing conversation-scoped webhook

func (*ApiService) UpdateCredential added in v0.11.0

func (c *ApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error)

Update an existing push notification credential on your account

func (*ApiService) UpdateRole added in v0.11.0

func (c *ApiService) UpdateRole(Sid string, params *UpdateRoleParams) (*ConversationsV1Role, error)

Update an existing user role in your account's default service

func (*ApiService) UpdateServiceConfiguration added in v0.11.0

func (c *ApiService) UpdateServiceConfiguration(ChatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceConfiguration, error)

Update configuration settings of a conversation service

func (*ApiService) UpdateServiceConversation added in v0.11.0

func (c *ApiService) UpdateServiceConversation(ChatServiceSid string, Sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceConversation, error)

Update an existing conversation in your service

func (*ApiService) UpdateServiceConversationMessage added in v0.11.0

func (c *ApiService) UpdateServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceConversationMessage, error)

Update an existing message in the conversation

func (*ApiService) UpdateServiceConversationParticipant added in v0.11.0

func (c *ApiService) UpdateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceConversationParticipant, error)

Update an existing participant in the conversation

func (*ApiService) UpdateServiceConversationScopedWebhook added in v0.11.0

func (c *ApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceConversationScopedWebhook, error)

Update an existing conversation-scoped webhook

func (*ApiService) UpdateServiceNotification added in v0.11.0

func (c *ApiService) UpdateServiceNotification(ChatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceNotification, error)

Update push notification service settings

func (*ApiService) UpdateServiceRole added in v0.11.0

func (c *ApiService) UpdateServiceRole(ChatServiceSid string, Sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceRole, error)

Update an existing user role in your service

func (*ApiService) UpdateServiceUser added in v0.11.0

func (c *ApiService) UpdateServiceUser(ChatServiceSid string, Sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceUser, error)

Update an existing conversation user in your service

func (*ApiService) UpdateServiceUserConversation added in v0.12.0

func (c *ApiService) UpdateServiceUserConversation(ChatServiceSid string, UserSid string, ConversationSid string, params *UpdateServiceUserConversationParams) (*ConversationsV1ServiceUserConversation, error)

Update a specific User Conversation.

func (*ApiService) UpdateServiceWebhookConfiguration added in v0.18.2

func (c *ApiService) UpdateServiceWebhookConfiguration(ChatServiceSid string, params *UpdateServiceWebhookConfigurationParams) (*ConversationsV1ServiceWebhookConfiguration, error)

Update a specific Webhook.

func (*ApiService) UpdateUser added in v0.11.0

func (c *ApiService) UpdateUser(Sid string, params *UpdateUserParams) (*ConversationsV1User, error)

Update an existing conversation user in your account's default service

func (*ApiService) UpdateUserConversation added in v0.12.0

func (c *ApiService) UpdateUserConversation(UserSid string, ConversationSid string, params *UpdateUserConversationParams) (*ConversationsV1UserConversation, error)

Update a specific User Conversation.

type ConversationsV1Configuration

type ConversationsV1Configuration struct {
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this configuration.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) used when creating a conversation.
	DefaultChatServiceSid *string `json:"default_chat_service_sid,omitempty"`
	// The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) used when creating a conversation.
	DefaultMessagingServiceSid *string `json:"default_messaging_service_sid,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	DefaultInactiveTimer *string `json:"default_inactive_timer,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	DefaultClosedTimer *string `json:"default_closed_timer,omitempty"`
	// An absolute API resource URL for this global configuration.
	Url *string `json:"url,omitempty"`
	// Contains absolute API resource URLs to access the webhook and default service configurations.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1Configuration struct for ConversationsV1Configuration

type ConversationsV1ConfigurationAddress added in v0.21.0

type ConversationsV1ConfigurationAddress struct {
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) the address belongs to
	AccountSid *string `json:"account_sid,omitempty"`
	// Type of Address, value can be `whatsapp` or `sms`.
	Type *string `json:"type,omitempty"`
	// The unique address to be configured. The address can be a whatsapp address or phone number
	Address *string `json:"address,omitempty"`
	// The human-readable name of this configuration, limited to 256 characters. Optional.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// Auto Creation configuration for the address.
	AutoCreation *interface{} `json:"auto_creation,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this address configuration.
	Url *string `json:"url,omitempty"`
	// An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
	AddressCountry *string `json:"address_country,omitempty"`
}

ConversationsV1ConfigurationAddress struct for ConversationsV1ConfigurationAddress

type ConversationsV1ConfigurationWebhook added in v0.14.0

type ConversationsV1ConfigurationWebhook struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	Method     *string `json:"method,omitempty"`
	// The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
	Filters *[]string `json:"filters,omitempty"`
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"pre_webhook_url,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"post_webhook_url,omitempty"`
	Target         *string `json:"target,omitempty"`
	// An absolute API resource API resource URL for this webhook.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConfigurationWebhook struct for ConversationsV1ConfigurationWebhook

type ConversationsV1Conversation

type ConversationsV1Conversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"unique_name,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	State      *string `json:"state,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Timer date values representing state update for this conversation.
	Timers *interface{} `json:"timers,omitempty"`
	// An absolute API resource URL for this conversation.
	Url *string `json:"url,omitempty"`
	// Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
	Links    *map[string]interface{} `json:"links,omitempty"`
	Bindings *interface{}            `json:"bindings,omitempty"`
}

ConversationsV1Conversation struct for ConversationsV1Conversation

type ConversationsV1ConversationMessage added in v0.14.0

type ConversationsV1ConversationMessage struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this message.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The index of the message within the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource).  Indices may skip numbers, but will always be in order of when the message was received.
	Index *int `json:"index,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"body,omitempty"`
	// An array of objects that describe the Message's media, if the message contains media. Each object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object's file size in bytes. If the Message has no media, this value is `null`.
	Media *[]interface{} `json:"media,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// The unique ID of messages's author participant. Null in case of `system` sent message.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource API URL for this message.
	Url *string `json:"url,omitempty"`
	// An object that contains the summary of delivery statuses for the message to non-chat participants.
	Delivery *interface{} `json:"delivery,omitempty"`
	// Contains an absolute API resource URL to access the delivery & read receipts of this message.
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
	ContentSid *string `json:"content_sid,omitempty"`
}

ConversationsV1ConversationMessage struct for ConversationsV1ConversationMessage

type ConversationsV1ConversationMessageReceipt added in v0.14.0

type ConversationsV1ConversationMessageReceipt struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to
	MessageSid *string `json:"message_sid,omitempty"`
	// A messaging channel-specific identifier for the message delivered to participant e.g. `SMxx` for SMS, `WAxx` for Whatsapp etc.
	ChannelMessageSid *string `json:"channel_message_sid,omitempty"`
	// The unique ID of the participant the delivery receipt belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	Status         *string `json:"status,omitempty"`
	// The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status,
	ErrorCode *int `json:"error_code,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated. `null` if the delivery receipt has not been updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this delivery receipt.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ConversationMessageReceipt struct for ConversationsV1ConversationMessageReceipt

type ConversationsV1ConversationParticipant added in v0.14.0

type ConversationsV1ConversationParticipant struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"identity,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
	MessagingBinding *interface{} `json:"messaging_binding,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"role_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this participant.
	Url *string `json:"url,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"last_read_timestamp,omitempty"`
}

ConversationsV1ConversationParticipant struct for ConversationsV1ConversationParticipant

type ConversationsV1ConversationScopedWebhook added in v0.14.0

type ConversationsV1ConversationScopedWebhook struct {
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The target of this webhook: `webhook`, `studio`, `trigger`
	Target *string `json:"target,omitempty"`
	// An absolute API resource URL for this webhook.
	Url *string `json:"url,omitempty"`
	// The configuration of this webhook. Is defined based on target.
	Configuration *interface{} `json:"configuration,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
}

ConversationsV1ConversationScopedWebhook struct for ConversationsV1ConversationScopedWebhook

type ConversationsV1Credential

type ConversationsV1Credential struct {
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this credential.
	AccountSid *string `json:"account_sid,omitempty"`
	// The human-readable name of this credential, limited to 64 characters. Optional.
	FriendlyName *string `json:"friendly_name,omitempty"`
	Type         *string `json:"type,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
	Sandbox *string `json:"sandbox,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this credential.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Credential struct for ConversationsV1Credential

type ConversationsV1ParticipantConversation added in v0.13.0

type ConversationsV1ParticipantConversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource).
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The unique string that identifies the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource).
	ParticipantUserSid *string `json:"participant_user_sid,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	ParticipantIdentity *string `json:"participant_identity,omitempty"`
	// Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
	ParticipantMessagingBinding *interface{} `json:"participant_messaging_binding,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) this Participant belongs to.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// An application-defined string that uniquely identifies the Conversation resource.
	ConversationUniqueName *string `json:"conversation_unique_name,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	ConversationFriendlyName *string `json:"conversation_friendly_name,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	ConversationAttributes *string `json:"conversation_attributes,omitempty"`
	// The date that this conversation was created, given in ISO 8601 format.
	ConversationDateCreated *time.Time `json:"conversation_date_created,omitempty"`
	// The date that this conversation was last updated, given in ISO 8601 format.
	ConversationDateUpdated *time.Time `json:"conversation_date_updated,omitempty"`
	// Identity of the creator of this Conversation.
	ConversationCreatedBy *string `json:"conversation_created_by,omitempty"`
	ConversationState     *string `json:"conversation_state,omitempty"`
	// Timer date values representing state update for this conversation.
	ConversationTimers *interface{} `json:"conversation_timers,omitempty"`
	// Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1ParticipantConversation struct for ConversationsV1ParticipantConversation

type ConversationsV1Role

type ConversationsV1Role struct {
	// The unique string that we created to identify the Role resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Role resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Role resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	Type         *string `json:"type,omitempty"`
	// An array of the permissions the role has been granted.
	Permissions *[]string `json:"permissions,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"`
	// An absolute API resource URL for this user role.
	Url *string `json:"url,omitempty"`
}

ConversationsV1Role struct for ConversationsV1Role

type ConversationsV1Service

type ConversationsV1Service struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this service.
	AccountSid *string `json:"account_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The human-readable name of this service, limited to 256 characters. Optional.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this service.
	Url *string `json:"url,omitempty"`
	// Contains absolute API resource URLs to access conversations, users, roles, bindings and configuration of this service.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1Service struct for ConversationsV1Service

type ConversationsV1ServiceBinding added in v0.14.0

type ConversationsV1ServiceBinding struct {
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this binding.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The SID of the [Credential](https://www.twilio.com/docs/conversations/api/credential-resource) for the binding. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
	CredentialSid *string `json:"credential_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// The unique endpoint identifier for the Binding. The format of this value depends on the `binding_type`.
	Endpoint *string `json:"endpoint,omitempty"`
	// The application-defined string that uniquely identifies the [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more info.
	Identity    *string `json:"identity,omitempty"`
	BindingType *string `json:"binding_type,omitempty"`
	// The [Conversation message types](https://www.twilio.com/docs/chat/push-notification-configuration#push-types) the binding is subscribed to.
	MessageTypes *[]string `json:"message_types,omitempty"`
	// An absolute API resource URL for this binding.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceBinding struct for ConversationsV1ServiceBinding

type ConversationsV1ServiceConfiguration added in v0.14.0

type ConversationsV1ServiceConfiguration struct {
	// The unique string that we created to identify the Service configuration resource.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The conversation-level role assigned to a conversation creator user when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationCreatorRoleSid *string `json:"default_conversation_creator_role_sid,omitempty"`
	// The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationRoleSid *string `json:"default_conversation_role_sid,omitempty"`
	// The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultChatServiceRoleSid *string `json:"default_chat_service_role_sid,omitempty"`
	// An absolute API resource URL for this service configuration.
	Url *string `json:"url,omitempty"`
	// Contains an absolute API resource URL to access the push notifications configuration of this service.
	Links *map[string]interface{} `json:"links,omitempty"`
	// Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`.
	ReachabilityEnabled *bool `json:"reachability_enabled,omitempty"`
}

ConversationsV1ServiceConfiguration struct for ConversationsV1ServiceConfiguration

type ConversationsV1ServiceConversation added in v0.14.0

type ConversationsV1ServiceConversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"messaging_service_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"unique_name,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	State      *string `json:"state,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Timer date values representing state update for this conversation.
	Timers *interface{} `json:"timers,omitempty"`
	// An absolute API resource URL for this conversation.
	Url *string `json:"url,omitempty"`
	// Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
	Links    *map[string]interface{} `json:"links,omitempty"`
	Bindings *interface{}            `json:"bindings,omitempty"`
}

ConversationsV1ServiceConversation struct for ConversationsV1ServiceConversation

type ConversationsV1ServiceConversationMessage added in v0.14.0

type ConversationsV1ServiceConversationMessage struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this message.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The index of the message within the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource).
	Index *int `json:"index,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"body,omitempty"`
	// An array of objects that describe the Message's media, if the message contains media. Each object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object's file size in bytes. If the Message has no media, this value is `null`.
	Media *[]interface{} `json:"media,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// The unique ID of messages's author participant. Null in case of `system` sent message.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An object that contains the summary of delivery statuses for the message to non-chat participants.
	Delivery *interface{} `json:"delivery,omitempty"`
	// An absolute API resource URL for this message.
	Url *string `json:"url,omitempty"`
	// Contains an absolute API resource URL to access the delivery & read receipts of this message.
	Links *map[string]interface{} `json:"links,omitempty"`
	// The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
	ContentSid *string `json:"content_sid,omitempty"`
}

ConversationsV1ServiceConversationMessage struct for ConversationsV1ServiceConversationMessage

type ConversationsV1ServiceConversationMessageReceipt added in v0.14.0

type ConversationsV1ServiceConversationMessageReceipt struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to
	MessageSid *string `json:"message_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// A messaging channel-specific identifier for the message delivered to participant e.g. `SMxx` for SMS, `WAxx` for Whatsapp etc.
	ChannelMessageSid *string `json:"channel_message_sid,omitempty"`
	// The unique ID of the participant the delivery receipt belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	Status         *string `json:"status,omitempty"`
	// The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status,
	ErrorCode *int `json:"error_code,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated. `null` if the delivery receipt has not been updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this delivery receipt.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceConversationMessageReceipt struct for ConversationsV1ServiceConversationMessageReceipt

type ConversationsV1ServiceConversationParticipant added in v0.14.0

type ConversationsV1ServiceConversationParticipant struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this participant.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters.
	Identity *string `json:"identity,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
	MessagingBinding *interface{} `json:"messaging_binding,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"role_sid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// An absolute API resource URL for this participant.
	Url *string `json:"url,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"last_read_timestamp,omitempty"`
}

ConversationsV1ServiceConversationParticipant struct for ConversationsV1ServiceConversationParticipant

type ConversationsV1ServiceConversationScopedWebhook added in v0.14.0

type ConversationsV1ServiceConversationScopedWebhook struct {
	// A 34 character string that uniquely identifies this resource.
	Sid *string `json:"sid,omitempty"`
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The target of this webhook: `webhook`, `studio`, `trigger`
	Target *string `json:"target,omitempty"`
	// An absolute API resource URL for this webhook.
	Url *string `json:"url,omitempty"`
	// The configuration of this webhook. Is defined based on target.
	Configuration *interface{} `json:"configuration,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
}

ConversationsV1ServiceConversationScopedWebhook struct for ConversationsV1ServiceConversationScopedWebhook

type ConversationsV1ServiceNotification added in v0.14.0

type ConversationsV1ServiceNotification struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this configuration.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The Push Notification configuration for New Messages.
	NewMessage *interface{} `json:"new_message,omitempty"`
	// The Push Notification configuration for being added to a Conversation.
	AddedToConversation *interface{} `json:"added_to_conversation,omitempty"`
	// The Push Notification configuration for being removed from a Conversation.
	RemovedFromConversation *interface{} `json:"removed_from_conversation,omitempty"`
	// Weather the notification logging is enabled.
	LogEnabled *bool `json:"log_enabled,omitempty"`
	// An absolute API resource URL for this configuration.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceNotification struct for ConversationsV1ServiceNotification

type ConversationsV1ServiceParticipantConversation added in v0.14.0

type ConversationsV1ServiceParticipantConversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource).
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The unique string that identifies the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource).
	ParticipantUserSid *string `json:"participant_user_sid,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	ParticipantIdentity *string `json:"participant_identity,omitempty"`
	// Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
	ParticipantMessagingBinding *interface{} `json:"participant_messaging_binding,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) this Participant belongs to.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// An application-defined string that uniquely identifies the Conversation resource.
	ConversationUniqueName *string `json:"conversation_unique_name,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	ConversationFriendlyName *string `json:"conversation_friendly_name,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	ConversationAttributes *string `json:"conversation_attributes,omitempty"`
	// The date that this conversation was created, given in ISO 8601 format.
	ConversationDateCreated *time.Time `json:"conversation_date_created,omitempty"`
	// The date that this conversation was last updated, given in ISO 8601 format.
	ConversationDateUpdated *time.Time `json:"conversation_date_updated,omitempty"`
	// Identity of the creator of this Conversation.
	ConversationCreatedBy *string `json:"conversation_created_by,omitempty"`
	ConversationState     *string `json:"conversation_state,omitempty"`
	// Timer date values representing state update for this conversation.
	ConversationTimers *interface{} `json:"conversation_timers,omitempty"`
	// Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1ServiceParticipantConversation struct for ConversationsV1ServiceParticipantConversation

type ConversationsV1ServiceRole added in v0.14.0

type ConversationsV1ServiceRole struct {
	// The unique string that we created to identify the Role resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Role resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Role resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	Type         *string `json:"type,omitempty"`
	// An array of the permissions the role has been granted.
	Permissions *[]string `json:"permissions,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"`
	// An absolute API resource URL for this user role.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceRole struct for ConversationsV1ServiceRole

type ConversationsV1ServiceUser added in v0.14.0

type ConversationsV1ServiceUser struct {
	// The unique string that we created to identify the User resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the User resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) assigned to the user.
	RoleSid *string `json:"role_sid,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"identity,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"attributes,omitempty"`
	// Whether the User is actively connected to this Conversations Service and online. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, if the User has never been online for this Conversations Service, even if the Service's `reachability_enabled` is `true`.
	IsOnline *bool `json:"is_online,omitempty"`
	// Whether the User has a potentially valid Push Notification registration (APN or GCM) for this Conversations Service. If at least one registration exists, `true`; otherwise `false`. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, and if the User has never had a notification registration, even if the Service's `reachability_enabled` is `true`.
	IsNotifiable *bool `json:"is_notifiable,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"`
	// An absolute API resource URL for this user.
	Url   *string                 `json:"url,omitempty"`
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1ServiceUser struct for ConversationsV1ServiceUser

type ConversationsV1ServiceUserConversation added in v0.14.0

type ConversationsV1ServiceUserConversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this User Conversation.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The number of unread Messages in the Conversation for the Participant.
	UnreadMessagesCount *int `json:"unread_messages_count,omitempty"`
	// The index of the last Message in the Conversation that the Participant has read.
	LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
	// The unique ID of the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) the user conversation belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The unique string that identifies the [User resource](https://www.twilio.com/docs/conversations/api/user-resource).
	UserSid *string `json:"user_sid,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName      *string `json:"friendly_name,omitempty"`
	ConversationState *string `json:"conversation_state,omitempty"`
	// Timer date values representing state update for this conversation.
	Timers *interface{} `json:"timers,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// The date that this conversation was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this conversation was last updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Identity of the creator of this Conversation.
	CreatedBy         *string `json:"created_by,omitempty"`
	NotificationLevel *string `json:"notification_level,omitempty"`
	// An application-defined string that uniquely identifies the Conversation resource. It can be used to address the resource in place of the resource's `conversation_sid` in the URL.
	UniqueName *string `json:"unique_name,omitempty"`
	Url        *string `json:"url,omitempty"`
	// Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1ServiceUserConversation struct for ConversationsV1ServiceUserConversation

type ConversationsV1ServiceWebhookConfiguration added in v0.18.2

type ConversationsV1ServiceWebhookConfiguration struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this service.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"pre_webhook_url,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"post_webhook_url,omitempty"`
	// The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
	Filters *[]string `json:"filters,omitempty"`
	Method  *string   `json:"method,omitempty"`
	// An absolute API resource URL for this webhook.
	Url *string `json:"url,omitempty"`
}

ConversationsV1ServiceWebhookConfiguration struct for ConversationsV1ServiceWebhookConfiguration

type ConversationsV1User

type ConversationsV1User struct {
	// The unique string that we created to identify the User resource.
	Sid *string `json:"sid,omitempty"`
	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the User resource.
	AccountSid *string `json:"account_sid,omitempty"`
	// The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) assigned to the user.
	RoleSid *string `json:"role_sid,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"identity,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"friendly_name,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"attributes,omitempty"`
	// Whether the User is actively connected to this Conversations Service and online. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, if the User has never been online for this Conversations Service, even if the Service's `reachability_enabled` is `true`.
	IsOnline *bool `json:"is_online,omitempty"`
	// Whether the User has a potentially valid Push Notification registration (APN or GCM) for this Conversations Service. If at least one registration exists, `true`; otherwise `false`. This value is only returned by Fetch actions that return a single resource and `null` is always returned by a Read action. This value is `null` if the Service's `reachability_enabled` is `false`, and if the User has never had a notification registration, even if the Service's `reachability_enabled` is `true`.
	IsNotifiable *bool `json:"is_notifiable,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"`
	// An absolute API resource URL for this user.
	Url   *string                 `json:"url,omitempty"`
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1User struct for ConversationsV1User

type ConversationsV1UserConversation added in v0.14.0

type ConversationsV1UserConversation struct {
	// The unique ID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this conversation.
	AccountSid *string `json:"account_sid,omitempty"`
	// The unique ID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
	ChatServiceSid *string `json:"chat_service_sid,omitempty"`
	// The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this User Conversation.
	ConversationSid *string `json:"conversation_sid,omitempty"`
	// The number of unread Messages in the Conversation for the Participant.
	UnreadMessagesCount *int `json:"unread_messages_count,omitempty"`
	// The index of the last Message in the Conversation that the Participant has read.
	LastReadMessageIndex *int `json:"last_read_message_index,omitempty"`
	// The unique ID of the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) the user conversation belongs to.
	ParticipantSid *string `json:"participant_sid,omitempty"`
	// The unique string that identifies the [User resource](https://www.twilio.com/docs/conversations/api/user-resource).
	UserSid *string `json:"user_sid,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName      *string `json:"friendly_name,omitempty"`
	ConversationState *string `json:"conversation_state,omitempty"`
	// Timer date values representing state update for this conversation.
	Timers *interface{} `json:"timers,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \"{}\" will be returned.
	Attributes *string `json:"attributes,omitempty"`
	// The date that this conversation was created, given in ISO 8601 format.
	DateCreated *time.Time `json:"date_created,omitempty"`
	// The date that this conversation was last updated, given in ISO 8601 format.
	DateUpdated *time.Time `json:"date_updated,omitempty"`
	// Identity of the creator of this Conversation.
	CreatedBy         *string `json:"created_by,omitempty"`
	NotificationLevel *string `json:"notification_level,omitempty"`
	// An application-defined string that uniquely identifies the Conversation resource. It can be used to address the resource in place of the resource's `conversation_sid` in the URL.
	UniqueName *string `json:"unique_name,omitempty"`
	Url        *string `json:"url,omitempty"`
	// Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
	Links *map[string]interface{} `json:"links,omitempty"`
}

ConversationsV1UserConversation struct for ConversationsV1UserConversation

type CreateConfigurationAddressParams added in v0.21.0

type CreateConfigurationAddressParams struct {
	//
	Type *string `json:"Type,omitempty"`
	// The unique address to be configured. The address can be a whatsapp address or phone number
	Address *string `json:"Address,omitempty"`
	// The human-readable name of this configuration, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Enable/Disable auto-creating conversations for messages to this address
	AutoCreationEnabled *bool `json:"AutoCreation.Enabled,omitempty"`
	//
	AutoCreationType *string `json:"AutoCreation.Type,omitempty"`
	// Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
	AutoCreationConversationServiceSid *string `json:"AutoCreation.ConversationServiceSid,omitempty"`
	// For type `webhook`, the url for the webhook request.
	AutoCreationWebhookUrl *string `json:"AutoCreation.WebhookUrl,omitempty"`
	//
	AutoCreationWebhookMethod *string `json:"AutoCreation.WebhookMethod,omitempty"`
	// The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
	AutoCreationWebhookFilters *[]string `json:"AutoCreation.WebhookFilters,omitempty"`
	// For type `studio`, the studio flow SID where the webhook should be sent to.
	AutoCreationStudioFlowSid *string `json:"AutoCreation.StudioFlowSid,omitempty"`
	// For type `studio`, number of times to retry the webhook request
	AutoCreationStudioRetryCount *int `json:"AutoCreation.StudioRetryCount,omitempty"`
	// An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.
	AddressCountry *string `json:"AddressCountry,omitempty"`
}

Optional parameters for the method 'CreateConfigurationAddress'

func (*CreateConfigurationAddressParams) SetAddress added in v0.21.0

func (*CreateConfigurationAddressParams) SetAddressCountry added in v1.7.1

func (params *CreateConfigurationAddressParams) SetAddressCountry(AddressCountry string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationConversationServiceSid added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationConversationServiceSid(AutoCreationConversationServiceSid string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationEnabled added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationEnabled(AutoCreationEnabled bool) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationStudioFlowSid added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationStudioFlowSid(AutoCreationStudioFlowSid string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationStudioRetryCount added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationStudioRetryCount(AutoCreationStudioRetryCount int) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationType added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationType(AutoCreationType string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationWebhookFilters added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationWebhookFilters(AutoCreationWebhookFilters []string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationWebhookMethod added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationWebhookMethod(AutoCreationWebhookMethod string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetAutoCreationWebhookUrl added in v0.21.0

func (params *CreateConfigurationAddressParams) SetAutoCreationWebhookUrl(AutoCreationWebhookUrl string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetFriendlyName added in v0.21.0

func (params *CreateConfigurationAddressParams) SetFriendlyName(FriendlyName string) *CreateConfigurationAddressParams

func (*CreateConfigurationAddressParams) SetType added in v0.21.0

type CreateConversationMessageParams

type CreateConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The Media SID to be attached to the new Message.
	MediaSid *string `json:"MediaSid,omitempty"`
	// The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages.  **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
	ContentSid *string `json:"ContentSid,omitempty"`
	// A structurally valid JSON string that contains values to resolve Rich Content template variables.
	ContentVariables *string `json:"ContentVariables,omitempty"`
}

Optional parameters for the method 'CreateConversationMessage'

func (*CreateConversationMessageParams) SetAttributes

func (params *CreateConversationMessageParams) SetAttributes(Attributes string) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetAuthor

func (*CreateConversationMessageParams) SetBody

func (*CreateConversationMessageParams) SetContentSid added in v1.3.1

func (params *CreateConversationMessageParams) SetContentSid(ContentSid string) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetContentVariables added in v1.3.1

func (params *CreateConversationMessageParams) SetContentVariables(ContentVariables string) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetDateCreated

func (params *CreateConversationMessageParams) SetDateCreated(DateCreated time.Time) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetDateUpdated

func (params *CreateConversationMessageParams) SetDateUpdated(DateUpdated time.Time) *CreateConversationMessageParams

func (*CreateConversationMessageParams) SetMediaSid

func (*CreateConversationMessageParams) SetXTwilioWebhookEnabled

func (params *CreateConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationMessageParams

type CreateConversationParams

type CreateConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	//
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
}

Optional parameters for the method 'CreateConversation'

func (*CreateConversationParams) SetAttributes

func (params *CreateConversationParams) SetAttributes(Attributes string) *CreateConversationParams

func (*CreateConversationParams) SetDateCreated

func (params *CreateConversationParams) SetDateCreated(DateCreated time.Time) *CreateConversationParams

func (*CreateConversationParams) SetDateUpdated

func (params *CreateConversationParams) SetDateUpdated(DateUpdated time.Time) *CreateConversationParams

func (*CreateConversationParams) SetFriendlyName

func (params *CreateConversationParams) SetFriendlyName(FriendlyName string) *CreateConversationParams

func (*CreateConversationParams) SetMessagingServiceSid

func (params *CreateConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateConversationParams

func (*CreateConversationParams) SetState

func (params *CreateConversationParams) SetState(State string) *CreateConversationParams

func (*CreateConversationParams) SetTimersClosed

func (params *CreateConversationParams) SetTimersClosed(TimersClosed string) *CreateConversationParams

func (*CreateConversationParams) SetTimersInactive

func (params *CreateConversationParams) SetTimersInactive(TimersInactive string) *CreateConversationParams

func (*CreateConversationParams) SetUniqueName

func (params *CreateConversationParams) SetUniqueName(UniqueName string) *CreateConversationParams

func (*CreateConversationParams) SetXTwilioWebhookEnabled

func (params *CreateConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationParams

type CreateConversationParticipantParams

type CreateConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"`
	// The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateConversationParticipant'

func (*CreateConversationParticipantParams) SetAttributes

func (*CreateConversationParticipantParams) SetDateCreated

func (*CreateConversationParticipantParams) SetDateUpdated

func (*CreateConversationParticipantParams) SetIdentity

func (*CreateConversationParticipantParams) SetMessagingBindingAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingAddress(MessagingBindingAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *CreateConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *CreateConversationParticipantParams

func (*CreateConversationParticipantParams) SetRoleSid

func (*CreateConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *CreateConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateConversationParticipantParams

type CreateConversationScopedWebhookParams

type CreateConversationScopedWebhookParams struct {
	//
	Target *string `json:"Target,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	//
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The message index for which and it's successors the webhook will be replayed. Not set by default
	ConfigurationReplayAfter *int `json:"Configuration.ReplayAfter,omitempty"`
}

Optional parameters for the method 'CreateConversationScopedWebhook'

func (*CreateConversationScopedWebhookParams) SetConfigurationFilters

func (params *CreateConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *CreateConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationMethod

func (params *CreateConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationReplayAfter

func (params *CreateConversationScopedWebhookParams) SetConfigurationReplayAfter(ConfigurationReplayAfter int) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationTriggers

func (params *CreateConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetConfigurationUrl

func (params *CreateConversationScopedWebhookParams) SetConfigurationUrl(ConfigurationUrl string) *CreateConversationScopedWebhookParams

func (*CreateConversationScopedWebhookParams) SetTarget

type CreateCredentialParams

type CreateCredentialParams struct {
	//
	Type *string `json:"Type,omitempty"`
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// [APN only] The URL encoded representation of the certificate. For example,  `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`.
	Certificate *string `json:"Certificate,omitempty"`
	// [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`.
	PrivateKey *string `json:"PrivateKey,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
	Sandbox *bool `json:"Sandbox,omitempty"`
	// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.
	ApiKey *string `json:"ApiKey,omitempty"`
	// [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.
	Secret *string `json:"Secret,omitempty"`
}

Optional parameters for the method 'CreateCredential'

func (*CreateCredentialParams) SetApiKey

func (params *CreateCredentialParams) SetApiKey(ApiKey string) *CreateCredentialParams

func (*CreateCredentialParams) SetCertificate

func (params *CreateCredentialParams) SetCertificate(Certificate string) *CreateCredentialParams

func (*CreateCredentialParams) SetFriendlyName

func (params *CreateCredentialParams) SetFriendlyName(FriendlyName string) *CreateCredentialParams

func (*CreateCredentialParams) SetPrivateKey

func (params *CreateCredentialParams) SetPrivateKey(PrivateKey string) *CreateCredentialParams

func (*CreateCredentialParams) SetSandbox

func (params *CreateCredentialParams) SetSandbox(Sandbox bool) *CreateCredentialParams

func (*CreateCredentialParams) SetSecret

func (params *CreateCredentialParams) SetSecret(Secret string) *CreateCredentialParams

func (*CreateCredentialParams) SetType

func (params *CreateCredentialParams) SetType(Type string) *CreateCredentialParams

type CreateRoleParams

type CreateRoleParams struct {
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	//
	Type *string `json:"Type,omitempty"`
	// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'CreateRole'

func (*CreateRoleParams) SetFriendlyName

func (params *CreateRoleParams) SetFriendlyName(FriendlyName string) *CreateRoleParams

func (*CreateRoleParams) SetPermission

func (params *CreateRoleParams) SetPermission(Permission []string) *CreateRoleParams

func (*CreateRoleParams) SetType

func (params *CreateRoleParams) SetType(Type string) *CreateRoleParams

type CreateServiceConversationMessageParams

type CreateServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The Media SID to be attached to the new Message.
	MediaSid *string `json:"MediaSid,omitempty"`
	// The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages.  **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored.
	ContentSid *string `json:"ContentSid,omitempty"`
	// A structurally valid JSON string that contains values to resolve Rich Content template variables.
	ContentVariables *string `json:"ContentVariables,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationMessage'

func (*CreateServiceConversationMessageParams) SetAttributes

func (*CreateServiceConversationMessageParams) SetAuthor

func (*CreateServiceConversationMessageParams) SetBody

func (*CreateServiceConversationMessageParams) SetContentSid added in v1.3.1

func (*CreateServiceConversationMessageParams) SetContentVariables added in v1.3.1

func (params *CreateServiceConversationMessageParams) SetContentVariables(ContentVariables string) *CreateServiceConversationMessageParams

func (*CreateServiceConversationMessageParams) SetDateCreated

func (*CreateServiceConversationMessageParams) SetDateUpdated

func (*CreateServiceConversationMessageParams) SetMediaSid

func (*CreateServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationMessageParams

type CreateServiceConversationParams

type CreateServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	//
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
}

Optional parameters for the method 'CreateServiceConversation'

func (*CreateServiceConversationParams) SetAttributes

func (params *CreateServiceConversationParams) SetAttributes(Attributes string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetDateCreated

func (params *CreateServiceConversationParams) SetDateCreated(DateCreated time.Time) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetDateUpdated

func (params *CreateServiceConversationParams) SetDateUpdated(DateUpdated time.Time) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetFriendlyName

func (params *CreateServiceConversationParams) SetFriendlyName(FriendlyName string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetMessagingServiceSid

func (params *CreateServiceConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetState

func (*CreateServiceConversationParams) SetTimersClosed

func (params *CreateServiceConversationParams) SetTimersClosed(TimersClosed string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetTimersInactive

func (params *CreateServiceConversationParams) SetTimersInactive(TimersInactive string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetUniqueName

func (params *CreateServiceConversationParams) SetUniqueName(UniqueName string) *CreateServiceConversationParams

func (*CreateServiceConversationParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationParams

type CreateServiceConversationParticipantParams

type CreateServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"`
	// The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field).
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationParticipant'

func (*CreateServiceConversationParticipantParams) SetAttributes

func (*CreateServiceConversationParticipantParams) SetDateCreated

func (*CreateServiceConversationParticipantParams) SetDateUpdated

func (*CreateServiceConversationParticipantParams) SetIdentity

func (*CreateServiceConversationParticipantParams) SetMessagingBindingAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingAddress(MessagingBindingAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *CreateServiceConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *CreateServiceConversationParticipantParams

func (*CreateServiceConversationParticipantParams) SetRoleSid

func (*CreateServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *CreateServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceConversationParticipantParams

type CreateServiceConversationScopedWebhookParams

type CreateServiceConversationScopedWebhookParams struct {
	//
	Target *string `json:"Target,omitempty"`
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	//
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
	// The message index for which and it's successors the webhook will be replayed. Not set by default
	ConfigurationReplayAfter *int `json:"Configuration.ReplayAfter,omitempty"`
}

Optional parameters for the method 'CreateServiceConversationScopedWebhook'

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationFilters

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationMethod

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationReplayAfter

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationReplayAfter(ConfigurationReplayAfter int) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationTriggers

func (params *CreateServiceConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *CreateServiceConversationScopedWebhookParams

func (*CreateServiceConversationScopedWebhookParams) SetConfigurationUrl

func (*CreateServiceConversationScopedWebhookParams) SetTarget

type CreateServiceParams

type CreateServiceParams struct {
	// The human-readable name of this service, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
}

Optional parameters for the method 'CreateService'

func (*CreateServiceParams) SetFriendlyName

func (params *CreateServiceParams) SetFriendlyName(FriendlyName string) *CreateServiceParams

type CreateServiceRoleParams

type CreateServiceRoleParams struct {
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	//
	Type *string `json:"Type,omitempty"`
	// A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'CreateServiceRole'

func (*CreateServiceRoleParams) SetFriendlyName

func (params *CreateServiceRoleParams) SetFriendlyName(FriendlyName string) *CreateServiceRoleParams

func (*CreateServiceRoleParams) SetPermission

func (params *CreateServiceRoleParams) SetPermission(Permission []string) *CreateServiceRoleParams

func (*CreateServiceRoleParams) SetType

type CreateServiceUserParams

type CreateServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"Identity,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateServiceUser'

func (*CreateServiceUserParams) SetAttributes

func (params *CreateServiceUserParams) SetAttributes(Attributes string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetFriendlyName

func (params *CreateServiceUserParams) SetFriendlyName(FriendlyName string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetIdentity

func (params *CreateServiceUserParams) SetIdentity(Identity string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetRoleSid

func (params *CreateServiceUserParams) SetRoleSid(RoleSid string) *CreateServiceUserParams

func (*CreateServiceUserParams) SetXTwilioWebhookEnabled

func (params *CreateServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateServiceUserParams

type CreateUserParams

type CreateUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive.
	Identity *string `json:"Identity,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'CreateUser'

func (*CreateUserParams) SetAttributes

func (params *CreateUserParams) SetAttributes(Attributes string) *CreateUserParams

func (*CreateUserParams) SetFriendlyName

func (params *CreateUserParams) SetFriendlyName(FriendlyName string) *CreateUserParams

func (*CreateUserParams) SetIdentity

func (params *CreateUserParams) SetIdentity(Identity string) *CreateUserParams

func (*CreateUserParams) SetRoleSid

func (params *CreateUserParams) SetRoleSid(RoleSid string) *CreateUserParams

func (*CreateUserParams) SetXTwilioWebhookEnabled

func (params *CreateUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *CreateUserParams

type DeleteConversationMessageParams

type DeleteConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversationMessage'

func (*DeleteConversationMessageParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationMessageParams

type DeleteConversationParams

type DeleteConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversation'

func (*DeleteConversationParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationParams

type DeleteConversationParticipantParams

type DeleteConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteConversationParticipant'

func (*DeleteConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *DeleteConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteConversationParticipantParams

type DeleteServiceConversationMessageParams

type DeleteServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversationMessage'

func (*DeleteServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationMessageParams

type DeleteServiceConversationParams

type DeleteServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversation'

func (*DeleteServiceConversationParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationParams

type DeleteServiceConversationParticipantParams

type DeleteServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceConversationParticipant'

func (*DeleteServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceConversationParticipantParams

type DeleteServiceUserParams

type DeleteServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteServiceUser'

func (*DeleteServiceUserParams) SetXTwilioWebhookEnabled

func (params *DeleteServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteServiceUserParams

type DeleteUserParams

type DeleteUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
}

Optional parameters for the method 'DeleteUser'

func (*DeleteUserParams) SetXTwilioWebhookEnabled

func (params *DeleteUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *DeleteUserParams

type ListConfigurationAddressParams added in v0.21.0

type ListConfigurationAddressParams struct {
	// Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
	Type *string `json:"Type,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConfigurationAddress'

func (*ListConfigurationAddressParams) SetLimit added in v0.21.0

func (*ListConfigurationAddressParams) SetPageSize added in v0.21.0

func (params *ListConfigurationAddressParams) SetPageSize(PageSize int) *ListConfigurationAddressParams

func (*ListConfigurationAddressParams) SetType added in v0.25.0

type ListConfigurationAddressResponse added in v0.21.0

type ListConfigurationAddressResponse struct {
	AddressConfigurations []ConversationsV1ConfigurationAddress `json:"address_configurations,omitempty"`
	Meta                  ListConfigurationAddressResponseMeta  `json:"meta,omitempty"`
}

ListConfigurationAddressResponse struct for ListConfigurationAddressResponse

type ListConfigurationAddressResponseMeta added in v0.21.0

type ListConfigurationAddressResponseMeta struct {
	FirstPageUrl    string  `json:"first_page_url,omitempty"`
	NextPageUrl     *string `json:"next_page_url,omitempty"`
	Page            int     `json:"page,omitempty"`
	PageSize        int     `json:"page_size,omitempty"`
	PreviousPageUrl *string `json:"previous_page_url,omitempty"`
	Url             string  `json:"url,omitempty"`
	Key             string  `json:"key,omitempty"`
}

ListConfigurationAddressResponseMeta struct for ListConfigurationAddressResponseMeta

type ListConversationMessageParams

type ListConversationMessageParams struct {
	// The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default.
	Order *string `json:"Order,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConversationMessage'

func (*ListConversationMessageParams) SetLimit added in v0.13.0

func (*ListConversationMessageParams) SetOrder added in v0.14.1

func (*ListConversationMessageParams) SetPageSize

func (params *ListConversationMessageParams) SetPageSize(PageSize int) *ListConversationMessageParams

type ListConversationMessageReceiptParams

type ListConversationMessageReceiptParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConversationMessageReceipt'

func (*ListConversationMessageReceiptParams) SetLimit added in v0.13.0

func (*ListConversationMessageReceiptParams) SetPageSize

type ListConversationMessageReceiptResponse

type ListConversationMessageReceiptResponse struct {
	DeliveryReceipts []ConversationsV1ConversationMessageReceipt `json:"delivery_receipts,omitempty"`
	Meta             ListConfigurationAddressResponseMeta        `json:"meta,omitempty"`
}

ListConversationMessageReceiptResponse struct for ListConversationMessageReceiptResponse

type ListConversationMessageResponse

type ListConversationMessageResponse struct {
	Messages []ConversationsV1ConversationMessage `json:"messages,omitempty"`
	Meta     ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListConversationMessageResponse struct for ListConversationMessageResponse

type ListConversationParams

type ListConversationParams struct {
	// Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
	StartDate *string `json:"StartDate,omitempty"`
	// End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
	EndDate *string `json:"EndDate,omitempty"`
	// State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
	State *string `json:"State,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConversation'

func (*ListConversationParams) SetEndDate added in v1.5.0

func (params *ListConversationParams) SetEndDate(EndDate string) *ListConversationParams

func (*ListConversationParams) SetLimit added in v0.13.0

func (params *ListConversationParams) SetLimit(Limit int) *ListConversationParams

func (*ListConversationParams) SetPageSize

func (params *ListConversationParams) SetPageSize(PageSize int) *ListConversationParams

func (*ListConversationParams) SetStartDate added in v1.5.0

func (params *ListConversationParams) SetStartDate(StartDate string) *ListConversationParams

func (*ListConversationParams) SetState added in v1.5.0

func (params *ListConversationParams) SetState(State string) *ListConversationParams

type ListConversationParticipantParams

type ListConversationParticipantParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConversationParticipant'

func (*ListConversationParticipantParams) SetLimit added in v0.13.0

func (*ListConversationParticipantParams) SetPageSize

type ListConversationParticipantResponse

type ListConversationParticipantResponse struct {
	Participants []ConversationsV1ConversationParticipant `json:"participants,omitempty"`
	Meta         ListConfigurationAddressResponseMeta     `json:"meta,omitempty"`
}

ListConversationParticipantResponse struct for ListConversationParticipantResponse

type ListConversationResponse

type ListConversationResponse struct {
	Conversations []ConversationsV1Conversation        `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListConversationResponse struct for ListConversationResponse

type ListConversationScopedWebhookParams

type ListConversationScopedWebhookParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListConversationScopedWebhook'

func (*ListConversationScopedWebhookParams) SetLimit added in v0.13.0

func (*ListConversationScopedWebhookParams) SetPageSize

type ListConversationScopedWebhookResponse

type ListConversationScopedWebhookResponse struct {
	Webhooks []ConversationsV1ConversationScopedWebhook `json:"webhooks,omitempty"`
	Meta     ListConfigurationAddressResponseMeta       `json:"meta,omitempty"`
}

ListConversationScopedWebhookResponse struct for ListConversationScopedWebhookResponse

type ListCredentialParams

type ListCredentialParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListCredential'

func (*ListCredentialParams) SetLimit added in v0.13.0

func (params *ListCredentialParams) SetLimit(Limit int) *ListCredentialParams

func (*ListCredentialParams) SetPageSize

func (params *ListCredentialParams) SetPageSize(PageSize int) *ListCredentialParams

type ListCredentialResponse

type ListCredentialResponse struct {
	Credentials []ConversationsV1Credential          `json:"credentials,omitempty"`
	Meta        ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListCredentialResponse struct for ListCredentialResponse

type ListParticipantConversationParams added in v0.13.0

type ListParticipantConversationParams struct {
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
	Address *string `json:"Address,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListParticipantConversation'

func (*ListParticipantConversationParams) SetAddress added in v0.13.0

func (*ListParticipantConversationParams) SetIdentity added in v0.13.0

func (*ListParticipantConversationParams) SetLimit added in v0.13.0

func (*ListParticipantConversationParams) SetPageSize added in v0.13.0

type ListParticipantConversationResponse added in v0.13.0

type ListParticipantConversationResponse struct {
	Conversations []ConversationsV1ParticipantConversation `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta     `json:"meta,omitempty"`
}

ListParticipantConversationResponse struct for ListParticipantConversationResponse

type ListRoleParams

type ListRoleParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListRole'

func (*ListRoleParams) SetLimit added in v0.13.0

func (params *ListRoleParams) SetLimit(Limit int) *ListRoleParams

func (*ListRoleParams) SetPageSize

func (params *ListRoleParams) SetPageSize(PageSize int) *ListRoleParams

type ListRoleResponse

type ListRoleResponse struct {
	Roles []ConversationsV1Role                `json:"roles,omitempty"`
	Meta  ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListRoleResponse struct for ListRoleResponse

type ListServiceBindingParams

type ListServiceBindingParams struct {
	// The push technology used by the Binding resources to read.  Can be: `apn`, `gcm`, or `fcm`.  See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
	BindingType *[]string `json:"BindingType,omitempty"`
	// The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
	Identity *[]string `json:"Identity,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceBinding'

func (*ListServiceBindingParams) SetBindingType

func (params *ListServiceBindingParams) SetBindingType(BindingType []string) *ListServiceBindingParams

func (*ListServiceBindingParams) SetIdentity

func (params *ListServiceBindingParams) SetIdentity(Identity []string) *ListServiceBindingParams

func (*ListServiceBindingParams) SetLimit added in v0.13.0

func (params *ListServiceBindingParams) SetLimit(Limit int) *ListServiceBindingParams

func (*ListServiceBindingParams) SetPageSize

func (params *ListServiceBindingParams) SetPageSize(PageSize int) *ListServiceBindingParams

type ListServiceBindingResponse

type ListServiceBindingResponse struct {
	Bindings []ConversationsV1ServiceBinding      `json:"bindings,omitempty"`
	Meta     ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListServiceBindingResponse struct for ListServiceBindingResponse

type ListServiceConversationMessageParams

type ListServiceConversationMessageParams struct {
	// The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending), with `asc` as the default.
	Order *string `json:"Order,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceConversationMessage'

func (*ListServiceConversationMessageParams) SetLimit added in v0.13.0

func (*ListServiceConversationMessageParams) SetOrder added in v0.14.1

func (*ListServiceConversationMessageParams) SetPageSize

type ListServiceConversationMessageReceiptParams

type ListServiceConversationMessageReceiptParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceConversationMessageReceipt'

func (*ListServiceConversationMessageReceiptParams) SetLimit added in v0.13.0

func (*ListServiceConversationMessageReceiptParams) SetPageSize

type ListServiceConversationMessageReceiptResponse

type ListServiceConversationMessageReceiptResponse struct {
	DeliveryReceipts []ConversationsV1ServiceConversationMessageReceipt `json:"delivery_receipts,omitempty"`
	Meta             ListConfigurationAddressResponseMeta               `json:"meta,omitempty"`
}

ListServiceConversationMessageReceiptResponse struct for ListServiceConversationMessageReceiptResponse

type ListServiceConversationMessageResponse

type ListServiceConversationMessageResponse struct {
	Messages []ConversationsV1ServiceConversationMessage `json:"messages,omitempty"`
	Meta     ListConfigurationAddressResponseMeta        `json:"meta,omitempty"`
}

ListServiceConversationMessageResponse struct for ListServiceConversationMessageResponse

type ListServiceConversationParams

type ListServiceConversationParams struct {
	// Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
	StartDate *string `json:"StartDate,omitempty"`
	// End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
	EndDate *string `json:"EndDate,omitempty"`
	// State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
	State *string `json:"State,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceConversation'

func (*ListServiceConversationParams) SetEndDate added in v1.5.0

func (*ListServiceConversationParams) SetLimit added in v0.13.0

func (*ListServiceConversationParams) SetPageSize

func (params *ListServiceConversationParams) SetPageSize(PageSize int) *ListServiceConversationParams

func (*ListServiceConversationParams) SetStartDate added in v1.5.0

func (params *ListServiceConversationParams) SetStartDate(StartDate string) *ListServiceConversationParams

func (*ListServiceConversationParams) SetState added in v1.5.0

type ListServiceConversationParticipantParams

type ListServiceConversationParticipantParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceConversationParticipant'

func (*ListServiceConversationParticipantParams) SetLimit added in v0.13.0

func (*ListServiceConversationParticipantParams) SetPageSize

type ListServiceConversationParticipantResponse

type ListServiceConversationParticipantResponse struct {
	Participants []ConversationsV1ServiceConversationParticipant `json:"participants,omitempty"`
	Meta         ListConfigurationAddressResponseMeta            `json:"meta,omitempty"`
}

ListServiceConversationParticipantResponse struct for ListServiceConversationParticipantResponse

type ListServiceConversationResponse

type ListServiceConversationResponse struct {
	Conversations []ConversationsV1ServiceConversation `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListServiceConversationResponse struct for ListServiceConversationResponse

type ListServiceConversationScopedWebhookParams

type ListServiceConversationScopedWebhookParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceConversationScopedWebhook'

func (*ListServiceConversationScopedWebhookParams) SetLimit added in v0.13.0

func (*ListServiceConversationScopedWebhookParams) SetPageSize

type ListServiceConversationScopedWebhookResponse

type ListServiceConversationScopedWebhookResponse struct {
	Webhooks []ConversationsV1ServiceConversationScopedWebhook `json:"webhooks,omitempty"`
	Meta     ListConfigurationAddressResponseMeta              `json:"meta,omitempty"`
}

ListServiceConversationScopedWebhookResponse struct for ListServiceConversationScopedWebhookResponse

type ListServiceParams

type ListServiceParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListService'

func (*ListServiceParams) SetLimit added in v0.13.0

func (params *ListServiceParams) SetLimit(Limit int) *ListServiceParams

func (*ListServiceParams) SetPageSize

func (params *ListServiceParams) SetPageSize(PageSize int) *ListServiceParams

type ListServiceParticipantConversationParams added in v0.13.0

type ListServiceParticipantConversationParams struct {
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// A unique string identifier for the conversation participant who's not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded.
	Address *string `json:"Address,omitempty"`
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceParticipantConversation'

func (*ListServiceParticipantConversationParams) SetAddress added in v0.13.0

func (*ListServiceParticipantConversationParams) SetIdentity added in v0.13.0

func (*ListServiceParticipantConversationParams) SetLimit added in v0.13.0

func (*ListServiceParticipantConversationParams) SetPageSize added in v0.13.0

type ListServiceParticipantConversationResponse added in v0.13.0

type ListServiceParticipantConversationResponse struct {
	Conversations []ConversationsV1ServiceParticipantConversation `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta            `json:"meta,omitempty"`
}

ListServiceParticipantConversationResponse struct for ListServiceParticipantConversationResponse

type ListServiceResponse

type ListServiceResponse struct {
	Services []ConversationsV1Service             `json:"services,omitempty"`
	Meta     ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListServiceResponse struct for ListServiceResponse

type ListServiceRoleParams

type ListServiceRoleParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceRole'

func (*ListServiceRoleParams) SetLimit added in v0.13.0

func (params *ListServiceRoleParams) SetLimit(Limit int) *ListServiceRoleParams

func (*ListServiceRoleParams) SetPageSize

func (params *ListServiceRoleParams) SetPageSize(PageSize int) *ListServiceRoleParams

type ListServiceRoleResponse

type ListServiceRoleResponse struct {
	Roles []ConversationsV1ServiceRole         `json:"roles,omitempty"`
	Meta  ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListServiceRoleResponse struct for ListServiceRoleResponse

type ListServiceUserConversationParams added in v0.12.0

type ListServiceUserConversationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceUserConversation'

func (*ListServiceUserConversationParams) SetLimit added in v0.13.0

func (*ListServiceUserConversationParams) SetPageSize added in v0.12.0

type ListServiceUserConversationResponse added in v0.12.0

type ListServiceUserConversationResponse struct {
	Conversations []ConversationsV1ServiceUserConversation `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta     `json:"meta,omitempty"`
}

ListServiceUserConversationResponse struct for ListServiceUserConversationResponse

type ListServiceUserParams

type ListServiceUserParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListServiceUser'

func (*ListServiceUserParams) SetLimit added in v0.13.0

func (params *ListServiceUserParams) SetLimit(Limit int) *ListServiceUserParams

func (*ListServiceUserParams) SetPageSize

func (params *ListServiceUserParams) SetPageSize(PageSize int) *ListServiceUserParams

type ListServiceUserResponse

type ListServiceUserResponse struct {
	Users []ConversationsV1ServiceUser         `json:"users,omitempty"`
	Meta  ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListServiceUserResponse struct for ListServiceUserResponse

type ListUserConversationParams added in v0.12.0

type ListUserConversationParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListUserConversation'

func (*ListUserConversationParams) SetLimit added in v0.13.0

func (*ListUserConversationParams) SetPageSize added in v0.12.0

func (params *ListUserConversationParams) SetPageSize(PageSize int) *ListUserConversationParams

type ListUserConversationResponse added in v0.12.0

type ListUserConversationResponse struct {
	Conversations []ConversationsV1UserConversation    `json:"conversations,omitempty"`
	Meta          ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListUserConversationResponse struct for ListUserConversationResponse

type ListUserParams

type ListUserParams struct {
	// How many resources to return in each list page. The default is 50, and the maximum is 1000.
	PageSize *int `json:"PageSize,omitempty"`
	// Max number of records to return.
	Limit *int `json:"limit,omitempty"`
}

Optional parameters for the method 'ListUser'

func (*ListUserParams) SetLimit added in v0.13.0

func (params *ListUserParams) SetLimit(Limit int) *ListUserParams

func (*ListUserParams) SetPageSize

func (params *ListUserParams) SetPageSize(PageSize int) *ListUserParams

type ListUserResponse

type ListUserResponse struct {
	Users []ConversationsV1User                `json:"users,omitempty"`
	Meta  ListConfigurationAddressResponseMeta `json:"meta,omitempty"`
}

ListUserResponse struct for ListUserResponse

type UpdateConfigurationAddressParams added in v0.21.0

type UpdateConfigurationAddressParams struct {
	// The human-readable name of this configuration, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// Enable/Disable auto-creating conversations for messages to this address
	AutoCreationEnabled *bool `json:"AutoCreation.Enabled,omitempty"`
	//
	AutoCreationType *string `json:"AutoCreation.Type,omitempty"`
	// Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
	AutoCreationConversationServiceSid *string `json:"AutoCreation.ConversationServiceSid,omitempty"`
	// For type `webhook`, the url for the webhook request.
	AutoCreationWebhookUrl *string `json:"AutoCreation.WebhookUrl,omitempty"`
	//
	AutoCreationWebhookMethod *string `json:"AutoCreation.WebhookMethod,omitempty"`
	// The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
	AutoCreationWebhookFilters *[]string `json:"AutoCreation.WebhookFilters,omitempty"`
	// For type `studio`, the studio flow SID where the webhook should be sent to.
	AutoCreationStudioFlowSid *string `json:"AutoCreation.StudioFlowSid,omitempty"`
	// For type `studio`, number of times to retry the webhook request
	AutoCreationStudioRetryCount *int `json:"AutoCreation.StudioRetryCount,omitempty"`
}

Optional parameters for the method 'UpdateConfigurationAddress'

func (*UpdateConfigurationAddressParams) SetAutoCreationConversationServiceSid added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationConversationServiceSid(AutoCreationConversationServiceSid string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationEnabled added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationEnabled(AutoCreationEnabled bool) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationStudioFlowSid added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationStudioFlowSid(AutoCreationStudioFlowSid string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationStudioRetryCount added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationStudioRetryCount(AutoCreationStudioRetryCount int) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationType added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationType(AutoCreationType string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationWebhookFilters added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationWebhookFilters(AutoCreationWebhookFilters []string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationWebhookMethod added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationWebhookMethod(AutoCreationWebhookMethod string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetAutoCreationWebhookUrl added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetAutoCreationWebhookUrl(AutoCreationWebhookUrl string) *UpdateConfigurationAddressParams

func (*UpdateConfigurationAddressParams) SetFriendlyName added in v0.21.0

func (params *UpdateConfigurationAddressParams) SetFriendlyName(FriendlyName string) *UpdateConfigurationAddressParams

type UpdateConfigurationParams

type UpdateConfigurationParams struct {
	// The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation.
	DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"`
	// The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation.
	DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"`
	// Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"`
}

Optional parameters for the method 'UpdateConfiguration'

func (*UpdateConfigurationParams) SetDefaultChatServiceSid

func (params *UpdateConfigurationParams) SetDefaultChatServiceSid(DefaultChatServiceSid string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultClosedTimer

func (params *UpdateConfigurationParams) SetDefaultClosedTimer(DefaultClosedTimer string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultInactiveTimer

func (params *UpdateConfigurationParams) SetDefaultInactiveTimer(DefaultInactiveTimer string) *UpdateConfigurationParams

func (*UpdateConfigurationParams) SetDefaultMessagingServiceSid

func (params *UpdateConfigurationParams) SetDefaultMessagingServiceSid(DefaultMessagingServiceSid string) *UpdateConfigurationParams

type UpdateConfigurationWebhookParams

type UpdateConfigurationWebhookParams struct {
	// The HTTP method to be used when sending a webhook request.
	Method *string `json:"Method,omitempty"`
	// The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
	Filters *[]string `json:"Filters,omitempty"`
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"`
	//
	Target *string `json:"Target,omitempty"`
}

Optional parameters for the method 'UpdateConfigurationWebhook'

func (*UpdateConfigurationWebhookParams) SetFilters

func (*UpdateConfigurationWebhookParams) SetMethod

func (*UpdateConfigurationWebhookParams) SetPostWebhookUrl

func (params *UpdateConfigurationWebhookParams) SetPostWebhookUrl(PostWebhookUrl string) *UpdateConfigurationWebhookParams

func (*UpdateConfigurationWebhookParams) SetPreWebhookUrl

func (params *UpdateConfigurationWebhookParams) SetPreWebhookUrl(PreWebhookUrl string) *UpdateConfigurationWebhookParams

func (*UpdateConfigurationWebhookParams) SetTarget

type UpdateConversationMessageParams

type UpdateConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
}

Optional parameters for the method 'UpdateConversationMessage'

func (*UpdateConversationMessageParams) SetAttributes

func (params *UpdateConversationMessageParams) SetAttributes(Attributes string) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetAuthor

func (*UpdateConversationMessageParams) SetBody

func (*UpdateConversationMessageParams) SetDateCreated

func (params *UpdateConversationMessageParams) SetDateCreated(DateCreated time.Time) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetDateUpdated

func (params *UpdateConversationMessageParams) SetDateUpdated(DateUpdated time.Time) *UpdateConversationMessageParams

func (*UpdateConversationMessageParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationMessageParams

type UpdateConversationParams

type UpdateConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	//
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateConversation'

func (*UpdateConversationParams) SetAttributes

func (params *UpdateConversationParams) SetAttributes(Attributes string) *UpdateConversationParams

func (*UpdateConversationParams) SetDateCreated

func (params *UpdateConversationParams) SetDateCreated(DateCreated time.Time) *UpdateConversationParams

func (*UpdateConversationParams) SetDateUpdated

func (params *UpdateConversationParams) SetDateUpdated(DateUpdated time.Time) *UpdateConversationParams

func (*UpdateConversationParams) SetFriendlyName

func (params *UpdateConversationParams) SetFriendlyName(FriendlyName string) *UpdateConversationParams

func (*UpdateConversationParams) SetMessagingServiceSid

func (params *UpdateConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *UpdateConversationParams

func (*UpdateConversationParams) SetState

func (params *UpdateConversationParams) SetState(State string) *UpdateConversationParams

func (*UpdateConversationParams) SetTimersClosed

func (params *UpdateConversationParams) SetTimersClosed(TimersClosed string) *UpdateConversationParams

func (*UpdateConversationParams) SetTimersInactive

func (params *UpdateConversationParams) SetTimersInactive(TimersInactive string) *UpdateConversationParams

func (*UpdateConversationParams) SetUniqueName

func (params *UpdateConversationParams) SetUniqueName(UniqueName string) *UpdateConversationParams

func (*UpdateConversationParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationParams

type UpdateConversationParticipantParams

type UpdateConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
	// The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int `json:"LastReadMessageIndex,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"`
}

Optional parameters for the method 'UpdateConversationParticipant'

func (*UpdateConversationParticipantParams) SetAttributes

func (*UpdateConversationParticipantParams) SetDateCreated

func (*UpdateConversationParticipantParams) SetDateUpdated

func (*UpdateConversationParticipantParams) SetIdentity

func (*UpdateConversationParticipantParams) SetLastReadMessageIndex

func (params *UpdateConversationParticipantParams) SetLastReadMessageIndex(LastReadMessageIndex int) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetLastReadTimestamp

func (params *UpdateConversationParticipantParams) SetLastReadTimestamp(LastReadTimestamp string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *UpdateConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *UpdateConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *UpdateConversationParticipantParams

func (*UpdateConversationParticipantParams) SetRoleSid

func (*UpdateConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *UpdateConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateConversationParticipantParams

type UpdateConversationScopedWebhookParams

type UpdateConversationScopedWebhookParams struct {
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	//
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
}

Optional parameters for the method 'UpdateConversationScopedWebhook'

func (*UpdateConversationScopedWebhookParams) SetConfigurationFilters

func (params *UpdateConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *UpdateConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationMethod

func (params *UpdateConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationTriggers

func (params *UpdateConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *UpdateConversationScopedWebhookParams

func (*UpdateConversationScopedWebhookParams) SetConfigurationUrl

func (params *UpdateConversationScopedWebhookParams) SetConfigurationUrl(ConfigurationUrl string) *UpdateConversationScopedWebhookParams

type UpdateCredentialParams

type UpdateCredentialParams struct {
	//
	Type *string `json:"Type,omitempty"`
	// A descriptive string that you create to describe the new resource. It can be up to 64 characters long.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// [APN only] The URL encoded representation of the certificate. For example,  `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`.
	Certificate *string `json:"Certificate,omitempty"`
	// [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`.
	PrivateKey *string `json:"PrivateKey,omitempty"`
	// [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production.
	Sandbox *bool `json:"Sandbox,omitempty"`
	// [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential.
	ApiKey *string `json:"ApiKey,omitempty"`
	// [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging.
	Secret *string `json:"Secret,omitempty"`
}

Optional parameters for the method 'UpdateCredential'

func (*UpdateCredentialParams) SetApiKey

func (params *UpdateCredentialParams) SetApiKey(ApiKey string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetCertificate

func (params *UpdateCredentialParams) SetCertificate(Certificate string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetFriendlyName

func (params *UpdateCredentialParams) SetFriendlyName(FriendlyName string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetPrivateKey

func (params *UpdateCredentialParams) SetPrivateKey(PrivateKey string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetSandbox

func (params *UpdateCredentialParams) SetSandbox(Sandbox bool) *UpdateCredentialParams

func (*UpdateCredentialParams) SetSecret

func (params *UpdateCredentialParams) SetSecret(Secret string) *UpdateCredentialParams

func (*UpdateCredentialParams) SetType

func (params *UpdateCredentialParams) SetType(Type string) *UpdateCredentialParams

type UpdateRoleParams

type UpdateRoleParams struct {
	// A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'UpdateRole'

func (*UpdateRoleParams) SetPermission

func (params *UpdateRoleParams) SetPermission(Permission []string) *UpdateRoleParams

type UpdateServiceConfigurationParams

type UpdateServiceConfigurationParams struct {
	// The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"`
	// The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"`
	// The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles.
	DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"`
	// Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`.
	ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"`
}

Optional parameters for the method 'UpdateServiceConfiguration'

func (*UpdateServiceConfigurationParams) SetDefaultChatServiceRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultChatServiceRoleSid(DefaultChatServiceRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetDefaultConversationCreatorRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultConversationCreatorRoleSid(DefaultConversationCreatorRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetDefaultConversationRoleSid

func (params *UpdateServiceConfigurationParams) SetDefaultConversationRoleSid(DefaultConversationRoleSid string) *UpdateServiceConfigurationParams

func (*UpdateServiceConfigurationParams) SetReachabilityEnabled

func (params *UpdateServiceConfigurationParams) SetReachabilityEnabled(ReachabilityEnabled bool) *UpdateServiceConfigurationParams

type UpdateServiceConversationMessageParams

type UpdateServiceConversationMessageParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The channel specific identifier of the message's author. Defaults to `system`.
	Author *string `json:"Author,omitempty"`
	// The content of the message, can be up to 1,600 characters long.
	Body *string `json:"Body,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated. `null` if the message has not been edited.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationMessage'

func (*UpdateServiceConversationMessageParams) SetAttributes

func (*UpdateServiceConversationMessageParams) SetAuthor

func (*UpdateServiceConversationMessageParams) SetBody

func (*UpdateServiceConversationMessageParams) SetDateCreated

func (*UpdateServiceConversationMessageParams) SetDateUpdated

func (*UpdateServiceConversationMessageParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationMessageParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationMessageParams

type UpdateServiceConversationParams

type UpdateServiceConversationParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The human-readable name of this conversation, limited to 256 characters. Optional.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to.
	MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"`
	//
	State *string `json:"State,omitempty"`
	// ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute.
	TimersInactive *string `json:"Timers.Inactive,omitempty"`
	// ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
	TimersClosed *string `json:"Timers.Closed,omitempty"`
	// An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL.
	UniqueName *string `json:"UniqueName,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversation'

func (*UpdateServiceConversationParams) SetAttributes

func (params *UpdateServiceConversationParams) SetAttributes(Attributes string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetDateCreated

func (params *UpdateServiceConversationParams) SetDateCreated(DateCreated time.Time) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetDateUpdated

func (params *UpdateServiceConversationParams) SetDateUpdated(DateUpdated time.Time) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetFriendlyName

func (params *UpdateServiceConversationParams) SetFriendlyName(FriendlyName string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetMessagingServiceSid

func (params *UpdateServiceConversationParams) SetMessagingServiceSid(MessagingServiceSid string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetState

func (*UpdateServiceConversationParams) SetTimersClosed

func (params *UpdateServiceConversationParams) SetTimersClosed(TimersClosed string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetTimersInactive

func (params *UpdateServiceConversationParams) SetTimersInactive(TimersInactive string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetUniqueName

func (params *UpdateServiceConversationParams) SetUniqueName(UniqueName string) *UpdateServiceConversationParams

func (*UpdateServiceConversationParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationParams

type UpdateServiceConversationParticipantParams

type UpdateServiceConversationParticipantParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The date that this resource was created.
	DateCreated *time.Time `json:"DateCreated,omitempty"`
	// The date that this resource was last updated.
	DateUpdated *time.Time `json:"DateUpdated,omitempty"`
	// A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters.
	Identity *string `json:"Identity,omitempty"`
	// An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified.  **Note** that if the attributes are not set \\\"{}\\\" will be returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
	RoleSid *string `json:"RoleSid,omitempty"`
	// The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it.
	MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"`
	// The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it.
	MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"`
	// Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadMessageIndex *int `json:"LastReadMessageIndex,omitempty"`
	// Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant.
	LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationParticipant'

func (*UpdateServiceConversationParticipantParams) SetAttributes

func (*UpdateServiceConversationParticipantParams) SetDateCreated

func (*UpdateServiceConversationParticipantParams) SetDateUpdated

func (*UpdateServiceConversationParticipantParams) SetIdentity

func (*UpdateServiceConversationParticipantParams) SetLastReadMessageIndex

func (params *UpdateServiceConversationParticipantParams) SetLastReadMessageIndex(LastReadMessageIndex int) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetLastReadTimestamp

func (params *UpdateServiceConversationParticipantParams) SetLastReadTimestamp(LastReadTimestamp string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress

func (params *UpdateServiceConversationParticipantParams) SetMessagingBindingProjectedAddress(MessagingBindingProjectedAddress string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetMessagingBindingProxyAddress

func (params *UpdateServiceConversationParticipantParams) SetMessagingBindingProxyAddress(MessagingBindingProxyAddress string) *UpdateServiceConversationParticipantParams

func (*UpdateServiceConversationParticipantParams) SetRoleSid

func (*UpdateServiceConversationParticipantParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceConversationParticipantParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceConversationParticipantParams

type UpdateServiceConversationScopedWebhookParams

type UpdateServiceConversationScopedWebhookParams struct {
	// The absolute url the webhook request should be sent to.
	ConfigurationUrl *string `json:"Configuration.Url,omitempty"`
	//
	ConfigurationMethod *string `json:"Configuration.Method,omitempty"`
	// The list of events, firing webhook event for this Conversation.
	ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"`
	// The list of keywords, firing webhook event for this Conversation.
	ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"`
	// The studio flow SID, where the webhook should be sent to.
	ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"`
}

Optional parameters for the method 'UpdateServiceConversationScopedWebhook'

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationFilters

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationFilters(ConfigurationFilters []string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationFlowSid

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationFlowSid(ConfigurationFlowSid string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationMethod

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationMethod(ConfigurationMethod string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationTriggers

func (params *UpdateServiceConversationScopedWebhookParams) SetConfigurationTriggers(ConfigurationTriggers []string) *UpdateServiceConversationScopedWebhookParams

func (*UpdateServiceConversationScopedWebhookParams) SetConfigurationUrl

type UpdateServiceNotificationParams

type UpdateServiceNotificationParams struct {
	// Weather the notification logging is enabled.
	LogEnabled *bool `json:"LogEnabled,omitempty"`
	// Whether to send a notification when a new message is added to a conversation. The default is `false`.
	NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"`
	// The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`.
	NewMessageTemplate *string `json:"NewMessage.Template,omitempty"`
	// The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`.
	NewMessageSound *string `json:"NewMessage.Sound,omitempty"`
	// Whether the new message badge is enabled. The default is `false`.
	NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"`
	// Whether to send a notification when a participant is added to a conversation. The default is `false`.
	AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"`
	// The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
	AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"`
	// The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`.
	AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"`
	// Whether to send a notification to a user when they are removed from a conversation. The default is `false`.
	RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"`
	// The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
	RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"`
	// The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`.
	RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"`
	// Whether to send a notification when a new message with media/file attachments is added to a conversation. The default is `false`.
	NewMessageWithMediaEnabled *bool `json:"NewMessage.WithMedia.Enabled,omitempty"`
	// The template to use to create the notification text displayed when a new message with media/file attachments is added to a conversation and `new_message.attachments.enabled` is `true`.
	NewMessageWithMediaTemplate *string `json:"NewMessage.WithMedia.Template,omitempty"`
}

Optional parameters for the method 'UpdateServiceNotification'

func (*UpdateServiceNotificationParams) SetAddedToConversationEnabled

func (params *UpdateServiceNotificationParams) SetAddedToConversationEnabled(AddedToConversationEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetAddedToConversationSound

func (params *UpdateServiceNotificationParams) SetAddedToConversationSound(AddedToConversationSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetAddedToConversationTemplate

func (params *UpdateServiceNotificationParams) SetAddedToConversationTemplate(AddedToConversationTemplate string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetLogEnabled

func (params *UpdateServiceNotificationParams) SetLogEnabled(LogEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageBadgeCountEnabled

func (params *UpdateServiceNotificationParams) SetNewMessageBadgeCountEnabled(NewMessageBadgeCountEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageEnabled

func (params *UpdateServiceNotificationParams) SetNewMessageEnabled(NewMessageEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageSound

func (params *UpdateServiceNotificationParams) SetNewMessageSound(NewMessageSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageTemplate

func (params *UpdateServiceNotificationParams) SetNewMessageTemplate(NewMessageTemplate string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageWithMediaEnabled added in v0.16.0

func (params *UpdateServiceNotificationParams) SetNewMessageWithMediaEnabled(NewMessageWithMediaEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetNewMessageWithMediaTemplate added in v0.16.0

func (params *UpdateServiceNotificationParams) SetNewMessageWithMediaTemplate(NewMessageWithMediaTemplate string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationEnabled

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationEnabled(RemovedFromConversationEnabled bool) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationSound

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationSound(RemovedFromConversationSound string) *UpdateServiceNotificationParams

func (*UpdateServiceNotificationParams) SetRemovedFromConversationTemplate

func (params *UpdateServiceNotificationParams) SetRemovedFromConversationTemplate(RemovedFromConversationTemplate string) *UpdateServiceNotificationParams

type UpdateServiceRoleParams

type UpdateServiceRoleParams struct {
	// A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`.
	Permission *[]string `json:"Permission,omitempty"`
}

Optional parameters for the method 'UpdateServiceRole'

func (*UpdateServiceRoleParams) SetPermission

func (params *UpdateServiceRoleParams) SetPermission(Permission []string) *UpdateServiceRoleParams

type UpdateServiceUserConversationParams added in v0.12.0

type UpdateServiceUserConversationParams struct {
	//
	NotificationLevel *string `json:"NotificationLevel,omitempty"`
	// The date of the last message read in conversation by the user, given in ISO 8601 format.
	LastReadTimestamp *time.Time `json:"LastReadTimestamp,omitempty"`
	// The index of the last Message in the Conversation that the Participant has read.
	LastReadMessageIndex *int `json:"LastReadMessageIndex,omitempty"`
}

Optional parameters for the method 'UpdateServiceUserConversation'

func (*UpdateServiceUserConversationParams) SetLastReadMessageIndex added in v0.12.0

func (params *UpdateServiceUserConversationParams) SetLastReadMessageIndex(LastReadMessageIndex int) *UpdateServiceUserConversationParams

func (*UpdateServiceUserConversationParams) SetLastReadTimestamp added in v0.12.0

func (params *UpdateServiceUserConversationParams) SetLastReadTimestamp(LastReadTimestamp time.Time) *UpdateServiceUserConversationParams

func (*UpdateServiceUserConversationParams) SetNotificationLevel added in v0.12.0

func (params *UpdateServiceUserConversationParams) SetNotificationLevel(NotificationLevel string) *UpdateServiceUserConversationParams

type UpdateServiceUserParams

type UpdateServiceUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateServiceUser'

func (*UpdateServiceUserParams) SetAttributes

func (params *UpdateServiceUserParams) SetAttributes(Attributes string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetFriendlyName

func (params *UpdateServiceUserParams) SetFriendlyName(FriendlyName string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetRoleSid

func (params *UpdateServiceUserParams) SetRoleSid(RoleSid string) *UpdateServiceUserParams

func (*UpdateServiceUserParams) SetXTwilioWebhookEnabled

func (params *UpdateServiceUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateServiceUserParams

type UpdateServiceWebhookConfigurationParams added in v0.18.2

type UpdateServiceWebhookConfigurationParams struct {
	// The absolute url the pre-event webhook request should be sent to.
	PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"`
	// The absolute url the post-event webhook request should be sent to.
	PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"`
	// The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are `onParticipantAdd`, `onParticipantAdded`, `onDeliveryUpdated`, `onConversationUpdated`, `onConversationRemove`, `onParticipantRemove`, `onConversationUpdate`, `onMessageAdd`, `onMessageRemoved`, `onParticipantUpdated`, `onConversationAdded`, `onMessageAdded`, `onConversationAdd`, `onConversationRemoved`, `onParticipantUpdate`, `onMessageRemove`, `onMessageUpdated`, `onParticipantRemoved`, `onMessageUpdate` or `onConversationStateUpdated`.
	Filters *[]string `json:"Filters,omitempty"`
	// The HTTP method to be used when sending a webhook request. One of `GET` or `POST`.
	Method *string `json:"Method,omitempty"`
}

Optional parameters for the method 'UpdateServiceWebhookConfiguration'

func (*UpdateServiceWebhookConfigurationParams) SetFilters added in v0.18.2

func (*UpdateServiceWebhookConfigurationParams) SetMethod added in v0.18.2

func (*UpdateServiceWebhookConfigurationParams) SetPostWebhookUrl added in v0.18.2

func (*UpdateServiceWebhookConfigurationParams) SetPreWebhookUrl added in v0.18.2

type UpdateUserConversationParams added in v0.12.0

type UpdateUserConversationParams struct {
	//
	NotificationLevel *string `json:"NotificationLevel,omitempty"`
	// The date of the last message read in conversation by the user, given in ISO 8601 format.
	LastReadTimestamp *time.Time `json:"LastReadTimestamp,omitempty"`
	// The index of the last Message in the Conversation that the Participant has read.
	LastReadMessageIndex *int `json:"LastReadMessageIndex,omitempty"`
}

Optional parameters for the method 'UpdateUserConversation'

func (*UpdateUserConversationParams) SetLastReadMessageIndex added in v0.12.0

func (params *UpdateUserConversationParams) SetLastReadMessageIndex(LastReadMessageIndex int) *UpdateUserConversationParams

func (*UpdateUserConversationParams) SetLastReadTimestamp added in v0.12.0

func (params *UpdateUserConversationParams) SetLastReadTimestamp(LastReadTimestamp time.Time) *UpdateUserConversationParams

func (*UpdateUserConversationParams) SetNotificationLevel added in v0.12.0

func (params *UpdateUserConversationParams) SetNotificationLevel(NotificationLevel string) *UpdateUserConversationParams

type UpdateUserParams

type UpdateUserParams struct {
	// The X-Twilio-Webhook-Enabled HTTP request header
	XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"`
	// The string that you assigned to describe the resource.
	FriendlyName *string `json:"FriendlyName,omitempty"`
	// The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned.
	Attributes *string `json:"Attributes,omitempty"`
	// The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user.
	RoleSid *string `json:"RoleSid,omitempty"`
}

Optional parameters for the method 'UpdateUser'

func (*UpdateUserParams) SetAttributes

func (params *UpdateUserParams) SetAttributes(Attributes string) *UpdateUserParams

func (*UpdateUserParams) SetFriendlyName

func (params *UpdateUserParams) SetFriendlyName(FriendlyName string) *UpdateUserParams

func (*UpdateUserParams) SetRoleSid

func (params *UpdateUserParams) SetRoleSid(RoleSid string) *UpdateUserParams

func (*UpdateUserParams) SetXTwilioWebhookEnabled

func (params *UpdateUserParams) SetXTwilioWebhookEnabled(XTwilioWebhookEnabled string) *UpdateUserParams

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL