safetykit 0.18.0 → 0.19.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: 413a9cec0b1a551a752c42c9f5e3ce4daf023a8e2e87e74d1f5c09131f4534ba
4
- data.tar.gz: 63a377248a28107d2b1d6cbbfe12cd3e4bda8fd0ac158c011674adb82b0686f5
3
+ metadata.gz: 57d485603b8a08999c30bb9ae32cdb9b7ae3cc622fc44f7b1ea24737dd2bef1c
4
+ data.tar.gz: 2fb6735c1072097f85e8c232423719b3682bf22c4b992ea203a550fa23da5f93
5
5
  SHA512:
6
- metadata.gz: d1e30c5173431b65b8fe5e8740943747b92b4e931ca59e36759579e9ac79c6f276b7c045d9b284f3a1fc7f974c2e08b8d7b15b3fb66d16d5b19aca9f91b12bb9
7
- data.tar.gz: 61829871e916081aeb8daaf1be1876433a70a245b676cfcfddf84ce53db9324062b11b6cff8e6bc9cb2c3056cf2d0017ad078ee1225c8d94f1cf3b5aca32fb04
6
+ metadata.gz: 7879247b60caaeb22c6a5116111d7326336c6d875db544ef34d26801ce7c3f6e10bcc3c9da05c32cc0ee6f008357b0d2bc01983a79a68a9ec6ab1d35057f9fee
7
+ data.tar.gz: ac8f6de92d8cde8c0e7903b0454239416ac9803bbe96a35bb696cf823f904dc974308d12b497a27ba875258ac93970de841addbceab6f64da9c2884207b2343c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.0 (2026-06-04)
4
+
5
+ Full Changelog: [v0.18.0...v0.19.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.18.0...v0.19.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([5fda740](https://github.com/GetSafetyKit/safetykit-ruby/commit/5fda74096035f1eec7079b379cae0447af005022))
10
+
3
11
  ## 0.18.0 (2026-06-03)
4
12
 
5
13
  Full Changelog: [v0.17.0...v0.18.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.17.0...v0.18.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.18.0"
20
+ gem "safetykit", "~> 0.19.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -95,6 +95,13 @@ module SafetyKit
95
95
  # @return [String, nil]
96
96
  optional :content_id, String
97
97
 
98
+ # @!attribute idempotency_key
99
+ # Optional caller-provided key used to make retries of this individual event
100
+ # idempotent. Reuse the same key only for retries of the same logical event.
101
+ #
102
+ # @return [String, nil]
103
+ optional :idempotency_key, String
104
+
98
105
  # @!attribute metadata
99
106
  # Non-PII product context for filtering, segmentation, and debugging. Values may
100
107
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -112,7 +119,7 @@ module SafetyKit
112
119
  optional :resources_used,
113
120
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed] }
114
121
 
115
- # @!method initialize(event_name:, target_user_id:, timestamp:, type:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil)
122
+ # @!method initialize(event_name:, target_user_id:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
116
123
  # Some parameter documentations has been truncated, see
117
124
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest} for
118
125
  # more details.
@@ -133,6 +140,8 @@ module SafetyKit
133
140
  #
134
141
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
135
142
  #
143
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
144
+ #
136
145
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
137
146
  #
138
147
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -385,6 +394,13 @@ module SafetyKit
385
394
  # @return [String, nil]
386
395
  optional :content_id, String
387
396
 
397
+ # @!attribute idempotency_key
398
+ # Optional caller-provided key used to make retries of this individual event
399
+ # idempotent. Reuse the same key only for retries of the same logical event.
400
+ #
401
+ # @return [String, nil]
402
+ optional :idempotency_key, String
403
+
388
404
  # @!attribute metadata
389
405
  # Non-PII product context for filtering, segmentation, and debugging. Values may
390
406
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -402,7 +418,7 @@ module SafetyKit
402
418
  optional :resources_used,
403
419
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed] }
404
420
 
405
- # @!method initialize(content:, event_name:, timestamp:, type:, user_id:, content_id: nil, metadata: nil, resources_used: nil)
421
+ # @!method initialize(content:, event_name:, timestamp:, type:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
406
422
  # Some parameter documentations has been truncated, see
407
423
  # {SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest}
408
424
  # for more details.
@@ -421,6 +437,8 @@ module SafetyKit
421
437
  #
422
438
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
423
439
  #
440
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
441
+ #
424
442
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
425
443
  #
426
444
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -673,6 +691,13 @@ module SafetyKit
673
691
  # @return [String, nil]
674
692
  optional :content_id, String
675
693
 
694
+ # @!attribute idempotency_key
695
+ # Optional caller-provided key used to make retries of this individual event
696
+ # idempotent. Reuse the same key only for retries of the same logical event.
697
+ #
698
+ # @return [String, nil]
699
+ optional :idempotency_key, String
700
+
676
701
  # @!attribute metadata
677
702
  # Non-PII product context for filtering, segmentation, and debugging. Values may
678
703
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -690,7 +715,7 @@ module SafetyKit
690
715
  optional :resources_used,
691
716
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed] }
692
717
 
693
- # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil)
718
+ # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
694
719
  # Some parameter documentations has been truncated, see
695
720
  # {SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest}
696
721
  # for more details.
@@ -709,6 +734,8 @@ module SafetyKit
709
734
  #
710
735
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
711
736
  #
737
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
738
+ #
712
739
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
713
740
  #
714
741
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -961,6 +988,13 @@ module SafetyKit
961
988
  # @return [String, nil]
962
989
  optional :content_id, String
963
990
 
991
+ # @!attribute idempotency_key
992
+ # Optional caller-provided key used to make retries of this individual event
993
+ # idempotent. Reuse the same key only for retries of the same logical event.
994
+ #
995
+ # @return [String, nil]
996
+ optional :idempotency_key, String
997
+
964
998
  # @!attribute metadata
