Twilio.Conversations.V2.ControlPlane.ConfigurationService (twilio_elixir v0.1.3)

Copy Markdown View Source

Service for Configuration API operations.

Operations: list, create, fetch, delete

Summary

Functions

Create a new Configuration

Delete a Configuration

Retrieve a Configuration.

Retrieve a list of Configurations.

Stream: Retrieve a list of Configurations. (lazy auto-pagination).

Functions

create(client, params \\ %{}, opts \\ [])

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Conversations.V2.ControlPlane.Configuration.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Create a new Configuration

Operation: CreateConfiguration | Tags: ConversationsV2Configuration

Required Parameters

ParameterTypeDescription

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

conversationGroupingTypestringThe strategy Conversation Orchestrator uses to assign communications to conversations. Values: GROUP_BY_PROFILE, GROUP_BY_PARTICIPANT_ADDRESSES, GROUP_BY_PARTICIPANT_ADDRESSES_AND_CHANNEL_TYPE
descriptionstringHuman-readable description for the configuration.
displayNamestringA human-readable name for the configuration. Limited to 32 characters.
memoryStoreIdstringThe memory store ID that Conversation Orchestrator uses for profile resolution.

Optional Parameters

ParameterTypeDescription
channelSettingsobject
intelligenceConfigurationIdsarrayA list of Conversational Intelligence configuration IDs.

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

memoryExtractionEnabledbooleanWhether memory extraction is enabled for conversations under this configuration. Defaults to false.
statusCallbacksarrayA list of webhook configurations.

delete(client, sid, opts \\ [])

@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}

Delete a Configuration

Operation: DeleteConfiguration | Tags: ConversationsV2Configuration

fetch(client, sid, opts \\ [])

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Conversations.V2.ControlPlane.Configuration.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Retrieve a Configuration.

Operation: FetchConfiguration | Tags: ConversationsV2Configuration

list(client, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Retrieve a list of Configurations.

Operation: ListConfiguration | Tags: ConversationsV2Configuration

Query Parameters

ParameterTypeDescription
pageSizeintegerMaximum number of items to return in a single response
pageTokenstringA URL-safe, base64-encoded token representing the page of results to return
memoryStoreIdstringFilter configurations by Memory Store ID

stream(client, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()

Stream: Retrieve a list of Configurations. (lazy auto-pagination).