mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 22:58:54 +02:00
f1b5c32734
User Signal Service (USS) is a centralized online platform that supplies comprehensive data on user actions and behaviors on Twitter. This service stores information on both explicit signals, such as Favorites, Retweets, and replies, and implicit signals like Tweet clicks, profile visits, and more.
24 lines
786 B
Thrift
24 lines
786 B
Thrift
namespace java com.twitter.usersignalservice.thriftjava
|
|
namespace py gen.twitter.usersignalservice.service
|
|
#@namespace scala com.twitter.usersignalservice.thriftscala
|
|
#@namespace strato com.twitter.usersignalservice.strato
|
|
|
|
include "signal.thrift"
|
|
include "client_identifier.thrift"
|
|
|
|
struct SignalRequest {
|
|
1: optional i64 maxResults
|
|
2: required signal.SignalType signalType
|
|
}
|
|
|
|
struct BatchSignalRequest {
|
|
1: required i64 userId(personalDataType = "UserId")
|
|
2: required list<SignalRequest> signalRequest
|
|
# make sure to populate the clientId, otherwise the service would throw exceptions
|
|
3: optional client_identifier.ClientIdentifier clientId
|
|
}(hasPersonalData='true')
|
|
|
|
struct BatchSignalResponse {
|
|
1: required map<signal.SignalType, list<signal.Signal>> signalResponse
|
|
}
|