965
999
  # Non-PII product context for filtering, segmentation, and debugging. Values may
966
1000
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -978,7 +1012,7 @@ module SafetyKit
978
1012
  optional :resources_used,
979
1013
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed] }
980
1014
 
981
- # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil)
1015
+ # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
982
1016
  # Some parameter documentations has been truncated, see
983
1017
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest}
984
1018
  # for more details.
@@ -998,6 +1032,8 @@ module SafetyKit
998
1032
  #
999
1033
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
1000
1034
  #
1035
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
1036
+ #
1001
1037
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
1002
1038
  #
1003
1039
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -1257,6 +1293,13 @@ module SafetyKit
1257
1293
  # @return [String, nil]
1258
1294
  optional :content_id, String
1259
1295
 
1296
+ # @!attribute idempotency_key
1297
+ # Optional caller-provided key used to make retries of this individual event
1298
+ # idempotent. Reuse the same key only for retries of the same logical event.
1299
+ #
1300
+ # @return [String, nil]
1301
+ optional :idempotency_key, String
1302
+
1260
1303
  # @!attribute metadata
1261
1304
  # Non-PII product context for filtering, segmentation, and debugging. Values may
1262
1305
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -1286,7 +1329,7 @@ module SafetyKit
1286
1329
  # @return [String, nil]
1287
1330
  optional :target_user_id, String
1288
1331
 
1289
- # @!method initialize(event_name:, labels:, timestamp:, type:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil)
1332
+ # @!method initialize(event_name:, labels:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil)
1290
1333
  # Some parameter documentations has been truncated, see
1291
1334
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest} for
1292
1335
  # more details.
@@ -1310,6 +1353,8 @@ module SafetyKit
1310
1353
  #
1311
1354
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
1312
1355
  #
1356
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
1357
+ #
1313
1358
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
1314
1359
  #
1315
1360
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -1607,6 +1652,13 @@ module SafetyKit
1607
1652
  # @return [String, nil]
1608
1653
  optional :content_id, String
1609
1654
 
1655
+ # @!attribute idempotency_key
1656
+ # Optional caller-provided key used to make retries of this individual event
1657
+ # idempotent. Reuse the same key only for retries of the same logical event.
1658
+ #
1659
+ # @return [String, nil]
1660
+ optional :idempotency_key, String
1661
+
1610
1662
  # @!attribute metadata
1611
1663
  # Non-PII product context for filtering, segmentation, and debugging. Values may
1612
1664
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -1624,7 +1676,7 @@ module SafetyKit
1624
1676
  optional :resources_used,
1625
1677
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserContact::ResourcesUsed] }
1626
1678
 
1627
- # @!method initialize(event_name:, target_user_id:, timestamp:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil, type: :user_contact)
1679
+ # @!method initialize(event_name:, target_user_id:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :user_contact)
1628
1680
  # Some parameter documentations has been truncated, see
1629
1681
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact}
1630
1682
  # for more details.
@@ -1643,6 +1695,8 @@ module SafetyKit
1643
1695
  #
1644
1696
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
1645
1697
  #
1698
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
1699
+ #
1646
1700
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
1647
1701
  #
1648
1702
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -1887,6 +1941,13 @@ module SafetyKit
1887
1941
  # @return [String, nil]
1888
1942
  optional :content_id, String
1889
1943
 
1944
+ # @!attribute idempotency_key
1945
+ # Optional caller-provided key used to make retries of this individual event
1946
+ # idempotent. Reuse the same key only for retries of the same logical event.
1947
+ #
1948
+ # @return [String, nil]
1949
+ optional :idempotency_key, String
1950
+
1890
1951
  # @!attribute metadata
1891
1952
  # Non-PII product context for filtering, segmentation, and debugging. Values may
1892
1953
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -1904,7 +1965,7 @@ module SafetyKit
1904
1965
  optional :resources_used,
1905
1966
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::ResourcesUsed] }
1906
1967
 
1907
- # @!method initialize(content:, event_name:, timestamp:, user_id:, content_id: nil, metadata: nil, resources_used: nil, type: :content_uploaded)
1968
+ # @!method initialize(content:, event_name:, timestamp:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :content_uploaded)
1908
1969
  # Some parameter documentations has been truncated, see
1909
1970
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded}
1910
1971
  # for more details.
@@ -1921,6 +1982,8 @@ module SafetyKit
1921
1982
  #
1922
1983
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
1923
1984
  #
1985
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
1986
+ #
1924
1987
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
1925
1988
  #
1926
1989
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -2165,6 +2228,13 @@ module SafetyKit
2165
2228
  # @return [String, nil]
2166
2229
  optional :content_id, String
2167
2230
 
2231
+ # @!attribute idempotency_key
2232
+ # Optional caller-provided key used to make retries of this individual event
2233
+ # idempotent. Reuse the same key only for retries of the same logical event.
2234
+ #
2235
+ # @return [String, nil]
2236
+ optional :idempotency_key, String
2237
+
2168
2238
  # @!attribute metadata
2169
2239
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2170
2240
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -2182,7 +2252,7 @@ module SafetyKit
2182
2252
  optional :resources_used,
2183
2253
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::ResourcesUsed] }
2184
2254
 
2185
- # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil, type: :create_account)
2255
+ # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :create_account)
2186
2256
  # Some parameter documentations has been truncated, see
2187
2257
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount}
2188
2258
  # for more details.
@@ -2199,6 +2269,8 @@ module SafetyKit
2199
2269
  #
2200
2270
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
2201
2271
  #
2272
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
2273
+ #
2202
2274
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
2203
2275
  #
