feat(evidence): project skill evidence from confirmed assessments
This commit is contained in:
1 parent
4761508f13
commit
c2a8d17195
94 files changed
+10077
-151
No files matched your search
@@ -7117,7 +7117,11 @@ func (s *CardCategoryStrength) UnmarshalText(data []byte) error {
|
||||
// leave only through the contact grant of an accepted invitation (C4), and the lowest salary never
|
||||
// leaves.
|
||||
//
|
||||
// - categories: specialization and grade confirmed by an authoritative assessment result.
|
||||
// - categories: specialization and grade confirmed by an authoritative assessment result. With it an
|
||||
// organization receives the confirmed category and, with each category of the card, one supporting
|
||||
// assessment fact: its skill, the passed grade, the trust level, the year of the assessment, and
|
||||
// the basis and calibration that mark a synthetic, uncalibrated demonstration
|
||||
// (`GetOrganizationCandidateEvidence`). The candidate sees the same on `GetMyCardPreview`.
|
||||
// - self_assessment: the candidate's declared specialization and grade, separate from confirmed
|
||||
// categories.
|
||||
// - stack: only recognized technology codes from the server's closed taxonomy.
|
||||
@@ -7231,12 +7235,15 @@ type CardFieldSet []CardField
|
||||
// pseudonym uses a separate preview context and is not an organization's alias. Organization-specific
|
||||
// visibility filters and cohort checks can further generalize or suppress the organization-facing
|
||||
// card. This read creates no view or history record and never reaches an organization. `card` is null
|
||||
// while the profile is closed.
|
||||
// while the profile is closed. `evidence` is what an organization would read in the evidence section
|
||||
// of the card, one supporting assessment fact for each category of the card, and is null exactly when
|
||||
// `card` is null; the organization-facing section can still be generalized or suppressed.
|
||||
// Ref: #/components/schemas/CardPreview
|
||||
type CardPreview struct {
|
||||
State PublicationState `json:"state"`
|
||||
Fields CardFieldSet `json:"fields"`
|
||||
Card NilAnonymousCardContent `json:"card"`
|
||||
Evidence NilOrganizationEvidence `json:"evidence"`
|
||||
GeneratedAt Timestamp `json:"generated_at"`
|
||||
}
|
||||
|
||||
@@ -7255,6 +7262,11 @@ func (s *CardPreview) GetCard() NilAnonymousCardContent {
|
||||
return s.Card
|
||||
}
|
||||
|
||||
// GetEvidence returns the value of Evidence.
|
||||
func (s *CardPreview) GetEvidence() NilOrganizationEvidence {
|
||||
return s.Evidence
|
||||
}
|
||||
|
||||
// GetGeneratedAt returns the value of GeneratedAt.
|
||||
func (s *CardPreview) GetGeneratedAt() Timestamp {
|
||||
return s.GeneratedAt
|
||||
@@ -7275,6 +7287,11 @@ func (s *CardPreview) SetCard(val NilAnonymousCardContent) {
|
||||
s.Card = val
|
||||
}
|
||||
|
||||
// SetEvidence sets the value of Evidence.
|
||||
func (s *CardPreview) SetEvidence(val NilOrganizationEvidence) {
|
||||
s.Evidence = val
|
||||
}
|
||||
|
||||
// SetGeneratedAt sets the value of GeneratedAt.
|
||||
func (s *CardPreview) SetGeneratedAt(val Timestamp) {
|
||||
s.GeneratedAt = val
|
||||
@@ -9672,6 +9689,651 @@ func (EmailVerificationResultEmailVerified) AllValues() []EmailVerificationResul
|
||||
}
|
||||
}
|
||||
|
||||
// Whose contribution the fact is.
|
||||
//
|
||||
// - personal: the candidate's own result. Every assessment fact is personal.
|
||||
// - team_role: a team result with a confirmed role of the candidate.
|
||||
// - team_unattributed: a team result without a confirmed role; it is not a personal skill.
|
||||
//
|
||||
// Only `personal` is produced today.
|
||||
// Ref: #/components/schemas/EvidenceAttribution
|
||||
type EvidenceAttribution string
|
||||
|
||||
const (
|
||||
EvidenceAttributionPersonal EvidenceAttribution = "personal"
|
||||
EvidenceAttributionTeamRole EvidenceAttribution = "team_role"
|
||||
EvidenceAttributionTeamUnattributed EvidenceAttribution = "team_unattributed"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceAttribution values.
|
||||
func (EvidenceAttribution) AllValues() []EvidenceAttribution {
|
||||
return []EvidenceAttribution{
|
||||
EvidenceAttributionPersonal,
|
||||
EvidenceAttributionTeamRole,
|
||||
EvidenceAttributionTeamUnattributed,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceAttribution) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceAttributionPersonal:
|
||||
return []byte(s), nil
|
||||
case EvidenceAttributionTeamRole:
|
||||
return []byte(s), nil
|
||||
case EvidenceAttributionTeamUnattributed:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceAttribution) UnmarshalText(data []byte) error {
|
||||
switch EvidenceAttribution(data) {
|
||||
case EvidenceAttributionPersonal:
|
||||
*s = EvidenceAttributionPersonal
|
||||
return nil
|
||||
case EvidenceAttributionTeamRole:
|
||||
*s = EvidenceAttributionTeamRole
|
||||
return nil
|
||||
case EvidenceAttributionTeamUnattributed:
|
||||
*s = EvidenceAttributionTeamUnattributed
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// What the measurement rests on.
|
||||
//
|
||||
// - synthetic_demo: a demonstration category from a synthetic reviewed bank. It shows the mechanics
|
||||
// and is not a validated measurement.
|
||||
//
|
||||
// Ref: #/components/schemas/EvidenceBasis
|
||||
type EvidenceBasis string
|
||||
|
||||
const (
|
||||
EvidenceBasisSyntheticDemo EvidenceBasis = "synthetic_demo"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceBasis values.
|
||||
func (EvidenceBasis) AllValues() []EvidenceBasis {
|
||||
return []EvidenceBasis{
|
||||
EvidenceBasisSyntheticDemo,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceBasis) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceBasisSyntheticDemo:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceBasis) UnmarshalText(data []byte) error {
|
||||
switch EvidenceBasis(data) {
|
||||
case EvidenceBasisSyntheticDemo:
|
||||
*s = EvidenceBasisSyntheticDemo
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// Calibration of the method behind the result.
|
||||
//
|
||||
// - uncalibrated: the thresholds are initial values that no measurement has validated.
|
||||
//
|
||||
// Ref: #/components/schemas/EvidenceCalibrationStatus
|
||||
type EvidenceCalibrationStatus string
|
||||
|
||||
const (
|
||||
EvidenceCalibrationStatusUncalibrated EvidenceCalibrationStatus = "uncalibrated"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceCalibrationStatus values.
|
||||
func (EvidenceCalibrationStatus) AllValues() []EvidenceCalibrationStatus {
|
||||
return []EvidenceCalibrationStatus{
|
||||
EvidenceCalibrationStatusUncalibrated,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceCalibrationStatus) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceCalibrationStatusUncalibrated:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceCalibrationStatus) UnmarshalText(data []byte) error {
|
||||
switch EvidenceCalibrationStatus(data) {
|
||||
case EvidenceCalibrationStatusUncalibrated:
|
||||
*s = EvidenceCalibrationStatusUncalibrated
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// One independent fact of the current candidate. `occurred_at` is when the source event ended; for an
|
||||
// assessment it is the time of the decision. A fact is one source event; the skills of that event are
|
||||
// tags of the fact, so a second tag never makes a second fact. Hidden facts are listed here with their
|
||||
// visibility, because the candidate owns them.
|
||||
// Ref: #/components/schemas/EvidenceFact
|
||||
type EvidenceFact struct {
|
||||
// Identifier of the fact.
|
||||
ID uuid.UUID `json:"id"`
|
||||
Kind EvidenceKind `json:"kind"`
|
||||
Source EvidenceSource `json:"source"`
|
||||
// Skill tags of the event in ascending order.
|
||||
Skills []EvidenceSkillCode `json:"skills"`
|
||||
Result EvidenceResult `json:"result"`
|
||||
Attribution EvidenceAttribution `json:"attribution"`
|
||||
Trust EvidenceTrustLevel `json:"trust"`
|
||||
OccurredAt Timestamp `json:"occurred_at"`
|
||||
Visibility EvidenceVisibility `json:"visibility"`
|
||||
}
|
||||
|
||||
// GetID returns the value of ID.
|
||||
func (s *EvidenceFact) GetID() uuid.UUID {
|
||||
return s.ID
|
||||
}
|
||||
|
||||
// GetKind returns the value of Kind.
|
||||
func (s *EvidenceFact) GetKind() EvidenceKind {
|
||||
return s.Kind
|
||||
}
|
||||
|
||||
// GetSource returns the value of Source.
|
||||
func (s *EvidenceFact) GetSource() EvidenceSource {
|
||||
return s.Source
|
||||
}
|
||||
|
||||
// GetSkills returns the value of Skills.
|
||||
func (s *EvidenceFact) GetSkills() []EvidenceSkillCode {
|
||||
return s.Skills
|
||||
}
|
||||
|
||||
// GetResult returns the value of Result.
|
||||
func (s *EvidenceFact) GetResult() EvidenceResult {
|
||||
return s.Result
|
||||
}
|
||||
|
||||
// GetAttribution returns the value of Attribution.
|
||||
func (s *EvidenceFact) GetAttribution() EvidenceAttribution {
|
||||
return s.Attribution
|
||||
}
|
||||
|
||||
// GetTrust returns the value of Trust.
|
||||
func (s *EvidenceFact) GetTrust() EvidenceTrustLevel {
|
||||
return s.Trust
|
||||
}
|
||||
|
||||
// GetOccurredAt returns the value of OccurredAt.
|
||||
func (s *EvidenceFact) GetOccurredAt() Timestamp {
|
||||
return s.OccurredAt
|
||||
}
|
||||
|
||||
// GetVisibility returns the value of Visibility.
|
||||
func (s *EvidenceFact) GetVisibility() EvidenceVisibility {
|
||||
return s.Visibility
|
||||
}
|
||||
|
||||
// SetID sets the value of ID.
|
||||
func (s *EvidenceFact) SetID(val uuid.UUID) {
|
||||
s.ID = val
|
||||
}
|
||||
|
||||
// SetKind sets the value of Kind.
|
||||
func (s *EvidenceFact) SetKind(val EvidenceKind) {
|
||||
s.Kind = val
|
||||
}
|
||||
|
||||
// SetSource sets the value of Source.
|
||||
func (s *EvidenceFact) SetSource(val EvidenceSource) {
|
||||
s.Source = val
|
||||
}
|
||||
|
||||
// SetSkills sets the value of Skills.
|
||||
func (s *EvidenceFact) SetSkills(val []EvidenceSkillCode) {
|
||||
s.Skills = val
|
||||
}
|
||||
|
||||
// SetResult sets the value of Result.
|
||||
func (s *EvidenceFact) SetResult(val EvidenceResult) {
|
||||
s.Result = val
|
||||
}
|
||||
|
||||
// SetAttribution sets the value of Attribution.
|
||||
func (s *EvidenceFact) SetAttribution(val EvidenceAttribution) {
|
||||
s.Attribution = val
|
||||
}
|
||||
|
||||
// SetTrust sets the value of Trust.
|
||||
func (s *EvidenceFact) SetTrust(val EvidenceTrustLevel) {
|
||||
s.Trust = val
|
||||
}
|
||||
|
||||
// SetOccurredAt sets the value of OccurredAt.
|
||||
func (s *EvidenceFact) SetOccurredAt(val Timestamp) {
|
||||
s.OccurredAt = val
|
||||
}
|
||||
|
||||
// SetVisibility sets the value of Visibility.
|
||||
func (s *EvidenceFact) SetVisibility(val EvidenceVisibility) {
|
||||
s.Visibility = val
|
||||
}
|
||||
|
||||
// One page of the facts of the current candidate, newest event first.
|
||||
// Ref: #/components/schemas/EvidenceFactList
|
||||
type EvidenceFactList struct {
|
||||
// Facts of the page.
|
||||
Items []EvidenceFact `json:"items"`
|
||||
Page PageInfo `json:"page"`
|
||||
}
|
||||
|
||||
// GetItems returns the value of Items.
|
||||
func (s *EvidenceFactList) GetItems() []EvidenceFact {
|
||||
return s.Items
|
||||
}
|
||||
|
||||
// GetPage returns the value of Page.
|
||||
func (s *EvidenceFactList) GetPage() PageInfo {
|
||||
return s.Page
|
||||
}
|
||||
|
||||
// SetItems sets the value of Items.
|
||||
func (s *EvidenceFactList) SetItems(val []EvidenceFact) {
|
||||
s.Items = val
|
||||
}
|
||||
|
||||
// SetPage sets the value of Page.
|
||||
func (s *EvidenceFactList) SetPage(val PageInfo) {
|
||||
s.Page = val
|
||||
}
|
||||
|
||||
// EvidenceFactListHeaders wraps EvidenceFactList with response headers.
|
||||
type EvidenceFactListHeaders struct {
|
||||
CacheControl CacheControlNoStore
|
||||
Response EvidenceFactList
|
||||
}
|
||||
|
||||
// GetCacheControl returns the value of CacheControl.
|
||||
func (s *EvidenceFactListHeaders) GetCacheControl() CacheControlNoStore {
|
||||
return s.CacheControl
|
||||
}
|
||||
|
||||
// GetResponse returns the value of Response.
|
||||
func (s *EvidenceFactListHeaders) GetResponse() EvidenceFactList {
|
||||
return s.Response
|
||||
}
|
||||
|
||||
// SetCacheControl sets the value of CacheControl.
|
||||
func (s *EvidenceFactListHeaders) SetCacheControl(val CacheControlNoStore) {
|
||||
s.CacheControl = val
|
||||
}
|
||||
|
||||
// SetResponse sets the value of Response.
|
||||
func (s *EvidenceFactListHeaders) SetResponse(val EvidenceFactList) {
|
||||
s.Response = val
|
||||
}
|
||||
|
||||
func (*EvidenceFactListHeaders) listMyEvidenceRes() {}
|
||||
|
||||
// Whether a fact is a statement or an observation.
|
||||
//
|
||||
// - claim: something the candidate stated that nothing confirmed separately. Its trust is 0.
|
||||
// - measurement: a result that a system observed, such as a confirmed assessment. Its trust is 1 to
|
||||
// 3.
|
||||
//
|
||||
// Assessments produce measurements only. A claim never becomes a measurement by repetition, and the
|
||||
// two kinds are stored apart.
|
||||
// Ref: #/components/schemas/EvidenceKind
|
||||
type EvidenceKind string
|
||||
|
||||
const (
|
||||
EvidenceKindClaim EvidenceKind = "claim"
|
||||
EvidenceKindMeasurement EvidenceKind = "measurement"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceKind values.
|
||||
func (EvidenceKind) AllValues() []EvidenceKind {
|
||||
return []EvidenceKind{
|
||||
EvidenceKindClaim,
|
||||
EvidenceKindMeasurement,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceKind) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceKindClaim:
|
||||
return []byte(s), nil
|
||||
case EvidenceKindMeasurement:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceKind) UnmarshalText(data []byte) error {
|
||||
switch EvidenceKind(data) {
|
||||
case EvidenceKindClaim:
|
||||
*s = EvidenceKindClaim
|
||||
return nil
|
||||
case EvidenceKindMeasurement:
|
||||
*s = EvidenceKindMeasurement
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// What the fact says: the grade that was passed and how reliable the method is. It carries no score,
|
||||
// answer, item, failure, or anti-cheat data.
|
||||
// Ref: #/components/schemas/EvidenceResult
|
||||
type EvidenceResult struct {
|
||||
Grade GradeCode `json:"grade"`
|
||||
Basis EvidenceBasis `json:"basis"`
|
||||
CalibrationStatus EvidenceCalibrationStatus `json:"calibration_status"`
|
||||
}
|
||||
|
||||
// GetGrade returns the value of Grade.
|
||||
func (s *EvidenceResult) GetGrade() GradeCode {
|
||||
return s.Grade
|
||||
}
|
||||
|
||||
// GetBasis returns the value of Basis.
|
||||
func (s *EvidenceResult) GetBasis() EvidenceBasis {
|
||||
return s.Basis
|
||||
}
|
||||
|
||||
// GetCalibrationStatus returns the value of CalibrationStatus.
|
||||
func (s *EvidenceResult) GetCalibrationStatus() EvidenceCalibrationStatus {
|
||||
return s.CalibrationStatus
|
||||
}
|
||||
|
||||
// SetGrade sets the value of Grade.
|
||||
func (s *EvidenceResult) SetGrade(val GradeCode) {
|
||||
s.Grade = val
|
||||
}
|
||||
|
||||
// SetBasis sets the value of Basis.
|
||||
func (s *EvidenceResult) SetBasis(val EvidenceBasis) {
|
||||
s.Basis = val
|
||||
}
|
||||
|
||||
// SetCalibrationStatus sets the value of CalibrationStatus.
|
||||
func (s *EvidenceResult) SetCalibrationStatus(val EvidenceCalibrationStatus) {
|
||||
s.CalibrationStatus = val
|
||||
}
|
||||
|
||||
// A skill tag from a closed set - the specialization codes of the catalog and the technology codes of
|
||||
// the anonymous card. An assessment tags its fact with the specialization of the category.
|
||||
// Ref: #/components/schemas/EvidenceSkillCode
|
||||
type EvidenceSkillCode string
|
||||
|
||||
const (
|
||||
EvidenceSkillCodeBackend EvidenceSkillCode = "backend"
|
||||
EvidenceSkillCodeFrontend EvidenceSkillCode = "frontend"
|
||||
EvidenceSkillCodeMobile EvidenceSkillCode = "mobile"
|
||||
EvidenceSkillCodeNetworkEngineer EvidenceSkillCode = "network_engineer"
|
||||
EvidenceSkillCodeDevopsSre EvidenceSkillCode = "devops_sre"
|
||||
EvidenceSkillCodeDataAnalyst EvidenceSkillCode = "data_analyst"
|
||||
EvidenceSkillCodeDsMl EvidenceSkillCode = "ds_ml"
|
||||
EvidenceSkillCodeInformationSecurity EvidenceSkillCode = "information_security"
|
||||
EvidenceSkillCodeQa EvidenceSkillCode = "qa"
|
||||
EvidenceSkillCodeGo EvidenceSkillCode = "go"
|
||||
EvidenceSkillCodePostgresql EvidenceSkillCode = "postgresql"
|
||||
EvidenceSkillCodeKafka EvidenceSkillCode = "kafka"
|
||||
EvidenceSkillCodeDocker EvidenceSkillCode = "docker"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceSkillCode values.
|
||||
func (EvidenceSkillCode) AllValues() []EvidenceSkillCode {
|
||||
return []EvidenceSkillCode{
|
||||
EvidenceSkillCodeBackend,
|
||||
EvidenceSkillCodeFrontend,
|
||||
EvidenceSkillCodeMobile,
|
||||
EvidenceSkillCodeNetworkEngineer,
|
||||
EvidenceSkillCodeDevopsSre,
|
||||
EvidenceSkillCodeDataAnalyst,
|
||||
EvidenceSkillCodeDsMl,
|
||||
EvidenceSkillCodeInformationSecurity,
|
||||
EvidenceSkillCodeQa,
|
||||
EvidenceSkillCodeGo,
|
||||
EvidenceSkillCodePostgresql,
|
||||
EvidenceSkillCodeKafka,
|
||||
EvidenceSkillCodeDocker,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceSkillCode) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceSkillCodeBackend:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeFrontend:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeMobile:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeNetworkEngineer:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeDevopsSre:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeDataAnalyst:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeDsMl:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeInformationSecurity:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeQa:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeGo:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodePostgresql:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeKafka:
|
||||
return []byte(s), nil
|
||||
case EvidenceSkillCodeDocker:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceSkillCode) UnmarshalText(data []byte) error {
|
||||
switch EvidenceSkillCode(data) {
|
||||
case EvidenceSkillCodeBackend:
|
||||
*s = EvidenceSkillCodeBackend
|
||||
return nil
|
||||
case EvidenceSkillCodeFrontend:
|
||||
*s = EvidenceSkillCodeFrontend
|
||||
return nil
|
||||
case EvidenceSkillCodeMobile:
|
||||
*s = EvidenceSkillCodeMobile
|
||||
return nil
|
||||
case EvidenceSkillCodeNetworkEngineer:
|
||||
*s = EvidenceSkillCodeNetworkEngineer
|
||||
return nil
|
||||
case EvidenceSkillCodeDevopsSre:
|
||||
*s = EvidenceSkillCodeDevopsSre
|
||||
return nil
|
||||
case EvidenceSkillCodeDataAnalyst:
|
||||
*s = EvidenceSkillCodeDataAnalyst
|
||||
return nil
|
||||
case EvidenceSkillCodeDsMl:
|
||||
*s = EvidenceSkillCodeDsMl
|
||||
return nil
|
||||
case EvidenceSkillCodeInformationSecurity:
|
||||
*s = EvidenceSkillCodeInformationSecurity
|
||||
return nil
|
||||
case EvidenceSkillCodeQa:
|
||||
*s = EvidenceSkillCodeQa
|
||||
return nil
|
||||
case EvidenceSkillCodeGo:
|
||||
*s = EvidenceSkillCodeGo
|
||||
return nil
|
||||
case EvidenceSkillCodePostgresql:
|
||||
*s = EvidenceSkillCodePostgresql
|
||||
return nil
|
||||
case EvidenceSkillCodeKafka:
|
||||
*s = EvidenceSkillCodeKafka
|
||||
return nil
|
||||
case EvidenceSkillCodeDocker:
|
||||
*s = EvidenceSkillCodeDocker
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
// Where the fact comes from. For an assessment the event is the attempt and the result is the
|
||||
// immutable result of that attempt, which the candidate reads at `GetMyAssessmentResult`; the two
|
||||
// identifiers are equal because a result is keyed by its attempt.
|
||||
// Ref: #/components/schemas/EvidenceSource
|
||||
type EvidenceSource struct {
|
||||
Type EvidenceSourceType `json:"type"`
|
||||
// Identifier of the source event. One event is one fact, however many skills it is tagged with.
|
||||
EventID uuid.UUID `json:"event_id"`
|
||||
// Identifier of the immutable result that produced the fact.
|
||||
ResultID uuid.UUID `json:"result_id"`
|
||||
}
|
||||
|
||||
// GetType returns the value of Type.
|
||||
func (s *EvidenceSource) GetType() EvidenceSourceType {
|
||||
return s.Type
|
||||
}
|
||||
|
||||
// GetEventID returns the value of EventID.
|
||||
func (s *EvidenceSource) GetEventID() uuid.UUID {
|
||||
return s.EventID
|
||||
}
|
||||
|
||||
// GetResultID returns the value of ResultID.
|
||||
func (s *EvidenceSource) GetResultID() uuid.UUID {
|
||||
return s.ResultID
|
||||
}
|
||||
|
||||
// SetType sets the value of Type.
|
||||
func (s *EvidenceSource) SetType(val EvidenceSourceType) {
|
||||
s.Type = val
|
||||
}
|
||||
|
||||
// SetEventID sets the value of EventID.
|
||||
func (s *EvidenceSource) SetEventID(val uuid.UUID) {
|
||||
s.EventID = val
|
||||
}
|
||||
|
||||
// SetResultID sets the value of ResultID.
|
||||
func (s *EvidenceSource) SetResultID(val uuid.UUID) {
|
||||
s.ResultID = val
|
||||
}
|
||||
|
||||
// Where the fact comes from.
|
||||
//
|
||||
// - assessment_result: a real (root or corrective) assessment result of this platform that confirmed
|
||||
// a grade. An express training run (`demo_express`), a failed attempt, and a result without a
|
||||
// reviewed category source are never a source.
|
||||
//
|
||||
// Adding a value is a contract change.
|
||||
// Ref: #/components/schemas/EvidenceSourceType
|
||||
type EvidenceSourceType string
|
||||
|
||||
const (
|
||||
EvidenceSourceTypeAssessmentResult EvidenceSourceType = "assessment_result"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceSourceType values.
|
||||
func (EvidenceSourceType) AllValues() []EvidenceSourceType {
|
||||
return []EvidenceSourceType{
|
||||
EvidenceSourceTypeAssessmentResult,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceSourceType) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceSourceTypeAssessmentResult:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceSourceType) UnmarshalText(data []byte) error {
|
||||
switch EvidenceSourceType(data) {
|
||||
case EvidenceSourceTypeAssessmentResult:
|
||||
*s = EvidenceSourceTypeAssessmentResult
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
type EvidenceTrustLevel int32
|
||||
|
||||
// Whether the fact may take part in what an organization reads.
|
||||
//
|
||||
// - visible: the fact is eligible for the organization projection. It does not publish the fact: the
|
||||
// projection also needs the published card with the `categories` field and an active C2.
|
||||
// - hidden: the candidate hid the fact. No organization reads it. Hiding never edits or deletes the
|
||||
// confirmed result.
|
||||
//
|
||||
// Ref: #/components/schemas/EvidenceVisibility
|
||||
type EvidenceVisibility string
|
||||
|
||||
const (
|
||||
EvidenceVisibilityVisible EvidenceVisibility = "visible"
|
||||
EvidenceVisibilityHidden EvidenceVisibility = "hidden"
|
||||
)
|
||||
|
||||
// AllValues returns all EvidenceVisibility values.
|
||||
func (EvidenceVisibility) AllValues() []EvidenceVisibility {
|
||||
return []EvidenceVisibility{
|
||||
EvidenceVisibilityVisible,
|
||||
EvidenceVisibilityHidden,
|
||||
}
|
||||
}
|
||||
|
||||
// MarshalText implements encoding.TextMarshaler.
|
||||
func (s EvidenceVisibility) MarshalText() ([]byte, error) {
|
||||
switch s {
|
||||
case EvidenceVisibilityVisible:
|
||||
return []byte(s), nil
|
||||
case EvidenceVisibilityHidden:
|
||||
return []byte(s), nil
|
||||
default:
|
||||
return nil, errors.Errorf("invalid value: %q", s)
|
||||
}
|
||||
}
|
||||
|
||||
// UnmarshalText implements encoding.TextUnmarshaler.
|
||||
func (s *EvidenceVisibility) UnmarshalText(data []byte) error {
|
||||
switch EvidenceVisibility(data) {
|
||||
case EvidenceVisibilityVisible:
|
||||
*s = EvidenceVisibilityVisible
|
||||
return nil
|
||||
case EvidenceVisibilityHidden:
|
||||
*s = EvidenceVisibilityHidden
|
||||
return nil
|
||||
default:
|
||||
return errors.Errorf("invalid value: %q", data)
|
||||
}
|
||||
}
|
||||
|
||||
type FinalizeMyAssessmentAttemptBadRequest Problem
|
||||
|
||||
func (*FinalizeMyAssessmentAttemptBadRequest) finalizeMyAssessmentAttemptRes() {}
|
||||
@@ -10006,6 +10668,22 @@ type GetOrganizationCandidateCardUnauthorized Problem
|
||||
|
||||
func (*GetOrganizationCandidateCardUnauthorized) getOrganizationCandidateCardRes() {}
|
||||
|
||||
type GetOrganizationCandidateEvidenceBadRequest Problem
|
||||
|
||||
func (*GetOrganizationCandidateEvidenceBadRequest) getOrganizationCandidateEvidenceRes() {}
|
||||
|
||||
type GetOrganizationCandidateEvidenceForbidden Problem
|
||||
|
||||
func (*GetOrganizationCandidateEvidenceForbidden) getOrganizationCandidateEvidenceRes() {}
|
||||
|
||||
type GetOrganizationCandidateEvidenceNotFound Problem
|
||||
|
||||
func (*GetOrganizationCandidateEvidenceNotFound) getOrganizationCandidateEvidenceRes() {}
|
||||
|
||||
type GetOrganizationCandidateEvidenceUnauthorized Problem
|
||||
|
||||
func (*GetOrganizationCandidateEvidenceUnauthorized) getOrganizationCandidateEvidenceRes() {}
|
||||
|
||||
type GetOrganizationForbidden Problem
|
||||
|
||||
func (*GetOrganizationForbidden) getOrganizationRes() {}
|
||||
@@ -11911,6 +12589,18 @@ type ListMyConsentsUnauthorized Problem
|
||||
|
||||
func (*ListMyConsentsUnauthorized) listMyConsentsRes() {}
|
||||
|
||||
type ListMyEvidenceBadRequest Problem
|
||||
|
||||
func (*ListMyEvidenceBadRequest) listMyEvidenceRes() {}
|
||||
|
||||
type ListMyEvidenceForbidden Problem
|
||||
|
||||
func (*ListMyEvidenceForbidden) listMyEvidenceRes() {}
|
||||
|
||||
type ListMyEvidenceUnauthorized Problem
|
||||
|
||||
func (*ListMyEvidenceUnauthorized) listMyEvidenceRes() {}
|
||||
|
||||
type ListMyHiddenOrganizationsBadRequest Problem
|
||||
|
||||
func (*ListMyHiddenOrganizationsBadRequest) listMyHiddenOrganizationsRes() {}
|
||||
@@ -18185,6 +18875,51 @@ func (o NilOrganizationDescription) Or(d OrganizationDescription) OrganizationDe
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilOrganizationEvidence returns new NilOrganizationEvidence with value set to v.
|
||||
func NewNilOrganizationEvidence(v OrganizationEvidence) NilOrganizationEvidence {
|
||||
return NilOrganizationEvidence{
|
||||
Value: v,
|
||||
}
|
||||
}
|
||||
|
||||
// NilOrganizationEvidence is nullable OrganizationEvidence.
|
||||
type NilOrganizationEvidence struct {
|
||||
Value OrganizationEvidence
|
||||
Null bool
|
||||
}
|
||||
|
||||
// SetTo sets value to v.
|
||||
func (o *NilOrganizationEvidence) SetTo(v OrganizationEvidence) {
|
||||
o.Null = false
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// IsNull returns true if value is Null.
|
||||
func (o NilOrganizationEvidence) IsNull() bool { return o.Null }
|
||||
|
||||
// SetToNull sets value to null.
|
||||
func (o *NilOrganizationEvidence) SetToNull() {
|
||||
o.Null = true
|
||||
var v OrganizationEvidence
|
||||
o.Value = v
|
||||
}
|
||||
|
||||
// Get returns value and boolean that denotes whether value was set.
|
||||
func (o NilOrganizationEvidence) Get() (v OrganizationEvidence, ok bool) {
|
||||
if o.Null {
|
||||
return v, false
|
||||
}
|
||||
return o.Value, true
|
||||
}
|
||||
|
||||
// Or returns value if set, or given parameter if does not.
|
||||
func (o NilOrganizationEvidence) Or(d OrganizationEvidence) OrganizationEvidence {
|
||||
if v, ok := o.Get(); ok {
|
||||
return v
|
||||
}
|
||||
return d
|
||||
}
|
||||
|
||||
// NewNilOrganizationSphere returns new NilOrganizationSphere with value set to v.
|
||||
func NewNilOrganizationSphere(v OrganizationSphere) NilOrganizationSphere {
|
||||
return NilOrganizationSphere{
|
||||
@@ -22180,6 +22915,133 @@ func (s *OrganizationCreate) SetRepresentatives(val []OrganizationRepresentative
|
||||
|
||||
type OrganizationDescription string
|
||||
|
||||
// The permitted evidence of one candidate card, ordered by skill: at most one fact for each category
|
||||
// of the card (at most nine). The list is empty when no visible fact supports a category of the card.
|
||||
// Ref: #/components/schemas/OrganizationEvidence
|
||||
type OrganizationEvidence struct {
|
||||
// Permitted facts, one for each supported category.
|
||||
Items []OrganizationEvidenceFact `json:"items"`
|
||||
}
|
||||
|
||||
// GetItems returns the value of Items.
|
||||
func (s *OrganizationEvidence) GetItems() []OrganizationEvidenceFact {
|
||||
return s.Items
|
||||
}
|
||||
|
||||
// SetItems sets the value of Items.
|
||||
func (s *OrganizationEvidence) SetItems(val []OrganizationEvidenceFact) {
|
||||
s.Items = val
|
||||
}
|
||||
|
||||
// The one assessment fact that supports a category of the card as an organization reads it: the
|
||||
// earliest visible measurement that passed exactly the confirmed grade of that category. A lower
|
||||
// grade, a retake, the other tags of the event, the source, the basis, the exact time, and every
|
||||
// identifier stay with the candidate. The fact carries no identifier of the fact, the event, the
|
||||
// result, or the candidate, so it cannot be joined to a person by a key. It is not unlinkable: the
|
||||
// skill, the grade, the trust level, and the year, together with the other values of the card, can
|
||||
// narrow a small pool of candidates, and the minimum cohort of the card does not cover the year.
|
||||
// `basis` and `calibration_status` are the same for every candidate: they say that the fact comes from
|
||||
// a synthetic demonstration and is not calibrated, so a demonstration is never read as a validated
|
||||
// measurement. The fact never carries an answer, score, item, failure, signal, or review band.
|
||||
// Ref: #/components/schemas/OrganizationEvidenceFact
|
||||
type OrganizationEvidenceFact struct {
|
||||
Skill EvidenceSkillCode `json:"skill"`
|
||||
Grade GradeCode `json:"grade"`
|
||||
Trust EvidenceTrustLevel `json:"trust"`
|
||||
Basis EvidenceBasis `json:"basis"`
|
||||
CalibrationStatus EvidenceCalibrationStatus `json:"calibration_status"`
|
||||
// Year (UTC) when the assessment ended. The month, day, and time stay with the candidate.
|
||||
ObservedYear int32 `json:"observed_year"`
|
||||
}
|
||||
|
||||
// GetSkill returns the value of Skill.
|
||||
func (s *OrganizationEvidenceFact) GetSkill() EvidenceSkillCode {
|
||||
return s.Skill
|
||||
}
|
||||
|
||||
// GetGrade returns the value of Grade.
|
||||
func (s *OrganizationEvidenceFact) GetGrade() GradeCode {
|
||||
return s.Grade
|
||||
}
|
||||
|
||||
// GetTrust returns the value of Trust.
|
||||
func (s *OrganizationEvidenceFact) GetTrust() EvidenceTrustLevel {
|
||||
return s.Trust
|
||||
}
|
||||
|
||||
// GetBasis returns the value of Basis.
|
||||
func (s *OrganizationEvidenceFact) GetBasis() EvidenceBasis {
|
||||
return s.Basis
|
||||
}
|
||||
|
||||
// GetCalibrationStatus returns the value of CalibrationStatus.
|
||||
func (s *OrganizationEvidenceFact) GetCalibrationStatus() EvidenceCalibrationStatus {
|
||||
return s.CalibrationStatus
|
||||
}
|
||||
|
||||
// GetObservedYear returns the value of ObservedYear.
|
||||
func (s *OrganizationEvidenceFact) GetObservedYear() int32 {
|
||||
return s.ObservedYear
|
||||
}
|
||||
|
||||
// SetSkill sets the value of Skill.
|
||||
func (s *OrganizationEvidenceFact) SetSkill(val EvidenceSkillCode) {
|
||||
s.Skill = val
|
||||
}
|
||||
|
||||
// SetGrade sets the value of Grade.
|
||||
func (s *OrganizationEvidenceFact) SetGrade(val GradeCode) {
|
||||
s.Grade = val
|
||||
}
|
||||
|
||||
// SetTrust sets the value of Trust.
|
||||
func (s *OrganizationEvidenceFact) SetTrust(val EvidenceTrustLevel) {
|
||||
s.Trust = val
|
||||
}
|
||||
|
||||
// SetBasis sets the value of Basis.
|
||||
func (s *OrganizationEvidenceFact) SetBasis(val EvidenceBasis) {
|
||||
s.Basis = val
|
||||
}
|
||||
|
||||
// SetCalibrationStatus sets the value of CalibrationStatus.
|
||||
func (s *OrganizationEvidenceFact) SetCalibrationStatus(val EvidenceCalibrationStatus) {
|
||||
s.CalibrationStatus = val
|
||||
}
|
||||
|
||||
// SetObservedYear sets the value of ObservedYear.
|
||||
func (s *OrganizationEvidenceFact) SetObservedYear(val int32) {
|
||||
s.ObservedYear = val
|
||||
}
|
||||
|
||||
// OrganizationEvidenceHeaders wraps OrganizationEvidence with response headers.
|
||||
type OrganizationEvidenceHeaders struct {
|
||||
CacheControl CacheControlNoStore
|
||||
Response OrganizationEvidence
|
||||
}
|
||||
|
||||
// GetCacheControl returns the value of CacheControl.
|
||||
func (s *OrganizationEvidenceHeaders) GetCacheControl() CacheControlNoStore {
|
||||
return s.CacheControl
|
||||
}
|
||||
|
||||
// GetResponse returns the value of Response.
|
||||
func (s *OrganizationEvidenceHeaders) GetResponse() OrganizationEvidence {
|
||||
return s.Response
|
||||
}
|
||||
|
||||
// SetCacheControl sets the value of CacheControl.
|
||||
func (s *OrganizationEvidenceHeaders) SetCacheControl(val CacheControlNoStore) {
|
||||
s.CacheControl = val
|
||||
}
|
||||
|
||||
// SetResponse sets the value of Response.
|
||||
func (s *OrganizationEvidenceHeaders) SetResponse(val OrganizationEvidence) {
|
||||
s.Response = val
|
||||
}
|
||||
|
||||
func (*OrganizationEvidenceHeaders) getOrganizationCandidateEvidenceRes() {}
|
||||
|
||||
// OrganizationHeaders wraps Organization with response headers.
|
||||
type OrganizationHeaders struct {
|
||||
CacheControl CacheControlNoStore
|
||||
@@ -29642,6 +30504,7 @@ func (*TooManyRequestsHeaders) createOrganizationNeedRes() {}
|
||||
func (*TooManyRequestsHeaders) createOrganizationRes() {}
|
||||
func (*TooManyRequestsHeaders) declineMyInvitationRes() {}
|
||||
func (*TooManyRequestsHeaders) getOrganizationCandidateCardRes() {}
|
||||
func (*TooManyRequestsHeaders) getOrganizationCandidateEvidenceRes() {}
|
||||
func (*TooManyRequestsHeaders) hideOrganizationRes() {}
|
||||
func (*TooManyRequestsHeaders) loginRes() {}
|
||||
func (*TooManyRequestsHeaders) raiseOrganizationInvitationSalaryRes() {}
|
||||
|
||||
Reference in new issue
Block a user