gdc-sdk-front-ts 2.2.1 → 2.3.1
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/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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- 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,82 +0,0 @@
|
|
|
1
|
-
import type { CommunicationInput } from './communication-bundle-contracts.js';
|
|
2
|
-
import { type CommunicationDraft } from './communication-draft.js';
|
|
3
|
-
import type { ResourceAttachmentOptions } from './communication-resource-helpers.js';
|
|
4
|
-
export declare const ConsentCommunicationOperationKinds: Readonly<{
|
|
5
|
-
Add: "add";
|
|
6
|
-
Update: "update";
|
|
7
|
-
Disable: "disable";
|
|
8
|
-
Enable: "enable";
|
|
9
|
-
Delete: "delete";
|
|
10
|
-
}>;
|
|
11
|
-
export type ConsentCommunicationOperationKind = typeof ConsentCommunicationOperationKinds[keyof typeof ConsentCommunicationOperationKinds];
|
|
12
|
-
export declare const ConsentCommunicationTargetKinds: Readonly<{
|
|
13
|
-
Professional: "professional";
|
|
14
|
-
Person: "person";
|
|
15
|
-
Organization: "organization";
|
|
16
|
-
Department: "department";
|
|
17
|
-
Office: "office";
|
|
18
|
-
}>;
|
|
19
|
-
export type ConsentCommunicationTargetKind = typeof ConsentCommunicationTargetKinds[keyof typeof ConsentCommunicationTargetKinds];
|
|
20
|
-
export type ConsentCommunicationSectionSelection = Readonly<{
|
|
21
|
-
/** Core IPS sections (typically 12-16 sections). */
|
|
22
|
-
core: string[];
|
|
23
|
-
/** Extended sections outside the core IPS subset (optional). */
|
|
24
|
-
extended?: string[];
|
|
25
|
-
}>;
|
|
26
|
-
export type ConsentCommunicationTarget = Readonly<{
|
|
27
|
-
kind: ConsentCommunicationTargetKind;
|
|
28
|
-
/** Canonical actor identifier: did:web, email, phone token, organization id, etc. */
|
|
29
|
-
identifier: string;
|
|
30
|
-
/**
|
|
31
|
-
* Professional roles to apply.
|
|
32
|
-
* - professional/person targets usually carry one role
|
|
33
|
-
* - organization/department/office can carry many roles
|
|
34
|
-
*/
|
|
35
|
-
roles?: string[];
|
|
36
|
-
}>;
|
|
37
|
-
export type ConsentCommunicationOperationInput = Readonly<{
|
|
38
|
-
operationKind: ConsentCommunicationOperationKind;
|
|
39
|
-
operationId: string;
|
|
40
|
-
subject: string;
|
|
41
|
-
purpose: string;
|
|
42
|
-
target: ConsentCommunicationTarget;
|
|
43
|
-
sections: ConsentCommunicationSectionSelection;
|
|
44
|
-
consentIdentifier?: string;
|
|
45
|
-
consentDate?: string;
|
|
46
|
-
periodStart?: string;
|
|
47
|
-
periodEnd?: string;
|
|
48
|
-
codeDisplay?: string;
|
|
49
|
-
sourcePortalUrl?: string;
|
|
50
|
-
attachmentUrl?: string;
|
|
51
|
-
attachmentContentType?: string;
|
|
52
|
-
attachmentTitle?: string;
|
|
53
|
-
noteText?: string;
|
|
54
|
-
}>;
|
|
55
|
-
export type ConsentCommunicationBatchInput = Readonly<{
|
|
56
|
-
thid?: string;
|
|
57
|
-
subject: string;
|
|
58
|
-
sender?: string;
|
|
59
|
-
recipient?: string | string[];
|
|
60
|
-
operations: ConsentCommunicationOperationInput[];
|
|
61
|
-
summaryText?: string;
|
|
62
|
-
}>;
|
|
63
|
-
/**
|
|
64
|
-
* Asserts that the provided operation has the minimum canonical fields.
|
|
65
|
-
* This helper is runtime-neutral and does not perform any network I/O.
|
|
66
|
-
*/
|
|
67
|
-
export declare function assertConsentCommunicationOperationInput(input: ConsentCommunicationOperationInput): ConsentCommunicationOperationInput;
|
|
68
|
-
/**
|
|
69
|
-
* Maps one abstract consent operation into claim fields suitable to be carried
|
|
70
|
-
* as a claims-only `Consent` resource in `Communication.payload[]`.
|
|
71
|
-
*/
|
|
72
|
-
export declare function buildConsentOperationClaims(input: ConsentCommunicationOperationInput): Record<string, unknown>;
|
|
73
|
-
/**
|
|
74
|
-
* Appends one abstract consent operation as a claims-only `Consent` payload
|
|
75
|
-
* entry inside a local `CommunicationDraft`.
|
|
76
|
-
*/
|
|
77
|
-
export declare function addConsentOperationToDraft(draft: CommunicationDraft, operation: ConsentCommunicationOperationInput, options?: ResourceAttachmentOptions): CommunicationDraft;
|
|
78
|
-
/**
|
|
79
|
-
* Builds a `CommunicationInput` envelope that carries abstract consent
|
|
80
|
-
* operations in top-level `claims` for BFF/backend orchestration.
|
|
81
|
-
*/
|
|
82
|
-
export declare function buildConsentOperationsCommunicationInput(input: ConsentCommunicationBatchInput): CommunicationInput;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
import { ResourceTypesFhirR4 } from 'gdc-common-utils-ts/constants/fhir-resource-types';
|
|
3
|
-
import { ClaimConsent } from 'gdc-common-utils-ts/models/consent-rule';
|
|
4
|
-
import { CommunicationClaim } from 'gdc-common-utils-ts/models/interoperable-claims/communication-claims';
|
|
5
|
-
import { addClaimsResourceToDraft, } from './communication-draft.js';
|
|
6
|
-
export const ConsentCommunicationOperationKinds = Object.freeze({
|
|
7
|
-
Add: 'add',
|
|
8
|
-
Update: 'update',
|
|
9
|
-
Disable: 'disable',
|
|
10
|
-
Enable: 'enable',
|
|
11
|
-
Delete: 'delete',
|
|
12
|
-
});
|
|
13
|
-
export const ConsentCommunicationTargetKinds = Object.freeze({
|
|
14
|
-
Professional: 'professional',
|
|
15
|
-
Person: 'person',
|
|
16
|
-
Organization: 'organization',
|
|
17
|
-
Department: 'department',
|
|
18
|
-
Office: 'office',
|
|
19
|
-
});
|
|
20
|
-
function unique(values) {
|
|
21
|
-
if (!values?.length)
|
|
22
|
-
return [];
|
|
23
|
-
return [...new Set(values.map((value) => String(value || '').trim()).filter(Boolean))];
|
|
24
|
-
}
|
|
25
|
-
function setClaimValues(claims, claimKey, values) {
|
|
26
|
-
return {
|
|
27
|
-
...claims,
|
|
28
|
-
[claimKey]: unique(values).join(','),
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function normalizeOperation(input) {
|
|
32
|
-
const core = unique(input.sections.core);
|
|
33
|
-
const extended = unique(input.sections.extended);
|
|
34
|
-
const roles = unique(input.target.roles);
|
|
35
|
-
return {
|
|
36
|
-
...input,
|
|
37
|
-
operationId: String(input.operationId || '').trim(),
|
|
38
|
-
subject: String(input.subject || '').trim(),
|
|
39
|
-
purpose: String(input.purpose || '').trim(),
|
|
40
|
-
target: {
|
|
41
|
-
...input.target,
|
|
42
|
-
identifier: String(input.target.identifier || '').trim(),
|
|
43
|
-
roles,
|
|
44
|
-
},
|
|
45
|
-
sections: {
|
|
46
|
-
core,
|
|
47
|
-
...(extended.length ? { extended } : {}),
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Asserts that the provided operation has the minimum canonical fields.
|
|
53
|
-
* This helper is runtime-neutral and does not perform any network I/O.
|
|
54
|
-
*/
|
|
55
|
-
export function assertConsentCommunicationOperationInput(input) {
|
|
56
|
-
const normalized = normalizeOperation(input);
|
|
57
|
-
if (!normalized.operationId) {
|
|
58
|
-
throw new TypeError('operationId is required.');
|
|
59
|
-
}
|
|
60
|
-
if (!normalized.subject) {
|
|
61
|
-
throw new TypeError('subject is required.');
|
|
62
|
-
}
|
|
63
|
-
if (!normalized.purpose) {
|
|
64
|
-
throw new TypeError('purpose is required.');
|
|
65
|
-
}
|
|
66
|
-
if (!normalized.target.identifier) {
|
|
67
|
-
throw new TypeError('target.identifier is required.');
|
|
68
|
-
}
|
|
69
|
-
if (normalized.sections.core.length === 0) {
|
|
70
|
-
throw new TypeError('sections.core must contain at least one section code.');
|
|
71
|
-
}
|
|
72
|
-
return normalized;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Maps one abstract consent operation into claim fields suitable to be carried
|
|
76
|
-
* as a claims-only `Consent` resource in `Communication.payload[]`.
|
|
77
|
-
*/
|
|
78
|
-
export function buildConsentOperationClaims(input) {
|
|
79
|
-
const op = assertConsentCommunicationOperationInput(input);
|
|
80
|
-
const roles = unique(op.target.roles);
|
|
81
|
-
const coreSections = unique(op.sections.core);
|
|
82
|
-
const extendedSections = unique(op.sections.extended);
|
|
83
|
-
const allSections = unique([...coreSections, ...extendedSections]);
|
|
84
|
-
const consentDate = String(op.consentDate || '').trim() || new Date().toISOString().slice(0, 10);
|
|
85
|
-
let claims = {
|
|
86
|
-
'@context': 'org.hl7.fhir.api',
|
|
87
|
-
[ClaimConsent.subject]: op.subject,
|
|
88
|
-
[ClaimConsent.identifier]: op.consentIdentifier,
|
|
89
|
-
[ClaimConsent.date]: consentDate,
|
|
90
|
-
[ClaimConsent.periodStart]: op.periodStart,
|
|
91
|
-
[ClaimConsent.periodEnd]: op.periodEnd,
|
|
92
|
-
[ClaimConsent.attachmentContentType]: op.attachmentContentType,
|
|
93
|
-
[ClaimConsent.attachmentData]: op.attachmentUrl,
|
|
94
|
-
[ClaimConsent.attachmentId]: op.attachmentTitle,
|
|
95
|
-
};
|
|
96
|
-
claims = setClaimValues(claims, ClaimConsent.actorIdentifier, [op.target.identifier]);
|
|
97
|
-
claims = setClaimValues(claims, ClaimConsent.actorRole, roles);
|
|
98
|
-
claims = setClaimValues(claims, ClaimConsent.purpose, [op.purpose]);
|
|
99
|
-
claims = setClaimValues(claims, ClaimConsent.action, allSections);
|
|
100
|
-
return claims;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Appends one abstract consent operation as a claims-only `Consent` payload
|
|
104
|
-
* entry inside a local `CommunicationDraft`.
|
|
105
|
-
*/
|
|
106
|
-
export function addConsentOperationToDraft(draft, operation, options = {}) {
|
|
107
|
-
return addClaimsResourceToDraft(draft, ResourceTypesFhirR4.Consent, buildConsentOperationClaims(operation), {
|
|
108
|
-
...options,
|
|
109
|
-
noteText: options.noteText || operation.noteText,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Builds a `CommunicationInput` envelope that carries abstract consent
|
|
114
|
-
* operations in top-level `claims` for BFF/backend orchestration.
|
|
115
|
-
*/
|
|
116
|
-
export function buildConsentOperationsCommunicationInput(input) {
|
|
117
|
-
const operations = input.operations.map(assertConsentCommunicationOperationInput);
|
|
118
|
-
const summaryText = String(input.summaryText || '').trim()
|
|
119
|
-
|| `Consent operations (${operations.length}) for subject ${input.subject}`;
|
|
120
|
-
return {
|
|
121
|
-
thid: input.thid,
|
|
122
|
-
subject: String(input.subject || '').trim(),
|
|
123
|
-
sender: input.sender,
|
|
124
|
-
recipient: input.recipient,
|
|
125
|
-
category: ['consent-management'],
|
|
126
|
-
text: summaryText,
|
|
127
|
-
claims: {
|
|
128
|
-
'@context': 'org.hl7.fhir.api',
|
|
129
|
-
[CommunicationClaim.Subject]: String(input.subject || '').trim(),
|
|
130
|
-
[CommunicationClaim.Category]: 'consent-management',
|
|
131
|
-
[CommunicationClaim.Text]: summaryText,
|
|
132
|
-
},
|
|
133
|
-
payload: { operations },
|
|
134
|
-
};
|
|
135
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DiscoveryFacade } from './discovery-facade.js';
|
|
2
|
-
import { DidDocumentLike, ProviderIdentityState } from './identity-model.js';
|
|
3
|
-
import { IdentityStore } from './identity-store.js';
|
|
4
|
-
/**
|
|
5
|
-
* Derives the provider/organization DID from a subject/member/employee DID
|
|
6
|
-
* without inventing network URLs.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getProviderDidFromSubjectDid(subjectDid: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Minimal runtime-neutral normalization of a DID document `service[]` array.
|
|
11
|
-
*
|
|
12
|
-
* Implemented today:
|
|
13
|
-
* - preserves service ids/types/endpoints
|
|
14
|
-
* - recognizes canonical SMART token endpoint id
|
|
15
|
-
*
|
|
16
|
-
* Still pending:
|
|
17
|
-
* - richer capability inference once dependency direction between core and
|
|
18
|
-
* common-utils is finalized.
|
|
19
|
-
*/
|
|
20
|
-
export declare function resolveDidDocumentServices(didDocument?: DidDocumentLike): Array<{
|
|
21
|
-
id: string;
|
|
22
|
-
type: string;
|
|
23
|
-
serviceEndpoint: string;
|
|
24
|
-
capability?: string;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Resolves the provider identity for a subject DID and optionally caches the
|
|
28
|
-
* resulting DID document and resolved SMART endpoint in the supplied store.
|
|
29
|
-
*/
|
|
30
|
-
export declare function resolveProviderIdentityForSubject(subjectDid: string, deps: {
|
|
31
|
-
discovery: DiscoveryFacade;
|
|
32
|
-
store?: IdentityStore;
|
|
33
|
-
}): Promise<ProviderIdentityState>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
/**
|
|
3
|
-
* Derives the provider/organization DID from a subject/member/employee DID
|
|
4
|
-
* without inventing network URLs.
|
|
5
|
-
*/
|
|
6
|
-
export function getProviderDidFromSubjectDid(subjectDid) {
|
|
7
|
-
const markers = [':family:', ':employee:', ':member:'];
|
|
8
|
-
for (const marker of markers) {
|
|
9
|
-
const index = subjectDid.indexOf(marker);
|
|
10
|
-
if (index > -1) {
|
|
11
|
-
return subjectDid.slice(0, index);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return subjectDid;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Minimal runtime-neutral normalization of a DID document `service[]` array.
|
|
18
|
-
*
|
|
19
|
-
* Implemented today:
|
|
20
|
-
* - preserves service ids/types/endpoints
|
|
21
|
-
* - recognizes canonical SMART token endpoint id
|
|
22
|
-
*
|
|
23
|
-
* Still pending:
|
|
24
|
-
* - richer capability inference once dependency direction between core and
|
|
25
|
-
* common-utils is finalized.
|
|
26
|
-
*/
|
|
27
|
-
export function resolveDidDocumentServices(didDocument) {
|
|
28
|
-
return (didDocument?.service || []).map((service) => ({
|
|
29
|
-
id: service.id,
|
|
30
|
-
type: service.type,
|
|
31
|
-
serviceEndpoint: service.serviceEndpoint,
|
|
32
|
-
capability: service.id === '#identity:openid:smart:token' ? 'smart-token' : undefined,
|
|
33
|
-
}));
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Resolves the provider identity for a subject DID and optionally caches the
|
|
37
|
-
* resulting DID document and resolved SMART endpoint in the supplied store.
|
|
38
|
-
*/
|
|
39
|
-
export async function resolveProviderIdentityForSubject(subjectDid, deps) {
|
|
40
|
-
const providerDid = getProviderDidFromSubjectDid(subjectDid);
|
|
41
|
-
const cached = await deps.store?.getProviderIdentity();
|
|
42
|
-
if (cached?.did === providerDid) {
|
|
43
|
-
return cached;
|
|
44
|
-
}
|
|
45
|
-
const didDocument = await deps.discovery.resolveDidDocument(providerDid);
|
|
46
|
-
const identity = {
|
|
47
|
-
did: providerDid,
|
|
48
|
-
...(didDocument ? { didDocument } : {}),
|
|
49
|
-
smartTokenEndpoint: resolveDidDocumentServices(didDocument).find((service) => service.id === '#identity:openid:smart:token')?.serviceEndpoint,
|
|
50
|
-
};
|
|
51
|
-
await deps.store?.setProviderIdentity(identity);
|
|
52
|
-
if (didDocument) {
|
|
53
|
-
await deps.store?.setDidDocument(providerDid, didDocument);
|
|
54
|
-
}
|
|
55
|
-
return identity;
|
|
56
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { DidDocumentLike, ProviderIdentityState } from './identity-model.js';
|
|
2
|
-
/**
|
|
3
|
-
* Runtime-neutral normalized discovery result shape shared by ICA/operator/
|
|
4
|
-
* provider discovery methods.
|
|
5
|
-
*/
|
|
6
|
-
export type DiscoveryResolutionResult = {
|
|
7
|
-
did: string;
|
|
8
|
-
didDocument?: DidDocumentLike;
|
|
9
|
-
jwksUri?: string;
|
|
10
|
-
jwks?: {
|
|
11
|
-
keys: Array<Record<string, unknown>>;
|
|
12
|
-
};
|
|
13
|
-
serviceEndpoints?: Array<{
|
|
14
|
-
id: string;
|
|
15
|
-
type: string;
|
|
16
|
-
serviceEndpoint: string;
|
|
17
|
-
capability?: string;
|
|
18
|
-
}>;
|
|
19
|
-
metadata?: Record<string, unknown>;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Runtime-neutral discovery contract.
|
|
23
|
-
*
|
|
24
|
-
* Implemented here:
|
|
25
|
-
* - contract only
|
|
26
|
-
* - static in-memory reference implementation
|
|
27
|
-
*
|
|
28
|
-
* Still pending in node/frontend runtimes:
|
|
29
|
-
* - real did:web HTTP resolution
|
|
30
|
-
* - DSP `/.well-known/dspace-version` fetch
|
|
31
|
-
* - DSP catalog artifact consumption
|
|
32
|
-
* - cache freshness/retry policy
|
|
33
|
-
*/
|
|
34
|
-
export interface DiscoveryFacade {
|
|
35
|
-
/**
|
|
36
|
-
* Resolves a DID document for a given DID.
|
|
37
|
-
*/
|
|
38
|
-
resolveDidDocument(did: string): Promise<DidDocumentLike | undefined>;
|
|
39
|
-
/**
|
|
40
|
-
* Resolves a public JWKS from either a DID or a concrete `jwks_uri`.
|
|
41
|
-
*/
|
|
42
|
-
resolveJwks(input: {
|
|
43
|
-
did?: string;
|
|
44
|
-
jwksUri?: string;
|
|
45
|
-
}): Promise<{
|
|
46
|
-
keys: Array<Record<string, unknown>>;
|
|
47
|
-
} | undefined>;
|
|
48
|
-
/**
|
|
49
|
-
* Discovers ICA metadata entries.
|
|
50
|
-
*/
|
|
51
|
-
discoverFromIca(input: {
|
|
52
|
-
did?: string;
|
|
53
|
-
url?: string;
|
|
54
|
-
}): Promise<DiscoveryResolutionResult[]>;
|
|
55
|
-
/**
|
|
56
|
-
* Discovers node operator metadata entries.
|
|
57
|
-
*/
|
|
58
|
-
discoverNodeOperators(input: {
|
|
59
|
-
did?: string;
|
|
60
|
-
url?: string;
|
|
61
|
-
}): Promise<DiscoveryResolutionResult[]>;
|
|
62
|
-
/**
|
|
63
|
-
* Discovers provider/service-provider entries relevant to the current subject,
|
|
64
|
-
* tenant, or route.
|
|
65
|
-
*/
|
|
66
|
-
discoverServiceProviders(input: {
|
|
67
|
-
did?: string;
|
|
68
|
-
url?: string;
|
|
69
|
-
subjectDid?: string;
|
|
70
|
-
}): Promise<ProviderIdentityState[]>;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Test/demo helper that returns already-seeded discovery results without
|
|
74
|
-
* performing any network I/O.
|
|
75
|
-
*/
|
|
76
|
-
export declare function createStaticDiscoveryFacade(seed: {
|
|
77
|
-
didDocuments?: Record<string, DidDocumentLike>;
|
|
78
|
-
jwks?: Record<string, {
|
|
79
|
-
keys: Array<Record<string, unknown>>;
|
|
80
|
-
}>;
|
|
81
|
-
icas?: DiscoveryResolutionResult[];
|
|
82
|
-
operators?: DiscoveryResolutionResult[];
|
|
83
|
-
providers?: ProviderIdentityState[];
|
|
84
|
-
}): DiscoveryFacade;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
/**
|
|
3
|
-
* Test/demo helper that returns already-seeded discovery results without
|
|
4
|
-
* performing any network I/O.
|
|
5
|
-
*/
|
|
6
|
-
export function createStaticDiscoveryFacade(seed) {
|
|
7
|
-
return {
|
|
8
|
-
async resolveDidDocument(did) {
|
|
9
|
-
return seed.didDocuments?.[did];
|
|
10
|
-
},
|
|
11
|
-
async resolveJwks(input) {
|
|
12
|
-
return seed.jwks?.[String(input.did || input.jwksUri || '')];
|
|
13
|
-
},
|
|
14
|
-
async discoverFromIca() {
|
|
15
|
-
return seed.icas || [];
|
|
16
|
-
},
|
|
17
|
-
async discoverNodeOperators() {
|
|
18
|
-
return seed.operators || [];
|
|
19
|
-
},
|
|
20
|
-
async discoverServiceProviders() {
|
|
21
|
-
return seed.providers || [];
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export type DidServiceLike = {
|
|
2
|
-
id: string;
|
|
3
|
-
type: string;
|
|
4
|
-
serviceEndpoint: string;
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
};
|
|
7
|
-
export type DidDocumentLike = {
|
|
8
|
-
'@context'?: string | string[];
|
|
9
|
-
id: string;
|
|
10
|
-
service?: DidServiceLike[];
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
export type ResolvedServiceEndpointLike = {
|
|
14
|
-
id: string;
|
|
15
|
-
type: string;
|
|
16
|
-
serviceEndpoint: string;
|
|
17
|
-
capability?: string;
|
|
18
|
-
raw: DidServiceLike;
|
|
19
|
-
};
|
|
20
|
-
export type TransportIdentityState = {
|
|
21
|
-
did?: string;
|
|
22
|
-
didDocument?: DidDocumentLike;
|
|
23
|
-
jwks?: {
|
|
24
|
-
keys: Array<Record<string, unknown>>;
|
|
25
|
-
};
|
|
26
|
-
signingKid?: string;
|
|
27
|
-
encryptionKid?: string;
|
|
28
|
-
};
|
|
29
|
-
export type ActorIdentityState = {
|
|
30
|
-
did: string;
|
|
31
|
-
kind?: string;
|
|
32
|
-
sameAs?: string;
|
|
33
|
-
didDocument?: DidDocumentLike;
|
|
34
|
-
jwks?: {
|
|
35
|
-
keys: Array<Record<string, unknown>>;
|
|
36
|
-
};
|
|
37
|
-
publicKeyJwk?: Record<string, unknown>;
|
|
38
|
-
};
|
|
39
|
-
export type ProviderIdentityState = {
|
|
40
|
-
did: string;
|
|
41
|
-
didDocument?: DidDocumentLike;
|
|
42
|
-
jwks?: {
|
|
43
|
-
keys: Array<Record<string, unknown>>;
|
|
44
|
-
};
|
|
45
|
-
smartTokenEndpoint?: string;
|
|
46
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ActorIdentityState, DidDocumentLike, ProviderIdentityState, TransportIdentityState } from './identity-model.js';
|
|
2
|
-
/**
|
|
3
|
-
* Minimal runtime-neutral DID document cache contract.
|
|
4
|
-
*
|
|
5
|
-
* Implemented in this package:
|
|
6
|
-
* - in-memory reference store
|
|
7
|
-
*
|
|
8
|
-
* Still pending in higher runtimes:
|
|
9
|
-
* - secure local persistence
|
|
10
|
-
* - remote/shared persistence
|
|
11
|
-
* - cache invalidation policy
|
|
12
|
-
*/
|
|
13
|
-
export interface DidDocumentStore {
|
|
14
|
-
/**
|
|
15
|
-
* Reads a previously cached DID document by DID.
|
|
16
|
-
*/
|
|
17
|
-
getDidDocument(did: string): Promise<DidDocumentLike | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Persists a DID document by DID.
|
|
20
|
-
*/
|
|
21
|
-
setDidDocument(did: string, didDocument: DidDocumentLike): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Composite identity/session store separating:
|
|
25
|
-
* - transport identity
|
|
26
|
-
* - human actor identity
|
|
27
|
-
* - provider identity
|
|
28
|
-
* - raw DID documents
|
|
29
|
-
*/
|
|
30
|
-
export interface IdentityStore extends DidDocumentStore {
|
|
31
|
-
/**
|
|
32
|
-
* Returns the technical device/app/portal identity for the current session.
|
|
33
|
-
*/
|
|
34
|
-
getTransportIdentity(): Promise<TransportIdentityState | undefined>;
|
|
35
|
-
/**
|
|
36
|
-
* Persists the technical device/app/portal identity for the current session.
|
|
37
|
-
*/
|
|
38
|
-
setTransportIdentity(identity: TransportIdentityState): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Returns the active human/controller/professional/member identity.
|
|
41
|
-
*/
|
|
42
|
-
getActorIdentity(): Promise<ActorIdentityState | undefined>;
|
|
43
|
-
/**
|
|
44
|
-
* Persists the active human/controller/professional/member identity.
|
|
45
|
-
*/
|
|
46
|
-
setActorIdentity(identity: ActorIdentityState): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Returns the provider/organization identity currently associated with the
|
|
49
|
-
* target subject or route context.
|
|
50
|
-
*/
|
|
51
|
-
getProviderIdentity(): Promise<ProviderIdentityState | undefined>;
|
|
52
|
-
/**
|
|
53
|
-
* Persists the provider/organization identity currently associated with the
|
|
54
|
-
* target subject or route context.
|
|
55
|
-
*/
|
|
56
|
-
setProviderIdentity(identity: ProviderIdentityState): Promise<void>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* In-memory reference implementation used by tests, local demos, and runtimes
|
|
60
|
-
* that do not yet want durable persistence.
|
|
61
|
-
*/
|
|
62
|
-
export declare class MemoryIdentityStore implements IdentityStore {
|
|
63
|
-
private readonly didDocuments;
|
|
64
|
-
private transportIdentity?;
|
|
65
|
-
private actorIdentity?;
|
|
66
|
-
private providerIdentity?;
|
|
67
|
-
/** @inheritdoc */
|
|
68
|
-
getDidDocument(did: string): Promise<DidDocumentLike | undefined>;
|
|
69
|
-
/** @inheritdoc */
|
|
70
|
-
setDidDocument(did: string, didDocument: DidDocumentLike): Promise<void>;
|
|
71
|
-
/** @inheritdoc */
|
|
72
|
-
getTransportIdentity(): Promise<TransportIdentityState | undefined>;
|
|
73
|
-
/** @inheritdoc */
|
|
74
|
-
setTransportIdentity(identity: TransportIdentityState): Promise<void>;
|
|
75
|
-
/** @inheritdoc */
|
|
76
|
-
getActorIdentity(): Promise<ActorIdentityState | undefined>;
|
|
77
|
-
/** @inheritdoc */
|
|
78
|
-
setActorIdentity(identity: ActorIdentityState): Promise<void>;
|
|
79
|
-
/** @inheritdoc */
|
|
80
|
-
getProviderIdentity(): Promise<ProviderIdentityState | undefined>;
|
|
81
|
-
/** @inheritdoc */
|
|
82
|
-
setProviderIdentity(identity: ProviderIdentityState): Promise<void>;
|
|
83
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
/**
|
|
3
|
-
* In-memory reference implementation used by tests, local demos, and runtimes
|
|
4
|
-
* that do not yet want durable persistence.
|
|
5
|
-
*/
|
|
6
|
-
export class MemoryIdentityStore {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.didDocuments = new Map();
|
|
9
|
-
}
|
|
10
|
-
/** @inheritdoc */
|
|
11
|
-
async getDidDocument(did) {
|
|
12
|
-
return this.didDocuments.get(String(did || '').trim());
|
|
13
|
-
}
|
|
14
|
-
/** @inheritdoc */
|
|
15
|
-
async setDidDocument(did, didDocument) {
|
|
16
|
-
this.didDocuments.set(String(did || '').trim(), didDocument);
|
|
17
|
-
}
|
|
18
|
-
/** @inheritdoc */
|
|
19
|
-
async getTransportIdentity() {
|
|
20
|
-
return this.transportIdentity;
|
|
21
|
-
}
|
|
22
|
-
/** @inheritdoc */
|
|
23
|
-
async setTransportIdentity(identity) {
|
|
24
|
-
this.transportIdentity = identity;
|
|
25
|
-
if (identity.didDocument?.id) {
|
|
26
|
-
await this.setDidDocument(identity.didDocument.id, identity.didDocument);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
/** @inheritdoc */
|
|
30
|
-
async getActorIdentity() {
|
|
31
|
-
return this.actorIdentity;
|
|
32
|
-
}
|
|
33
|
-
/** @inheritdoc */
|
|
34
|
-
async setActorIdentity(identity) {
|
|
35
|
-
this.actorIdentity = identity;
|
|
36
|
-
if (identity.didDocument?.id) {
|
|
37
|
-
await this.setDidDocument(identity.didDocument.id, identity.didDocument);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/** @inheritdoc */
|
|
41
|
-
async getProviderIdentity() {
|
|
42
|
-
return this.providerIdentity;
|
|
43
|
-
}
|
|
44
|
-
/** @inheritdoc */
|
|
45
|
-
async setProviderIdentity(identity) {
|
|
46
|
-
this.providerIdentity = identity;
|
|
47
|
-
if (identity.didDocument?.id) {
|
|
48
|
-
await this.setDidDocument(identity.didDocument.id, identity.didDocument);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export * from './actor-model.js';
|
|
2
|
-
export * from './app-identity.js';
|
|
3
|
-
export * from './bootstrap-facade.js';
|
|
4
|
-
export * from './communication-bundle-contracts.js';
|
|
5
|
-
export * from './communication-bundle-resources.js';
|
|
6
|
-
export * from './communication-consent-mutation-contract.js';
|
|
7
|
-
export * from './consent-claim-helpers.js';
|
|
8
|
-
export * from './consent-access.js';
|
|
9
|
-
export * from './consent-communication-operations.js';
|
|
10
|
-
export * from './communication-draft.js';
|
|
11
|
-
export * from './communication-document-facade.js';
|
|
12
|
-
export * from './communication-outbox.js';
|
|
13
|
-
export * from './communication-resource-helpers.js';
|
|
14
|
-
export * from './did-resolution-session.js';
|
|
15
|
-
export * from './discovery-facade.js';
|
|
16
|
-
export * from './identity-model.js';
|
|
17
|
-
export * from './identity-store.js';
|
|
18
|
-
export * from './medication-claim-helpers.js';
|
|
19
|
-
export * from './polling-model.js';
|
|
20
|
-
export * from './relationship-access.js';
|
|
21
|
-
export * from './session-model.js';
|
|
22
|
-
export * from './smart-endpoint-resolver.js';
|
|
23
|
-
export * from './vital-signs.js';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
export * from './actor-model.js';
|
|
3
|
-
export * from './app-identity.js';
|
|
4
|
-
export * from './bootstrap-facade.js';
|
|
5
|
-
export * from './communication-bundle-contracts.js';
|
|
6
|
-
export * from './communication-bundle-resources.js';
|
|
7
|
-
export * from './communication-consent-mutation-contract.js';
|
|
8
|
-
export * from './consent-claim-helpers.js';
|
|
9
|
-
export * from './consent-access.js';
|
|
10
|
-
export * from './consent-communication-operations.js';
|
|
11
|
-
export * from './communication-draft.js';
|
|
12
|
-
export * from './communication-document-facade.js';
|
|
13
|
-
export * from './communication-outbox.js';
|
|
14
|
-
export * from './communication-resource-helpers.js';
|
|
15
|
-
export * from './did-resolution-session.js';
|
|
16
|
-
export * from './discovery-facade.js';
|
|
17
|
-
export * from './identity-model.js';
|
|
18
|
-
export * from './identity-store.js';
|
|
19
|
-
export * from './medication-claim-helpers.js';
|
|
20
|
-
export * from './polling-model.js';
|
|
21
|
-
export * from './relationship-access.js';
|
|
22
|
-
export * from './session-model.js';
|
|
23
|
-
export * from './smart-endpoint-resolver.js';
|
|
24
|
-
export * from './vital-signs.js';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Re-export medication claim helpers from common-utils so SDK CORE consumers can
|
|
3
|
-
* discover and use the canonical get/set/add/remove medication claim APIs from one place.
|
|
4
|
-
*/
|
|
5
|
-
export { addMedicationCategoryList, addMedicationClaimList, addMedicationCodeList, addMedicationPartOfList, addMedicationSourceList, addMedicationSubjectList, getMedicationCategoryList, getMedicationClaimList, getMedicationCodeList, getMedicationPartOfList, getMedicationSourceList, getMedicationSubjectList, removeMedicationCategoryList, removeMedicationClaimList, removeMedicationCodeList, removeMedicationPartOfList, removeMedicationSourceList, removeMedicationSubjectList, setMedicationCategoryList, setMedicationClaimList, setMedicationCodeList, setMedicationPartOfList, setMedicationSourceList, setMedicationSubjectList, type MedicationInteroperableClaims, } from 'gdc-common-utils-ts';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
/**
|
|
3
|
-
* Re-export medication claim helpers from common-utils so SDK CORE consumers can
|
|
4
|
-
* discover and use the canonical get/set/add/remove medication claim APIs from one place.
|
|
5
|
-
*/
|
|
6
|
-
export { addMedicationCategoryList, addMedicationClaimList, addMedicationCodeList, addMedicationPartOfList, addMedicationSourceList, addMedicationSubjectList, getMedicationCategoryList, getMedicationClaimList, getMedicationCodeList, getMedicationPartOfList, getMedicationSourceList, getMedicationSubjectList, removeMedicationCategoryList, removeMedicationClaimList, removeMedicationCodeList, removeMedicationPartOfList, removeMedicationSourceList, removeMedicationSubjectList, setMedicationCategoryList, setMedicationClaimList, setMedicationCodeList, setMedicationPartOfList, setMedicationSourceList, setMedicationSubjectList, } from 'gdc-common-utils-ts';
|