feat(platform): add the notification inbox and deterministic match search
This commit is contained in:
1 parent
5edff21d2d
commit
0b11021b16
169 files changed
+17083
-443
No files matched your search
@@ -168,7 +168,7 @@ export const MatchSearchResponse = zod.object({
|
||||
}).describe('Components from the FR09 ranking model for a confirmed category. `percentile` is null when fewer than 30 comparable real candidates are available; the ranking uses neutral T = 0.5 and does not publish a percentile. If ML is unavailable, `semantics` uses neutral 0.5 and the reason appears in `unknown_flags`.'),
|
||||
"unknown_flags": zod.array(zod.object({
|
||||
"component": zod.enum(['semantics', 'percentile', 'assessment', 'freshness', 'responsiveness', 'experience_band', 'work_formats', 'salary_compatibility', 'domain']).describe('Ranking or public-card component whose value is unknown.'),
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history', 'percentile_not_computed']).describe('Bounded explanation for an unknown component, not a hiding reason. `cohort_below_30` is reported only while the comparable real cohort of the category is smaller than the versioned minimum; once the cohort reaches the minimum but the percentile is still not computed, the reason is `percentile_not_computed`. In both cases T is the neutral 0.5.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsMainItemUnknownFlagsMax)
|
||||
}).describe('One confirmed specialization entry in the `main` or `near` group. The group containing it supplies the group label. A candidate may have a separate entry for another specialization.')),
|
||||
"near": zod.array(zod.object({
|
||||
@@ -204,7 +204,7 @@ export const MatchSearchResponse = zod.object({
|
||||
}).describe('Components from the FR09 ranking model for a confirmed category. `percentile` is null when fewer than 30 comparable real candidates are available; the ranking uses neutral T = 0.5 and does not publish a percentile. If ML is unavailable, `semantics` uses neutral 0.5 and the reason appears in `unknown_flags`.'),
|
||||
"unknown_flags": zod.array(zod.object({
|
||||
"component": zod.enum(['semantics', 'percentile', 'assessment', 'freshness', 'responsiveness', 'experience_band', 'work_formats', 'salary_compatibility', 'domain']).describe('Ranking or public-card component whose value is unknown.'),
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history', 'percentile_not_computed']).describe('Bounded explanation for an unknown component, not a hiding reason. `cohort_below_30` is reported only while the comparable real cohort of the category is smaller than the versioned minimum; once the cohort reaches the minimum but the percentile is still not computed, the reason is `percentile_not_computed`. In both cases T is the neutral 0.5.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsNearItemUnknownFlagsMax)
|
||||
}).describe('One confirmed specialization entry in the `main` or `near` group. The group containing it supplies the group label. A candidate may have a separate entry for another specialization.')),
|
||||
"unconfirmed": zod.array(zod.object({
|
||||
@@ -230,10 +230,11 @@ export const MatchSearchResponse = zod.object({
|
||||
}).describe('Unconfirmed entries are ordered only by Fit and coverage. This strict component object has no theta, T, P, test percentile, or confirmed assessment score.'),
|
||||
"unknown_flags": zod.array(zod.object({
|
||||
"component": zod.enum(['semantics', 'percentile', 'assessment', 'freshness', 'responsiveness', 'experience_band', 'work_formats', 'salary_compatibility', 'domain']).describe('Ranking or public-card component whose value is unknown.'),
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history']).describe('Bounded explanation for an unknown component, not a hiding reason.')
|
||||
"reason": zod.enum(['ml_unavailable', 'cohort_below_30', 'no_confirmation_for_specialization', 'not_in_public_card', 'need_field_unconfirmed', 'no_freshness_history', 'no_response_history', 'percentile_not_computed']).describe('Bounded explanation for an unknown component, not a hiding reason. `cohort_below_30` is reported only while the comparable real cohort of the category is smaller than the versioned minimum; once the cohort reaches the minimum but the percentile is still not computed, the reason is `percentile_not_computed`. In both cases T is the neutral 0.5.')
|
||||
}).describe('A safe, bounded explanation for one unavailable component.')).max(matchSearchResponseGroupsUnconfirmedItemUnknownFlagsMax)
|
||||
}).describe('One specialization with no confirmed category. `category` and `strength` remain present and null. A confirmation in another specialization never changes this entry. The schema intentionally has no assessment measurement fields.'))
|
||||
}).describe('Separate ranking groups. Confirmed categories appear in main and near; unconfirmed specializations appear only in the lower unconfirmed group.')
|
||||
}).describe('Separate ranking groups. Confirmed categories appear in main and near; unconfirmed specializations appear only in the lower unconfirmed group.'),
|
||||
"truncated": zod.boolean().describe('True when the groups are not the whole ranked result: a group exceeded the versioned per-group limit, or the organization\'s card-view allowance ended while the entries were being revealed. The entries returned are in rank order and already counted as card views. It carries no total, so it does not reveal how many candidates match.')
|
||||
}).describe('Anonymous search result grouped by specialization state. Repeated organization-scoped handles are allowed when the same candidate has different specialization entries; entries never transfer confirmation between specializations.')
|
||||
|
||||
export type MatchSearchResponse = zod.input<typeof MatchSearchResponse>;
|
||||
|
||||
Reference in new issue
Block a user