Class: SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/safety_kit/models/beta/event_create_params.rb,
sig/safety_kit/models/beta/event_create_params.rbs

Defined Under Namespace

Modules: Content, Metadata, ResourcesUsed, Type Classes: ClientInfo

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(ip: nil) ⇒ Object

Client context observed by your backend for the user action that triggered the event.

Parameters:

  • ip (String) (defaults to: nil)

    IP address observed by your backend for the client that triggered the event.



# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2611

Instance Attribute Details

#appealed_decision_idString?

Your stable identifier for the moderation decision or enforcement action being appealed, such as the content_id of a moderation_decision event you previously sent.

Parameters:

  • (String)

Returns:

  • (String, nil)


2562
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2562

optional :appealed_decision_id, String

#client_infoSafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::ClientInfo?

Client context observed by your backend for the user action that triggered the event.



2569
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2569

optional :client_info, -> { SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::ClientInfo }

#contentArray<SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::Content::EventImageContent>?

User-authored or user-uploaded content parts. Use this for message bodies, bios, listing text, image URLs, and similar content SafetyKit should compare or analyze.



2577
2578
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2577

optional :content,
-> { SafetyKit::Internal::Type::ArrayOf[union: SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::Content] }

#content_idString?

Your stable identifier for the content involved in this event, such as a message, listing, page, post, profile, or uploaded media item.

Parameters:

  • (String)

Returns:

  • (String, nil)


2585
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2585

optional :content_id, String

#event_nameString

Stable, low-cardinality product action name. Use snake_case and put dynamic values in typed fields, content, resources_used, or metadata.

Parameters:

  • value (String)

Returns:

  • (String)


2537
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2537

required :event_name, String

#idempotency_keyString?

Optional caller-provided key used to make retries of this individual event idempotent. Reuse the same key only for retries of the same logical event.

Parameters:

  • (String)

Returns:

  • (String, nil)


2592
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2592

optional :idempotency_key, String

#metadataHash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}?

Non-PII product context for filtering, segmentation, and debugging. Values may be strings, numbers, booleans, or arrays of those scalar values.

Returns:

  • (Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}, nil)


2599
2600
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2599

optional :metadata,
-> { SafetyKit::Internal::Type::HashOf[union: SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::Metadata] }

#resources_usedArray<SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::ResourcesUsed::EntityIDResource, SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::ResourcesUsed::UnionMember1>?

Reusable resources observed during the event. Use this for emails, phone numbers, names, addresses, social handles, URLs, payment identifiers, caller-defined ids, or similar identifiers.



2608
2609
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2608

optional :resources_used,
-> { SafetyKit::Internal::Type::ArrayOf[union: SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::ResourcesUsed] }

#timestampTime

The time the event occurred in your system, as an ISO 8601 datetime string.

Parameters:

  • value (Time)

Returns:

  • (Time)


2543
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2543

required :timestamp, Time

#typeSymbol, SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::Type

Parameters:

  • value (SafetyKit::Models::Beta::EventCreateParams::Body::AppealEventRequest::type_)

Returns:



2548
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2548

required :type, enum: -> { SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::Type }

#user_idString

Your stable canonical identifier for the user or account.

Parameters:

  • value (String)

Returns:

  • (String)


2554
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2554

required :user_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2648

Instance Method Details

#to_hash{

Returns:

  • ({)


2052
# File 'sig/safety_kit/models/beta/event_create_params.rbs', line 2052

def to_hash: -> {