2204
2276
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -2443,6 +2515,13 @@ module SafetyKit
2443
2515
  # @return [String, nil]
2444
2516
  optional :content_id, String
2445
2517
 
2518
+ # @!attribute idempotency_key
2519
+ # Optional caller-provided key used to make retries of this individual event
2520
+ # idempotent. Reuse the same key only for retries of the same logical event.
2521
+ #
2522
+ # @return [String, nil]
2523
+ optional :idempotency_key, String
2524
+
2446
2525
  # @!attribute metadata
2447
2526
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2448
2527
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -2460,7 +2539,7 @@ module SafetyKit
2460
2539
  optional :resources_used,
2461
2540
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::ResourcesUsed] }
2462
2541
 
2463
- # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil, type: :update_account)
2542
+ # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :update_account)
2464
2543
  # Some parameter documentations has been truncated, see
2465
2544
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount}
2466
2545
  # for more details.
@@ -2478,6 +2557,8 @@ module SafetyKit
2478
2557
  #
2479
2558
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
2480
2559
  #
2560
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
2561
+ #
2481
2562
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
2482
2563
  #
2483
2564
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -2729,6 +2810,13 @@ module SafetyKit
2729
2810
  # @return [String, nil]
2730
2811
  optional :content_id, String
2731
2812
 
2813
+ # @!attribute idempotency_key
2814
+ # Optional caller-provided key used to make retries of this individual event
2815
+ # idempotent. Reuse the same key only for retries of the same logical event.
2816
+ #
2817
+ # @return [String, nil]
2818
+ optional :idempotency_key, String
2819
+
2732
2820
  # @!attribute metadata
2733
2821
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2734
2822
  # be strings, numbers, booleans, or arrays of those scalar values.
@@ -2758,7 +2846,7 @@ module SafetyKit
2758
2846
  # @return [String, nil]
2759
2847
  optional :target_user_id, String
2760
2848
 
2761
- # @!method initialize(event_name:, labels:, timestamp:, user_id:, content: nil, content_id: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :user_report)
2849
+ # @!method initialize(event_name:, labels:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :user_report)
2762
2850
  # Some parameter documentations has been truncated, see
2763
2851
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport} for
2764
2852
  # more details.
@@ -2780,6 +2868,8 @@ module SafetyKit
2780
2868
  #
2781
2869
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
2782
2870
  #
2871
+ # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
2872
+ #
2783
2873
  # @param metadata [Hash{Symbol=>String, Float, Boolean, Array<String, Float, Boolean>}] Non-PII product context for filtering, segmentation, and debugging. Values may b
2784
2874
  #
2785
2875
  # @param resources_used [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed>] Reusable resources observed during the event. Use this for emails, phone numbers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.18.0"
4
+ VERSION = "0.19.0"
5
5
  end
@@ -190,6 +190,14 @@ module SafetyKit
190
190
  sig { params(content_id: String).void }
191
191
  attr_writer :content_id
192
192
 
193
+ # Optional caller-provided key used to make retries of this individual event
194
+ # idempotent. Reuse the same key only for retries of the same logical event.
195
+ sig { returns(T.nilable(String)) }
196
+ attr_reader :idempotency_key
197
+
198
+ sig { params(idempotency_key: String).void }
199
+ attr_writer :idempotency_key
200
+
193
201
  # Non-PII product context for filtering, segmentation, and debugging. Values may
194
202
  # be strings, numbers, booleans, or arrays of those scalar values.
195
203
  sig do
@@ -256,6 +264,7 @@ module SafetyKit
256
264
  )
257
265
  ],
258
266
  content_id: String,
267
+ idempotency_key: String,
259
268
  metadata:
260
269
  T::Hash[
261
270
  Symbol,
@@ -286,6 +295,9 @@ module SafetyKit
286
295
  # Your stable identifier for the content involved in this event, such as a
287
296
  # message, listing, page, post, profile, or uploaded media item.
288
297
  content_id: nil,
298
+ # Optional caller-provided key used to make retries of this individual event
299
+ # idempotent. Reuse the same key only for retries of the same logical event.
300
+ idempotency_key: nil,
289
301
  # Non-PII product context for filtering, segmentation, and debugging. Values may
290
302
  # be strings, numbers, booleans, or arrays of those scalar values.
291
303
  metadata: nil,
@@ -313,6 +325,7 @@ module SafetyKit
313
325
  )
314
326
  ],
315
327
  content_id: String,
328
+ idempotency_key: String,
316
329
  metadata:
