safetykit 0.21.0 → 0.23.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20d3aecc7c612369106eaf3ee5313552b6a8d7a424b4933f0f61886d33da82f9
4
- data.tar.gz: 8ff9b5805aa1294d25e272717c0d9003e6a1e2ce365c057596da0c3200667ac4
3
+ metadata.gz: 124d1e9acdbc46bd7f96c091611b44a44018c2bf6bdeb44a316e12aa3256771b
4
+ data.tar.gz: 139c0f2bd21a727538530d4aa85bb817ca2d19afc0faaeaeaa0fae718ebc57ad
5
5
  SHA512:
6
- metadata.gz: 1c87153df872b1a219a2b0c5bfd409a2b4900b97591a4972e4edcee086ee4ce5f4d85fee61938cfd2c094762eb2243d1336a20ba9028604922d0d44cc404144d
7
- data.tar.gz: 4886985b7b7e3865a5fd25f168fb8a37195ad94389f777acb029002904093e7bc9f59822687dafeb843eba22552e600d9cd72b6bcdc1b7a06f5f13b6cf6ed993
6
+ metadata.gz: c96b5184a938c1a6c206fbd77077f4e1f0bea8059329ccb7e9cd755148d14e86ea7db6051dcb9b61eef372ad64b490f1b2973ec2e54cc9197aab6128255d93eb
7
+ data.tar.gz: 9d2f7e60e3b23acaa442548fcb16a80c8487bf3a731982ea0139624d81f24f429ded56f4079e0dca9787f8065c9292cee9bdeb74f2575d433ca8dd0261b2d841
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.23.0 (2026-06-09)
4
+
5
+ Full Changelog: [v0.22.0...v0.23.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.22.0...v0.23.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e094686](https://github.com/GetSafetyKit/safetykit-ruby/commit/e09468636d83ce7137e5df336b83c4276299ed67))
10
+
11
+ ## 0.22.0 (2026-06-09)
12
+
13
+ Full Changelog: [v0.21.0...v0.22.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.21.0...v0.22.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([49c464a](https://github.com/GetSafetyKit/safetykit-ruby/commit/49c464a832308ecc927b7f8bbe4827434163d0f6))
18
+
3
19
  ## 0.21.0 (2026-06-04)
4
20
 
5
21
  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
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "safetykit", "~> 0.21.0"
20
+ gem "safetykit", "~> 0.23.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -1602,15 +1602,19 @@ 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. For automation, use a versioned system
1606
- # identifier; for human_moderator, use the manual reviewer id.
1605
+ # Stable identifier within source_type. Examples: moderator@example.com or
1606
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
1607
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
1607
1608
  #
1608
1609
  # @return [String]
1609
1610
  required :source_id, String
1610
1611
 
1611
1612
  # @!attribute source_type
1612
- # Coarse attribution category for the decision source. Use one of human_moderator,
1613
- # expert_labeler, automation, or vendor.
1613
+ # Coarse attribution category for the moderation decision source. Supported
1614
+ # values: human_moderator (a human reviewer in your moderation workflow),
1615
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
1616
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
1617
+ # review or moderation provider).
1614
1618
  #
1615
1619
  # @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType]
1616
1620
  required :source_type,
@@ -1693,9 +1697,9 @@ module SafetyKit
1693
1697
  #
1694
1698
  # @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label>] One or more label categories supplied with the report.
1695
1699
  #
1696
- # @param source_id [String] Stable identifier within source_type. For automation, use a versioned system ide
1700
+ # @param source_id [String] Stable identifier within source_type. Examples: moderator@example.com or 550e840
1697
1701
  #
1698
- # @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the decision source. Use one of human_moderator,
1702
+ # @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the moderation decision source. Supported values
1699
1703
  #
1700
1704
  # @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
1701
1705
  #
@@ -1728,8 +1732,11 @@ module SafetyKit
1728
1732
  # @param label [String] Stable snake_case report label category.
1729
1733
  end
1730
1734
 
1731
- # Coarse attribution category for the decision source. Use one of human_moderator,
1732
- # expert_labeler, automation, or vendor.
1735
+ # Coarse attribution category for the moderation decision source. Supported
1736
+ # values: human_moderator (a human reviewer in your moderation workflow),
1737
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
1738
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
1739
+ # review or moderation provider).
1733
1740
  #
1734
1741
  # @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#source_type
1735
1742
  module SourceType
@@ -3478,15 +3485,19 @@ module SafetyKit
3478
3485
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label] }
3479
3486
 
3480
3487
  # @!attribute source_id
3481
- # Stable identifier within source_type. For automation, use a versioned system
3482
- # identifier; for human_moderator, use the manual reviewer id.
3488
+ # Stable identifier within source_type. Examples: moderator@example.com or
3489
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
3490
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
3483
3491
  #
3484
3492
  # @return [String]
3485
3493
  required :source_id, String
3486
3494
 
3487
3495
  # @!attribute source_type
3488
- # Coarse attribution category for the decision source. Use one of human_moderator,
3489
- # expert_labeler, automation, or vendor.
3496
+ # Coarse attribution category for the moderation decision source. Supported
3497
+ # values: human_moderator (a human reviewer in your moderation workflow),
3498
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
3499
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
3500
+ # review or moderation provider).
3490
3501
  #
3491
3502
  # @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType]
3492
3503
  required :source_type,
@@ -3568,9 +3579,9 @@ module SafetyKit
3568
3579
  #
3569
3580
  # @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label>] One or more label categories supplied with the report.
3570
3581
  #
3571
- # @param source_id [String] Stable identifier within source_type. For automation, use a versioned system ide
3582
+ # @param source_id [String] Stable identifier within source_type. Examples: moderator@example.com or 550e840
3572
3583
  #
3573
- # @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the decision source. Use one of human_moderator,
3584
+ # @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the moderation decision source. Supported values
3574
3585
  #
3575
3586
  # @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
3576
3587
  #
@@ -3603,8 +3614,11 @@ module SafetyKit
3603
3614
  # @param label [String] Stable snake_case report label category.
3604
3615
  end
3605
3616
 
3606
- # Coarse attribution category for the decision source. Use one of human_moderator,
3607
- # expert_labeler, automation, or vendor.
3617
+ # Coarse attribution category for the moderation decision source. Supported
3618
+ # values: human_moderator (a human reviewer in your moderation workflow),
3619
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
3620
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
3621
+ # review or moderation provider).
3608
3622
  #
3609
3623
  # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision#source_type
3610
3624
  module SourceType
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.21.0"
4
+ VERSION = "0.23.0"
5
5
  end
@@ -3376,13 +3376,17 @@ module SafetyKit
3376
3376
  end
3377
3377
  attr_accessor :labels
3378
3378
 
3379
- # Stable identifier within source_type. For automation, use a versioned system
3380
- # identifier; for human_moderator, use the manual reviewer id.
3379
+ # Stable identifier within source_type. Examples: moderator@example.com or
3380
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
3381
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
3381
3382
  sig { returns(String) }
3382
3383
  attr_accessor :source_id
3383
3384
 
3384
- # Coarse attribution category for the decision source. Use one of human_moderator,
3385
- # expert_labeler, automation, or vendor.
3385
+ # Coarse attribution category for the moderation decision source. Supported
3386
+ # values: human_moderator (a human reviewer in your moderation workflow),
3387
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
3388
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
3389
+ # review or moderation provider).
3386
3390
  sig do
3387
3391
  returns(
3388
3392
  SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol
@@ -3554,11 +3558,15 @@ module SafetyKit
3554
3558
  event_name:,
3555
3559
  # One or more label categories supplied with the report.
3556
3560
  labels:,
3557
- # Stable identifier within source_type. For automation, use a versioned system
3558
- # identifier; for human_moderator, use the manual reviewer id.
3561
+ # Stable identifier within source_type. Examples: moderator@example.com or
3562
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
3563
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
3559
3564
  source_id:,
3560
- # Coarse attribution category for the decision source. Use one of human_moderator,
3561
- # expert_labeler, automation, or vendor.
3565
+ # Coarse attribution category for the moderation decision source. Supported
3566
+ # values: human_moderator (a human reviewer in your moderation workflow),
3567
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
3568
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
3569
+ # review or moderation provider).
3562
3570
  source_type:,
3563
3571
  # The time the event occurred in your system, as an ISO 8601 datetime string.
3564
3572
  timestamp:,
@@ -3653,8 +3661,11 @@ module SafetyKit
3653
3661
  end
3654
3662
  end
3655
3663
 
3656
- # Coarse attribution category for the decision source. Use one of human_moderator,
3657
- # expert_labeler, automation, or vendor.
3664
+ # Coarse attribution category for the moderation decision source. Supported
3665
+ # values: human_moderator (a human reviewer in your moderation workflow),
3666
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
3667
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
3668
+ # review or moderation provider).
3658
3669
  module SourceType
3659
3670
  extend SafetyKit::Internal::Type::Enum
3660
3671
 
@@ -7210,13 +7221,17 @@ module SafetyKit
7210
7221
  end
7211
7222
  attr_accessor :labels
7212
7223
 
7213
- # Stable identifier within source_type. For automation, use a versioned system
7214
- # identifier; for human_moderator, use the manual reviewer id.
7224
+ # Stable identifier within source_type. Examples: moderator@example.com or
7225
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
7226
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
7215
7227
  sig { returns(String) }
7216
7228
  attr_accessor :source_id
7217
7229
 
7218
- # Coarse attribution category for the decision source. Use one of human_moderator,
7219
- # expert_labeler, automation, or vendor.
7230
+ # Coarse attribution category for the moderation decision source. Supported
7231
+ # values: human_moderator (a human reviewer in your moderation workflow),
7232
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
7233
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
7234
+ # review or moderation provider).
7220
7235
  sig do
7221
7236
  returns(
7222
7237
  SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol
@@ -7383,11 +7398,15 @@ module SafetyKit
7383
7398
  event_name:,
7384
7399
  # One or more label categories supplied with the report.
7385
7400
  labels:,
7386
- # Stable identifier within source_type. For automation, use a versioned system
7387
- # identifier; for human_moderator, use the manual reviewer id.
7401
+ # Stable identifier within source_type. Examples: moderator@example.com or
7402
+ # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
7403
+ # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
7388
7404
  source_id:,
7389
- # Coarse attribution category for the decision source. Use one of human_moderator,
7390
- # expert_labeler, automation, or vendor.
7405
+ # Coarse attribution category for the moderation decision source. Supported
7406
+ # values: human_moderator (a human reviewer in your moderation workflow),
7407
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
7408
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
7409
+ # review or moderation provider).
7391
7410
  source_type:,
7392
7411
  # The time the event occurred in your system, as an ISO 8601 datetime string.
7393
7412
  timestamp:,
@@ -7481,8 +7500,11 @@ module SafetyKit
7481
7500
  end
7482
7501
  end
7483
7502
 
7484
- # Coarse attribution category for the decision source. Use one of human_moderator,
7485
- # expert_labeler, automation, or vendor.
7503
+ # Coarse attribution category for the moderation decision source. Supported
7504
+ # values: human_moderator (a human reviewer in your moderation workflow),
7505
+ # expert_labeler (a dedicated labeling or quality review workflow), automation (an
7506
+ # automated model, rules engine, or enforcement workflow), or vendor (an external
7507
+ # review or moderation provider).
7486
7508
  module SourceType
7487
7509
  extend SafetyKit::Internal::Type::Enum
7488
7510
 
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.21.0
4
+ version: 0.23.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-04 00:00:00.000000000 Z
11
+ date: 2026-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi