safetykit 0.28.1 → 0.29.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.
@@ -85,6 +85,14 @@ module SafetyKit
85
85
  # @return [String]
86
86
  required :user_id, String
87
87
 
88
+ # @!attribute client_info
89
+ # Client context observed by your backend for the user action that triggered the
90
+ # event.
91
+ #
92
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::ClientInfo, nil]
93
+ optional :client_info,
94
+ -> { SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ClientInfo }
95
+
88
96
  # @!attribute content
89
97
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
90
98
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -125,7 +133,7 @@ module SafetyKit
125
133
  optional :resources_used,
126
134
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UserContactEventRequest::ResourcesUsed] }
127
135
 
128
- # @!method initialize(event_name:, target_user_id:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
136
+ # @!method initialize(event_name:, target_user_id:, timestamp:, type:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
129
137
  # Some parameter documentations has been truncated, see
130
138
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest} for
131
139
  # more details.
@@ -142,6 +150,8 @@ module SafetyKit
142
150
  #
143
151
  # @param user_id [String] Your stable canonical identifier for the user or account.
144
152
  #
153
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
154
+ #
145
155
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
146
156
  #
147
157
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -162,6 +172,21 @@ module SafetyKit
162
172
  # @return [Array<Symbol>]
163
173
  end
164
174
 
175
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UserContactEventRequest#client_info
176
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
177
+ # @!attribute ip
178
+ # IP address observed by your backend for the client that triggered the event.
179
+ #
180
+ # @return [String, nil]
181
+ optional :ip, String
182
+
183
+ # @!method initialize(ip: nil)
184
+ # Client context observed by your backend for the user action that triggered the
185
+ # event.
186
+ #
187
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
188
+ end
189
+
165
190
  # User-authored text content associated with an event.
166
191
  module Content
167
192
  extend SafetyKit::Internal::Type::Union
@@ -393,6 +418,14 @@ module SafetyKit
393
418
  # @return [String]
394
419
  required :user_id, String
395
420
 
421
+ # @!attribute client_info
422
+ # Client context observed by your backend for the user action that triggered the
423
+ # event.
424
+ #
425
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ClientInfo, nil]
426
+ optional :client_info,
427
+ -> { SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ClientInfo }
428
+
396
429
  # @!attribute content_id
397
430
  # Your stable identifier for the content involved in this event, such as a
398
431
  # message, listing, page, post, profile, or uploaded media item.
@@ -424,7 +457,7 @@ module SafetyKit
424
457
  optional :resources_used,
425
458
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ResourcesUsed] }
426
459
 
427
- # @!method initialize(content:, event_name:, timestamp:, type:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
460
+ # @!method initialize(content:, event_name:, timestamp:, type:, user_id:, client_info: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
428
461
  # Some parameter documentations has been truncated, see
429
462
  # {SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest}
430
463
  # for more details.
@@ -441,6 +474,8 @@ module SafetyKit
441
474
  #
442
475
  # @param user_id [String] Your stable canonical identifier for the user or account.
443
476
  #
477
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
478
+ #
444
479
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
445
480
  #
446
481
  # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
@@ -593,6 +628,21 @@ module SafetyKit
593
628
  # @return [Array<Symbol>]
594
629
  end
595
630
 
631
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploadedEventRequest#client_info
632
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
633
+ # @!attribute ip
634
+ # IP address observed by your backend for the client that triggered the event.
635
+ #
636
+ # @return [String, nil]
637
+ optional :ip, String
638
+
639
+ # @!method initialize(ip: nil)
640
+ # Client context observed by your backend for the user action that triggered the
641
+ # event.
642
+ #
643
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
644
+ end
645
+
596
646
  module Metadata
597
647
  extend SafetyKit::Internal::Type::Union
598
648
 
@@ -696,6 +746,14 @@ module SafetyKit
696
746
  # @return [String]
697
747
  required :user_id, String
698
748
 
749
+ # @!attribute client_info
750
+ # Client context observed by your backend for the user action that triggered the
751
+ # event.
752
+ #
753
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::ClientInfo, nil]
754
+ optional :client_info,
755
+ -> { SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::ClientInfo }
756
+
699
757
  # @!attribute content_id
