Skip to content

docs(openapi): add job-change-detector statuses and resolution_reason - #27

Merged
jesseoue merged 1 commit into
mainfrom
docs/job-change-detector-statuses
Sep 3, 2026
Merged

docs(openapi): add job-change-detector statuses and resolution_reason#27
jesseoue merged 1 commit into
mainfrom
docs/job-change-detector-statuses

Conversation

@jesseoue

@jesseoue jesseoue commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Syncs the Job Change Detector (POST /v1/people/job-change-detector) snapshot with the live API contract shipped by LeadMagic/lm-workers#522:

  • status enum now lists AMBIGUOUS_CURRENT_EMPLOYMENT, CURRENT_EMPLOYMENT_UNKNOWN (expected employer matched but the role carries no dates — unknown, not a change) and PROFILE_NOT_FOUND (profile URL did not resolve — credits_consumed is 0, nothing is charged)
  • adds the resolution_reason enum (incl. PROFILE_NOT_FOUND)
  • documents that job_change_detected is true only when status is JOB_CHANGE_DETECTED, and that an absent expected employer with another primary current role is JOB_CHANGE_DETECTED (NEVER_WORKED_THERE only when nothing is current)
  • credits_consumed example corrected from 2 to 3
  • CHANGELOG entry under Unreleased

leadmagic-openapi-3.1.yaml and .json were deep-equal verified after the edit. No generator exists for llms.txt, so it is untouched.

Test plan

  • npm run lint:openapi — 0 errors (22 pre-existing unused-component warnings)
  • npm run typecheck
  • YAML/JSON parsed and deep-compared: in sync

🤖 Generated with Claude Code

Sync the Job Change Detector snapshot with the live API contract:

- status enum gains AMBIGUOUS_CURRENT_EMPLOYMENT, CURRENT_EMPLOYMENT_UNKNOWN
  (matched employer, undated role — unknown, not a change) and
  PROFILE_NOT_FOUND (profile URL did not resolve — credits_consumed is 0)
- add the resolution_reason enum
- document that job_change_detected is true only for JOB_CHANGE_DETECTED and
  that an absent expected employer with another primary current role is
  JOB_CHANGE_DETECTED (NEVER_WORKED_THERE only when nothing is current)
- credits_consumed example corrected from 2 to 3

YAML and JSON stay in sync (deep-equal verified).
@jesseoue
jesseoue merged commit 60d13f6 into main Sep 3, 2026
7 checks passed
@jesseoue
jesseoue deleted the docs/job-change-detector-statuses branch September 3, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant