safetykit 0.20.0 → 0.22.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 +66 -16
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +152 -22
- data/sig/safety_kit/models/beta/event_create_params.rbs +36 -8
- 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: a2b54d3603f6ffc6f1c75c290a75f9b75e58fa2a431e15db1d8c6689fe6110b6
|
|
4
|
+
data.tar.gz: c278fe682f77a5eeb914a211c09363159a3ef82bc12319e0095ff2f70b1759b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66b6d865a1c0f1bf56f88d345b4994325ab85345e05f5117aedf52a1576d47213247f863e997d0fd8b82716ad32709c1593633de9c3159e7fa304059af80df1b
|
|
7
|
+
data.tar.gz: d93eb1e5b5668340122d8e579e9ce28033902d314738edbd82bd4fa226ea8a070db65b4c0004d5ae5ac3aaff97ee950321ecb29ed76d92f920b871d583b5e399
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.22.0 (2026-06-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.21.0...v0.22.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.21.0...v0.22.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([49c464a](https://github.com/GetSafetyKit/safetykit-ruby/commit/49c464a832308ecc927b7f8bbe4827434163d0f6))
|
|
10
|
+
|
|
11
|
+
## 0.21.0 (2026-06-04)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.20.0...v0.21.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([ce2b2c9](https://github.com/GetSafetyKit/safetykit-ruby/commit/ce2b2c94e7c40ead22d6f5c0984b6f633ff2fce4))
|
|
18
|
+
|
|
3
19
|
## 0.20.0 (2026-06-04)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.19.0...v0.20.0)
|
data/README.md
CHANGED
|
@@ -1602,18 +1602,24 @@ module SafetyKit
|
|
|
1602
1602
|
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label] }
|
|
1603
1603
|
|
|
1604
1604
|
# @!attribute source_id
|
|
1605
|
-
# Stable identifier within source_type.
|
|
1606
|
-
#
|
|
1605
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
1606
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
1607
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
1608
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
1607
1609
|
#
|
|
1608
1610
|
# @return [String]
|
|
1609
1611
|
required :source_id, String
|
|
1610
1612
|
|
|
1611
1613
|
# @!attribute source_type
|
|
1612
|
-
#
|
|
1613
|
-
#
|
|
1614
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
1615
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
1616
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
1617
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
1618
|
+
# review or moderation provider).
|
|
1614
1619
|
#
|
|
1615
|
-
# @return [
|
|
1616
|
-
required :source_type,
|
|
1620
|
+
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType]
|
|
1621
|
+
required :source_type,
|
|
1622
|
+
enum: -> { SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType }
|
|
1617
1623
|
|
|
1618
1624
|
# @!attribute timestamp
|
|
1619
1625
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -1692,9 +1698,9 @@ module SafetyKit
|
|
|
1692
1698
|
#
|
|
1693
1699
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label>] One or more label categories supplied with the report.
|
|
1694
1700
|
#
|
|
1695
|
-
# @param source_id [String] Stable identifier within source_type.
|
|
1701
|
+
# @param source_id [String] Stable identifier within source_type. Examples: reviewer_123 for human_moderator
|
|
1696
1702
|
#
|
|
1697
|
-
# @param source_type [
|
|
1703
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the moderation decision source. Supported values
|
|
1698
1704
|
#
|
|
1699
1705
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
1700
1706
|
#
|
|
@@ -1727,6 +1733,25 @@ module SafetyKit
|
|
|
1727
1733
|
# @param label [String] Stable snake_case report label category.
|
|
1728
1734
|
end
|
|
1729
1735
|
|
|
1736
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
1737
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
1738
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
1739
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
1740
|
+
# review or moderation provider).
|
|
1741
|
+
#
|
|
1742
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#source_type
|
|
1743
|
+
module SourceType
|
|
1744
|
+
extend SafetyKit::Internal::Type::Enum
|
|
1745
|
+
|
|
1746
|
+
HUMAN_MODERATOR = :human_moderator
|
|
1747
|
+
EXPERT_LABELER = :expert_labeler
|
|
1748
|
+
AUTOMATION = :automation
|
|
1749
|
+
VENDOR = :vendor
|
|
1750
|
+
|
|
1751
|
+
# @!method self.values
|
|
1752
|
+
# @return [Array<Symbol>]
|
|
1753
|
+
end
|
|
1754
|
+
|
|
1730
1755
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#type
|
|
1731
1756
|
module Type
|
|
1732
1757
|
extend SafetyKit::Internal::Type::Enum
|
|
@@ -3461,18 +3486,24 @@ module SafetyKit
|
|
|
3461
3486
|
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label] }
|
|
3462
3487
|
|
|
3463
3488
|
# @!attribute source_id
|
|
3464
|
-
# Stable identifier within source_type.
|
|
3465
|
-
#
|
|
3489
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
3490
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
3491
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
3492
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
3466
3493
|
#
|
|
3467
3494
|
# @return [String]
|
|
3468
3495
|
required :source_id, String
|
|
3469
3496
|
|
|
3470
3497
|
# @!attribute source_type
|
|
3471
|
-
#
|
|
3472
|
-
#
|
|
3498
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
3499
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3500
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
3501
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
3502
|
+
# review or moderation provider).
|
|
3473
3503
|
#
|
|
3474
|
-
# @return [
|
|
3475
|
-
required :source_type,
|
|
3504
|
+
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType]
|
|
3505
|
+
required :source_type,
|
|
3506
|
+
enum: -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType }
|
|
3476
3507
|
|
|
3477
3508
|
# @!attribute timestamp
|
|
3478
3509
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -3550,9 +3581,9 @@ module SafetyKit
|
|
|
3550
3581
|
#
|
|
3551
3582
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label>] One or more label categories supplied with the report.
|
|
3552
3583
|
#
|
|
3553
|
-
# @param source_id [String] Stable identifier within source_type.
|
|
3584
|
+
# @param source_id [String] Stable identifier within source_type. Examples: reviewer_123 for human_moderator
|
|
3554
3585
|
#
|
|
3555
|
-
# @param source_type [
|
|
3586
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the moderation decision source. Supported values
|
|
3556
3587
|
#
|
|
3557
3588
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3558
3589
|
#
|
|
@@ -3585,6 +3616,25 @@ module SafetyKit
|
|
|
3585
3616
|
# @param label [String] Stable snake_case report label category.
|
|
3586
3617
|
end
|
|
3587
3618
|
|
|
3619
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
3620
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3621
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
3622
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
3623
|
+
# review or moderation provider).
|
|
3624
|
+
#
|
|
3625
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision#source_type
|
|
3626
|
+
module SourceType
|
|
3627
|
+
extend SafetyKit::Internal::Type::Enum
|
|
3628
|
+
|
|
3629
|
+
HUMAN_MODERATOR = :human_moderator
|
|
3630
|
+
EXPERT_LABELER = :expert_labeler
|
|
3631
|
+
AUTOMATION = :automation
|
|
3632
|
+
VENDOR = :vendor
|
|
3633
|
+
|
|
3634
|
+
# @!method self.values
|
|
3635
|
+
# @return [Array<Symbol>]
|
|
3636
|
+
end
|
|
3637
|
+
|
|
3588
3638
|
# User-authored text content associated with an event.
|
|
3589
3639
|
module Content
|
|
3590
3640
|
extend SafetyKit::Internal::Type::Union
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -3376,14 +3376,23 @@ module SafetyKit
|
|
|
3376
3376
|
end
|
|
3377
3377
|
attr_accessor :labels
|
|
3378
3378
|
|
|
3379
|
-
# Stable identifier within source_type.
|
|
3380
|
-
#
|
|
3379
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
3380
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
3381
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
3382
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
3381
3383
|
sig { returns(String) }
|
|
3382
3384
|
attr_accessor :source_id
|
|
3383
3385
|
|
|
3384
|
-
#
|
|
3385
|
-
#
|
|
3386
|
-
|
|
3386
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
3387
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3388
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
3389
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
3390
|
+
# review or moderation provider).
|
|
3391
|
+
sig do
|
|
3392
|
+
returns(
|
|
3393
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol
|
|
3394
|
+
)
|
|
3395
|
+
end
|
|
3387
3396
|
attr_accessor :source_type
|
|
3388
3397
|
|
|
3389
3398
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -3517,7 +3526,8 @@ module SafetyKit
|
|
|
3517
3526
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label::OrHash
|
|
3518
3527
|
],
|
|
3519
3528
|
source_id: String,
|
|
3520
|
-
source_type:
|
|
3529
|
+
source_type:
|
|
3530
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
3521
3531
|
timestamp: Time,
|
|
3522
3532
|
type:
|
|
3523
3533
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type::OrSymbol,
|
|
@@ -3549,11 +3559,16 @@ module SafetyKit
|
|
|
3549
3559
|
event_name:,
|
|
3550
3560
|
# One or more label categories supplied with the report.
|
|
3551
3561
|
labels:,
|
|
3552
|
-
# Stable identifier within source_type.
|
|
3553
|
-
#
|
|
3562
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
3563
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
3564
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
3565
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
3554
3566
|
source_id:,
|
|
3555
|
-
#
|
|
3556
|
-
#
|
|
3567
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
3568
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3569
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
3570
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
3571
|
+
# review or moderation provider).
|
|
3557
3572
|
source_type:,
|
|
3558
3573
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3559
3574
|
timestamp:,
|
|
@@ -3591,7 +3606,8 @@ module SafetyKit
|
|
|
3591
3606
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
|
|
3592
3607
|
],
|
|
3593
3608
|
source_id: String,
|
|
3594
|
-
source_type:
|
|
3609
|
+
source_type:
|
|
3610
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
3595
3611
|
timestamp: Time,
|
|
3596
3612
|
type:
|
|
3597
3613
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type::OrSymbol,
|
|
@@ -3647,6 +3663,55 @@ module SafetyKit
|
|
|
3647
3663
|
end
|
|
3648
3664
|
end
|
|
3649
3665
|
|
|
3666
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
3667
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
3668
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
3669
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
3670
|
+
# review or moderation provider).
|
|
3671
|
+
module SourceType
|
|
3672
|
+
extend SafetyKit::Internal::Type::Enum
|
|
3673
|
+
|
|
3674
|
+
TaggedSymbol =
|
|
3675
|
+
T.type_alias do
|
|
3676
|
+
T.all(
|
|
3677
|
+
Symbol,
|
|
3678
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType
|
|
3679
|
+
)
|
|
3680
|
+
end
|
|
3681
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3682
|
+
|
|
3683
|
+
HUMAN_MODERATOR =
|
|
3684
|
+
T.let(
|
|
3685
|
+
:human_moderator,
|
|
3686
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3687
|
+
)
|
|
3688
|
+
EXPERT_LABELER =
|
|
3689
|
+
T.let(
|
|
3690
|
+
:expert_labeler,
|
|
3691
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3692
|
+
)
|
|
3693
|
+
AUTOMATION =
|
|
3694
|
+
T.let(
|
|
3695
|
+
:automation,
|
|
3696
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3697
|
+
)
|
|
3698
|
+
VENDOR =
|
|
3699
|
+
T.let(
|
|
3700
|
+
:vendor,
|
|
3701
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3702
|
+
)
|
|
3703
|
+
|
|
3704
|
+
sig do
|
|
3705
|
+
override.returns(
|
|
3706
|
+
T::Array[
|
|
3707
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3708
|
+
]
|
|
3709
|
+
)
|
|
3710
|
+
end
|
|
3711
|
+
def self.values
|
|
3712
|
+
end
|
|
3713
|
+
end
|
|
3714
|
+
|
|
3650
3715
|
module Type
|
|
3651
3716
|
extend SafetyKit::Internal::Type::Enum
|
|
3652
3717
|
|
|
@@ -7158,14 +7223,23 @@ module SafetyKit
|
|
|
7158
7223
|
end
|
|
7159
7224
|
attr_accessor :labels
|
|
7160
7225
|
|
|
7161
|
-
# Stable identifier within source_type.
|
|
7162
|
-
#
|
|
7226
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
7227
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
7228
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
7229
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
7163
7230
|
sig { returns(String) }
|
|
7164
7231
|
attr_accessor :source_id
|
|
7165
7232
|
|
|
7166
|
-
#
|
|
7167
|
-
#
|
|
7168
|
-
|
|
7233
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
7234
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
7235
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
7236
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
7237
|
+
# review or moderation provider).
|
|
7238
|
+
sig do
|
|
7239
|
+
returns(
|
|
7240
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol
|
|
7241
|
+
)
|
|
7242
|
+
end
|
|
7169
7243
|
attr_accessor :source_type
|
|
7170
7244
|
|
|
7171
7245
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -7295,7 +7369,8 @@ module SafetyKit
|
|
|
7295
7369
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label::OrHash
|
|
7296
7370
|
],
|
|
7297
7371
|
source_id: String,
|
|
7298
|
-
source_type:
|
|
7372
|
+
source_type:
|
|
7373
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
7299
7374
|
timestamp: Time,
|
|
7300
7375
|
content:
|
|
7301
7376
|
T::Array[
|
|
@@ -7326,11 +7401,16 @@ module SafetyKit
|
|
|
7326
7401
|
event_name:,
|
|
7327
7402
|
# One or more label categories supplied with the report.
|
|
7328
7403
|
labels:,
|
|
7329
|
-
# Stable identifier within source_type.
|
|
7330
|
-
#
|
|
7404
|
+
# Stable identifier within source_type. Examples: reviewer_123 for
|
|
7405
|
+
# human_moderator, labeling_job_456 for expert_labeler,
|
|
7406
|
+
# automated_review_v2026_06_04 for automation, or external_review_batch_789 for
|
|
7407
|
+
# vendor. Use stable opaque IDs rather than vendor names.
|
|
7331
7408
|
source_id:,
|
|
7332
|
-
#
|
|
7333
|
-
#
|
|
7409
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
7410
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
7411
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
7412
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
7413
|
+
# review or moderation provider).
|
|
7334
7414
|
source_type:,
|
|
7335
7415
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
7336
7416
|
timestamp:,
|
|
@@ -7368,7 +7448,8 @@ module SafetyKit
|
|
|
7368
7448
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label
|
|
7369
7449
|
],
|
|
7370
7450
|
source_id: String,
|
|
7371
|
-
source_type:
|
|
7451
|
+
source_type:
|
|
7452
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
7372
7453
|
timestamp: Time,
|
|
7373
7454
|
type: Symbol,
|
|
7374
7455
|
content:
|
|
@@ -7423,6 +7504,55 @@ module SafetyKit
|
|
|
7423
7504
|
end
|
|
7424
7505
|
end
|
|
7425
7506
|
|
|
7507
|
+
# Coarse attribution category for the moderation decision source. Supported
|
|
7508
|
+
# values: human_moderator (a human reviewer in your moderation workflow),
|
|
7509
|
+
# expert_labeler (a dedicated labeling or quality review workflow), automation (an
|
|
7510
|
+
# automated model, rules engine, or enforcement workflow), or vendor (an external
|
|
7511
|
+
# review or moderation provider).
|
|
7512
|
+
module SourceType
|
|
7513
|
+
extend SafetyKit::Internal::Type::Enum
|
|
7514
|
+
|
|
7515
|
+
TaggedSymbol =
|
|
7516
|
+
T.type_alias do
|
|
7517
|
+
T.all(
|
|
7518
|
+
Symbol,
|
|
7519
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType
|
|
7520
|
+
)
|
|
7521
|
+
end
|
|
7522
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
7523
|
+
|
|
7524
|
+
HUMAN_MODERATOR =
|
|
7525
|
+
T.let(
|
|
7526
|
+
:human_moderator,
|
|
7527
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7528
|
+
)
|
|
7529
|
+
EXPERT_LABELER =
|
|
7530
|
+
T.let(
|
|
7531
|
+
:expert_labeler,
|
|
7532
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7533
|
+
)
|
|
7534
|
+
AUTOMATION =
|
|
7535
|
+
T.let(
|
|
7536
|
+
:automation,
|
|
7537
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7538
|
+
)
|
|
7539
|
+
VENDOR =
|
|
7540
|
+
T.let(
|
|
7541
|
+
:vendor,
|
|
7542
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7543
|
+
)
|
|
7544
|
+
|
|
7545
|
+
sig do
|
|
7546
|
+
override.returns(
|
|
7547
|
+
T::Array[
|
|
7548
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7549
|
+
]
|
|
7550
|
+
)
|
|
7551
|
+
end
|
|
7552
|
+
def self.values
|
|
7553
|
+
end
|
|
7554
|
+
end
|
|
7555
|
+
|
|
7426
7556
|
# User-authored text content associated with an event.
|
|
7427
7557
|
module Content
|
|
7428
7558
|
extend SafetyKit::Internal::Type::Union
|
|
@@ -1253,7 +1253,7 @@ module SafetyKit
|
|
|
1253
1253
|
event_name: String,
|
|
1254
1254
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1255
1255
|
source_id: String,
|
|
1256
|
-
source_type:
|
|
1256
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1257
1257
|
timestamp: Time,
|
|
1258
1258
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1259
1259
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1272,7 +1272,7 @@ module SafetyKit
|
|
|
1272
1272
|
|
|
1273
1273
|
attr_accessor source_id: String
|
|
1274
1274
|
|
|
1275
|
-
attr_accessor source_type:
|
|
1275
|
+
attr_accessor source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type
|
|
1276
1276
|
|
|
1277
1277
|
attr_accessor timestamp: Time
|
|
1278
1278
|
|
|
@@ -1316,7 +1316,7 @@ module SafetyKit
|
|
|
1316
1316
|
event_name: String,
|
|
1317
1317
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1318
1318
|
source_id: String,
|
|
1319
|
-
source_type:
|
|
1319
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1320
1320
|
timestamp: Time,
|
|
1321
1321
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1322
1322
|
?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1332,7 +1332,7 @@ module SafetyKit
|
|
|
1332
1332
|
event_name: String,
|
|
1333
1333
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1334
1334
|
source_id: String,
|
|
1335
|
-
source_type:
|
|
1335
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1336
1336
|
timestamp: Time,
|
|
1337
1337
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1338
1338
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1354,6 +1354,20 @@ module SafetyKit
|
|
|
1354
1354
|
def to_hash: -> { label: String }
|
|
1355
1355
|
end
|
|
1356
1356
|
|
|
1357
|
+
type source_type =
|
|
1358
|
+
:human_moderator | :expert_labeler | :automation | :vendor
|
|
1359
|
+
|
|
1360
|
+
module SourceType
|
|
1361
|
+
extend SafetyKit::Internal::Type::Enum
|
|
1362
|
+
|
|
1363
|
+
HUMAN_MODERATOR: :human_moderator
|
|
1364
|
+
EXPERT_LABELER: :expert_labeler
|
|
1365
|
+
AUTOMATION: :automation
|
|
1366
|
+
VENDOR: :vendor
|
|
1367
|
+
|
|
1368
|
+
def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type]
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1357
1371
|
type type_ = :moderation_decision
|
|
1358
1372
|
|
|
1359
1373
|
module Type
|
|
@@ -2700,7 +2714,7 @@ module SafetyKit
|
|
|
2700
2714
|
event_name: String,
|
|
2701
2715
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2702
2716
|
source_id: String,
|
|
2703
|
-
source_type:
|
|
2717
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2704
2718
|
timestamp: Time,
|
|
2705
2719
|
type: :moderation_decision,
|
|
2706
2720
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
@@ -2719,7 +2733,7 @@ module SafetyKit
|
|
|
2719
2733
|
|
|
2720
2734
|
attr_accessor source_id: String
|
|
2721
2735
|
|
|
2722
|
-
attr_accessor source_type:
|
|
2736
|
+
attr_accessor source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type
|
|
2723
2737
|
|
|
2724
2738
|
attr_accessor timestamp: Time
|
|
2725
2739
|
|
|
@@ -2763,7 +2777,7 @@ module SafetyKit
|
|
|
2763
2777
|
event_name: String,
|
|
2764
2778
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2765
2779
|
source_id: String,
|
|
2766
|
-
source_type:
|
|
2780
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2767
2781
|
timestamp: Time,
|
|
2768
2782
|
?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
2769
2783
|
?content_id: String,
|
|
@@ -2779,7 +2793,7 @@ module SafetyKit
|
|
|
2779
2793
|
event_name: String,
|
|
2780
2794
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2781
2795
|
source_id: String,
|
|
2782
|
-
source_type:
|
|
2796
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2783
2797
|
timestamp: Time,
|
|
2784
2798
|
type: :moderation_decision,
|
|
2785
2799
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
@@ -2801,6 +2815,20 @@ module SafetyKit
|
|
|
2801
2815
|
def to_hash: -> { label: String }
|
|
2802
2816
|
end
|
|
2803
2817
|
|
|
2818
|
+
type source_type =
|
|
2819
|
+
:human_moderator | :expert_labeler | :automation | :vendor
|
|
2820
|
+
|
|
2821
|
+
module SourceType
|
|
2822
|
+
extend SafetyKit::Internal::Type::Enum
|
|
2823
|
+
|
|
2824
|
+
HUMAN_MODERATOR: :human_moderator
|
|
2825
|
+
EXPERT_LABELER: :expert_labeler
|
|
2826
|
+
AUTOMATION: :automation
|
|
2827
|
+
VENDOR: :vendor
|
|
2828
|
+
|
|
2829
|
+
def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type]
|
|
2830
|
+
end
|
|
2831
|
+
|
|
2804
2832
|
type content =
|
|
2805
2833
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Content::EventTextContent
|
|
2806
2834
|
| SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Content::EventImageContent
|
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.22.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-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|