ExStreamClient.Model.ModerationRuleV2Response (ExStreamClient v0.2.0)

Copy Markdown View Source

Schema representing a ModerationRuleV2Response

Summary

Functions

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

Types

t()

@type t() :: %ExStreamClient.Model.ModerationRuleV2Response{
  action: ExStreamClient.Model.RuleBuilderAction.t() | nil,
  action_sequences: [ExStreamClient.Model.CallRuleActionSequence.t()] | nil,
  conditions: [ExStreamClient.Model.RuleBuilderCondition.t()] | nil,
  config_keys: [String.t()],
  cooldown_period: String.t() | nil,
  created_at: DateTime.t() | integer() | String.t(),
  description: String.t(),
  enabled: boolean(),
  groups: [ExStreamClient.Model.RuleBuilderConditionGroup.t()] | nil,
  id: String.t(),
  logic: String.t() | nil,
  name: String.t(),
  rule_type: String.t(),
  team: String.t(),
  updated_at: DateTime.t() | integer() | String.t()
}

Functions

decode(map)

Components could just be enums that are typed - so we need to decode those as enums as they will just be stings

nested_components()