safetykit 0.12.0 → 0.13.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: d0e3c42f79ff673ceabf944c5bcd84638c28de53f008cbd3ed2b9e37c2fd7bed
4
- data.tar.gz: f71906abac5704c1268675f1fd1114244b428978404ca6e58124d7871d5ed52f
3
+ metadata.gz: 44064e825e38b95c54fd73f964e5e878dd681f50c72a1ec052b319aa15b116e5
4
+ data.tar.gz: 921ca56e7fd091b3815cc850ea738c965eb5e285e24da49b08e20bc3f7db0184
5
5
  SHA512:
6
- metadata.gz: 77cfd83cb9ce824b7ff7041b0fc4237c85fb1d8b592a0032ed41c1dad52ce06fb1e2aae8581acb6e9e7762606883886771d29cfe0b650425644a1f90dfa90fa1
7
- data.tar.gz: f43d1e1889cc534ac59d7614ee1d3773744f0a7177d537d9b89b279f390ddc58b575d19c41901c751bd2335fe37a3f9763e087d8631dce04c01860616b35e849
6
+ metadata.gz: 7ce302f6c0151ef5ecdae2ee4986dd00ea8cac75c7c15eee48126ac76dc3a93bb78bffad7535aa8dcb8e4550bd896b655dbaaa657fb0df24b46f9a58a2ea760d
7
+ data.tar.gz: 0da8c85c43f508889bbd5d29e98329c6e0bad4a80ddabf6bf87a154db8cd23ea5a7a314a189ac7b74714c6b3e578bc30967380f7d991bee9e010b946e1bf36c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-06-01)
4
+
5
+ Full Changelog: [v0.12.0...v0.13.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.12.0...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([669d666](https://github.com/GetSafetyKit/safetykit-ruby/commit/669d6661e1ae3348d7ab149779f76811a7428a16))
10
+
3
11
  ## 0.12.0 (2026-06-01)
4
12
 
5
13
  Full Changelog: [v0.11.0...v0.12.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.11.0...v0.12.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.12.0"
20
+ gem "safetykit", "~> 0.13.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -45,13 +45,6 @@ module SafetyKit
45
45
  variant -> { SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4Array }
46
46
 
47
47
  class UserContactEventRequest < SafetyKit::Internal::Type::BaseModel
48
- # @!attribute counterparty_user_id
49
- # Your stable canonical identifier for the other user in a user-to-user
50
- # interaction.
51
- #
52
- # @return [String]
53
- required :counterparty_user_id, String
54
-
55
48
  # @!attribute event_name
56
49
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
57
50
  # values in typed fields, content, resources_used, or metadata.
@@ -59,6 +52,13 @@ module SafetyKit
59
52
  # @return [String]
60
53
  required :event_name, String
61
54
 
55
+ # @!attribute target_user_id
56
+ # Your stable canonical identifier for the other user in a user-to-user
57
+ # interaction.
58
+ #
59
+ # @return [String]
60
+ required :target_user_id, String
61
+
62
62
  # @!attribute timestamp
63
63
  # The time the event occurred in your system, as an ISO 8601 datetime string.
64
64
  #
@@ -102,17 +102,17 @@ module SafetyKit
102
102
  optional :resources_used,
103
103
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed] }
104
104
 
105
- # @!method initialize(counterparty_user_id:, event_name:, timestamp:, type:, user_id:, content: nil, metadata: nil, resources_used: nil)
105
+ # @!method initialize(event_name:, target_user_id:, timestamp:, type:, user_id:, content: nil, metadata: nil, resources_used: nil)
106
106
  # Some parameter documentations has been truncated, see
107
107
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest} for
108
108
  # more details.
109
109
  #
110
110
  # A user contacts, transacts with, or otherwise interacts with another user.
111
111
  #
112
- # @param counterparty_user_id [String] Your stable canonical identifier for the other user in a user-to-user interactio
113
- #
114
112
  # @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
115
113
  #
114
+ # @param target_user_id [String] Your stable canonical identifier for the other user in a user-to-user interactio
115
+ #
116
116
  # @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
117
117
  #
118
118
  # @param type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::Type]
@@ -1189,13 +1189,6 @@ module SafetyKit
1189
1189
  variant :update_account, -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UpdateAccount }
1190
1190
 
1191
1191
  class UserContact < SafetyKit::Internal::Type::BaseModel
1192
- # @!attribute counterparty_user_id
1193
- # Your stable canonical identifier for the other user in a user-to-user
1194
- # interaction.
1195
- #
1196
- # @return [String]
1197
- required :counterparty_user_id, String
1198
-
1199
1192
  # @!attribute event_name
1200
1193
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
1201
1194
  # values in typed fields, content, resources_used, or metadata.
