safetykit 0.16.0 → 0.17.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: eda8e556e2383640193363649ec57cb555089e3ec3261564d52f177c83f899ac
4
- data.tar.gz: 4afc7c6e3fb6956d0bcbd92f988a5021ece65b8ebf7de6313ab53ad382f05856
3
+ metadata.gz: b0ecade3f1646b38f5167b2a30723332e0690fd068445954238f877cefa931f6
4
+ data.tar.gz: 756251ed16bd2fc4325a64f6a8d491131c6933c1cbfc12324533072ad1ced668
5
5
  SHA512:
6
- metadata.gz: 00a8593343411334d9bb7aaa98df728c92f2f799542a411113f96d0b2efba66f254b769ea3b1bf1959275c5a0153c249cca5f0227cc4ae853ee3ca6c59e2c3ab
7
- data.tar.gz: 571ba6a600e2178883eda5499caa03a50f10a6e615904fc0e0d2dfe6cf42bd89ec2ba0b918612d00c9a1b049e02cc7aaaf1f3b2ad3292316b1018949e79717d5
6
+ metadata.gz: bef0b524ecd766e589ea73ed2c828c09e8bf47090c6818a3a3647ccbb0acc94232b30ffc944798ec6bfe4654933b8e62e5da56a777009e38466f042291d1c023
7
+ data.tar.gz: 133a4e9be9453a4d99ce72528439c6333dc8b2c867cf9576702fe1557fe3be70ffc49c6fa2fdaff9cead4c0fefd71b83674202152c5b07fcc0e2077571fcccb8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 (2026-06-03)
4
+
5
+ Full Changelog: [v0.16.0...v0.17.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.16.0...v0.17.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f26d25e](https://github.com/GetSafetyKit/safetykit-ruby/commit/f26d25e37b4bc11b9a1947b382ce0226f03cb5c8))
10
+
3
11
  ## 0.16.0 (2026-06-03)
4
12
 
5
13
  Full Changelog: [v0.15.0...v0.16.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.15.0...v0.16.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.16.0"
20
+ gem "safetykit", "~> 0.17.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -42,7 +42,7 @@ module SafetyKit
42
42
  # A user or account profile, contact detail, payment detail, or public bio changes.
43
43
  variant -> { SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest }
44
44
 
45
- # A user-submitted report. Use user_id for the reporter, content and content_id for the report itself, and target_user_id or target_content_id for what was reported.
45
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id when a user is reported, target_content_id when content is reported, and both when the report is about content associated with a user. Use content and content_id for the report itself.
46
46
  variant -> { SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest }
47
47
 
48
48
  variant -> { SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5Array }
@@ -1275,8 +1275,7 @@ module SafetyKit
1275
1275
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed] }
1276
1276
 
1277
1277
  # @!attribute target_content_id
1278
- # Your stable identifier for the user-owned content that is the target of a
1279
- # report.
1278
+ # Your stable identifier for the content being reported.
1280
1279
  #
1281
1280
  # @return [String, nil]
1282
1281
  optional :target_content_id, String
@@ -1292,9 +1291,10 @@ module SafetyKit
1292
1291
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest} for
1293
1292
  # more details.
1294
1293
  #
1295
- # A user-submitted report. Use user_id for the reporter, content and content_id
1296
- # for the report itself, and target_user_id or target_content_id for what was
1297
- # reported.
1294
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id
1295
+ # when a user is reported, target_content_id when content is reported, and both
1296
+ # when the report is about content associated with a user. Use content and
1297
+ # content_id for the report itself.
1298
1298
  #
1299
1299
  # @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
1300
1300
  #
@@ -1314,7 +1314,7 @@ module SafetyKit
1314
1314
  #
1315
1315
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
1316
1316
  #
1317
- # @param target_content_id [String] Your stable identifier for the user-owned content that is the target of a report
1317
+ # @param target_content_id [String] Your stable identifier for the content being reported.
1318
1318
  #
1319
1319
  # @param target_user_id [String] Your stable canonical identifier for the user being reported.
1320
1320
 
@@ -1556,7 +1556,7 @@ module SafetyKit
1556
1556
  # A user or account profile, contact detail, payment detail, or public bio changes.
1557
1557
  variant :update_account, -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount }
1558
1558
 
1559
- # A user-submitted report. Use user_id for the reporter, content and content_id for the report itself, and target_user_id or target_content_id for what was reported.
1559
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id when a user is reported, target_content_id when content is reported, and both when the report is about content associated with a user. Use content and content_id for the report itself.
1560
1560
  variant :user_report, -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserReport }
1561
1561
 
1562
1562
  class UserContact < SafetyKit::Internal::Type::BaseModel