700
758
  # Your stable identifier for the content involved in this event, such as a
701
759
  # message, listing, page, post, profile, or uploaded media item.
@@ -727,7 +785,7 @@ module SafetyKit
727
785
  optional :resources_used,
728
786
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::ResourcesUsed] }
729
787
 
730
- # @!method initialize(content:, event_name:, product:, timestamp:, type:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
788
+ # @!method initialize(content:, event_name:, product:, timestamp:, type:, user_id:, client_info: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
731
789
  # Some parameter documentations has been truncated, see
732
790
  # {SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest}
733
791
  # for more details.
@@ -746,6 +804,8 @@ module SafetyKit
746
804
  #
747
805
  # @param user_id [String] Your stable canonical identifier for the user or account.
748
806
  #
807
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
808
+ #
749
809
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
750
810
  #
751
811
  # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
@@ -1010,6 +1070,21 @@ module SafetyKit
1010
1070
  # @return [Array<Symbol>]
1011
1071
  end
1012
1072
 
1073
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest#client_info
1074
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
1075
+ # @!attribute ip
1076
+ # IP address observed by your backend for the client that triggered the event.
1077
+ #
1078
+ # @return [String, nil]
1079
+ optional :ip, String
1080
+
1081
+ # @!method initialize(ip: nil)
1082
+ # Client context observed by your backend for the user action that triggered the
1083
+ # event.
1084
+ #
1085
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
1086
+ end
1087
+
1013
1088
  module Metadata
1014
1089
  extend SafetyKit::Internal::Type::Union
1015
1090
 
@@ -1098,6 +1173,14 @@ module SafetyKit
1098
1173
  # @return [String]
1099
1174
  required :user_id, String
1100
1175
 
1176
+ # @!attribute client_info
1177
+ # Client context observed by your backend for the user action that triggered the
1178
+ # event.
1179
+ #
1180
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::ClientInfo, nil]
1181
+ optional :client_info,
1182
+ -> { SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ClientInfo }
1183
+
1101
1184
  # @!attribute content
1102
1185
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
1103
1186
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -1138,7 +1221,7 @@ module SafetyKit
1138
1221
  optional :resources_used,
1139
1222
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::ResourcesUsed] }
1140
1223
 
1141
- # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
1224
+ # @!method initialize(event_name:, timestamp:, type:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
1142
1225
  # Some parameter documentations has been truncated, see
1143
1226
  # {SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest}
1144
1227
  # for more details.
@@ -1153,6 +1236,8 @@ module SafetyKit
1153
1236
  #
1154
1237
  # @param user_id [String] Your stable canonical identifier for the user or account.
1155
1238
  #
1239
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
1240
+ #
1156
1241
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
1157
1242
  #
1158
1243
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -1173,6 +1258,21 @@ module SafetyKit
1173
1258
  # @return [Array<Symbol>]
1174
1259
  end
1175
1260
 
1261
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::CreateAccountEventRequest#client_info
1262
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
1263
+ # @!attribute ip
1264
+ # IP address observed by your backend for the client that triggered the event.
1265
+ #
1266
+ # @return [String, nil]
1267
+ optional :ip, String
1268
+
1269
+ # @!method initialize(ip: nil)
1270
+ # Client context observed by your backend for the user action that triggered the
1271
+ # event.
1272
+ #
1273
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
1274
+ end
1275
+
1176
1276
  # User-authored text content associated with an event.
1177
1277
  module Content
1178
1278
  extend SafetyKit::Internal::Type::Union
@@ -1395,6 +1495,14 @@ module SafetyKit
1395
1495
  # @return [String]
1396
1496
  required :user_id, String
1397
1497
 
1498
+ # @!attribute client_info
1499
+ # Client context observed by your backend for the user action that triggered the
1500
+ # event.
1501
+ #
1502
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ClientInfo, nil]
1503
+ optional :client_info,
1504
+ -> { SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ClientInfo }
1505
+
1398
1506
  # @!attribute content
1399
1507
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
1400
1508
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -1435,7 +1543,7 @@ module SafetyKit
1435
1543
  optional :resources_used,