@@ -1203,6 +1196,13 @@ module SafetyKit
1203
1196
  # @return [String]
1204
1197
  required :event_name, String
1205
1198
 
1199
+ # @!attribute target_user_id
1200
+ # Your stable canonical identifier for the other user in a user-to-user
1201
+ # interaction.
1202
+ #
1203
+ # @return [String]
1204
+ required :target_user_id, String
1205
+
1206
1206
  # @!attribute timestamp
1207
1207
  # The time the event occurred in your system, as an ISO 8601 datetime string.
1208
1208
  #
@@ -1246,17 +1246,17 @@ module SafetyKit
1246
1246
  optional :resources_used,
1247
1247
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UserContact::ResourcesUsed] }
1248
1248
 
1249
- # @!method initialize(counterparty_user_id:, event_name:, timestamp:, user_id:, content: nil, metadata: nil, resources_used: nil, type: :user_contact)
1249
+ # @!method initialize(event_name:, target_user_id:, timestamp:, user_id:, content: nil, metadata: nil, resources_used: nil, type: :user_contact)
1250
1250
  # Some parameter documentations has been truncated, see
1251
1251
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UserContact}
1252
1252
  # for more details.
1253
1253
  #
1254
1254
  # A user contacts, transacts with, or otherwise interacts with another user.
1255
1255
  #
1256
- # @param counterparty_user_id [String] Your stable canonical identifier for the other user in a user-to-user interactio
1257
- #
1258
1256
  # @param event_name [String] Stable, low-cardinality product action name. Use snake_case and put dynamic valu
1259
1257
  #
1258
+ # @param target_user_id [String] Your stable canonical identifier for the other user in a user-to-user interactio
1259
+ #
1260
1260
  # @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
1261
1261
  #
1262
1262
  # @param user_id [String] Your stable canonical identifier for the user or account.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -120,16 +120,16 @@ module SafetyKit
120
120
  )
121
121
  end
122
122
 
123
- # Your stable canonical identifier for the other user in a user-to-user
124
- # interaction.
125
- sig { returns(String) }
126
- attr_accessor :counterparty_user_id
127
-
128
123
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
129
124
  # values in typed fields, content, resources_used, or metadata.
130
125
  sig { returns(String) }
131
126
  attr_accessor :event_name
132
127
 
128
+ # Your stable canonical identifier for the other user in a user-to-user
129
+ # interaction.
130
+ sig { returns(String) }
131
+ attr_accessor :target_user_id
132
+
133
133
  # The time the event occurred in your system, as an ISO 8601 datetime string.
134
134
  sig { returns(Time) }
135
135
  attr_accessor :timestamp
@@ -227,8 +227,8 @@ module SafetyKit
227
227
  # A user contacts, transacts with, or otherwise interacts with another user.
228
228
  sig do
229
229
  params(
230
- counterparty_user_id: String,
231
230
  event_name: String,
231
+ target_user_id: String,
232
232
  timestamp: Time,
233
233
  type:
234
234
  SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::Type::OrSymbol,
@@ -252,12 +252,12 @@ module SafetyKit
252
252
  ).returns(T.attached_class)
253
253
  end