317
330
  T::Hash[
318
331
  Symbol,
@@ -799,6 +812,14 @@ module SafetyKit
799
812
  sig { params(content_id: String).void }
800
813
  attr_writer :content_id
801
814
 
815
+ # Optional caller-provided key used to make retries of this individual event
816
+ # idempotent. Reuse the same key only for retries of the same logical event.
817
+ sig { returns(T.nilable(String)) }
818
+ attr_reader :idempotency_key
819
+
820
+ sig { params(idempotency_key: String).void }
821
+ attr_writer :idempotency_key
822
+
802
823
  # Non-PII product context for filtering, segmentation, and debugging. Values may
803
824
  # be strings, numbers, booleans, or arrays of those scalar values.
804
825
  sig do
@@ -864,6 +885,7 @@ module SafetyKit
864
885
  SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::Type::OrSymbol,
865
886
  user_id: String,
866
887
  content_id: String,
888
+ idempotency_key: String,
867
889
  metadata:
868
890
  T::Hash[
869
891
  Symbol,
@@ -891,6 +913,9 @@ module SafetyKit
891
913
  # Your stable identifier for the content involved in this event, such as a
892
914
  # message, listing, page, post, profile, or uploaded media item.
893
915
  content_id: nil,
916
+ # Optional caller-provided key used to make retries of this individual event
917
+ # idempotent. Reuse the same key only for retries of the same logical event.
918
+ idempotency_key: nil,
894
919
  # Non-PII product context for filtering, segmentation, and debugging. Values may
895
920
  # be strings, numbers, booleans, or arrays of those scalar values.
896
921
  metadata: nil,
@@ -917,6 +942,7 @@ module SafetyKit
917
942
  SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::Type::OrSymbol,
918
943
  user_id: String,
919
944
  content_id: String,
945
+ idempotency_key: String,
920
946
  metadata:
921
947
  T::Hash[
922
948
  Symbol,
@@ -1418,6 +1444,14 @@ module SafetyKit
1418
1444
  sig { params(content_id: String).void }
1419
1445
  attr_writer :content_id
1420
1446
 
1447
+ # Optional caller-provided key used to make retries of this individual event
1448
+ # idempotent. Reuse the same key only for retries of the same logical event.
1449
+ sig { returns(T.nilable(String)) }
1450
+ attr_reader :idempotency_key
1451
+
1452
+ sig { params(idempotency_key: String).void }
1453
+ attr_writer :idempotency_key
1454
+
1421
1455
  # Non-PII product context for filtering, segmentation, and debugging. Values may
1422
1456
  # be strings, numbers, booleans, or arrays of those scalar values.
1423
1457
  sig do
@@ -1483,6 +1517,7 @@ module SafetyKit
1483
1517
  )
1484
1518
  ],
1485
1519
  content_id: String,
1520
+ idempotency_key: String,
1486
1521
  metadata:
1487
1522
  T::Hash[
1488
1523
  Symbol,
@@ -1510,6 +1545,9 @@ module SafetyKit
1510
1545
  # Your stable identifier for the content involved in this event, such as a
1511
1546
  # message, listing, page, post, profile, or uploaded media item.
1512
1547
  content_id: nil,
1548
+ # Optional caller-provided key used to make retries of this individual event
1549
+ # idempotent. Reuse the same key only for retries of the same logical event.
1550
+ idempotency_key: nil,
1513
1551
  # Non-PII product context for filtering, segmentation, and debugging. Values may
1514
1552
  # be strings, numbers, booleans, or arrays of those scalar values.
1515
1553
  metadata: nil,
@@ -1536,6 +1574,7 @@ module SafetyKit
1536
1574
  )
1537
1575
  ],
1538
1576
  content_id: String,
1577
+ idempotency_key: String,
1539
1578
  metadata:
1540
1579
  T::Hash[
1541
1580
  Symbol,
@@ -2037,6 +2076,14 @@ module SafetyKit
2037
2076
  sig { params(content_id: String).void }
2038
2077
  attr_writer :content_id
2039
2078
 
2079
+ # Optional caller-provided key used to make retries of this individual event
2080
+ # idempotent. Reuse the same key only for retries of the same logical event.
2081
+ sig { returns(T.nilable(String)) }
2082
+ attr_reader :idempotency_key
2083
+
2084
+ sig { params(idempotency_key: String).void }
2085
+ attr_writer :idempotency_key
2086
+
2040
2087
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2041
2088
  # be strings, numbers, booleans, or arrays of those scalar values.
2042
2089
  sig do
@@ -2103,6 +2150,7 @@ module SafetyKit
2103
2150
  )
2104
2151
  ],
2105
2152
  content_id: String,
2153
+ idempotency_key: String,
2106
2154
  metadata:
2107
2155
  T::Hash[
2108
2156
  Symbol,
@@ -2130,6 +2178,9 @@ module SafetyKit
2130
2178
  # Your stable identifier for the content involved in this event, such as a
2131
2179
  # message, listing, page, post, profile, or uploaded media item.
2132
2180
  content_id: nil,
2181
+ # Optional caller-provided key used to make retries of this individual event
2182
+ # idempotent. Reuse the same key only for retries of the same logical event.
2183
+ idempotency_key: nil,
2133
2184
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2134
2185
  # be strings, numbers, booleans, or arrays of those scalar values.
2135
2186
  metadata: nil,
@@ -2156,6 +2207,7 @@ module SafetyKit
2156
2207
  )
2157
2208
  ],
2158
2209
  content_id: String,
2210
+ idempotency_key: String,
2159
2211
  metadata:
2160
2212
  T::Hash[
2161
2213
  Symbol,
@@ -2667,6 +2719,14 @@ module SafetyKit
2667
2719
  sig { params(content_id: String).void }
2668
2720
  attr_writer :content_id
2669
2721
 
2722
+ # Optional caller-provided key used to make retries of this individual event
2723
+ # idempotent. Reuse the same key only for retries of the same logical event.
2724
+ sig { returns(T.nilable(String)) }
2725
+ attr_reader :idempotency_key
2726
+
2727
+ sig { params(idempotency_key: String).void }
2728
+ attr_writer :idempotency_key
2729
+
2670
2730
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2671
2731
  # be strings, numbers, booleans, or arrays of those scalar values.
2672
2732
  sig do
@@ -2753,6 +2813,7 @@ module SafetyKit
2753
2813
  )
2754
2814
  ],
2755
2815
  content_id: String,
2816
+ idempotency_key: String,
2756
2817
  metadata:
2757
2818
  T::Hash[
2758
2819
  Symbol,
@@ -2784,6 +2845,9 @@ module SafetyKit
2784
2845
  # Your stable identifier for the content involved in this event, such as a
2785
2846
  # message, listing, page, post, profile, or uploaded media item.
2786
2847
  content_id: nil,
2848
+ # Optional caller-provided key used to make retries of this individual event
2849
+ # idempotent. Reuse the same key only for retries of the same logical event.
2850
+ idempotency_key: nil,
2787
2851
  # Non-PII product context for filtering, segmentation, and debugging. Values may
2788
2852
  # be strings, numbers, booleans, or arrays of those scalar values.
2789
2853
  metadata: nil,
@@ -2818,6 +2882,7 @@ module SafetyKit
2818
2882
  )
