safetykit 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/beta/event_create_params.rb +4 -200
- data/lib/safety_kit/models/client_session_create_session_params.rb +74 -13
- data/lib/safety_kit/resources/client_sessions.rb +11 -7
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +0 -396
- data/rbi/safety_kit/models/client_session_create_session_params.rbi +157 -20
- data/rbi/safety_kit/resources/client_sessions.rbi +14 -8
- data/sig/safety_kit/models/beta/event_create_params.rbs +0 -196
- data/sig/safety_kit/models/client_session_create_session_params.rbs +59 -11
- data/sig/safety_kit/resources/client_sessions.rbs +1 -2
- metadata +1 -1
|
@@ -1402,25 +1402,6 @@ module SafetyKit
|
|
|
1402
1402
|
end
|
|
1403
1403
|
attr_writer :metadata
|
|
1404
1404
|
|
|
1405
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
1406
|
-
# analysis.
|
|
1407
|
-
sig do
|
|
1408
|
-
returns(
|
|
1409
|
-
T.nilable(
|
|
1410
|
-
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Properties
|
|
1411
|
-
)
|
|
1412
|
-
)
|
|
1413
|
-
end
|
|
1414
|
-
attr_reader :properties
|
|
1415
|
-
|
|
1416
|
-
sig do
|
|
1417
|
-
params(
|
|
1418
|
-
properties:
|
|
1419
|
-
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Properties::OrHash
|
|
1420
|
-
).void
|
|
1421
|
-
end
|
|
1422
|
-
attr_writer :properties
|
|
1423
|
-
|
|
1424
1405
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
1425
1406
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
1426
1407
|
# identifiers.
|
|
@@ -1465,8 +1446,6 @@ module SafetyKit
|
|
|
1465
1446
|
Symbol,
|
|
1466
1447
|
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Metadata::Variants
|
|
1467
1448
|
],
|
|
1468
|
-
properties:
|
|
1469
|
-
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Properties::OrHash,
|
|
1470
1449
|
resources_used:
|
|
1471
1450
|
T::Array[
|
|
1472
1451
|
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed::OrHash
|
|
@@ -1489,9 +1468,6 @@ module SafetyKit
|
|
|
1489
1468
|
# Non-PII product context for filtering, segmentation, and debugging. Values may
|
|
1490
1469
|
# be strings, numbers, booleans, or arrays of those scalar values.
|
|
1491
1470
|
metadata: nil,
|
|
1492
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
1493
|
-
# analysis.
|
|
1494
|
-
properties: nil,
|
|
1495
1471
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
1496
1472
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
1497
1473
|
# identifiers.
|
|
@@ -1519,8 +1495,6 @@ module SafetyKit
|
|
|
1519
1495
|
Symbol,
|
|
1520
1496
|
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Metadata::Variants
|
|
1521
1497
|
],
|
|
1522
|
-
properties:
|
|
1523
|
-
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Properties,
|
|
1524
1498
|
resources_used:
|
|
1525
1499
|
T::Array[
|
|
1526
1500
|
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed
|
|
@@ -1910,79 +1884,6 @@ module SafetyKit
|
|
|
1910
1884
|
)
|
|
1911
1885
|
end
|
|
1912
1886
|
|
|
1913
|
-
class Properties < SafetyKit::Internal::Type::BaseModel
|
|
1914
|
-
OrHash =
|
|
1915
|
-
T.type_alias do
|
|
1916
|
-
T.any(
|
|
1917
|
-
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::Properties,
|
|
1918
|
-
SafetyKit::Internal::AnyHash
|
|
1919
|
-
)
|
|
1920
|
-
end
|
|
1921
|
-
|
|
1922
|
-
# Current account lifecycle or moderation state.
|
|
1923
|
-
sig { returns(T.nilable(String)) }
|
|
1924
|
-
attr_reader :account_state
|
|
1925
|
-
|
|
1926
|
-
sig { params(account_state: String).void }
|
|
1927
|
-
attr_writer :account_state
|
|
1928
|
-
|
|
1929
|
-
# Stable account categories in your product.
|
|
1930
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
1931
|
-
attr_reader :account_types
|
|
1932
|
-
|
|
1933
|
-
sig { params(account_types: T::Array[String]).void }
|
|
1934
|
-
attr_writer :account_types
|
|
1935
|
-
|
|
1936
|
-
# Country associated with the account.
|
|
1937
|
-
sig { returns(T.nilable(String)) }
|
|
1938
|
-
attr_reader :country
|
|
1939
|
-
|
|
1940
|
-
sig { params(country: String).void }
|
|
1941
|
-
attr_writer :country
|
|
1942
|
-
|
|
1943
|
-
# Whether the account's email address has been verified.
|
|
1944
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1945
|
-
attr_reader :email_verified
|
|
1946
|
-
|
|
1947
|
-
sig { params(email_verified: T::Boolean).void }
|
|
1948
|
-
attr_writer :email_verified
|
|
1949
|
-
|
|
1950
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
1951
|
-
# analysis.
|
|
1952
|
-
sig do
|
|
1953
|
-
params(
|
|
1954
|
-
account_state: String,
|
|
1955
|
-
account_types: T::Array[String],
|
|
1956
|
-
country: String,
|
|
1957
|
-
email_verified: T::Boolean
|
|
1958
|
-
).returns(T.attached_class)
|
|
1959
|
-
end
|
|
1960
|
-
def self.new(
|
|
1961
|
-
# Current account lifecycle or moderation state.
|
|
1962
|
-
account_state: nil,
|
|
1963
|
-
# Stable account categories in your product.
|
|
1964
|
-
account_types: nil,
|
|
1965
|
-
# Country associated with the account.
|
|
1966
|
-
country: nil,
|
|
1967
|
-
# Whether the account's email address has been verified.
|
|
1968
|
-
email_verified: nil
|
|
1969
|
-
)
|
|
1970
|
-
end
|
|
1971
|
-
|
|
1972
|
-
sig do
|
|
1973
|
-
override.returns(
|
|
1974
|
-
{
|
|
1975
|
-
account_state: String,
|
|
1976
|
-
account_types: T::Array[String],
|
|
1977
|
-
country: String,
|
|
1978
|
-
email_verified: T::Boolean
|
|
1979
|
-
}
|
|
1980
|
-
)
|
|
1981
|
-
end
|
|
1982
|
-
def to_hash
|
|
1983
|
-
end
|
|
1984
|
-
end
|
|
1985
|
-
|
|
1986
1887
|
class ResourcesUsed < SafetyKit::Internal::Type::BaseModel
|
|
1987
1888
|
OrHash =
|
|
1988
1889
|
T.type_alias do
|
|
@@ -2107,25 +2008,6 @@ module SafetyKit
|
|
|
2107
2008
|
end
|
|
2108
2009
|
attr_writer :metadata
|
|
2109
2010
|
|
|
2110
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
2111
|
-
# analysis.
|
|
2112
|
-
sig do
|
|
2113
|
-
returns(
|
|
2114
|
-
T.nilable(
|
|
2115
|
-
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Properties
|
|
2116
|
-
)
|
|
2117
|
-
)
|
|
2118
|
-
end
|
|
2119
|
-
attr_reader :properties
|
|
2120
|
-
|
|
2121
|
-
sig do
|
|
2122
|
-
params(
|
|
2123
|
-
properties:
|
|
2124
|
-
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Properties::OrHash
|
|
2125
|
-
).void
|
|
2126
|
-
end
|
|
2127
|
-
attr_writer :properties
|
|
2128
|
-
|
|
2129
2011
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
2130
2012
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
2131
2013
|
# identifiers.
|
|
@@ -2171,8 +2053,6 @@ module SafetyKit
|
|
|
2171
2053
|
Symbol,
|
|
2172
2054
|
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Metadata::Variants
|
|
2173
2055
|
],
|
|
2174
|
-
properties:
|
|
2175
|
-
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Properties::OrHash,
|
|
2176
2056
|
resources_used:
|
|
2177
2057
|
T::Array[
|
|
2178
2058
|
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed::OrHash
|
|
@@ -2195,9 +2075,6 @@ module SafetyKit
|
|
|
2195
2075
|
# Non-PII product context for filtering, segmentation, and debugging. Values may
|
|
2196
2076
|
# be strings, numbers, booleans, or arrays of those scalar values.
|
|
2197
2077
|
metadata: nil,
|
|
2198
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
2199
|
-
# analysis.
|
|
2200
|
-
properties: nil,
|
|
2201
2078
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
2202
2079
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
2203
2080
|
# identifiers.
|
|
@@ -2225,8 +2102,6 @@ module SafetyKit
|
|
|
2225
2102
|
Symbol,
|
|
2226
2103
|
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Metadata::Variants
|
|
2227
2104
|
],
|
|
2228
|
-
properties:
|
|
2229
|
-
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Properties,
|
|
2230
2105
|
resources_used:
|
|
2231
2106
|
T::Array[
|
|
2232
2107
|
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed
|
|
@@ -2616,79 +2491,6 @@ module SafetyKit
|
|
|
2616
2491
|
)
|
|
2617
2492
|
end
|
|
2618
2493
|
|
|
2619
|
-
class Properties < SafetyKit::Internal::Type::BaseModel
|
|
2620
|
-
OrHash =
|
|
2621
|
-
T.type_alias do
|
|
2622
|
-
T.any(
|
|
2623
|
-
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Properties,
|
|
2624
|
-
SafetyKit::Internal::AnyHash
|
|
2625
|
-
)
|
|
2626
|
-
end
|
|
2627
|
-
|
|
2628
|
-
# Current account lifecycle or moderation state.
|
|
2629
|
-
sig { returns(T.nilable(String)) }
|
|
2630
|
-
attr_reader :account_state
|
|
2631
|
-
|
|
2632
|
-
sig { params(account_state: String).void }
|
|
2633
|
-
attr_writer :account_state
|
|
2634
|
-
|
|
2635
|
-
# Stable account categories in your product.
|
|
2636
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
2637
|
-
attr_reader :account_types
|
|
2638
|
-
|
|
2639
|
-
sig { params(account_types: T::Array[String]).void }
|
|
2640
|
-
attr_writer :account_types
|
|
2641
|
-
|
|
2642
|
-
# Country associated with the account.
|
|
2643
|
-
sig { returns(T.nilable(String)) }
|
|
2644
|
-
attr_reader :country
|
|
2645
|
-
|
|
2646
|
-
sig { params(country: String).void }
|
|
2647
|
-
attr_writer :country
|
|
2648
|
-
|
|
2649
|
-
# Whether the account's email address has been verified.
|
|
2650
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
2651
|
-
attr_reader :email_verified
|
|
2652
|
-
|
|
2653
|
-
sig { params(email_verified: T::Boolean).void }
|
|
2654
|
-
attr_writer :email_verified
|
|
2655
|
-
|
|
2656
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
2657
|
-
# analysis.
|
|
2658
|
-
sig do
|
|
2659
|
-
params(
|
|
2660
|
-
account_state: String,
|
|
2661
|
-
account_types: T::Array[String],
|
|
2662
|
-
country: String,
|
|
2663
|
-
email_verified: T::Boolean
|
|
2664
|
-
).returns(T.attached_class)
|
|
2665
|
-
end
|
|
2666
|
-
def self.new(
|
|
2667
|
-
# Current account lifecycle or moderation state.
|
|
2668
|
-
account_state: nil,
|
|
2669
|
-
# Stable account categories in your product.
|
|
2670
|
-
account_types: nil,
|
|
2671
|
-
# Country associated with the account.
|
|
2672
|
-
country: nil,
|
|
2673
|
-
# Whether the account's email address has been verified.
|
|
2674
|
-
email_verified: nil
|
|
2675
|
-
)
|
|
2676
|
-
end
|
|
2677
|
-
|
|
2678
|
-
sig do
|
|
2679
|
-
override.returns(
|
|
2680
|
-
{
|
|
2681
|
-
account_state: String,
|
|
2682
|
-
account_types: T::Array[String],
|
|
2683
|
-
country: String,
|
|
2684
|
-
email_verified: T::Boolean
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
end
|
|
2688
|
-
def to_hash
|
|
2689
|
-
end
|
|
2690
|
-
end
|
|
2691
|
-
|
|
2692
2494
|
class ResourcesUsed < SafetyKit::Internal::Type::BaseModel
|
|
2693
2495
|
OrHash =
|
|
2694
2496
|
T.type_alias do
|
|
@@ -3960,25 +3762,6 @@ module SafetyKit
|
|
|
3960
3762
|
end
|
|
3961
3763
|
attr_writer :metadata
|
|
3962
3764
|
|
|
3963
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
3964
|
-
# analysis.
|
|
3965
|
-
sig do
|
|
3966
|
-
returns(
|
|
3967
|
-
T.nilable(
|
|
3968
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Properties
|
|
3969
|
-
)
|
|
3970
|
-
)
|
|
3971
|
-
end
|
|
3972
|
-
attr_reader :properties
|
|
3973
|
-
|
|
3974
|
-
sig do
|
|
3975
|
-
params(
|
|
3976
|
-
properties:
|
|
3977
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Properties::OrHash
|
|
3978
|
-
).void
|
|
3979
|
-
end
|
|
3980
|
-
attr_writer :properties
|
|
3981
|
-
|
|
3982
3765
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
3983
3766
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
3984
3767
|
# identifiers.
|
|
@@ -4021,8 +3804,6 @@ module SafetyKit
|
|
|
4021
3804
|
Symbol,
|
|
4022
3805
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Metadata::Variants
|
|
4023
3806
|
],
|
|
4024
|
-
properties:
|
|
4025
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Properties::OrHash,
|
|
4026
3807
|
resources_used:
|
|
4027
3808
|
T::Array[
|
|
4028
3809
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::ResourcesUsed::OrHash
|
|
@@ -4045,9 +3826,6 @@ module SafetyKit
|
|
|
4045
3826
|
# Non-PII product context for filtering, segmentation, and debugging. Values may
|
|
4046
3827
|
# be strings, numbers, booleans, or arrays of those scalar values.
|
|
4047
3828
|
metadata: nil,
|
|
4048
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
4049
|
-
# analysis.
|
|
4050
|
-
properties: nil,
|
|
4051
3829
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
4052
3830
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
4053
3831
|
# identifiers.
|
|
@@ -4075,8 +3853,6 @@ module SafetyKit
|
|
|
4075
3853
|
Symbol,
|
|
4076
3854
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Metadata::Variants
|
|
4077
3855
|
],
|
|
4078
|
-
properties:
|
|
4079
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Properties,
|
|
4080
3856
|
resources_used:
|
|
4081
3857
|
T::Array[
|
|
4082
3858
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::ResourcesUsed
|
|
@@ -4437,79 +4213,6 @@ module SafetyKit
|
|
|
4437
4213
|
)
|
|
4438
4214
|
end
|
|
4439
4215
|
|
|
4440
|
-
class Properties < SafetyKit::Internal::Type::BaseModel
|
|
4441
|
-
OrHash =
|
|
4442
|
-
T.type_alias do
|
|
4443
|
-
T.any(
|
|
4444
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::CreateAccount::Properties,
|
|
4445
|
-
SafetyKit::Internal::AnyHash
|
|
4446
|
-
)
|
|
4447
|
-
end
|
|
4448
|
-
|
|
4449
|
-
# Current account lifecycle or moderation state.
|
|
4450
|
-
sig { returns(T.nilable(String)) }
|
|
4451
|
-
attr_reader :account_state
|
|
4452
|
-
|
|
4453
|
-
sig { params(account_state: String).void }
|
|
4454
|
-
attr_writer :account_state
|
|
4455
|
-
|
|
4456
|
-
# Stable account categories in your product.
|
|
4457
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
4458
|
-
attr_reader :account_types
|
|
4459
|
-
|
|
4460
|
-
sig { params(account_types: T::Array[String]).void }
|
|
4461
|
-
attr_writer :account_types
|
|
4462
|
-
|
|
4463
|
-
# Country associated with the account.
|
|
4464
|
-
sig { returns(T.nilable(String)) }
|
|
4465
|
-
attr_reader :country
|
|
4466
|
-
|
|
4467
|
-
sig { params(country: String).void }
|
|
4468
|
-
attr_writer :country
|
|
4469
|
-
|
|
4470
|
-
# Whether the account's email address has been verified.
|
|
4471
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
4472
|
-
attr_reader :email_verified
|
|
4473
|
-
|
|
4474
|
-
sig { params(email_verified: T::Boolean).void }
|
|
4475
|
-
attr_writer :email_verified
|
|
4476
|
-
|
|
4477
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
4478
|
-
# analysis.
|
|
4479
|
-
sig do
|
|
4480
|
-
params(
|
|
4481
|
-
account_state: String,
|
|
4482
|
-
account_types: T::Array[String],
|
|
4483
|
-
country: String,
|
|
4484
|
-
email_verified: T::Boolean
|
|
4485
|
-
).returns(T.attached_class)
|
|
4486
|
-
end
|
|
4487
|
-
def self.new(
|
|
4488
|
-
# Current account lifecycle or moderation state.
|
|
4489
|
-
account_state: nil,
|
|
4490
|
-
# Stable account categories in your product.
|
|
4491
|
-
account_types: nil,
|
|
4492
|
-
# Country associated with the account.
|
|
4493
|
-
country: nil,
|
|
4494
|
-
# Whether the account's email address has been verified.
|
|
4495
|
-
email_verified: nil
|
|
4496
|
-
)
|
|
4497
|
-
end
|
|
4498
|
-
|
|
4499
|
-
sig do
|
|
4500
|
-
override.returns(
|
|
4501
|
-
{
|
|
4502
|
-
account_state: String,
|
|
4503
|
-
account_types: T::Array[String],
|
|
4504
|
-
country: String,
|
|
4505
|
-
email_verified: T::Boolean
|
|
4506
|
-
}
|
|
4507
|
-
)
|
|
4508
|
-
end
|
|
4509
|
-
def to_hash
|
|
4510
|
-
end
|
|
4511
|
-
end
|
|
4512
|
-
|
|
4513
4216
|
class ResourcesUsed < SafetyKit::Internal::Type::BaseModel
|
|
4514
4217
|
OrHash =
|
|
4515
4218
|
T.type_alias do
|
|
@@ -4630,25 +4333,6 @@ module SafetyKit
|
|
|
4630
4333
|
end
|
|
4631
4334
|
attr_writer :metadata
|
|
4632
4335
|
|
|
4633
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
4634
|
-
# analysis.
|
|
4635
|
-
sig do
|
|
4636
|
-
returns(
|
|
4637
|
-
T.nilable(
|
|
4638
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties
|
|
4639
|
-
)
|
|
4640
|
-
)
|
|
4641
|
-
end
|
|
4642
|
-
attr_reader :properties
|
|
4643
|
-
|
|
4644
|
-
sig do
|
|
4645
|
-
params(
|
|
4646
|
-
properties:
|
|
4647
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties::OrHash
|
|
4648
|
-
).void
|
|
4649
|
-
end
|
|
4650
|
-
attr_writer :properties
|
|
4651
|
-
|
|
4652
4336
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
4653
4337
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
4654
4338
|
# identifiers.
|
|
@@ -4692,8 +4376,6 @@ module SafetyKit
|
|
|
4692
4376
|
Symbol,
|
|
4693
4377
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Metadata::Variants
|
|
4694
4378
|
],
|
|
4695
|
-
properties:
|
|
4696
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties::OrHash,
|
|
4697
4379
|
resources_used:
|
|
4698
4380
|
T::Array[
|
|
4699
4381
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::ResourcesUsed::OrHash
|
|
@@ -4716,9 +4398,6 @@ module SafetyKit
|
|
|
4716
4398
|
# Non-PII product context for filtering, segmentation, and debugging. Values may
|
|
4717
4399
|
# be strings, numbers, booleans, or arrays of those scalar values.
|
|
4718
4400
|
metadata: nil,
|
|
4719
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
4720
|
-
# analysis.
|
|
4721
|
-
properties: nil,
|
|
4722
4401
|
# Reusable resources observed during the event. Use this for emails, phone
|
|
4723
4402
|
# numbers, names, addresses, social handles, URLs, payment identifiers, or similar
|
|
4724
4403
|
# identifiers.
|
|
@@ -4746,8 +4425,6 @@ module SafetyKit
|
|
|
4746
4425
|
Symbol,
|
|
4747
4426
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Metadata::Variants
|
|
4748
4427
|
],
|
|
4749
|
-
properties:
|
|
4750
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties,
|
|
4751
4428
|
resources_used:
|
|
4752
4429
|
T::Array[
|
|
4753
4430
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::ResourcesUsed
|
|
@@ -5108,79 +4785,6 @@ module SafetyKit
|
|
|
5108
4785
|
)
|
|
5109
4786
|
end
|
|
5110
4787
|
|
|
5111
|
-
class Properties < SafetyKit::Internal::Type::BaseModel
|
|
5112
|
-
OrHash =
|
|
5113
|
-
T.type_alias do
|
|
5114
|
-
T.any(
|
|
5115
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount::Properties,
|
|
5116
|
-
SafetyKit::Internal::AnyHash
|
|
5117
|
-
)
|
|
5118
|
-
end
|
|
5119
|
-
|
|
5120
|
-
# Current account lifecycle or moderation state.
|
|
5121
|
-
sig { returns(T.nilable(String)) }
|
|
5122
|
-
attr_reader :account_state
|
|
5123
|
-
|
|
5124
|
-
sig { params(account_state: String).void }
|
|
5125
|
-
attr_writer :account_state
|
|
5126
|
-
|
|
5127
|
-
# Stable account categories in your product.
|
|
5128
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
5129
|
-
attr_reader :account_types
|
|
5130
|
-
|
|
5131
|
-
sig { params(account_types: T::Array[String]).void }
|
|
5132
|
-
attr_writer :account_types
|
|
5133
|
-
|
|
5134
|
-
# Country associated with the account.
|
|
5135
|
-
sig { returns(T.nilable(String)) }
|
|
5136
|
-
attr_reader :country
|
|
5137
|
-
|
|
5138
|
-
sig { params(country: String).void }
|
|
5139
|
-
attr_writer :country
|
|
5140
|
-
|
|
5141
|
-
# Whether the account's email address has been verified.
|
|
5142
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
5143
|
-
attr_reader :email_verified
|
|
5144
|
-
|
|
5145
|
-
sig { params(email_verified: T::Boolean).void }
|
|
5146
|
-
attr_writer :email_verified
|
|
5147
|
-
|
|
5148
|
-
# Stable, typed account-level facts SafetyKit can use in rules and aggregate
|
|
5149
|
-
# analysis.
|
|
5150
|
-
sig do
|
|
5151
|
-
params(
|
|
5152
|
-
account_state: String,
|
|
5153
|
-
account_types: T::Array[String],
|
|
5154
|
-
country: String,
|
|
5155
|
-
email_verified: T::Boolean
|
|
5156
|
-
).returns(T.attached_class)
|
|
5157
|
-
end
|
|
5158
|
-
def self.new(
|
|
5159
|
-
# Current account lifecycle or moderation state.
|
|
5160
|
-
account_state: nil,
|
|
5161
|
-
# Stable account categories in your product.
|
|
5162
|
-
account_types: nil,
|
|
5163
|
-
# Country associated with the account.
|
|
5164
|
-
country: nil,
|
|
5165
|
-
# Whether the account's email address has been verified.
|
|
5166
|
-
email_verified: nil
|
|
5167
|
-
)
|
|
5168
|
-
end
|
|
5169
|
-
|
|
5170
|
-
sig do
|
|
5171
|
-
override.returns(
|
|
5172
|
-
{
|
|
5173
|
-
account_state: String,
|
|
5174
|
-
account_types: T::Array[String],
|
|
5175
|
-
country: String,
|
|
5176
|
-
email_verified: T::Boolean
|
|
5177
|
-
}
|
|
5178
|
-
)
|
|
5179
|
-
end
|
|
5180
|
-
def to_hash
|
|
5181
|
-
end
|
|
5182
|
-
end
|
|
5183
|
-
|
|
5184
4788
|
class ResourcesUsed < SafetyKit::Internal::Type::BaseModel
|
|
5185
4789
|
OrHash =
|
|
5186
4790
|
T.type_alias do
|