Skip to main content
NEXCLARADocumentation

Schemas: trust

Schemas whose first using operation belongs to the trust family. A shared schema is described once, here, and linked from every operation that uses it.

Descriptions come from the contract, which is written in French. They are reproduced verbatim so that the contract remains the source of truth.

AccessReportIn

Emission du releve d'acces, qui clot la demande.

Type : object

PropertyTypeRequiredDescriptionConstraints
row_versionintegeryesminimum: 1

Used by : trustAccessReport

ApplicantConsentsOut

Consentements du demandeur d'un dossier.

Type : object

PropertyTypeRequiredDescriptionConstraints
application_idstring (uuid)yes
historyarray<ConsentEventOut>yes
purposesarray<ConsentPurposeOut>yes
statusesarray<ConsentStatusOut>yes

Used by : applicationsConsents, applicationsRecordConsent

AuditIntegrityOut

Verification complete de la chaine de l'institution.

Type : object

PropertyTypeRequiredDescriptionConstraints
first_invalid_sequenceinteger | nullyes
head_hashstringyes
head_sequenceintegeryes
intactbooleanyes
reasonstring | nullyes
verified_atstring (date-time)yes
verified_eventsintegeryes

Used by : trustComplianceReport

ComplianceReportOut

Rapport de conformite d'une periode (dates incluses, UTC).

Type : object

PropertyTypeRequiredDescriptionConstraints
generated_atstring (date-time)yes
period_endstring (date)yes
period_startstring (date)yes
sectionsComplianceSectionsOutyes

Used by : trustComplianceReport

ComplianceSectionsOut

Les cinq sections du rapport.

Type : object

PropertyTypeRequiredDescriptionConstraints
audit_integrityAuditIntegrityOutyes
consentsConsentsReportOutyes
consultationsConsultationsReportOutyes
data_rightsRightsReportOutyes
retentionRetentionReportOutyes

Used by : trustComplianceReport

ConsentEventOut

Evenement de consentement, avec son empreinte.

Type : object

PropertyTypeRequiredDescriptionConstraints
evidence_referencestring | nullyes
fingerprintstringyes
idstring (uuid)yes
kind"granted" | "withdrawn"yes
purpose_idstring (uuid)yes
recorded_atstring (date-time)yes
recorded_bystring (uuid)yes

Used by : applicationsConsents, applicationsRecordConsent

ConsentIn

Recueil ou retrait pour le demandeur du dossier.

Type : object

PropertyTypeRequiredDescriptionConstraints
evidence_referencestring | nullnoReference de la piece dans l'archive de l'institution ; jamais un contenu.maxLength: 80
kind"granted" | "withdrawn"yes
purpose_idstring (uuid)yes

Used by : applicationsRecordConsent

ConsentPurposeIn

Nouvelle version de finalite ; la version active du meme code est retiree.

Type : object

PropertyTypeRequiredDescriptionConstraints
codestringyesminLength: 2 ; maxLength: 48
gates"credit_evaluation" | nullnoTraitement conditionne : sans consentement en vigueur, il est refuse.
label_enstringyesminLength: 1 ; maxLength: 160
label_frstringyesminLength: 1 ; maxLength: 160

Used by : trustCreatePurpose

ConsentPurposeOut

Version de finalite.

Type : object

PropertyTypeRequiredDescriptionConstraints
codestringyes
created_atstring (date-time)yes
gates"credit_evaluation" | nullyes
idstring (uuid)yes
label_enstring | nullyes
label_frstringyes
retired_atstring (date-time) | nullyes
status"active" | "retired"yes
versionintegeryes

Used by : applicationsConsents, applicationsRecordConsent, trustCreatePurpose, trustListPurposes, trustRetirePurpose

ConsentStatusOut

Etat d'une finalite active pour le demandeur.

Type : object

PropertyTypeRequiredDescriptionConstraints
purposeConsentPurposeOutyes
state"granted" | "withdrawn" | nullyes

Used by : applicationsConsents, applicationsRecordConsent

ConsentsReportOut

Consentements par finalite et refus d'evaluation.

Type : object

PropertyTypeRequiredDescriptionConstraints
evaluations_refusedintegeryes
purposesarray<PurposeReportOut>yes

Used by : trustComplianceReport

ConsultationsReportOut

Consultations journalisees de la periode (P56).

Type : object

PropertyTypeRequiredDescriptionConstraints
access_reportsintegeryes
attestation_downloadsintegeryes
by_viewmap<string, integer>yes
distinct_usersintegeryes
dossier_consultationsintegeryes
evidence_exportsintegeryes
support_consultationsintegeryes
worklist_pagesintegeryes

Used by : trustComplianceReport

PurgeRunOut