@@ -2747,8 +2747,7 @@ module SafetyKit
2747
2747
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed] }
2748
2748
 
2749
2749
  # @!attribute target_content_id
2750
- # Your stable identifier for the user-owned content that is the target of a
2751
- # report.
2750
+ # Your stable identifier for the content being reported.
2752
2751
  #
2753
2752
  # @return [String, nil]
2754
2753
  optional :target_content_id, String
@@ -2764,9 +2763,10 @@ module SafetyKit
2764
2763
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport} for
2765
2764
  # more details.
2766
2765
  #
2767
- # A user-submitted report. Use user_id for the reporter, content and content_id
2768
- # for the report itself, and target_user_id or target_content_id for what was
2769
- # reported.
2766
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id
2767
+ # when a user is reported, target_content_id when content is reported, and both
2768
+ # when the report is about content associated with a user. Use content and
2769
+ # content_id for the report itself.
2770
2770
  #
2771
2771
  # @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
2772
2772
  #
@@ -2784,7 +2784,7 @@ module SafetyKit
2784
2784
  #
2785
2785
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
2786
2786
  #
2787
- # @param target_content_id [String] Your stable identifier for the user-owned content that is the target of a report
2787
+ # @param target_content_id [String] Your stable identifier for the content being reported.
2788
2788
  #
2789
2789
  # @param target_user_id [String] Your stable canonical identifier for the user being reported.
2790
2790
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.16.0"
4
+ VERSION = "0.17.0"
5
5
  end
@@ -2716,8 +2716,7 @@ module SafetyKit
2716
2716
  end
2717
2717
  attr_writer :resources_used
2718
2718
 
2719
- # Your stable identifier for the user-owned content that is the target of a
2720
- # report.
2719
+ # Your stable identifier for the content being reported.
2721
2720
  sig { returns(T.nilable(String)) }
2722
2721
  attr_reader :target_content_id
2723
2722
 
@@ -2731,9 +2730,10 @@ module SafetyKit
2731
2730
  sig { params(target_user_id: String).void }
2732
2731
  attr_writer :target_user_id
2733
2732
 
2734
- # A user-submitted report. Use user_id for the reporter, content and content_id
2735
- # for the report itself, and target_user_id or target_content_id for what was
2736
- # reported.
2733
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id
2734
+ # when a user is reported, target_content_id when content is reported, and both
2735
+ # when the report is about content associated with a user. Use content and
2736
+ # content_id for the report itself.
2737
2737
  sig do
2738
2738
  params(
2739
2739
  event_name: String,
@@ -2791,8 +2791,7 @@ module SafetyKit
2791
2791
  # numbers, names, addresses, social handles, URLs, payment identifiers, or similar
2792
2792
  # identifiers.
2793
2793
  resources_used: nil,
2794
- # Your stable identifier for the user-owned content that is the target of a
2795
- # report.
2794
+ # Your stable identifier for the content being reported.
2796
2795
  target_content_id: nil,
2797
2796
  # Your stable canonical identifier for the user being reported.
2798
2797
  target_user_id: nil
@@ -5750,8 +5749,7 @@ module SafetyKit
5750
5749
  end
5751
5750
  attr_writer :resources_used
5752
5751
 
5753
- # Your stable identifier for the user-owned content that is the target of a
5754
- # report.
5752
+ # Your stable identifier for the content being reported.
5755
5753
  sig { returns(T.nilable(String)) }
5756
5754
  attr_reader :target_content_id
5757
5755
 
@@ -5765,9 +5763,10 @@ module SafetyKit
5765
5763
  sig { params(target_user_id: String).void }
5766
5764
  attr_writer :target_user_id
5767
5765
 
5768
- # A user-submitted report. Use user_id for the reporter, content and content_id
5769
- # for the report itself, and target_user_id or target_content_id for what was
5770
- # reported.
5766
+ # A user-submitted report. Use user_id for the reporter. Include target_user_id
5767
+ # when a user is reported, target_content_id when content is reported, and both
5768
+ # when the report is about content associated with a user. Use content and
5769
+ # content_id for the report itself.
5771
5770
  sig do
5772
5771
  params(
5773
5772
  event_name: String,
@@ -5823,8 +5822,7 @@ module SafetyKit
5823
5822
  # numbers, names, addresses, social handles, URLs, payment identifiers, or similar
5824
5823
  # identifiers.
5825
5824
  resources_used: nil,
5826
- # Your stable identifier for the user-owned content that is the target of a
5827
- # report.
5825
+ # Your stable identifier for the content being reported.
5828
5826
  target_content_id: nil,
5829
5827
  # Your stable canonical identifier for the user being reported.
5830
5828
  target_user_id: nil,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safetykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Safetykit