2819
2883
  ],
2820
2884
  content_id: String,
2885
+ idempotency_key: String,
2821
2886
  metadata:
2822
2887
  T::Hash[
2823
2888
  Symbol,
@@ -3363,6 +3428,14 @@ module SafetyKit
3363
3428
  sig { params(content_id: String).void }
3364
3429
  attr_writer :content_id
3365
3430
 
3431
+ # Optional caller-provided key used to make retries of this individual event
3432
+ # idempotent. Reuse the same key only for retries of the same logical event.
3433
+ sig { returns(T.nilable(String)) }
3434
+ attr_reader :idempotency_key
3435
+
3436
+ sig { params(idempotency_key: String).void }
3437
+ attr_writer :idempotency_key
3438
+
3366
3439
  # Non-PII product context for filtering, segmentation, and debugging. Values may
3367
3440
  # be strings, numbers, booleans, or arrays of those scalar values.
3368
3441
  sig do
@@ -3427,6 +3500,7 @@ module SafetyKit
3427
3500
  )
3428
3501
  ],
3429
3502
  content_id: String,
3503
+ idempotency_key: String,
3430
3504
  metadata:
3431
3505
  T::Hash[
3432
3506
  Symbol,
@@ -3457,6 +3531,9 @@ module SafetyKit
3457
3531
  # Your stable identifier for the content involved in this event, such as a
3458
3532
  # message, listing, page, post, profile, or uploaded media item.
3459
3533
  content_id: nil,
3534
+ # Optional caller-provided key used to make retries of this individual event
3535
+ # idempotent. Reuse the same key only for retries of the same logical event.
3536
+ idempotency_key: nil,
3460
3537
  # Non-PII product context for filtering, segmentation, and debugging. Values may
3461
3538
  # be strings, numbers, booleans, or arrays of those scalar values.
3462
3539
  metadata: nil,
@@ -3484,6 +3561,7 @@ module SafetyKit
3484
3561
  )
3485
3562
  ],
3486
3563
  content_id: String,
3564
+ idempotency_key: String,
3487
3565
  metadata:
3488
3566
  T::Hash[
3489
3567
  Symbol,
@@ -3937,6 +4015,14 @@ module SafetyKit
3937
4015
  sig { params(content_id: String).void }
3938
4016
  attr_writer :content_id
3939
4017
 
4018
+ # Optional caller-provided key used to make retries of this individual event
4019
+ # idempotent. Reuse the same key only for retries of the same logical event.
4020
+ sig { returns(T.nilable(String)) }
4021
+ attr_reader :idempotency_key
4022
+
4023
+ sig { params(idempotency_key: String).void }
4024
+ attr_writer :idempotency_key
4025
+
3940
4026
  # Non-PII product context for filtering, segmentation, and debugging. Values may
3941
4027
  # be strings, numbers, booleans, or arrays of those scalar values.
3942
4028
  sig do
@@ -4000,6 +4086,7 @@ module SafetyKit
4000
4086
  timestamp: Time,
4001
4087
  user_id: String,
4002
4088
  content_id: String,
4089
+ idempotency_key: String,
4003
4090
  metadata:
4004
4091
  T::Hash[
4005
4092
  Symbol,
@@ -4027,6 +4114,9 @@ module SafetyKit
4027
4114
  # Your stable identifier for the content involved in this event, such as a
4028
4115
  # message, listing, page, post, profile, or uploaded media item.
4029
4116
  content_id: nil,
4117
+ # Optional caller-provided key used to make retries of this individual event
4118
+ # idempotent. Reuse the same key only for retries of the same logical event.
4119
+ idempotency_key: nil,
4030
4120
  # Non-PII product context for filtering, segmentation, and debugging. Values may
4031
4121
  # be strings, numbers, booleans, or arrays of those scalar values.
4032
4122
  metadata: nil,
@@ -4053,6 +4143,7 @@ module SafetyKit
4053
4143
  type: Symbol,
4054
4144
  user_id: String,
4055
4145
  content_id: String,
4146
+ idempotency_key: String,
4056
4147
  metadata:
4057
4148
  T::Hash[
4058
4149
  Symbol,
@@ -4521,6 +4612,14 @@ module SafetyKit
4521
4612
  sig { params(content_id: String).void }
4522
4613
  attr_writer :content_id
4523
4614
 
4615
+ # Optional caller-provided key used to make retries of this individual event
4616
+ # idempotent. Reuse the same key only for retries of the same logical event.
4617
+ sig { returns(T.nilable(String)) }
4618
+ attr_reader :idempotency_key
4619
+
4620
+ sig { params(idempotency_key: String).void }
4621
+ attr_writer :idempotency_key
4622
+
4524
4623
  # Non-PII product context for filtering, segmentation, and debugging. Values may
4525
4624
  # be strings, numbers, booleans, or arrays of those scalar values.
4526
4625
  sig do
@@ -4584,6 +4683,7 @@ module SafetyKit
4584
4683
  )
4585
4684
  ],
4586
4685
  content_id: String,
4686
+ idempotency_key: String,
4587
4687
  metadata:
4588
4688
  T::Hash[
4589
4689
  Symbol,
@@ -4611,6 +4711,9 @@ module SafetyKit
4611
4711
  # Your stable identifier for the content involved in this event, such as a
4612
4712
  # message, listing, page, post, profile, or uploaded media item.
4613
4713
  content_id: nil,
4714
+ # Optional caller-provided key used to make retries of this individual event
4715
+ # idempotent. Reuse the same key only for retries of the same logical event.
4716
+ idempotency_key: nil,
4614
4717
  # Non-PII product context for filtering, segmentation, and debugging. Values may
4615
4718
  # be strings, numbers, booleans, or arrays of those scalar values.
4616
4719
  metadata: nil,
@@ -4637,6 +4740,7 @@ module SafetyKit
4637
4740
  )
4638
4741
  ],