1436
1544
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ResourcesUsed] }
1437
1545
 
1438
- # @!method initialize(event_name:, timestamp:, type:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
1546
+ # @!method initialize(event_name:, timestamp:, type:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil)
1439
1547
  # Some parameter documentations has been truncated, see
1440
1548
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest}
1441
1549
  # for more details.
@@ -1451,6 +1559,8 @@ module SafetyKit
1451
1559
  #
1452
1560
  # @param user_id [String] Your stable canonical identifier for the user or account.
1453
1561
  #
1562
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
1563
+ #
1454
1564
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
1455
1565
  #
1456
1566
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -1471,6 +1581,21 @@ module SafetyKit
1471
1581
  # @return [Array<Symbol>]
1472
1582
  end
1473
1583
 
1584
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccountEventRequest#client_info
1585
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
1586
+ # @!attribute ip
1587
+ # IP address observed by your backend for the client that triggered the event.
1588
+ #
1589
+ # @return [String, nil]
1590
+ optional :ip, String
1591
+
1592
+ # @!method initialize(ip: nil)
1593
+ # Client context observed by your backend for the user action that triggered the
1594
+ # event.
1595
+ #
1596
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
1597
+ end
1598
+
1474
1599
  # User-authored text content associated with an event.
1475
1600
  module Content
1476
1601
  extend SafetyKit::Internal::Type::Union
@@ -1699,6 +1824,13 @@ module SafetyKit
1699
1824
  # @return [String]
1700
1825
  required :user_id, String
1701
1826
 
1827
+ # @!attribute client_info
1828
+ # Client context observed by your backend for the user action that triggered the
1829
+ # event.
1830
+ #
1831
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::ClientInfo, nil]
1832
+ optional :client_info, -> { SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::ClientInfo }
1833
+
1702
1834
  # @!attribute content
1703
1835
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
1704
1836
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -1751,7 +1883,7 @@ module SafetyKit
1751
1883
  # @return [String, nil]
1752
1884
  optional :target_user_id, String
1753
1885
 
1754
- # @!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)
1886
+ # @!method initialize(event_name:, labels:, timestamp:, type:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil)
1755
1887
  # Some parameter documentations has been truncated, see
1756
1888
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest} for
1757
1889
  # more details.
@@ -1771,6 +1903,8 @@ module SafetyKit
1771
1903
  #
1772
1904
  # @param user_id [String] Your stable canonical identifier for the user or account.
1773
1905
  #
1906
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
1907
+ #
1774
1908
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
1775
1909
  #
1776
1910
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -1795,6 +1929,21 @@ module SafetyKit
1795
1929
  # @return [Array<Symbol>]
1796
1930
  end
1797
1931
 
1932
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UserReportEventRequest#client_info
1933
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
1934
+ # @!attribute ip
1935
+ # IP address observed by your backend for the client that triggered the event.
1936
+ #
1937
+ # @return [String, nil]
1938
+ optional :ip, String
1939
+
1940
+ # @!method initialize(ip: nil)
1941
+ # Client context observed by your backend for the user action that triggered the
1942
+ # event.
1943
+ #
1944
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
1945
+ end
1946
+
1798
1947
  # User-authored text content associated with an event.
1799
1948
  module Content
1800
1949
  extend SafetyKit::Internal::Type::Union
@@ -2037,6 +2186,14 @@ module SafetyKit
2037
2186
  required :type,
2038
2187
  enum: -> { SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type }
2039
2188
 
2189
+ # @!attribute client_info
2190
+ # Client context observed by your backend for the user action that triggered the
2191
+ # event.
2192
+ #
2193
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::ClientInfo, nil]
2194
+ optional :client_info,
2195
+ -> { SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::ClientInfo }
2196
+
2040
2197
  # @!attribute content
2041
2198
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
2042
2199
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -2089,7 +2246,7 @@ module SafetyKit
2089
2246
  # @return [String, nil]
2090
2247
  optional :target_user_id, String
2091
2248
 
2092
- # @!method initialize(event_name:, labels:, source_id:, source_type:, timestamp:, type:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil)
2249
+ # @!method initialize(event_name:, labels:, source_id:, source_type:, timestamp:, type:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil)
2093
2250
  # Some parameter documentations has been truncated, see
