antifraud-data-utils-ts 0.1.9 → 0.1.10

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 CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.1.10 - 2026-10-21
8
+
9
+ - Add the Schema.org-first public organization service catalog: explicit
10
+ Organization, department, Place and Service publication; flat claims; a DCAT
11
+ discovery descriptor; and fail-closed cache refresh, withdrawal and rollback
12
+ decisions. FHIR projection and scheduling remain outside this contract.
13
+
7
14
  ## 0.1.9 - 2026-10-19
8
15
 
9
16
  - Add the governed qualification-classification reference so portals and BFFs
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Antifraud Data Utilities
2
2
 
3
- Product-neutral TypeScript contracts for identity verification, evidence and
4
- attestations.
3
+ Product-neutral TypeScript contracts for identity verification, evidence,
4
+ attestations and public organization-service discovery.
5
5
 
6
6
  The central trust rule is provenance without authority substitution: every
7
7
  identity or qualification claim keeps who asserted it, under which authority
@@ -16,6 +16,18 @@ The package keeps three concerns separate:
16
16
  3. An attestation records that an authorized actor assessed a subject, claim
17
17
  or relationship; it never silently rewrites the assessed source data.
18
18
 
19
+ The separate `organization-service-catalog` subpath defines a Schema.org-first
20
+ public graph for the legal Organization, department Organizations, Places and
21
+ client Services. Publication is explicit at every level. A public Service must
22
+ reference at least one public Place in its own department; private and unknown
23
+ relationships fail closed. Its DCAT descriptor supports bounded marketplace
24
+ cache refresh, withdrawal and rollback detection without becoming proof that
25
+ the publisher is trusted.
26
+
27
+ Schedules, Slots, Appointments, subjects and research studies do not belong in
28
+ that dataset. The builder emits no FHIR resources. A later sector adapter may
29
+ translate the canonical Schema.org graph when required.
30
+
19
31
  It also exports the reviewed, stateless shared cryptography engine through
20
32
  `antifraud-data-utils-ts/cryptography`. The engine preserves the existing
21
33
  `gdc-common-utils-ts` confidential envelope: a fresh AES-256-GCM content key is
@@ -49,6 +61,13 @@ real Fabric transaction or turns login and review into signatures.
49
61
 
50
62
  ## Current API
51
63
 
