Skip to main content

eva-sentry-api

EVA Sentry API v1.2 reference for collisionspike, covering authentication, the eight endpoint families, the canonical twelve-field payload, image ordering, idempotency, and server-side submission. Use when changing EVA contracts, services/functions/eva-sentry, or any submission caller.

소스 정보

저장소
collisionengineers/collisionspike
최근 소스 활동
2026년 7월 15일 05:54
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
eva-sentry-api
description
EVA Sentry API v1.2 reference for collisionspike, covering authentication, the eight endpoint families, the canonical twelve-field payload, image ordering, idempotency, and server-side submission. Use when changing EVA contracts, services/functions/eva-sentry, or any submission caller.
# EVA Sentry API v1.2 The field-level authority is the extracted current reference under `docs/reference`. The implementation authority is the contract in `packages/domain`, the JSON schema in `contracts`, and `services/functions/eva-sentry`. Read those before changing a caller. ## Authentication - Base URL: `https://sentry.evasoftware.co.uk/api/`. - Mint a token with `POST /Connect/token` using form fields `Client_Id` and `Client_Secret`. - Treat `expires_in` as minutes and refresh with a safety buffer. - Send `Authorization: Bearer <token>` on every other request. - Credentials are secret references and must never be logged, returned, or stored in fixtures. ## Endpoint families 1. `POST /Instruction/Inspection` creates an inspection instruction. 2. `POST /Claim/LocationUpdate` updates inspection location. 3. `POST /Claim/AuthorityStatusUpdate` updates repair authority. 4. `POST /Note/SubmitNote` submits notes and ordered files. 5. `POST /Claim/Update` updates claim lifecycle state. 6. `POST /Report/SubmitReport` submits a completed report. 7. `GET /Report/GetAvailableReports` lists released reports. 8. `GET /Report/GetReport?id={id}` retrieves one report. Check the current reference for exact target-key combinations and optional fields. ## Canonical twelve-field core Preserve this order and the existing JSON names: 1. Work Provider (required) 2. Vehicle Model 3. Claimant Name 4. Claimant Telephone 5. Claimant Email Address 6. Date of Loss (`DD/MM/YYYY`) 7. Date of Instruction (`DD/MM/YYYY`) 8. Accident Circumstances 9. Inspection Address (six newline-separated lines, or `Image Based Assessment`) 10. VAT Status (`""`, `Yes`, or `No`) 11. Mileage 12. Mileage Unit (`""`, `Miles`, or `Km`) Engineer allocation is not a submission field. The richer instruction body adds claim identity, vehicle identity, location, damage, cost, and file fields without changing this core. ## Images and idempotency - Send the overview with the full registration visible and the main-damage closeup as the two previews, then send the full ordered set including those images. - Exclude any image showing a person's reflection. - Preserve sequence indices and filename extensions. - Use the finalized payload hash as the idempotency key. - The production caller is the orchestration service; the server-side EVA function owns token lifecycle and credentials. Keep `EVA_API_ENABLED` default-off until the approved environment is configured and the contract tests pass. Record functional mismatches in their ticket instead of changing an external route or body during unrelated cleanup.
GitHub에서 보기