safetykit 0.59.0 → 0.61.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.
@@ -6177,10 +6177,6 @@ module SafetyKit
6177
6177
  sig { returns(String) }
6178
6178
  attr_accessor :event_name
6179
6179
 
6180
- # One or more label categories supplied with the report or moderation decision.
6181
- sig { returns(T::Array[String]) }
6182
- attr_accessor :labels
6183
-
6184
6180
  # Stable identifier within source_type. Examples: moderator@example.com or
6185
6181
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
6186
6182
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -6275,6 +6271,14 @@ module SafetyKit
6275
6271
  sig { params(idempotency_key: String).void }
6276
6272
  attr_writer :idempotency_key
6277
6273
 
6274
+ # Label categories the decision determined apply to the target. At least one of
6275
+ # labels or negative_labels is required.
6276
+ sig { returns(T.nilable(T::Array[String])) }
6277
+ attr_reader :labels
6278
+
6279
+ sig { params(labels: T::Array[String]).void }
6280
+ attr_writer :labels
6281
+
6278
6282
  # Non-PII product context for filtering, segmentation, and debugging. Values may
6279
6283
  # be strings, numbers, booleans, or arrays of those scalar values.
6280
6284
  sig do
@@ -6300,6 +6304,15 @@ module SafetyKit
6300
6304
  end
6301
6305
  attr_writer :metadata
6302
6306
 
6307
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
6308
+ # the target, such as a manual review that clears a user reported for spam. A
6309
+ # label cannot appear in both labels and negative_labels.
6310
+ sig { returns(T.nilable(T::Array[String])) }
6311
+ attr_reader :negative_labels
6312
+
6313
+ sig { params(negative_labels: T::Array[String]).void }
6314
+ attr_writer :negative_labels
6315
+
6303
6316
  # Reusable resources observed during the event. Use this for emails, phone
6304
6317
  # numbers, names, addresses, social handles, URLs, payment identifiers,
6305
6318
  # caller-defined ids, or similar identifiers.
@@ -6346,11 +6359,12 @@ module SafetyKit
6346
6359
 
6347
6360
  # A moderation label or decision from an automated enforcement system or manual
6348
6361
  # review workflow. Do not send user_id; use source_type and source_id for
6349
- # attribution.
6362
+ # attribution. Use labels for categories the decision applied and negative_labels
6363
+ # for categories the decision explicitly reviewed and determined do not apply; at
6364
+ # least one of the two is required.
6350
6365
  sig do
6351
6366
  params(
6352
6367
  event_name: String,
6353
- labels: T::Array[String],
6354
6368
  source_id: String,
6355
6369
  source_type:
6356
6370
  SafetyKit::AsyncCreateAsyncParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
@@ -6368,11 +6382,13 @@ module SafetyKit
6368
6382
  ],
6369
6383
  content_id: String,
6370
6384
  idempotency_key: String,
6385
+ labels: T::Array[String],
6371
6386
  metadata:
6372
6387
  T::Hash[
6373
6388
  Symbol,
6374
6389
  SafetyKit::AsyncCreateAsyncParams::Body::ModerationDecisionEventRequest::Metadata::Variants
6375
6390
  ],
6391
+ negative_labels: T::Array[String],
6376
6392
  resources_used:
