gdc-sdk-front-ts 2.1.2 → 2.3.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/README.md +9 -3
- package/dist/ClientSDK.d.ts +11 -1
- package/dist/ClientSDK.js +13 -1
- package/dist/ProfileManager.js +6 -3
- package/dist/front-clinical-runtime-client.d.ts +69 -0
- package/dist/front-clinical-runtime-client.js +214 -0
- package/dist/frontend-profile-workspace.d.ts +62 -0
- package/dist/frontend-profile-workspace.js +129 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/individual-controller-frontend-runtime.d.ts +9 -3
- package/dist/individual-controller-frontend-runtime.js +7 -6
- package/dist/orchestration/client-port.d.ts +21 -3
- package/dist/orchestration/individual-member-sdk.d.ts +11 -1
- package/dist/orchestration/individual-member-sdk.js +12 -0
- package/dist/orchestration/professional-sdk.d.ts +7 -1
- package/dist/orchestration/professional-sdk.js +6 -0
- package/package.json +3 -3
- package/dist/discovery/HttpDataspaceDiscoveryClient.d.ts +0 -34
- package/dist/discovery/HttpDataspaceDiscoveryClient.js +0 -47
- package/dist/gdc-common-utils-ts/src/AesManager.d.ts +0 -27
- package/dist/gdc-common-utils-ts/src/AesManager.js +0 -64
- package/dist/gdc-common-utils-ts/src/CryptographyService.d.ts +0 -76
- package/dist/gdc-common-utils-ts/src/CryptographyService.js +0 -401
- package/dist/gdc-common-utils-ts/src/constants/actor-session.d.ts +0 -40
- package/dist/gdc-common-utils-ts/src/constants/actor-session.js +0 -40
- package/dist/gdc-common-utils-ts/src/constants/communication.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/constants/communication.js +0 -14
- package/dist/gdc-common-utils-ts/src/constants/cryptography.d.ts +0 -58
- package/dist/gdc-common-utils-ts/src/constants/cryptography.js +0 -49
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.js +0 -11
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.d.ts +0 -27
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.js +0 -27
- package/dist/gdc-common-utils-ts/src/constants/device.d.ts +0 -16
- package/dist/gdc-common-utils-ts/src/constants/device.js +0 -15
- package/dist/gdc-common-utils-ts/src/constants/did-services.d.ts +0 -42
- package/dist/gdc-common-utils-ts/src/constants/did-services.js +0 -40
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.js +0 -69
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.d.ts +0 -12
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.js +0 -12
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.d.ts +0 -52
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.js +0 -33
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.js +0 -10
- package/dist/gdc-common-utils-ts/src/constants/healthcare.d.ts +0 -496
- package/dist/gdc-common-utils-ts/src/constants/healthcare.js +0 -274
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.d.ts +0 -44
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.js +0 -208
- package/dist/gdc-common-utils-ts/src/constants/index.d.ts +0 -21
- package/dist/gdc-common-utils-ts/src/constants/index.js +0 -21
- package/dist/gdc-common-utils-ts/src/constants/network.d.ts +0 -25
- package/dist/gdc-common-utils-ts/src/constants/network.js +0 -17
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.d.ts +0 -175
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.js +0 -261
- package/dist/gdc-common-utils-ts/src/constants/sectors.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/constants/sectors.js +0 -24
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.d.ts +0 -82
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.js +0 -105
- package/dist/gdc-common-utils-ts/src/constants/smart.d.ts +0 -12
- package/dist/gdc-common-utils-ts/src/constants/smart.js +0 -12
- package/dist/gdc-common-utils-ts/src/constants/urn.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/constants/urn.js +0 -11
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.d.ts +0 -34
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.js +0 -42
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.d.ts +0 -75
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.js +0 -33
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.js +0 -16
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.d.ts +0 -22
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.js +0 -81
- package/dist/gdc-common-utils-ts/src/examples/consent-access.d.ts +0 -30
- package/dist/gdc-common-utils-ts/src/examples/consent-access.js +0 -121
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.js +0 -16
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.d.ts +0 -98
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.js +0 -141
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.js +0 -24
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.d.ts +0 -64
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.js +0 -77
- package/dist/gdc-common-utils-ts/src/examples/index.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/examples/index.js +0 -14
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.d.ts +0 -100
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.js +0 -71
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.d.ts +0 -505
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.js +0 -291
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.d.ts +0 -163
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.js +0 -93
- package/dist/gdc-common-utils-ts/src/examples/professional.d.ts +0 -228
- package/dist/gdc-common-utils-ts/src/examples/professional.js +0 -324
- package/dist/gdc-common-utils-ts/src/examples/related-person.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/examples/related-person.js +0 -13
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.js +0 -96
- package/dist/gdc-common-utils-ts/src/examples/shared.d.ts +0 -220
- package/dist/gdc-common-utils-ts/src/examples/shared.js +0 -191
- package/dist/gdc-common-utils-ts/src/hmac.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/hmac.js +0 -24
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.d.ts +0 -6
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.js +0 -15
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.d.ts +0 -4
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.js +0 -13
- package/dist/gdc-common-utils-ts/src/index.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/index.js +0 -10
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.d.ts +0 -139
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.js +0 -8
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.js +0 -3
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.d.ts +0 -154
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/actor-session.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/actor-session.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/aes.d.ts +0 -85
- package/dist/gdc-common-utils-ts/src/models/aes.js +0 -10
- package/dist/gdc-common-utils-ts/src/models/auth.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/auth.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/bundle.d.ts +0 -153
- package/dist/gdc-common-utils-ts/src/models/bundle.js +0 -25
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.d.ts +0 -150
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.js +0 -104
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.js +0 -32
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.d.ts +0 -126
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.js +0 -67
- package/dist/gdc-common-utils-ts/src/models/comm.d.ts +0 -56
- package/dist/gdc-common-utils-ts/src/models/comm.js +0 -4
- package/dist/gdc-common-utils-ts/src/models/confidential-job.d.ts +0 -78
- package/dist/gdc-common-utils-ts/src/models/confidential-job.js +0 -20
- package/dist/gdc-common-utils-ts/src/models/confidential-message.d.ts +0 -97
- package/dist/gdc-common-utils-ts/src/models/confidential-message.js +0 -4
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.d.ts +0 -134
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/consent-access.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/models/consent-access.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/consent-rule.d.ts +0 -122
- package/dist/gdc-common-utils-ts/src/models/consent-rule.js +0 -22
- package/dist/gdc-common-utils-ts/src/models/crypto.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/crypto.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.d.ts +0 -68
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.js +0 -9
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/device-license.d.ts +0 -134
- package/dist/gdc-common-utils-ts/src/models/device-license.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/did.d.ts +0 -108
- package/dist/gdc-common-utils-ts/src/models/did.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.d.ts +0 -101
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.d.ts +0 -104
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/index.d.ts +0 -42
- package/dist/gdc-common-utils-ts/src/models/index.js +0 -42
- package/dist/gdc-common-utils-ts/src/models/indexing.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/models/indexing.js +0 -18
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.js +0 -36
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.js +0 -55
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.js +0 -25
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.js +0 -23
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.js +0 -89
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.d.ts +0 -341
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.js +0 -204
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.d.ts +0 -5
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.js +0 -7
- package/dist/gdc-common-utils-ts/src/models/issue.d.ts +0 -57
- package/dist/gdc-common-utils-ts/src/models/issue.js +0 -75
- package/dist/gdc-common-utils-ts/src/models/jsonapi.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/models/jsonapi.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwe.d.ts +0 -120
- package/dist/gdc-common-utils-ts/src/models/jwe.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwk.d.ts +0 -39
- package/dist/gdc-common-utils-ts/src/models/jwk.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jws.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/jws.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwt.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/jwt.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.js +0 -58
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.d.ts +0 -33
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.d.ts +0 -50
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.d.ts +0 -67
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.d.ts +0 -51
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.js +0 -5
- package/dist/gdc-common-utils-ts/src/models/openid-device.d.ts +0 -119
- package/dist/gdc-common-utils-ts/src/models/openid-device.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.d.ts +0 -26
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/params.d.ts +0 -133
- package/dist/gdc-common-utils-ts/src/models/params.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/relationship-access.d.ts +0 -160
- package/dist/gdc-common-utils-ts/src/models/relationship-access.js +0 -21
- package/dist/gdc-common-utils-ts/src/models/resource-document.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/resource-document.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/response.d.ts +0 -1
- package/dist/gdc-common-utils-ts/src/models/response.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/urlPath.d.ts +0 -58
- package/dist/gdc-common-utils-ts/src/models/urlPath.js +0 -76
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.d.ts +0 -45
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.js +0 -8
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.js +0 -25
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.d.ts +0 -30
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.js +0 -81
- package/dist/gdc-common-utils-ts/src/storage/index.d.ts +0 -3
- package/dist/gdc-common-utils-ts/src/storage/index.js +0 -4
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.d.ts +0 -86
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.js +0 -218
- package/dist/gdc-common-utils-ts/src/utils/activation-request.d.ts +0 -81
- package/dist/gdc-common-utils-ts/src/utils/activation-request.js +0 -99
- package/dist/gdc-common-utils-ts/src/utils/actor.d.ts +0 -18
- package/dist/gdc-common-utils-ts/src/utils/actor.js +0 -36
- package/dist/gdc-common-utils-ts/src/utils/base-convert.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/base-convert.js +0 -104
- package/dist/gdc-common-utils-ts/src/utils/baseN.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/utils/baseN.js +0 -174
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.js +0 -177
- package/dist/gdc-common-utils-ts/src/utils/bundle.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/utils/bundle.js +0 -39
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.d.ts +0 -64
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.js +0 -279
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.js +0 -291
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.d.ts +0 -110
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.js +0 -326
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.d.ts +0 -41
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.js +0 -170
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.d.ts +0 -41
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.js +0 -215
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.d.ts +0 -152
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.js +0 -121
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.js +0 -213
- package/dist/gdc-common-utils-ts/src/utils/consent.d.ts +0 -218
- package/dist/gdc-common-utils-ts/src/utils/consent.js +0 -679
- package/dist/gdc-common-utils-ts/src/utils/content.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/content.js +0 -60
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.d.ts +0 -130
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.js +0 -307
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.d.ts +0 -235
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.js +0 -482
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.d.ts +0 -66
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.js +0 -109
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.js +0 -173
- package/dist/gdc-common-utils-ts/src/utils/did.d.ts +0 -124
- package/dist/gdc-common-utils-ts/src/utils/did.js +0 -204
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.js +0 -15
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.d.ts +0 -48
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.js +0 -81
- package/dist/gdc-common-utils-ts/src/utils/didcomm.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/didcomm.js +0 -78
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.js +0 -64
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.js +0 -152
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.d.ts +0 -61
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.js +0 -91
- package/dist/gdc-common-utils-ts/src/utils/format-converter.d.ts +0 -21
- package/dist/gdc-common-utils-ts/src/utils/format-converter.js +0 -109
- package/dist/gdc-common-utils-ts/src/utils/index.d.ts +0 -39
- package/dist/gdc-common-utils-ts/src/utils/index.js +0 -39
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.js +0 -191
- package/dist/gdc-common-utils-ts/src/utils/jwt.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/utils/jwt.js +0 -154
- package/dist/gdc-common-utils-ts/src/utils/manager-error.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/utils/manager-error.js +0 -21
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.d.ts +0 -56
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.js +0 -127
- package/dist/gdc-common-utils-ts/src/utils/multibase58.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/utils/multibase58.js +0 -40
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.d.ts +0 -8
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.js +0 -23
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.d.ts +0 -1
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.js +0 -35
- package/dist/gdc-common-utils-ts/src/utils/normalize.d.ts +0 -16
- package/dist/gdc-common-utils-ts/src/utils/normalize.js +0 -40
- package/dist/gdc-common-utils-ts/src/utils/object-convert.d.ts +0 -20
- package/dist/gdc-common-utils-ts/src/utils/object-convert.js +0 -51
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.js +0 -29
- package/dist/gdc-common-utils-ts/src/utils/string-convert.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/utils/string-convert.js +0 -62
- package/dist/gdc-common-utils-ts/src/utils/string-utils.d.ts +0 -25
- package/dist/gdc-common-utils-ts/src/utils/string-utils.js +0 -66
- package/dist/gdc-common-utils-ts/src/utils/url.d.ts +0 -26
- package/dist/gdc-common-utils-ts/src/utils/url.js +0 -44
- package/dist/gdc-common-utils-ts/src/utils/vp-token.d.ts +0 -139
- package/dist/gdc-common-utils-ts/src/utils/vp-token.js +0 -256
- package/dist/gdc-sdk-core-ts/src/actor-model.d.ts +0 -56
- package/dist/gdc-sdk-core-ts/src/actor-model.js +0 -112
- package/dist/gdc-sdk-core-ts/src/app-identity.d.ts +0 -80
- package/dist/gdc-sdk-core-ts/src/app-identity.js +0 -147
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.d.ts +0 -165
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.js +0 -191
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.d.ts +0 -112
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.js +0 -185
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.d.ts +0 -32
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.js +0 -215
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.d.ts +0 -55
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.js +0 -190
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.d.ts +0 -55
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.js +0 -194
- package/dist/gdc-sdk-core-ts/src/communication-draft.d.ts +0 -104
- package/dist/gdc-sdk-core-ts/src/communication-draft.js +0 -143
- package/dist/gdc-sdk-core-ts/src/communication-outbox.d.ts +0 -49
- package/dist/gdc-sdk-core-ts/src/communication-outbox.js +0 -62
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.d.ts +0 -180
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.js +0 -455
- package/dist/gdc-sdk-core-ts/src/consent-access.d.ts +0 -73
- package/dist/gdc-sdk-core-ts/src/consent-access.js +0 -109
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.d.ts +0 -5
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.js +0 -6
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.d.ts +0 -82
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.js +0 -135
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.d.ts +0 -33
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.js +0 -56
- package/dist/gdc-sdk-core-ts/src/discovery-facade.d.ts +0 -84
- package/dist/gdc-sdk-core-ts/src/discovery-facade.js +0 -24
- package/dist/gdc-sdk-core-ts/src/identity-model.d.ts +0 -46
- package/dist/gdc-sdk-core-ts/src/identity-model.js +0 -2
- package/dist/gdc-sdk-core-ts/src/identity-store.d.ts +0 -83
- package/dist/gdc-sdk-core-ts/src/identity-store.js +0 -51
- package/dist/gdc-sdk-core-ts/src/index.d.ts +0 -23
- package/dist/gdc-sdk-core-ts/src/index.js +0 -24
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.d.ts +0 -5
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.js +0 -6
- package/dist/gdc-sdk-core-ts/src/polling-model.d.ts +0 -35
- package/dist/gdc-sdk-core-ts/src/polling-model.js +0 -24
- package/dist/gdc-sdk-core-ts/src/relationship-access.d.ts +0 -40
- package/dist/gdc-sdk-core-ts/src/relationship-access.js +0 -150
- package/dist/gdc-sdk-core-ts/src/session-model.d.ts +0 -134
- package/dist/gdc-sdk-core-ts/src/session-model.js +0 -2
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.d.ts +0 -19
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.js +0 -19
- package/dist/gdc-sdk-core-ts/src/vital-signs.d.ts +0 -38
- package/dist/gdc-sdk-core-ts/src/vital-signs.js +0 -155
- package/dist/gdc-sdk-front-ts/src/ClientSDK.d.ts +0 -99
- package/dist/gdc-sdk-front-ts/src/ClientSDK.js +0 -177
- package/dist/gdc-sdk-front-ts/src/ProfileManager.d.ts +0 -140
- package/dist/gdc-sdk-front-ts/src/ProfileManager.js +0 -76
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.js +0 -26
- package/dist/gdc-sdk-front-ts/src/VerifierService.d.ts +0 -6
- package/dist/gdc-sdk-front-ts/src/VerifierService.js +0 -10
- package/dist/gdc-sdk-front-ts/src/actor-session.d.ts +0 -2
- package/dist/gdc-sdk-front-ts/src/actor-session.js +0 -2
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.d.ts +0 -8
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.js +0 -28
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.d.ts +0 -4
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.js +0 -5
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.d.ts +0 -54
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.js +0 -85
- package/dist/gdc-sdk-front-ts/src/discovery/index.d.ts +0 -3
- package/dist/gdc-sdk-front-ts/src/discovery/index.js +0 -4
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.d.ts +0 -29
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.js +0 -60
- package/dist/gdc-sdk-front-ts/src/discovery/types.d.ts +0 -83
- package/dist/gdc-sdk-front-ts/src/discovery/types.js +0 -2
- package/dist/gdc-sdk-front-ts/src/index.d.ts +0 -15
- package/dist/gdc-sdk-front-ts/src/index.js +0 -16
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.d.ts +0 -4
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.js +0 -5
- package/dist/gdc-sdk-front-ts/src/roleRegistry.d.ts +0 -19
- package/dist/gdc-sdk-front-ts/src/roleRegistry.js +0 -2
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.d.ts +0 -22
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.js +0 -7
- package/dist/gdc-sdk-front-ts/src/services.d.ts +0 -167
- package/dist/gdc-sdk-front-ts/src/services.js +0 -78
- package/dist/gdc-sdk-front-ts/src/session-descriptor.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/session-descriptor.js +0 -8
- package/dist/gdc-sdk-front-ts/src/types.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/types.js +0 -1
- package/dist/lifecycle-examples.d.ts +0 -6
- package/dist/lifecycle-examples.js +0 -7
- package/dist/medication-claim-helpers.d.ts +0 -4
- package/dist/medication-claim-helpers.js +0 -5
- package/dist/orchestration/facades.d.ts +0 -65
- package/dist/orchestration/facades.js +0 -142
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared low-level example fragments reused by multiple flow-specific example modules.
|
|
3
|
-
*
|
|
4
|
-
* Non-negotiable rule:
|
|
5
|
-
*
|
|
6
|
-
* - example DIDs, emails, actor identifiers, sections, codes, and date windows
|
|
7
|
-
* must be imported from this module
|
|
8
|
-
* - example files must not re-hardcode those fixture values inline
|
|
9
|
-
* - all values below are synthetic documentation/test fixtures, never real data
|
|
10
|
-
*/
|
|
11
|
-
export declare const EXAMPLE_TENANT_IDENTIFIER: "acme-id";
|
|
12
|
-
export declare const EXAMPLE_JURISDICTION: "ES";
|
|
13
|
-
export declare const EXAMPLE_NETWORK_TYPE: "test";
|
|
14
|
-
export declare const EXAMPLE_ROUTE_VERSION: "v1";
|
|
15
|
-
export declare const EXAMPLE_SECTOR: "health-care";
|
|
16
|
-
export declare const EXAMPLE_EMAIL_CONTROLLER_ORG: "controller@acme.org";
|
|
17
|
-
export declare const EXAMPLE_EMAIL_CONTROLLER_INDIVIDUAL: "ana.parent@example.org";
|
|
18
|
-
export declare const EXAMPLE_TENANT_ROUTE_CONTEXT: {
|
|
19
|
-
readonly tenantId: "acme-id";
|
|
20
|
-
readonly jurisdiction: "ES";
|
|
21
|
-
readonly sector: "health-care";
|
|
22
|
-
};
|
|
23
|
-
export declare const EXAMPLE_HOST_ROUTE_CONTEXT: {
|
|
24
|
-
readonly jurisdiction: "ES";
|
|
25
|
-
readonly sector: "test";
|
|
26
|
-
};
|
|
27
|
-
export declare const EXAMPLE_CONTROLLER_DID: "did:web:people.acme.org:controllers:primary";
|
|
28
|
-
export declare const EXAMPLE_CONTROLLER_EMAIL: "controller@acme.org";
|
|
29
|
-
export declare const EXAMPLE_CONTROLLER_SAME_AS: "mailto:controller@acme.org";
|
|
30
|
-
export declare const EXAMPLE_API_ORGANIZATION_DID: "did:web:api.acme.org";
|
|
31
|
-
export declare const EXAMPLE_SERVICE_PUBLIC_DID: "did:web:public.acme.org";
|
|
32
|
-
export declare const EXAMPLE_SUBJECT_DID: "did:web:api.acme.org:individual:123";
|
|
33
|
-
export declare const EXAMPLE_PROFESSIONAL_DID: "did:web:api.acme.org:professional:1";
|
|
34
|
-
export declare const EXAMPLE_PROVIDER_ORGANIZATION_DID: "did:web:hospital.acme.org";
|
|
35
|
-
export declare const EXAMPLE_PROVIDER_ORGANIZATION_URL: "https://hospital.acme.org";
|
|
36
|
-
export declare const EXAMPLE_GATEWAY_PUBLIC_ORIGIN: "https://gateway.example.com";
|
|
37
|
-
export declare const EXAMPLE_HOST_PUBLIC_HOSTNAME: "host.example.com";
|
|
38
|
-
export declare const EXAMPLE_DEFAULT_ICA_URL: "https://ica.example.org";
|
|
39
|
-
export declare const EXAMPLE_DEFAULT_ICA_DID: "did:web:ica.example.org";
|
|
40
|
-
export declare const EXAMPLE_HOSTING_OPERATOR_DID: "did:web:host.example.org";
|
|
41
|
-
export declare const EXAMPLE_TENANT_SERVICE_DID: "did:web:provider.example.org";
|
|
42
|
-
export declare const EXAMPLE_SECONDARY_TENANT_SERVICE_DID: "did:web:provider-b.example.org";
|
|
43
|
-
export declare const EXAMPLE_HOSTING_OPERATOR_DSPACE_VERSION_URL: "https://host.example.org/host/cds-ES/v1/test/.well-known/dspace-version";
|
|
44
|
-
export declare const EXAMPLE_HOSTING_OPERATOR_CATALOG_ARTIFACT_URL: "https://host.example.org/host/cds-ES/v1/test/dsp/catalog/dcat.json";
|
|
45
|
-
/** @deprecated Use `EXAMPLE_HOSTING_OPERATOR_DSPACE_VERSION_URL`. */
|
|
46
|
-
export declare const EXAMPLE_HOSTING_OPERATOR_CATALOG_URL: "https://host.example.org/host/cds-ES/v1/test/.well-known/dspace-version";
|
|
47
|
-
export declare const EXAMPLE_PROVIDER_PUBLISHED_ENDPOINT_URL: "https://host.example.org/catalog/provider-a";
|
|
48
|
-
export declare const EXAMPLE_PROVIDER_LEGAL_NAME: "ACME Health Provider";
|
|
49
|
-
export declare const EXAMPLE_SECONDARY_PROVIDER_LEGAL_NAME: "Reader Only Provider";
|
|
50
|
-
export declare const EXAMPLE_SECONDARY_PROVIDER_ALTERNATE_NAME: "reader-only";
|
|
51
|
-
export declare const EXAMPLE_COVERAGE_SCOPE_EU: "EU";
|
|
52
|
-
export declare const EXAMPLE_NON_EU_COUNTRY: "US";
|
|
53
|
-
export declare const EXAMPLE_SECONDARY_EU_COUNTRY: "PT";
|
|
54
|
-
export declare const EXAMPLE_PATIENT_DID: "did:web:patient.example";
|
|
55
|
-
export declare const EXAMPLE_PROFILE_PROVIDER_DID: "did:web:provider.example.org";
|
|
56
|
-
export declare const EXAMPLE_PROFILE_ORGANIZATION_DID: "did:web:org.example";
|
|
57
|
-
export declare const EXAMPLE_PROFILE_ID: "profile-1";
|
|
58
|
-
export declare const EXAMPLE_PROFILE_EMAIL: "user@example.com";
|
|
59
|
-
export declare const EXAMPLE_PRACTITIONER_DID: "did:web:practitioner.example";
|
|
60
|
-
export declare const EXAMPLE_GENERIC_SUBJECT_DID: "did:web:subject.example";
|
|
61
|
-
export declare const EXAMPLE_EMAIL_PROFESSIONAL: "doctor.oncall@example.org";
|
|
62
|
-
export declare const EXAMPLE_EMAIL_RELATED_PERSON: "parent.guardian@example.org";
|
|
63
|
-
export declare const EXAMPLE_HEALTHCARE_JURISDICTION: "ES";
|
|
64
|
-
export declare const EXAMPLE_ORGANIZATION_CONTROLLER_ROLE: "RESPRSN";
|
|
65
|
-
export declare const EXAMPLE_HEALTHCARE_ACTOR_ROLE_PHYSICIAN: "ISCO-08|2211";
|
|
66
|
-
export declare const EXAMPLE_HEALTHCARE_ACTOR_ROLE_RECEPTIONIST: "ISCO-08|4226";
|
|
67
|
-
export declare const EXAMPLE_HEALTHCARE_ROLE_PHYSICIAN_TEXT: "physician";
|
|
68
|
-
export declare const EXAMPLE_RELATED_PERSON_ROLE: "v3-RoleCode|RESPRSN";
|
|
69
|
-
export declare const EXAMPLE_CLINICAL_SECTION_RESULTS: "LOINC|30954-2";
|
|
70
|
-
export declare const EXAMPLE_CLINICAL_SECTION_PATIENT_SUMMARY: "LOINC|60591-5";
|
|
71
|
-
export declare const EXAMPLE_CLINICAL_SECTION_HISTORY_MEDICATION: "LOINC|10160-0";
|
|
72
|
-
export declare const EXAMPLE_CLINICAL_SECTION_ALLERGIES: string;
|
|
73
|
-
export declare const EXAMPLE_CLINICAL_CODE_PROBLEM: "LOINC|11450-4";
|
|
74
|
-
export declare const EXAMPLE_CONSENT_DATE: "2026-05-20";
|
|
75
|
-
export declare const EXAMPLE_CONSENT_PERIOD_END: "2026-05-01T00:00:00Z";
|
|
76
|
-
export declare const EXAMPLE_CONSENT_PURPOSE_TREATMENT: "TREAT";
|
|
77
|
-
export declare const EXAMPLE_CONSENT_IDENTIFIER: "urn:uuid:consent-example-001";
|
|
78
|
-
export declare const EXAMPLE_CONSENT_PERIOD_START: "2026-05-20T00:00:00Z";
|
|
79
|
-
export declare const EXAMPLE_COMMUNICATION_IDENTIFIER: "urn:uuid:communication-example-001";
|
|
80
|
-
export declare const EXAMPLE_IPS_BUNDLE_NOTE_TEXT: "IPS ingestion request";
|
|
81
|
-
export declare const EXAMPLE_MEDICATION_STATEMENT_IDENTIFIER: "urn:uuid:medication-statement-example-001";
|
|
82
|
-
export declare const EXAMPLE_MEDICATION_STATEMENT_STATUS: "active";
|
|
83
|
-
export declare const EXAMPLE_MEDICATION_STATEMENT_CODE: "http://www.nlm.nih.gov/research/umls/rxnorm|313782";
|
|
84
|
-
export declare const EXAMPLE_MEDICATION_STATEMENT_TEXT: "atorvastatin 20 mg oral tablet";
|
|
85
|
-
export declare const EXAMPLE_EMPLOYEE_ACTIVATION_CODE: "ACT-001";
|
|
86
|
-
export declare const EXAMPLE_DEVICE_CLIENT_ID: "did:web:device-001";
|
|
87
|
-
export type ExampleDateRange = Readonly<{
|
|
88
|
-
start: string;
|
|
89
|
-
end: string;
|
|
90
|
-
}>;
|
|
91
|
-
export declare const EXAMPLE_CLINICAL_DATE_RANGE: ExampleDateRange;
|
|
92
|
-
export type ExampleClinicalBundleSearchInput = Readonly<{
|
|
93
|
-
subject: string;
|
|
94
|
-
section: readonly string[];
|
|
95
|
-
includedTypes: readonly string[];
|
|
96
|
-
date: ExampleDateRange;
|
|
97
|
-
code: string;
|
|
98
|
-
author: string;
|
|
99
|
-
}>;
|
|
100
|
-
export type ExampleLatestIpsSearchInput = Readonly<{
|
|
101
|
-
subject: string;
|
|
102
|
-
}>;
|
|
103
|
-
export declare const EXAMPLE_CONTROLLER_SIGN_KEY: {
|
|
104
|
-
readonly kid: "controller-es384-001";
|
|
105
|
-
readonly kty: "EC";
|
|
106
|
-
readonly crv: "P-384";
|
|
107
|
-
readonly x: "<x>";
|
|
108
|
-
readonly y: "<y>";
|
|
109
|
-
readonly alg: "ES384";
|
|
110
|
-
readonly use: "sig";
|
|
111
|
-
};
|
|
112
|
-
export declare const EXAMPLE_CONTROLLER_ENCRYPTION_KEY: {
|
|
113
|
-
readonly kid: "controller-didcomm-enc-001";
|
|
114
|
-
readonly kty: "EC";
|
|
115
|
-
readonly crv: "P-384";
|
|
116
|
-
readonly x: "<enc-x>";
|
|
117
|
-
readonly y: "<enc-y>";
|
|
118
|
-
readonly use: "enc";
|
|
119
|
-
readonly purposes: readonly ["didcomm-enc"];
|
|
120
|
-
};
|
|
121
|
-
export declare const EXAMPLE_CONTROLLER_PUBLIC_KEYS: {
|
|
122
|
-
readonly keys: readonly [{
|
|
123
|
-
readonly kid: "controller-didcomm-enc-001";
|
|
124
|
-
readonly kty: "EC";
|
|
125
|
-
readonly crv: "P-384";
|
|
126
|
-
readonly x: "<enc-x>";
|
|
127
|
-
readonly y: "<enc-y>";
|
|
128
|
-
readonly use: "enc";
|
|
129
|
-
readonly purposes: readonly ["didcomm-enc"];
|
|
130
|
-
}];
|
|
131
|
-
};
|
|
132
|
-
export declare const EXAMPLE_CONTROLLER_BINDING: {
|
|
133
|
-
readonly did: "did:web:people.acme.org:controllers:primary";
|
|
134
|
-
readonly sameAs: "mailto:controller@acme.org";
|
|
135
|
-
readonly publicKeyJwk: {
|
|
136
|
-
readonly kid: "controller-es384-001";
|
|
137
|
-
readonly kty: "EC";
|
|
138
|
-
readonly crv: "P-384";
|
|
139
|
-
readonly x: "<x>";
|
|
140
|
-
readonly y: "<y>";
|
|
141
|
-
readonly alg: "ES384";
|
|
142
|
-
readonly use: "sig";
|
|
143
|
-
};
|
|
144
|
-
readonly jwks: {
|
|
145
|
-
readonly keys: readonly [{
|
|
146
|
-
readonly kid: "controller-didcomm-enc-001";
|
|
147
|
-
readonly kty: "EC";
|
|
148
|
-
readonly crv: "P-384";
|
|
149
|
-
readonly x: "<enc-x>";
|
|
150
|
-
readonly y: "<enc-y>";
|
|
151
|
-
readonly use: "enc";
|
|
152
|
-
readonly purposes: readonly ["didcomm-enc"];
|
|
153
|
-
}];
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
export declare function buildExampleCommunicationIngestionPayload({ subjectDid, sent, ipsBundleBase64, }?: {
|
|
157
|
-
subjectDid?: "did:web:api.acme.org:individual:123" | undefined;
|
|
158
|
-
sent?: string | undefined;
|
|
159
|
-
ipsBundleBase64?: string | undefined;
|
|
160
|
-
}): {
|
|
161
|
-
body: {
|
|
162
|
-
data: {
|
|
163
|
-
type: string;
|
|
164
|
-
resource: {
|
|
165
|
-
resourceType: string;
|
|
166
|
-
status: string;
|
|
167
|
-
subject: {
|
|
168
|
-
reference: string;
|
|
169
|
-
};
|
|
170
|
-
category: {
|
|
171
|
-
coding: {
|
|
172
|
-
system: string;
|
|
173
|
-
code: string;
|
|
174
|
-
}[];
|
|
175
|
-
}[];
|
|
176
|
-
payload: {
|
|
177
|
-
contentAttachment: {
|
|
178
|
-
contentType: string;
|
|
179
|
-
title: string;
|
|
180
|
-
data: string;
|
|
181
|
-
};
|
|
182
|
-
}[];
|
|
183
|
-
note: {
|
|
184
|
-
text: string;
|
|
185
|
-
}[];
|
|
186
|
-
meta: {
|
|
187
|
-
claims: {
|
|
188
|
-
'@context': string;
|
|
189
|
-
"Communication.category": string;
|
|
190
|
-
"Communication.subject": "did:web:api.acme.org:individual:123";
|
|
191
|
-
"Communication.sent": string;
|
|
192
|
-
"Communication.content-attachment-type": string;
|
|
193
|
-
"Communication.text": string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
}[];
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
export declare function buildExampleDocumentReferenceSearchPayload(subjectDid?: "did:web:api.acme.org:individual:123"): {
|
|
201
|
-
thid: string;
|
|
202
|
-
body: {
|
|
203
|
-
resourceType: string;
|
|
204
|
-
type: string;
|
|
205
|
-
entry: {
|
|
206
|
-
request: {
|
|
207
|
-
method: string;
|
|
208
|
-
url: string;
|
|
209
|
-
};
|
|
210
|
-
}[];
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
export declare function cloneExample<T>(value: T): T;
|
|
214
|
-
export type ExampleHostedTenantRouteContext = Readonly<{
|
|
215
|
-
alternateName: string;
|
|
216
|
-
jurisdiction: string;
|
|
217
|
-
version: string;
|
|
218
|
-
sector: string;
|
|
219
|
-
}>;
|
|
220
|
-
export declare function buildExampleHostedTenantBaseUrl(input: ExampleHostedTenantRouteContext): string;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
// Always create JSDoc, do not use strings inline in keys nor values, use types instead, and reuse the data test examples.
|
|
3
|
-
import { DataspaceSectors } from '../constants/sectors';
|
|
4
|
-
import { HostNetworkTypes } from '../constants/network';
|
|
5
|
-
import { HealthcareActorRoles, HealthcareBasicSections, HealthcareConsentPurposes, } from '../constants/healthcare';
|
|
6
|
-
import { CommunicationClaim } from '../models/interoperable-claims/communication-claims';
|
|
7
|
-
/**
|
|
8
|
-
* Shared low-level example fragments reused by multiple flow-specific example modules.
|
|
9
|
-
*
|
|
10
|
-
* Non-negotiable rule:
|
|
11
|
-
*
|
|
12
|
-
* - example DIDs, emails, actor identifiers, sections, codes, and date windows
|
|
13
|
-
* must be imported from this module
|
|
14
|
-
* - example files must not re-hardcode those fixture values inline
|
|
15
|
-
* - all values below are synthetic documentation/test fixtures, never real data
|
|
16
|
-
*/
|
|
17
|
-
export const EXAMPLE_TENANT_IDENTIFIER = 'acme-id';
|
|
18
|
-
export const EXAMPLE_JURISDICTION = 'ES';
|
|
19
|
-
export const EXAMPLE_NETWORK_TYPE = HostNetworkTypes.Test;
|
|
20
|
-
export const EXAMPLE_ROUTE_VERSION = 'v1';
|
|
21
|
-
export const EXAMPLE_SECTOR = DataspaceSectors.HealthCare;
|
|
22
|
-
export const EXAMPLE_EMAIL_CONTROLLER_ORG = 'controller@acme.org';
|
|
23
|
-
export const EXAMPLE_EMAIL_CONTROLLER_INDIVIDUAL = 'ana.parent@example.org';
|
|
24
|
-
export const EXAMPLE_TENANT_ROUTE_CONTEXT = {
|
|
25
|
-
tenantId: EXAMPLE_TENANT_IDENTIFIER,
|
|
26
|
-
jurisdiction: EXAMPLE_JURISDICTION,
|
|
27
|
-
sector: EXAMPLE_SECTOR,
|
|
28
|
-
};
|
|
29
|
-
export const EXAMPLE_HOST_ROUTE_CONTEXT = {
|
|
30
|
-
jurisdiction: EXAMPLE_JURISDICTION,
|
|
31
|
-
sector: HostNetworkTypes.Test,
|
|
32
|
-
};
|
|
33
|
-
export const EXAMPLE_CONTROLLER_DID = 'did:web:people.acme.org:controllers:primary';
|
|
34
|
-
export const EXAMPLE_CONTROLLER_EMAIL = EXAMPLE_EMAIL_CONTROLLER_ORG;
|
|
35
|
-
export const EXAMPLE_CONTROLLER_SAME_AS = `mailto:${EXAMPLE_CONTROLLER_EMAIL}`;
|
|
36
|
-
export const EXAMPLE_API_ORGANIZATION_DID = 'did:web:api.acme.org';
|
|
37
|
-
export const EXAMPLE_SERVICE_PUBLIC_DID = 'did:web:public.acme.org';
|
|
38
|
-
export const EXAMPLE_SUBJECT_DID = 'did:web:api.acme.org:individual:123';
|
|
39
|
-
export const EXAMPLE_PROFESSIONAL_DID = 'did:web:api.acme.org:professional:1';
|
|
40
|
-
export const EXAMPLE_PROVIDER_ORGANIZATION_DID = 'did:web:hospital.acme.org';
|
|
41
|
-
export const EXAMPLE_PROVIDER_ORGANIZATION_URL = 'https://hospital.acme.org';
|
|
42
|
-
export const EXAMPLE_GATEWAY_PUBLIC_ORIGIN = 'https://gateway.example.com';
|
|
43
|
-
export const EXAMPLE_HOST_PUBLIC_HOSTNAME = 'host.example.com';
|
|
44
|
-
export const EXAMPLE_DEFAULT_ICA_URL = 'https://ica.example.org';
|
|
45
|
-
export const EXAMPLE_DEFAULT_ICA_DID = 'did:web:ica.example.org';
|
|
46
|
-
export const EXAMPLE_HOSTING_OPERATOR_DID = 'did:web:host.example.org';
|
|
47
|
-
export const EXAMPLE_TENANT_SERVICE_DID = 'did:web:provider.example.org';
|
|
48
|
-
export const EXAMPLE_SECONDARY_TENANT_SERVICE_DID = 'did:web:provider-b.example.org';
|
|
49
|
-
export const EXAMPLE_HOSTING_OPERATOR_DSPACE_VERSION_URL = `https://host.example.org/host/cds-ES/${EXAMPLE_ROUTE_VERSION}/${EXAMPLE_NETWORK_TYPE}/.well-known/dspace-version`;
|
|
50
|
-
export const EXAMPLE_HOSTING_OPERATOR_CATALOG_ARTIFACT_URL = `https://host.example.org/host/cds-ES/${EXAMPLE_ROUTE_VERSION}/${EXAMPLE_NETWORK_TYPE}/dsp/catalog/dcat.json`;
|
|
51
|
-
/** @deprecated Use `EXAMPLE_HOSTING_OPERATOR_DSPACE_VERSION_URL`. */
|
|
52
|
-
export const EXAMPLE_HOSTING_OPERATOR_CATALOG_URL = EXAMPLE_HOSTING_OPERATOR_DSPACE_VERSION_URL;
|
|
53
|
-
export const EXAMPLE_PROVIDER_PUBLISHED_ENDPOINT_URL = 'https://host.example.org/catalog/provider-a';
|
|
54
|
-
export const EXAMPLE_PROVIDER_LEGAL_NAME = 'ACME Health Provider';
|
|
55
|
-
export const EXAMPLE_SECONDARY_PROVIDER_LEGAL_NAME = 'Reader Only Provider';
|
|
56
|
-
export const EXAMPLE_SECONDARY_PROVIDER_ALTERNATE_NAME = 'reader-only';
|
|
57
|
-
export const EXAMPLE_COVERAGE_SCOPE_EU = 'EU';
|
|
58
|
-
export const EXAMPLE_NON_EU_COUNTRY = 'US';
|
|
59
|
-
export const EXAMPLE_SECONDARY_EU_COUNTRY = 'PT';
|
|
60
|
-
export const EXAMPLE_PATIENT_DID = 'did:web:patient.example';
|
|
61
|
-
export const EXAMPLE_PROFILE_PROVIDER_DID = 'did:web:provider.example.org';
|
|
62
|
-
export const EXAMPLE_PROFILE_ORGANIZATION_DID = 'did:web:org.example';
|
|
63
|
-
export const EXAMPLE_PROFILE_ID = 'profile-1';
|
|
64
|
-
export const EXAMPLE_PROFILE_EMAIL = 'user@example.com';
|
|
65
|
-
export const EXAMPLE_PRACTITIONER_DID = 'did:web:practitioner.example';
|
|
66
|
-
export const EXAMPLE_GENERIC_SUBJECT_DID = 'did:web:subject.example';
|
|
67
|
-
export const EXAMPLE_EMAIL_PROFESSIONAL = 'doctor.oncall@example.org';
|
|
68
|
-
export const EXAMPLE_EMAIL_RELATED_PERSON = 'parent.guardian@example.org';
|
|
69
|
-
export const EXAMPLE_HEALTHCARE_JURISDICTION = 'ES';
|
|
70
|
-
export const EXAMPLE_ORGANIZATION_CONTROLLER_ROLE = 'RESPRSN';
|
|
71
|
-
export const EXAMPLE_HEALTHCARE_ACTOR_ROLE_PHYSICIAN = HealthcareActorRoles.Physician;
|
|
72
|
-
export const EXAMPLE_HEALTHCARE_ACTOR_ROLE_RECEPTIONIST = 'ISCO-08|4226';
|
|
73
|
-
export const EXAMPLE_HEALTHCARE_ROLE_PHYSICIAN_TEXT = 'physician';
|
|
74
|
-
export const EXAMPLE_RELATED_PERSON_ROLE = 'v3-RoleCode|RESPRSN';
|
|
75
|
-
export const EXAMPLE_CLINICAL_SECTION_RESULTS = 'LOINC|30954-2';
|
|
76
|
-
export const EXAMPLE_CLINICAL_SECTION_PATIENT_SUMMARY = 'LOINC|60591-5';
|
|
77
|
-
export const EXAMPLE_CLINICAL_SECTION_HISTORY_MEDICATION = 'LOINC|10160-0';
|
|
78
|
-
export const EXAMPLE_CLINICAL_SECTION_ALLERGIES = HealthcareBasicSections.AllergiesAndIntolerances.claim;
|
|
79
|
-
export const EXAMPLE_CLINICAL_CODE_PROBLEM = 'LOINC|11450-4';
|
|
80
|
-
export const EXAMPLE_CONSENT_DATE = '2026-05-20';
|
|
81
|
-
export const EXAMPLE_CONSENT_PERIOD_END = '2026-05-01T00:00:00Z';
|
|
82
|
-
export const EXAMPLE_CONSENT_PURPOSE_TREATMENT = HealthcareConsentPurposes.Treatment;
|
|
83
|
-
export const EXAMPLE_CONSENT_IDENTIFIER = 'urn:uuid:consent-example-001';
|
|
84
|
-
export const EXAMPLE_CONSENT_PERIOD_START = '2026-05-20T00:00:00Z';
|
|
85
|
-
export const EXAMPLE_COMMUNICATION_IDENTIFIER = 'urn:uuid:communication-example-001';
|
|
86
|
-
export const EXAMPLE_IPS_BUNDLE_NOTE_TEXT = 'IPS ingestion request';
|
|
87
|
-
export const EXAMPLE_MEDICATION_STATEMENT_IDENTIFIER = 'urn:uuid:medication-statement-example-001';
|
|
88
|
-
export const EXAMPLE_MEDICATION_STATEMENT_STATUS = 'active';
|
|
89
|
-
export const EXAMPLE_MEDICATION_STATEMENT_CODE = 'http://www.nlm.nih.gov/research/umls/rxnorm|313782';
|
|
90
|
-
export const EXAMPLE_MEDICATION_STATEMENT_TEXT = 'atorvastatin 20 mg oral tablet';
|
|
91
|
-
export const EXAMPLE_EMPLOYEE_ACTIVATION_CODE = 'ACT-001';
|
|
92
|
-
export const EXAMPLE_DEVICE_CLIENT_ID = 'did:web:device-001';
|
|
93
|
-
export const EXAMPLE_CLINICAL_DATE_RANGE = {
|
|
94
|
-
start: '2026-01-01',
|
|
95
|
-
end: '2026-12-31',
|
|
96
|
-
};
|
|
97
|
-
export const EXAMPLE_CONTROLLER_SIGN_KEY = {
|
|
98
|
-
kid: 'controller-es384-001',
|
|
99
|
-
kty: 'EC',
|
|
100
|
-
crv: 'P-384',
|
|
101
|
-
x: '<x>',
|
|
102
|
-
y: '<y>',
|
|
103
|
-
alg: 'ES384',
|
|
104
|
-
use: 'sig',
|
|
105
|
-
};
|
|
106
|
-
export const EXAMPLE_CONTROLLER_ENCRYPTION_KEY = {
|
|
107
|
-
kid: 'controller-didcomm-enc-001',
|
|
108
|
-
kty: 'EC',
|
|
109
|
-
crv: 'P-384',
|
|
110
|
-
x: '<enc-x>',
|
|
111
|
-
y: '<enc-y>',
|
|
112
|
-
use: 'enc',
|
|
113
|
-
purposes: ['didcomm-enc'],
|
|
114
|
-
};
|
|
115
|
-
export const EXAMPLE_CONTROLLER_PUBLIC_KEYS = {
|
|
116
|
-
keys: [EXAMPLE_CONTROLLER_ENCRYPTION_KEY],
|
|
117
|
-
};
|
|
118
|
-
export const EXAMPLE_CONTROLLER_BINDING = {
|
|
119
|
-
did: EXAMPLE_CONTROLLER_DID,
|
|
120
|
-
sameAs: EXAMPLE_CONTROLLER_SAME_AS,
|
|
121
|
-
publicKeyJwk: EXAMPLE_CONTROLLER_SIGN_KEY,
|
|
122
|
-
jwks: EXAMPLE_CONTROLLER_PUBLIC_KEYS,
|
|
123
|
-
};
|
|
124
|
-
export function buildExampleCommunicationIngestionPayload({ subjectDid = EXAMPLE_SUBJECT_DID, sent = '2026-05-22T10:00:00Z', ipsBundleBase64 = '<base64-ips-bundle>', } = {}) {
|
|
125
|
-
// Good practice note:
|
|
126
|
-
// Communication claim keys in examples must come from `CommunicationClaim`
|
|
127
|
-
// instead of repeating raw `Communication.*` strings inline.
|
|
128
|
-
return {
|
|
129
|
-
body: {
|
|
130
|
-
data: [
|
|
131
|
-
{
|
|
132
|
-
type: 'Communication-ingestion-request-v1.0',
|
|
133
|
-
resource: {
|
|
134
|
-
resourceType: 'Communication',
|
|
135
|
-
status: 'completed',
|
|
136
|
-
subject: { reference: `Patient/${subjectDid}` },
|
|
137
|
-
category: [{
|
|
138
|
-
coding: [{
|
|
139
|
-
system: 'http://terminology.hl7.org/CodeSystem/communication-category',
|
|
140
|
-
code: 'notification',
|
|
141
|
-
}],
|
|
142
|
-
}],
|
|
143
|
-
payload: [
|
|
144
|
-
{
|
|
145
|
-
contentAttachment: {
|
|
146
|
-
contentType: 'application/fhir+json',
|
|
147
|
-
title: 'IPS Document Bundle',
|
|
148
|
-
data: ipsBundleBase64,
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
note: [{ text: 'IPS ingestion request' }],
|
|
153
|
-
meta: {
|
|
154
|
-
claims: {
|
|
155
|
-
'@context': 'org.hl7.fhir.r4',
|
|
156
|
-
[CommunicationClaim.Category]: 'http://terminology.hl7.org/CodeSystem/communication-category|notification',
|
|
157
|
-
[CommunicationClaim.Subject]: subjectDid,
|
|
158
|
-
[CommunicationClaim.Sent]: sent,
|
|
159
|
-
[CommunicationClaim.ContentAttachmentType]: 'application/fhir+json',
|
|
160
|
-
[CommunicationClaim.Text]: 'IPS ingestion request',
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export function buildExampleDocumentReferenceSearchPayload(subjectDid = EXAMPLE_SUBJECT_DID) {
|
|
170
|
-
return {
|
|
171
|
-
thid: 'search-documentreference-example',
|
|
172
|
-
body: {
|
|
173
|
-
resourceType: 'Bundle',
|
|
174
|
-
type: 'batch',
|
|
175
|
-
entry: [
|
|
176
|
-
{
|
|
177
|
-
request: {
|
|
178
|
-
method: 'GET',
|
|
179
|
-
url: `DocumentReference?subject=${encodeURIComponent(subjectDid)}`,
|
|
180
|
-
},
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
},
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
export function cloneExample(value) {
|
|
187
|
-
return JSON.parse(JSON.stringify(value));
|
|
188
|
-
}
|
|
189
|
-
export function buildExampleHostedTenantBaseUrl(input) {
|
|
190
|
-
return `${EXAMPLE_GATEWAY_PUBLIC_ORIGIN}/${input.alternateName}/cds-${input.jurisdiction.toLowerCase()}/${input.version}/${input.sector}`;
|
|
191
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computes the SHA3-256 HMAC of a plaintext value.
|
|
3
|
-
*
|
|
4
|
-
* @param plaintext UTF-8 plaintext to authenticate.
|
|
5
|
-
* @param hmacKeyBytes Raw HMAC key bytes.
|
|
6
|
-
*/
|
|
7
|
-
export declare function computeHmacSha256(plaintext: string, hmacKeyBytes: Uint8Array): Promise<Uint8Array>;
|
|
8
|
-
/**
|
|
9
|
-
* Computes the SHA3-256 HMAC of a plaintext value and returns it as Base64URL.
|
|
10
|
-
*
|
|
11
|
-
* @param plaintext UTF-8 plaintext to authenticate.
|
|
12
|
-
* @param hmacKeyBytes Raw HMAC key bytes.
|
|
13
|
-
*/
|
|
14
|
-
export declare function computeHmacSha256Base64Url(plaintext: string, hmacKeyBytes: Uint8Array): Promise<string>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
// File: crypto-ts/hmac.ts
|
|
3
|
-
// Use explicit .js subpaths to satisfy package exports in Metro/Node ESM.
|
|
4
|
-
import { hmac } from '@noble/hashes/hmac.js';
|
|
5
|
-
import { sha3_256 } from '@noble/hashes/sha3.js';
|
|
6
|
-
import { Content } from './utils/content';
|
|
7
|
-
/**
|
|
8
|
-
* Computes the SHA3-256 HMAC of a plaintext value.
|
|
9
|
-
*
|
|
10
|
-
* @param plaintext UTF-8 plaintext to authenticate.
|
|
11
|
-
* @param hmacKeyBytes Raw HMAC key bytes.
|
|
12
|
-
*/
|
|
13
|
-
export async function computeHmacSha256(plaintext, hmacKeyBytes) {
|
|
14
|
-
return await hmac(sha3_256, hmacKeyBytes, Content.stringToBytesUTF8(plaintext));
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Computes the SHA3-256 HMAC of a plaintext value and returns it as Base64URL.
|
|
18
|
-
*
|
|
19
|
-
* @param plaintext UTF-8 plaintext to authenticate.
|
|
20
|
-
* @param hmacKeyBytes Raw HMAC key bytes.
|
|
21
|
-
*/
|
|
22
|
-
export async function computeHmacSha256Base64Url(plaintext, hmacKeyBytes) {
|
|
23
|
-
return Content.bytesToRawBase64UrlSafe(await computeHmacSha256(plaintext, hmacKeyBytes));
|
|
24
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type ClinicalSectionI18nMap = Readonly<Record<`org.loinc.${string}`, string>>;
|
|
2
|
-
export declare const clinicalSectionsBaseI18nEn: Readonly<Record<`org.loinc.${string}`, string>>;
|
|
3
|
-
export declare const clinicalDocTypesI18nEn: Readonly<Record<`org.loinc.${string}`, string>>;
|
|
4
|
-
export declare const clinicalSectionAdditionalI18nEn: Readonly<Record<`org.loinc.${string}`, string>>;
|
|
5
|
-
export declare const clinicalSectionI18nEn: ClinicalSectionI18nMap;
|
|
6
|
-
export declare const clinicalSectionsI18nEn: Readonly<Record<`org.loinc.${string}`, string>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { clinicalDocTypes, clinicalSectionAdditional, clinicalSectionsBase, } from '../models/clinical-sections.en';
|
|
2
|
-
import { loincI18nKey } from '../models/clinical-sections';
|
|
3
|
-
function toClinicalI18nMap(source) {
|
|
4
|
-
const entries = Object.entries(source).map(([code, label]) => [loincI18nKey(code), label]);
|
|
5
|
-
return Object.freeze(Object.fromEntries(entries));
|
|
6
|
-
}
|
|
7
|
-
export const clinicalSectionsBaseI18nEn = toClinicalI18nMap(clinicalSectionsBase);
|
|
8
|
-
export const clinicalDocTypesI18nEn = toClinicalI18nMap(clinicalDocTypes);
|
|
9
|
-
export const clinicalSectionAdditionalI18nEn = toClinicalI18nMap(clinicalSectionAdditional);
|
|
10
|
-
export const clinicalSectionI18nEn = Object.freeze({
|
|
11
|
-
...clinicalSectionsBaseI18nEn,
|
|
12
|
-
...clinicalDocTypesI18nEn,
|
|
13
|
-
...clinicalSectionAdditionalI18nEn,
|
|
14
|
-
});
|
|
15
|
-
export const clinicalSectionsI18nEn = clinicalSectionI18nEn;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type RoleCodeI18nKey = `org.ilo.isco-08.${string}` | `org.isco08.${string}` | `org.hl7.v3.personalRelationship.${string}` | `org.hl7.v3.roleCode.${string}`;
|
|
2
|
-
export type RoleCodeI18nMap = Readonly<Record<RoleCodeI18nKey, string>>;
|
|
3
|
-
export declare const roleCodeI18nEn: Readonly<Record<RoleCodeI18nKey, string>>;
|
|
4
|
-
export declare const healthcareRoleI18nEn: Readonly<Record<RoleCodeI18nKey, string>>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HealthcareRolesByFamily } from '../constants/healthcare';
|
|
2
|
-
function buildRoleCodeI18nMap() {
|
|
3
|
-
const baseEntries = Object.values(HealthcareRolesByFamily)
|
|
4
|
-
.flatMap((catalog) => Object.values(catalog))
|
|
5
|
-
.map((descriptor) => [descriptor.i18nKey, descriptor.titleEn]);
|
|
6
|
-
const legacyIscoAliases = baseEntries
|
|
7
|
-
.filter(([key]) => key.startsWith('org.ilo.isco-08.'))
|
|
8
|
-
.map(([key, label]) => [key.replace('org.ilo.isco-08.', 'org.isco08.'), label]);
|
|
9
|
-
const entries = [...baseEntries, ...legacyIscoAliases];
|
|
10
|
-
return Object.freeze(Object.fromEntries(entries));
|
|
11
|
-
}
|
|
12
|
-
export const roleCodeI18nEn = buildRoleCodeI18nMap();
|
|
13
|
-
export const healthcareRoleI18nEn = roleCodeI18nEn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './AesManager';
|
|
2
|
-
export * from './CryptographyService';
|
|
3
|
-
export * from './constants';
|
|
4
|
-
export * from './examples';
|
|
5
|
-
export * from './hmac';
|
|
6
|
-
export * from './i18n/clinical-sections.i18n';
|
|
7
|
-
export * from './i18n/role-codes.i18n';
|
|
8
|
-
export * from './models';
|
|
9
|
-
export * from './storage';
|
|
10
|
-
export * from './utils';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './AesManager';
|
|
2
|
-
export * from './CryptographyService';
|
|
3
|
-
export * from './constants';
|
|
4
|
-
export * from './examples';
|
|
5
|
-
export * from './hmac';
|
|
6
|
-
export * from './i18n/clinical-sections.i18n';
|
|
7
|
-
export * from './i18n/role-codes.i18n';
|
|
8
|
-
export * from './models';
|
|
9
|
-
export * from './storage';
|
|
10
|
-
export * from './utils';
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* JWK shapes and RFC 7638 thumbprints for ML-KEM and ML-DSA.
|
|
3
|
-
*
|
|
4
|
-
* References (normative)
|
|
5
|
-
* @see https://www.rfc-editor.org/rfc/rfc7638 // JWK Thumbprint
|
|
6
|
-
* @see https://www.rfc-editor.org/rfc/rfc7517 // JWK
|
|
7
|
-
* @see https://www.rfc-editor.org/rfc/rfc7515#appendix-C // base64url (no padding)
|
|
8
|
-
* @see https://www.rfc-editor.org/rfc/rfc8037 // OKP key type
|
|
9
|
-
* @see https://www.rfc-editor.org/rfc/rfc9278 // JWK Thumbprint URI
|
|
10
|
-
*
|
|
11
|
-
* Post-quantum mappings
|
|
12
|
-
* @see https://datatracker.ietf.org/doc/draft-ietf-jose-pqc-kem/ // JOSE PQ KEM
|
|
13
|
-
* @see https://datatracker.ietf.org/doc/draft-ietf-cose-dilithium/ // ML-DSA for JOSE/COSE (datatracker)
|
|
14
|
-
* @see https://cose-wg.github.io/draft-ietf-cose-dilithium/draft-ietf-cose-dilithium.html // ML-DSA (GitHub pages)
|
|
15
|
-
*
|
|
16
|
-
* NIST algorithm specs
|
|
17
|
-
* @see https://csrc.nist.gov/pubs/fips/203/final // FIPS 203 ML-KEM (landing)
|
|
18
|
-
* @see https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.203.pdf // FIPS 203 PDF
|
|
19
|
-
* @see https://csrc.nist.gov/pubs/fips/204/final // FIPS 204 ML-DSA (landing)
|
|
20
|
-
* @see https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.204.pdf // FIPS 204 PDF
|
|
21
|
-
*/
|
|
22
|
-
export type CurveMlKem512 = "ML-KEM-512";
|
|
23
|
-
export type CurveMlKem768 = "ML-KEM-768";
|
|
24
|
-
export type CurveMlKem1024 = "ML-KEM-1024";
|
|
25
|
-
export type MlkemCurve = CurveMlKem512 | CurveMlKem768 | CurveMlKem1024;
|
|
26
|
-
export type AlgMlDsa2 = "ML-DSA-44";
|
|
27
|
-
export type AlgMlDsa3 = "ML-DSA-65";
|
|
28
|
-
export type AlgMlDsa5 = "ML-DSA-87";
|
|
29
|
-
export type MldsaAlg = AlgMlDsa2 | AlgMlDsa3 | AlgMlDsa5;
|
|
30
|
-
export type MlkemBaseJwk = {
|
|
31
|
-
kty: "OKP";
|
|
32
|
-
crv: MlkemCurve;
|
|
33
|
-
x: string;
|
|
34
|
-
};
|
|
35
|
-
export type MldsaBaseJwk = {
|
|
36
|
-
kty: "AKP";
|
|
37
|
-
alg: MldsaAlg;
|
|
38
|
-
pub: string;
|
|
39
|
-
};
|
|
40
|
-
export type EcBaseJwk = {
|
|
41
|
-
kty: "EC";
|
|
42
|
-
crv: string;
|
|
43
|
-
x: string;
|
|
44
|
-
y: string;
|
|
45
|
-
};
|
|
46
|
-
export type BaseJwk = MlkemBaseJwk | MldsaBaseJwk | EcBaseJwk;
|
|
47
|
-
export interface MlkemPublicJwk extends MlkemBaseJwk {
|
|
48
|
-
kid?: string;
|
|
49
|
-
}
|
|
50
|
-
export interface MldsaPublicJwk extends MldsaBaseJwk {
|
|
51
|
-
kid?: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Represents a public key for classic cryptography algorithms like Elliptic Curve.
|
|
55
|
-
*/
|
|
56
|
-
export interface ClassicPublicJwk {
|
|
57
|
-
kty: "EC";
|
|
58
|
-
crv: string;
|
|
59
|
-
x: string;
|
|
60
|
-
y: string;
|
|
61
|
-
kid?: string;
|
|
62
|
-
/**
|
|
63
|
-
* JOSE signing algorithm for classical EC keys.
|
|
64
|
-
*
|
|
65
|
-
* Examples:
|
|
66
|
-
* - `ES256` for P-256
|
|
67
|
-
* - `ES384` for P-384
|
|
68
|
-
* - `ES256K` for secp256k1
|
|
69
|
-
*/
|
|
70
|
-
alg?: "ES256" | "ES384" | "ES256K";
|
|
71
|
-
use?: string;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Represents a public key in JWK format, suitable for public documents like DIDs.
|
|
75
|
-
* This is a union of all supported public key types, both Post-Quantum and classic.
|
|
76
|
-
*/
|
|
77
|
-
export type PublicJwk = MlkemPublicJwk | MldsaPublicJwk | ClassicPublicJwk;
|
|
78
|
-
export interface MlkemPrivateJwk extends MlkemPublicJwk {
|
|
79
|
-
dBytes: Uint8Array;
|
|
80
|
-
}
|
|
81
|
-
export interface MldsaPrivateJwk extends MldsaPublicJwk {
|
|
82
|
-
privBytes: Uint8Array;
|
|
83
|
-
}
|
|
84
|
-
export interface RecipientInfo {
|
|
85
|
-
tenantId: string;
|
|
86
|
-
header?: Record<string, any>;
|
|
87
|
-
}
|
|
88
|
-
export interface SignerInfo {
|
|
89
|
-
tenantId: string;
|
|
90
|
-
protectedHeader: Record<string, any>;
|
|
91
|
-
unprotectedHeader?: Record<string, any>;
|
|
92
|
-
}
|
|
93
|
-
export interface ProtectRequest {
|
|
94
|
-
stream: Uint8Array;
|
|
95
|
-
recipients: RecipientInfo[];
|
|
96
|
-
protectedHeader?: Record<string, any>;
|
|
97
|
-
unprotectedHeader?: Record<string, any>;
|
|
98
|
-
aad?: Uint8Array;
|
|
99
|
-
input: Record<string, any>;
|
|
100
|
-
meta?: {
|
|
101
|
-
jws?: {
|
|
102
|
-
protected?: Record<string, any>;
|
|
103
|
-
unprotected?: Record<string, any>;
|
|
104
|
-
};
|
|
105
|
-
jwe?: {
|
|
106
|
-
header?: Record<string, any>;
|
|
107
|
-
};
|
|
108
|
-
bearer?: {
|
|
109
|
-
jwt: {
|
|
110
|
-
header?: Record<string, any>;
|
|
111
|
-
payload?: Record<string, any>;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
export interface JWEData {
|
|
117
|
-
protected?: string;
|
|
118
|
-
unprotected?: Record<string, any>;
|
|
119
|
-
recipients: Array<{
|
|
120
|
-
header?: Record<string, any>;
|
|
121
|
-
encrypted_key?: string;
|
|
122
|
-
}>;
|
|
123
|
-
aad?: string;
|
|
124
|
-
iv: string;
|
|
125
|
-
ciphertext: string;
|
|
126
|
-
tag: string;
|
|
127
|
-
}
|
|
128
|
-
export interface SignRequest {
|
|
129
|
-
payload: Uint8Array;
|
|
130
|
-
signers: SignerInfo[];
|
|
131
|
-
}
|
|
132
|
-
export interface JwsObject {
|
|
133
|
-
payload: string;
|
|
134
|
-
signatures: Array<{
|
|
135
|
-
protected: string;
|
|
136
|
-
unprotected?: Record<string, any>;
|
|
137
|
-
signature: string;
|
|
138
|
-
}>;
|
|
139
|
-
}
|