safetykit 0.24.0 → 0.25.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 +8 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/beta/event_create_params.rb +16 -72
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +20 -172
- data/sig/safety_kit/models/beta/event_create_params.rbs +16 -56
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 482e2b5df4b850929ed31233932c4030007762af4b00c870da142854999d832b
|
|
4
|
+
data.tar.gz: 3b4863205b95ed670f7c471f00fe69424a231f4944fb39e33afcfe33d248902d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca01c588b3482fa8f4e44b7d380955eb99f8a46680eebd712733ddfa888eb71b7110d5a06f563237732ee9017263b4f61ed1ef6b3776796fc3df9f9687fd3346
|
|
7
|
+
data.tar.gz: f3db5f42074a1c3054298138b784eaaa66b0faa6ecac6d6942a0bdd99ef4f9f7be83483938a025762f512b906782bf2f42adff4e0c1bdbba69310dfe0e6f0f17
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.25.0 (2026-06-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.24.0...v0.25.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.24.0...v0.25.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([1ff4670](https://github.com/GetSafetyKit/safetykit-ruby/commit/1ff46706c112b24941ce527f9de9128b6a300425))
|
|
10
|
+
|
|
3
11
|
## 0.24.0 (2026-06-09)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.23.0...v0.24.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.23.0...v0.24.0)
|
data/README.md
CHANGED
|
@@ -1257,11 +1257,10 @@ module SafetyKit
|
|
|
1257
1257
|
required :event_name, String
|
|
1258
1258
|
|
|
1259
1259
|
# @!attribute labels
|
|
1260
|
-
# One or more label categories supplied with the report.
|
|
1260
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
1261
1261
|
#
|
|
1262
|
-
# @return [Array<
|
|
1263
|
-
required :labels,
|
|
1264
|
-
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Label] }
|
|
1262
|
+
# @return [Array<String>]
|
|
1263
|
+
required :labels, SafetyKit::Internal::Type::ArrayOf[String]
|
|
1265
1264
|
|
|
1266
1265
|
# @!attribute timestamp
|
|
1267
1266
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -1344,7 +1343,7 @@ module SafetyKit
|
|
|
1344
1343
|
#
|
|
1345
1344
|
# @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
|
|
1346
1345
|
#
|
|
1347
|
-
# @param labels [Array<
|
|
1346
|
+
# @param labels [Array<String>] One or more label categories supplied with the report or moderation decision.
|
|
1348
1347
|
#
|
|
1349
1348
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
1350
1349
|
#
|
|
@@ -1366,19 +1365,6 @@ module SafetyKit
|
|
|
1366
1365
|
#
|
|
1367
1366
|
# @param target_user_id [String] Your stable canonical identifier for the user being reported.
|
|
1368
1367
|
|
|
1369
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
1370
|
-
# @!attribute label
|
|
1371
|
-
# Stable snake_case report label category.
|
|
1372
|
-
#
|
|
1373
|
-
# @return [String]
|
|
1374
|
-
required :label, String
|
|
1375
|
-
|
|
1376
|
-
# @!method initialize(label:)
|
|
1377
|
-
# Label category supplied with a user report.
|
|
1378
|
-
#
|
|
1379
|
-
# @param label [String] Stable snake_case report label category.
|
|
1380
|
-
end
|
|
1381
|
-
|
|
1382
1368
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest#type
|
|
1383
1369
|
module Type
|
|
1384
1370
|
extend SafetyKit::Internal::Type::Enum
|
|
@@ -1595,11 +1581,10 @@ module SafetyKit
|
|
|
1595
1581
|
required :event_name, String
|
|
1596
1582
|
|
|
1597
1583
|
# @!attribute labels
|
|
1598
|
-
# One or more label categories supplied with the report.
|
|
1584
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
1599
1585
|
#
|
|
1600
|
-
# @return [Array<
|
|
1601
|
-
required :labels,
|
|
1602
|
-
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label] }
|
|
1586
|
+
# @return [Array<String>]
|
|
1587
|
+
required :labels, SafetyKit::Internal::Type::ArrayOf[String]
|
|
1603
1588
|
|
|
1604
1589
|
# @!attribute source_id
|
|
1605
1590
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
@@ -1695,7 +1680,7 @@ module SafetyKit
|
|
|
1695
1680
|
#
|
|
1696
1681
|
# @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
|
|
1697
1682
|
#
|
|
1698
|
-
# @param labels [Array<
|
|
1683
|
+
# @param labels [Array<String>] One or more label categories supplied with the report or moderation decision.
|
|
1699
1684
|
#
|
|
1700
1685
|
# @param source_id [String] Stable identifier within source_type. Examples: moderator@example.com or 550e840
|
|
1701
1686
|
#
|
|
@@ -1719,19 +1704,6 @@ module SafetyKit
|
|
|
1719
1704
|
#
|
|
1720
1705
|
# @param target_user_id [String] Your stable canonical identifier for the user being reported.
|
|
1721
1706
|
|
|
1722
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
1723
|
-
# @!attribute label
|
|
1724
|
-
# Stable snake_case report label category.
|
|
1725
|
-
#
|
|
1726
|
-
# @return [String]
|
|
1727
|
-
required :label, String
|
|
1728
|
-
|
|
1729
|
-
# @!method initialize(label:)
|
|
1730
|
-
# Label category supplied with a user report.
|
|
1731
|
-
#
|
|
1732
|
-
# @param label [String] Stable snake_case report label category.
|
|
1733
|
-
end
|
|
1734
|
-
|
|
1735
1707
|
# Coarse attribution category for the moderation decision source. Supported
|
|
1736
1708
|
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
1737
1709
|
# expert_labeler (an expert human labeler or specialist reviewer), automation (an
|
|
@@ -3150,11 +3122,10 @@ module SafetyKit
|
|
|
3150
3122
|
required :event_name, String
|
|
3151
3123
|
|
|
3152
3124
|
# @!attribute labels
|
|
3153
|
-
# One or more label categories supplied with the report.
|
|
3125
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
3154
3126
|
#
|
|
3155
|
-
# @return [Array<
|
|
3156
|
-
required :labels,
|
|
3157
|
-
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Label] }
|
|
3127
|
+
# @return [Array<String>]
|
|
3128
|
+
required :labels, SafetyKit::Internal::Type::ArrayOf[String]
|
|
3158
3129
|
|
|
3159
3130
|
# @!attribute timestamp
|
|
3160
3131
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -3237,7 +3208,7 @@ module SafetyKit
|
|
|
3237
3208
|
#
|
|
3238
3209
|
# @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
|
|
3239
3210
|
#
|
|
3240
|
-
# @param labels [Array<
|
|
3211
|
+
# @param labels [Array<String>] One or more label categories supplied with the report or moderation decision.
|
|
3241
3212
|
#
|
|
3242
3213
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3243
3214
|
#
|
|
@@ -3259,19 +3230,6 @@ module SafetyKit
|
|
|
3259
3230
|
#
|
|
3260
3231
|
# @param type [Symbol, :user_report]
|
|
3261
3232
|
|
|
3262
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
3263
|
-
# @!attribute label
|
|
3264
|
-
# Stable snake_case report label category.
|
|
3265
|
-
#
|
|
3266
|
-
# @return [String]
|
|
3267
|
-
required :label, String
|
|
3268
|
-
|
|
3269
|
-
# @!method initialize(label:)
|
|
3270
|
-
# Label category supplied with a user report.
|
|
3271
|
-
#
|
|
3272
|
-
# @param label [String] Stable snake_case report label category.
|
|
3273
|
-
end
|
|
3274
|
-
|
|
3275
3233
|
# User-authored text content associated with an event.
|
|
3276
3234
|
module Content
|
|
3277
3235
|
extend SafetyKit::Internal::Type::Union
|
|
@@ -3478,11 +3436,10 @@ module SafetyKit
|
|
|
3478
3436
|
required :event_name, String
|
|
3479
3437
|
|
|
3480
3438
|
# @!attribute labels
|
|
3481
|
-
# One or more label categories supplied with the report.
|
|
3439
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
3482
3440
|
#
|
|
3483
|
-
# @return [Array<
|
|
3484
|
-
required :labels,
|
|
3485
|
-
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label] }
|
|
3441
|
+
# @return [Array<String>]
|
|
3442
|
+
required :labels, SafetyKit::Internal::Type::ArrayOf[String]
|
|
3486
3443
|
|
|
3487
3444
|
# @!attribute source_id
|
|
3488
3445
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
@@ -3577,7 +3534,7 @@ module SafetyKit
|
|
|
3577
3534
|
#
|
|
3578
3535
|
# @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
|
|
3579
3536
|
#
|
|
3580
|
-
# @param labels [Array<
|
|
3537
|
+
# @param labels [Array<String>] One or more label categories supplied with the report or moderation decision.
|
|
3581
3538
|
#
|
|
3582
3539
|
# @param source_id [String] Stable identifier within source_type. Examples: moderator@example.com or 550e840
|
|
3583
3540
|
#
|
|
@@ -3601,19 +3558,6 @@ module SafetyKit
|
|
|
3601
3558
|
#
|
|
3602
3559
|
# @param type [Symbol, :moderation_decision]
|
|
3603
3560
|
|
|
3604
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
3605
|
-
# @!attribute label
|
|
3606
|
-
# Stable snake_case report label category.
|
|
3607
|
-
#
|
|
3608
|
-
# @return [String]
|
|
3609
|
-
required :label, String
|
|
3610
|
-
|
|
3611
|
-
# @!method initialize(label:)
|
|
3612
|
-
# Label category supplied with a user report.
|
|
3613
|
-
#
|
|
3614
|
-
# @param label [String] Stable snake_case report label category.
|
|
3615
|
-
end
|
|
3616
|
-
|
|
3617
3561
|
# Coarse attribution category for the moderation decision source. Supported
|
|
3618
3562
|
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3619
3563
|
# expert_labeler (an expert human labeler or specialist reviewer), automation (an
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -2663,14 +2663,8 @@ module SafetyKit
|
|
|
2663
2663
|
sig { returns(String) }
|
|
2664
2664
|
attr_accessor :event_name
|
|
2665
2665
|
|
|
2666
|
-
# One or more label categories supplied with the report.
|
|
2667
|
-
sig
|
|
2668
|
-
returns(
|
|
2669
|
-
T::Array[
|
|
2670
|
-
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Label
|
|
2671
|
-
]
|
|
2672
|
-
)
|
|
2673
|
-
end
|
|
2666
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
2667
|
+
sig { returns(T::Array[String]) }
|
|
2674
2668
|
attr_accessor :labels
|
|
2675
2669
|
|
|
2676
2670
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -2804,10 +2798,7 @@ module SafetyKit
|
|
|
2804
2798
|
sig do
|
|
2805
2799
|
params(
|
|
2806
2800
|
event_name: String,
|
|
2807
|
-
labels:
|
|
2808
|
-
T::Array[
|
|
2809
|
-
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Label::OrHash
|
|
2810
|
-
],
|
|
2801
|
+
labels: T::Array[String],
|
|
2811
2802
|
timestamp: Time,
|
|
2812
2803
|
type:
|
|
2813
2804
|
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Type::OrSymbol,
|
|
@@ -2838,7 +2829,7 @@ module SafetyKit
|
|
|
2838
2829
|
# Stable, low-cardinality product action name. Use snake_case and put dynamic
|
|
2839
2830
|
# values in typed fields, content, resources_used, or metadata.
|
|
2840
2831
|
event_name:,
|
|
2841
|
-
# One or more label categories supplied with the report.
|
|
2832
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
2842
2833
|
labels:,
|
|
2843
2834
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
2844
2835
|
timestamp:,
|
|
@@ -2873,10 +2864,7 @@ module SafetyKit
|
|
|
2873
2864
|
override.returns(
|
|
2874
2865
|
{
|
|
2875
2866
|
event_name: String,
|
|
2876
|
-
labels:
|
|
2877
|
-
T::Array[
|
|
2878
|
-
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Label
|
|
2879
|
-
],
|
|
2867
|
+
labels: T::Array[String],
|
|
2880
2868
|
timestamp: Time,
|
|
2881
2869
|
type:
|
|
2882
2870
|
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Type::OrSymbol,
|
|
@@ -2907,32 +2895,6 @@ module SafetyKit
|
|
|
2907
2895
|
def to_hash
|
|
2908
2896
|
end
|
|
2909
2897
|
|
|
2910
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
2911
|
-
OrHash =
|
|
2912
|
-
T.type_alias do
|
|
2913
|
-
T.any(
|
|
2914
|
-
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::Label,
|
|
2915
|
-
SafetyKit::Internal::AnyHash
|
|
2916
|
-
)
|
|
2917
|
-
end
|
|
2918
|
-
|
|
2919
|
-
# Stable snake_case report label category.
|
|
2920
|
-
sig { returns(String) }
|
|
2921
|
-
attr_accessor :label
|
|
2922
|
-
|
|
2923
|
-
# Label category supplied with a user report.
|
|
2924
|
-
sig { params(label: String).returns(T.attached_class) }
|
|
2925
|
-
def self.new(
|
|
2926
|
-
# Stable snake_case report label category.
|
|
2927
|
-
label:
|
|
2928
|
-
)
|
|
2929
|
-
end
|
|
2930
|
-
|
|
2931
|
-
sig { override.returns({ label: String }) }
|
|
2932
|
-
def to_hash
|
|
2933
|
-
end
|
|
2934
|
-
end
|
|
2935
|
-
|
|
2936
2898
|
module Type
|
|
2937
2899
|
extend SafetyKit::Internal::Type::Enum
|
|
2938
2900
|
|
|
@@ -3366,14 +3328,8 @@ module SafetyKit
|
|
|
3366
3328
|
sig { returns(String) }
|
|
3367
3329
|
attr_accessor :event_name
|
|
3368
3330
|
|
|
3369
|
-
# One or more label categories supplied with the report.
|
|
3370
|
-
sig
|
|
3371
|
-
returns(
|
|
3372
|
-
T::Array[
|
|
3373
|
-
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
|
|
3374
|
-
]
|
|
3375
|
-
)
|
|
3376
|
-
end
|
|
3331
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
3332
|
+
sig { returns(T::Array[String]) }
|
|
3377
3333
|
attr_accessor :labels
|
|
3378
3334
|
|
|
3379
3335
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
@@ -3520,10 +3476,7 @@ module SafetyKit
|
|
|
3520
3476
|
sig do
|
|
3521
3477
|
params(
|
|
3522
3478
|
event_name: String,
|
|
3523
|
-
labels:
|
|
3524
|
-
T::Array[
|
|
3525
|
-
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label::OrHash
|
|
3526
|
-
],
|
|
3479
|
+
labels: T::Array[String],
|
|
3527
3480
|
source_id: String,
|
|
3528
3481
|
source_type:
|
|
3529
3482
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
@@ -3556,7 +3509,7 @@ module SafetyKit
|
|
|
3556
3509
|
# Stable, low-cardinality product action name. Use snake_case and put dynamic
|
|
3557
3510
|
# values in typed fields, content, resources_used, or metadata.
|
|
3558
3511
|
event_name:,
|
|
3559
|
-
# One or more label categories supplied with the report.
|
|
3512
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
3560
3513
|
labels:,
|
|
3561
3514
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
3562
3515
|
# 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
|
|
@@ -3599,10 +3552,7 @@ module SafetyKit
|
|
|
3599
3552
|
override.returns(
|
|
3600
3553
|
{
|
|
3601
3554
|
event_name: String,
|
|
3602
|
-
labels:
|
|
3603
|
-
T::Array[
|
|
3604
|
-
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
|
|
3605
|
-
],
|
|
3555
|
+
labels: T::Array[String],
|
|
3606
3556
|
source_id: String,
|
|
3607
3557
|
source_type:
|
|
3608
3558
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
@@ -3635,32 +3585,6 @@ module SafetyKit
|
|
|
3635
3585
|
def to_hash
|
|
3636
3586
|
end
|
|
3637
3587
|
|
|
3638
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
3639
|
-
OrHash =
|
|
3640
|
-
T.type_alias do
|
|
3641
|
-
T.any(
|
|
3642
|
-
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label,
|
|
3643
|
-
SafetyKit::Internal::AnyHash
|
|
3644
|
-
)
|
|
3645
|
-
end
|
|
3646
|
-
|
|
3647
|
-
# Stable snake_case report label category.
|
|
3648
|
-
sig { returns(String) }
|
|
3649
|
-
attr_accessor :label
|
|
3650
|
-
|
|
3651
|
-
# Label category supplied with a user report.
|
|
3652
|
-
sig { params(label: String).returns(T.attached_class) }
|
|
3653
|
-
def self.new(
|
|
3654
|
-
# Stable snake_case report label category.
|
|
3655
|
-
label:
|
|
3656
|
-
)
|
|
3657
|
-
end
|
|
3658
|
-
|
|
3659
|
-
sig { override.returns({ label: String }) }
|
|
3660
|
-
def to_hash
|
|
3661
|
-
end
|
|
3662
|
-
end
|
|
3663
|
-
|
|
3664
3588
|
# Coarse attribution category for the moderation decision source. Supported
|
|
3665
3589
|
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3666
3590
|
# expert_labeler (an expert human labeler or specialist reviewer), automation (an
|
|
@@ -6543,14 +6467,8 @@ module SafetyKit
|
|
|
6543
6467
|
sig { returns(String) }
|
|
6544
6468
|
attr_accessor :event_name
|
|
6545
6469
|
|
|
6546
|
-
# One or more label categories supplied with the report.
|
|
6547
|
-
sig
|
|
6548
|
-
returns(
|
|
6549
|
-
T::Array[
|
|
6550
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Label
|
|
6551
|
-
]
|
|
6552
|
-
)
|
|
6553
|
-
end
|
|
6470
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
6471
|
+
sig { returns(T::Array[String]) }
|
|
6554
6472
|
attr_accessor :labels
|
|
6555
6473
|
|
|
6556
6474
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -6680,10 +6598,7 @@ module SafetyKit
|
|
|
6680
6598
|
sig do
|
|
6681
6599
|
params(
|
|
6682
6600
|
event_name: String,
|
|
6683
|
-
labels:
|
|
6684
|
-
T::Array[
|
|
6685
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Label::OrHash
|
|
6686
|
-
],
|
|
6601
|
+
labels: T::Array[String],
|
|
6687
6602
|
timestamp: Time,
|
|
6688
6603
|
user_id: String,
|
|
6689
6604
|
content:
|
|
@@ -6713,7 +6628,7 @@ module SafetyKit
|
|
|
6713
6628
|
# Stable, low-cardinality product action name. Use snake_case and put dynamic
|
|
6714
6629
|
# values in typed fields, content, resources_used, or metadata.
|
|
6715
6630
|
event_name:,
|
|
6716
|
-
# One or more label categories supplied with the report.
|
|
6631
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
6717
6632
|
labels:,
|
|
6718
6633
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
6719
6634
|
timestamp:,
|
|
@@ -6748,10 +6663,7 @@ module SafetyKit
|
|
|
6748
6663
|
override.returns(
|
|
6749
6664
|
{
|
|
6750
6665
|
event_name: String,
|
|
6751
|
-
labels:
|
|
6752
|
-
T::Array[
|
|
6753
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Label
|
|
6754
|
-
],
|
|
6666
|
+
labels: T::Array[String],
|
|
6755
6667
|
timestamp: Time,
|
|
6756
6668
|
type: Symbol,
|
|
6757
6669
|
user_id: String,
|
|
@@ -6781,32 +6693,6 @@ module SafetyKit
|
|
|
6781
6693
|
def to_hash
|
|
6782
6694
|
end
|
|
6783
6695
|
|
|
6784
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
6785
|
-
OrHash =
|
|
6786
|
-
T.type_alias do
|
|
6787
|
-
T.any(
|
|
6788
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Label,
|
|
6789
|
-
SafetyKit::Internal::AnyHash
|
|
6790
|
-
)
|
|
6791
|
-
end
|
|
6792
|
-
|
|
6793
|
-
# Stable snake_case report label category.
|
|
6794
|
-
sig { returns(String) }
|
|
6795
|
-
attr_accessor :label
|
|
6796
|
-
|
|
6797
|
-
# Label category supplied with a user report.
|
|
6798
|
-
sig { params(label: String).returns(T.attached_class) }
|
|
6799
|
-
def self.new(
|
|
6800
|
-
# Stable snake_case report label category.
|
|
6801
|
-
label:
|
|
6802
|
-
)
|
|
6803
|
-
end
|
|
6804
|
-
|
|
6805
|
-
sig { override.returns({ label: String }) }
|
|
6806
|
-
def to_hash
|
|
6807
|
-
end
|
|
6808
|
-
end
|
|
6809
|
-
|
|
6810
6696
|
# User-authored text content associated with an event.
|
|
6811
6697
|
module Content
|
|
6812
6698
|
extend SafetyKit::Internal::Type::Union
|
|
@@ -7211,14 +7097,8 @@ module SafetyKit
|
|
|
7211
7097
|
sig { returns(String) }
|
|
7212
7098
|
attr_accessor :event_name
|
|
7213
7099
|
|
|
7214
|
-
# One or more label categories supplied with the report.
|
|
7215
|
-
sig
|
|
7216
|
-
returns(
|
|
7217
|
-
T::Array[
|
|
7218
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label
|
|
7219
|
-
]
|
|
7220
|
-
)
|
|
7221
|
-
end
|
|
7100
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
7101
|
+
sig { returns(T::Array[String]) }
|
|
7222
7102
|
attr_accessor :labels
|
|
7223
7103
|
|
|
7224
7104
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
@@ -7361,10 +7241,7 @@ module SafetyKit
|
|
|
7361
7241
|
sig do
|
|
7362
7242
|
params(
|
|
7363
7243
|
event_name: String,
|
|
7364
|
-
labels:
|
|
7365
|
-
T::Array[
|
|
7366
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label::OrHash
|
|
7367
|
-
],
|
|
7244
|
+
labels: T::Array[String],
|
|
7368
7245
|
source_id: String,
|
|
7369
7246
|
source_type:
|
|
7370
7247
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
@@ -7396,7 +7273,7 @@ module SafetyKit
|
|
|
7396
7273
|
# Stable, low-cardinality product action name. Use snake_case and put dynamic
|
|
7397
7274
|
# values in typed fields, content, resources_used, or metadata.
|
|
7398
7275
|
event_name:,
|
|
7399
|
-
# One or more label categories supplied with the report.
|
|
7276
|
+
# One or more label categories supplied with the report or moderation decision.
|
|
7400
7277
|
labels:,
|
|
7401
7278
|
# Stable identifier within source_type. Examples: moderator@example.com or
|
|
7402
7279
|
# 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
|
|
@@ -7439,10 +7316,7 @@ module SafetyKit
|
|
|
7439
7316
|
override.returns(
|
|
7440
7317
|
{
|
|
7441
7318
|
event_name: String,
|
|
7442
|
-
labels:
|
|
7443
|
-
T::Array[
|
|
7444
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label
|
|
7445
|
-
],
|
|
7319
|
+
labels: T::Array[String],
|
|
7446
7320
|
source_id: String,
|
|
7447
7321
|
source_type:
|
|
7448
7322
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
@@ -7474,32 +7348,6 @@ module SafetyKit
|
|
|
7474
7348
|
def to_hash
|
|
7475
7349
|
end
|
|
7476
7350
|
|
|
7477
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
7478
|
-
OrHash =
|
|
7479
|
-
T.type_alias do
|
|
7480
|
-
T.any(
|
|
7481
|
-
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label,
|
|
7482
|
-
SafetyKit::Internal::AnyHash
|
|
7483
|
-
)
|
|
7484
|
-
end
|
|
7485
|
-
|
|
7486
|
-
# Stable snake_case report label category.
|
|
7487
|
-
sig { returns(String) }
|
|
7488
|
-
attr_accessor :label
|
|
7489
|
-
|
|
7490
|
-
# Label category supplied with a user report.
|
|
7491
|
-
sig { params(label: String).returns(T.attached_class) }
|
|
7492
|
-
def self.new(
|
|
7493
|
-
# Stable snake_case report label category.
|
|
7494
|
-
label:
|
|
7495
|
-
)
|
|
7496
|
-
end
|
|
7497
|
-
|
|
7498
|
-
sig { override.returns({ label: String }) }
|
|
7499
|
-
def to_hash
|
|
7500
|
-
end
|
|
7501
|
-
end
|
|
7502
|
-
|
|
7503
7351
|
# Coarse attribution category for the moderation decision source. Supported
|
|
7504
7352
|
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
7505
7353
|
# expert_labeler (an expert human labeler or specialist reviewer), automation (an
|
|
@@ -985,7 +985,7 @@ module SafetyKit
|
|
|
985
985
|
type user_report_event_request =
|
|
986
986
|
{
|
|
987
987
|
event_name: String,
|
|
988
|
-
labels: ::Array[
|
|
988
|
+
labels: ::Array[String],
|
|
989
989
|
timestamp: Time,
|
|
990
990
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::type_,
|
|
991
991
|
user_id: String,
|
|
@@ -1001,7 +1001,7 @@ module SafetyKit
|
|
|
1001
1001
|
class UserReportEventRequest < SafetyKit::Internal::Type::BaseModel
|
|
1002
1002
|
attr_accessor event_name: String
|
|
1003
1003
|
|
|
1004
|
-
attr_accessor labels: ::Array[
|
|
1004
|
+
attr_accessor labels: ::Array[String]
|
|
1005
1005
|
|
|
1006
1006
|
attr_accessor timestamp: Time
|
|
1007
1007
|
|
|
@@ -1045,7 +1045,7 @@ module SafetyKit
|
|
|
1045
1045
|
|
|
1046
1046
|
def initialize: (
|
|
1047
1047
|
event_name: String,
|
|
1048
|
-
labels: ::Array[
|
|
1048
|
+
labels: ::Array[String],
|
|
1049
1049
|
timestamp: Time,
|
|
1050
1050
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::type_,
|
|
1051
1051
|
user_id: String,
|
|
@@ -1060,7 +1060,7 @@ module SafetyKit
|
|
|
1060
1060
|
|
|
1061
1061
|
def to_hash: -> {
|
|
1062
1062
|
event_name: String,
|
|
1063
|
-
labels: ::Array[
|
|
1063
|
+
labels: ::Array[String],
|
|
1064
1064
|
timestamp: Time,
|
|
1065
1065
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::type_,
|
|
1066
1066
|
user_id: String,
|
|
@@ -1073,16 +1073,6 @@ module SafetyKit
|
|
|
1073
1073
|
target_user_id: String
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
|
-
type label = { label: String }
|
|
1077
|
-
|
|
1078
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
1079
|
-
attr_accessor label: String
|
|
1080
|
-
|
|
1081
|
-
def initialize: (label: String) -> void
|
|
1082
|
-
|
|
1083
|
-
def to_hash: -> { label: String }
|
|
1084
|
-
end
|
|
1085
|
-
|
|
1086
1076
|
type type_ = :user_report
|
|
1087
1077
|
|
|
1088
1078
|
module Type
|
|
@@ -1251,7 +1241,7 @@ module SafetyKit
|
|
|
1251
1241
|
type moderation_decision_event_request =
|
|
1252
1242
|
{
|
|
1253
1243
|
event_name: String,
|
|
1254
|
-
labels: ::Array[
|
|
1244
|
+
labels: ::Array[String],
|
|
1255
1245
|
source_id: String,
|
|
1256
1246
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1257
1247
|
timestamp: Time,
|
|
@@ -1268,7 +1258,7 @@ module SafetyKit
|
|
|
1268
1258
|
class ModerationDecisionEventRequest < SafetyKit::Internal::Type::BaseModel
|
|
1269
1259
|
attr_accessor event_name: String
|
|
1270
1260
|
|
|
1271
|
-
attr_accessor labels: ::Array[
|
|
1261
|
+
attr_accessor labels: ::Array[String]
|
|
1272
1262
|
|
|
1273
1263
|
attr_accessor source_id: String
|
|
1274
1264
|
|
|
@@ -1314,7 +1304,7 @@ module SafetyKit
|
|
|
1314
1304
|
|
|
1315
1305
|
def initialize: (
|
|
1316
1306
|
event_name: String,
|
|
1317
|
-
labels: ::Array[
|
|
1307
|
+
labels: ::Array[String],
|
|
1318
1308
|
source_id: String,
|
|
1319
1309
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1320
1310
|
timestamp: Time,
|
|
@@ -1330,7 +1320,7 @@ module SafetyKit
|
|
|
1330
1320
|
|
|
1331
1321
|
def to_hash: -> {
|
|
1332
1322
|
event_name: String,
|
|
1333
|
-
labels: ::Array[
|
|
1323
|
+
labels: ::Array[String],
|
|
1334
1324
|
source_id: String,
|
|
1335
1325
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1336
1326
|
timestamp: Time,
|
|
@@ -1344,16 +1334,6 @@ module SafetyKit
|
|
|
1344
1334
|
target_user_id: String
|
|
1345
1335
|
}
|
|
1346
1336
|
|
|
1347
|
-
type label = { label: String }
|
|
1348
|
-
|
|
1349
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
1350
|
-
attr_accessor label: String
|
|
1351
|
-
|
|
1352
|
-
def initialize: (label: String) -> void
|
|
1353
|
-
|
|
1354
|
-
def to_hash: -> { label: String }
|
|
1355
|
-
end
|
|
1356
|
-
|
|
1357
1337
|
type source_type =
|
|
1358
1338
|
:human_moderator | :expert_labeler | :automation | :vendor
|
|
1359
1339
|
|
|
@@ -2456,7 +2436,7 @@ module SafetyKit
|
|
|
2456
2436
|
type user_report =
|
|
2457
2437
|
{
|
|
2458
2438
|
event_name: String,
|
|
2459
|
-
labels: ::Array[
|
|
2439
|
+
labels: ::Array[String],
|
|
2460
2440
|
timestamp: Time,
|
|
2461
2441
|
type: :user_report,
|
|
2462
2442
|
user_id: String,
|
|
@@ -2472,7 +2452,7 @@ module SafetyKit
|
|
|
2472
2452
|
class UserReport < SafetyKit::Internal::Type::BaseModel
|
|
2473
2453
|
attr_accessor event_name: String
|
|
2474
2454
|
|
|
2475
|
-
attr_accessor labels: ::Array[
|
|
2455
|
+
attr_accessor labels: ::Array[String]
|
|
2476
2456
|
|
|
2477
2457
|
attr_accessor timestamp: Time
|
|
2478
2458
|
|
|
@@ -2516,7 +2496,7 @@ module SafetyKit
|
|
|
2516
2496
|
|
|
2517
2497
|
def initialize: (
|
|
2518
2498
|
event_name: String,
|
|
2519
|
-
labels: ::Array[
|
|
2499
|
+
labels: ::Array[String],
|
|
2520
2500
|
timestamp: Time,
|
|
2521
2501
|
user_id: String,
|
|
2522
2502
|
?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::UserReport::content],
|
|
@@ -2531,7 +2511,7 @@ module SafetyKit
|
|
|
2531
2511
|
|
|
2532
2512
|
def to_hash: -> {
|
|
2533
2513
|
event_name: String,
|
|
2534
|
-
labels: ::Array[
|
|
2514
|
+
labels: ::Array[String],
|
|
2535
2515
|
timestamp: Time,
|
|
2536
2516
|
type: :user_report,
|
|
2537
2517
|
user_id: String,
|
|
@@ -2544,16 +2524,6 @@ module SafetyKit
|
|
|
2544
2524
|
target_user_id: String
|
|
2545
2525
|
}
|
|
2546
2526
|
|
|
2547
|
-
type label = { label: String }
|
|
2548
|
-
|
|
2549
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
2550
|
-
attr_accessor label: String
|
|
2551
|
-
|
|
2552
|
-
def initialize: (label: String) -> void
|
|
2553
|
-
|
|
2554
|
-
def to_hash: -> { label: String }
|
|
2555
|
-
end
|
|
2556
|
-
|
|
2557
2527
|
type content =
|
|
2558
2528
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Content::EventTextContent
|
|
2559
2529
|
| SafetyKit::Beta::EventCreateParams::Body::UnionMember6::UserReport::Content::EventImageContent
|
|
@@ -2712,7 +2682,7 @@ module SafetyKit
|
|
|
2712
2682
|
type moderation_decision =
|
|
2713
2683
|
{
|
|
2714
2684
|
event_name: String,
|
|
2715
|
-
labels: ::Array[
|
|
2685
|
+
labels: ::Array[String],
|
|
2716
2686
|
source_id: String,
|
|
2717
2687
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2718
2688
|
timestamp: Time,
|
|
@@ -2729,7 +2699,7 @@ module SafetyKit
|
|
|
2729
2699
|
class ModerationDecision < SafetyKit::Internal::Type::BaseModel
|
|
2730
2700
|
attr_accessor event_name: String
|
|
2731
2701
|
|
|
2732
|
-
attr_accessor labels: ::Array[
|
|
2702
|
+
attr_accessor labels: ::Array[String]
|
|
2733
2703
|
|
|
2734
2704
|
attr_accessor source_id: String
|
|
2735
2705
|
|
|
@@ -2775,7 +2745,7 @@ module SafetyKit
|
|
|
2775
2745
|
|
|
2776
2746
|
def initialize: (
|
|
2777
2747
|
event_name: String,
|
|
2778
|
-
labels: ::Array[
|
|
2748
|
+
labels: ::Array[String],
|
|
2779
2749
|
source_id: String,
|
|
2780
2750
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2781
2751
|
timestamp: Time,
|
|
@@ -2791,7 +2761,7 @@ module SafetyKit
|
|
|
2791
2761
|
|
|
2792
2762
|
def to_hash: -> {
|
|
2793
2763
|
event_name: String,
|
|
2794
|
-
labels: ::Array[
|
|
2764
|
+
labels: ::Array[String],
|
|
2795
2765
|
source_id: String,
|
|
2796
2766
|
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2797
2767
|
timestamp: Time,
|
|
@@ -2805,16 +2775,6 @@ module SafetyKit
|
|
|
2805
2775
|
target_user_id: String
|
|
2806
2776
|
}
|
|
2807
2777
|
|
|
2808
|
-
type label = { label: String }
|
|
2809
|
-
|
|
2810
|
-
class Label < SafetyKit::Internal::Type::BaseModel
|
|
2811
|
-
attr_accessor label: String
|
|
2812
|
-
|
|
2813
|
-
def initialize: (label: String) -> void
|
|
2814
|
-
|
|
2815
|
-
def to_hash: -> { label: String }
|
|
2816
|
-
end
|
|
2817
|
-
|
|
2818
2778
|
type source_type =
|
|
2819
2779
|
:human_moderator | :expert_labeler | :automation | :vendor
|
|
2820
2780
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: safetykit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Safetykit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|