Execution de purge (l'attestation se telecharge a part).

Type : object

PropertyTypeRequiredDescriptionConstraints
by_categorymap<string, integer>yes
by_reasonmap<string, integer>yes
by_resourcemap<string, integer>yes
executed_bystringyes
finished_atstring (date-time)yes
idstring (uuid)yes
itemsintegeryes
manifest_sha256stringyes
signedbooleanyes
started_atstring (date-time)yes

Used by : trustPurgeRuns

PurposeReportOut

Une version de finalite dans le rapport.

Type : object

PropertyTypeRequiredDescriptionConstraints
codestringyes
gates"credit_evaluation" | nullyes
granted_in_periodintegeryes
granted_nowintegeryes
idstring (uuid)yes
status"active" | "retired"yes
versionintegeryes
withdrawn_in_periodintegeryes
withdrawn_nowintegeryes

Used by : trustComplianceReport

RefusalIn

Refus motive, par un code.

Type : object

PropertyTypeRequiredDescriptionConstraints
ground"legal_retention_obligation" | "ongoing_contract" | "legal_claims" | "identity_not_verified" | "manifestly_unfounded"yes
row_versionintegeryesminimum: 1

Used by : trustRefuseRightsRequest

RetentionCategory

Categorie de donnees purgeables. Liste fermee, donnees reelles.

Type : string

Allowed values : evaluated_application_inputs, draft_application_inputs, unlinked_import_rows

Used by : trustConfirmRetention

RetentionIn

Duree confirmee pour une categorie, en jours.

Type : object

PropertyTypeRequiredDescriptionConstraints
daysintegeryesminimum: 1 ; maximum: 36500

Used by : trustConfirmRetention

RetentionOut

Durees de conservation de l'institution.

Type : object

PropertyTypeRequiredDescriptionConstraints
rulesarray<RetentionRuleOut>yes

Used by : trustConfirmRetention, trustRetention

RetentionReportOut

Durees, purges de la periode, elements echus.

Type : object

PropertyTypeRequiredDescriptionConstraints
destroyed_by_categorymap<string, integer>yes
last_run_atstring (date-time) | nullyes
pending_nowmap<string, integer>yes
purge_runsintegeryes
rulesarray<RetentionRuleReportOut>yes

Used by : trustComplianceReport

RetentionRuleOut

Duree en vigueur d'une categorie et elements echus.

Type : object

PropertyTypeRequiredDescriptionConstraints
category"evaluated_application_inputs" | "draft_application_inputs" | "unlinked_import_rows"yes
confirmed_atstring (date-time) | nullyes
confirmed_bystring (uuid) | nullyes
daysintegeryes
erased_fieldsarray<string>yes
maximum_daysintegeryes
minimum_daysintegeryes
pendinginteger | nullyesElements echus a purger au prochain passage ; `null` si non confirmee.
provisional_daysintegeryes
state"provisional" | "confirmed"yes

Used by : trustConfirmRetention, trustRetention

RetentionRuleReportOut

Duree en vigueur dans le rapport.

Type : object

PropertyTypeRequiredDescriptionConstraints
category"evaluated_application_inputs" | "draft_application_inputs" | "unlinked_import_rows"yes
confirmed_atstring (date-time) | nullyes
daysintegeryes
state"provisional" | "confirmed"yes

Used by : trustComplianceReport

RightsReportOut

Demandes de droits de la periode et en cours.

Type : object

PropertyTypeRequiredDescriptionConstraints
awaiting_purge_nowintegeryes
open_nowintegeryes
overdue_nowintegeryes
receivedmap<string, integer>yes
received_by_statusmap<string, integer>yes
response_daysintegeryes

Used by : trustComplianceReport

RightsRequestIn

Demande a enregistrer. La reference sert a trouver la personne ; elle n'est pas gardee.

Type : object

PropertyTypeRequiredDescriptionConstraints
applicant_referencestringyesminLength: 1 ; maxLength: 64
kind"access" | "rectification" | "erasure"yes
received_atstring (date-time) | nullnoReception anterieure (courrier) ; maintenant par defaut.
received_via"in_person" | "postal_mail" | "electronic"yes

Used by : trustRegisterRightsRequest

RightsRequestOut

Demande d'exercice d'un droit.

Type : object

PropertyTypeRequiredDescriptionConstraints
completed_atstring (date-time) | nullyes
decided_atstring (date-time) | nullyes
due_atstring (date-time)yes
idstring (uuid)yes
kind"access" | "rectification" | "erasure"yes
outcome"access_report_issued" | "no_data" | "rectified_at_source" | "erased" | nullyes
overduebooleanyes
purge_run_idstring (uuid) | nullyes
received_atstring (date-time)yes
received_via"in_person" | "postal_mail" | "electronic"yes
refusal_ground"legal_retention_obligation" | "ongoing_contract" | "legal_claims" | "identity_not_verified" | "manifestly_unfounded" | nullyes
report_sha256string | nullyes
row_versionintegeryes
status"open" | "awaiting_purge" | "completed" | "refused"yes
subject_foundbooleanyes

Used by : trustAcceptErasure, trustCompleteRectification, trustGetRightsRequest, trustListRightsRequests, trustRefuseRightsRequest, trustRegisterRightsRequest

RightsTransitionIn

Ecriture sans autre donnee que la version lue.

Type : object

PropertyTypeRequiredDescriptionConstraints
row_versionintegeryesminimum: 1

Used by : trustAcceptErasure, trustCompleteRectification