From 2181525ac5dc3c885e40819a94e6a053b3c928df Mon Sep 17 00:00:00 2001 From: Kalyani Nikam Date: Thu, 26 Feb 2026 15:51:14 +0000 Subject: [PATCH] feat(nisp): updated redactedStatus enum in nsip document --- docs/nsip-document.md | 20 ++++++++++--------- .../models/model_appeal_document.py | 2 +- pins_data_model/models/model_appeal_event.py | 2 +- .../models/model_appeal_event_estimate.py | 2 +- pins_data_model/models/model_appeal_has.py | 2 +- .../models/model_appeal_representation.py | 2 +- pins_data_model/models/model_appeal_s78.py | 2 +- pins_data_model/models/model_dart_response.py | 2 +- pins_data_model/models/model_entraid.py | 2 +- pins_data_model/models/model_folder.py | 2 +- .../models/model_gettimesheets_response.py | 2 +- .../models/model_listed_building.py | 2 +- .../models/model_listed_buildings.py | 2 +- pins_data_model/models/model_nsip_document.py | 6 ++++-- .../models/model_nsip_exam_timetable.py | 2 +- pins_data_model/models/model_nsip_invoice.py | 2 +- pins_data_model/models/model_nsip_meeting.py | 2 +- pins_data_model/models/model_nsip_project.py | 2 +- .../models/model_nsip_project_update.py | 2 +- .../models/model_nsip_representation.py | 2 +- .../models/model_nsip_subscription.py | 2 +- .../models/model_pins_inspector.py | 2 +- pins_data_model/models/model_pins_lpa.py | 2 +- pins_data_model/models/model_s51_advice.py | 2 +- pins_data_model/models/model_service_user.py | 2 +- schemas/nsip-document.schema.json | 4 +++- 26 files changed, 41 insertions(+), 35 deletions(-) diff --git a/docs/nsip-document.md b/docs/nsip-document.md index f4920d7..c859912 100644 --- a/docs/nsip-document.md +++ b/docs/nsip-document.md @@ -516,15 +516,17 @@ The location of the published document. Only applicable to documents which are p **enum**: the value of this property must be equal to one of the following values: -| Value | Explanation | -| :------------------------------- | :---------- | -| `"not_redacted"` | | -| `"redacted"` | | -| `"awaiting_ai_redaction"` | | -| `"ai_redaction_review_required"` | | -| `"ai_redaction_failed"` | | -| `"no_redaction_required"` | | -| `null` | | +| Value | Explanation | +| :--------------------------------- | :---------- | +| `"not_redacted"` | | +| `"redacted"` | | +| `"awaiting_ai_redaction"` | | +| `"awaiting_ai_suggestions"` | | +| `"ai_suggestions_reviewed"` | | +| `"ai_suggestions_review_required"` | | +| `"ai_redaction_failed"` | | +| `"no_redaction_required"` | | +| `null` | | ## publishedStatus diff --git a/pins_data_model/models/model_appeal_document.py b/pins_data_model/models/model_appeal_document.py index 2c8b991..2e30bad 100644 --- a/pins_data_model/models/model_appeal_document.py +++ b/pins_data_model/models/model_appeal_document.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-document.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:34+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_appeal_event.py b/pins_data_model/models/model_appeal_event.py index a5eda35..04f1971 100644 --- a/pins_data_model/models/model_appeal_event.py +++ b/pins_data_model/models/model_appeal_event.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-event.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:34+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_appeal_event_estimate.py b/pins_data_model/models/model_appeal_event_estimate.py index 5d48d3e..8ef8ff3 100644 --- a/pins_data_model/models/model_appeal_event_estimate.py +++ b/pins_data_model/models/model_appeal_event_estimate.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-event-estimate.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:34+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_appeal_has.py b/pins_data_model/models/model_appeal_has.py index a162467..686fb5f 100644 --- a/pins_data_model/models/model_appeal_has.py +++ b/pins_data_model/models/model_appeal_has.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-has.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:35+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_appeal_representation.py b/pins_data_model/models/model_appeal_representation.py index a135b4e..0f3aa00 100644 --- a/pins_data_model/models/model_appeal_representation.py +++ b/pins_data_model/models/model_appeal_representation.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-representation.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:36+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_appeal_s78.py b/pins_data_model/models/model_appeal_s78.py index d3839e5..0b73788 100644 --- a/pins_data_model/models/model_appeal_s78.py +++ b/pins_data_model/models/model_appeal_s78.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: appeal-s78.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_dart_response.py b/pins_data_model/models/model_dart_response.py index 7839ea6..a0f45ba 100644 --- a/pins_data_model/models/model_dart_response.py +++ b/pins_data_model/models/model_dart_response.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: dart-response.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_entraid.py b/pins_data_model/models/model_entraid.py index 2431198..f2b049a 100644 --- a/pins_data_model/models/model_entraid.py +++ b/pins_data_model/models/model_entraid.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: entraid.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_folder.py b/pins_data_model/models/model_folder.py index fc1cda3..c09dac0 100644 --- a/pins_data_model/models/model_folder.py +++ b/pins_data_model/models/model_folder.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: folder.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_gettimesheets_response.py b/pins_data_model/models/model_gettimesheets_response.py index c335eb2..7b1933a 100644 --- a/pins_data_model/models/model_gettimesheets_response.py +++ b/pins_data_model/models/model_gettimesheets_response.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: gettimesheets-response.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_listed_building.py b/pins_data_model/models/model_listed_building.py index 1655bab..0fd56e0 100644 --- a/pins_data_model/models/model_listed_building.py +++ b/pins_data_model/models/model_listed_building.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: listed-building.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_listed_buildings.py b/pins_data_model/models/model_listed_buildings.py index e9882a4..c523e6e 100644 --- a/pins_data_model/models/model_listed_buildings.py +++ b/pins_data_model/models/model_listed_buildings.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: listed-buildings.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:39+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_document.py b/pins_data_model/models/model_nsip_document.py index 6c25d72..9b03f92 100644 --- a/pins_data_model/models/model_nsip_document.py +++ b/pins_data_model/models/model_nsip_document.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-document.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:40+00:00 from __future__ import annotations @@ -26,7 +26,9 @@ class RedactedStatus(Enum): not_redacted = "not_redacted" redacted = "redacted" awaiting_ai_redaction = "awaiting_ai_redaction" - ai_redaction_review_required = "ai_redaction_review_required" + awaiting_ai_suggestions = "awaiting_ai_suggestions" + ai_suggestions_reviewed = "ai_suggestions_reviewed" + ai_suggestions_review_required = "ai_suggestions_review_required" ai_redaction_failed = "ai_redaction_failed" no_redaction_required = "no_redaction_required" NoneType_None = None diff --git a/pins_data_model/models/model_nsip_exam_timetable.py b/pins_data_model/models/model_nsip_exam_timetable.py index b3242a9..6ae1979 100644 --- a/pins_data_model/models/model_nsip_exam_timetable.py +++ b/pins_data_model/models/model_nsip_exam_timetable.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-exam-timetable.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:40+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_invoice.py b/pins_data_model/models/model_nsip_invoice.py index c2bc351..e1ab451 100644 --- a/pins_data_model/models/model_nsip_invoice.py +++ b/pins_data_model/models/model_nsip_invoice.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-invoice.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:41+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_meeting.py b/pins_data_model/models/model_nsip_meeting.py index 954f3c9..9892f1e 100644 --- a/pins_data_model/models/model_nsip_meeting.py +++ b/pins_data_model/models/model_nsip_meeting.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-meeting.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:41+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_project.py b/pins_data_model/models/model_nsip_project.py index 4e8436b..c298627 100644 --- a/pins_data_model/models/model_nsip_project.py +++ b/pins_data_model/models/model_nsip_project.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-project.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:48+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_project_update.py b/pins_data_model/models/model_nsip_project_update.py index 53806e6..7743b1e 100644 --- a/pins_data_model/models/model_nsip_project_update.py +++ b/pins_data_model/models/model_nsip_project_update.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-project-update.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:41+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_representation.py b/pins_data_model/models/model_nsip_representation.py index 33bedb9..1e14de6 100644 --- a/pins_data_model/models/model_nsip_representation.py +++ b/pins_data_model/models/model_nsip_representation.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-representation.schema.json -# timestamp: 2026-02-20T13:48:33+00:00 +# timestamp: 2026-02-26T15:48:49+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_nsip_subscription.py b/pins_data_model/models/model_nsip_subscription.py index bebc4a1..5c4da2e 100644 --- a/pins_data_model/models/model_nsip_subscription.py +++ b/pins_data_model/models/model_nsip_subscription.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: nsip-subscription.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:49+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_pins_inspector.py b/pins_data_model/models/model_pins_inspector.py index 26d4c6a..ab64b91 100644 --- a/pins_data_model/models/model_pins_inspector.py +++ b/pins_data_model/models/model_pins_inspector.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: pins-inspector.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:49+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_pins_lpa.py b/pins_data_model/models/model_pins_lpa.py index 9cfc40b..6308540 100644 --- a/pins_data_model/models/model_pins_lpa.py +++ b/pins_data_model/models/model_pins_lpa.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: pins-lpa.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:49+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_s51_advice.py b/pins_data_model/models/model_s51_advice.py index dbf8704..4429376 100644 --- a/pins_data_model/models/model_s51_advice.py +++ b/pins_data_model/models/model_s51_advice.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: s51-advice.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:50+00:00 from __future__ import annotations diff --git a/pins_data_model/models/model_service_user.py b/pins_data_model/models/model_service_user.py index 051fd91..8596060 100644 --- a/pins_data_model/models/model_service_user.py +++ b/pins_data_model/models/model_service_user.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: # filename: service-user.schema.json -# timestamp: 2026-02-20T13:48:32+00:00 +# timestamp: 2026-02-26T15:48:50+00:00 from __future__ import annotations diff --git a/schemas/nsip-document.schema.json b/schemas/nsip-document.schema.json index 42074c6..4ba09db 100644 --- a/schemas/nsip-document.schema.json +++ b/schemas/nsip-document.schema.json @@ -133,7 +133,9 @@ "not_redacted", "redacted", "awaiting_ai_redaction", - "ai_redaction_review_required", + "awaiting_ai_suggestions", + "ai_suggestions_reviewed", + "ai_suggestions_review_required", "ai_redaction_failed", "no_redaction_required", null