feat(assessment): add the review band of attempt signals and the disclosed collector

This commit is contained in:
shira committed 2026-10-08 23:04:57 +03:00
1 parent 68286af8b7
commit b3c6dc870b
124 files changed
+13522 -633

No files matched your search

@@ -16,6 +16,33 @@ type AccountDeletionRequest struct {
CompletedAt pgtype.Timestamptz
}
type AssessmentAnswerFamilyTotal struct {
FamilyID pgtype.UUID
KeyVersion int16
AnswerCount int32
}
type AssessmentAnswerFingerprintHolder struct {
FamilyID pgtype.UUID
KeyVersion int16
AnswerFingerprint []byte
Holders int32
}
type AssessmentAnswerObservation struct {
AttemptID pgtype.UUID
ItemInstanceID pgtype.UUID
UserID pgtype.UUID
FamilyID pgtype.UUID
VariantSeed int64
AnswerFormat string
AnswerFingerprint []byte
KeyVersion int16
ElapsedMs int32
MeasuredFromAnswer bool
ObservedAt pgtype.Timestamptz
}
type AssessmentAttempt struct {
ID pgtype.UUID
UserID pgtype.UUID
@@ -74,6 +101,16 @@ type AssessmentAttemptItem struct {
AnsweredAt pgtype.Timestamptz
}
type AssessmentAttemptOriginMark struct {
ID pgtype.UUID
AttemptID pgtype.UUID
Source string
ObservedAt pgtype.Timestamptz
SessionDigest []byte
NetworkDigest []byte
KeyVersion int16
}
type AssessmentAttemptResult struct {
AttemptID pgtype.UUID
UserID pgtype.UUID
@@ -99,6 +136,26 @@ type AssessmentAttemptResult struct {
DecidedAt pgtype.Timestamptz
}
type AssessmentAttemptReview struct {
AttemptID pgtype.UUID
PolicyVersionID pgtype.UUID
Band string
Reasons []string
AnsweredItems int32
FastAnswers int32
DeviatingAnswers int32
ParallelAlternations int32
ExtraNetworks int32
MatchedIntegerItems int32
MatchedSequenceItems int32
DuplicateEvidenceBits int32
ClientFocusLossMs int64
ClientClipboardEvents int32
ClientFullscreenExits int32
EvaluatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type AssessmentCategoryCatalogBinding struct {
OpeningID pgtype.UUID
Specialization string
@@ -143,6 +200,14 @@ type AssessmentFamily struct {
RetiredBy pgtype.Text
}
type AssessmentReviewRead struct {
ID pgtype.UUID
AttemptID pgtype.UUID
Actor string
Found bool
ReadAt pgtype.Timestamptz
}
type AssessmentSignalBatch struct {
ID pgtype.UUID
AttemptID pgtype.UUID
@@ -169,6 +234,12 @@ type AssessmentSignalIdempotencyOutcome struct {
ReceivedAt pgtype.Timestamptz
}
type AssessmentSignalNoticeAcknowledgement struct {
UserID pgtype.UUID
NoticeVersion int32
AcknowledgedAt pgtype.Timestamptz
}
type AssessmentTrainingBankBinding struct {
ID pgtype.UUID
Category string