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,45 +0,0 @@
|
|
|
1
|
-
import { EvidenceObjectDLT } from "./oidc4ida.evidence.model";
|
|
2
|
-
/**
|
|
3
|
-
* Defines the JSON-LD context URI for W3C Verifiable Credentials Data Model v2.0.
|
|
4
|
-
* This constant MUST be used for all V2 credential creations to ensure consistency.
|
|
5
|
-
* @see https://www.w3.org/TR/vc-data-model-2.0/#contexts
|
|
6
|
-
*/
|
|
7
|
-
export declare const VC_CONTEXT_V2 = "https://www.w3.org/ns/credentials/v2";
|
|
8
|
-
/** ProofEBSIv2 foresees the possibility to use different types of proofs for Verifiable Credentials,
|
|
9
|
-
* such as proofs derived from eIDAS keys (qualified) to DID keys (unqualified).
|
|
10
|
-
* In EBSI 2.0, every V-ID will only contain a single proof, which must be derived from eIDAS keys.
|
|
11
|
-
* Definition: https://www.w3.org/TR/vc-data-model/#proofs-signatures
|
|
12
|
-
* See https://ec.europa.eu/digital-building-blocks/wikis/display/EBSIDOC/Verifiable+Attestation
|
|
13
|
-
* - 'created' is REQURED, it is the ISO 8601 original timestamp of the signature, it is not the same as credential.issued (tx timestamp) (in Aries go framework use *util.TimeWithTrailingZeroMsec instead of time.Time)
|
|
14
|
-
* - 'jws' is REQUIRED, it defines the detached JWS signature string "<base64url(protectedheader)>..<base64url(signature)>"
|
|
15
|
-
* - 'proofPurpose' is REQUIRED, e.g.: assertionMethod, authentication, keyAgreement, contractAgreement, capabilityInvocation, capabilityDelegation
|
|
16
|
-
* - 'type' is REQUIRED, e.g.: "JsonWebSignature2020", "BbsBlsSignature2020", "BbsBlsSignatureProof2020".
|
|
17
|
-
* - 'verificationMethod' is REQUIRED, it is the 'urndid#keyId' to verify the signature by using the issuer's public signature key.
|
|
18
|
-
*/
|
|
19
|
-
export interface ProofEBSIv2 {
|
|
20
|
-
created?: string;
|
|
21
|
-
jws?: string;
|
|
22
|
-
proofPurpose?: string;
|
|
23
|
-
type: string;
|
|
24
|
-
verificationMethod?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Defines the structure for a W3C Verifiable Credential.
|
|
28
|
-
* The credentialSubject can be any object containing the claims.
|
|
29
|
-
* @see https://www.w3.org/TR/vc-data-model-2.0/#verifiable-credentials
|
|
30
|
-
*/
|
|
31
|
-
export interface VerifiableCredentialV2 {
|
|
32
|
-
'@context': string[];
|
|
33
|
-
id?: string;
|
|
34
|
-
type: string[];
|
|
35
|
-
/** Claims about the subject, such as the "identifier" or subject's URN */
|
|
36
|
-
credentialSubject: Record<string, any>;
|
|
37
|
-
/** Evidence for Identity Assurance: https://openid.net/specs/openid-ida-verified-claims-1_0-final.html#section-5.4.4 */
|
|
38
|
-
evidence?: EvidenceObjectDLT[];
|
|
39
|
-
/** The issuer is the creator (e.g., "did:web:gateway.example.com"), but could be distinct to the signer of a proof */
|
|
40
|
-
issuer: string;
|
|
41
|
-
/** Proof is optional during creation, but required for a signed VC */
|
|
42
|
-
proof?: ProofEBSIv2 | ProofEBSIv2[];
|
|
43
|
-
validFrom: string;
|
|
44
|
-
validUntil?: string;
|
|
45
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
// File: crypto-ts/models/verifiable-credential.ts
|
|
3
|
-
/**
|
|
4
|
-
* Defines the JSON-LD context URI for W3C Verifiable Credentials Data Model v2.0.
|
|
5
|
-
* This constant MUST be used for all V2 credential creations to ensure consistency.
|
|
6
|
-
* @see https://www.w3.org/TR/vc-data-model-2.0/#contexts
|
|
7
|
-
*/
|
|
8
|
-
export const VC_CONTEXT_V2 = 'https://www.w3.org/ns/credentials/v2';
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { RecordBase, VaultConfig } from '../models/resource-document';
|
|
2
|
-
export interface VaultQueryCondition {
|
|
3
|
-
attribute: string;
|
|
4
|
-
equals?: unknown;
|
|
5
|
-
in?: unknown[];
|
|
6
|
-
}
|
|
7
|
-
export interface VaultQuery {
|
|
8
|
-
where?: VaultQueryCondition[];
|
|
9
|
-
orderBy?: {
|
|
10
|
-
attribute: string;
|
|
11
|
-
direction: 'asc' | 'desc';
|
|
12
|
-
};
|
|
13
|
-
limit?: number;
|
|
14
|
-
offset?: number;
|
|
15
|
-
}
|
|
16
|
-
export declare abstract class IVaultRepository {
|
|
17
|
-
/** Writes one or more records into a collection. */
|
|
18
|
-
abstract put<T extends RecordBase>(collectionName: string, containers: T | T[]): Promise<boolean>;
|
|
19
|
-
/** Reads a single record by id. */
|
|
20
|
-
abstract get<T extends RecordBase>(collectionName: string, containerId: string): Promise<T | undefined>;
|
|
21
|
-
/** Queries records by structured conditions. */
|
|
22
|
-
abstract query<T extends RecordBase>(collectionName: string, query: VaultQuery): Promise<T[]>;
|
|
23
|
-
/** Marks a record as deleted. */
|
|
24
|
-
abstract delete(collectionName: string, containerId: string): Promise<boolean>;
|
|
25
|
-
}
|
|
26
|
-
export declare abstract class IServerVaultRepository extends IVaultRepository {
|
|
27
|
-
/** Creates a new physical vault/collection. */
|
|
28
|
-
abstract createNewVault(vaultConfig: VaultConfig): Promise<boolean>;
|
|
29
|
-
/** Checks if a tenant's logical registration record exists. */
|
|
30
|
-
abstract vaultExists(vaultId: string): Promise<boolean>;
|
|
31
|
-
/** Retrieves configuration for a specific vault. */
|
|
32
|
-
abstract getVaultConfig(vaultId: string): Promise<VaultConfig | undefined>;
|
|
33
|
-
/** Creates a new section within a vault. */
|
|
34
|
-
abstract createNewSection(collectionName: string, sectionId: string): Promise<boolean>;
|
|
35
|
-
/** Updates or creates a section with the provided records. */
|
|
36
|
-
abstract updateSection(collectionName: string, sectionId: string, containers?: RecordBase[]): Promise<boolean>;
|
|
37
|
-
/** Retrieves all section IDs from a vault. */
|
|
38
|
-
abstract getAllSections(collectionName: string): Promise<string[]>;
|
|
39
|
-
/** Checks if a section exists within a vault. */
|
|
40
|
-
abstract sectionExists(collectionName: string, sectionId: string): Promise<boolean>;
|
|
41
|
-
/** Retrieves a list of record identifiers from a section. */
|
|
42
|
-
abstract getContainersListInSection(collectionName: string, sectionId: string): Promise<string[]>;
|
|
43
|
-
/** Retrieves full records from a section. */
|
|
44
|
-
abstract getContainersInSection<T extends RecordBase>(collectionName: string, sectionId: string, excludeRecordTypes?: string[]): Promise<T[]>;
|
|
45
|
-
/** Section-aware put — sectionId optional for backwards compat. */
|
|
46
|
-
abstract put<T extends RecordBase>(collectionName: string, containers: T | T[], sectionId?: string): Promise<boolean>;
|
|
47
|
-
/** Section-aware get — sectionId optional. */
|
|
48
|
-
abstract get<T extends RecordBase>(collectionName: string, containerId: string, sectionId?: string): Promise<T | undefined>;
|
|
49
|
-
/** Retrieves all versions of a record by id. */
|
|
50
|
-
abstract getHistory(collectionName: string, containerId: string): Promise<RecordBase[]>;
|
|
51
|
-
/** Permanently removes records marked as deleted. */
|
|
52
|
-
abstract purge(collectionName: string): Promise<boolean>;
|
|
53
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
// File: src/storage/IVaultRepository.ts
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
// Base contract — used by all channels (voice, chat, mobile)
|
|
5
|
-
//
|
|
6
|
-
// Each vault instance is scoped to a single actor/session context
|
|
7
|
-
// (e.g. callSid for voice, userId for text channels).
|
|
8
|
-
//
|
|
9
|
-
// collectionName → logical bucket within the vault (e.g. 'tokens', 'session')
|
|
10
|
-
// containerId → unique record id within the bucket
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
export class IVaultRepository {
|
|
13
|
-
}
|
|
14
|
-
// ---------------------------------------------------------------------------
|
|
15
|
-
// Server/multi-tenant extension — used by GW nodes (gdc-unid-node-ts, gwtemplate-node-ts)
|
|
16
|
-
//
|
|
17
|
-
// Adds multi-vault management, sections, history, and purge operations
|
|
18
|
-
// needed by server-side vault repositories (Firestore, Postgres, Mem-backend).
|
|
19
|
-
//
|
|
20
|
-
// TODO: migrate gdc-unid-node-ts and gwtemplate-node-ts vault.repository.ts
|
|
21
|
-
// to extend this interface once storage-sdk-firestore-ts and
|
|
22
|
-
// storage-sdk-postgres-ts are created as separate packages.
|
|
23
|
-
// ---------------------------------------------------------------------------
|
|
24
|
-
export class IServerVaultRepository extends IVaultRepository {
|
|
25
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { RecordBase } from '../models/resource-document';
|
|
2
|
-
import { IVaultRepository, VaultQuery } from './IVaultRepository';
|
|
3
|
-
/**
|
|
4
|
-
* In-memory implementation of IVaultRepository.
|
|
5
|
-
*
|
|
6
|
-
* Intended for:
|
|
7
|
-
* - Unit/integration tests across all packages
|
|
8
|
-
* - Short-lived runtime contexts (voice calls, transient sessions)
|
|
9
|
-
*
|
|
10
|
-
* Each instance is independent — instantiate one per actor/session context
|
|
11
|
-
* (e.g. one per CallSid in uhc-unid-chat-node) and discard on cleanup.
|
|
12
|
-
*
|
|
13
|
-
* TODO: For text channels with persistent sessions, use:
|
|
14
|
-
* - storage-sdk-firestore-ts → FirestoreVaultRepository (Google Cloud)
|
|
15
|
-
* - storage-sdk-postgres-ts → PostgresVaultRepository (Cloud SQL / self-hosted)
|
|
16
|
-
* - storage-sdk-sqlite-ts → SqliteVaultRepository (mobile / expo-sqlite)
|
|
17
|
-
* - storage-sdk-indexeddb-ts → IndexedDbVaultRepository (browser)
|
|
18
|
-
* - storage-sdk-py → Python equivalents
|
|
19
|
-
* All of the above will import IVaultRepository from gdc-common-utils-ts/storage.
|
|
20
|
-
*/
|
|
21
|
-
export declare class VaultMemRepository extends IVaultRepository {
|
|
22
|
-
private readonly collections;
|
|
23
|
-
private ensureCollection;
|
|
24
|
-
/** Clears all state. Useful for test teardown or call-end cleanup. */
|
|
25
|
-
clear(): void;
|
|
26
|
-
put<T extends RecordBase>(collectionName: string, containers: T | T[]): Promise<boolean>;
|
|
27
|
-
get<T extends RecordBase>(collectionName: string, containerId: string): Promise<T | undefined>;
|
|
28
|
-
query<T extends RecordBase>(collectionName: string, query: VaultQuery): Promise<T[]>;
|
|
29
|
-
delete(collectionName: string, containerId: string): Promise<boolean>;
|
|
30
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
// File: src/storage/VaultMemRepository.ts
|
|
3
|
-
import { IVaultRepository } from './IVaultRepository';
|
|
4
|
-
/**
|
|
5
|
-
* In-memory implementation of IVaultRepository.
|
|
6
|
-
*
|
|
7
|
-
* Intended for:
|
|
8
|
-
* - Unit/integration tests across all packages
|
|
9
|
-
* - Short-lived runtime contexts (voice calls, transient sessions)
|
|
10
|
-
*
|
|
11
|
-
* Each instance is independent — instantiate one per actor/session context
|
|
12
|
-
* (e.g. one per CallSid in uhc-unid-chat-node) and discard on cleanup.
|
|
13
|
-
*
|
|
14
|
-
* TODO: For text channels with persistent sessions, use:
|
|
15
|
-
* - storage-sdk-firestore-ts → FirestoreVaultRepository (Google Cloud)
|
|
16
|
-
* - storage-sdk-postgres-ts → PostgresVaultRepository (Cloud SQL / self-hosted)
|
|
17
|
-
* - storage-sdk-sqlite-ts → SqliteVaultRepository (mobile / expo-sqlite)
|
|
18
|
-
* - storage-sdk-indexeddb-ts → IndexedDbVaultRepository (browser)
|
|
19
|
-
* - storage-sdk-py → Python equivalents
|
|
20
|
-
* All of the above will import IVaultRepository from gdc-common-utils-ts/storage.
|
|
21
|
-
*/
|
|
22
|
-
export class VaultMemRepository extends IVaultRepository {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.collections = new Map();
|
|
26
|
-
}
|
|
27
|
-
ensureCollection(collectionName) {
|
|
28
|
-
if (!this.collections.has(collectionName)) {
|
|
29
|
-
this.collections.set(collectionName, new Map());
|
|
30
|
-
}
|
|
31
|
-
return this.collections.get(collectionName);
|
|
32
|
-
}
|
|
33
|
-
/** Clears all state. Useful for test teardown or call-end cleanup. */
|
|
34
|
-
clear() {
|
|
35
|
-
this.collections.clear();
|
|
36
|
-
}
|
|
37
|
-
async put(collectionName, containers) {
|
|
38
|
-
const col = this.ensureCollection(collectionName);
|
|
39
|
-
const items = Array.isArray(containers) ? containers : [containers];
|
|
40
|
-
for (const item of items) {
|
|
41
|
-
col.set(item.id, item);
|
|
42
|
-
}
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
async get(collectionName, containerId) {
|
|
46
|
-
return this.collections.get(collectionName)?.get(containerId);
|
|
47
|
-
}
|
|
48
|
-
async query(collectionName, query) {
|
|
49
|
-
const col = this.collections.get(collectionName);
|
|
50
|
-
if (!col)
|
|
51
|
-
return [];
|
|
52
|
-
let results = Array.from(col.values());
|
|
53
|
-
if (query.where?.length) {
|
|
54
|
-
results = results.filter((doc) => query.where.every((cond) => {
|
|
55
|
-
const val = doc[cond.attribute];
|
|
56
|
-
if (cond.equals !== undefined)
|
|
57
|
-
return val === cond.equals;
|
|
58
|
-
if (cond.in !== undefined)
|
|
59
|
-
return cond.in.includes(val);
|
|
60
|
-
return true;
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
if (query.orderBy) {
|
|
64
|
-
const { attribute, direction } = query.orderBy;
|
|
65
|
-
results.sort((a, b) => {
|
|
66
|
-
const av = a[attribute];
|
|
67
|
-
const bv = b[attribute];
|
|
68
|
-
const cmp = av < bv ? -1 : av > bv ? 1 : 0;
|
|
69
|
-
return direction === 'asc' ? cmp : -cmp;
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
if (query.offset)
|
|
73
|
-
results = results.slice(query.offset);
|
|
74
|
-
if (query.limit)
|
|
75
|
-
results = results.slice(0, query.limit);
|
|
76
|
-
return results;
|
|
77
|
-
}
|
|
78
|
-
async delete(collectionName, containerId) {
|
|
79
|
-
return this.collections.get(collectionName)?.delete(containerId) ?? false;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export type ActivationRepresentativePolicyErrorCode = 'MISSING_REPRESENTATIVE_DID_WEB' | 'MISSING_REPRESENTATIVE_ROLE_RESPRSN' | 'MISSING_REPRESENTATIVE_CREDENTIAL_BINDING' | 'REPRESENTATIVE_TAXID_MISMATCH';
|
|
2
|
-
export type ActivationRepresentativePolicyError = {
|
|
3
|
-
code: ActivationRepresentativePolicyErrorCode;
|
|
4
|
-
message: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Extracts `credentialSubject` from a VC-like object.
|
|
8
|
-
*
|
|
9
|
-
* @param credential Candidate VC-like object.
|
|
10
|
-
*/
|
|
11
|
-
export declare function extractCredentialSubject(credential: unknown): Record<string, unknown> | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Normalizes a tax identifier into uppercase trimmed form.
|
|
14
|
-
*
|
|
15
|
-
* @param value Raw tax identifier value.
|
|
16
|
-
*/
|
|
17
|
-
export declare function normalizeTaxIdentifier(value: unknown): string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Extracts an organization tax id from a VC-like organization credential.
|
|
20
|
-
*
|
|
21
|
-
* @param organizationCredential Candidate organization credential.
|
|
22
|
-
*/
|
|
23
|
-
export declare function extractOrganizationTaxId(organizationCredential: unknown): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Extracts the `memberOf` tax id from a representative credential.
|
|
26
|
-
*
|
|
27
|
-
* @param representativeCredential Candidate representative credential.
|
|
28
|
-
*/
|
|
29
|
-
export declare function extractRepresentativeMemberOfTaxId(representativeCredential: unknown): string | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* Extracts the representative role code from `credentialSubject.hasOccupation`.
|
|
32
|
-
*
|
|
33
|
-
* @param representativeCredential Candidate representative credential.
|
|
34
|
-
*/
|
|
35
|
-
export declare function extractRepresentativeRoleCode(representativeCredential: unknown): string | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Checks whether a role code contains the required code, ignoring prefixes such as `SYSTEM|`.
|
|
38
|
-
*
|
|
39
|
-
* @param roleCode Candidate role code.
|
|
40
|
-
* @param requiredCode Required normalized code, defaults to `RESPRSN`.
|
|
41
|
-
*/
|
|
42
|
-
export declare function hasRoleCode(roleCode: string | undefined, requiredCode?: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Extracts representative signing/binding continuity data from `credentialSubject.hasCredential`.
|
|
45
|
-
*
|
|
46
|
-
* Compatibility rules:
|
|
47
|
-
* - legacy VC payloads may still carry `hasCredential.material`
|
|
48
|
-
* - newer payloads may carry the same semantic value in `hasCredential.value`
|
|
49
|
-
* or `hasCredential.identifier.value`
|
|
50
|
-
*
|
|
51
|
-
* @param representativeCredential Candidate representative credential.
|
|
52
|
-
*/
|
|
53
|
-
export declare function extractRepresentativeCredentialBinding(representativeCredential: unknown): string | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Extracts a `did:web:` identifier from a VC-like credential.
|
|
56
|
-
*
|
|
57
|
-
* @param credential Candidate credential.
|
|
58
|
-
*/
|
|
59
|
-
export declare function extractDidWebFromCredential(credential: unknown): string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* Builds a deterministic member DID under an owner DID namespace.
|
|
62
|
-
*
|
|
63
|
-
* @param ownerDidWeb Owner DID.
|
|
64
|
-
* @param memberId Member identifier fragment.
|
|
65
|
-
* @param roleCode Role code fragment.
|
|
66
|
-
*/
|
|
67
|
-
export declare function buildMemberDidWeb(ownerDidWeb: string, memberId: string, roleCode: string): string;
|
|
68
|
-
/**
|
|
69
|
-
* Checks whether a member DID is scoped under an owner DID namespace.
|
|
70
|
-
*
|
|
71
|
-
* @param memberDidWeb Candidate member DID.
|
|
72
|
-
* @param ownerDidWeb Owner DID namespace.
|
|
73
|
-
*/
|
|
74
|
-
export declare function isMemberDidWebUnderOwner(memberDidWeb: string, ownerDidWeb: string): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Validates the activation representative policy against organization and representative credentials.
|
|
77
|
-
*
|
|
78
|
-
* @param input.organizationCredential Candidate organization credential.
|
|
79
|
-
* @param input.representativeCredential Candidate representative credential.
|
|
80
|
-
* @param input.requiredRoleCode Required representative role, defaults to `RESPRSN`.
|
|
81
|
-
*/
|
|
82
|
-
export declare function validateActivationRepresentativePolicy(input: {
|
|
83
|
-
organizationCredential?: unknown;
|
|
84
|
-
representativeCredential?: unknown;
|
|
85
|
-
requiredRoleCode?: string;
|
|
86
|
-
}): ActivationRepresentativePolicyError[];
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
function asObject(value) {
|
|
2
|
-
if (!value || typeof value !== 'object')
|
|
3
|
-
return undefined;
|
|
4
|
-
return value;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Extracts `credentialSubject` from a VC-like object.
|
|
8
|
-
*
|
|
9
|
-
* @param credential Candidate VC-like object.
|
|
10
|
-
*/
|
|
11
|
-
export function extractCredentialSubject(credential) {
|
|
12
|
-
const obj = asObject(credential);
|
|
13
|
-
if (!obj)
|
|
14
|
-
return undefined;
|
|
15
|
-
const subject = obj.credentialSubject;
|
|
16
|
-
if (Array.isArray(subject))
|
|
17
|
-
return asObject(subject[0]);
|
|
18
|
-
return asObject(subject);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Normalizes a tax identifier into uppercase trimmed form.
|
|
22
|
-
*
|
|
23
|
-
* @param value Raw tax identifier value.
|
|
24
|
-
*/
|
|
25
|
-
export function normalizeTaxIdentifier(value) {
|
|
26
|
-
const normalized = String(value || '').trim().toUpperCase();
|
|
27
|
-
return normalized || undefined;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Extracts an organization tax id from a VC-like organization credential.
|
|
31
|
-
*
|
|
32
|
-
* @param organizationCredential Candidate organization credential.
|
|
33
|
-
*/
|
|
34
|
-
export function extractOrganizationTaxId(organizationCredential) {
|
|
35
|
-
const subject = extractCredentialSubject(organizationCredential) || {};
|
|
36
|
-
const identifier = asObject(subject.identifier);
|
|
37
|
-
return (normalizeTaxIdentifier(subject.taxID)
|
|
38
|
-
|| normalizeTaxIdentifier(subject.taxId)
|
|
39
|
-
|| normalizeTaxIdentifier(identifier?.value)
|
|
40
|
-
|| normalizeTaxIdentifier(subject.identifierValue));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Extracts the `memberOf` tax id from a representative credential.
|
|
44
|
-
*
|
|
45
|
-
* @param representativeCredential Candidate representative credential.
|
|
46
|
-
*/
|
|
47
|
-
export function extractRepresentativeMemberOfTaxId(representativeCredential) {
|
|
48
|
-
const subject = extractCredentialSubject(representativeCredential) || {};
|
|
49
|
-
const memberOf = asObject(subject.memberOf) || {};
|
|
50
|
-
const identifier = asObject(memberOf.identifier);
|
|
51
|
-
return (normalizeTaxIdentifier(memberOf.taxID)
|
|
52
|
-
|| normalizeTaxIdentifier(memberOf.taxId)
|
|
53
|
-
|| normalizeTaxIdentifier(identifier?.value)
|
|
54
|
-
|| normalizeTaxIdentifier(memberOf.identifierValue));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Extracts the representative role code from `credentialSubject.hasOccupation`.
|
|
58
|
-
*
|
|
59
|
-
* @param representativeCredential Candidate representative credential.
|
|
60
|
-
*/
|
|
61
|
-
export function extractRepresentativeRoleCode(representativeCredential) {
|
|
62
|
-
const subject = extractCredentialSubject(representativeCredential) || {};
|
|
63
|
-
const occupation = subject.hasOccupation;
|
|
64
|
-
if (typeof occupation === 'string')
|
|
65
|
-
return occupation.trim() || undefined;
|
|
66
|
-
if (occupation && typeof occupation === 'object') {
|
|
67
|
-
const occ = occupation;
|
|
68
|
-
const idRaw = occ.identifier;
|
|
69
|
-
if (typeof idRaw === 'string' && idRaw.trim())
|
|
70
|
-
return idRaw.trim();
|
|
71
|
-
if (idRaw && typeof idRaw === 'object') {
|
|
72
|
-
const idObj = idRaw;
|
|
73
|
-
const idValue = String(idObj.value || '').trim();
|
|
74
|
-
if (idValue)
|
|
75
|
-
return idValue;
|
|
76
|
-
}
|
|
77
|
-
const idValue = String(occ.value || '').trim();
|
|
78
|
-
if (idValue)
|
|
79
|
-
return idValue;
|
|
80
|
-
const name = String(occ.name || '').trim();
|
|
81
|
-
if (name)
|
|
82
|
-
return name;
|
|
83
|
-
}
|
|
84
|
-
return undefined;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Checks whether a role code contains the required code, ignoring prefixes such as `SYSTEM|`.
|
|
88
|
-
*
|
|
89
|
-
* @param roleCode Candidate role code.
|
|
90
|
-
* @param requiredCode Required normalized code, defaults to `RESPRSN`.
|
|
91
|
-
*/
|
|
92
|
-
export function hasRoleCode(roleCode, requiredCode = 'RESPRSN') {
|
|
93
|
-
const normalizedRole = String(roleCode || '')
|
|
94
|
-
.trim()
|
|
95
|
-
.toUpperCase()
|
|
96
|
-
.replace(/^.*\|/, '')
|
|
97
|
-
.replace(/^[|:]+/, '');
|
|
98
|
-
const normalizedRequired = String(requiredCode || '').trim().toUpperCase();
|
|
99
|
-
return normalizedRole.includes(normalizedRequired);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Extracts representative signing/binding continuity data from `credentialSubject.hasCredential`.
|
|
103
|
-
*
|
|
104
|
-
* Compatibility rules:
|
|
105
|
-
* - legacy VC payloads may still carry `hasCredential.material`
|
|
106
|
-
* - newer payloads may carry the same semantic value in `hasCredential.value`
|
|
107
|
-
* or `hasCredential.identifier.value`
|
|
108
|
-
*
|
|
109
|
-
* @param representativeCredential Candidate representative credential.
|
|
110
|
-
*/
|
|
111
|
-
export function extractRepresentativeCredentialBinding(representativeCredential) {
|
|
112
|
-
const subject = extractCredentialSubject(representativeCredential) || {};
|
|
113
|
-
const credentialData = subject.hasCredential;
|
|
114
|
-
if (typeof credentialData === 'string')
|
|
115
|
-
return credentialData.trim() || undefined;
|
|
116
|
-
if (Array.isArray(credentialData)) {
|
|
117
|
-
for (const item of credentialData) {
|
|
118
|
-
const candidate = extractCredentialBindingValue(item);
|
|
119
|
-
if (candidate)
|
|
120
|
-
return candidate;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (credentialData && typeof credentialData === 'object') {
|
|
124
|
-
const candidate = extractCredentialBindingValue(credentialData);
|
|
125
|
-
if (candidate)
|
|
126
|
-
return candidate;
|
|
127
|
-
}
|
|
128
|
-
return undefined;
|
|
129
|
-
}
|
|
130
|
-
function extractCredentialBindingValue(value) {
|
|
131
|
-
const obj = asObject(value) || {};
|
|
132
|
-
const identifier = asObject(obj.identifier);
|
|
133
|
-
const candidate = String(obj.material
|
|
134
|
-
|| obj.value
|
|
135
|
-
|| identifier?.value
|
|
136
|
-
|| '').trim();
|
|
137
|
-
return candidate || undefined;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Extracts a `did:web:` identifier from a VC-like credential.
|
|
141
|
-
*
|
|
142
|
-
* @param credential Candidate credential.
|
|
143
|
-
*/
|
|
144
|
-
export function extractDidWebFromCredential(credential) {
|
|
145
|
-
const obj = asObject(credential);
|
|
146
|
-
if (!obj)
|
|
147
|
-
return undefined;
|
|
148
|
-
const subject = extractCredentialSubject(obj);
|
|
149
|
-
const didCandidate = String(subject?.id || obj.id || '').trim();
|
|
150
|
-
return didCandidate.startsWith('did:web:') ? didCandidate : undefined;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Builds a deterministic member DID under an owner DID namespace.
|
|
154
|
-
*
|
|
155
|
-
* @param ownerDidWeb Owner DID.
|
|
156
|
-
* @param memberId Member identifier fragment.
|
|
157
|
-
* @param roleCode Role code fragment.
|
|
158
|
-
*/
|
|
159
|
-
export function buildMemberDidWeb(ownerDidWeb, memberId, roleCode) {
|
|
160
|
-
return `${String(ownerDidWeb).trim()}:member:${String(memberId).trim()}:${String(roleCode).trim()}`;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Checks whether a member DID is scoped under an owner DID namespace.
|
|
164
|
-
*
|
|
165
|
-
* @param memberDidWeb Candidate member DID.
|
|
166
|
-
* @param ownerDidWeb Owner DID namespace.
|
|
167
|
-
*/
|
|
168
|
-
export function isMemberDidWebUnderOwner(memberDidWeb, ownerDidWeb) {
|
|
169
|
-
const did = String(memberDidWeb || '').trim();
|
|
170
|
-
const owner = String(ownerDidWeb || '').trim();
|
|
171
|
-
if (!did.startsWith('did:web:') || !owner.startsWith('did:web:'))
|
|
172
|
-
return false;
|
|
173
|
-
return did.startsWith(`${owner}:member:`);
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* Validates the activation representative policy against organization and representative credentials.
|
|
177
|
-
*
|
|
178
|
-
* @param input.organizationCredential Candidate organization credential.
|
|
179
|
-
* @param input.representativeCredential Candidate representative credential.
|
|
180
|
-
* @param input.requiredRoleCode Required representative role, defaults to `RESPRSN`.
|
|
181
|
-
*/
|
|
182
|
-
export function validateActivationRepresentativePolicy(input) {
|
|
183
|
-
const errors = [];
|
|
184
|
-
const representativeDid = input.representativeCredential
|
|
185
|
-
? extractDidWebFromCredential(input.representativeCredential)
|
|
186
|
-
: undefined;
|
|
187
|
-
if (input.representativeCredential && !representativeDid) {
|
|
188
|
-
errors.push({
|
|
189
|
-
code: 'MISSING_REPRESENTATIVE_DID_WEB',
|
|
190
|
-
message: 'ICA-issued representative credential is missing credentialSubject.id did:web.',
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
if (!input.representativeCredential)
|
|
194
|
-
return errors;
|
|
195
|
-
const orgTax = extractOrganizationTaxId(input.organizationCredential);
|
|
196
|
-
const repTax = extractRepresentativeMemberOfTaxId(input.representativeCredential);
|
|
197
|
-
if (orgTax && repTax && orgTax !== repTax) {
|
|
198
|
-
errors.push({
|
|
199
|
-
code: 'REPRESENTATIVE_TAXID_MISMATCH',
|
|
200
|
-
message: 'ICA-issued representative credential memberOf.taxID must match organization credential taxID.',
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
const roleCode = extractRepresentativeRoleCode(input.representativeCredential);
|
|
204
|
-
if (!hasRoleCode(roleCode, input.requiredRoleCode || 'RESPRSN')) {
|
|
205
|
-
errors.push({
|
|
206
|
-
code: 'MISSING_REPRESENTATIVE_ROLE_RESPRSN',
|
|
207
|
-
message: 'ICA-issued representative credential must include Responsible Party role (RESPRSN) in credentialSubject.hasOccupation.',
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
const binding = extractRepresentativeCredentialBinding(input.representativeCredential);
|
|
211
|
-
if (!binding) {
|
|
212
|
-
errors.push({
|
|
213
|
-
code: 'MISSING_REPRESENTATIVE_CREDENTIAL_BINDING',
|
|
214
|
-
message: 'ICA-issued representative credential is missing credentialSubject.hasCredential binding data (material, value, or identifier.value).',
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
return errors;
|
|
218
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ControllerBindingInput, IdentityBootstrapValidationResult, OrganizationActivationRequest, OrganizationBindingInput } from '../models/identity-bootstrap';
|
|
2
|
-
import { JwkSet } from '../models/jwk';
|
|
3
|
-
/**
|
|
4
|
-
* Builder input for the canonical organization/service activation payload.
|
|
5
|
-
*/
|
|
6
|
-
export interface BuildOrganizationActivationRequestInput {
|
|
7
|
-
/** Canonical VP JWT carrying the activation evidence. */
|
|
8
|
-
vpToken: string;
|
|
9
|
-
/** Explicit controller/person key binding for DID publication. */
|
|
10
|
-
controller?: ControllerBindingInput;
|
|
11
|
-
/** Optional organization/provider key binding for DID publication. */
|
|
12
|
-
organization?: OrganizationBindingInput;
|
|
13
|
-
/** Optional OIDC/OID4VP presentation submission descriptor. */
|
|
14
|
-
presentationSubmission?: Record<string, unknown>;
|
|
15
|
-
/** Auxiliary application-specific payload entries. */
|
|
16
|
-
data?: Array<Record<string, unknown>>;
|
|
17
|
-
/** @deprecated Legacy compatibility input. Canonical proof must be carried in `vpToken`. */
|
|
18
|
-
organizationCredential?: unknown;
|
|
19
|
-
/** @deprecated Legacy compatibility input. Canonical proof must be carried in `vpToken`. */
|
|
20
|
-
representativeCredential?: unknown;
|
|
21
|
-
}
|
|
22
|
-
export interface BuildControllerBindingInputInput {
|
|
23
|
-
/** Public DID to publish or bind for the controller/person. */
|
|
24
|
-
did?: string;
|
|
25
|
-
/** Additional public alias such as `mailto:`. */
|
|
26
|
-
sameAs?: string;
|
|
27
|
-
/** Primary controller signing key. */
|
|
28
|
-
publicSignKey?: Record<string, unknown>;
|
|
29
|
-
/** Optional additional public keys, typically DidComm encryption keys. */
|
|
30
|
-
publicKeys?: JwkSet | {
|
|
31
|
-
keys: Array<Record<string, unknown>>;
|
|
32
|
-
} | Array<Record<string, unknown>>;
|
|
33
|
-
}
|
|
34
|
-
export interface BuildOrganizationBindingInputInput {
|
|
35
|
-
/** Public DID to publish or bind for the organization/provider. */
|
|
36
|
-
did?: string;
|
|
37
|
-
/** Public URL associated with the organization identity. */
|
|
38
|
-
url?: string;
|
|
39
|
-
/** Primary organization signing key. */
|
|
40
|
-
publicSignKey?: Record<string, unknown>;
|
|
41
|
-
/** Optional additional public keys. */
|
|
42
|
-
publicKeys?: JwkSet | {
|
|
43
|
-
keys: Array<Record<string, unknown>>;
|
|
44
|
-
} | Array<Record<string, unknown>>;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Builds the canonical controller/person binding from semantic variables.
|
|
48
|
-
*
|
|
49
|
-
* Use this when your integration starts from variables such as:
|
|
50
|
-
* - `controllerDid`
|
|
51
|
-
* - `controllerEmail` converted to `sameAs`
|
|
52
|
-
* - `publicSignKey`
|
|
53
|
-
* - `publicKeys`
|
|
54
|
-
*
|
|
55
|
-
* so the caller does not have to manually shape `controller.publicKeyJwk` and
|
|
56
|
-
* `controller.jwks`.
|
|
57
|
-
*/
|
|
58
|
-
export declare function buildControllerBindingInput(input: BuildControllerBindingInputInput): ControllerBindingInput;
|
|
59
|
-
/**
|
|
60
|
-
* Builds the canonical organization/provider binding from semantic variables.
|
|
61
|
-
*/
|
|
62
|
-
export declare function buildOrganizationBindingInput(input: BuildOrganizationBindingInputInput): OrganizationBindingInput;
|
|
63
|
-
/**
|
|
64
|
-
* Builds the canonical `_activate` request payload shared by SDK and GW helpers.
|
|
65
|
-
*
|
|
66
|
-
* The resulting object intentionally preserves deprecated compatibility fields
|
|
67
|
-
* when supplied, so callers can keep legacy flows alive while validators and
|
|
68
|
-
* runtime layers flag that debt explicitly.
|
|
69
|
-
*/
|
|
70
|
-
export declare function buildOrganizationActivationRequest(input: BuildOrganizationActivationRequestInput): OrganizationActivationRequest;
|
|
71
|
-
/**
|
|
72
|
-
* Validates the canonical activation request contract.
|
|
73
|
-
*
|
|
74
|
-
* Priority rules:
|
|
75
|
-
* 1. `vp_token` is mandatory as the canonical activation proof.
|
|
76
|
-
* 2. `controller.*` is optional, but if a controller DID/alias is provided then
|
|
77
|
-
* matching public key material must also be present so a DID Document can be published.
|
|
78
|
-
* 3. Legacy `organizationCredential` and `representativeCredential` are tolerated
|
|
79
|
-
* only as deprecated compatibility inputs and therefore produce warnings.
|
|
80
|
-
*/
|
|
81
|
-
export declare function validateOrganizationActivationRequest(request: OrganizationActivationRequest): IdentityBootstrapValidationResult;
|