254
254
  def self.new(
255
- # Your stable canonical identifier for the other user in a user-to-user
256
- # interaction.
257
- counterparty_user_id:,
258
255
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
259
256
  # values in typed fields, content, resources_used, or metadata.
260
257
  event_name:,
258
+ # Your stable canonical identifier for the other user in a user-to-user
259
+ # interaction.
260
+ target_user_id:,
261
261
  # The time the event occurred in your system, as an ISO 8601 datetime string.
262
262
  timestamp:,
263
263
  type:,
@@ -280,8 +280,8 @@ module SafetyKit
280
280
  sig do
281
281
  override.returns(
282
282
  {
283
- counterparty_user_id: String,
284
283
  event_name: String,
284
+ target_user_id: String,
285
285
  timestamp: Time,
286
286
  type:
287
287
  SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::Type::OrSymbol,
@@ -2554,16 +2554,16 @@ module SafetyKit
2554
2554
  )
2555
2555
  end
2556
2556
 
2557
- # Your stable canonical identifier for the other user in a user-to-user
2558
- # interaction.
2559
- sig { returns(String) }
2560
- attr_accessor :counterparty_user_id
2561
-
2562
2557
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
2563
2558
  # values in typed fields, content, resources_used, or metadata.
2564
2559
  sig { returns(String) }
2565
2560
  attr_accessor :event_name
2566
2561
 
2562
+ # Your stable canonical identifier for the other user in a user-to-user
2563
+ # interaction.
2564
+ sig { returns(String) }
2565
+ attr_accessor :target_user_id
2566
+
2567
2567
  # The time the event occurred in your system, as an ISO 8601 datetime string.
2568
2568
  sig { returns(Time) }
2569
2569
  attr_accessor :timestamp
@@ -2657,8 +2657,8 @@ module SafetyKit
2657
2657
  # A user contacts, transacts with, or otherwise interacts with another user.
2658
2658
  sig do
2659
2659
  params(
2660
- counterparty_user_id: String,
2661
2660
  event_name: String,
2661
+ target_user_id: String,
2662
2662
  timestamp: Time,
2663
2663
  user_id: String,
2664
2664
  content:
@@ -2681,12 +2681,12 @@ module SafetyKit
2681
2681
  ).returns(T.attached_class)
2682
2682
  end
2683
2683
  def self.new(
2684
- # Your stable canonical identifier for the other user in a user-to-user
2685
- # interaction.
2686
- counterparty_user_id:,
2687
2684
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
2688
2685
  # values in typed fields, content, resources_used, or metadata.
2689
2686
  event_name:,
2687
+ # Your stable canonical identifier for the other user in a user-to-user
2688
+ # interaction.
2689
+ target_user_id:,
2690
2690
  # The time the event occurred in your system, as an ISO 8601 datetime string.
2691
2691
  timestamp:,
2692
2692
  # Your stable canonical identifier for the user or account.
@@ -2709,8 +2709,8 @@ module SafetyKit
2709
2709
  sig do
2710
2710
  override.returns(
2711
2711
  {
2712
- counterparty_user_id: String,
2713
2712
  event_name: String,
2713
+ target_user_id: String,
2714
2714
  timestamp: Time,
2715
2715
  type: Symbol,
2716
2716
  user_id: String,
@@ -33,8 +33,8 @@ module SafetyKit
33
33
 
34
34
  type user_contact_event_request =
35
35
  {
36
- counterparty_user_id: String,
37
36
  event_name: String,
37
+ target_user_id: String,
38
38
  timestamp: Time,
39
39
  type: SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::type_,
40
40
  user_id: String,
@@ -44,10 +44,10 @@ module SafetyKit
44
44
  }
45
45
 
46
46
  class UserContactEventRequest < SafetyKit::Internal::Type::BaseModel
47
- attr_accessor counterparty_user_id: String
48
-
49
47
  attr_accessor event_name: String
50
48
 
49
+ attr_accessor target_user_id: String
50
+
51
51
  attr_accessor timestamp: Time
52
52
 
53
53
  attr_accessor type: SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::type_
@@ -73,8 +73,8 @@ module SafetyKit
73
73
  ) -> ::Array[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed]
74
74
 
75
75
  def initialize: (
76
- counterparty_user_id: String,
77
76
  event_name: String,
77
+ target_user_id: String,
78
78
  timestamp: Time,
79
79
  type: SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::type_,
80
80
  user_id: String,
@@ -84,8 +84,8 @@ module SafetyKit
84
84
  ) -> void
85
85
 
86
86
  def to_hash: -> {
87
- counterparty_user_id: String,
88
87
  event_name: String,
88
+ target_user_id: String,
89
89
  timestamp: Time,
90
90
  type: SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::type_,
91
91
  user_id: String,
@@ -935,8 +935,8 @@ module SafetyKit
935
935
 
936
936
  type user_contact =
937
937
  {
938
- counterparty_user_id: String,
939
938
  event_name: String,
939
+ target_user_id: String,
940
940
  timestamp: Time,
941
941
  type: :user_contact,
942
942
  user_id: String,
@@ -946,10 +946,10 @@ module SafetyKit
946
946
  }
947
947
 
948
948
  class UserContact < SafetyKit::Internal::Type::BaseModel
949
- attr_accessor counterparty_user_id: String
950
-
951
949
  attr_accessor event_name: String
952
950
 
951
+ attr_accessor target_user_id: String
952
+
953
953
  attr_accessor timestamp: Time
954
954
 
955
955
  attr_accessor type: :user_contact
@@ -975,8 +975,8 @@ module SafetyKit
975
975
  ) -> ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember4::UserContact::ResourcesUsed]
976
976
 
977
977
  def initialize: (
978
- counterparty_user_id: String,
979
978
  event_name: String,
979
+ target_user_id: String,
980
980
  timestamp: Time,
981
981
  user_id: String,
982
982
  ?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember4::UserContact::content],
@@ -986,8 +986,8 @@ module SafetyKit
986
986
  ) -> void
987
987
 
988
988
  def to_hash: -> {
989
- counterparty_user_id: String,
990
989
  event_name: String,
990
+ target_user_id: String,
991
991
  timestamp: Time,
992
992
  type: :user_contact,
993
993
  user_id: String,
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.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Safetykit