2094
2251
  # {SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest}
2095
2252
  # for more details.
@@ -2110,6 +2267,8 @@ module SafetyKit
2110
2267
  #
2111
2268
  # @param type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type]
2112
2269
  #
2270
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::ClientInfo] Client context observed by your backend for the user action that triggered the e
2271
+ #
2113
2272
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
2114
2273
  #
2115
2274
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -2153,6 +2312,21 @@ module SafetyKit
2153
2312
  # @return [Array<Symbol>]
2154
2313
  end
2155
2314
 
2315
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#client_info
2316
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
2317
+ # @!attribute ip
2318
+ # IP address observed by your backend for the client that triggered the event.
2319
+ #
2320
+ # @return [String, nil]
2321
+ optional :ip, String
2322
+
2323
+ # @!method initialize(ip: nil)
2324
+ # Client context observed by your backend for the user action that triggered the
2325
+ # event.
2326
+ #
2327
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
2328
+ end
2329
+
2156
2330
  # User-authored text content associated with an event.
2157
2331
  module Content
2158
2332
  extend SafetyKit::Internal::Type::Union
@@ -2410,6 +2584,14 @@ module SafetyKit
2410
2584
  # @return [String]
2411
2585
  required :user_id, String
2412
2586
 
2587
+ # @!attribute client_info
2588
+ # Client context observed by your backend for the user action that triggered the
2589
+ # event.
2590
+ #
2591
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact::ClientInfo, nil]
2592
+ optional :client_info,
2593
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::UserContact::ClientInfo }
2594
+
2413
2595
  # @!attribute content
2414
2596
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
2415
2597
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -2450,7 +2632,7 @@ module SafetyKit
2450
2632
  optional :resources_used,
2451
2633
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember7::UserContact::ResourcesUsed] }
2452
2634
 
2453
- # @!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)
2635
+ # @!method initialize(event_name:, target_user_id:, timestamp:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :user_contact)
2454
2636
  # Some parameter documentations has been truncated, see
2455
2637
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact}
2456
2638
  # for more details.
@@ -2465,6 +2647,8 @@ module SafetyKit
2465
2647
  #
2466
2648
  # @param user_id [String] Your stable canonical identifier for the user or account.
2467
2649
  #
2650
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact::ClientInfo] Client context observed by your backend for the user action that triggered the e
2651
+ #
2468
2652
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
2469
2653
  #
2470
2654
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -2477,6 +2661,21 @@ module SafetyKit
2477
2661
  #
2478
2662
  # @param type [Symbol, :user_contact]
2479
2663
 
2664
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserContact#client_info
2665
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
2666
+ # @!attribute ip
2667
+ # IP address observed by your backend for the client that triggered the event.
2668
+ #
2669
+ # @return [String, nil]
2670
+ optional :ip, String
2671
+
2672
+ # @!method initialize(ip: nil)
2673
+ # Client context observed by your backend for the user action that triggered the
2674
+ # event.
2675
+ #
2676
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
2677
+ end
2678
+
2480
2679
  # User-authored text content associated with an event.
2481
2680
  module Content
2482
2681
  extend SafetyKit::Internal::Type::Union
@@ -2708,6 +2907,14 @@ module SafetyKit
2708
2907
  # @return [String]
2709
2908
  required :user_id, String
2710
2909
 
2910
+ # @!attribute client_info
2911
+ # Client context observed by your backend for the user action that triggered the
2912
+ # event.
2913
+ #
2914
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::ClientInfo, nil]
2915
+ optional :client_info,
2916
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::ClientInfo }
2917
+
2711
2918
  # @!attribute content_id
2712
2919
  # Your stable identifier for the content involved in this event, such as a
2713
2920
  # message, listing, page, post, profile, or uploaded media item.
@@ -2739,7 +2946,7 @@ module SafetyKit
2739
2946
  optional :resources_used,
2740
2947
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::ResourcesUsed] }
2741
2948
 
2742
- # @!method initialize(content:, event_name:, timestamp:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :content_uploaded)
2949
+ # @!method initialize(content:, event_name:, timestamp:, user_id:, client_info: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :content_uploaded)
2743
2950
  # Some parameter documentations has been truncated, see