4639
4742
  content_id: String,
4743
+ idempotency_key: String,
4640
4744
  metadata:
4641
4745
  T::Hash[
4642
4746
  Symbol,
@@ -5105,6 +5209,14 @@ module SafetyKit
5105
5209
  sig { params(content_id: String).void }
5106
5210
  attr_writer :content_id
5107
5211
 
5212
+ # Optional caller-provided key used to make retries of this individual event
5213
+ # idempotent. Reuse the same key only for retries of the same logical event.
5214
+ sig { returns(T.nilable(String)) }
5215
+ attr_reader :idempotency_key
5216
+
5217
+ sig { params(idempotency_key: String).void }
5218
+ attr_writer :idempotency_key
5219
+
5108
5220
  # Non-PII product context for filtering, segmentation, and debugging. Values may
5109
5221
  # be strings, numbers, booleans, or arrays of those scalar values.
5110
5222
  sig do
@@ -5169,6 +5281,7 @@ module SafetyKit
5169
5281
  )
5170
5282
  ],
5171
5283
  content_id: String,
5284
+ idempotency_key: String,
5172
5285
  metadata:
5173
5286
  T::Hash[
5174
5287
  Symbol,
@@ -5196,6 +5309,9 @@ module SafetyKit
5196
5309
  # Your stable identifier for the content involved in this event, such as a
5197
5310
  # message, listing, page, post, profile, or uploaded media item.
5198
5311
  content_id: nil,
5312
+ # Optional caller-provided key used to make retries of this individual event
5313
+ # idempotent. Reuse the same key only for retries of the same logical event.
5314
+ idempotency_key: nil,
5199
5315
  # Non-PII product context for filtering, segmentation, and debugging. Values may
5200
5316
  # be strings, numbers, booleans, or arrays of those scalar values.
5201
5317
  metadata: nil,
@@ -5222,6 +5338,7 @@ module SafetyKit
5222
5338
  )
5223
5339
  ],
5224
5340
  content_id: String,
5341
+ idempotency_key: String,
5225
5342
  metadata:
5226
5343
  T::Hash[
5227
5344
  Symbol,
@@ -5700,6 +5817,14 @@ module SafetyKit
5700
5817
  sig { params(content_id: String).void }
5701
5818
  attr_writer :content_id
5702
5819
 
5820
+ # Optional caller-provided key used to make retries of this individual event
5821
+ # idempotent. Reuse the same key only for retries of the same logical event.
5822
+ sig { returns(T.nilable(String)) }
5823
+ attr_reader :idempotency_key
5824
+
5825
+ sig { params(idempotency_key: String).void }
5826
+ attr_writer :idempotency_key
5827
+
5703
5828
  # Non-PII product context for filtering, segmentation, and debugging. Values may
5704
5829
  # be strings, numbers, booleans, or arrays of those scalar values.
5705
5830
  sig do
@@ -5784,6 +5909,7 @@ module SafetyKit
5784
5909
  )
5785
5910
  ],
5786
5911
  content_id: String,
5912
+ idempotency_key: String,
5787
5913
  metadata:
5788
5914
  T::Hash[
5789
5915
  Symbol,
@@ -5815,6 +5941,9 @@ module SafetyKit
5815
5941
  # Your stable identifier for the content involved in this event, such as a
5816
5942
  # message, listing, page, post, profile, or uploaded media item.
5817
5943
  content_id: nil,
5944
+ # Optional caller-provided key used to make retries of this individual event
5945
+ # idempotent. Reuse the same key only for retries of the same logical event.
5946
+ idempotency_key: nil,
5818
5947
  # Non-PII product context for filtering, segmentation, and debugging. Values may
5819
5948
  # be strings, numbers, booleans, or arrays of those scalar values.
5820
5949
  metadata: nil,
@@ -5849,6 +5978,7 @@ module SafetyKit
5849
5978
  )
5850
5979
  ],
5851
5980
  content_id: String,
5981
+ idempotency_key: String,
5852
5982
  metadata:
5853
5983
  T::Hash[
5854
5984
  Symbol,
@@ -41,6 +41,7 @@ module SafetyKit
41
41
  user_id: String,
42
42
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::content],
43
43
  content_id: String,
44
+ idempotency_key: String,
44
45
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::metadata],
45
46
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed]
46
47
  }
@@ -66,6 +67,10 @@ module SafetyKit
66
67
 
67
68
  def content_id=: (String) -> String
68
69
 
70
+ attr_reader idempotency_key: String?
71
+
72
+ def idempotency_key=: (String) -> String
73
+
69
74
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::metadata]?
70
75
 
71
76
  def metadata=: (
@@ -86,6 +91,7 @@ module SafetyKit
86
91
  user_id: String,
87
92
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::content],
88
93
  ?content_id: String,
94
+ ?idempotency_key: String,
89
95
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::metadata],
90
96
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed]
91
97
  ) -> void
@@ -98,6 +104,7 @@ module SafetyKit
98
104
  user_id: String,
99
105
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::content],
100
106
  content_id: String,
107
+ idempotency_key: String,
101
108
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::metadata],
102
109
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed]
103
110
  }
