Modules for interacting with the chat/retention_policy group of Stream APIs
API Reference: https://getstream.github.io/protocol/?urls.primaryName=Chat%20v2
Shared options
All functions in this module accept the following optional parameters:
api_key- API key to use. If not provided, the default key from config will be usedauthenticate_as_user- User id to authenticate. If not provided, the server key will be usedapi_key_secret- API key secret to use. If not provided, the default secret from config will be usedendpoint- endpoint to use. If not provided, the default endpoint from config will be usedclient- HTTP client to use. Must implementExStreamClient.Http.Behavior. Defaults toExStreamClient.Httpreq_opts- all of these options will be forwarded to req. SeeReq.new/1for available options
Summary
Functions
Removes a retention policy for the app. Server-side only.
Returns all retention policies configured for the app. Server-side only.
Returns filtered and sorted retention cleanup run history for the app. Supports filter_conditions on 'policy' (possible values: 'old-messages', 'inactive-channels') and 'date' fields. Server-side only.
Creates or updates a retention policy for the app. Server-side only.
Types
Functions
@spec delete_retention_policy( ExStreamClient.Model.DeleteRetentionPolicyRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.DeleteRetentionPolicyResponse.t()} | {:error, any()}
Removes a retention policy for the app. Server-side only.
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec get_retention_policy(shared_opts()) :: {:ok, ExStreamClient.Model.GetRetentionPolicyResponse.t()} | {:error, any()}
Returns all retention policies configured for the app. Server-side only.
Optional Arguments:
- All options from Shared Options are supported.
@spec get_retention_policy_runs( ExStreamClient.Model.GetRetentionPolicyRunsRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.GetRetentionPolicyRunsResponse.t()} | {:error, any()}
Returns filtered and sorted retention cleanup run history for the app. Supports filter_conditions on 'policy' (possible values: 'old-messages', 'inactive-channels') and 'date' fields. Server-side only.
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.
@spec set_retention_policy( ExStreamClient.Model.SetRetentionPolicyRequest.t(), shared_opts() ) :: {:ok, ExStreamClient.Model.SetRetentionPolicyResponse.t()} | {:error, any()}
Creates or updates a retention policy for the app. Server-side only.
Required Arguments:
Optional Arguments:
- All options from Shared Options are supported.