2744
2951
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded}
2745
2952
  # for more details.
@@ -2754,6 +2961,8 @@ module SafetyKit
2754
2961
  #
2755
2962
  # @param user_id [String] Your stable canonical identifier for the user or account.
2756
2963
  #
2964
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::ClientInfo] Client context observed by your backend for the user action that triggered the e
2965
+ #
2757
2966
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
2758
2967
  #
2759
2968
  # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
@@ -2898,6 +3107,21 @@ module SafetyKit
2898
3107
  # @return [Array(SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded::Content::EventImageContent)]
2899
3108
  end
2900
3109
 
3110
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ContentUploaded#client_info
3111
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
3112
+ # @!attribute ip
3113
+ # IP address observed by your backend for the client that triggered the event.
3114
+ #
3115
+ # @return [String, nil]
3116
+ optional :ip, String
3117
+
3118
+ # @!method initialize(ip: nil)
3119
+ # Client context observed by your backend for the user action that triggered the
3120
+ # event.
3121
+ #
3122
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
3123
+ end
3124
+
2901
3125
  module Metadata
2902
3126
  extend SafetyKit::Internal::Type::Union
2903
3127
 
@@ -3001,6 +3225,14 @@ module SafetyKit
3001
3225
  # @return [String]
3002
3226
  required :user_id, String
3003
3227
 
3228
+ # @!attribute client_info
3229
+ # Client context observed by your backend for the user action that triggered the
3230
+ # event.
3231
+ #
3232
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::ClientInfo, nil]
3233
+ optional :client_info,
3234
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::ClientInfo }
3235
+
3004
3236
  # @!attribute content_id
3005
3237
  # Your stable identifier for the content involved in this event, such as a
3006
3238
  # message, listing, page, post, profile, or uploaded media item.
@@ -3032,7 +3264,7 @@ module SafetyKit
3032
3264
  optional :resources_used,
3033
3265
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::ResourcesUsed] }
3034
3266
 
3035
- # @!method initialize(content:, event_name:, product:, timestamp:, user_id:, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :product_changed)
3267
+ # @!method initialize(content:, event_name:, product:, timestamp:, user_id:, client_info: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :product_changed)
3036
3268
  # Some parameter documentations has been truncated, see
3037
3269
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged}
3038
3270
  # for more details.
@@ -3049,6 +3281,8 @@ module SafetyKit
3049
3281
  #
3050
3282
  # @param user_id [String] Your stable canonical identifier for the user or account.
3051
3283
  #
3284
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::ClientInfo] Client context observed by your backend for the user action that triggered the e
3285
+ #
3052
3286
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
3053
3287
  #
3054
3288
  # @param idempotency_key [String] Optional caller-provided key used to make retries of this individual event idemp
@@ -3305,6 +3539,21 @@ module SafetyKit
3305
3539
  end
3306
3540
  end
3307
3541
 
3542
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged#client_info
3543
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
3544
+ # @!attribute ip
3545
+ # IP address observed by your backend for the client that triggered the event.
3546
+ #
3547
+ # @return [String, nil]
3548
+ optional :ip, String
3549
+
3550
+ # @!method initialize(ip: nil)
3551
+ # Client context observed by your backend for the user action that triggered the
3552
+ # event.
3553
+ #
3554
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
3555
+ end
3556
+
3308
3557
  module Metadata
3309
3558
  extend SafetyKit::Internal::Type::Union
3310
3559
 
@@ -3393,6 +3642,14 @@ module SafetyKit
3393
3642
  # @return [String]
3394
3643
  required :user_id, String
3395
3644
 
3645
+ # @!attribute client_info
3646
+ # Client context observed by your backend for the user action that triggered the
3647
+ # event.
3648
+ #
3649
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::ClientInfo, nil]
3650
+ optional :client_info,
3651
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::ClientInfo }
3652
+
3396
3653
  # @!attribute content
3397
3654
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
3398
3655
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -3433,7 +3690,7 @@ module SafetyKit
3433
3690
  optional :resources_used,