6377
6393
  T::Array[
6378
6394
  T.any(
@@ -6388,8 +6404,6 @@ module SafetyKit
6388
6404
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
6389
6405
  # values in typed fields, content, resources_used, or metadata.
6390
6406
  event_name:,
6391
- # One or more label categories supplied with the report or moderation decision.
6392
- labels:,
6393
6407
  # Stable identifier within source_type. Examples: moderator@example.com or
6394
6408
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
6395
6409
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -6416,9 +6430,16 @@ module SafetyKit
6416
6430
  # Optional caller-provided key used to make retries of this individual event
6417
6431
  # idempotent. Reuse the same key only for retries of the same logical event.
6418
6432
  idempotency_key: nil,
6433
+ # Label categories the decision determined apply to the target. At least one of
6434
+ # labels or negative_labels is required.
6435
+ labels: nil,
6419
6436
  # Non-PII product context for filtering, segmentation, and debugging. Values may
6420
6437
  # be strings, numbers, booleans, or arrays of those scalar values.
6421
6438
  metadata: nil,
6439
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
6440
+ # the target, such as a manual review that clears a user reported for spam. A
6441
+ # label cannot appear in both labels and negative_labels.
6442
+ negative_labels: nil,
6422
6443
  # Reusable resources observed during the event. Use this for emails, phone
6423
6444
  # numbers, names, addresses, social handles, URLs, payment identifiers,
6424
6445
  # caller-defined ids, or similar identifiers.
@@ -6434,7 +6455,6 @@ module SafetyKit
6434
6455
  override.returns(
6435
6456
  {
6436
6457
  event_name: String,
6437
- labels: T::Array[String],
6438
6458
  source_id: String,
6439
6459
  source_type:
6440
6460
  SafetyKit::AsyncCreateAsyncParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
@@ -6452,11 +6472,13 @@ module SafetyKit
6452
6472
  ],
6453
6473
  content_id: String,
6454
6474
  idempotency_key: String,
6475
+ labels: T::Array[String],
6455
6476
  metadata:
6456
6477
  T::Hash[
6457
6478
  Symbol,
6458
6479
  SafetyKit::AsyncCreateAsyncParams::Body::ModerationDecisionEventRequest::Metadata::Variants
6459
6480
  ],
6481
+ negative_labels: T::Array[String],
6460
6482
  resources_used:
6461
6483
  T::Array[
6462
6484
  T.any(
@@ -12904,10 +12926,6 @@ module SafetyKit
12904
12926
  sig { returns(String) }
12905
12927
  attr_accessor :event_name
12906
12928
 
12907
- # One or more label categories supplied with the report or moderation decision.
12908
- sig { returns(T::Array[String]) }
12909
- attr_accessor :labels
12910
-
12911
12929
  # Stable identifier within source_type. Examples: moderator@example.com or
12912
12930
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
12913
12931
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -12998,6 +13016,14 @@ module SafetyKit
12998
13016
  sig { params(idempotency_key: String).void }
12999
13017
  attr_writer :idempotency_key
13000
13018
 
13019
+ # Label categories the decision determined apply to the target. At least one of
13020
+ # labels or negative_labels is required.
13021
+ sig { returns(T.nilable(T::Array[String])) }
13022
+ attr_reader :labels
13023
+
13024
+ sig { params(labels: T::Array[String]).void }
13025
+ attr_writer :labels
13026
+
13001
13027
  # Non-PII product context for filtering, segmentation, and debugging. Values may
13002
13028
  # be strings, numbers, booleans, or arrays of those scalar values.
13003
13029
  sig do
@@ -13023,6 +13049,15 @@ module SafetyKit
13023
13049
  end
13024
13050
  attr_writer :metadata
13025
13051
 
13052
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
13053
+ # the target, such as a manual review that clears a user reported for spam. A
13054
+ # label cannot appear in both labels and negative_labels.
13055
+ sig { returns(T.nilable(T::Array[String])) }
13056
+ attr_reader :negative_labels
13057
+
13058
+ sig { params(negative_labels: T::Array[String]).void }
13059
+ attr_writer :negative_labels
13060
+
13026
13061
  # Reusable resources observed during the event. Use this for emails, phone
13027
13062
  # numbers, names, addresses, social handles, URLs, payment identifiers,
13028
13063
  # caller-defined ids, or similar identifiers.
@@ -13069,11 +13104,12 @@ module SafetyKit
13069
13104
 
13070
13105
  # A moderation label or decision from an automated enforcement system or manual
13071
13106
  # review workflow. Do not send user_id; use source_type and source_id for
13072
- # attribution.
13107
+ # attribution. Use labels for categories the decision applied and negative_labels
13108
+ # for categories the decision explicitly reviewed and determined do not apply; at
13109
+ # least one of the two is required.
13073
13110
  sig do
13074
13111
  params(
13075
13112
  event_name: String,
13076
- labels: T::Array[String],
13077
13113
  source_id: String,
13078
13114
  source_type:
13079
13115
  SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ModerationDecision::SourceType::OrSymbol,
@@ -13089,11 +13125,13 @@ module SafetyKit
13089
13125
  ],
13090
13126
  content_id: String,
13091
13127
  idempotency_key: String,
13128
+ labels: T::Array[String],
13092
13129
  metadata:
13093
13130
  T::Hash[
13094
13131
  Symbol,
13095
13132
  SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ModerationDecision::Metadata::Variants
13096
13133
  ],
13134
+ negative_labels: T::Array[String],
13097
13135
  resources_used:
13098
13136
  T::Array[
13099
13137
  T.any(
@@ -13110,8 +13148,6 @@ module SafetyKit
13110
13148
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
13111
13149
  # values in typed fields, content, resources_used, or metadata.
13112
13150
  event_name:,
13113
- # One or more label categories supplied with the report or moderation decision.
13114
- labels:,
13115
13151
  # Stable identifier within source_type. Examples: moderator@example.com or
13116
13152
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
13117
13153
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -13137,9 +13173,16 @@ module SafetyKit
13137
13173
  # Optional caller-provided key used to make retries of this individual event
13138
13174
  # idempotent. Reuse the same key only for retries of the same logical event.
13139
13175
  idempotency_key: nil,
13176
+ # Label categories the decision determined apply to the target. At least one of
13177
+ # labels or negative_labels is required.
13178
+ labels: nil,
13140
13179
  # Non-PII product context for filtering, segmentation, and debugging. Values may
13141
13180
  # be strings, numbers, booleans, or arrays of those scalar values.
13142
13181
  metadata: nil,
13182
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
13183
+ # the target, such as a manual review that clears a user reported for spam. A
13184
+ # label cannot appear in both labels and negative_labels.
13185
+ negative_labels: nil,
13143
13186
  # Reusable resources observed during the event. Use this for emails, phone
13144
13187
  # numbers, names, addresses, social handles, URLs, payment identifiers,
13145
13188
  # caller-defined ids, or similar identifiers.
@@ -13156,7 +13199,6 @@ module SafetyKit
13156
13199
  override.returns(
13157
13200
  {
13158
13201
  event_name: String,
13159
- labels: T::Array[String],
13160
13202
  source_id: String,
13161
13203
  source_type:
13162
13204
  SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ModerationDecision::SourceType::OrSymbol,
@@ -13173,11 +13215,13 @@ module SafetyKit
13173
13215
  ],
13174
13216
  content_id: String,
13175
13217
  idempotency_key: String,
13218
+ labels: T::Array[String],
13176
13219
  metadata:
13177
13220
  T::Hash[
13178
13221
  Symbol,
13179
13222
  SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ModerationDecision::Metadata::Variants
13180
13223
  ],
13224
+ negative_labels: T::Array[String],
13181
13225
  resources_used:
13182
13226
  T::Array[
13183
13227
  T.any(
@@ -6182,10 +6182,6 @@ module SafetyKit
6182
6182
  sig { returns(String) }
6183
6183
  attr_accessor :event_name
6184
6184
 
6185
- # One or more label categories supplied with the report or moderation decision.
6186
- sig { returns(T::Array[String]) }
6187
- attr_accessor :labels
6188
-
6189
6185
  # Stable identifier within source_type. Examples: moderator@example.com or
6190
6186
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
6191
6187
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -6280,6 +6276,14 @@ module SafetyKit
6280
6276
  sig { params(idempotency_key: String).void }
6281
6277
  attr_writer :idempotency_key
6282
6278
 
6279
+ # Label categories the decision determined apply to the target. At least one of
6280
+ # labels or negative_labels is required.
6281
+ sig { returns(T.nilable(T::Array[String])) }
6282
+ attr_reader :labels
6283
+
6284
+ sig { params(labels: T::Array[String]).void }
6285
+ attr_writer :labels
6286
+
6283
6287
  # Non-PII product context for filtering, segmentation, and debugging. Values may
6284
6288
  # be strings, numbers, booleans, or arrays of those scalar values.
6285
6289
  sig do
@@ -6305,6 +6309,15 @@ module SafetyKit
6305
6309
  end
6306
6310
  attr_writer :metadata
6307
6311
 
6312
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
6313
+ # the target, such as a manual review that clears a user reported for spam. A
6314
+ # label cannot appear in both labels and negative_labels.
6315
+ sig { returns(T.nilable(T::Array[String])) }
6316
+ attr_reader :negative_labels
6317
+
6318
+ sig { params(negative_labels: T::Array[String]).void }
6319
+ attr_writer :negative_labels
6320
+
6308
6321
  # Reusable resources observed during the event. Use this for emails, phone
6309
6322
  # numbers, names, addresses, social handles, URLs, payment identifiers,
6310
6323
  # caller-defined ids, or similar identifiers.
@@ -6351,11 +6364,12 @@ module SafetyKit
6351
6364
 
6352
6365
  # A moderation label or decision from an automated enforcement system or manual
6353
6366
  # review workflow. Do not send user_id; use source_type and source_id for
6354
- # attribution.
6367
+ # attribution. Use labels for categories the decision applied and negative_labels
6368
+ # for categories the decision explicitly reviewed and determined do not apply; at
6369
+ # least one of the two is required.
6355
6370
  sig do
6356
6371
  params(
6357
6372
  event_name: String,
6358
- labels: T::Array[String],
6359
6373
  source_id: String,
6360
6374
  source_type:
6361
6375
  SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
@@ -6373,11 +6387,13 @@ module SafetyKit
6373
6387
  ],
6374
6388
  content_id: String,
6375
6389
  idempotency_key: String,
6390
+ labels: T::Array[String],
6376
6391
  metadata:
6377
6392
  T::Hash[
6378
6393
  Symbol,
6379
6394
  SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Metadata::Variants
6380
6395
  ],
6396
+ negative_labels: T::Array[String],
6381
6397
  resources_used:
6382
6398
  T::Array[
6383
6399
  T.any(
@@ -6393,8 +6409,6 @@ module SafetyKit
6393
6409
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
6394
6410
  # values in typed fields, content, resources_used, or metadata.
6395
6411
  event_name:,
6396
- # One or more label categories supplied with the report or moderation decision.
6397
- labels:,
6398
6412
  # Stable identifier within source_type. Examples: moderator@example.com or
6399
6413
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
6400
6414
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -6421,9 +6435,16 @@ module SafetyKit
6421
6435
  # Optional caller-provided key used to make retries of this individual event
6422
6436
  # idempotent. Reuse the same key only for retries of the same logical event.
6423
6437
  idempotency_key: nil,
6438
+ # Label categories the decision determined apply to the target. At least one of
6439
+ # labels or negative_labels is required.
6440
+ labels: nil,
6424
6441
  # Non-PII product context for filtering, segmentation, and debugging. Values may
6425
6442
  # be strings, numbers, booleans, or arrays of those scalar values.
6426
6443
  metadata: nil,
6444
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
6445
+ # the target, such as a manual review that clears a user reported for spam. A
6446
+ # label cannot appear in both labels and negative_labels.
6447
+ negative_labels: nil,
6427
6448
  # Reusable resources observed during the event. Use this for emails, phone
6428
6449
  # numbers, names, addresses, social handles, URLs, payment identifiers,
6429
6450
  # caller-defined ids, or similar identifiers.
@@ -6439,7 +6460,6 @@ module SafetyKit
6439
6460
  override.returns(
6440
6461
  {
6441
6462
  event_name: String,
6442
- labels: T::Array[String],
6443
6463
  source_id: String,
6444
6464
  source_type:
6445
6465
  SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
@@ -6457,11 +6477,13 @@ module SafetyKit
6457
6477
  ],
6458
6478
  content_id: String,
6459
6479
  idempotency_key: String,
6480
+ labels: T::Array[String],
6460
6481
  metadata:
6461
6482
  T::Hash[
6462
6483
  Symbol,
6463
6484
  SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Metadata::Variants
6464
6485
  ],
6486
+ negative_labels: T::Array[String],
6465
6487
  resources_used:
6466
6488
  T::Array[
6467
6489
  T.any(
@@ -12923,10 +12945,6 @@ module SafetyKit
12923
12945
  sig { returns(String) }
12924
12946
  attr_accessor :event_name
12925
12947
 
12926
- # One or more label categories supplied with the report or moderation decision.
12927
- sig { returns(T::Array[String]) }
12928
- attr_accessor :labels
12929
-
12930
12948
  # Stable identifier within source_type. Examples: moderator@example.com or
12931
12949
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
12932
12950
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -13017,6 +13035,14 @@ module SafetyKit
13017
13035
  sig { params(idempotency_key: String).void }
13018
13036
  attr_writer :idempotency_key
13019
13037
 
13038
+ # Label categories the decision determined apply to the target. At least one of
13039
+ # labels or negative_labels is required.
13040
+ sig { returns(T.nilable(T::Array[String])) }
13041
+ attr_reader :labels
13042
+
13043
+ sig { params(labels: T::Array[String]).void }
13044
+ attr_writer :labels
13045
+
13020
13046
  # Non-PII product context for filtering, segmentation, and debugging. Values may
13021
13047
  # be strings, numbers, booleans, or arrays of those scalar values.
13022
13048
  sig do
@@ -13042,6 +13068,15 @@ module SafetyKit
13042
13068
  end
13043
13069
  attr_writer :metadata
13044
13070
 
13071
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
13072
+ # the target, such as a manual review that clears a user reported for spam. A
13073
+ # label cannot appear in both labels and negative_labels.
13074
+ sig { returns(T.nilable(T::Array[String])) }
13075
+ attr_reader :negative_labels
13076
+
13077
+ sig { params(negative_labels: T::Array[String]).void }
13078
+ attr_writer :negative_labels
13079
+
13045
13080
  # Reusable resources observed during the event. Use this for emails, phone
13046
13081
  # numbers, names, addresses, social handles, URLs, payment identifiers,
13047
13082
  # caller-defined ids, or similar identifiers.
@@ -13088,11 +13123,12 @@ module SafetyKit
13088
13123
 
13089
13124
  # A moderation label or decision from an automated enforcement system or manual
13090
13125
  # review workflow. Do not send user_id; use source_type and source_id for
13091
- # attribution.
13126
+ # attribution. Use labels for categories the decision applied and negative_labels
13127
+ # for categories the decision explicitly reviewed and determined do not apply; at
13128
+ # least one of the two is required.
13092
13129
  sig do
13093
13130
  params(
13094
13131
  event_name: String,
13095
- labels: T::Array[String],
13096
13132
  source_id: String,
13097
13133
  source_type:
13098
13134
  SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ModerationDecision::SourceType::OrSymbol,
@@ -13108,11 +13144,13 @@ module SafetyKit
13108
13144
  ],
13109
13145
  content_id: String,
13110
13146
  idempotency_key: String,
13147
+ labels: T::Array[String],
13111
13148
  metadata:
13112
13149
  T::Hash[
13113
13150
  Symbol,
13114
13151
  SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ModerationDecision::Metadata::Variants
13115
13152
  ],
13153
+ negative_labels: T::Array[String],
13116
13154
  resources_used:
13117
13155
  T::Array[
13118
13156
  T.any(
@@ -13129,8 +13167,6 @@ module SafetyKit
13129
13167
  # Stable, low-cardinality product action name. Use snake_case and put dynamic
13130
13168
  # values in typed fields, content, resources_used, or metadata.
13131
13169
  event_name:,
13132
- # One or more label categories supplied with the report or moderation decision.
13133
- labels:,
13134
13170
  # Stable identifier within source_type. Examples: moderator@example.com or
13135
13171
  # 550e8400-e29b-41d4-a716-446655440000 for expert_labeler or human_moderator,
13136
13172
  # automated_review_v2026_06_04 for automation, or <vendor_name>-v2.1 for vendor.
@@ -13156,9 +13192,16 @@ module SafetyKit
13156
13192
  # Optional caller-provided key used to make retries of this individual event
13157
13193
  # idempotent. Reuse the same key only for retries of the same logical event.
13158
13194
  idempotency_key: nil,
13195
+ # Label categories the decision determined apply to the target. At least one of
13196
+ # labels or negative_labels is required.
13197
+ labels: nil,
13159
13198
  # Non-PII product context for filtering, segmentation, and debugging. Values may
13160
13199
  # be strings, numbers, booleans, or arrays of those scalar values.
13161
13200
  metadata: nil,
13201
+ # Label categories the decision explicitly reviewed and determined do NOT apply to
13202
+ # the target, such as a manual review that clears a user reported for spam. A
13203
+ # label cannot appear in both labels and negative_labels.
13204
+ negative_labels: nil,
13162
13205
  # Reusable resources observed during the event. Use this for emails, phone
13163
13206
  # numbers, names, addresses, social handles, URLs, payment identifiers,
13164
13207
  # caller-defined ids, or similar identifiers.
@@ -13175,7 +13218,6 @@ module SafetyKit
13175
13218
  override.returns(
13176
13219
  {
13177
13220
  event_name: String,
13178
- labels: T::Array[String],
13179
13221
  source_id: String,
13180
13222
  source_type:
13181
13223
  SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ModerationDecision::SourceType::OrSymbol,
@@ -13192,11 +13234,13 @@ module SafetyKit
13192
13234
  ],
13193
13235
  content_id: String,
13194
13236
  idempotency_key: String,
13237
+ labels: T::Array[String],
13195
13238
  metadata:
13196
13239
  T::Hash[
13197
13240
  Symbol,
13198
13241
  SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ModerationDecision::Metadata::Variants
13199
13242
  ],
13243
+ negative_labels: T::Array[String],
13200
13244
  resources_used:
13201
13245
  T::Array[
13202
13246
  T.any(
@@ -11,7 +11,9 @@ module SafetyKit
11
11
  T.any(SafetyKit::ContentCreateParams, SafetyKit::Internal::AnyHash)
12
12
  end
13
13
 
14
- # Content parts to classify together. At most 20 images.
14
+ # Content parts to classify together. At most 20 images. Text parts may total
15
+ # 128,000 characters. Text is classified in overlapping windows and a label
16
+ # matches when any window matches.
15
17
  sig do
16
18
  returns(
17
19
  T::Array[
@@ -76,7 +78,9 @@ module SafetyKit
76
78
  ).returns(T.attached_class)
77
79
  end
78
80
  def self.new(
79
- # Content parts to classify together. At most 20 images.
81
+ # Content parts to classify together. At most 20 images. Text parts may total
82
+ # 128,000 characters. Text is classified in overlapping windows and a label
83
+ # matches when any window matches.
80
84
  content:,
81
85
  # Your stable identifier for the user this content belongs to.
82
86
  user_id:,
@@ -133,7 +137,7 @@ module SafetyKit
133
137
  )
134
138
  end
135
139
 
136
- # User-authored text to classify.
140
+ # User-authored text to classify. At most 16,000 characters per part.
137
141
  sig { returns(String) }
138
142
  attr_accessor :text
139
143
 
@@ -160,7 +164,7 @@ module SafetyKit
160
164
  ).returns(T.attached_class)
161
165
  end
162
166
  def self.new(
163
- # User-authored text to classify.
167
+ # User-authored text to classify. At most 16,000 characters per part.
164
168
  text:,
165
169
  type:,
166
170
  # Your name for where this part came from.
@@ -31,7 +31,9 @@ module SafetyKit
31
31
  ).returns(SafetyKit::Models::ContentCreateResponse)
32
32
  end
33
33
  def create(
34
- # Body param: Content parts to classify together. At most 20 images.
34
+ # Body param: Content parts to classify together. At most 20 images. Text parts
35
+ # may total 128,000 characters. Text is classified in overlapping windows and a
36
+ # label matches when any window matches.
35
37
  content:,
36
38
  # Body param: Your stable identifier for the user this content belongs to.
37
39
  user_id:,