Class: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount
- Defined in:
- lib/safety_kit/models/beta/event_create_params.rb
Defined Under Namespace
Modules: Content, Metadata Classes: Properties, ResourcesUsed
Instance Attribute Summary collapse
-
#content ⇒ Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventImageContent>?
User-authored or user-uploaded content parts.
-
#event_name ⇒ String
Stable, low-cardinality product action name.
-
#metadata ⇒ Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}?
Non-PII product context for filtering, segmentation, and debugging.
-
#properties ⇒ SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties?
Stable, typed account-level facts SafetyKit can use in rules and aggregate analysis.
-
#resources_used ⇒ Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::ResourcesUsed>?
Reusable resources observed during the event.
-
#timestamp ⇒ Time
The time the event occurred in your system, as an ISO 8601 datetime string.
- #type ⇒ Symbol, :update_account
-
#user_id ⇒ String
Your stable canonical identifier for the user or account.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventImageContent)
Instance Method Summary collapse
-
#initialize(account_state: nil, account_types: nil, country: nil, email_verified: nil) ⇒ Object
constructor
Stable, typed account-level facts SafetyKit can use in rules and aggregate analysis.
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(account_state: nil, account_types: nil, country: nil, email_verified: nil) ⇒ Object
Stable, typed account-level facts SafetyKit can use in rules and aggregate analysis.
|
|
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2213
|
Instance Attribute Details
#content ⇒ Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::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.
2185 2186 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2185 optional :content, -> { SafetyKit::Internal::Type::ArrayOf[union: SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content] } |
#event_name ⇒ String
Stable, low-cardinality product action name. Use snake_case and put dynamic values in typed fields, content, resources_used, or metadata.
2160 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2160 required :event_name, String |
#metadata ⇒ Hash{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.
2193 2194 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2193 optional :metadata, -> { SafetyKit::Internal::Type::HashOf[union: SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Metadata] } |
#properties ⇒ SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties?
Stable, typed account-level facts SafetyKit can use in rules and aggregate analysis.
2201 2202 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2201 optional :properties, -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties } |
#resources_used ⇒ Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::ResourcesUsed>?
Reusable resources observed during the event. Use this for emails, phone numbers, names, addresses, social handles, URLs, payment identifiers, or similar identifiers.
2210 2211 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2210 optional :resources_used, -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::ResourcesUsed] } |
#timestamp ⇒ Time
The time the event occurred in your system, as an ISO 8601 datetime string.
2166 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2166 required :timestamp, Time |
#type ⇒ Symbol, :update_account
2171 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2171 required :type, const: :update_account |
#user_id ⇒ String
Your stable canonical identifier for the user or account.
2177 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2177 required :user_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2362
|
.variants ⇒ Array(SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Content::EventImageContent)
|
|
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 2367
|