3434
3691
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::ResourcesUsed] }
3435
3692
 
3436
- # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :create_account)
3693
+ # @!method initialize(event_name:, timestamp:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :create_account)
3437
3694
  # Some parameter documentations has been truncated, see
3438
3695
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount}
3439
3696
  # for more details.
@@ -3446,6 +3703,8 @@ module SafetyKit
3446
3703
  #
3447
3704
  # @param user_id [String] Your stable canonical identifier for the user or account.
3448
3705
  #
3706
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::ClientInfo] Client context observed by your backend for the user action that triggered the e
3707
+ #
3449
3708
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
3450
3709
  #
3451
3710
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -3458,6 +3717,21 @@ module SafetyKit
3458
3717
  #
3459
3718
  # @param type [Symbol, :create_account]
3460
3719
 
3720
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::CreateAccount#client_info
3721
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
3722
+ # @!attribute ip
3723
+ # IP address observed by your backend for the client that triggered the event.
3724
+ #
3725
+ # @return [String, nil]
3726
+ optional :ip, String
3727
+
3728
+ # @!method initialize(ip: nil)
3729
+ # Client context observed by your backend for the user action that triggered the
3730
+ # event.
3731
+ #
3732
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
3733
+ end
3734
+
3461
3735
  # User-authored text content associated with an event.
3462
3736
  module Content
3463
3737
  extend SafetyKit::Internal::Type::Union
@@ -3680,6 +3954,14 @@ module SafetyKit
3680
3954
  # @return [String]
3681
3955
  required :user_id, String
3682
3956
 
3957
+ # @!attribute client_info
3958
+ # Client context observed by your backend for the user action that triggered the
3959
+ # event.
3960
+ #
3961
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::ClientInfo, nil]
3962
+ optional :client_info,
3963
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::ClientInfo }
3964
+
3683
3965
  # @!attribute content
3684
3966
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
3685
3967
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -3720,7 +4002,7 @@ module SafetyKit
3720
4002
  optional :resources_used,
3721
4003
  -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::ResourcesUsed] }
3722
4004
 
3723
- # @!method initialize(event_name:, timestamp:, user_id:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :update_account)
4005
+ # @!method initialize(event_name:, timestamp:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, type: :update_account)
3724
4006
  # Some parameter documentations has been truncated, see
3725
4007
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount}
3726
4008
  # for more details.
@@ -3734,6 +4016,8 @@ module SafetyKit
3734
4016
  #
3735
4017
  # @param user_id [String] Your stable canonical identifier for the user or account.
3736
4018
  #
4019
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::ClientInfo] Client context observed by your backend for the user action that triggered the e
4020
+ #
3737
4021
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
3738
4022
  #
3739
4023
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -3746,6 +4030,21 @@ module SafetyKit
3746
4030
  #
3747
4031
  # @param type [Symbol, :update_account]
3748
4032
 
4033
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UpdateAccount#client_info
4034
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
4035
+ # @!attribute ip
4036
+ # IP address observed by your backend for the client that triggered the event.
4037
+ #
4038
+ # @return [String, nil]
4039
+ optional :ip, String
4040
+
4041
+ # @!method initialize(ip: nil)
4042
+ # Client context observed by your backend for the user action that triggered the
4043
+ # event.
4044
+ #
4045
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
4046
+ end
4047
+
3749
4048
  # User-authored text content associated with an event.
3750
4049
  module Content
3751
4050
  extend SafetyKit::Internal::Type::Union
@@ -3974,6 +4273,14 @@ module SafetyKit
3974
4273
  # @return [String]
3975
4274
  required :user_id, String
3976
4275
 
4276
+ # @!attribute client_info
4277
+ # Client context observed by your backend for the user action that triggered the
4278
+ # event.
4279
+ #
4280
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport::ClientInfo, nil]
4281
+ optional :client_info,
4282
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::UserReport::ClientInfo }
4283
+
3977
4284
  # @!attribute content
3978
4285
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
3979
4286
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -4026,7 +4333,7 @@ module SafetyKit
4026
4333
  # @return [String, nil]
4027
4334
  optional :target_user_id, String
4028
4335
 