@@ -275,6 +282,7 @@ module SafetyKit
275
282
  type: SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::type_,
276
283
  user_id: String,
277
284
  content_id: String,
285
+ idempotency_key: String,
278
286
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::metadata],
279
287
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed]
280
288
  }
@@ -294,6 +302,10 @@ module SafetyKit
294
302
 
295
303
  def content_id=: (String) -> String
296
304
 
305
+ attr_reader idempotency_key: String?
306
+
307
+ def idempotency_key=: (String) -> String
308
+
297
309
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::metadata]?
298
310
 
299
311
  def metadata=: (
@@ -313,6 +325,7 @@ module SafetyKit
313
325
  type: SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::type_,
314
326
  user_id: String,
315
327
  ?content_id: String,
328
+ ?idempotency_key: String,
316
329
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::metadata],
317
330
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed]
318
331
  ) -> void
@@ -324,6 +337,7 @@ module SafetyKit
324
337
  type: SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::type_,
325
338
  user_id: String,
326
339
  content_id: String,
340
+ idempotency_key: String,
327
341
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::metadata],
328
342
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed]
329
343
  }
@@ -501,6 +515,7 @@ module SafetyKit
501
515
  user_id: String,
502
516
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::content],
503
517
  content_id: String,
518
+ idempotency_key: String,
504
519
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::metadata],
505
520
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed]
506
521
  }
@@ -524,6 +539,10 @@ module SafetyKit
524
539
 
525
540
  def content_id=: (String) -> String
526
541
 
542
+ attr_reader idempotency_key: String?
543
+
544
+ def idempotency_key=: (String) -> String
545
+
527
546
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::metadata]?
528
547
 
529
548
  def metadata=: (
@@ -543,6 +562,7 @@ module SafetyKit
543
562
  user_id: String,
544
563
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::content],
545
564
  ?content_id: String,
565
+ ?idempotency_key: String,
546
566
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::metadata],
547
567
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed]
548
568
  ) -> void
@@ -554,6 +574,7 @@ module SafetyKit
554
574
  user_id: String,
555
575
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::content],
556
576
  content_id: String,
577
+ idempotency_key: String,
557
578
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::metadata],
558
579
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed]
559
580
  }
@@ -731,6 +752,7 @@ module SafetyKit
731
752
  user_id: String,
732
753
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::content],
733
754
  content_id: String,
755
+ idempotency_key: String,
734
756
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::metadata],
735
757
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed]
736
758
  }
@@ -754,6 +776,10 @@ module SafetyKit
754
776
 
755
777
  def content_id=: (String) -> String
756
778
 
779
+ attr_reader idempotency_key: String?
780
+
781
+ def idempotency_key=: (String) -> String
782
+
757
783
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::metadata]?
758
784
 
759
785
  def metadata=: (
@@ -773,6 +799,7 @@ module SafetyKit
773
799
  user_id: String,
774
800
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::content],
775
801
  ?content_id: String,
802
+ ?idempotency_key: String,
776
803
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::metadata],
777
804
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed]
778
805
  ) -> void
@@ -784,6 +811,7 @@ module SafetyKit
784
811
  user_id: String,
785
812
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::content],
786
813
  content_id: String,
814
+ idempotency_key: String,
787
815
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::metadata],
788
816
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed]
789
817
  }
@@ -962,6 +990,7 @@ module SafetyKit
962
990
  user_id: String,
963
991
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::content],
964
992
  content_id: String,
993
+ idempotency_key: String,
965
994
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::metadata],
966
995
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed],
967
996
  target_content_id: String,
@@ -989,6 +1018,10 @@ module SafetyKit
989
1018
 
990
1019
  def content_id=: (String) -> String
991
1020
 
1021
+ attr_reader idempotency_key: String?
1022
+
1023
+ def idempotency_key=: (String) -> String
1024
+
992
1025
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::metadata]?
993
1026
 
994
1027
  def metadata=: (
@@ -1017,6 +1050,7 @@ module SafetyKit
1017
1050
  user_id: String,
1018
1051
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::content],
1019
1052
  ?content_id: String,
1053
+ ?idempotency_key: String,
1020
1054
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::metadata],
1021
1055
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed],
1022
1056
  ?target_content_id: String,
@@ -1031,6 +1065,7 @@ module SafetyKit
1031
1065
  user_id: String,
1032
1066
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::content],
1033
1067
  content_id: String,
1068
+ idempotency_key: String,
1034
1069
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::metadata],
1035
1070
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::ResourcesUsed],
1036
1071
  target_content_id: String,
@@ -1231,6 +1266,7 @@ module SafetyKit
1231
1266
  user_id: String,
1232
1267
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::content],
1233
1268
  content_id: String,
1269
+ idempotency_key: String,
1234
1270
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::metadata],
1235
1271
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserContact::ResourcesUsed]
1236
1272
  }
@@ -1256,6 +1292,10 @@ module SafetyKit
1256
1292
 
1257
1293
  def content_id=: (String) -> String
1258
1294
 
1295
+ attr_reader idempotency_key: String?
1296
+
1297
+ def idempotency_key=: (String) -> String
1298
+
1259
1299
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::metadata]?
1260
1300
 
1261
1301
  def metadata=: (
@@ -1275,6 +1315,7 @@ module SafetyKit
1275
1315
  user_id: String,
1276
1316
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::content],
1277
1317
  ?content_id: String,
1318
+ ?idempotency_key: String,
1278
1319
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::metadata],
1279
1320
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserContact::ResourcesUsed],
1280
1321
  ?type: :user_contact
@@ -1288,6 +1329,7 @@ module SafetyKit
1288
1329
  user_id: String,
1289
1330
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::content],
1290
1331
  content_id: String,
