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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20d3aecc7c612369106eaf3ee5313552b6a8d7a424b4933f0f61886d33da82f9
4
- data.tar.gz: 8ff9b5805aa1294d25e272717c0d9003e6a1e2ce365c057596da0c3200667ac4
3
+ metadata.gz: a2b54d3603f6ffc6f1c75c290a75f9b75e58fa2a431e15db1d8c6689fe6110b6
4
+ data.tar.gz: c278fe682f77a5eeb914a211c09363159a3ef82bc12319e0095ff2f70b1759b0
5
5
  SHA512:
6
- metadata.gz: 1c87153df872b1a219a2b0c5bfd409a2b4900b97591a4972e4edcee086ee4ce5f4d85fee61938cfd2c094762eb2243d1336a20ba9028604922d0d44cc404144d
7
- data.tar.gz: 4886985b7b7e3865a5fd25f168fb8a37195ad94389f777acb029002904093e7bc9f59822687dafeb843eba22552e600d9cd72b6bcdc1b7a06f5f13b6cf6ed993
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
@@ -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.22.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -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. For automation, use a versioned system
1606
- # identifier; for human_moderator, use the manual reviewer id.
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. Use one of human_moderator,
1613
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system ide
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. Use one of human_moderator,
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. Use one of human_moderator,
1732
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system
3482
- # identifier; for human_moderator, use the manual reviewer id.
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. Use one of human_moderator,
3489
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system ide
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. Use one of human_moderator,
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. Use one of human_moderator,
3607
- # expert_labeler, automation, or vendor.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.21.0"
4
+ VERSION = "0.22.0"
5
5
  end
@@ -3376,13 +3376,18 @@ 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: 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. Use one of human_moderator,
3385
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system
3558
- # identifier; for human_moderator, use the manual reviewer id.
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. Use one of human_moderator,
3561
- # expert_labeler, automation, or vendor.
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. Use one of human_moderator,
3657
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system
7214
- # identifier; for human_moderator, use the manual reviewer id.
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. Use one of human_moderator,
7219
- # expert_labeler, automation, or vendor.
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. For automation, use a versioned system
7387
- # identifier; for human_moderator, use the manual reviewer id.
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. Use one of human_moderator,
7390
- # expert_labeler, automation, or vendor.
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. Use one of human_moderator,
7485
- # expert_labeler, automation, or vendor.
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.21.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-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