antifraud-data-utils-ts 0.0.0-stage → 0.1.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 +48 -0
- package/LICENSE +13 -0
- package/README.md +155 -2
- package/dist/identity-assurance/claim-proofs.d.ts +62 -0
- package/dist/identity-assurance/claim-proofs.d.ts.map +1 -0
- package/dist/identity-assurance/claim-proofs.js +50 -0
- package/dist/identity-assurance/claim-proofs.js.map +1 -0
- package/dist/identity-assurance/converters.d.ts +10 -0
- package/dist/identity-assurance/converters.d.ts.map +1 -0
- package/dist/identity-assurance/converters.js +47 -0
- package/dist/identity-assurance/converters.js.map +1 -0
- package/dist/identity-assurance/identity-evidence.d.ts +124 -0
- package/dist/identity-assurance/identity-evidence.d.ts.map +1 -0
- package/dist/identity-assurance/identity-evidence.js +247 -0
- package/dist/identity-assurance/identity-evidence.js.map +1 -0
- package/dist/identity-assurance/index.d.ts +11 -0
- package/dist/identity-assurance/index.d.ts.map +1 -0
- package/dist/identity-assurance/index.js +11 -0
- package/dist/identity-assurance/index.js.map +1 -0
- package/dist/identity-assurance/professional-qualification.d.ts +150 -0
- package/dist/identity-assurance/professional-qualification.d.ts.map +1 -0
- package/dist/identity-assurance/professional-qualification.js +234 -0
- package/dist/identity-assurance/professional-qualification.js.map +1 -0
- package/dist/identity-assurance/schema-org-evidence.d.ts +30 -0
- package/dist/identity-assurance/schema-org-evidence.d.ts.map +1 -0
- package/dist/identity-assurance/schema-org-evidence.js +50 -0
- package/dist/identity-assurance/schema-org-evidence.js.map +1 -0
- package/dist/identity-assurance/schemas.d.ts +256 -0
- package/dist/identity-assurance/schemas.d.ts.map +1 -0
- package/dist/identity-assurance/schemas.js +163 -0
- package/dist/identity-assurance/schemas.js.map +1 -0
- package/dist/identity-assurance/tenant-trust.d.ts +29 -0
- package/dist/identity-assurance/tenant-trust.d.ts.map +1 -0
- package/dist/identity-assurance/tenant-trust.js +37 -0
- package/dist/identity-assurance/tenant-trust.js.map +1 -0
- package/dist/identity-assurance/types.d.ts +35 -0
- package/dist/identity-assurance/types.d.ts.map +1 -0
- package/dist/identity-assurance/types.js +2 -0
- package/dist/identity-assurance/types.js.map +1 -0
- package/dist/identity-assurance/vocabulary.d.ts +52 -0
- package/dist/identity-assurance/vocabulary.d.ts.map +1 -0
- package/dist/identity-assurance/vocabulary.js +48 -0
- package/dist/identity-assurance/vocabulary.js.map +1 -0
- package/dist/identity-assurance/workforce-assignment.d.ts +47 -0
- package/dist/identity-assurance/workforce-assignment.d.ts.map +1 -0
- package/dist/identity-assurance/workforce-assignment.js +52 -0
- package/dist/identity-assurance/workforce-assignment.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +38 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
- Add a validated, product-neutral flat-claim projection for subject identity,
|
|
8
|
+
subject relationships and age-over evidence targets.
|
|
9
|
+
- Publish the canonical flat-claim name that binds an evidence target to its
|
|
10
|
+
verification check, so consumers do not invent product-local claim names.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Product-neutral identity verification and attestation capabilities.
|
|
15
|
+
- Governed Schema.org-to-OpenID identity claim mappings.
|
|
16
|
+
- Conflict-safe conversion between flat claims and OIDC4IDA verified claims.
|
|
17
|
+
- JSON Schema 2020-12 contract for verified claims and evidence.
|
|
18
|
+
- Normative identity verification and attestation contract.
|
|
19
|
+
- Claim-to-proof bindings with multiple proof references and privacy-preserving
|
|
20
|
+
age-over predicates.
|
|
21
|
+
- Controller-governed workforce evidence statements requiring an authenticated
|
|
22
|
+
assignment, active group membership, reusable group authorization and exact
|
|
23
|
+
capability, without employee-specific Consent.
|
|
24
|
+
- Non-authorizing invitation proposals for optional department and groups, plus
|
|
25
|
+
Communication-required assignment-change notices.
|
|
26
|
+
- Employer attestations for employee identity and qualifications, organization
|
|
27
|
+
resolution by legal identifier and jurisdiction, and multiple issuer proofs
|
|
28
|
+
for one claim.
|
|
29
|
+
- Form-ready JSON Schema that excludes raw evidence documents and marks
|
|
30
|
+
server-derived actor and authorization fields read-only.
|
|
31
|
+
- Home-tenant-first Clearing House selection with explicit federation trust
|
|
32
|
+
for employer and index-provider sources.
|
|
33
|
+
- Explicit separation between EUDI PID data elements and OpenID Identity
|
|
34
|
+
Assurance claim names.
|
|
35
|
+
- Neutral professional-qualification contracts using Schema.org flat claims,
|
|
36
|
+
independent employer, issuer and professional-body proofs, derived trust
|
|
37
|
+
badges and privacy-minimized ledger anchors.
|
|
38
|
+
- Document the DC4EU education and medical credential catalogue, including
|
|
39
|
+
EUHED, Doctor ID, professional suitability, medical training, authority
|
|
40
|
+
separation and draft-schema interoperability risks.
|
|
41
|
+
- Extend digest-bound OpenID Identity Assurance attachment references with
|
|
42
|
+
negotiated SHA3-384 and validated CIDv1 raw multibase identifiers.
|
|
43
|
+
- Add product-neutral subject, relationship and configurable age-over evidence
|
|
44
|
+
targets while reserving `age_over_18` as the EUDI PID projection.
|
|
45
|
+
- Add canonical Schema.org `MediaObject` flat claims and projection for
|
|
46
|
+
protected evidence artifacts identified by CIDv1(raw, SHA3-384).
|
|
47
|
+
- Document the education administrative-assistant journey and its real local
|
|
48
|
+
user-interface acceptance requirements.
|
package/LICENSE
ADDED
|
@@ -0,0 +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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,156 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Antifraud Data Utilities
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Product-neutral TypeScript contracts for identity verification, evidence and
|
|
4
|
+
attestations.
|
|
5
|
+
|
|
6
|
+
The central trust rule is provenance without authority substitution: every
|
|
7
|
+
identity or qualification claim keeps who asserted it, under which authority
|
|
8
|
+
and jurisdiction, from which evidence, at what time, with which proof and
|
|
9
|
+
current status. Employer, university, licensing authority, verifier and subject
|
|
10
|
+
are separate actors even when they support the same claim.
|
|
11
|
+
|
|
12
|
+
The package keeps three concerns separate:
|
|
13
|
+
|
|
14
|
+
1. Canonical business data uses governed Schema.org flat claims.
|
|
15
|
+
2. OpenID Identity Assurance `verified_claims` is an exchange projection.
|
|
16
|
+
3. An attestation records that an authorized actor assessed a subject, claim
|
|
17
|
+
or relationship; it never silently rewrites the assessed source data.
|
|
18
|
+
|
|
19
|
+
## Current API
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
ClearingHouseTenantCapability,
|
|
24
|
+
ClaimProofFormat,
|
|
25
|
+
EudiPidClaim,
|
|
26
|
+
IdentityAttestationCapability,
|
|
27
|
+
IdentityEvidenceType,
|
|
28
|
+
QualificationAuthorityKind,
|
|
29
|
+
QualificationVerificationStatus,
|
|
30
|
+
SchemaOrgIdentityClaim,
|
|
31
|
+
SchemaOrgQualificationClaim,
|
|
32
|
+
buildQualificationLedgerAnchor,
|
|
33
|
+
defineProfessionalQualification,
|
|
34
|
+
defineAuthorizedWorkforceIdentityEvidenceStatement,
|
|
35
|
+
defineClaimProofBinding,
|
|
36
|
+
importOidc4IdaToSchemaOrgFlatClaims,
|
|
37
|
+
projectSchemaOrgFlatClaimsToOidc4Ida,
|
|
38
|
+
selectAuthoritativeTenantEndpoint,
|
|
39
|
+
toSchemaOrgQualificationFlatClaims,
|
|
40
|
+
verifiedClaimsJsonSchema,
|
|
41
|
+
workforceIdentityEvidenceStatementJsonSchema,
|
|
42
|
+
} from 'antifraud-data-utils-ts/identity-assurance'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`ClaimProofBinding` connects one canonical claim or derived predicate to one or
|
|
46
|
+
more credential-level proof references. For example, an `age-over` predicate
|
|
47
|
+
can disclose `age_over_18=true` without disclosing the source birth date. An
|
|
48
|
+
SD-JWT VC signs disclosure digests at credential level; the package does not
|
|
49
|
+
misrepresent that mechanism as an independent signature embedded in every
|
|
50
|
+
flat claim.
|
|
51
|
+
|
|
52
|
+
The initial governed projection covers the registered OpenID identity claims
|
|
53
|
+
that have direct Schema.org equivalents. An unknown mapping fails on export.
|
|
54
|
+
Import reports unsupported claims and conflicting existing values instead of
|
|
55
|
+
discarding or overwriting them.
|
|
56
|
+
|
|
57
|
+
An authorized workforce member may record identity evidence only when trusted
|
|
58
|
+
server context supplies the active employee assignment, active membership in a
|
|
59
|
+
controller-governed work group, that group's reusable authorization and
|
|
60
|
+
`identity.evidence.record`. The employee has no separate Consent. A subject or
|
|
61
|
+
lawful representative authorization remains a distinct optional gate when the
|
|
62
|
+
use case requires it. The form collects the evidence observation; it does not
|
|
63
|
+
select the actor, grant permission or sign a credential. Raw identity documents
|
|
64
|
+
are excluded from the statement. Attachments are referenced by digest.
|
|
65
|
+
Schema.org `MediaObject` flat claims describe a scanned artifact and bind its
|
|
66
|
+
protected URL, media type and size to a CIDv1(raw, SHA3-384) identifier encoded
|
|
67
|
+
with multibase base58btc. OpenID Identity Assurance attachment metadata is a
|
|
68
|
+
projection of that same artifact; it is not the canonical store.
|
|
69
|
+
|
|
70
|
+
A controller or authorized human-resources employee may use the same governed
|
|
71
|
+
flow to record evidence about an employee's identity or qualifications. When a
|
|
72
|
+
qualification refers to a university or another awarding organization, that
|
|
73
|
+
organization must be resolved by its legal identifier and jurisdiction, not by
|
|
74
|
+
display name alone. If no credential from the awarding organization exists,
|
|
75
|
+
the result is an employer attestation about evidence the employer reviewed; it
|
|
76
|
+
must not be represented as a university-issued credential. The employer's
|
|
77
|
+
signature is its own proof. A later university credential or confirmation is
|
|
78
|
+
added as a separate proof for the same claim instead of replacing the employer
|
|
79
|
+
proof.
|
|
80
|
+
|
|
81
|
+
This separation is essential in health and other regulated sectors. Evidence
|
|
82
|
+
of a qualification is not by itself an active professional licence, an active
|
|
83
|
+
employment assignment, or authority to perform an operation. A downstream
|
|
84
|
+
policy evaluates each applicable status independently and fails closed on
|
|
85
|
+
suspension, revocation, expiry, or an authority mismatch.
|
|
86
|
+
|
|
87
|
+
An invitation may propose an optional department and zero or more groups. The
|
|
88
|
+
proposal grants nothing before employee activation. Invitation acceptance and
|
|
89
|
+
later department or group changes require a Communication notice, while the
|
|
90
|
+
shared group authorization remains unchanged for the other active members.
|
|
91
|
+
|
|
92
|
+
The home tenant is the initial trust root. An employer or index-provider tenant
|
|
93
|
+
publishes its own authoritative endpoint. A different source tenant is usable
|
|
94
|
+
only after the home tenant explicitly trusts it and the source advertises the
|
|
95
|
+
required capability. The source tenant reads its stored record before issuing
|
|
96
|
+
an attestation; caller-authored claims are never signed as authoritative data.
|
|
97
|
+
|
|
98
|
+
Professional qualifications use product-neutral Schema.org
|
|
99
|
+
`EducationalOccupationalCredential` flat claims. Employer, awarding body and
|
|
100
|
+
professional-body proofs remain independent. The package does not expose a
|
|
101
|
+
health-specific model or a native FHIR projection. Health applications may
|
|
102
|
+
project this neutral contract to their FHIR version in their own data-utility
|
|
103
|
+
layer. `buildQualificationLedgerAnchor` deliberately excludes personal claims,
|
|
104
|
+
qualification values, legal identifiers, credentials, documents and
|
|
105
|
+
signatures; a shared ledger receives only opaque links, a content hash and
|
|
106
|
+
lifecycle metadata.
|
|
107
|
+
|
|
108
|
+
EUDI Person Identification Data and OpenID Identity Assurance are related but
|
|
109
|
+
different contracts. For example, EUDI PID defines `birth_date` and
|
|
110
|
+
`age_over_18`, while the OpenID `verified_claims.claims` projection uses the
|
|
111
|
+
registered `birthdate` claim. OpenID4VP presents credentials and OpenID4VCI
|
|
112
|
+
issues them; OpenID Identity Assurance describes verified claims and evidence.
|
|
113
|
+
|
|
114
|
+
## Repository boundary
|
|
115
|
+
|
|
116
|
+
This package contains pure types, vocabulary, JSON Schemas, converters,
|
|
117
|
+
validators and synthetic fixtures. It contains no user interface, role policy,
|
|
118
|
+
HTTP client, persistence adapter, signing key, credential issuer, ledger
|
|
119
|
+
connection or deployment configuration.
|
|
120
|
+
|
|
121
|
+
See [Identity verification and attestation contract](docs/IDENTITY_VERIFICATION_AND_ATTESTATION.md)
|
|
122
|
+
for the normative model and downstream acceptance requirements.
|
|
123
|
+
|
|
124
|
+
See [DC4EU education and medical credential reference](docs/DC4EU_EDUCATION_AND_MEDICAL_CREDENTIALS.md)
|
|
125
|
+
for the upstream European Higher Education Diploma, Doctor ID, professional
|
|
126
|
+
suitability and medical-training credential boundaries and their current draft
|
|
127
|
+
status.
|
|
128
|
+
|
|
129
|
+
See [Education administrative assistant identity-evidence journey](docs/EDUCATION_ADMINISTRATIVE_ASSISTANT_IDENTITY_EVIDENCE.md)
|
|
130
|
+
for the controller-governed employee flow, age predicates and the local
|
|
131
|
+
user-interface acceptance boundary.
|
|
132
|
+
|
|
133
|
+
## Standards
|
|
134
|
+
|
|
135
|
+
- [OpenID Identity Assurance Schema Definition 1.0](https://openid.net/specs/openid-ida-verified-claims-1_0-final.html)
|
|
136
|
+
- [OpenID Connect for Identity Assurance 1.0](https://openid.net/specs/openid-connect-4-identity-assurance-1_0-final.html)
|
|
137
|
+
- [Schema.org Person](https://schema.org/Person)
|
|
138
|
+
- [Schema.org Action](https://schema.org/Action)
|
|
139
|
+
- [Schema.org AssessAction](https://schema.org/AssessAction)
|
|
140
|
+
- [Schema.org EducationalOccupationalCredential](https://schema.org/EducationalOccupationalCredential)
|
|
141
|
+
- [DC4EU EUDI Wallet large-scale pilot](https://ec.europa.eu/digital-building-blocks/sites/spaces/EUDIGITALIDENTITYWALLET/pages/920064520/LSP-DC4EU)
|
|
142
|
+
|
|
143
|
+
## Development
|
|
144
|
+
|
|
145
|
+
Node.js 24 is required.
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
npm ci
|
|
149
|
+
npm test
|
|
150
|
+
npm run typecheck
|
|
151
|
+
npm pack --dry-run
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
Apache-2.0.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { SchemaOrgIdentityClaim, type SchemaOrgIdentityClaimValue } from './vocabulary.js';
|
|
2
|
+
export declare const ClaimProofFormat: Readonly<{
|
|
3
|
+
readonly IetfSdJwtVc: "ietf-sd-jwt-vc";
|
|
4
|
+
readonly IsoMdoc: "iso-18013-5-mdoc";
|
|
5
|
+
readonly W3cVcDataIntegrity: "w3c-vc-data-integrity";
|
|
6
|
+
readonly W3cVcJoseCose: "w3c-vc-jose-cose";
|
|
7
|
+
readonly OidcVerifiedClaims: "oidc-verified-claims";
|
|
8
|
+
readonly ExternalSignedEvidence: "external-signed-evidence";
|
|
9
|
+
}>;
|
|
10
|
+
export type ClaimProofFormatValue = typeof ClaimProofFormat[keyof typeof ClaimProofFormat];
|
|
11
|
+
export declare const ClaimCryptographicBinding: Readonly<{
|
|
12
|
+
readonly IssuerSignatureWithDisclosureDigests: "issuer-signature-with-disclosure-digests";
|
|
13
|
+
readonly IssuerSignedDataElement: "issuer-signed-data-element";
|
|
14
|
+
readonly CredentialProof: "credential-proof";
|
|
15
|
+
readonly ExternalVerificationResult: "external-verification-result";
|
|
16
|
+
readonly SignedEvidence: "signed-evidence";
|
|
17
|
+
}>;
|
|
18
|
+
export type ClaimCryptographicBindingValue = typeof ClaimCryptographicBinding[keyof typeof ClaimCryptographicBinding];
|
|
19
|
+
export declare const ClaimProofStatus: Readonly<{
|
|
20
|
+
readonly Active: "active";
|
|
21
|
+
readonly Suspended: "suspended";
|
|
22
|
+
readonly Revoked: "revoked";
|
|
23
|
+
readonly Expired: "expired";
|
|
24
|
+
}>;
|
|
25
|
+
export type ClaimProofStatusValue = typeof ClaimProofStatus[keyof typeof ClaimProofStatus];
|
|
26
|
+
export declare const IdentityPredicateKind: Readonly<{
|
|
27
|
+
readonly AgeOver: "age-over";
|
|
28
|
+
}>;
|
|
29
|
+
export type ClaimProofReference = Readonly<{
|
|
30
|
+
id: string;
|
|
31
|
+
format: ClaimProofFormatValue;
|
|
32
|
+
issuer: string;
|
|
33
|
+
credentialReference: string;
|
|
34
|
+
cryptographicBinding: ClaimCryptographicBindingValue;
|
|
35
|
+
status: ClaimProofStatusValue;
|
|
36
|
+
disclosureDigest?: string;
|
|
37
|
+
verificationMethod?: string;
|
|
38
|
+
issuedAt?: string;
|
|
39
|
+
expiresAt?: string;
|
|
40
|
+
}>;
|
|
41
|
+
export type DirectClaimProofTarget = Readonly<{
|
|
42
|
+
kind: 'claim';
|
|
43
|
+
claimPath: SchemaOrgIdentityClaimValue;
|
|
44
|
+
}>;
|
|
45
|
+
export type AgeOverPredicateProofTarget = Readonly<{
|
|
46
|
+
kind: 'predicate';
|
|
47
|
+
predicate: typeof IdentityPredicateKind.AgeOver;
|
|
48
|
+
sourceClaimPath: typeof SchemaOrgIdentityClaim.PersonBirthDate;
|
|
49
|
+
threshold: number;
|
|
50
|
+
result: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
export type ClaimProofTarget = DirectClaimProofTarget | AgeOverPredicateProofTarget;
|
|
53
|
+
export type ClaimProofBinding = Readonly<{
|
|
54
|
+
target: ClaimProofTarget;
|
|
55
|
+
proofs: readonly [ClaimProofReference, ...ClaimProofReference[]];
|
|
56
|
+
}>;
|
|
57
|
+
export declare function eudiPidAgeOverClaimName(threshold: number): `age_over_${number}`;
|
|
58
|
+
export declare function defineClaimProofBinding(input: Readonly<{
|
|
59
|
+
target: ClaimProofTarget;
|
|
60
|
+
proofs: readonly ClaimProofReference[];
|
|
61
|
+
}>): ClaimProofBinding;
|
|
62
|
+
//# sourceMappingURL=claim-proofs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claim-proofs.d.ts","sourceRoot":"","sources":["../../src/identity-assurance/claim-proofs.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACtB,KAAK,2BAA2B,EACjC,MAAM,iBAAiB,CAAA;AAExB,eAAO,MAAM,gBAAgB;;;;;;;EAOlB,CAAA;AAEX,MAAM,MAAM,qBAAqB,GAC/B,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA;AAExD,eAAO,MAAM,yBAAyB;;;;;;EAM3B,CAAA;AAEX,MAAM,MAAM,8BAA8B,GACxC,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAA;AAE1E,eAAO,MAAM,gBAAgB;;;;;EAKlB,CAAA;AAEX,MAAM,MAAM,qBAAqB,GAC/B,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAA;AAExD,eAAO,MAAM,qBAAqB;;EAEvB,CAAA;AAEX,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,qBAAqB,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,mBAAmB,EAAE,MAAM,CAAA;IAC3B,oBAAoB,EAAE,8BAA8B,CAAA;IACpD,MAAM,EAAE,qBAAqB,CAAA;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,2BAA2B,CAAA;CACvC,CAAC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,OAAO,qBAAqB,CAAC,OAAO,CAAA;IAC/C,eAAe,EAAE,OAAO,sBAAsB,CAAC,eAAe,CAAA;IAC9D,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,2BAA2B,CAAA;AAEnF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACvC,MAAM,EAAE,gBAAgB,CAAA;IACxB,MAAM,EAAE,SAAS,CAAC,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAAC,CAAA;CACjE,CAAC,CAAA;AAQF,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,YAAY,MAAM,EAAE,CAM/E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,QAAQ,CAAC;IACtD,MAAM,EAAE,gBAAgB,CAAA;IACxB,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAA;CACvC,CAAC,GAAG,iBAAiB,CAWrB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EudiPidClaim, SchemaOrgIdentityClaim, } from './vocabulary.js';
|
|
2
|
+
export const ClaimProofFormat = Object.freeze({
|
|
3
|
+
IetfSdJwtVc: 'ietf-sd-jwt-vc',
|
|
4
|
+
IsoMdoc: 'iso-18013-5-mdoc',
|
|
5
|
+
W3cVcDataIntegrity: 'w3c-vc-data-integrity',
|
|
6
|
+
W3cVcJoseCose: 'w3c-vc-jose-cose',
|
|
7
|
+
OidcVerifiedClaims: 'oidc-verified-claims',
|
|
8
|
+
ExternalSignedEvidence: 'external-signed-evidence',
|
|
9
|
+
});
|
|
10
|
+
export const ClaimCryptographicBinding = Object.freeze({
|
|
11
|
+
IssuerSignatureWithDisclosureDigests: 'issuer-signature-with-disclosure-digests',
|
|
12
|
+
IssuerSignedDataElement: 'issuer-signed-data-element',
|
|
13
|
+
CredentialProof: 'credential-proof',
|
|
14
|
+
ExternalVerificationResult: 'external-verification-result',
|
|
15
|
+
SignedEvidence: 'signed-evidence',
|
|
16
|
+
});
|
|
17
|
+
export const ClaimProofStatus = Object.freeze({
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Suspended: 'suspended',
|
|
20
|
+
Revoked: 'revoked',
|
|
21
|
+
Expired: 'expired',
|
|
22
|
+
});
|
|
23
|
+
export const IdentityPredicateKind = Object.freeze({
|
|
24
|
+
AgeOver: 'age-over',
|
|
25
|
+
});
|
|
26
|
+
function assertAgeThreshold(threshold) {
|
|
27
|
+
if (!Number.isInteger(threshold) || threshold < 1 || threshold > 150) {
|
|
28
|
+
throw new TypeError('Age-over threshold must be an integer between 1 and 150');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function eudiPidAgeOverClaimName(threshold) {
|
|
32
|
+
assertAgeThreshold(threshold);
|
|
33
|
+
if (threshold !== 18) {
|
|
34
|
+
throw new TypeError('The EUDI PID profile only standardizes age_over_18');
|
|
35
|
+
}
|
|
36
|
+
return EudiPidClaim.AgeOver18;
|
|
37
|
+
}
|
|
38
|
+
export function defineClaimProofBinding(input) {
|
|
39
|
+
if (input.proofs.length === 0) {
|
|
40
|
+
throw new TypeError('A claim or predicate must have at least one proof');
|
|
41
|
+
}
|
|
42
|
+
if (input.target.kind === 'predicate') {
|
|
43
|
+
assertAgeThreshold(input.target.threshold);
|
|
44
|
+
}
|
|
45
|
+
return Object.freeze({
|
|
46
|
+
target: Object.freeze({ ...input.target }),
|
|
47
|
+
proofs: Object.freeze([...input.proofs]),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=claim-proofs.js.map
|
|
@@ -0,0 +1 @@
|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,KAAK,EAAE,EAAE,CAAC;QACrB,MAAM,IAAI,SAAS,CAAC,oDAAoD,CAAC,CAAA;IAC3E,CAAC;IACD,OAAO,YAAY,CAAC,SAAS,CAAA;AAC/B,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,KAGtC;IACA,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,SAAS,CAAC,mDAAmD,CAAC,CAAA;IAC1E,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACtC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5C,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC1C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAA2C;KACnF,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FlatClaims, ImportedIdentityAssurance, Oidc4IdaVerification, Oidc4IdaVerifiedClaims } from './types.js';
|
|
2
|
+
export declare function projectSchemaOrgFlatClaimsToOidc4Ida(input: Readonly<{
|
|
3
|
+
claims: FlatClaims;
|
|
4
|
+
verification: Oidc4IdaVerification;
|
|
5
|
+
}>): Oidc4IdaVerifiedClaims;
|
|
6
|
+
export declare function importOidc4IdaToSchemaOrgFlatClaims(input: Readonly<{
|
|
7
|
+
verifiedClaims: Oidc4IdaVerifiedClaims;
|
|
8
|
+
existingClaims?: FlatClaims;
|
|
9
|
+
}>): ImportedIdentityAssurance;
|
|
10
|
+
//# sourceMappingURL=converters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converters.d.ts","sourceRoot":"","sources":["../../src/identity-assurance/converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,yBAAyB,EAEzB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAenB,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,QAAQ,CAAC;IACnE,MAAM,EAAE,UAAU,CAAA;IAClB,YAAY,EAAE,oBAAoB,CAAA;CACnC,CAAC,GAAG,sBAAsB,CAa1B;AAED,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,QAAQ,CAAC;IAClE,cAAc,EAAE,sBAAsB,CAAA;IACtC,cAAc,CAAC,EAAE,UAAU,CAAA;CAC5B,CAAC,GAAG,yBAAyB,CA4B7B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { SchemaOrgToOidcIdentityClaim, } from './vocabulary.js';
|
|
2
|
+
const OidcToSchemaOrgIdentityClaim = Object.freeze(Object.fromEntries(Object.entries(SchemaOrgToOidcIdentityClaim).map(([schemaOrgClaim, oidcClaim]) => [oidcClaim, schemaOrgClaim])));
|
|
3
|
+
function valuesEqual(left, right) {
|
|
4
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
5
|
+
}
|
|
6
|
+
export function projectSchemaOrgFlatClaimsToOidc4Ida(input) {
|
|
7
|
+
const claims = {};
|
|
8
|
+
for (const [claim, value] of Object.entries(input.claims)) {
|
|
9
|
+
const oidcClaim = SchemaOrgToOidcIdentityClaim[claim];
|
|
10
|
+
if (!oidcClaim) {
|
|
11
|
+
throw new TypeError(`No governed OIDC4IDA mapping exists for Schema.org flat claim: ${claim}`);
|
|
12
|
+
}
|
|
13
|
+
claims[oidcClaim] = value;
|
|
14
|
+
}
|
|
15
|
+
return Object.freeze({
|
|
16
|
+
claims: Object.freeze(claims),
|
|
17
|
+
verification: input.verification,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export function importOidc4IdaToSchemaOrgFlatClaims(input) {
|
|
21
|
+
const existingClaims = input.existingClaims ?? {};
|
|
22
|
+
const claims = {};
|
|
23
|
+
const conflicts = [];
|
|
24
|
+
const unmappedClaims = [];
|
|
25
|
+
for (const [oidcClaim, importedValue] of Object.entries(input.verifiedClaims.claims)) {
|
|
26
|
+
const schemaOrgClaim = OidcToSchemaOrgIdentityClaim[oidcClaim];
|
|
27
|
+
if (!schemaOrgClaim) {
|
|
28
|
+
unmappedClaims.push(oidcClaim);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const existingValue = existingClaims[schemaOrgClaim];
|
|
32
|
+
if (existingValue !== undefined) {
|
|
33
|
+
if (!valuesEqual(existingValue, importedValue)) {
|
|
34
|
+
conflicts.push({ claim: schemaOrgClaim, existingValue, importedValue });
|
|
35
|
+
}
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
claims[schemaOrgClaim] = importedValue;
|
|
39
|
+
}
|
|
40
|
+
return Object.freeze({
|
|
41
|
+
claims: Object.freeze(claims),
|
|
42
|
+
verification: input.verifiedClaims.verification,
|
|
43
|
+
conflicts: Object.freeze(conflicts),
|
|
44
|
+
unmappedClaims: Object.freeze(unmappedClaims),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=converters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converters.js","sourceRoot":"","sources":["../../src/identity-assurance/converters.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,4BAA4B,GAG7B,MAAM,iBAAiB,CAAA;AAExB,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CACnE,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CACtC,CAAC,CAAA;AAE3E,SAAS,WAAW,CAAC,IAAe,EAAE,KAAgB;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CA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CAAC;YAChC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE,CAAC;gBAC/C,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAA;YACzE,CAAC;YACD,SAAQ;QACV,CAAC;QACD,MAAM,CAAC,cAAc,CAAC,GAAG,aAAa,CAAA;IACxC,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY;QAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;QACnC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;KAC9C,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { IdentityAttestationCapability, SchemaOrgIdentityClaim, type IdentityAttestationCapabilityValue } from './vocabulary.js';
|
|
2
|
+
import { IdentityPredicateKind } from './claim-proofs.js';
|
|
3
|
+
/** Evidence types registered by OpenID Identity Assurance. */
|
|
4
|
+
export declare const IdentityEvidenceType: Readonly<{
|
|
5
|
+
readonly Document: "document";
|
|
6
|
+
readonly ElectronicRecord: "electronic_record";
|
|
7
|
+
readonly Vouch: "vouch";
|
|
8
|
+
readonly ElectronicSignature: "electronic_signature";
|
|
9
|
+
}>;
|
|
10
|
+
export type IdentityEvidenceTypeValue = typeof IdentityEvidenceType[keyof typeof IdentityEvidenceType];
|
|
11
|
+
export type IdentityEvidenceAttachmentReference = Readonly<{
|
|
12
|
+
id: string;
|
|
13
|
+
mediaType?: string;
|
|
14
|
+
contentUrl?: string;
|
|
15
|
+
contentSize?: number;
|
|
16
|
+
digestAlgorithm: 'sha-256' | 'sha-384' | 'sha-512' | 'sha3-384';
|
|
17
|
+
digest: string;
|
|
18
|
+
contentId?: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Validates CIDv1(raw, SHA3-384) encoded with multibase base58btc. */
|
|
21
|
+
export declare function assertSha3_384EvidenceContentId(contentId: string): void;
|
|
22
|
+
export type IdentityEvidenceCheck = Readonly<{
|
|
23
|
+
checkMethod: string;
|
|
24
|
+
organizationReference?: string;
|
|
25
|
+
checkId: string;
|
|
26
|
+
checkedAt?: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type IdentityEvidenceInput = Readonly<{
|
|
29
|
+
id: string;
|
|
30
|
+
type: IdentityEvidenceTypeValue;
|
|
31
|
+
observedAt: string;
|
|
32
|
+
checks: readonly [IdentityEvidenceCheck, ...IdentityEvidenceCheck[]];
|
|
33
|
+
attachments?: readonly IdentityEvidenceAttachmentReference[];
|
|
34
|
+
}>;
|
|
35
|
+
export type IdentityEvidenceTarget = Readonly<{
|
|
36
|
+
kind: 'subject';
|
|
37
|
+
}> | Readonly<{
|
|
38
|
+
kind: 'claim';
|
|
39
|
+
claimPath: string;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
kind: 'relationship';
|
|
42
|
+
relationshipType: string;
|
|
43
|
+
relatedSubjectReference: string;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
kind: 'predicate';
|
|
46
|
+
predicate: typeof IdentityPredicateKind.AgeOver;
|
|
47
|
+
sourceSubjectReference: string;
|
|
48
|
+
sourceClaimPath: typeof SchemaOrgIdentityClaim.PersonBirthDate;
|
|
49
|
+
threshold: number;
|
|
50
|
+
result: boolean;
|
|
51
|
+
}>;
|
|
52
|
+
export declare const IdentityEvidenceTargetClaim: Readonly<{
|
|
53
|
+
readonly SubjectReference: "identity.evidence.subjectReference";
|
|
54
|
+
readonly Kind: "identity.evidence.target.kind";
|
|
55
|
+
readonly ClaimPath: "identity.evidence.target.claimPath";
|
|
56
|
+
readonly RelationshipType: "identity.evidence.target.relationshipType";
|
|
57
|
+
readonly RelatedSubjectReference: "identity.evidence.target.relatedSubjectReference";
|
|
58
|
+
readonly Predicate: "identity.evidence.target.predicate";
|
|
59
|
+
readonly SourceSubjectReference: "identity.evidence.target.sourceSubjectReference";
|
|
60
|
+
readonly SourceClaimPath: "identity.evidence.target.sourceClaimPath";
|
|
61
|
+
readonly Threshold: "identity.evidence.target.threshold";
|
|
62
|
+
readonly Result: "identity.evidence.target.result";
|
|
63
|
+
}>;
|
|
64
|
+
export declare const IdentityEvidenceCheckClaim: Readonly<{
|
|
65
|
+
readonly Reference: "identity.evidence.checkReference";
|
|
66
|
+
}>;
|
|
67
|
+
export type AuthenticatedWorkforceEvidenceContext = Readonly<{
|
|
68
|
+
actorReference: string;
|
|
69
|
+
assignmentReference: string;
|
|
70
|
+
organizationReference: string;
|
|
71
|
+
groupMembership: Readonly<{
|
|
72
|
+
groupReference: string;
|
|
73
|
+
status: 'active' | 'inactive';
|
|
74
|
+
}>;
|
|
75
|
+
groupAuthorization: Readonly<{
|
|
76
|
+
authorizationReference: string;
|
|
77
|
+
groupReference: string;
|
|
78
|
+
controllerReference: string;
|
|
79
|
+
status: 'active' | 'inactive';
|
|
80
|
+
capabilities: readonly IdentityAttestationCapabilityValue[];
|
|
81
|
+
}>;
|
|
82
|
+
subjectAuthorizationReference?: string;
|
|
83
|
+
}>;
|
|
84
|
+
export type WorkforceIdentityEvidenceStatementRequest = Readonly<{
|
|
85
|
+
operationId: string;
|
|
86
|
+
subjectReference: string;
|
|
87
|
+
targets: readonly [IdentityEvidenceTarget, ...IdentityEvidenceTarget[]];
|
|
88
|
+
evidence: readonly [IdentityEvidenceInput, ...IdentityEvidenceInput[]];
|
|
89
|
+
}>;
|
|
90
|
+
export type WorkforceIdentityEvidenceStatement = Readonly<{
|
|
91
|
+
operationId: string;
|
|
92
|
+
subjectReference: string;
|
|
93
|
+
capability: typeof IdentityAttestationCapability.RecordEvidence;
|
|
94
|
+
createdBy: Readonly<{
|
|
95
|
+
actorReference: string;
|
|
96
|
+
assignmentReference: string;
|
|
97
|
+
organizationReference: string;
|
|
98
|
+
}>;
|
|
99
|
+
authorization: Readonly<{
|
|
100
|
+
groupReference: string;
|
|
101
|
+
groupAuthorizationReference: string;
|
|
102
|
+
controllerReference: string;
|
|
103
|
+
subjectAuthorizationReference?: string;
|
|
104
|
+
}>;
|
|
105
|
+
targets: readonly IdentityEvidenceTarget[];
|
|
106
|
+
evidence: readonly IdentityEvidenceInput[];
|
|
107
|
+
}>;
|
|
108
|
+
/** Converts one validated target into strings suitable for claims-first indexing. */
|
|
109
|
+
export declare function toIdentityEvidenceTargetFlatClaims(input: Readonly<{
|
|
110
|
+
subjectReference: string;
|
|
111
|
+
target: IdentityEvidenceTarget;
|
|
112
|
+
}>): Readonly<Record<string, string>>;
|
|
113
|
+
/**
|
|
114
|
+
* Creates an unsigned, governed evidence statement for an authorized workforce
|
|
115
|
+
* member. The actor, assignment, organization, active group membership and
|
|
116
|
+
* reusable group authorization always come from trusted server context. A
|
|
117
|
+
* credential provider may later read this statement back and issue a signed
|
|
118
|
+
* attestation. No employee-specific Consent is created.
|
|
119
|
+
*/
|
|
120
|
+
export declare function defineAuthorizedWorkforceIdentityEvidenceStatement(input: Readonly<{
|
|
121
|
+
context: AuthenticatedWorkforceEvidenceContext;
|
|
122
|
+
request: WorkforceIdentityEvidenceStatementRequest;
|
|
123
|
+
}>): WorkforceIdentityEvidenceStatement;
|
|
124
|
+
//# sourceMappingURL=identity-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-evidence.d.ts","sourceRoot":"","sources":["../../src/identity-assurance/identity-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,KAAK,kCAAkC,EACxC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB;;;;;EAKtB,CAAA;AAEX,MAAM,MAAM,yBAAyB,GACnC,OAAO,oBAAoB,CAAC,MAAM,OA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