safetykit 0.39.0 → 0.40.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/client.rb +2 -2
- data/lib/safety_kit/models/async_create_async_params.rb +1505 -715
- data/lib/safety_kit/models/beta/event_create_params.rb +1503 -713
- data/lib/safety_kit/resources/async.rb +3 -3
- data/lib/safety_kit/resources/beta/events.rb +5 -5
- data/lib/safety_kit/resources/beta.rb +2 -2
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/client.rbi +2 -2
- data/rbi/safety_kit/models/async_create_async_params.rbi +3369 -1726
- data/rbi/safety_kit/models/beta/event_create_params.rbi +3370 -1725
- data/rbi/safety_kit/resources/async.rbi +11 -9
- data/rbi/safety_kit/resources/beta/events.rbi +13 -11
- data/rbi/safety_kit/resources/beta.rbi +2 -2
- data/sig/safety_kit/models/async_create_async_params.rbs +1054 -438
- data/sig/safety_kit/models/beta/event_create_params.rbs +1054 -438
- metadata +2 -2
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module SafetyKit
|
|
4
4
|
module Resources
|
|
5
|
-
# Beta. Send backend events for account, content, user interaction, report,
|
|
6
|
-
# moderation activity.
|
|
5
|
+
# Beta. Send backend events for account, content, user interaction, report,
|
|
6
|
+
# appeal, and moderation activity.
|
|
7
7
|
class Async
|
|
8
8
|
# Beta. Queue backend events for asynchronous ingestion. This endpoint accepts the
|
|
9
9
|
# same request body as POST /v1/events, writes one SQS message per event, and
|
|
@@ -19,16 +19,18 @@ module SafetyKit
|
|
|
19
19
|
SafetyKit::AsyncCreateAsyncParams::Body::CreateAccountEventRequest::OrHash,
|
|
20
20
|
SafetyKit::AsyncCreateAsyncParams::Body::UpdateAccountEventRequest::OrHash,
|
|
21
21
|
SafetyKit::AsyncCreateAsyncParams::Body::UserReportEventRequest::OrHash,
|
|
22
|
+
SafetyKit::AsyncCreateAsyncParams::Body::AppealEventRequest::OrHash,
|
|
22
23
|
SafetyKit::AsyncCreateAsyncParams::Body::ModerationDecisionEventRequest::OrHash,
|
|
23
24
|
T::Array[
|
|
24
25
|
T.any(
|
|
25
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
26
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
27
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
28
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
29
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
30
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
31
|
-
SafetyKit::AsyncCreateAsyncParams::Body::
|
|
26
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::UserContact::OrHash,
|
|
27
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ContentUploaded::OrHash,
|
|
28
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ProductChanged::OrHash,
|
|
29
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::CreateAccount::OrHash,
|
|
30
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::UpdateAccount::OrHash,
|
|
31
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::UserReport::OrHash,
|
|
32
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::Appeal::OrHash,
|
|
33
|
+
SafetyKit::AsyncCreateAsyncParams::Body::UnionMember8::ModerationDecision::OrHash
|
|
32
34
|
)
|
|
33
35
|
]
|
|
34
36
|
),
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
module SafetyKit
|
|
4
4
|
module Resources
|
|
5
5
|
class Beta
|
|
6
|
-
# Beta. Send backend events for account, content, user interaction, report,
|
|
7
|
-
# moderation activity.
|
|
6
|
+
# Beta. Send backend events for account, content, user interaction, report,
|
|
7
|
+
# appeal, and moderation activity.
|
|
8
8
|
class Events
|
|
9
9
|
# Beta. Send a backend event after a meaningful product action happens in your
|
|
10
10
|
# system. Use events for durable server-side context such as account creation,
|
|
11
|
-
# account updates, user-to-user contact, content uploads, user reports,
|
|
12
|
-
# moderation decisions. Do not send browser pageviews, button clicks, or other
|
|
11
|
+
# account updates, user-to-user contact, content uploads, user reports, appeals,
|
|
12
|
+
# and moderation decisions. Do not send browser pageviews, button clicks, or other
|
|
13
13
|
# client-only telemetry through this endpoint.
|
|
14
14
|
sig do
|
|
15
15
|
params(
|
|
@@ -21,16 +21,18 @@ module SafetyKit
|
|
|
21
21
|
SafetyKit::Beta::EventCreateParams::Body::CreateAccountEventRequest::OrHash,
|
|
22
22
|
SafetyKit::Beta::EventCreateParams::Body::UpdateAccountEventRequest::OrHash,
|
|
23
23
|
SafetyKit::Beta::EventCreateParams::Body::UserReportEventRequest::OrHash,
|
|
24
|
+
SafetyKit::Beta::EventCreateParams::Body::AppealEventRequest::OrHash,
|
|
24
25
|
SafetyKit::Beta::EventCreateParams::Body::ModerationDecisionEventRequest::OrHash,
|
|
25
26
|
T::Array[
|
|
26
27
|
T.any(
|
|
27
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
28
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
29
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
30
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
31
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
32
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
33
|
-
SafetyKit::Beta::EventCreateParams::Body::
|
|
28
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::UserContact::OrHash,
|
|
29
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ContentUploaded::OrHash,
|
|
30
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ProductChanged::OrHash,
|
|
31
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::CreateAccount::OrHash,
|
|
32
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::UpdateAccount::OrHash,
|
|
33
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::UserReport::OrHash,
|
|
34
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::Appeal::OrHash,
|
|
35
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember8::ModerationDecision::OrHash
|
|
34
36
|
)
|
|
35
37
|
]
|
|
36
38
|
),
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module SafetyKit
|
|
4
4
|
module Resources
|
|
5
5
|
class Beta
|
|
6
|
-
# Beta. Send backend events for account, content, user interaction, report,
|
|
7
|
-
# moderation activity.
|
|
6
|
+
# Beta. Send backend events for account, content, user interaction, report,
|
|
7
|
+
# appeal, and moderation activity.
|
|
8
8
|
sig { returns(SafetyKit::Resources::Beta::Events) }
|
|
9
9
|
attr_reader :events
|
|
10
10
|
|