1332
+ idempotency_key: String,
1291
1333
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserContact::metadata],
1292
1334
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserContact::ResourcesUsed]
1293
1335
  }
@@ -1455,6 +1497,7 @@ module SafetyKit
1455
1497
  type: :content_uploaded,
1456
1498
  user_id: String,
1457
1499
  content_id: String,
1500
+ idempotency_key: String,
1458
1501
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::metadata],
1459
1502
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::ResourcesUsed]
1460
1503
  }
@@ -1474,6 +1517,10 @@ module SafetyKit
1474
1517
 
1475
1518
  def content_id=: (String) -> String
1476
1519
 
1520
+ attr_reader idempotency_key: String?
1521
+
1522
+ def idempotency_key=: (String) -> String
1523
+
1477
1524
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::metadata]?
1478
1525
 
1479
1526
  def metadata=: (
@@ -1492,6 +1539,7 @@ module SafetyKit
1492
1539
  timestamp: Time,
1493
1540
  user_id: String,
1494
1541
  ?content_id: String,
1542
+ ?idempotency_key: String,
1495
1543
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::metadata],
1496
1544
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::ResourcesUsed],
1497
1545
  ?type: :content_uploaded
@@ -1504,6 +1552,7 @@ module SafetyKit
1504
1552
  type: :content_uploaded,
1505
1553
  user_id: String,
1506
1554
  content_id: String,
1555
+ idempotency_key: String,
1507
1556
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::metadata],
1508
1557
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::ContentUploaded::ResourcesUsed]
1509
1558
  }
@@ -1671,6 +1720,7 @@ module SafetyKit
1671
1720
  user_id: String,
1672
1721
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::content],
1673
1722
  content_id: String,
1723
+ idempotency_key: String,
1674
1724
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::metadata],
1675
1725
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::ResourcesUsed]
1676
1726
  }
@@ -1694,6 +1744,10 @@ module SafetyKit
1694
1744
 
1695
1745
  def content_id=: (String) -> String
1696
1746
 
1747
+ attr_reader idempotency_key: String?
1748
+
1749
+ def idempotency_key=: (String) -> String
1750
+
1697
1751
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::metadata]?
1698
1752
 
1699
1753
  def metadata=: (
@@ -1712,6 +1766,7 @@ module SafetyKit
1712
1766
  user_id: String,
1713
1767
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::content],
1714
1768
  ?content_id: String,
1769
+ ?idempotency_key: String,
1715
1770
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::metadata],
1716
1771
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::ResourcesUsed],
1717
1772
  ?type: :create_account
@@ -1724,6 +1779,7 @@ module SafetyKit
1724
1779
  user_id: String,
1725
1780
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::content],
1726
1781
  content_id: String,
1782
+ idempotency_key: String,
1727
1783
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::metadata],
1728
1784
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::CreateAccount::ResourcesUsed]
1729
1785
  }
@@ -1891,6 +1947,7 @@ module SafetyKit
1891
1947
  user_id: String,
1892
1948
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::content],
1893
1949
  content_id: String,
1950
+ idempotency_key: String,
1894
1951
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::metadata],
1895
1952
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::ResourcesUsed]
1896
1953
  }
@@ -1914,6 +1971,10 @@ module SafetyKit
1914
1971
 
1915
1972
  def content_id=: (String) -> String
1916
1973
 
1974
+ attr_reader idempotency_key: String?
1975
+
1976
+ def idempotency_key=: (String) -> String
1977
+
1917
1978
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::metadata]?
1918
1979
 
1919
1980
  def metadata=: (
@@ -1932,6 +1993,7 @@ module SafetyKit
1932
1993
  user_id: String,
1933
1994
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::content],
1934
1995
  ?content_id: String,
1996
+ ?idempotency_key: String,
1935
1997
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::metadata],
1936
1998
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::ResourcesUsed],
1937
1999
  ?type: :update_account
@@ -1944,6 +2006,7 @@ module SafetyKit
1944
2006
  user_id: String,
1945
2007
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::content],
1946
2008
  content_id: String,
2009
+ idempotency_key: String,
1947
2010
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::metadata],
1948
2011
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UpdateAccount::ResourcesUsed]
1949
2012
  }
@@ -2112,6 +2175,7 @@ module SafetyKit
2112
2175
  user_id: String,
2113
2176
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::content],
2114
2177
  content_id: String,
2178
+ idempotency_key: String,
2115
2179
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::metadata],
2116
2180
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed],
2117
2181
  target_content_id: String,
@@ -2139,6 +2203,10 @@ module SafetyKit
2139
2203
 
2140
2204
  def content_id=: (String) -> String
2141
2205
 
2206
+ attr_reader idempotency_key: String?
2207
+
2208
+ def idempotency_key=: (String) -> String
2209
+
2142
2210
  attr_reader metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::metadata]?
2143
2211
 
2144
2212
  def metadata=: (
@@ -2166,6 +2234,7 @@ module SafetyKit
2166
2234
  user_id: String,
2167
2235
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::content],
2168
2236
  ?content_id: String,
2237
+ ?idempotency_key: String,
2169
2238
  ?metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::metadata],
2170
2239
  ?resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed],
2171
2240
  ?target_content_id: String,
@@ -2181,6 +2250,7 @@ module SafetyKit
2181
2250
  user_id: String,
2182
2251
  content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::content],
2183
2252
  content_id: String,
2253
+ idempotency_key: String,
2184
2254
  metadata: ::Hash[Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember5::UserReport::metadata],
2185
2255
  resources_used: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember5::UserReport::ResourcesUsed],
2186
2256
  target_content_id: String,
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.18.0
4
+ version: 0.19.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-03 00:00:00.000000000 Z
11
+ date: 2026-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi