Schémas : trust
Schémas dont la première opération qui les emploie appartient à la famille trust. Un schéma partagé est décrit une seule fois, ici, et lié depuis toutes les opérations qui l'emploient.
Les descriptions viennent du contrat, rédigé en français. Elles sont reproduites telles quelles pour rester la source de vérité.
AccessReportIn
Emission du releve d'acces, qui clot la demande.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
row_version | integer | oui | minimum: 1 |
Employé par : trustAccessReport
ApplicantConsentsOut
Consentements du demandeur d'un dossier.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
application_id | string (uuid) | oui | ||
history | array<ConsentEventOut> | oui | ||
purposes | array<ConsentPurposeOut> | oui | ||
statuses | array<ConsentStatusOut> | oui |
Employé par : applicationsConsents, applicationsRecordConsent
AuditIntegrityOut
Verification complete de la chaine de l'institution.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
first_invalid_sequence | integer | null | oui | ||
head_hash | string | oui | ||
head_sequence | integer | oui | ||
intact | boolean | oui | ||
reason | string | null | oui | ||
verified_at | string (date-time) | oui | ||
verified_events | integer | oui |
Employé par : trustComplianceReport
ComplianceReportOut
Rapport de conformite d'une periode (dates incluses, UTC).
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
generated_at | string (date-time) | oui | ||
period_end | string (date) | oui | ||
period_start | string (date) | oui | ||
sections | ComplianceSectionsOut | oui |
Employé par : trustComplianceReport
ComplianceSectionsOut
Les cinq sections du rapport.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
audit_integrity | AuditIntegrityOut | oui | ||
consents | ConsentsReportOut | oui | ||
consultations | ConsultationsReportOut | oui | ||
data_rights | RightsReportOut | oui | ||
retention | RetentionReportOut | oui |
Employé par : trustComplianceReport
ConsentEventOut
Evenement de consentement, avec son empreinte.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
evidence_reference | string | null | oui | ||
fingerprint | string | oui | ||
id | string (uuid) | oui | ||
kind | "granted" | "withdrawn" | oui | ||
purpose_id | string (uuid) | oui | ||
recorded_at | string (date-time) | oui | ||
recorded_by | string (uuid) | oui |
Employé par : applicationsConsents, applicationsRecordConsent
ConsentIn
Recueil ou retrait pour le demandeur du dossier.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
evidence_reference | string | null | non | Reference de la piece dans l'archive de l'institution ; jamais un contenu. | maxLength: 80 |
kind | "granted" | "withdrawn" | oui | ||
purpose_id | string (uuid) | oui |
Employé par : applicationsRecordConsent
ConsentPurposeIn
Nouvelle version de finalite ; la version active du meme code est retiree.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
code | string | oui | minLength: 2 ; maxLength: 48 | |
gates | "credit_evaluation" | null | non | Traitement conditionne : sans consentement en vigueur, il est refuse. | |
label_en | string | oui | minLength: 1 ; maxLength: 160 | |
label_fr | string | oui | minLength: 1 ; maxLength: 160 |
Employé par : trustCreatePurpose
ConsentPurposeOut
Version de finalite.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
code | string | oui | ||
created_at | string (date-time) | oui | ||
gates | "credit_evaluation" | null | oui | ||
id | string (uuid) | oui | ||
label_en | string | null | oui | ||
label_fr | string | oui | ||
retired_at | string (date-time) | null | oui | ||
status | "active" | "retired" | oui | ||
version | integer | oui |
Employé par : applicationsConsents, applicationsRecordConsent, trustCreatePurpose, trustListPurposes, trustRetirePurpose
ConsentStatusOut
Etat d'une finalite active pour le demandeur.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
purpose | ConsentPurposeOut | oui | ||
state | "granted" | "withdrawn" | null | oui |
Employé par : applicationsConsents, applicationsRecordConsent
ConsentsReportOut
Consentements par finalite et refus d'evaluation.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
evaluations_refused | integer | oui | ||
purposes | array<PurposeReportOut> | oui |
Employé par : trustComplianceReport
ConsultationsReportOut
Consultations journalisees de la periode (P56).
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
access_reports | integer | oui | ||
attestation_downloads | integer | oui | ||
by_view | map<string, integer> | oui | ||
distinct_users | integer | oui | ||
dossier_consultations | integer | oui | ||
evidence_exports | integer | oui | ||
support_consultations | integer | oui | ||
worklist_pages | integer | oui |
Employé par : trustComplianceReport
PurgeRunOut
Execution de purge (l'attestation se telecharge a part).
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
by_category | map<string, integer> | oui | ||
by_reason | map<string, integer> | oui | ||
by_resource | map<string, integer> | oui | ||
executed_by | string | oui | ||
finished_at | string (date-time) | oui | ||
id | string (uuid) | oui | ||
items | integer | oui | ||
manifest_sha256 | string | oui | ||
signed | boolean | oui | ||
started_at | string (date-time) | oui |
Employé par : trustPurgeRuns
PurposeReportOut
Une version de finalite dans le rapport.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
code | string | oui | ||
gates | "credit_evaluation" | null | oui | ||
granted_in_period | integer | oui | ||
granted_now | integer | oui | ||
id | string (uuid) | oui | ||
status | "active" | "retired" | oui | ||
version | integer | oui | ||
withdrawn_in_period | integer | oui | ||
withdrawn_now | integer | oui |
Employé par : trustComplianceReport
RefusalIn
Refus motive, par un code.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
ground | "legal_retention_obligation" | "ongoing_contract" | "legal_claims" | "identity_not_verified" | "manifestly_unfounded" | oui | ||
row_version | integer | oui | minimum: 1 |
Employé par : trustRefuseRightsRequest
RetentionCategory
Categorie de donnees purgeables. Liste fermee, donnees reelles.
Type : string
Valeurs admises : evaluated_application_inputs, draft_application_inputs, unlinked_import_rows
Employé par : trustConfirmRetention
RetentionIn
Duree confirmee pour une categorie, en jours.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
days | integer | oui | minimum: 1 ; maximum: 36500 |
Employé par : trustConfirmRetention
RetentionOut
Durees de conservation de l'institution.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
rules | array<RetentionRuleOut> | oui |
Employé par : trustConfirmRetention, trustRetention
RetentionReportOut
Durees, purges de la periode, elements echus.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
destroyed_by_category | map<string, integer> | oui | ||
last_run_at | string (date-time) | null | oui | ||
pending_now | map<string, integer> | oui | ||
purge_runs | integer | oui | ||
rules | array<RetentionRuleReportOut> | oui |
Employé par : trustComplianceReport
RetentionRuleOut
Duree en vigueur d'une categorie et elements echus.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
category | "evaluated_application_inputs" | "draft_application_inputs" | "unlinked_import_rows" | oui | ||
confirmed_at | string (date-time) | null | oui | ||
confirmed_by | string (uuid) | null | oui | ||
days | integer | oui | ||
erased_fields | array<string> | oui | ||
maximum_days | integer | oui | ||
minimum_days | integer | oui | ||
pending | integer | null | oui | Elements echus a purger au prochain passage ; `null` si non confirmee. | |
provisional_days | integer | oui | ||
state | "provisional" | "confirmed" | oui |
Employé par : trustConfirmRetention, trustRetention
RetentionRuleReportOut
Duree en vigueur dans le rapport.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
category | "evaluated_application_inputs" | "draft_application_inputs" | "unlinked_import_rows" | oui | ||
confirmed_at | string (date-time) | null | oui | ||
days | integer | oui | ||
state | "provisional" | "confirmed" | oui |
Employé par : trustComplianceReport
RightsReportOut
Demandes de droits de la periode et en cours.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
awaiting_purge_now | integer | oui | ||
open_now | integer | oui | ||
overdue_now | integer | oui | ||
received | map<string, integer> | oui | ||
received_by_status | map<string, integer> | oui | ||
response_days | integer | oui |
Employé par : trustComplianceReport
RightsRequestIn
Demande a enregistrer. La reference sert a trouver la personne ; elle n'est pas gardee.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
applicant_reference | string | oui | minLength: 1 ; maxLength: 64 | |
kind | "access" | "rectification" | "erasure" | oui | ||
received_at | string (date-time) | null | non | Reception anterieure (courrier) ; maintenant par defaut. | |
received_via | "in_person" | "postal_mail" | "electronic" | oui |
Employé par : trustRegisterRightsRequest
RightsRequestOut
Demande d'exercice d'un droit.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
completed_at | string (date-time) | null | oui | ||
decided_at | string (date-time) | null | oui | ||
due_at | string (date-time) | oui | ||
id | string (uuid) | oui | ||
kind | "access" | "rectification" | "erasure" | oui | ||
outcome | "access_report_issued" | "no_data" | "rectified_at_source" | "erased" | null | oui | ||
overdue | boolean | oui | ||
purge_run_id | string (uuid) | null | oui | ||
received_at | string (date-time) | oui | ||
received_via | "in_person" | "postal_mail" | "electronic" | oui | ||
refusal_ground | "legal_retention_obligation" | "ongoing_contract" | "legal_claims" | "identity_not_verified" | "manifestly_unfounded" | null | oui | ||
report_sha256 | string | null | oui | ||
row_version | integer | oui | ||
status | "open" | "awaiting_purge" | "completed" | "refused" | oui | ||
subject_found | boolean | oui |
Employé par : trustAcceptErasure, trustCompleteRectification, trustGetRightsRequest, trustListRightsRequests, trustRefuseRightsRequest, trustRegisterRightsRequest
RightsTransitionIn
Ecriture sans autre donnee que la version lue.
Type : object
| Propriété | Type | Requis | Description | Contraintes |
|---|---|---|---|---|
row_version | integer | oui | minimum: 1 |
Employé par : trustAcceptErasure, trustCompleteRectification