rks-yag.ipc.0.17.4.source-code.ipc.thrift Maven / Gradle / Ivy
namespace java com.github.yag.ipc
struct Prompt {
1: required string version
2: required binary body
}
struct ConnectRequest {
1: required string version
2: optional i64 requestTimeoutMs
3: optional string sessionId
4: optional map headers
5: required binary body
}
struct ConnectionAccepted {
1: required string connectionId
2: required string sessionId
3: optional map headers
4: optional binary body
}
struct ConnectionRejected {
1: optional i32 code
2: required string message
}
union ConnectionResponse {
1: ConnectionAccepted accepted
2: ConnectionRejected rejected
}
struct RequestHeader {
1: required i64 callId
2: required string callType
3: required i32 contentLength
}
enum StatusCode {
OK = 0
PARTIAL_CONTENT = 1
CONNECTION_ERROR = -1
TIMEOUT = -2
NOT_FOUND = -3
INTERNAL_ERROR = -4
}
struct ResponseHeader {
1: required i64 callId
2: required StatusCode statusCode
3: required i32 contentLength
}