Class: ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item
- Defined in:
- lib/moderation_api/models/webhook_event.rb,
sig/moderation_api/models/webhook_event.rbs
Overview
Defined Under Namespace
Modules: Content, MetaType Classes: ClientAction, Label
Instance Attribute Summary collapse
-
#author_id ⇒ String?
External author ID (the customer's identifier, not Moderation API's internal id).
-
#channel_key ⇒ String?
The channel the content was submitted to, identified by your customer-defined channel key.
-
#client_action ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction?
A recommendation from your own client-side flagging.
-
#content ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Text, ...
The original content payload.
-
#conversation_id ⇒ String?
Conversation grouping ID, if any.
-
#flagged ⇒ Boolean?
Whether the content was flagged by moderation.
-
#flagged_fields ⇒ Array<String>
For object content, the field keys (e.g. "bio") that triggered a flag.
-
#id ⇒ String
Content ID from your system.
-
#labels ⇒ Array<ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Label>?
Moderation labels applied to the content.
-
#language ⇒ String?
Detected ISO language code, if available.
-
#meta_type ⇒ Symbol, ...
High-level content type (e.g. message, post, comment).
-
#metadata ⇒ Hash{Symbol=>Object}?
Arbitrary key/value metadata.
-
#timestamp ⇒ Time
ISO 8601 timestamp of when the content was submitted.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Text, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Image, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Video, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Audio, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Object)
Instance Method Summary collapse
- #initialize(brand:, method_:) ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(brand:, method_:) ⇒ Object
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5005
|
Instance Attribute Details
#author_id ⇒ String?
External author ID (the customer's identifier, not Moderation API's internal id)
4918 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4918 required :author_id, String, nil?: true |
#channel_key ⇒ String?
The channel the content was submitted to, identified by your customer-defined channel key.
4925 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4925 required :channel_key, String, nil?: true |
#client_action ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction?
A recommendation from your own client-side flagging.
4931 4932 4933 4934 4935 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4931 required :client_action, -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::ClientAction }, nil?: true |
#content ⇒ ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Text, ...
The original content payload
4941 4942 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4941 required :content, union: -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::Content } |
#conversation_id ⇒ String?
Conversation grouping ID, if any
4948 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4948 required :conversation_id, String, nil?: true |
#flagged ⇒ Boolean?
Whether the content was flagged by moderation
4954 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4954 required :flagged, ModerationAPI::Internal::Type::Boolean, nil?: true |
#flagged_fields ⇒ Array<String>
For object content, the field keys (e.g. "bio") that triggered a flag. Empty when no fields were flagged or the content is not an object.
4961 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4961 required :flagged_fields, ModerationAPI::Internal::Type::ArrayOf[String] |
#id ⇒ String
Content ID from your system
4912 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4912 required :id, String |
#labels ⇒ Array<ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Label>?
Moderation labels applied to the content
4967 4968 4969 4970 4971 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4967 required :labels, -> { ModerationAPI::Internal::Type::ArrayOf[ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::Label] }, nil?: true |
#language ⇒ String?
Detected ISO language code, if available
4977 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4977 required :language, String, nil?: true |
#meta_type ⇒ Symbol, ...
High-level content type (e.g. message, post, comment). Defaults to the channel's
configured content type but can be overridden per request via the moderation API
type field.
4985 4986 4987 4988 4989 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4985 required :meta_type, enum: -> { ModerationAPI::WebhookEvent::QueueItemRejected::Data::Object::Item::MetaType }, nil?: true |
#metadata ⇒ Hash{Symbol=>Object}?
Arbitrary key/value metadata. Top-level keys are strings.
4995 4996 4997 |
# File 'lib/moderation_api/models/webhook_event.rb', line 4995 required :metadata, ModerationAPI::Internal::Type::HashOf[ModerationAPI::Internal::Type::Unknown], nil?: true |
#timestamp ⇒ Time
ISO 8601 timestamp of when the content was submitted
5003 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5003 required :timestamp, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5106
|
.variants ⇒ Array(ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Text, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Image, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Video, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Audio, ModerationAPI::Models::WebhookEvent::QueueItemRejected::Data::Object::Item::Content::Object)
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5354
|
Instance Method Details
#to_hash ⇒ {
3799 |
# File 'sig/moderation_api/models/webhook_event.rbs', line 3799
def to_hash: -> {
|