antifraud-data-utils-ts 0.1.10 → 0.2.0
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/CHANGELOG.md +187 -134
- package/LICENSE +13 -13
- package/README.md +257 -243
- package/dist/cryptography/index.d.ts +1 -0
- package/dist/cryptography/index.d.ts.map +1 -1
- package/dist/cryptography/index.js +1 -0
- package/dist/cryptography/index.js.map +1 -1
- package/dist/cryptography/numeric-qr.d.ts +4 -0
- package/dist/cryptography/numeric-qr.d.ts.map +1 -0
- package/dist/cryptography/numeric-qr.js +22 -0
- package/dist/cryptography/numeric-qr.js.map +1 -0
- package/dist/cryptography/post-quantum-detached-qr.d.ts +14 -0
- package/dist/cryptography/post-quantum-detached-qr.d.ts.map +1 -0
- package/dist/cryptography/post-quantum-detached-qr.js +76 -0
- package/dist/cryptography/post-quantum-detached-qr.js.map +1 -0
- package/dist/encoding/base58btc.d.ts +3 -0
- package/dist/encoding/base58btc.d.ts.map +1 -0
- package/dist/encoding/base58btc.js +19 -0
- package/dist/encoding/base58btc.js.map +1 -0
- package/dist/identity-assurance/antifraud-data-card.d.ts +42 -0
- package/dist/identity-assurance/antifraud-data-card.d.ts.map +1 -0
- package/dist/identity-assurance/antifraud-data-card.js +120 -0
- package/dist/identity-assurance/antifraud-data-card.js.map +1 -0
- package/dist/identity-assurance/didcomm-binary-attachment.d.ts.map +1 -1
- package/dist/identity-assurance/didcomm-binary-attachment.js +1 -18
- package/dist/identity-assurance/didcomm-binary-attachment.js.map +1 -1
- package/dist/identity-assurance/identity-evidence.d.ts.map +1 -1
- package/dist/identity-assurance/identity-evidence.js +1 -16
- package/dist/identity-assurance/identity-evidence.js.map +1 -1
- package/dist/identity-assurance/index.d.ts +1 -0
- package/dist/identity-assurance/index.d.ts.map +1 -1
- package/dist/identity-assurance/index.js +1 -0
- package/dist/identity-assurance/index.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/organization-credentials.d.ts +75 -0
- package/dist/organization-credentials.d.ts.map +1 -0
- package/dist/organization-credentials.js +162 -0
- package/dist/organization-credentials.js.map +1 -0
- package/dist/organization-identity.d.ts +21 -0
- package/dist/organization-identity.d.ts.map +1 -0
- package/dist/organization-identity.js +47 -0
- package/dist/organization-identity.js.map +1 -0
- package/dist/service-conversation.d.ts +40 -0
- package/dist/service-conversation.d.ts.map +1 -0
- package/dist/service-conversation.js +58 -0
- package/dist/service-conversation.js.map +1 -0
- package/docs/ANTIFRAUD_DATA_CARD_V1.md +47 -0
- package/docs/DC4EU_EDUCATION_AND_MEDICAL_CREDENTIALS.md +93 -0
- package/docs/DIDCOMM_SCHEMA_ORG_ATTACHMENTS.md +73 -0
- package/docs/EDUCATION_ADMINISTRATIVE_ASSISTANT_IDENTITY_EVIDENCE.md +90 -0
- package/docs/IDENTITY_VERIFICATION_AND_ATTESTATION.md +354 -0
- package/docs/ORGANIZATION_CONTACT_IDENTITY.md +113 -0
- package/package.json +69 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,134 +1,187 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## Unreleased
|
|
6
|
-
|
|
7
|
-
## 0.
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
- Add canonical Schema.org `
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## 0.2.0 - 2026-11-08
|
|
8
|
+
|
|
9
|
+
- Group the additive contact identity and reviewed organization credential
|
|
10
|
+
APIs in one minor release. Source validation passes all 75 serial package
|
|
11
|
+
tests and the consuming Node SDK's 67 tests with real-format employee UUID
|
|
12
|
+
fixtures. These checks do not establish completed portal/gateway lifecycle
|
|
13
|
+
acceptance; registry publication is verified separately.
|
|
14
|
+
|
|
15
|
+
- Add contact-aware reviewed organization admission/domain credential drafts
|
|
16
|
+
and the existing proof-free canonicalization contract. Preserve normalized
|
|
17
|
+
email JSON/signing payloads while projecting a phone controller as telephone
|
|
18
|
+
and retaining stable actor hashes for both parties. Ambiguous contacts fail;
|
|
19
|
+
occupation and controller authority values come from the caller's governed
|
|
20
|
+
policy. Draft construction does not verify a signature, approve admission,
|
|
21
|
+
call ICA or complete gateway/SDK phone enrollment.
|
|
22
|
+
- Reviewed credential validation on Node 26.13.0: 9 focused cases, all 75
|
|
23
|
+
package cases without skips and typechecking pass. Email admission/domain
|
|
24
|
+
JSON and proof-free payload bytes match the published predecessor; fully
|
|
25
|
+
phone-only and independently selected party contacts remain distinct.
|
|
26
|
+
|
|
27
|
+
- Add the product-neutral `organization-identity` entry point for explicit
|
|
28
|
+
email/phone contact normalization, the existing SHA3-256 stable actor URN
|
|
29
|
+
and the existing organization employee DID with a separate role/device.
|
|
30
|
+
Preserve normalized email identity bytes and the established phone actor
|
|
31
|
+
representation; reject malformed or wrong-channel contacts. These data
|
|
32
|
+
operations grant no account, organization, employee or licence authority.
|
|
33
|
+
- Port the compatibility algorithm without a runtime dependency on frozen
|
|
34
|
+
common utilities; the published predecessor is a development-only test
|
|
35
|
+
oracle. Reuse one internal base58btc encoder for actor hashes, evidence
|
|
36
|
+
CIDs and DIDComm attachments. Complete phone-only admission/enrollment
|
|
37
|
+
remains a separate consumer and gateway migration.
|
|
38
|
+
- Keep test files serial by default. On Node 26.13.0, the focused identity and
|
|
39
|
+
evidence/attachment cases pass (22 tests), the complete package suite passes
|
|
40
|
+
(66 tests, no skips), and typechecking passes. The subsequent cumulative
|
|
41
|
+
credential/identity matrix passes 75 tests without skips.
|
|
42
|
+
|
|
43
|
+
## 0.1.11 - 2026-11-06
|
|
44
|
+
|
|
45
|
+
- Clean generated output before every build so renamed ADC modules cannot ship
|
|
46
|
+
stale Smart Data Card artifacts.
|
|
47
|
+
|
|
48
|
+
- Add the neutral organization/service conversation event emitted after an
|
|
49
|
+
authorized EHR, CMS or other authoritative service updates a subject index.
|
|
50
|
+
The event carries governed HTTPS references only; it grants no access and
|
|
51
|
+
does not copy authoritative data into the index or UI.
|
|
52
|
+
- Extract the domain-neutral `pqc:/` transport for RFC 7797 detached ML-DSA
|
|
53
|
+
proofs, including deterministic numeric multi-QR encoding. The external
|
|
54
|
+
signed payload remains separate and may be a health credential or an
|
|
55
|
+
Antifraud JSON:API/Schema.org credential.
|
|
56
|
+
- Add the versioned non-health Antifraud Data Card profile and `afdc:/` transport.
|
|
57
|
+
Its VC subject is one canonical JSON:API primary document with Schema.org
|
|
58
|
+
resources; it never uses or masquerades as the SHC `fhirBundle` profile.
|
|
59
|
+
|
|
60
|
+
## 0.1.10 - 2026-10-21
|
|
61
|
+
|
|
62
|
+
- Add the Schema.org-first public organization service catalog: explicit
|
|
63
|
+
Organization, department, Place and Service publication; flat claims; a DCAT
|
|
64
|
+
discovery descriptor; and fail-closed cache refresh, withdrawal and rollback
|
|
65
|
+
decisions. FHIR projection and scheduling remain outside this contract.
|
|
66
|
+
|
|
67
|
+
## 0.1.9 - 2026-10-19
|
|
68
|
+
|
|
69
|
+
- Add the governed qualification-classification reference so portals and BFFs
|
|
70
|
+
preserve canonical system, version, concept URI and code independently from
|
|
71
|
+
localized presentation labels.
|
|
72
|
+
|
|
73
|
+
## 0.1.8 - 2026-10-18
|
|
74
|
+
|
|
75
|
+
- Add the canonical synthetic social-publication manifest digest and Demo
|
|
76
|
+
record. Public content must reproduce the signed SHA3-384 manifest, the
|
|
77
|
+
managed-wallet proof must already be verified with ML-DSA-65, and the
|
|
78
|
+
receipt remains explicitly bound to the simulated in-memory Fabric adapter.
|
|
79
|
+
- Add the browser-neutral CIDv1 raw SHA3-384 builder for an already-computed
|
|
80
|
+
48-byte evidence digest so BFFs and services do not duplicate multicodec or
|
|
81
|
+
base58btc construction.
|
|
82
|
+
|
|
83
|
+
## 0.1.7 - 2026-10-18
|
|
84
|
+
|
|
85
|
+
- Add the canonical verified managed-signature proof projection. Manifest,
|
|
86
|
+
operation, signer, relying party, purpose, algorithm and verification method
|
|
87
|
+
are copied from the immutable request rather than accepted from wallet output.
|
|
88
|
+
- Reject unverified, malformed, out-of-lifetime or authority-overriding proof
|
|
89
|
+
material and harden the ciphertext-tampering test so it always changes a
|
|
90
|
+
decoded byte rather than optional base64 padding bits.
|
|
91
|
+
|
|
92
|
+
## 0.1.6 - 2026-10-18
|
|
93
|
+
|
|
94
|
+
- Add the canonical managed-signature request state, local user-presence method,
|
|
95
|
+
ML-DSA-65 actor-signing key and immutable manifest-binding contracts.
|
|
96
|
+
- Build pending requests from a browser-controlled manifest draft and separate
|
|
97
|
+
trusted backend context for user, registered device, relying party, purpose,
|
|
98
|
+
signer and verification method; reject browser-authored authority.
|
|
99
|
+
- Export one reusable synthetic signing-request fixture for SDK, gateway and
|
|
100
|
+
portal journey tests.
|
|
101
|
+
|
|
102
|
+
## 0.1.5 - 2026-10-18
|
|
103
|
+
|
|
104
|
+
- Migrate the reviewed stateless `gdc-common-utils-ts` cryptography profile so
|
|
105
|
+
Antifraud SDKs can share ML-KEM-768 key generation, random AES-256-GCM
|
|
106
|
+
content keys, HKDF-derived per-recipient key encryption keys and the
|
|
107
|
+
`gdc-mlkem-cek-wrap-v1` JWE envelope without duplicating algorithms.
|
|
108
|
+
- Export ML-DSA-44/65/87 byte and JWS signing/verification primitives while
|
|
109
|
+
leaving all private-key custody, persistence and user-presence authorization
|
|
110
|
+
to the calling managed wallet or KMS.
|
|
111
|
+
- Prove bidirectional JWE compatibility with `gdc-common-utils-ts@2.9.30`, PDF
|
|
112
|
+
byte confidentiality, authenticated tamper rejection and ML-DSA-65 changed-
|
|
113
|
+
payload rejection.
|
|
114
|
+
|
|
115
|
+
## 0.1.4 - 2026-10-18
|
|
116
|
+
|
|
117
|
+
- Add product-neutral DIDComm binary-attachment contracts for inline base64 and
|
|
118
|
+
protected `links + multihash` delivery without changing the canonical
|
|
119
|
+
Schema.org `DigitalDocument`/`MediaObject` business graph.
|
|
120
|
+
- Prove exact byte round-trip for a minimal synthetic PDF and reject empty or
|
|
121
|
+
incomplete attachments. No FHIR `DocumentReference` is introduced.
|
|
122
|
+
|
|
123
|
+
## 0.1.3 - 2026-10-17
|
|
124
|
+
|
|
125
|
+
- Export one product-neutral confidential-document fixture so gateways, SDKs
|
|
126
|
+
and portals reuse the same valid CIDv1 raw SHA3-384 attachment instead of
|
|
127
|
+
duplicating governed wire examples.
|
|
128
|
+
|
|
129
|
+
## 0.1.2 - 2026-10-17
|
|
130
|
+
|
|
131
|
+
- Add the canonical strict JSON:API graph for Schema.org `DigitalDocument`
|
|
132
|
+
manifests, component documents and their encoded `MediaObject` resources.
|
|
133
|
+
- Require complete CIDv1 raw SHA3-384 content identifiers under
|
|
134
|
+
`PropertyValue.propertyID` and `value`, with digest matching, unique resource
|
|
135
|
+
identifiers and no embedded document bytes.
|
|
136
|
+
- Normalize the historical `identifier.additionalType` input convention while
|
|
137
|
+
emitting only canonical `identifier.propertyID`, and reject conflicting
|
|
138
|
+
legacy and canonical profiles.
|
|
139
|
+
- Export reusable CID-to-digest validation for downstream confidential-document
|
|
140
|
+
boundaries.
|
|
141
|
+
|
|
142
|
+
## 0.1.1 - 2026-10-17
|
|
143
|
+
|
|
144
|
+
- Add the canonical credential-issuance request, lifecycle, receipt wire
|
|
145
|
+
conversion and synthetic fixture shared by SDK Core, SDK Node and ICA.
|
|
146
|
+
- Add a validated, product-neutral flat-claim projection for subject identity,
|
|
147
|
+
subject relationships and age-over evidence targets.
|
|
148
|
+
- Publish the canonical flat-claim name that binds an evidence target to its
|
|
149
|
+
verification check, so consumers do not invent product-local claim names.
|
|
150
|
+
|
|
151
|
+
### Added
|
|
152
|
+
|
|
153
|
+
- Product-neutral identity verification and attestation capabilities.
|
|
154
|
+
- Governed Schema.org-to-OpenID identity claim mappings.
|
|
155
|
+
- Conflict-safe conversion between flat claims and OIDC4IDA verified claims.
|
|
156
|
+
- JSON Schema 2020-12 contract for verified claims and evidence.
|
|
157
|
+
- Normative identity verification and attestation contract.
|
|
158
|
+
- Claim-to-proof bindings with multiple proof references and privacy-preserving
|
|
159
|
+
age-over predicates.
|
|
160
|
+
- Controller-governed workforce evidence statements requiring an authenticated
|
|
161
|
+
assignment, active group membership, reusable group authorization and exact
|
|
162
|
+
capability, without employee-specific Consent.
|
|
163
|
+
- Non-authorizing invitation proposals for optional department and groups, plus
|
|
164
|
+
Communication-required assignment-change notices.
|
|
165
|
+
- Employer attestations for employee identity and qualifications, organization
|
|
166
|
+
resolution by legal identifier and jurisdiction, and multiple issuer proofs
|
|
167
|
+
for one claim.
|
|
168
|
+
- Form-ready JSON Schema that excludes raw evidence documents and marks
|
|
169
|
+
server-derived actor and authorization fields read-only.
|
|
170
|
+
- Home-tenant-first Clearing House selection with explicit federation trust
|
|
171
|
+
for employer and index-provider sources.
|
|
172
|
+
- Explicit separation between EUDI PID data elements and OpenID Identity
|
|
173
|
+
Assurance claim names.
|
|
174
|
+
- Neutral professional-qualification contracts using Schema.org flat claims,
|
|
175
|
+
independent employer, issuer and professional-body proofs, derived trust
|
|
176
|
+
badges and privacy-minimized ledger anchors.
|
|
177
|
+
- Document the DC4EU education and medical credential catalogue, including
|
|
178
|
+
EUHED, Doctor ID, professional suitability, medical training, authority
|
|
179
|
+
separation and draft-schema interoperability risks.
|
|
180
|
+
- Extend digest-bound OpenID Identity Assurance attachment references with
|
|
181
|
+
negotiated SHA3-384 and validated CIDv1 raw multibase identifiers.
|
|
182
|
+
- Add product-neutral subject, relationship and configurable age-over evidence
|
|
183
|
+
targets while reserving `age_over_18` as the EUDI PID projection.
|
|
184
|
+
- Add canonical Schema.org `MediaObject` flat claims and projection for
|
|
185
|
+
protected evidence artifacts identified by CIDv1(raw, SHA3-384).
|
|
186
|
+
- Document the education administrative-assistant journey and its real local
|
|
187
|
+
user-interface acceptance requirements.
|
package/LICENSE
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
Copyright 2026 Antifraud Services Inc.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
1
|
+
Copyright 2026 Antifraud Services Inc.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|