safetykit 0.21.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 +8 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/beta/event_create_params.rb +32 -16
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +46 -20
- 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 0.21.0 (2026-06-04)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.20.0...v0.21.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.20.0...v0.21.0)
|
data/README.md
CHANGED
|
@@ -1602,15 +1602,20 @@ 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
|
-
# Coarse attribution category for the decision source.
|
|
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
1620
|
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType]
|
|
1616
1621
|
required :source_type,
|
|
@@ -1693,9 +1698,9 @@ module SafetyKit
|
|
|
1693
1698
|
#
|
|
1694
1699
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label>] One or more label categories supplied with the report.
|
|
1695
1700
|
#
|
|
1696
|
-
# @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
|
|
1697
1702
|
#
|
|
1698
|
-
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the decision source.
|
|
1703
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the moderation decision source. Supported values
|
|
1699
1704
|
#
|
|
1700
1705
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
1701
1706
|
#
|
|
@@ -1728,8 +1733,11 @@ module SafetyKit
|
|
|
1728
1733
|
# @param label [String] Stable snake_case report label category.
|
|
1729
1734
|
end
|
|
1730
1735
|
|
|
1731
|
-
# Coarse attribution category for the decision source.
|
|
1732
|
-
#
|
|
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).
|
|
1733
1741
|
#
|
|
1734
1742
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#source_type
|
|
1735
1743
|
module SourceType
|
|
@@ -3478,15 +3486,20 @@ module SafetyKit
|
|
|
3478
3486
|
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label] }
|
|
3479
3487
|
|
|
3480
3488
|
# @!attribute source_id
|
|
3481
|
-
# Stable identifier within source_type.
|
|
3482
|
-
#
|
|
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.
|
|
3483
3493
|
#
|
|
3484
3494
|
# @return [String]
|
|
3485
3495
|
required :source_id, String
|
|
3486
3496
|
|
|
3487
3497
|
# @!attribute source_type
|
|
3488
|
-
# Coarse attribution category for the decision source.
|
|
3489
|
-
#
|
|
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).
|
|
3490
3503
|
#
|
|
3491
3504
|
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType]
|
|
3492
3505
|
required :source_type,
|
|
@@ -3568,9 +3581,9 @@ module SafetyKit
|
|
|
3568
3581
|
#
|
|
3569
3582
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label>] One or more label categories supplied with the report.
|
|
3570
3583
|
#
|
|
3571
|
-
# @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
|
|
3572
3585
|
#
|
|
3573
|
-
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the decision source.
|
|
3586
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the moderation decision source. Supported values
|
|
3574
3587
|
#
|
|
3575
3588
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3576
3589
|
#
|
|
@@ -3603,8 +3616,11 @@ module SafetyKit
|
|
|
3603
3616
|
# @param label [String] Stable snake_case report label category.
|
|
3604
3617
|
end
|
|
3605
3618
|
|
|
3606
|
-
# Coarse attribution category for the decision source.
|
|
3607
|
-
#
|
|
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).
|
|
3608
3624
|
#
|
|
3609
3625
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision#source_type
|
|
3610
3626
|
module SourceType
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -3376,13 +3376,18 @@ 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
|
-
# Coarse attribution category for the decision source.
|
|
3385
|
-
#
|
|
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).
|
|
3386
3391
|
sig do
|
|
3387
3392
|
returns(
|
|
3388
3393
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol
|
|
@@ -3554,11 +3559,16 @@ module SafetyKit
|
|
|
3554
3559
|
event_name:,
|
|
3555
3560
|
# One or more label categories supplied with the report.
|
|
3556
3561
|
labels:,
|
|
3557
|
-
# Stable identifier within source_type.
|
|
3558
|
-
#
|
|
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.
|
|
3559
3566
|
source_id:,
|
|
3560
|
-
# Coarse attribution category for the decision source.
|
|
3561
|
-
#
|
|
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).
|
|
3562
3572
|
source_type:,
|
|
3563
3573
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3564
3574
|
timestamp:,
|
|
@@ -3653,8 +3663,11 @@ module SafetyKit
|
|
|
3653
3663
|
end
|
|
3654
3664
|
end
|
|
3655
3665
|
|
|
3656
|
-
# Coarse attribution category for the decision source.
|
|
3657
|
-
#
|
|
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).
|
|
3658
3671
|
module SourceType
|
|
3659
3672
|
extend SafetyKit::Internal::Type::Enum
|
|
3660
3673
|
|
|
@@ -7210,13 +7223,18 @@ module SafetyKit
|
|
|
7210
7223
|
end
|
|
7211
7224
|
attr_accessor :labels
|
|
7212
7225
|
|
|
7213
|
-
# Stable identifier within source_type.
|
|
7214
|
-
#
|
|
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.
|
|
7215
7230
|
sig { returns(String) }
|
|
7216
7231
|
attr_accessor :source_id
|
|
7217
7232
|
|
|
7218
|
-
# Coarse attribution category for the decision source.
|
|
7219
|
-
#
|
|
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).
|
|
7220
7238
|
sig do
|
|
7221
7239
|
returns(
|
|
7222
7240
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol
|
|
@@ -7383,11 +7401,16 @@ module SafetyKit
|
|
|
7383
7401
|
event_name:,
|
|
7384
7402
|
# One or more label categories supplied with the report.
|
|
7385
7403
|
labels:,
|
|
7386
|
-
# Stable identifier within source_type.
|
|
7387
|
-
#
|
|
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.
|
|
7388
7408
|
source_id:,
|
|
7389
|
-
# Coarse attribution category for the decision source.
|
|
7390
|
-
#
|
|
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).
|
|
7391
7414
|
source_type:,
|
|
7392
7415
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
7393
7416
|
timestamp:,
|
|
@@ -7481,8 +7504,11 @@ module SafetyKit
|
|
|
7481
7504
|
end
|
|
7482
7505
|
end
|
|
7483
7506
|
|
|
7484
|
-
# Coarse attribution category for the decision source.
|
|
7485
|
-
#
|
|
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).
|
|
7486
7512
|
module SourceType
|
|
7487
7513
|
extend SafetyKit::Internal::Type::Enum
|
|
7488
7514
|
|
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
|