4029
- # @!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)
4336
+ # @!method initialize(event_name:, labels:, timestamp:, user_id:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :user_report)
4030
4337
  # Some parameter documentations has been truncated, see
4031
4338
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport} for
4032
4339
  # more details.
@@ -4044,6 +4351,8 @@ module SafetyKit
4044
4351
  #
4045
4352
  # @param user_id [String] Your stable canonical identifier for the user or account.
4046
4353
  #
4354
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport::ClientInfo] Client context observed by your backend for the user action that triggered the e
4355
+ #
4047
4356
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
4048
4357
  #
4049
4358
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -4060,6 +4369,21 @@ module SafetyKit
4060
4369
  #
4061
4370
  # @param type [Symbol, :user_report]
4062
4371
 
4372
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::UserReport#client_info
4373
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
4374
+ # @!attribute ip
4375
+ # IP address observed by your backend for the client that triggered the event.
4376
+ #
4377
+ # @return [String, nil]
4378
+ optional :ip, String
4379
+
4380
+ # @!method initialize(ip: nil)
4381
+ # Client context observed by your backend for the user action that triggered the
4382
+ # event.
4383
+ #
4384
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
4385
+ end
4386
+
4063
4387
  # User-authored text content associated with an event.
4064
4388
  module Content
4065
4389
  extend SafetyKit::Internal::Type::Union
@@ -4301,6 +4625,14 @@ module SafetyKit
4301
4625
  # @return [Symbol, :moderation_decision]
4302
4626
  required :type, const: :moderation_decision
4303
4627
 
4628
+ # @!attribute client_info
4629
+ # Client context observed by your backend for the user action that triggered the
4630
+ # event.
4631
+ #
4632
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision::ClientInfo, nil]
4633
+ optional :client_info,
4634
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision::ClientInfo }
4635
+
4304
4636
  # @!attribute content
4305
4637
  # User-authored or user-uploaded content parts. Use this for message bodies, bios,
4306
4638
  # listing text, image URLs, and similar content SafetyKit should compare or
@@ -4353,7 +4685,7 @@ module SafetyKit
4353
4685
  # @return [String, nil]
4354
4686
  optional :target_user_id, String
4355
4687
 
4356
- # @!method initialize(event_name:, labels:, source_id:, source_type:, timestamp:, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :moderation_decision)
4688
+ # @!method initialize(event_name:, labels:, source_id:, source_type:, timestamp:, client_info: nil, content: nil, content_id: nil, idempotency_key: nil, metadata: nil, resources_used: nil, target_content_id: nil, target_user_id: nil, type: :moderation_decision)
4357
4689
  # Some parameter documentations has been truncated, see
4358
4690
  # {SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision}
4359
4691
  # for more details.
@@ -4372,6 +4704,8 @@ module SafetyKit
4372
4704
  #
4373
4705
  # @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
4374
4706
  #
4707
+ # @param client_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision::ClientInfo] Client context observed by your backend for the user action that triggered the e
4708
+ #
4375
4709
  # @param content [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision::Content::EventTextContent, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision::Content::EventImageContent>] User-authored or user-uploaded content parts. Use this for message bodies, bios,
4376
4710
  #
4377
4711
  # @param content_id [String] Your stable identifier for the content involved in this event, such as a message
@@ -4407,6 +4741,21 @@ module SafetyKit
4407
4741
  # @return [Array<Symbol>]
4408
4742
  end
4409
4743
 
4744
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ModerationDecision#client_info
4745
+ class ClientInfo < SafetyKit::Internal::Type::BaseModel
4746
+ # @!attribute ip
4747
+ # IP address observed by your backend for the client that triggered the event.
4748
+ #
4749
+ # @return [String, nil]
4750
+ optional :ip, String
4751
+
4752
+ # @!method initialize(ip: nil)
4753
+ # Client context observed by your backend for the user action that triggered the
4754
+ # event.
4755
+ #
4756
+ # @param ip [String] IP address observed by your backend for the client that triggered the event.
4757
+ end
4758
+
4410
4759
  # User-authored text content associated with an event.
4411
4760
  module Content
4412
4761
  extend SafetyKit::Internal::Type::Union