64
+ ```ts
65
+ import {
66
+ buildPublicOrganizationServiceCatalog,
67
+ evaluateOrganizationCatalogCache,
68
+ } from 'antifraud-data-utils-ts/organization-service-catalog'
69
+ ```
70
+
52
71
  ```ts
53
72
  import {
54
73
  ClearingHouseTenantCapability,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './cryptography/index.js';
2
2
  export * from './identity-assurance/index.js';
3
+ export * from './organization-service-catalog.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './cryptography/index.js';
2
2
  export * from './identity-assurance/index.js';
3
+ export * from './organization-service-catalog.js';
3
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,134 @@
1
+ export declare const SchemaOrgOrganizationClaim: Readonly<{
2
+ readonly Identifier: "org.schema.Organization.identifier.value";
3
+ readonly Name: "org.schema.Organization.name";
4
+ readonly ParentOrganization: "org.schema.Organization.parentOrganization.identifier";
5
+ }>;
6
+ export declare const SchemaOrgPlaceClaim: Readonly<{
7
+ readonly Identifier: "org.schema.Place.identifier.value";
8
+ readonly Name: "org.schema.Place.name";
9
+ readonly Department: "org.schema.Place.department.identifier";
10
+ readonly ContainedInPlace: "org.schema.Place.containedInPlace.identifier";
11
+ readonly Latitude: "org.schema.Place.geo.latitude";
12
+ readonly Longitude: "org.schema.Place.geo.longitude";
13
+ readonly Elevation: "org.schema.Place.geo.elevation";
14
+ readonly AddressCountry: "org.schema.Place.address.addressCountry";
15
+ readonly AddressRegion: "org.schema.Place.address.addressRegion";
16
+ readonly AddressLocality: "org.schema.Place.address.addressLocality";
17
+ readonly PostalCode: "org.schema.Place.address.postalCode";
18
+ readonly StreetAddress: "org.schema.Place.address.streetAddress";
19
+ }>;
20
+ export declare const SchemaOrgServiceClaim: Readonly<{
21
+ readonly Identifier: "org.schema.Service.identifier.value";
22
+ readonly Name: "org.schema.Service.name";
23
+ readonly Description: "org.schema.Service.description";
24
+ readonly ServiceType: "org.schema.Service.serviceType";
25
+ readonly Provider: "org.schema.Service.provider.identifier";
26
+ readonly Department: "org.schema.Service.department.identifier";
27
+ readonly AvailableAtOrFrom: "org.schema.Service.availableAtOrFrom.identifier";
28
+ }>;
29
+ export declare const DcatDatasetClaim: Readonly<{
30
+ readonly Identifier: "org.w3.dcat.Dataset.identifier";
31
+ readonly Version: "org.w3.dcat.Dataset.version";
32
+ readonly Issued: "org.w3.dcat.Dataset.issued";
33
+ readonly Modified: "org.w3.dcat.Dataset.modified";
34
+ readonly Publisher: "org.w3.dcat.Dataset.publisher.identifier";
35
+ readonly Jurisdiction: "org.w3.dcat.Dataset.spatial.jurisdiction";
36
+ readonly Sector: "org.w3.dcat.Dataset.theme.sector";
37
+ readonly AccessUrl: "org.w3.dcat.Distribution.accessURL";
38
+ readonly MediaType: "org.w3.dcat.Distribution.mediaType";
39
+ }>;
40
+ export type PublicCatalogClaims = Readonly<Record<string, string | readonly string[]>>;
41
+ export type PublicCatalogResource = Readonly<{
42
+ resourceType: 'Organization' | 'Place' | 'Service';
43
+ id: string;
44
+ meta: Readonly<{
45
+ claims: PublicCatalogClaims;
46
+ }>;
47
+ }>;
48
+ export type OrganizationCatalogDescriptor = Readonly<{
49
+ id: string;
50
+ version: number;
51
+ publisherId: string;
52
+ jurisdiction: string;
53
+ sector: string;
54
+ accessUrl: string;
55
+ mediaType: 'application/vnd.api+json' | 'application/ld+json';
56
+ modifiedAt: string;
57
+ status: 'active' | 'withdrawn';
58
+ }>;
59
+ export type PublicOrganizationServiceCatalogInput = Readonly<{
60
+ datasetId: string;
61
+ version: number;
62
+ issuedAt: string;
63
+ modifiedAt: string;
64
+ jurisdiction: string;
65
+ sector: string;
66
+ publisher: Readonly<{
67
+ id: string;
68
+ name: string;
69
+ publishInCatalog: boolean;
70
+ }>;
71
+ departments: readonly Readonly<{
72
+ id: string;
73
+ name: string;
74
+ publishInCatalog: boolean;
75
+ }>[];
76
+ places: readonly Readonly<{
77
+ id: string;
78
+ departmentId: string;
79
+ name: string;
80
+ publishInCatalog: boolean;
81
+ containedInPlaceId?: string;
82
+ geo?: Readonly<{
83
+ latitude: number;
84
+ longitude: number;
85
+ elevation?: number;
86
+ }>;
87
+ address?: Readonly<{
88
+ addressCountry?: string;
89
+ addressRegion?: string;
90
+ addressLocality?: string;
91
+ postalCode?: string;
92
+ streetAddress?: string;
93
+ }>;
94
+ }>[];
95
+ services: readonly Readonly<{
96
+ id: string;
97
+ departmentId: string;
98
+ name: string;
99
+ description?: string;
100
+ serviceType: string;
101
+ placeIds: readonly string[];
102
+ publishInCatalog: boolean;
103
+ }>[];
104
+ distribution: Readonly<{
105
+ accessUrl: string;
106
+ mediaType: 'application/vnd.api+json' | 'application/ld+json';
107
+ }>;
108
+ }>;
109
+ export type PublicOrganizationServiceCatalog = Readonly<{
110
+ descriptor: OrganizationCatalogDescriptor;
111
+ dataset: Readonly<{
112
+ resourceType: 'Dataset';
113
+ id: string;
114
+ meta: Readonly<{
115
+ claims: PublicCatalogClaims;
116
+ }>;
117
+ }>;
118
+ resources: readonly PublicCatalogResource[];
119
+ }>;
120
+ export declare function buildPublicOrganizationServiceCatalog(input: PublicOrganizationServiceCatalogInput): PublicOrganizationServiceCatalog;
121
+ export type OrganizationCatalogCacheEntry = OrganizationCatalogDescriptor & Readonly<{
122
+ checkedAt: string;
123
+ }>;
124
+ export type OrganizationCatalogCacheDecision = Readonly<{
125
+ action: 'use-cache' | 'fetch' | 'revalidate' | 'evict' | 'reject';
126
+ reason: 'fresh' | 'not-cached' | 'new-version' | 'stale' | 'withdrawn' | 'rollback-detected' | 'descriptor-mismatch';
127
+ }>;
128
+ export declare function evaluateOrganizationCatalogCache(input: Readonly<{
129
+ cached?: OrganizationCatalogCacheEntry;
130
+ discovered: OrganizationCatalogDescriptor;
131
+ checkedAt: string;
132
+ maxAgeSeconds: number;
133
+ }>): OrganizationCatalogCacheDecision;
134
+ //# sourceMappingURL=organization-service-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-service-catalog.d.ts","sourceRoot":"","sources":["../src/organization-service-catalog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;;EAI5B,CAAA;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;EAarB,CAAA;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;EAQvB,CAAA;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;EAUlB,CAAA;AAEX,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC,CAAA;AACtF,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,YAAY,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS,CAAA;IAClD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,QAAQ,CAAC;QAAE,MAAM,EAAE,mBAAmB,C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MAAM,CAAA;CAAE,CAAC,CAAA;AAC3G,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CAAC;IACtD,MAAM,EAAE,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAA;IACjE,MAAM,EAAE,OAAO,GAAG,YAAY,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,mBAAmB,GAAG,qBAAqB,CAAA;CACrH,CAAC,CAAA;AAEF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,QAAQ,CAAC;IAAE,MAAM,CAAC,EAAE,6BAA6B,CAAC;IAAC,UAAU,EAAE,6BAA6B,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,gCAAgC,CAWnO"}
@@ -0,0 +1,205 @@
1
+ export const SchemaOrgOrganizationClaim = Object.freeze({
2
+ Identifier: 'org.schema.Organization.identifier.value',
3
+ Name: 'org.schema.Organization.name',
4
+ ParentOrganization: 'org.schema.Organization.parentOrganization.identifier',
5
+ });
6
+ export const SchemaOrgPlaceClaim = Object.freeze({
7
+ Identifier: 'org.schema.Place.identifier.value',
8
+ Name: 'org.schema.Place.name',
9
+ Department: 'org.schema.Place.department.identifier',
10
+ ContainedInPlace: 'org.schema.Place.containedInPlace.identifier',
11
+ Latitude: 'org.schema.Place.geo.latitude',
12
+ Longitude: 'org.schema.Place.geo.longitude',
13
+ Elevation: 'org.schema.Place.geo.elevation',
14
+ AddressCountry: 'org.schema.Place.address.addressCountry',
15
+ AddressRegion: 'org.schema.Place.address.addressRegion',
16
+ AddressLocality: 'org.schema.Place.address.addressLocality',
17
+ PostalCode: 'org.schema.Place.address.postalCode',
18
+ StreetAddress: 'org.schema.Place.address.streetAddress',
19
+ });
20
+ export const SchemaOrgServiceClaim = Object.freeze({
21
+ Identifier: 'org.schema.Service.identifier.value',
22
+ Name: 'org.schema.Service.name',
23
+ Description: 'org.schema.Service.description',
24
+ ServiceType: 'org.schema.Service.serviceType',
25
+ Provider: 'org.schema.Service.provider.identifier',
26
+ Department: 'org.schema.Service.department.identifier',
27
+ AvailableAtOrFrom: 'org.schema.Service.availableAtOrFrom.identifier',
28
+ });
29
+ export const DcatDatasetClaim = Object.freeze({
30
+ Identifier: 'org.w3.dcat.Dataset.identifier',
31
+ Version: 'org.w3.dcat.Dataset.version',
32
+ Issued: 'org.w3.dcat.Dataset.issued',
33
+ Modified: 'org.w3.dcat.Dataset.modified',
34
+ Publisher: 'org.w3.dcat.Dataset.publisher.identifier',
35
+ Jurisdiction: 'org.w3.dcat.Dataset.spatial.jurisdiction',
36
+ Sector: 'org.w3.dcat.Dataset.theme.sector',
37
+ AccessUrl: 'org.w3.dcat.Distribution.accessURL',
38
+ MediaType: 'org.w3.dcat.Distribution.mediaType',
39
+ });
40
+ export function buildPublicOrganizationServiceCatalog(input) {
41
+ const datasetId = identifier(input.datasetId, 'public_catalog_dataset_id_invalid');
42
+ const version = positiveInteger(input.version, 'public_catalog_version_invalid');
43
+ const issuedAt = instant(input.issuedAt, 'public_catalog_issued_at_invalid');
44
+ const modifiedAt = instant(input.modifiedAt, 'public_catalog_modified_at_invalid');
45
+ if (Date.parse(modifiedAt) < Date.parse(issuedAt))
46
+ throw new TypeError('public_catalog_modified_at_invalid');
47
+ const jurisdiction = token(input.jurisdiction, 'public_catalog_jurisdiction_invalid').toUpperCase();
48
+ const sector = token(input.sector, 'public_catalog_sector_invalid').toLowerCase();
49
+ const publisherId = identifier(input.publisher.id, 'public_catalog_publisher_id_invalid');
50
+ if (!input.publisher.publishInCatalog)
51
+ throw new TypeError('public_catalog_publisher_not_public');
52
+ assertUnique(input.departments.map(item => item.id), 'public_catalog_department_duplicate');
53
+ assertUnique(input.places.map(item => item.id), 'public_catalog_place_duplicate');
54
+ assertUnique(input.services.map(item => item.id), 'public_catalog_service_duplicate');
55
+ const allDepartments = new Map(input.departments.map(item => [item.id, item]));
56
+ const allPlaces = new Map(input.places.map(item => [item.id, item]));
57
+ const departments = input.departments.filter(item => item.publishInCatalog);
58
+ const places = input.places.filter(item => item.publishInCatalog);
59
+ const publicDepartmentIds = new Set(departments.map(item => item.id));
60
+ const publicPlaceIds = new Set(places.map(item => item.id));
61
+ for (const place of places) {
62
+ if (!allDepartments.has(place.departmentId))
63
+ throw new TypeError('public_place_department_not_found');
64
+ if (!publicDepartmentIds.has(place.departmentId))
65
+ throw new TypeError('public_place_department_not_public');
66
+ if (place.containedInPlaceId && !allPlaces.has(place.containedInPlaceId))
67
+ throw new TypeError('public_place_parent_not_found');
68
+ if (place.containedInPlaceId && !publicPlaceIds.has(place.containedInPlaceId))
69
+ throw new TypeError('public_place_parent_not_public');
70
+ }
71
+ const services = input.services.filter(item => item.publishInCatalog);
72
+ for (const service of services) {
73
+ if (!allDepartments.has(service.departmentId))
74
+ throw new TypeError('public_service_department_not_found');
75
+ if (!publicDepartmentIds.has(service.departmentId))
76
+ throw new TypeError('public_service_department_not_public');
77
+ if (!service.placeIds.length)
78
+ throw new TypeError('public_service_place_required');
79
+ for (const placeId of service.placeIds) {
80
+ const place = allPlaces.get(placeId);
81
+ if (!place)
82
+ throw new TypeError('public_service_place_not_found');
83
+ if (!publicPlaceIds.has(placeId))
84
+ throw new TypeError('public_service_place_not_public');
85
+ if (place.departmentId !== service.departmentId)
86
+ throw new TypeError('public_service_place_department_mismatch');
87
+ }
88
+ }
89
+ const descriptor = Object.freeze({
90
+ id: datasetId,
91
+ version,
92
+ publisherId,
93
+ jurisdiction,
94
+ sector,
95
+ accessUrl: url(input.distribution.accessUrl, 'public_catalog_access_url_invalid'),
96
+ mediaType: input.distribution.mediaType,
97
+ modifiedAt,
98
+ status: 'active',
99
+ });
100
+ const resources = [
101
+ resource('Organization', publisherId, { [SchemaOrgOrganizationClaim.Identifier]: publisherId, [SchemaOrgOrganizationClaim.Name]: text(input.publisher.name, 'public_catalog_publisher_name_invalid') }),
102
+ ...departments.map(item => resource('Organization', item.id, { [SchemaOrgOrganizationClaim.Identifier]: identifier(item.id, 'public_catalog_department_id_invalid'), [SchemaOrgOrganizationClaim.Name]: text(item.name, 'public_catalog_department_name_invalid'), [SchemaOrgOrganizationClaim.ParentOrganization]: publisherId })),
103
+ ...places.map(placeResource),
104
+ ...services.map(item => serviceResource(item, publisherId)),
105
+ ];
106
+ return Object.freeze({
107
+ descriptor,
108
+ dataset: Object.freeze({ resourceType: 'Dataset', id: datasetId, meta: Object.freeze({ claims: Object.freeze({
109
+ [DcatDatasetClaim.Identifier]: datasetId,
110
+ [DcatDatasetClaim.Version]: String(version),
111
+ [DcatDatasetClaim.Issued]: issuedAt,
112
+ [DcatDatasetClaim.Modified]: modifiedAt,
113
+ [DcatDatasetClaim.Publisher]: publisherId,
114
+ [DcatDatasetClaim.Jurisdiction]: jurisdiction,
115
+ [DcatDatasetClaim.Sector]: sector,
116
+ [DcatDatasetClaim.AccessUrl]: descriptor.accessUrl,
117
+ [DcatDatasetClaim.MediaType]: descriptor.mediaType,
118
+ }) }) }),
119
+ resources: Object.freeze(resources),
120
+ });
121
+ }
122
+ export function evaluateOrganizationCatalogCache(input) {
123
+ const checkedAt = instant(input.checkedAt, 'organization_catalog_cache_checked_at_invalid');
124
+ if (!Number.isFinite(input.maxAgeSeconds) || input.maxAgeSeconds <= 0)
125
+ throw new TypeError('organization_catalog_cache_max_age_invalid');
126
+ if (input.discovered.status === 'withdrawn')
127
+ return Object.freeze({ action: 'evict', reason: 'withdrawn' });
128
+ if (!input.cached)
129
+ return Object.freeze({ action: 'fetch', reason: 'not-cached' });
130
+ if (input.cached.id !== input.discovered.id || input.cached.publisherId !== input.discovered.publisherId)
131
+ return Object.freeze({ action: 'reject', reason: 'descriptor-mismatch' });
132
+ if (input.discovered.version < input.cached.version)
133
+ return Object.freeze({ action: 'reject', reason: 'rollback-detected' });
134
+ if (input.discovered.version > input.cached.version || input.discovered.modifiedAt !== input.cached.modifiedAt || input.discovered.accessUrl !== input.cached.accessUrl)
135
+ return Object.freeze({ action: 'fetch', reason: 'new-version' });
136
+ const age = (Date.parse(checkedAt) - Date.parse(instant(input.cached.checkedAt, 'organization_catalog_cache_checked_at_invalid'))) / 1000;
137
+ if (age < 0)
138
+ throw new TypeError('organization_catalog_cache_checked_at_invalid');
139
+ return age <= input.maxAgeSeconds ? Object.freeze({ action: 'use-cache', reason: 'fresh' }) : Object.freeze({ action: 'revalidate', reason: 'stale' });
140
+ }
141
+ function placeResource(place) {
142
+ const claims = {
143
+ [SchemaOrgPlaceClaim.Identifier]: identifier(place.id, 'public_catalog_place_id_invalid'),
144
+ [SchemaOrgPlaceClaim.Name]: text(place.name, 'public_catalog_place_name_invalid'),
145
+ [SchemaOrgPlaceClaim.Department]: identifier(place.departmentId, 'public_catalog_place_department_invalid'),
146
+ };
147
+ if (place.containedInPlaceId)
148
+ claims[SchemaOrgPlaceClaim.ContainedInPlace] = identifier(place.containedInPlaceId, 'public_catalog_place_parent_invalid');
149
+ if (place.geo) {
150
+ claims[SchemaOrgPlaceClaim.Latitude] = coordinate(place.geo.latitude, -90, 90, 'public_catalog_place_latitude_invalid');
151
+ claims[SchemaOrgPlaceClaim.Longitude] = coordinate(place.geo.longitude, -180, 180, 'public_catalog_place_longitude_invalid');
152
+ if (place.geo.elevation !== undefined)
153
+ claims[SchemaOrgPlaceClaim.Elevation] = finite(place.geo.elevation, 'public_catalog_place_elevation_invalid');
154
+ }
155
+ if (place.address) {
156
+ optionalClaim(claims, SchemaOrgPlaceClaim.AddressCountry, place.address.addressCountry);
157
+ optionalClaim(claims, SchemaOrgPlaceClaim.AddressRegion, place.address.addressRegion);
158
+ optionalClaim(claims, SchemaOrgPlaceClaim.AddressLocality, place.address.addressLocality);
159
+ optionalClaim(claims, SchemaOrgPlaceClaim.PostalCode, place.address.postalCode);
160
+ optionalClaim(claims, SchemaOrgPlaceClaim.StreetAddress, place.address.streetAddress);
161
+ }
162
+ return resource('Place', place.id, claims);
163
+ }
164
+ function serviceResource(service, publisherId) {
165
+ return resource('Service', service.id, {
166
+ [SchemaOrgServiceClaim.Identifier]: identifier(service.id, 'public_catalog_service_id_invalid'),
167
+ [SchemaOrgServiceClaim.Name]: text(service.name, 'public_catalog_service_name_invalid'),
168
+ ...(service.description ? { [SchemaOrgServiceClaim.Description]: text(service.description, 'public_catalog_service_description_invalid') } : {}),
169
+ [SchemaOrgServiceClaim.ServiceType]: token(service.serviceType, 'public_catalog_service_type_invalid'),
170
+ [SchemaOrgServiceClaim.Provider]: publisherId,
171
+ [SchemaOrgServiceClaim.Department]: identifier(service.departmentId, 'public_catalog_service_department_invalid'),
172
+ [SchemaOrgServiceClaim.AvailableAtOrFrom]: Object.freeze([...new Set(service.placeIds.map(id => identifier(id, 'public_catalog_service_place_invalid')))]),
173
+ });
174
+ }
175
+ function resource(resourceType, id, claims) {
176
+ return Object.freeze({ resourceType, id: identifier(id, 'public_catalog_resource_id_invalid'), meta: Object.freeze({ claims: Object.freeze(claims) }) });
177
+ }
178
+ function optionalClaim(claims, claim, value) { if (value !== undefined)
179
+ claims[claim] = text(value, 'public_catalog_place_address_invalid'); }
180
+ function text(value, error) { const normalized = value?.trim(); if (!normalized)
181
+ throw new TypeError(error); return normalized; }
182
+ function identifier(value, error) { const normalized = text(value, error); if (!/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$/u.test(normalized))
183
+ throw new TypeError(error); return normalized; }
184
+ function token(value, error) { const normalized = text(value, error); if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/u.test(normalized))
185
+ throw new TypeError(error); return normalized; }
186
+ function instant(value, error) { const normalized = text(value, error); if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/u.test(normalized) || Number.isNaN(Date.parse(normalized)))
187
+ throw new TypeError(error); return normalized; }
188
+ function positiveInteger(value, error) { if (!Number.isSafeInteger(value) || value < 1)
189
+ throw new TypeError(error); return value; }
190
+ function finite(value, error) { if (!Number.isFinite(value))
191
+ throw new TypeError(error); return String(value); }
192
+ function coordinate(value, minimum, maximum, error) { if (!Number.isFinite(value) || value < minimum || value > maximum)
193
+ throw new TypeError(error); return String(value); }
194
+ function url(value, error) { try {
195
+ const parsed = new URL(value);
196
+ if (parsed.protocol !== 'https:')
197
+ throw new Error();
198
+ return parsed.toString();
199
+ }
200
+ catch {
201
+ throw new TypeError(error);
202
+ } }
203
+ function assertUnique(values, error) { const normalized = values.map(value => identifier(value, error)); if (new Set(normalized).size !== normalized.length)
204
+ throw new TypeError(error); }
205
+ //# sourceMappingURL=organization-service-catalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-service-catalog.js","sourceRoot":"","sources":["../src/organization-service-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,0CAA0C;IACtD,IAAI,EAAE,8BAA8B;IACpC,kBAAkB,EAAE,uDAAuD;CACnE,CAAC,CAAA;AAEX,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,mCAAmC;IAC/C,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,wCAAwC;IACpD,gBAAgB,EAAE,8CAA8C;IAChE,QAAQ,EAAE,+BAA+B;IACzC,SAAS,EAAE,gCAAgC;IAC3C,SAAS,EAAE,gCAAgC;IAC3C,cAAc,EAAE,yCAAyC;IACzD,aAAa,EAAE,wCAAwC;IACvD,eAAe,EAAE,0CAA0C;IAC3D,UAAU,EAAE,qCAAqC;IACjD,aAAa,EAAE,wCAAwC;CAC/C,CAAC,CAAA;AAEX,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,qCAAqC;IACjD,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,wCAAwC;IAClD,UAAU,EAAE,0CAA0C;IACtD,iBAA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AAO,MAAM,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC;AACvI,SAAS,UAAU,CAAC,KAAa,EAAE,OAAe,EAAE,OAAe,EAAE,KAAa,IAAY,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,OAAO,IAAI,KAAK,GAAG,OAAO;IAAE,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC;AACnN,SAAS,GAAG,CAAC,KAAa,EAAE,KAAa,IAAY,IAAI,CAAC;IAAC,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,QAAQ;QAAE,MAAM,IAAI,KAAK,EAAE,CAAC;IAAC,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAA;AAAC,CAAC;AAAC,MAAM,CAAC;IAAC,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,CAAA;AAAC,CAAC,CAAC,CAAC;AAChN,SAAS,YAAY,CAAC,MAAyB,EAAE,KAAa,IAAU,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM;IAAE,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "antifraud-data-utils-ts",
3
- "version": "0.1.9",
4
- "description": "Product-neutral identity verification, evidence and attestation data contracts",
3
+ "version": "0.1.10",
4
+ "description": "Product-neutral identity, evidence and public organization catalog data contracts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -17,6 +17,10 @@
17
17
  "./cryptography": {
18
18
  "types": "./dist/cryptography/index.d.ts",
19
19
  "default": "./dist/cryptography/index.js"
20
+ },
21
+ "./organization-service-catalog": {
22
+ "types": "./dist/organization-service-catalog.d.ts",
23
+ "default": "./dist/organization-service-catalog.js"
20
24
  }
21
25
  },
22
26
  "files": [