ExStreamClient.Operations.Chat.Channeltypes (ExStreamClient v0.1.1)
View SourceModules for interacting with the `chat/channeltypes` group of OpenAI APIs
API Reference: https://platform.openai.com/docs/api-reference/chat/channeltypes
Summary
Functions
@spec create_channel_type(ExStreamClient.Model.CreateChannelTypeRequest.t()) :: {:ok, ExStreamClient.Model.CreateChannelTypeResponse.t()} | {:error, any()}
Creates new channel type
### Required Arguments:
- `payload`: CreateChannelTypeRequest
@spec delete_channel_type(String.t()) :: {:ok, ExStreamClient.Model.Response.t()} | {:error, any()}
Deletes channel type
### Required Arguments:
- `name`
@spec get_channel_type(String.t()) :: {:ok, ExStreamClient.Model.GetChannelTypeResponse.t()} | {:error, any()}
Gets channel type
### Required Arguments:
- `name`
@spec list_channel_types() :: {:ok, ExStreamClient.Model.ListChannelTypesResponse.t()} | {:error, any()}
Lists all available channel types
### Required Arguments:
@spec update_channel_type( String.t(), ExStreamClient.Model.UpdateChannelTypeRequest.t() ) :: {:ok, ExStreamClient.Model.UpdateChannelTypeResponse.t()} | {:error, any()}
Updates channel type
### Required Arguments:
- `name`
- `payload`: UpdateChannelTypeRequest