safetykit 0.20.0 → 0.21.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/beta/event_create_params.rb +50 -16
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +126 -22
- data/sig/safety_kit/models/beta/event_create_params.rbs +36 -8
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20d3aecc7c612369106eaf3ee5313552b6a8d7a424b4933f0f61886d33da82f9
|
|
4
|
+
data.tar.gz: 8ff9b5805aa1294d25e272717c0d9003e6a1e2ce365c057596da0c3200667ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c87153df872b1a219a2b0c5bfd409a2b4900b97591a4972e4edcee086ee4ce5f4d85fee61938cfd2c094762eb2243d1336a20ba9028604922d0d44cc404144d
|
|
7
|
+
data.tar.gz: 4886985b7b7e3865a5fd25f168fb8a37195ad94389f777acb029002904093e7bc9f59822687dafeb843eba22552e600d9cd72b6bcdc1b7a06f5f13b6cf6ed993
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.0 (2026-06-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.20.0...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ce2b2c9](https://github.com/GetSafetyKit/safetykit-ruby/commit/ce2b2c94e7c40ead22d6f5c0984b6f633ff2fce4))
|
|
10
|
+
|
|
3
11
|
## 0.20.0 (2026-06-04)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.19.0...v0.20.0)
|
data/README.md
CHANGED
|
@@ -1602,18 +1602,19 @@ module SafetyKit
|
|
|
1602
1602
|
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label] }
|
|
1603
1603
|
|
|
1604
1604
|
# @!attribute source_id
|
|
1605
|
-
# Stable identifier within source_type. For
|
|
1606
|
-
#
|
|
1605
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
1606
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
1607
1607
|
#
|
|
1608
1608
|
# @return [String]
|
|
1609
1609
|
required :source_id, String
|
|
1610
1610
|
|
|
1611
1611
|
# @!attribute source_type
|
|
1612
|
-
#
|
|
1613
|
-
#
|
|
1612
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
1613
|
+
# expert_labeler, automation, or vendor.
|
|
1614
1614
|
#
|
|
1615
|
-
# @return [
|
|
1616
|
-
required :source_type,
|
|
1615
|
+
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType]
|
|
1616
|
+
required :source_type,
|
|
1617
|
+
enum: -> { SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType }
|
|
1617
1618
|
|
|
1618
1619
|
# @!attribute timestamp
|
|
1619
1620
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -1692,9 +1693,9 @@ module SafetyKit
|
|
|
1692
1693
|
#
|
|
1693
1694
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label>] One or more label categories supplied with the report.
|
|
1694
1695
|
#
|
|
1695
|
-
# @param source_id [String] Stable identifier within source_type. For
|
|
1696
|
+
# @param source_id [String] Stable identifier within source_type. For automation, use a versioned system ide
|
|
1696
1697
|
#
|
|
1697
|
-
# @param source_type [
|
|
1698
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType] Coarse attribution category for the decision source. Use one of human_moderator,
|
|
1698
1699
|
#
|
|
1699
1700
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
1700
1701
|
#
|
|
@@ -1727,6 +1728,22 @@ module SafetyKit
|
|
|
1727
1728
|
# @param label [String] Stable snake_case report label category.
|
|
1728
1729
|
end
|
|
1729
1730
|
|
|
1731
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
1732
|
+
# expert_labeler, automation, or vendor.
|
|
1733
|
+
#
|
|
1734
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#source_type
|
|
1735
|
+
module SourceType
|
|
1736
|
+
extend SafetyKit::Internal::Type::Enum
|
|
1737
|
+
|
|
1738
|
+
HUMAN_MODERATOR = :human_moderator
|
|
1739
|
+
EXPERT_LABELER = :expert_labeler
|
|
1740
|
+
AUTOMATION = :automation
|
|
1741
|
+
VENDOR = :vendor
|
|
1742
|
+
|
|
1743
|
+
# @!method self.values
|
|
1744
|
+
# @return [Array<Symbol>]
|
|
1745
|
+
end
|
|
1746
|
+
|
|
1730
1747
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest#type
|
|
1731
1748
|
module Type
|
|
1732
1749
|
extend SafetyKit::Internal::Type::Enum
|
|
@@ -3461,18 +3478,19 @@ module SafetyKit
|
|
|
3461
3478
|
-> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label] }
|
|
3462
3479
|
|
|
3463
3480
|
# @!attribute source_id
|
|
3464
|
-
# Stable identifier within source_type. For
|
|
3465
|
-
#
|
|
3481
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
3482
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
3466
3483
|
#
|
|
3467
3484
|
# @return [String]
|
|
3468
3485
|
required :source_id, String
|
|
3469
3486
|
|
|
3470
3487
|
# @!attribute source_type
|
|
3471
|
-
#
|
|
3472
|
-
#
|
|
3488
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3489
|
+
# expert_labeler, automation, or vendor.
|
|
3473
3490
|
#
|
|
3474
|
-
# @return [
|
|
3475
|
-
required :source_type,
|
|
3491
|
+
# @return [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType]
|
|
3492
|
+
required :source_type,
|
|
3493
|
+
enum: -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType }
|
|
3476
3494
|
|
|
3477
3495
|
# @!attribute timestamp
|
|
3478
3496
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -3550,9 +3568,9 @@ module SafetyKit
|
|
|
3550
3568
|
#
|
|
3551
3569
|
# @param labels [Array<SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label>] One or more label categories supplied with the report.
|
|
3552
3570
|
#
|
|
3553
|
-
# @param source_id [String] Stable identifier within source_type. For
|
|
3571
|
+
# @param source_id [String] Stable identifier within source_type. For automation, use a versioned system ide
|
|
3554
3572
|
#
|
|
3555
|
-
# @param source_type [
|
|
3573
|
+
# @param source_type [Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType] Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3556
3574
|
#
|
|
3557
3575
|
# @param timestamp [Time] The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3558
3576
|
#
|
|
@@ -3585,6 +3603,22 @@ module SafetyKit
|
|
|
3585
3603
|
# @param label [String] Stable snake_case report label category.
|
|
3586
3604
|
end
|
|
3587
3605
|
|
|
3606
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3607
|
+
# expert_labeler, automation, or vendor.
|
|
3608
|
+
#
|
|
3609
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision#source_type
|
|
3610
|
+
module SourceType
|
|
3611
|
+
extend SafetyKit::Internal::Type::Enum
|
|
3612
|
+
|
|
3613
|
+
HUMAN_MODERATOR = :human_moderator
|
|
3614
|
+
EXPERT_LABELER = :expert_labeler
|
|
3615
|
+
AUTOMATION = :automation
|
|
3616
|
+
VENDOR = :vendor
|
|
3617
|
+
|
|
3618
|
+
# @!method self.values
|
|
3619
|
+
# @return [Array<Symbol>]
|
|
3620
|
+
end
|
|
3621
|
+
|
|
3588
3622
|
# User-authored text content associated with an event.
|
|
3589
3623
|
module Content
|
|
3590
3624
|
extend SafetyKit::Internal::Type::Union
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -3376,14 +3376,18 @@ module SafetyKit
|
|
|
3376
3376
|
end
|
|
3377
3377
|
attr_accessor :labels
|
|
3378
3378
|
|
|
3379
|
-
# Stable identifier within source_type. For
|
|
3380
|
-
#
|
|
3379
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
3380
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
3381
3381
|
sig { returns(String) }
|
|
3382
3382
|
attr_accessor :source_id
|
|
3383
3383
|
|
|
3384
|
-
#
|
|
3385
|
-
#
|
|
3386
|
-
sig
|
|
3384
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3385
|
+
# expert_labeler, automation, or vendor.
|
|
3386
|
+
sig do
|
|
3387
|
+
returns(
|
|
3388
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol
|
|
3389
|
+
)
|
|
3390
|
+
end
|
|
3387
3391
|
attr_accessor :source_type
|
|
3388
3392
|
|
|
3389
3393
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -3517,7 +3521,8 @@ module SafetyKit
|
|
|
3517
3521
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label::OrHash
|
|
3518
3522
|
],
|
|
3519
3523
|
source_id: String,
|
|
3520
|
-
source_type:
|
|
3524
|
+
source_type:
|
|
3525
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
3521
3526
|
timestamp: Time,
|
|
3522
3527
|
type:
|
|
3523
3528
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type::OrSymbol,
|
|
@@ -3549,11 +3554,11 @@ module SafetyKit
|
|
|
3549
3554
|
event_name:,
|
|
3550
3555
|
# One or more label categories supplied with the report.
|
|
3551
3556
|
labels:,
|
|
3552
|
-
# Stable identifier within source_type. For
|
|
3553
|
-
#
|
|
3557
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
3558
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
3554
3559
|
source_id:,
|
|
3555
|
-
#
|
|
3556
|
-
#
|
|
3560
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3561
|
+
# expert_labeler, automation, or vendor.
|
|
3557
3562
|
source_type:,
|
|
3558
3563
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
3559
3564
|
timestamp:,
|
|
@@ -3591,7 +3596,8 @@ module SafetyKit
|
|
|
3591
3596
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label
|
|
3592
3597
|
],
|
|
3593
3598
|
source_id: String,
|
|
3594
|
-
source_type:
|
|
3599
|
+
source_type:
|
|
3600
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::OrSymbol,
|
|
3595
3601
|
timestamp: Time,
|
|
3596
3602
|
type:
|
|
3597
3603
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Type::OrSymbol,
|
|
@@ -3647,6 +3653,52 @@ module SafetyKit
|
|
|
3647
3653
|
end
|
|
3648
3654
|
end
|
|
3649
3655
|
|
|
3656
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
3657
|
+
# expert_labeler, automation, or vendor.
|
|
3658
|
+
module SourceType
|
|
3659
|
+
extend SafetyKit::Internal::Type::Enum
|
|
3660
|
+
|
|
3661
|
+
TaggedSymbol =
|
|
3662
|
+
T.type_alias do
|
|
3663
|
+
T.all(
|
|
3664
|
+
Symbol,
|
|
3665
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType
|
|
3666
|
+
)
|
|
3667
|
+
end
|
|
3668
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3669
|
+
|
|
3670
|
+
HUMAN_MODERATOR =
|
|
3671
|
+
T.let(
|
|
3672
|
+
:human_moderator,
|
|
3673
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3674
|
+
)
|
|
3675
|
+
EXPERT_LABELER =
|
|
3676
|
+
T.let(
|
|
3677
|
+
:expert_labeler,
|
|
3678
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3679
|
+
)
|
|
3680
|
+
AUTOMATION =
|
|
3681
|
+
T.let(
|
|
3682
|
+
:automation,
|
|
3683
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3684
|
+
)
|
|
3685
|
+
VENDOR =
|
|
3686
|
+
T.let(
|
|
3687
|
+
:vendor,
|
|
3688
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3689
|
+
)
|
|
3690
|
+
|
|
3691
|
+
sig do
|
|
3692
|
+
override.returns(
|
|
3693
|
+
T::Array[
|
|
3694
|
+
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::SourceType::TaggedSymbol
|
|
3695
|
+
]
|
|
3696
|
+
)
|
|
3697
|
+
end
|
|
3698
|
+
def self.values
|
|
3699
|
+
end
|
|
3700
|
+
end
|
|
3701
|
+
|
|
3650
3702
|
module Type
|
|
3651
3703
|
extend SafetyKit::Internal::Type::Enum
|
|
3652
3704
|
|
|
@@ -7158,14 +7210,18 @@ module SafetyKit
|
|
|
7158
7210
|
end
|
|
7159
7211
|
attr_accessor :labels
|
|
7160
7212
|
|
|
7161
|
-
# Stable identifier within source_type. For
|
|
7162
|
-
#
|
|
7213
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
7214
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
7163
7215
|
sig { returns(String) }
|
|
7164
7216
|
attr_accessor :source_id
|
|
7165
7217
|
|
|
7166
|
-
#
|
|
7167
|
-
#
|
|
7168
|
-
sig
|
|
7218
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
7219
|
+
# expert_labeler, automation, or vendor.
|
|
7220
|
+
sig do
|
|
7221
|
+
returns(
|
|
7222
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol
|
|
7223
|
+
)
|
|
7224
|
+
end
|
|
7169
7225
|
attr_accessor :source_type
|
|
7170
7226
|
|
|
7171
7227
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
@@ -7295,7 +7351,8 @@ module SafetyKit
|
|
|
7295
7351
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label::OrHash
|
|
7296
7352
|
],
|
|
7297
7353
|
source_id: String,
|
|
7298
|
-
source_type:
|
|
7354
|
+
source_type:
|
|
7355
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
7299
7356
|
timestamp: Time,
|
|
7300
7357
|
content:
|
|
7301
7358
|
T::Array[
|
|
@@ -7326,11 +7383,11 @@ module SafetyKit
|
|
|
7326
7383
|
event_name:,
|
|
7327
7384
|
# One or more label categories supplied with the report.
|
|
7328
7385
|
labels:,
|
|
7329
|
-
# Stable identifier within source_type. For
|
|
7330
|
-
#
|
|
7386
|
+
# Stable identifier within source_type. For automation, use a versioned system
|
|
7387
|
+
# identifier; for human_moderator, use the manual reviewer id.
|
|
7331
7388
|
source_id:,
|
|
7332
|
-
#
|
|
7333
|
-
#
|
|
7389
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
7390
|
+
# expert_labeler, automation, or vendor.
|
|
7334
7391
|
source_type:,
|
|
7335
7392
|
# The time the event occurred in your system, as an ISO 8601 datetime string.
|
|
7336
7393
|
timestamp:,
|
|
@@ -7368,7 +7425,8 @@ module SafetyKit
|
|
|
7368
7425
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label
|
|
7369
7426
|
],
|
|
7370
7427
|
source_id: String,
|
|
7371
|
-
source_type:
|
|
7428
|
+
source_type:
|
|
7429
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::OrSymbol,
|
|
7372
7430
|
timestamp: Time,
|
|
7373
7431
|
type: Symbol,
|
|
7374
7432
|
content:
|
|
@@ -7423,6 +7481,52 @@ module SafetyKit
|
|
|
7423
7481
|
end
|
|
7424
7482
|
end
|
|
7425
7483
|
|
|
7484
|
+
# Coarse attribution category for the decision source. Use one of human_moderator,
|
|
7485
|
+
# expert_labeler, automation, or vendor.
|
|
7486
|
+
module SourceType
|
|
7487
|
+
extend SafetyKit::Internal::Type::Enum
|
|
7488
|
+
|
|
7489
|
+
TaggedSymbol =
|
|
7490
|
+
T.type_alias do
|
|
7491
|
+
T.all(
|
|
7492
|
+
Symbol,
|
|
7493
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType
|
|
7494
|
+
)
|
|
7495
|
+
end
|
|
7496
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
7497
|
+
|
|
7498
|
+
HUMAN_MODERATOR =
|
|
7499
|
+
T.let(
|
|
7500
|
+
:human_moderator,
|
|
7501
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7502
|
+
)
|
|
7503
|
+
EXPERT_LABELER =
|
|
7504
|
+
T.let(
|
|
7505
|
+
:expert_labeler,
|
|
7506
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7507
|
+
)
|
|
7508
|
+
AUTOMATION =
|
|
7509
|
+
T.let(
|
|
7510
|
+
:automation,
|
|
7511
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7512
|
+
)
|
|
7513
|
+
VENDOR =
|
|
7514
|
+
T.let(
|
|
7515
|
+
:vendor,
|
|
7516
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7517
|
+
)
|
|
7518
|
+
|
|
7519
|
+
sig do
|
|
7520
|
+
override.returns(
|
|
7521
|
+
T::Array[
|
|
7522
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::SourceType::TaggedSymbol
|
|
7523
|
+
]
|
|
7524
|
+
)
|
|
7525
|
+
end
|
|
7526
|
+
def self.values
|
|
7527
|
+
end
|
|
7528
|
+
end
|
|
7529
|
+
|
|
7426
7530
|
# User-authored text content associated with an event.
|
|
7427
7531
|
module Content
|
|
7428
7532
|
extend SafetyKit::Internal::Type::Union
|
|
@@ -1253,7 +1253,7 @@ module SafetyKit
|
|
|
1253
1253
|
event_name: String,
|
|
1254
1254
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1255
1255
|
source_id: String,
|
|
1256
|
-
source_type:
|
|
1256
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1257
1257
|
timestamp: Time,
|
|
1258
1258
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1259
1259
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1272,7 +1272,7 @@ module SafetyKit
|
|
|
1272
1272
|
|
|
1273
1273
|
attr_accessor source_id: String
|
|
1274
1274
|
|
|
1275
|
-
attr_accessor source_type:
|
|
1275
|
+
attr_accessor source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type
|
|
1276
1276
|
|
|
1277
1277
|
attr_accessor timestamp: Time
|
|
1278
1278
|
|
|
@@ -1316,7 +1316,7 @@ module SafetyKit
|
|
|
1316
1316
|
event_name: String,
|
|
1317
1317
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1318
1318
|
source_id: String,
|
|
1319
|
-
source_type:
|
|
1319
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1320
1320
|
timestamp: Time,
|
|
1321
1321
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1322
1322
|
?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1332,7 +1332,7 @@ module SafetyKit
|
|
|
1332
1332
|
event_name: String,
|
|
1333
1333
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::Label],
|
|
1334
1334
|
source_id: String,
|
|
1335
|
-
source_type:
|
|
1335
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type,
|
|
1336
1336
|
timestamp: Time,
|
|
1337
1337
|
type: SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::type_,
|
|
1338
1338
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::content],
|
|
@@ -1354,6 +1354,20 @@ module SafetyKit
|
|
|
1354
1354
|
def to_hash: -> { label: String }
|
|
1355
1355
|
end
|
|
1356
1356
|
|
|
1357
|
+
type source_type =
|
|
1358
|
+
:human_moderator | :expert_labeler | :automation | :vendor
|
|
1359
|
+
|
|
1360
|
+
module SourceType
|
|
1361
|
+
extend SafetyKit::Internal::Type::Enum
|
|
1362
|
+
|
|
1363
|
+
HUMAN_MODERATOR: :human_moderator
|
|
1364
|
+
EXPERT_LABELER: :expert_labeler
|
|
1365
|
+
AUTOMATION: :automation
|
|
1366
|
+
VENDOR: :vendor
|
|
1367
|
+
|
|
1368
|
+
def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::source_type]
|
|
1369
|
+
end
|
|
1370
|
+
|
|
1357
1371
|
type type_ = :moderation_decision
|
|
1358
1372
|
|
|
1359
1373
|
module Type
|
|
@@ -2700,7 +2714,7 @@ module SafetyKit
|
|
|
2700
2714
|
event_name: String,
|
|
2701
2715
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2702
2716
|
source_id: String,
|
|
2703
|
-
source_type:
|
|
2717
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2704
2718
|
timestamp: Time,
|
|
2705
2719
|
type: :moderation_decision,
|
|
2706
2720
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
@@ -2719,7 +2733,7 @@ module SafetyKit
|
|
|
2719
2733
|
|
|
2720
2734
|
attr_accessor source_id: String
|
|
2721
2735
|
|
|
2722
|
-
attr_accessor source_type:
|
|
2736
|
+
attr_accessor source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type
|
|
2723
2737
|
|
|
2724
2738
|
attr_accessor timestamp: Time
|
|
2725
2739
|
|
|
@@ -2763,7 +2777,7 @@ module SafetyKit
|
|
|
2763
2777
|
event_name: String,
|
|
2764
2778
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2765
2779
|
source_id: String,
|
|
2766
|
-
source_type:
|
|
2780
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2767
2781
|
timestamp: Time,
|
|
2768
2782
|
?content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
2769
2783
|
?content_id: String,
|
|
@@ -2779,7 +2793,7 @@ module SafetyKit
|
|
|
2779
2793
|
event_name: String,
|
|
2780
2794
|
labels: ::Array[SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Label],
|
|
2781
2795
|
source_id: String,
|
|
2782
|
-
source_type:
|
|
2796
|
+
source_type: SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type,
|
|
2783
2797
|
timestamp: Time,
|
|
2784
2798
|
type: :moderation_decision,
|
|
2785
2799
|
content: ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::content],
|
|
@@ -2801,6 +2815,20 @@ module SafetyKit
|
|
|
2801
2815
|
def to_hash: -> { label: String }
|
|
2802
2816
|
end
|
|
2803
2817
|
|
|
2818
|
+
type source_type =
|
|
2819
|
+
:human_moderator | :expert_labeler | :automation | :vendor
|
|
2820
|
+
|
|
2821
|
+
module SourceType
|
|
2822
|
+
extend SafetyKit::Internal::Type::Enum
|
|
2823
|
+
|
|
2824
|
+
HUMAN_MODERATOR: :human_moderator
|
|
2825
|
+
EXPERT_LABELER: :expert_labeler
|
|
2826
|
+
AUTOMATION: :automation
|
|
2827
|
+
VENDOR: :vendor
|
|
2828
|
+
|
|
2829
|
+
def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::source_type]
|
|
2830
|
+
end
|
|
2831
|
+
|
|
2804
2832
|
type content =
|
|
2805
2833
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Content::EventTextContent
|
|
2806
2834
|
| SafetyKit::Beta::EventCreateParams::Body::UnionMember6::ModerationDecision::Content::EventImageContent
|