safetykit 0.28.1 → 0.30.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.
@@ -46,6 +46,45 @@ module SafetyKit
46
46
  )
47
47
  end
48
48
 
49
+ # Beta. Queue backend events for asynchronous ingestion. This endpoint accepts the
50
+ # same request body as POST /v1/events, writes one SQS message per event, and
51
+ # returns after the events are queued. SafetyKit later processes the queued events
52
+ # through the standard event ingestion path.
53
+ sig do
54
+ params(
55
+ body:
56
+ T.any(
57
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UserContactEventRequest::OrHash,
58
+ SafetyKit::Beta::EventCreateAsyncParams::Body::ContentUploadedEventRequest::OrHash,
59
+ SafetyKit::Beta::EventCreateAsyncParams::Body::ProductChangedEventRequest::OrHash,
60
+ SafetyKit::Beta::EventCreateAsyncParams::Body::CreateAccountEventRequest::OrHash,
61
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UpdateAccountEventRequest::OrHash,
62
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UserReportEventRequest::OrHash,
63
+ SafetyKit::Beta::EventCreateAsyncParams::Body::ModerationDecisionEventRequest::OrHash,
64
+ T::Array[
65
+ T.any(
66
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::UserContact::OrHash,
67
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::ContentUploaded::OrHash,
68
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::ProductChanged::OrHash,
69
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::CreateAccount::OrHash,
70
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::UpdateAccount::OrHash,
71
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::UserReport::OrHash,
72
+ SafetyKit::Beta::EventCreateAsyncParams::Body::UnionMember7::ModerationDecision::OrHash
73
+ )
74
+ ]
75
+ ),
76
+ request_options: SafetyKit::RequestOptions::OrHash
77
+ ).returns(SafetyKit::Models::Beta::EventCreateAsyncResponse)
78
+ end
79
+ def create_async(
80
+ # Backend event or ordered batch of events to send to SafetyKit. Send events from
81
+ # your server after an action has happened in your product. Do not send these
82
+ # events directly from a browser or mobile client.
83
+ body:,
84
+ request_options: {}
85
+ )
86
+ end
87
+
49
88
  # @api private
50
89
  sig { params(client: SafetyKit::Client).returns(T.attached_class) }
51
90
  def self.new(client:)