@openauditmodel/cli 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/conformance-kit/README.md +109 -0
- package/conformance-kit/manifest.json +8023 -0
- package/examples/README.md +62 -0
- package/examples/integrity/README.md +103 -0
- package/examples/integrity/invalid/broken-previous-hash/001.json +53 -0
- package/examples/integrity/invalid/broken-previous-hash/002.json +52 -0
- package/examples/integrity/invalid/broken-previous-hash/003.json +43 -0
- package/examples/integrity/invalid/duplicate-sequence/001.json +53 -0
- package/examples/integrity/invalid/duplicate-sequence/002.json +52 -0
- package/examples/integrity/invalid/duplicate-sequence/003.json +43 -0
- package/examples/integrity/invalid/missing-sequence/001.json +53 -0
- package/examples/integrity/invalid/missing-sequence/002.json +51 -0
- package/examples/integrity/invalid/missing-sequence/003.json +43 -0
- package/examples/integrity/invalid/reordered-chain/001.json +53 -0
- package/examples/integrity/invalid/reordered-chain/002.json +52 -0
- package/examples/integrity/invalid/reordered-chain/003.json +43 -0
- package/examples/integrity/invalid/tampered-event.json +51 -0
- package/examples/integrity/invalid/tampered-signed-event.json +46 -0
- package/examples/integrity/invalid/unsupported-algorithm.json +51 -0
- package/examples/integrity/invalid/unsupported-signature-algorithm.json +46 -0
- package/examples/integrity/invalid/wrong-declared-hash.json +51 -0
- package/examples/integrity/keys/ed25519-test-public.pem +3 -0
- package/examples/integrity/valid/signed-event-ed25519.json +46 -0
- package/examples/integrity/valid/single-event-sha256.json +51 -0
- package/examples/integrity/valid/three-event-chain/001.json +53 -0
- package/examples/integrity/valid/three-event-chain/002.json +52 -0
- package/examples/integrity/valid/three-event-chain/003.json +43 -0
- package/examples/integrity/valid/unicode-and-number-event.json +68 -0
- package/examples/invalid/README.md +38 -0
- package/examples/invalid/delegation-without-subject.json +27 -0
- package/examples/invalid/failure-without-error.json +28 -0
- package/examples/invalid/invalid-event-name.json +22 -0
- package/examples/invalid/invalid-extension-name.json +25 -0
- package/examples/invalid/missing-actor.json +18 -0
- package/examples/invalid/missing-resource.json +18 -0
- package/examples/invalid/unknown-core-property.json +23 -0
- package/examples/privacy/README.md +101 -0
- package/examples/privacy/clean/hashes-and-identifiers.json +42 -0
- package/examples/privacy/clean/minimal-clean-event.json +22 -0
- package/examples/privacy/clean/safe-evidence-reference.json +43 -0
- package/examples/privacy/clean/sanitized-change.json +40 -0
- package/examples/privacy/clean/structured-metadata.json +43 -0
- package/examples/privacy/findings/access-token-field.json +27 -0
- package/examples/privacy/findings/bearer-token.json +26 -0
- package/examples/privacy/findings/credentialed-connection-string.json +26 -0
- package/examples/privacy/findings/evidence-query-string.json +29 -0
- package/examples/privacy/findings/high-entropy-token.json +26 -0
- package/examples/privacy/findings/jwt-token.json +26 -0
- package/examples/privacy/findings/oversized-change-before.json +89 -0
- package/examples/privacy/findings/password-field.json +27 -0
- package/examples/privacy/findings/private-key.json +26 -0
- package/examples/privacy/findings/raw-response-body.json +26 -0
- package/examples/privacy/findings/url-userinfo.json +26 -0
- package/examples/profiles/api-and-integration-management/README.md +119 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-create-missing-authentication.json +64 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-create-missing-authorization.json +64 -0
- package/examples/profiles/api-and-integration-management/invalid/api-key-rotate-missing-credential-reference.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-configuration-update-missing-connection-id.json +67 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-connect-missing-approval-status.json +78 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-disconnect-missing-authentication.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-reauthorize-missing-error-type.json +68 -0
- package/examples/profiles/api-and-integration-management/invalid/integration-sync-start-missing-correlation-id.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-create-missing-endpoint-class.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-create-missing-type.json +63 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-disable-missing-reason.json +58 -0
- package/examples/profiles/api-and-integration-management/invalid/webhook-update-missing-change.json +63 -0
- package/examples/profiles/api-and-integration-management/not-applicable/api-request.json +45 -0
- package/examples/profiles/api-and-integration-management/not-applicable/integration-sync-progress.json +44 -0
- package/examples/profiles/api-and-integration-management/not-applicable/webhook-delivery.json +44 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-create.json +70 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-revoke.json +72 -0
- package/examples/profiles/api-and-integration-management/valid/api-key-rotate.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/integration-configuration-update.json +68 -0
- package/examples/profiles/api-and-integration-management/valid/integration-connect.json +79 -0
- package/examples/profiles/api-and-integration-management/valid/integration-disconnect.json +69 -0
- package/examples/profiles/api-and-integration-management/valid/integration-reauthorize-failure.json +69 -0
- package/examples/profiles/api-and-integration-management/valid/integration-sync-cancel.json +65 -0
- package/examples/profiles/api-and-integration-management/valid/integration-sync-start.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-create.json +64 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-disable.json +63 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-test.json +59 -0
- package/examples/profiles/api-and-integration-management/valid/webhook-update.json +76 -0
- package/examples/profiles/backup-and-recovery/README.md +127 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-complete-missing-backup-id.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-complete-missing-recovery-point.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-create-missing-authorization.json +50 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-delete-missing-reason.json +78 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-expire-missing-retention-class.json +55 -0
- package/examples/profiles/backup-and-recovery/invalid/backup-verify-missing-verification-status.json +66 -0
- package/examples/profiles/backup-and-recovery/invalid/policy-update-missing-change.json +65 -0
- package/examples/profiles/backup-and-recovery/invalid/recovery-failover-missing-recovery-id.json +71 -0
- package/examples/profiles/backup-and-recovery/invalid/recovery-failover-missing-target-scope.json +71 -0
- package/examples/profiles/backup-and-recovery/invalid/restore-start-missing-approval.json +66 -0
- package/examples/profiles/backup-and-recovery/invalid/restore-start-missing-source-id.json +73 -0
- package/examples/profiles/backup-and-recovery/invalid/snapshot-create-missing-snapshot-id.json +57 -0
- package/examples/profiles/backup-and-recovery/not-applicable/backup-chunk-write.json +43 -0
- package/examples/profiles/backup-and-recovery/not-applicable/restore-progress.json +42 -0
- package/examples/profiles/backup-and-recovery/not-applicable/storage-replica-heartbeat.json +37 -0
- package/examples/profiles/backup-and-recovery/valid/backup-complete-failed.json +62 -0
- package/examples/profiles/backup-and-recovery/valid/backup-complete.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-create.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-delete.json +83 -0
- package/examples/profiles/backup-and-recovery/valid/backup-expire.json +56 -0
- package/examples/profiles/backup-and-recovery/valid/backup-verify.json +67 -0
- package/examples/profiles/backup-and-recovery/valid/policy-update.json +78 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-complete.json +61 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-failback.json +72 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-failover.json +72 -0
- package/examples/profiles/backup-and-recovery/valid/recovery-start.json +61 -0
- package/examples/profiles/backup-and-recovery/valid/restore-complete.json +63 -0
- package/examples/profiles/backup-and-recovery/valid/restore-start.json +74 -0
- package/examples/profiles/backup-and-recovery/valid/snapshot-create.json +58 -0
- package/examples/profiles/backup-and-recovery/valid/snapshot-delete.json +60 -0
- package/examples/profiles/customer-and-account-management/README.md +127 -0
- package/examples/profiles/customer-and-account-management/invalid/account-close-missing-approval.json +70 -0
- package/examples/profiles/customer-and-account-management/invalid/account-freeze-missing-restriction-scope.json +83 -0
- package/examples/profiles/customer-and-account-management/invalid/account-freeze-missing-status.json +83 -0
- package/examples/profiles/customer-and-account-management/invalid/account-limit-missing-before.json +74 -0
- package/examples/profiles/customer-and-account-management/invalid/account-open-missing-owner.json +58 -0
- package/examples/profiles/customer-and-account-management/invalid/account-status-missing-subject.json +73 -0
- package/examples/profiles/customer-and-account-management/invalid/account-update-missing-override-reason.json +67 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-close-missing-authorization.json +69 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-create-missing-customer-type.json +62 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-delete-missing-scope.json +70 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-merge-missing-source.json +78 -0
- package/examples/profiles/customer-and-account-management/invalid/customer-update-missing-change.json +61 -0
- package/examples/profiles/customer-and-account-management/not-applicable/account-balance-view.json +39 -0
- package/examples/profiles/customer-and-account-management/not-applicable/customer-profile-view.json +38 -0
- package/examples/profiles/customer-and-account-management/not-applicable/customer-search.json +38 -0
- package/examples/profiles/customer-and-account-management/valid/account-close-approved.json +78 -0
- package/examples/profiles/customer-and-account-management/valid/account-freeze.json +84 -0
- package/examples/profiles/customer-and-account-management/valid/account-limit-increase.json +77 -0
- package/examples/profiles/customer-and-account-management/valid/account-open.json +59 -0
- package/examples/profiles/customer-and-account-management/valid/account-status-on-behalf.json +79 -0
- package/examples/profiles/customer-and-account-management/valid/account-update-override.json +72 -0
- package/examples/profiles/customer-and-account-management/valid/customer-close.json +75 -0
- package/examples/profiles/customer-and-account-management/valid/customer-create.json +63 -0
- package/examples/profiles/customer-and-account-management/valid/customer-delete.json +71 -0
- package/examples/profiles/customer-and-account-management/valid/customer-merge.json +79 -0
- package/examples/profiles/customer-and-account-management/valid/customer-restrict.json +76 -0
- package/examples/profiles/customer-and-account-management/valid/customer-update.json +65 -0
- package/examples/profiles/deployment-and-change-management/README.md +115 -0
- package/examples/profiles/deployment-and-change-management/invalid/cancel-missing-authorization.json +59 -0
- package/examples/profiles/deployment-and-change-management/invalid/cancel-missing-reason.json +61 -0
- package/examples/profiles/deployment-and-change-management/invalid/change-request-approve-missing-approval.json +57 -0
- package/examples/profiles/deployment-and-change-management/invalid/configuration-update-missing-authorization.json +81 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-approved-missing-approval.json +73 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-failed-missing-resulting-state.json +71 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-approval-required.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-deployment-id.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-environment.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-previous-version.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-missing-version.json +67 -0
- package/examples/profiles/deployment-and-change-management/invalid/deploy-partial-missing-resulting-state.json +68 -0
- package/examples/profiles/deployment-and-change-management/invalid/secret-rotate-missing-changed-fields.json +72 -0
- package/examples/profiles/deployment-and-change-management/invalid/secret-rotate-missing-reason.json +68 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/build-log-append.json +33 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/pipeline-poll.json +33 -0
- package/examples/profiles/deployment-and-change-management/not-applicable/secret-access.json +39 -0
- package/examples/profiles/deployment-and-change-management/valid/change-request-approve.json +69 -0
- package/examples/profiles/deployment-and-change-management/valid/configuration-update.json +88 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-approved.json +85 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-automated.json +68 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-failed.json +72 -0
- package/examples/profiles/deployment-and-change-management/valid/deploy-partial.json +69 -0
- package/examples/profiles/deployment-and-change-management/valid/infrastructure-apply.json +78 -0
- package/examples/profiles/deployment-and-change-management/valid/release-approve.json +77 -0
- package/examples/profiles/deployment-and-change-management/valid/release-cancel.json +65 -0
- package/examples/profiles/deployment-and-change-management/valid/release-create.json +53 -0
- package/examples/profiles/deployment-and-change-management/valid/rollback-emergency.json +80 -0
- package/examples/profiles/deployment-and-change-management/valid/secret-rotate-emergency.json +73 -0
- package/examples/profiles/document-management/README.md +80 -0
- package/examples/profiles/document-management/invalid/delete-missing-reason.json +53 -0
- package/examples/profiles/document-management/invalid/download-missing-classification.json +46 -0
- package/examples/profiles/document-management/invalid/external-share-missing-expiry.json +68 -0
- package/examples/profiles/document-management/invalid/external-share-missing-reason.json +64 -0
- package/examples/profiles/document-management/invalid/legal-hold-missing-state.json +63 -0
- package/examples/profiles/document-management/invalid/permission-grant-missing-grantee.json +57 -0
- package/examples/profiles/document-management/invalid/retention-update-missing-class.json +71 -0
- package/examples/profiles/document-management/invalid/share-create-missing-permission.json +53 -0
- package/examples/profiles/document-management/invalid/share-missing-recipient-type.json +53 -0
- package/examples/profiles/document-management/invalid/upload-missing-authorization.json +42 -0
- package/examples/profiles/document-management/invalid/version-rollback-missing-previous.json +58 -0
- package/examples/profiles/document-management/not-applicable/file-view.json +42 -0
- package/examples/profiles/document-management/valid/file-delete.json +58 -0
- package/examples/profiles/document-management/valid/file-download.json +47 -0
- package/examples/profiles/document-management/valid/file-upload.json +47 -0
- package/examples/profiles/document-management/valid/legal-hold-apply.json +64 -0
- package/examples/profiles/document-management/valid/permission-grant.json +58 -0
- package/examples/profiles/document-management/valid/retention-update.json +72 -0
- package/examples/profiles/document-management/valid/share-external.json +69 -0
- package/examples/profiles/document-management/valid/share-internal.json +54 -0
- package/examples/profiles/document-management/valid/share-revoke.json +56 -0
- package/examples/profiles/document-management/valid/version-rollback.json +59 -0
- package/examples/profiles/financial-transaction-management/README.md +123 -0
- package/examples/profiles/financial-transaction-management/invalid/limit-update-missing-limit-type.json +101 -0
- package/examples/profiles/financial-transaction-management/invalid/manual-deposit-missing-change.json +85 -0
- package/examples/profiles/financial-transaction-management/invalid/payment-capture-missing-amount.json +69 -0
- package/examples/profiles/financial-transaction-management/invalid/payment-capture-missing-authorization.json +65 -0
- package/examples/profiles/financial-transaction-management/invalid/payout-missing-direction.json +63 -0
- package/examples/profiles/financial-transaction-management/invalid/reconciliation-adjust-missing-change.json +79 -0
- package/examples/profiles/financial-transaction-management/invalid/reconciliation-missing-identifier.json +88 -0
- package/examples/profiles/financial-transaction-management/invalid/refund-missing-reason.json +70 -0
- package/examples/profiles/financial-transaction-management/invalid/reversal-missing-original-transaction.json +84 -0
- package/examples/profiles/financial-transaction-management/invalid/transfer-missing-related-resources.json +66 -0
- package/examples/profiles/financial-transaction-management/invalid/withdrawal-missing-approval-status.json +96 -0
- package/examples/profiles/financial-transaction-management/invalid/withdrawal-missing-correlation.json +96 -0
- package/examples/profiles/financial-transaction-management/not-applicable/balance-view.json +36 -0
- package/examples/profiles/financial-transaction-management/not-applicable/quote-create.json +33 -0
- package/examples/profiles/financial-transaction-management/not-applicable/report-generate.json +36 -0
- package/examples/profiles/financial-transaction-management/valid/chargeback-open.json +73 -0
- package/examples/profiles/financial-transaction-management/valid/deposit-manual-correction.json +86 -0
- package/examples/profiles/financial-transaction-management/valid/limit-update.json +92 -0
- package/examples/profiles/financial-transaction-management/valid/payment-capture.json +70 -0
- package/examples/profiles/financial-transaction-management/valid/payment-reject.json +76 -0
- package/examples/profiles/financial-transaction-management/valid/payout-execute.json +64 -0
- package/examples/profiles/financial-transaction-management/valid/reconciliation-adjust.json +85 -0
- package/examples/profiles/financial-transaction-management/valid/refund-create.json +75 -0
- package/examples/profiles/financial-transaction-management/valid/reversal-execute.json +80 -0
- package/examples/profiles/financial-transaction-management/valid/settlement-execute.json +70 -0
- package/examples/profiles/financial-transaction-management/valid/transfer-execute.json +74 -0
- package/examples/profiles/financial-transaction-management/valid/withdrawal-execute.json +91 -0
- package/examples/profiles/identity-and-access-management/README.md +93 -0
- package/examples/profiles/identity-and-access-management/invalid/credential-rotate-missing-reason.json +47 -0
- package/examples/profiles/identity-and-access-management/invalid/permission-grant-missing-scope.json +54 -0
- package/examples/profiles/identity-and-access-management/invalid/privileged-role-without-approval.json +68 -0
- package/examples/profiles/identity-and-access-management/invalid/privileged-role-without-mfa.json +83 -0
- package/examples/profiles/identity-and-access-management/invalid/role-assign-missing-authorization.json +54 -0
- package/examples/profiles/identity-and-access-management/invalid/role-assign-missing-role-id.json +60 -0
- package/examples/profiles/identity-and-access-management/invalid/service-account-missing-owner.json +53 -0
- package/examples/profiles/identity-and-access-management/not-applicable/document-share.json +49 -0
- package/examples/profiles/identity-and-access-management/valid/credential-rotate.json +59 -0
- package/examples/profiles/identity-and-access-management/valid/permission-revoke.json +77 -0
- package/examples/profiles/identity-and-access-management/valid/role-assign-privileged.json +87 -0
- package/examples/profiles/identity-and-access-management/valid/role-assign-standard.json +80 -0
- package/examples/profiles/identity-and-access-management/valid/service-account-create.json +55 -0
- package/examples/profiles/identity-and-access-management/valid/user-create.json +55 -0
- package/examples/profiles/identity-and-access-management/valid/user-disable.json +79 -0
- package/examples/profiles/incident-management/README.md +125 -0
- package/examples/profiles/incident-management/invalid/assignment-change-missing-assignee.json +69 -0
- package/examples/profiles/incident-management/invalid/assignment-change-missing-change.json +59 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-approval.json +94 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-authorization.json +108 -0
- package/examples/profiles/incident-management/invalid/case-close-missing-reason.json +109 -0
- package/examples/profiles/incident-management/invalid/case-create-missing-status.json +67 -0
- package/examples/profiles/incident-management/invalid/case-reopen-missing-change.json +66 -0
- package/examples/profiles/incident-management/invalid/case-reopen-missing-reason.json +72 -0
- package/examples/profiles/incident-management/invalid/case-resolve-missing-resolution-type.json +74 -0
- package/examples/profiles/incident-management/invalid/corrective-action-verify-missing-method.json +81 -0
- package/examples/profiles/incident-management/invalid/priority-change-missing-priority.json +73 -0
- package/examples/profiles/incident-management/invalid/rca-approve-missing-approval.json +66 -0
- package/examples/profiles/incident-management/invalid/rca-create-missing-method.json +72 -0
- package/examples/profiles/incident-management/invalid/sla-breach-missing-target.json +49 -0
- package/examples/profiles/incident-management/not-applicable/case-view.json +40 -0
- package/examples/profiles/incident-management/not-applicable/monitoring-alert-raise.json +40 -0
- package/examples/profiles/incident-management/not-applicable/note-create.json +46 -0
- package/examples/profiles/incident-management/valid/assignment-change.json +70 -0
- package/examples/profiles/incident-management/valid/case-close.json +114 -0
- package/examples/profiles/incident-management/valid/case-create.json +68 -0
- package/examples/profiles/incident-management/valid/case-reopen.json +77 -0
- package/examples/profiles/incident-management/valid/case-resolve.json +75 -0
- package/examples/profiles/incident-management/valid/corrective-action-open.json +72 -0
- package/examples/profiles/incident-management/valid/corrective-action-verify.json +82 -0
- package/examples/profiles/incident-management/valid/create-short-form.json +64 -0
- package/examples/profiles/incident-management/valid/major-declare.json +79 -0
- package/examples/profiles/incident-management/valid/priority-change.json +74 -0
- package/examples/profiles/incident-management/valid/problem-case-close.json +73 -0
- package/examples/profiles/incident-management/valid/rca-approve.json +86 -0
- package/examples/profiles/incident-management/valid/rca-create.json +73 -0
- package/examples/profiles/incident-management/valid/sla-breach.json +50 -0
- package/examples/profiles/message-broker-management/README.md +123 -0
- package/examples/profiles/message-broker-management/invalid/acl-grant-missing-principal.json +78 -0
- package/examples/profiles/message-broker-management/invalid/configuration-update-missing-change.json +58 -0
- package/examples/profiles/message-broker-management/invalid/message-replay-missing-scope.json +76 -0
- package/examples/profiles/message-broker-management/invalid/offset-reset-missing-target.json +96 -0
- package/examples/profiles/message-broker-management/invalid/queue-purge-missing-destructive-flag.json +79 -0
- package/examples/profiles/message-broker-management/invalid/queue-purge-missing-reason.json +77 -0
- package/examples/profiles/message-broker-management/invalid/quota-update-missing-dimension.json +72 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-authorization.json +61 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-classification.json +66 -0
- package/examples/profiles/message-broker-management/invalid/topic-create-missing-cluster.json +66 -0
- package/examples/profiles/message-broker-management/invalid/topic-delete-denied-missing-error-type.json +68 -0
- package/examples/profiles/message-broker-management/invalid/topic-delete-missing-approval.json +65 -0
- package/examples/profiles/message-broker-management/not-applicable/consumer-group-rebalance.json +40 -0
- package/examples/profiles/message-broker-management/not-applicable/message-consume.json +41 -0
- package/examples/profiles/message-broker-management/not-applicable/message-publish.json +41 -0
- package/examples/profiles/message-broker-management/valid/acl-grant.json +79 -0
- package/examples/profiles/message-broker-management/valid/cluster-upgrade.json +77 -0
- package/examples/profiles/message-broker-management/valid/configuration-update.json +65 -0
- package/examples/profiles/message-broker-management/valid/consumer-group-delete.json +64 -0
- package/examples/profiles/message-broker-management/valid/message-replay.json +77 -0
- package/examples/profiles/message-broker-management/valid/offset-reset.json +97 -0
- package/examples/profiles/message-broker-management/valid/queue-purge.json +82 -0
- package/examples/profiles/message-broker-management/valid/quota-update.json +73 -0
- package/examples/profiles/message-broker-management/valid/topic-create.json +67 -0
- package/examples/profiles/message-broker-management/valid/topic-delete-denied.json +69 -0
- package/examples/profiles/message-broker-management/valid/topic-delete.json +77 -0
- package/examples/profiles/message-broker-management/valid/topic-retention-reduce.json +77 -0
- package/examples/profiles/secrets-and-key-management/README.md +115 -0
- package/examples/profiles/secrets-and-key-management/invalid/certificate-issue-missing-expiry.json +54 -0
- package/examples/profiles/secrets-and-key-management/invalid/emergency-reveal-missing-approval.json +61 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-destroy-missing-approval.json +56 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-generate-missing-owner.json +56 -0
- package/examples/profiles/secrets-and-key-management/invalid/key-import-missing-reason.json +59 -0
- package/examples/profiles/secrets-and-key-management/invalid/policy-update-missing-change.json +61 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-create-missing-authorization.json +53 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-export-missing-destination.json +74 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-reveal-missing-reason.json +65 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-revoke-missing-reason.json +52 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-rotate-missing-change.json +48 -0
- package/examples/profiles/secrets-and-key-management/invalid/secret-rotate-missing-type.json +54 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/key-decrypt.json +27 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/secret-cache-refresh.json +27 -0
- package/examples/profiles/secrets-and-key-management/not-applicable/secret-retrieve.json +27 -0
- package/examples/profiles/secrets-and-key-management/valid/certificate-issue.json +55 -0
- package/examples/profiles/secrets-and-key-management/valid/key-destroy.json +64 -0
- package/examples/profiles/secrets-and-key-management/valid/key-export.json +73 -0
- package/examples/profiles/secrets-and-key-management/valid/key-generate.json +57 -0
- package/examples/profiles/secrets-and-key-management/valid/key-import.json +64 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-create.json +59 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-export.json +75 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-policy-update.json +68 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-reveal-emergency.json +68 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-reveal.json +70 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-revoke.json +57 -0
- package/examples/profiles/secrets-and-key-management/valid/secret-rotate.json +55 -0
- package/examples/valid/access-request-approval.json +47 -0
- package/examples/valid/document-external-share.json +92 -0
- package/examples/valid/incident-case-close.json +114 -0
- package/examples/valid/kafka-consumer-offset-reset.json +105 -0
- package/examples/valid/minimal-event.json +22 -0
- package/examples/valid/nightly-reconciliation-job.json +33 -0
- package/examples/valid/order-api-publish.json +34 -0
- package/examples/valid/order-consumer-new-trace.json +36 -0
- package/examples/valid/privileged-configuration-change.json +109 -0
- package/examples/valid/service-account-data-export.json +83 -0
- package/examples/valid/user-role-assignment.json +92 -0
- package/package.json +6 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0010-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T10:22:00.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.legal-hold.apply",
|
|
7
|
+
"category": "data-modification",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "critical",
|
|
11
|
+
"summary": "Legal hold applied, suspending normal retention for this document."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-5120",
|
|
16
|
+
"tenantId": "tenant-7"
|
|
17
|
+
},
|
|
18
|
+
"resource": {
|
|
19
|
+
"type": "document",
|
|
20
|
+
"id": "document-90311",
|
|
21
|
+
"name": "quarterly-supplier-agreement",
|
|
22
|
+
"parentId": "workspace-14",
|
|
23
|
+
"classification": "confidential",
|
|
24
|
+
"ownerId": "user-4004",
|
|
25
|
+
"tenantId": "tenant-7"
|
|
26
|
+
},
|
|
27
|
+
"application": {
|
|
28
|
+
"name": "document-service",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"version": "2.11.0"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-7",
|
|
34
|
+
"workspaceId": "workspace-14"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-a91c4f10",
|
|
38
|
+
"correlationId": "document-lifecycle-7712",
|
|
39
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
40
|
+
"spanId": "00f067aa0ba902b7",
|
|
41
|
+
"protocol": "https"
|
|
42
|
+
},
|
|
43
|
+
"authorization": {
|
|
44
|
+
"decision": "allow",
|
|
45
|
+
"policy": "document-governance",
|
|
46
|
+
"policyVersion": "12"
|
|
47
|
+
},
|
|
48
|
+
"approval": {
|
|
49
|
+
"status": "approved",
|
|
50
|
+
"requiredApprovals": 1,
|
|
51
|
+
"receivedApprovals": 1
|
|
52
|
+
},
|
|
53
|
+
"reason": {
|
|
54
|
+
"code": "hold-instruction",
|
|
55
|
+
"text": "Hold instruction received from the legal team.",
|
|
56
|
+
"reference": "matter-2026-114"
|
|
57
|
+
},
|
|
58
|
+
"metadata": {
|
|
59
|
+
"legalHold": {
|
|
60
|
+
"active": true,
|
|
61
|
+
"matterReference": "matter-2026-114"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0007-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T17:22:07.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.permission.grant",
|
|
7
|
+
"category": "data-access",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"summary": "Editor permission granted on the contract document."
|
|
11
|
+
},
|
|
12
|
+
"actor": {
|
|
13
|
+
"type": "user",
|
|
14
|
+
"id": "user-5120",
|
|
15
|
+
"tenantId": "tenant-7"
|
|
16
|
+
},
|
|
17
|
+
"resource": {
|
|
18
|
+
"type": "document",
|
|
19
|
+
"id": "document-90311",
|
|
20
|
+
"name": "quarterly-supplier-agreement",
|
|
21
|
+
"parentId": "workspace-14",
|
|
22
|
+
"classification": "confidential",
|
|
23
|
+
"ownerId": "user-4004",
|
|
24
|
+
"tenantId": "tenant-7"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "document-service",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "2.11.0"
|
|
30
|
+
},
|
|
31
|
+
"organization": {
|
|
32
|
+
"tenantId": "tenant-7",
|
|
33
|
+
"workspaceId": "workspace-14"
|
|
34
|
+
},
|
|
35
|
+
"request": {
|
|
36
|
+
"requestId": "request-a91c4f7",
|
|
37
|
+
"correlationId": "document-lifecycle-7712",
|
|
38
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
39
|
+
"spanId": "00f067aa0ba902b7",
|
|
40
|
+
"protocol": "https"
|
|
41
|
+
},
|
|
42
|
+
"authorization": {
|
|
43
|
+
"decision": "allow",
|
|
44
|
+
"policy": "document-governance",
|
|
45
|
+
"policyVersion": "12"
|
|
46
|
+
},
|
|
47
|
+
"reason": {
|
|
48
|
+
"code": "role-change",
|
|
49
|
+
"text": "Reviewer promoted to contract editor."
|
|
50
|
+
},
|
|
51
|
+
"metadata": {
|
|
52
|
+
"permission": {
|
|
53
|
+
"id": "document.edit",
|
|
54
|
+
"scope": "document-90311",
|
|
55
|
+
"granteeId": "user-6203"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0009-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T19:22:09.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.retention.update",
|
|
7
|
+
"category": "data-modification",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "high",
|
|
11
|
+
"summary": "Retention class raised after the document was classified as a contract record."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-5120",
|
|
16
|
+
"tenantId": "tenant-7"
|
|
17
|
+
},
|
|
18
|
+
"resource": {
|
|
19
|
+
"type": "document",
|
|
20
|
+
"id": "document-90311",
|
|
21
|
+
"name": "quarterly-supplier-agreement",
|
|
22
|
+
"parentId": "workspace-14",
|
|
23
|
+
"classification": "confidential",
|
|
24
|
+
"ownerId": "user-4004",
|
|
25
|
+
"tenantId": "tenant-7"
|
|
26
|
+
},
|
|
27
|
+
"application": {
|
|
28
|
+
"name": "document-service",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"version": "2.11.0"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-7",
|
|
34
|
+
"workspaceId": "workspace-14"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-a91c4f9",
|
|
38
|
+
"correlationId": "document-lifecycle-7712",
|
|
39
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
40
|
+
"spanId": "00f067aa0ba902b7",
|
|
41
|
+
"protocol": "https"
|
|
42
|
+
},
|
|
43
|
+
"authorization": {
|
|
44
|
+
"decision": "allow",
|
|
45
|
+
"policy": "document-governance",
|
|
46
|
+
"policyVersion": "12"
|
|
47
|
+
},
|
|
48
|
+
"approval": {
|
|
49
|
+
"status": "approved",
|
|
50
|
+
"requiredApprovals": 1,
|
|
51
|
+
"receivedApprovals": 1
|
|
52
|
+
},
|
|
53
|
+
"reason": {
|
|
54
|
+
"code": "records-classification",
|
|
55
|
+
"text": "Reclassified as a contract record."
|
|
56
|
+
},
|
|
57
|
+
"change": {
|
|
58
|
+
"changedFields": ["retentionClass"],
|
|
59
|
+
"before": {
|
|
60
|
+
"retentionClass": "standard"
|
|
61
|
+
},
|
|
62
|
+
"after": {
|
|
63
|
+
"retentionClass": "contract-record"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"metadata": {
|
|
67
|
+
"retention": {
|
|
68
|
+
"class": "contract-record",
|
|
69
|
+
"until": "2033-03-14T00:00:00Z"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0005-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T15:22:05.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.share.create",
|
|
7
|
+
"category": "data-access",
|
|
8
|
+
"type": "share",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "high",
|
|
11
|
+
"summary": "Confidential document shared with an external recipient."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-5120",
|
|
16
|
+
"tenantId": "tenant-7"
|
|
17
|
+
},
|
|
18
|
+
"resource": {
|
|
19
|
+
"type": "document",
|
|
20
|
+
"id": "document-90311",
|
|
21
|
+
"name": "quarterly-supplier-agreement",
|
|
22
|
+
"parentId": "workspace-14",
|
|
23
|
+
"classification": "confidential",
|
|
24
|
+
"ownerId": "user-4004",
|
|
25
|
+
"tenantId": "tenant-7"
|
|
26
|
+
},
|
|
27
|
+
"application": {
|
|
28
|
+
"name": "document-service",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"version": "2.11.0"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-7",
|
|
34
|
+
"workspaceId": "workspace-14"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-a91c4f5",
|
|
38
|
+
"correlationId": "document-lifecycle-7712",
|
|
39
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
40
|
+
"spanId": "00f067aa0ba902b7",
|
|
41
|
+
"protocol": "https"
|
|
42
|
+
},
|
|
43
|
+
"authorization": {
|
|
44
|
+
"decision": "allow",
|
|
45
|
+
"policy": "document-governance",
|
|
46
|
+
"policyVersion": "12"
|
|
47
|
+
},
|
|
48
|
+
"reason": {
|
|
49
|
+
"code": "customer-request",
|
|
50
|
+
"text": "Supplier requested the countersigned agreement.",
|
|
51
|
+
"reference": "support-case-3391"
|
|
52
|
+
},
|
|
53
|
+
"privacy": {
|
|
54
|
+
"containsPersonalData": true,
|
|
55
|
+
"dataCategories": ["identifier", "contact"],
|
|
56
|
+
"processing": "mask",
|
|
57
|
+
"minimized": true,
|
|
58
|
+
"purpose": "access-transparency"
|
|
59
|
+
},
|
|
60
|
+
"controlCategories": ["external-data-sharing"],
|
|
61
|
+
"metadata": {
|
|
62
|
+
"share": {
|
|
63
|
+
"recipientType": "external",
|
|
64
|
+
"permission": "view",
|
|
65
|
+
"expiresAt": "2026-03-21T11:47:52Z",
|
|
66
|
+
"watermarkApplied": true
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0004-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T14:22:04.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.share.create",
|
|
7
|
+
"category": "data-access",
|
|
8
|
+
"type": "share",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"summary": "Contract shared with an internal reviewer group."
|
|
11
|
+
},
|
|
12
|
+
"actor": {
|
|
13
|
+
"type": "user",
|
|
14
|
+
"id": "user-5120",
|
|
15
|
+
"tenantId": "tenant-7"
|
|
16
|
+
},
|
|
17
|
+
"resource": {
|
|
18
|
+
"type": "document",
|
|
19
|
+
"id": "document-90311",
|
|
20
|
+
"name": "quarterly-supplier-agreement",
|
|
21
|
+
"parentId": "workspace-14",
|
|
22
|
+
"classification": "confidential",
|
|
23
|
+
"ownerId": "user-4004",
|
|
24
|
+
"tenantId": "tenant-7"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "document-service",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "2.11.0"
|
|
30
|
+
},
|
|
31
|
+
"organization": {
|
|
32
|
+
"tenantId": "tenant-7",
|
|
33
|
+
"workspaceId": "workspace-14"
|
|
34
|
+
},
|
|
35
|
+
"request": {
|
|
36
|
+
"requestId": "request-a91c4f4",
|
|
37
|
+
"correlationId": "document-lifecycle-7712",
|
|
38
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
39
|
+
"spanId": "00f067aa0ba902b7",
|
|
40
|
+
"protocol": "https"
|
|
41
|
+
},
|
|
42
|
+
"authorization": {
|
|
43
|
+
"decision": "allow",
|
|
44
|
+
"policy": "document-governance",
|
|
45
|
+
"policyVersion": "12"
|
|
46
|
+
},
|
|
47
|
+
"metadata": {
|
|
48
|
+
"share": {
|
|
49
|
+
"recipientType": "internal",
|
|
50
|
+
"permission": "view",
|
|
51
|
+
"expiresAt": "2026-04-14T00:00:00Z"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0006-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T16:22:06.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.share.revoke",
|
|
7
|
+
"category": "data-access",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"summary": "External share withdrawn after the agreement was countersigned."
|
|
11
|
+
},
|
|
12
|
+
"actor": {
|
|
13
|
+
"type": "user",
|
|
14
|
+
"id": "user-5120",
|
|
15
|
+
"tenantId": "tenant-7"
|
|
16
|
+
},
|
|
17
|
+
"resource": {
|
|
18
|
+
"type": "document",
|
|
19
|
+
"id": "document-90311",
|
|
20
|
+
"name": "quarterly-supplier-agreement",
|
|
21
|
+
"parentId": "workspace-14",
|
|
22
|
+
"classification": "confidential",
|
|
23
|
+
"ownerId": "user-4004",
|
|
24
|
+
"tenantId": "tenant-7"
|
|
25
|
+
},
|
|
26
|
+
"application": {
|
|
27
|
+
"name": "document-service",
|
|
28
|
+
"environment": "production",
|
|
29
|
+
"version": "2.11.0"
|
|
30
|
+
},
|
|
31
|
+
"organization": {
|
|
32
|
+
"tenantId": "tenant-7",
|
|
33
|
+
"workspaceId": "workspace-14"
|
|
34
|
+
},
|
|
35
|
+
"request": {
|
|
36
|
+
"requestId": "request-a91c4f6",
|
|
37
|
+
"correlationId": "document-lifecycle-7712",
|
|
38
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
39
|
+
"spanId": "00f067aa0ba902b7",
|
|
40
|
+
"protocol": "https"
|
|
41
|
+
},
|
|
42
|
+
"authorization": {
|
|
43
|
+
"decision": "allow",
|
|
44
|
+
"policy": "document-governance",
|
|
45
|
+
"policyVersion": "12"
|
|
46
|
+
},
|
|
47
|
+
"reason": {
|
|
48
|
+
"code": "access-no-longer-required",
|
|
49
|
+
"text": "Agreement countersigned and filed."
|
|
50
|
+
},
|
|
51
|
+
"metadata": {
|
|
52
|
+
"share": {
|
|
53
|
+
"recipientType": "external"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f1b80-0008-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T18:22:08.100Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "document.version.rollback",
|
|
7
|
+
"category": "data-modification",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "high",
|
|
11
|
+
"summary": "Contract rolled back to the last approved revision."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "user",
|
|
15
|
+
"id": "user-5120",
|
|
16
|
+
"tenantId": "tenant-7"
|
|
17
|
+
},
|
|
18
|
+
"resource": {
|
|
19
|
+
"type": "document",
|
|
20
|
+
"id": "document-90311",
|
|
21
|
+
"name": "quarterly-supplier-agreement",
|
|
22
|
+
"parentId": "workspace-14",
|
|
23
|
+
"classification": "confidential",
|
|
24
|
+
"ownerId": "user-4004",
|
|
25
|
+
"tenantId": "tenant-7"
|
|
26
|
+
},
|
|
27
|
+
"application": {
|
|
28
|
+
"name": "document-service",
|
|
29
|
+
"environment": "production",
|
|
30
|
+
"version": "2.11.0"
|
|
31
|
+
},
|
|
32
|
+
"organization": {
|
|
33
|
+
"tenantId": "tenant-7",
|
|
34
|
+
"workspaceId": "workspace-14"
|
|
35
|
+
},
|
|
36
|
+
"request": {
|
|
37
|
+
"requestId": "request-a91c4f8",
|
|
38
|
+
"correlationId": "document-lifecycle-7712",
|
|
39
|
+
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
|
|
40
|
+
"spanId": "00f067aa0ba902b7",
|
|
41
|
+
"protocol": "https"
|
|
42
|
+
},
|
|
43
|
+
"authorization": {
|
|
44
|
+
"decision": "allow",
|
|
45
|
+
"policy": "document-governance",
|
|
46
|
+
"policyVersion": "12"
|
|
47
|
+
},
|
|
48
|
+
"reason": {
|
|
49
|
+
"code": "incorrect-content",
|
|
50
|
+
"text": "Unapproved clause introduced in the previous revision.",
|
|
51
|
+
"reference": "records-task-8830"
|
|
52
|
+
},
|
|
53
|
+
"metadata": {
|
|
54
|
+
"version": {
|
|
55
|
+
"id": "v11",
|
|
56
|
+
"previousId": "v12"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Financial transaction management profile fixtures
|
|
2
|
+
|
|
3
|
+
**Status: Informative.** These fixtures illustrate and regression-test the
|
|
4
|
+
[financial-transaction-management profile](../../../profiles/financial-transaction-management/). The
|
|
5
|
+
rules themselves are in
|
|
6
|
+
[profile.json](../../../profiles/financial-transaction-management/profile.json).
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
auditmodel check-profile examples/profiles/financial-transaction-management/valid --profile financial-transaction-management
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Every fixture here — valid, invalid and not-applicable alike — is a **core-conforming** event. The
|
|
13
|
+
ones under `invalid/` fail the profile, not the core schema. That separation is the point: a profile
|
|
14
|
+
adds requirements to events the core already accepts.
|
|
15
|
+
|
|
16
|
+
## The guarantee these fixtures carry
|
|
17
|
+
|
|
18
|
+
Each file under `valid/` must satisfy all three commands, and a test enforces it:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
auditmodel validate examples/profiles/financial-transaction-management/valid
|
|
22
|
+
auditmodel lint-privacy examples/profiles/financial-transaction-management/valid
|
|
23
|
+
auditmodel check-profile examples/profiles/financial-transaction-management/valid --profile financial-transaction-management
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
A profile that accepted an event the core rejects would break the core invariant. A profile over money
|
|
27
|
+
that accepted an event carrying an account number or a scheme credential would be worse than no
|
|
28
|
+
profile at all.
|
|
29
|
+
|
|
30
|
+
## Valid fixtures
|
|
31
|
+
|
|
32
|
+
| File | Event | Demonstrates |
|
|
33
|
+
| -------------------------------- | --------------------------------- | ------------------------------------------------------------------- |
|
|
34
|
+
| `payment-capture.json` | `financial.payment.capture` | The movement requirements alone: reference, amount, currency, state |
|
|
35
|
+
| `payment-reject.json` | `financial.payment.reject` | A refusal: `outcome: failure`, an error descriptor and a reason |
|
|
36
|
+
| `transfer-execute.json` | `financial.transfer.execute` | A two-sided movement naming its counterparty account |
|
|
37
|
+
| `withdrawal-execute.json` | `financial.withdrawal.execute` | Conditional approval: `approvalRequired` declared, decision carried |
|
|
38
|
+
| `deposit-manual-correction.json` | `financial.deposit.record` | A manual intervention: `manual` declared, change and reason carried |
|
|
39
|
+
| `refund-create.json` | `financial.refund.create` | A refund justified against the payment it returns |
|
|
40
|
+
| `reversal-execute.json` | `financial.reversal.execute` | An unwind naming the transaction it acts against |
|
|
41
|
+
| `chargeback-open.json` | `financial.chargeback.open` | A dispute raised by an external counterparty |
|
|
42
|
+
| `payout-execute.json` | `financial.payout.execute` | An automated payout, legitimately with no approval and no reason |
|
|
43
|
+
| `settlement-execute.json` | `financial.settlement.execute` | A scheduled net settlement linking both sides |
|
|
44
|
+
| `reconciliation-adjust.json` | `financial.reconciliation.adjust` | A break corrected in the books, with the transition recorded |
|
|
45
|
+
| `limit-update.json` | `financial.limit.update` | A preventive control raised, with its before and after state |
|
|
46
|
+
|
|
47
|
+
Three of these produce **warnings** rather than errors, and that is intentional:
|
|
48
|
+
|
|
49
|
+
- `payout-execute.json` and `settlement-execute.json` omit `/reason`. A scheduled payout or settlement
|
|
50
|
+
has no per-event business justification beyond the schedule, and `FIN-CORE-002` recommends rather
|
|
51
|
+
than requires one.
|
|
52
|
+
- `chargeback-open.json` omits `/approval`. A chargeback is raised by a counterparty, not approved
|
|
53
|
+
internally, so `FIN-REVERSAL-001` recommends approval rather than requiring it.
|
|
54
|
+
|
|
55
|
+
A warning never fails conformance. All twelve fixtures are reported as conforming.
|
|
56
|
+
|
|
57
|
+
Vendor spread is deliberate: the producing applications are a payment service, a ledger service, a
|
|
58
|
+
brokerage ledger, a marketplace payments service, a marketplace payout service, a treasury settlement
|
|
59
|
+
runner, a treasury reconciliation tool and a treasury controls console. The same rules apply to all of
|
|
60
|
+
them.
|
|
61
|
+
|
|
62
|
+
## Invalid fixtures
|
|
63
|
+
|
|
64
|
+
Each removes exactly one profile-required value from a valid fixture, so it fails for one documented
|
|
65
|
+
reason. A test asserts both the rule and the pointer, and that **exactly one** error is produced.
|
|
66
|
+
|
|
67
|
+
| File | Violates | At |
|
|
68
|
+
| -------------------------------------------- | ------------------ | ------------------------------------------- |
|
|
69
|
+
| `payment-capture-missing-authorization.json` | `FIN-CORE-001` | `/authorization` |
|
|
70
|
+
| `payment-capture-missing-amount.json` | `FIN-TXN-001` | `/metadata/financial/amount` |
|
|
71
|
+
| `withdrawal-missing-correlation.json` | `FIN-TXN-001` | `/request/correlationId` |
|
|
72
|
+
| `payout-missing-direction.json` | `FIN-TXN-002` | `/metadata/financial/direction` |
|
|
73
|
+
| `transfer-missing-related-resources.json` | `FIN-LINK-001` | `/relatedResources` |
|
|
74
|
+
| `refund-missing-reason.json` | `FIN-REASON-001` | `/reason` |
|
|
75
|
+
| `reversal-missing-original-transaction.json` | `FIN-REVERSAL-001` | `/metadata/financial/originalTransactionId` |
|
|
76
|
+
| `withdrawal-missing-approval-status.json` | `FIN-APPROVAL-001` | `/approval/status` |
|
|
77
|
+
| `manual-deposit-missing-change.json` | `FIN-MANUAL-001` | `/change` |
|
|
78
|
+
| `reconciliation-missing-identifier.json` | `FIN-RECON-001` | `/metadata/financial/reconciliationId` |
|
|
79
|
+
| `reconciliation-adjust-missing-change.json` | `FIN-RECON-002` | `/change` |
|
|
80
|
+
| `limit-update-missing-limit-type.json` | `FIN-LIMIT-001` | `/metadata/financial/limitType` |
|
|
81
|
+
|
|
82
|
+
Every enforceable rule has at least one negative fixture. Two of them are worth reading closely:
|
|
83
|
+
|
|
84
|
+
- `withdrawal-missing-approval-status.json` keeps the `/approval` object and removes only its
|
|
85
|
+
`status`. That is the failure the rule is really about: a record naming an approval workflow without
|
|
86
|
+
saying whether anyone approved anything.
|
|
87
|
+
- `manual-deposit-missing-change.json` is a `financial.deposit.record` event, which no rule requires a
|
|
88
|
+
`/change` on. It fails only because the producer declared `manual: true`, which is what makes
|
|
89
|
+
`FIN-MANUAL-001` apply.
|
|
90
|
+
|
|
91
|
+
## Not-applicable fixtures
|
|
92
|
+
|
|
93
|
+
| File | Event | Why it is ungoverned |
|
|
94
|
+
| ---------------------- | --------------------------- | ------------------------------------------------------------------------ |
|
|
95
|
+
| `balance-view.json` | `financial.balance.view` | A read. No value moves, and it is emitted at page-view volume. |
|
|
96
|
+
| `quote-create.json` | `financial.quote.create` | A price is computed. Nothing is owed, paid or transferred. |
|
|
97
|
+
| `report-generate.json` | `financial.report.generate` | Routine reporting over movements that were already audited individually. |
|
|
98
|
+
|
|
99
|
+
All three are perfectly good audit events that this profile deliberately does not govern.
|
|
100
|
+
`check-profile` reports them as not applicable and exits with code 3.
|
|
101
|
+
|
|
102
|
+
They exist to hold the exclusion in place. If a future edit widened a selector to a bare `financial.`
|
|
103
|
+
prefix, these fixtures would start conforming instead of being skipped, and the test would fail —
|
|
104
|
+
which is the point, because that edit would silently impose an authorization decision, an amount, a
|
|
105
|
+
currency, a direction and a correlation identifier on every balance lookup in a retail application.
|
|
106
|
+
|
|
107
|
+
## Vendor neutrality
|
|
108
|
+
|
|
109
|
+
No fixture names a real product, company, bank, card scheme, jurisdiction or regulation. Policy names,
|
|
110
|
+
workflow names, currency codes and control categories are illustrative strings, not any
|
|
111
|
+
organization's scheme, and no rule in the profile depends on any of them.
|
|
112
|
+
|
|
113
|
+
## What the fixtures never contain
|
|
114
|
+
|
|
115
|
+
Account and instrument references are **opaque**: `account-ref-781`, `counterparty-ref-44`,
|
|
116
|
+
`payment-ref-4412`, `txn-2026-0314-0091`. Not one fixture carries a full account number, a card
|
|
117
|
+
number, an IBAN, a payment credential, a scheme API key, an authentication secret or a counterparty's
|
|
118
|
+
personal data — because a real audit trail must not carry them either, and a fixture is the first
|
|
119
|
+
thing an implementer copies.
|
|
120
|
+
|
|
121
|
+
Balances appear only inside `change.before` and `change.after` where the operation changed them, and
|
|
122
|
+
then only as the single value that moved. `auditmodel lint-privacy` reports zero findings across all
|
|
123
|
+
twenty-seven fixtures, and a test enforces that.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"specVersion": "0.1",
|
|
3
|
+
"id": "018f2c90-0041-7a2b-9c3d-4e5f60718293",
|
|
4
|
+
"time": "2026-03-14T19:33:41.205Z",
|
|
5
|
+
"event": {
|
|
6
|
+
"name": "financial.limit.update",
|
|
7
|
+
"category": "configuration",
|
|
8
|
+
"type": "update",
|
|
9
|
+
"outcome": "success",
|
|
10
|
+
"severity": "high",
|
|
11
|
+
"summary": "Daily withdrawal ceiling raised for a client account after a documented review."
|
|
12
|
+
},
|
|
13
|
+
"actor": {
|
|
14
|
+
"type": "admin",
|
|
15
|
+
"id": "user-3391",
|
|
16
|
+
"tenantId": "tenant-44",
|
|
17
|
+
"roles": ["treasury-controls-admin"]
|
|
18
|
+
},
|
|
19
|
+
"subject": {
|
|
20
|
+
"type": "user",
|
|
21
|
+
"id": "user-7712",
|
|
22
|
+
"tenantId": "tenant-44"
|
|
23
|
+
},
|
|
24
|
+
"resource": {
|
|
25
|
+
"type": "transaction-limit",
|
|
26
|
+
"id": "limit-ref-55",
|
|
27
|
+
"name": "daily-withdrawal-ceiling",
|
|
28
|
+
"ownerId": "user-7712",
|
|
29
|
+
"tenantId": "tenant-44"
|
|
30
|
+
},
|
|
31
|
+
"relatedResources": [
|
|
32
|
+
{
|
|
33
|
+
"type": "account",
|
|
34
|
+
"id": "account-ref-2201"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"application": {
|
|
38
|
+
"name": "treasury-controls",
|
|
39
|
+
"environment": "production",
|
|
40
|
+
"version": "9.1.4"
|
|
41
|
+
},
|
|
42
|
+
"organization": {
|
|
43
|
+
"tenantId": "tenant-44",
|
|
44
|
+
"businessUnitId": "treasury"
|
|
45
|
+
},
|
|
46
|
+
"request": {
|
|
47
|
+
"requestId": "request-7a09b18",
|
|
48
|
+
"correlationId": "limit-review-5521"
|
|
49
|
+
},
|
|
50
|
+
"authentication": {
|
|
51
|
+
"method": "mfa",
|
|
52
|
+
"mfa": true,
|
|
53
|
+
"provider": "corporate-idp",
|
|
54
|
+
"assuranceLevel": "high"
|
|
55
|
+
},
|
|
56
|
+
"authorization": {
|
|
57
|
+
"decision": "allow",
|
|
58
|
+
"policy": "transaction-limit-policy",
|
|
59
|
+
"policyVersion": "4"
|
|
60
|
+
},
|
|
61
|
+
"approval": {
|
|
62
|
+
"status": "approved",
|
|
63
|
+
"workflowId": "limit-change-review",
|
|
64
|
+
"requiredApprovals": 2,
|
|
65
|
+
"receivedApprovals": 2,
|
|
66
|
+
"approvers": [
|
|
67
|
+
{
|
|
68
|
+
"type": "user",
|
|
69
|
+
"id": "user-4477"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "user",
|
|
73
|
+
"id": "user-4482"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"approvedAt": "2026-03-14T19:30:22Z"
|
|
77
|
+
},
|
|
78
|
+
"change": {
|
|
79
|
+
"type": "update",
|
|
80
|
+
"changedFields": ["dailyWithdrawalCeiling"],
|
|
81
|
+
"before": {
|
|
82
|
+
"dailyWithdrawalCeiling": 25000
|
|
83
|
+
},
|
|
84
|
+
"after": {
|
|
85
|
+
"dailyWithdrawalCeiling": 100000
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"reason": {
|
|
89
|
+
"code": "documented-client-review",
|
|
90
|
+
"text": "Client onboarding review supported a higher ceiling for the account.",
|
|
91
|
+
"reference": "case-88203"
|
|
92
|
+
},
|
|
93
|
+
"controlCategories": ["preventive-control-change", "change-approval"],
|
|
94
|
+
"metadata": {
|
|
95
|
+
"financial": {
|
|
96
|
+
"currency": "USD",
|
|
97
|
+
"approvalRequired": true,
|
|
98
|
+
"manual": false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|