gdc-sdk-front-ts 2.2.1 → 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.
Files changed (387) hide show
  1. package/dist/ProfileManager.js +6 -3
  2. package/dist/front-clinical-runtime-client.d.ts +69 -0
  3. package/dist/front-clinical-runtime-client.js +214 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +1 -0
  6. package/dist/orchestration/client-port.d.ts +21 -3
  7. package/dist/orchestration/individual-member-sdk.d.ts +11 -1
  8. package/dist/orchestration/individual-member-sdk.js +12 -0
  9. package/dist/orchestration/professional-sdk.d.ts +7 -1
  10. package/dist/orchestration/professional-sdk.js +6 -0
  11. package/package.json +3 -3
  12. package/dist/discovery/HttpDataspaceDiscoveryClient.d.ts +0 -34
  13. package/dist/discovery/HttpDataspaceDiscoveryClient.js +0 -47
  14. package/dist/gdc-common-utils-ts/src/AesManager.d.ts +0 -27
  15. package/dist/gdc-common-utils-ts/src/AesManager.js +0 -64
  16. package/dist/gdc-common-utils-ts/src/CryptographyService.d.ts +0 -76
  17. package/dist/gdc-common-utils-ts/src/CryptographyService.js +0 -401
  18. package/dist/gdc-common-utils-ts/src/constants/actor-session.d.ts +0 -40
  19. package/dist/gdc-common-utils-ts/src/constants/actor-session.js +0 -40
  20. package/dist/gdc-common-utils-ts/src/constants/communication.d.ts +0 -28
  21. package/dist/gdc-common-utils-ts/src/constants/communication.js +0 -14
  22. package/dist/gdc-common-utils-ts/src/constants/cryptography.d.ts +0 -58
  23. package/dist/gdc-common-utils-ts/src/constants/cryptography.js +0 -49
  24. package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.d.ts +0 -11
  25. package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.js +0 -11
  26. package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.d.ts +0 -27
  27. package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.js +0 -27
  28. package/dist/gdc-common-utils-ts/src/constants/device.d.ts +0 -16
  29. package/dist/gdc-common-utils-ts/src/constants/device.js +0 -15
  30. package/dist/gdc-common-utils-ts/src/constants/did-services.d.ts +0 -42
  31. package/dist/gdc-common-utils-ts/src/constants/did-services.js +0 -40
  32. package/dist/gdc-common-utils-ts/src/constants/eu-countries.d.ts +0 -36
  33. package/dist/gdc-common-utils-ts/src/constants/eu-countries.js +0 -69
  34. package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.d.ts +0 -12
  35. package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.js +0 -12
  36. package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.d.ts +0 -52
  37. package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.js +0 -33
  38. package/dist/gdc-common-utils-ts/src/constants/fhir-versions.d.ts +0 -10
  39. package/dist/gdc-common-utils-ts/src/constants/fhir-versions.js +0 -10
  40. package/dist/gdc-common-utils-ts/src/constants/healthcare.d.ts +0 -496
  41. package/dist/gdc-common-utils-ts/src/constants/healthcare.js +0 -274
  42. package/dist/gdc-common-utils-ts/src/constants/hl7-roles.d.ts +0 -44
  43. package/dist/gdc-common-utils-ts/src/constants/hl7-roles.js +0 -208
  44. package/dist/gdc-common-utils-ts/src/constants/index.d.ts +0 -21
  45. package/dist/gdc-common-utils-ts/src/constants/index.js +0 -21
  46. package/dist/gdc-common-utils-ts/src/constants/network.d.ts +0 -25
  47. package/dist/gdc-common-utils-ts/src/constants/network.js +0 -17
  48. package/dist/gdc-common-utils-ts/src/constants/schemaorg.d.ts +0 -175
  49. package/dist/gdc-common-utils-ts/src/constants/schemaorg.js +0 -261
  50. package/dist/gdc-common-utils-ts/src/constants/sectors.d.ts +0 -24
  51. package/dist/gdc-common-utils-ts/src/constants/sectors.js +0 -24
  52. package/dist/gdc-common-utils-ts/src/constants/service-capabilities.d.ts +0 -82
  53. package/dist/gdc-common-utils-ts/src/constants/service-capabilities.js +0 -105
  54. package/dist/gdc-common-utils-ts/src/constants/smart.d.ts +0 -12
  55. package/dist/gdc-common-utils-ts/src/constants/smart.js +0 -12
  56. package/dist/gdc-common-utils-ts/src/constants/urn.d.ts +0 -11
  57. package/dist/gdc-common-utils-ts/src/constants/urn.js +0 -11
  58. package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.d.ts +0 -34
  59. package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.js +0 -42
  60. package/dist/gdc-common-utils-ts/src/constants/vital-signs.d.ts +0 -75
  61. package/dist/gdc-common-utils-ts/src/constants/vital-signs.js +0 -33
  62. package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.d.ts +0 -15
  63. package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.js +0 -16
  64. package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.d.ts +0 -22
  65. package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.js +0 -81
  66. package/dist/gdc-common-utils-ts/src/examples/consent-access.d.ts +0 -30
  67. package/dist/gdc-common-utils-ts/src/examples/consent-access.js +0 -121
  68. package/dist/gdc-common-utils-ts/src/examples/contract-examples.d.ts +0 -15
  69. package/dist/gdc-common-utils-ts/src/examples/contract-examples.js +0 -16
  70. package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.d.ts +0 -98
  71. package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.js +0 -141
  72. package/dist/gdc-common-utils-ts/src/examples/frontend-session.d.ts +0 -13
  73. package/dist/gdc-common-utils-ts/src/examples/frontend-session.js +0 -24
  74. package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.d.ts +0 -64
  75. package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.js +0 -77
  76. package/dist/gdc-common-utils-ts/src/examples/index.d.ts +0 -14
  77. package/dist/gdc-common-utils-ts/src/examples/index.js +0 -14
  78. package/dist/gdc-common-utils-ts/src/examples/individual-controller.d.ts +0 -100
  79. package/dist/gdc-common-utils-ts/src/examples/individual-controller.js +0 -71
  80. package/dist/gdc-common-utils-ts/src/examples/lifecycle.d.ts +0 -505
  81. package/dist/gdc-common-utils-ts/src/examples/lifecycle.js +0 -291
  82. package/dist/gdc-common-utils-ts/src/examples/organization-controller.d.ts +0 -163
  83. package/dist/gdc-common-utils-ts/src/examples/organization-controller.js +0 -93
  84. package/dist/gdc-common-utils-ts/src/examples/professional.d.ts +0 -228
  85. package/dist/gdc-common-utils-ts/src/examples/professional.js +0 -324
  86. package/dist/gdc-common-utils-ts/src/examples/related-person.d.ts +0 -10
  87. package/dist/gdc-common-utils-ts/src/examples/related-person.js +0 -13
  88. package/dist/gdc-common-utils-ts/src/examples/relationship-access.d.ts +0 -11
  89. package/dist/gdc-common-utils-ts/src/examples/relationship-access.js +0 -96
  90. package/dist/gdc-common-utils-ts/src/examples/shared.d.ts +0 -220
  91. package/dist/gdc-common-utils-ts/src/examples/shared.js +0 -191
  92. package/dist/gdc-common-utils-ts/src/hmac.d.ts +0 -14
  93. package/dist/gdc-common-utils-ts/src/hmac.js +0 -24
  94. package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.d.ts +0 -6
  95. package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.js +0 -15
  96. package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.d.ts +0 -4
  97. package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.js +0 -13
  98. package/dist/gdc-common-utils-ts/src/index.d.ts +0 -10
  99. package/dist/gdc-common-utils-ts/src/index.js +0 -10
  100. package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.d.ts +0 -139
  101. package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.js +0 -8
  102. package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.d.ts +0 -28
  103. package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.js +0 -3
  104. package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.d.ts +0 -154
  105. package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.js +0 -3
  106. package/dist/gdc-common-utils-ts/src/models/actor-session.d.ts +0 -9
  107. package/dist/gdc-common-utils-ts/src/models/actor-session.js +0 -3
  108. package/dist/gdc-common-utils-ts/src/models/aes.d.ts +0 -85
  109. package/dist/gdc-common-utils-ts/src/models/aes.js +0 -10
  110. package/dist/gdc-common-utils-ts/src/models/auth.d.ts +0 -35
  111. package/dist/gdc-common-utils-ts/src/models/auth.js +0 -3
  112. package/dist/gdc-common-utils-ts/src/models/bundle.d.ts +0 -153
  113. package/dist/gdc-common-utils-ts/src/models/bundle.js +0 -25
  114. package/dist/gdc-common-utils-ts/src/models/clinical-sections.d.ts +0 -36
  115. package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.d.ts +0 -150
  116. package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.js +0 -104
  117. package/dist/gdc-common-utils-ts/src/models/clinical-sections.js +0 -32
  118. package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.d.ts +0 -126
  119. package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.js +0 -67
  120. package/dist/gdc-common-utils-ts/src/models/comm.d.ts +0 -56
  121. package/dist/gdc-common-utils-ts/src/models/comm.js +0 -4
  122. package/dist/gdc-common-utils-ts/src/models/confidential-job.d.ts +0 -78
  123. package/dist/gdc-common-utils-ts/src/models/confidential-job.js +0 -20
  124. package/dist/gdc-common-utils-ts/src/models/confidential-message.d.ts +0 -97
  125. package/dist/gdc-common-utils-ts/src/models/confidential-message.js +0 -4
  126. package/dist/gdc-common-utils-ts/src/models/confidential-storage.d.ts +0 -134
  127. package/dist/gdc-common-utils-ts/src/models/confidential-storage.js +0 -3
  128. package/dist/gdc-common-utils-ts/src/models/consent-access.d.ts +0 -79
  129. package/dist/gdc-common-utils-ts/src/models/consent-access.js +0 -2
  130. package/dist/gdc-common-utils-ts/src/models/consent-rule.d.ts +0 -122
  131. package/dist/gdc-common-utils-ts/src/models/consent-rule.js +0 -22
  132. package/dist/gdc-common-utils-ts/src/models/crypto.d.ts +0 -35
  133. package/dist/gdc-common-utils-ts/src/models/crypto.js +0 -3
  134. package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.d.ts +0 -79
  135. package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.js +0 -2
  136. package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.d.ts +0 -68
  137. package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.js +0 -9
  138. package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.d.ts +0 -14
  139. package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.js +0 -2
  140. package/dist/gdc-common-utils-ts/src/models/device-license.d.ts +0 -134
  141. package/dist/gdc-common-utils-ts/src/models/device-license.js +0 -3
  142. package/dist/gdc-common-utils-ts/src/models/did.d.ts +0 -108
  143. package/dist/gdc-common-utils-ts/src/models/did.js +0 -3
  144. package/dist/gdc-common-utils-ts/src/models/fhir-documents.d.ts +0 -101
  145. package/dist/gdc-common-utils-ts/src/models/fhir-documents.js +0 -3
  146. package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.d.ts +0 -104
  147. package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.js +0 -2
  148. package/dist/gdc-common-utils-ts/src/models/index.d.ts +0 -42
  149. package/dist/gdc-common-utils-ts/src/models/index.js +0 -42
  150. package/dist/gdc-common-utils-ts/src/models/indexing.d.ts +0 -11
  151. package/dist/gdc-common-utils-ts/src/models/indexing.js +0 -18
  152. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.d.ts +0 -24
  153. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.js +0 -36
  154. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.d.ts +0 -53
  155. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.js +0 -55
  156. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.d.ts +0 -14
  157. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.js +0 -25
  158. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.d.ts +0 -13
  159. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.js +0 -23
  160. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.d.ts +0 -36
  161. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.js +0 -89
  162. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.d.ts +0 -341
  163. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.js +0 -204
  164. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.d.ts +0 -9
  165. package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.js +0 -3
  166. package/dist/gdc-common-utils-ts/src/models/interoperable-claims.d.ts +0 -5
  167. package/dist/gdc-common-utils-ts/src/models/interoperable-claims.js +0 -7
  168. package/dist/gdc-common-utils-ts/src/models/issue.d.ts +0 -57
  169. package/dist/gdc-common-utils-ts/src/models/issue.js +0 -75
  170. package/dist/gdc-common-utils-ts/src/models/jsonapi.d.ts +0 -13
  171. package/dist/gdc-common-utils-ts/src/models/jsonapi.js +0 -3
  172. package/dist/gdc-common-utils-ts/src/models/jwe.d.ts +0 -120
  173. package/dist/gdc-common-utils-ts/src/models/jwe.js +0 -3
  174. package/dist/gdc-common-utils-ts/src/models/jwk.d.ts +0 -39
  175. package/dist/gdc-common-utils-ts/src/models/jwk.js +0 -3
  176. package/dist/gdc-common-utils-ts/src/models/jws.d.ts +0 -35
  177. package/dist/gdc-common-utils-ts/src/models/jws.js +0 -3
  178. package/dist/gdc-common-utils-ts/src/models/jwt.d.ts +0 -9
  179. package/dist/gdc-common-utils-ts/src/models/jwt.js +0 -3
  180. package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.d.ts +0 -55
  181. package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.js +0 -58
  182. package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.d.ts +0 -33
  183. package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.js +0 -3
  184. package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.d.ts +0 -50
  185. package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.js +0 -3
  186. package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.d.ts +0 -67
  187. package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.js +0 -3
  188. package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.d.ts +0 -51
  189. package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.js +0 -5
  190. package/dist/gdc-common-utils-ts/src/models/openid-device.d.ts +0 -119
  191. package/dist/gdc-common-utils-ts/src/models/openid-device.js +0 -3
  192. package/dist/gdc-common-utils-ts/src/models/operation-outcome.d.ts +0 -26
  193. package/dist/gdc-common-utils-ts/src/models/operation-outcome.js +0 -3
  194. package/dist/gdc-common-utils-ts/src/models/params.d.ts +0 -133
  195. package/dist/gdc-common-utils-ts/src/models/params.js +0 -3
  196. package/dist/gdc-common-utils-ts/src/models/relationship-access.d.ts +0 -160
  197. package/dist/gdc-common-utils-ts/src/models/relationship-access.js +0 -21
  198. package/dist/gdc-common-utils-ts/src/models/resource-document.d.ts +0 -14
  199. package/dist/gdc-common-utils-ts/src/models/resource-document.js +0 -3
  200. package/dist/gdc-common-utils-ts/src/models/response.d.ts +0 -1
  201. package/dist/gdc-common-utils-ts/src/models/response.js +0 -3
  202. package/dist/gdc-common-utils-ts/src/models/urlPath.d.ts +0 -58
  203. package/dist/gdc-common-utils-ts/src/models/urlPath.js +0 -76
  204. package/dist/gdc-common-utils-ts/src/models/verifiable-credential.d.ts +0 -45
  205. package/dist/gdc-common-utils-ts/src/models/verifiable-credential.js +0 -8
  206. package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.d.ts +0 -53
  207. package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.js +0 -25
  208. package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.d.ts +0 -30
  209. package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.js +0 -81
  210. package/dist/gdc-common-utils-ts/src/storage/index.d.ts +0 -3
  211. package/dist/gdc-common-utils-ts/src/storage/index.js +0 -4
  212. package/dist/gdc-common-utils-ts/src/utils/activation-policy.d.ts +0 -86
  213. package/dist/gdc-common-utils-ts/src/utils/activation-policy.js +0 -218
  214. package/dist/gdc-common-utils-ts/src/utils/activation-request.d.ts +0 -81
  215. package/dist/gdc-common-utils-ts/src/utils/activation-request.js +0 -99
  216. package/dist/gdc-common-utils-ts/src/utils/actor.d.ts +0 -18
  217. package/dist/gdc-common-utils-ts/src/utils/actor.js +0 -36
  218. package/dist/gdc-common-utils-ts/src/utils/base-convert.d.ts +0 -60
  219. package/dist/gdc-common-utils-ts/src/utils/base-convert.js +0 -104
  220. package/dist/gdc-common-utils-ts/src/utils/baseN.d.ts +0 -35
  221. package/dist/gdc-common-utils-ts/src/utils/baseN.js +0 -174
  222. package/dist/gdc-common-utils-ts/src/utils/bundle-query.d.ts +0 -35
  223. package/dist/gdc-common-utils-ts/src/utils/bundle-query.js +0 -177
  224. package/dist/gdc-common-utils-ts/src/utils/bundle.d.ts +0 -13
  225. package/dist/gdc-common-utils-ts/src/utils/bundle.js +0 -39
  226. package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.d.ts +0 -64
  227. package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.js +0 -279
  228. package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.d.ts +0 -55
  229. package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.js +0 -291
  230. package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.d.ts +0 -110
  231. package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.js +0 -326
  232. package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.d.ts +0 -41
  233. package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.js +0 -170
  234. package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.d.ts +0 -41
  235. package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.js +0 -215
  236. package/dist/gdc-common-utils-ts/src/utils/communication-identity.d.ts +0 -152
  237. package/dist/gdc-common-utils-ts/src/utils/communication-identity.js +0 -121
  238. package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.d.ts +0 -79
  239. package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.js +0 -213
  240. package/dist/gdc-common-utils-ts/src/utils/consent.d.ts +0 -218
  241. package/dist/gdc-common-utils-ts/src/utils/consent.js +0 -679
  242. package/dist/gdc-common-utils-ts/src/utils/content.d.ts +0 -55
  243. package/dist/gdc-common-utils-ts/src/utils/content.js +0 -60
  244. package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.d.ts +0 -130
  245. package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.js +0 -307
  246. package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.d.ts +0 -235
  247. package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.js +0 -482
  248. package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.d.ts +0 -66
  249. package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.js +0 -109
  250. package/dist/gdc-common-utils-ts/src/utils/did-resolution.d.ts +0 -60
  251. package/dist/gdc-common-utils-ts/src/utils/did-resolution.js +0 -173
  252. package/dist/gdc-common-utils-ts/src/utils/did.d.ts +0 -124
  253. package/dist/gdc-common-utils-ts/src/utils/did.js +0 -204
  254. package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.d.ts +0 -10
  255. package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.js +0 -15
  256. package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.d.ts +0 -48
  257. package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.js +0 -81
  258. package/dist/gdc-common-utils-ts/src/utils/didcomm.d.ts +0 -60
  259. package/dist/gdc-common-utils-ts/src/utils/didcomm.js +0 -78
  260. package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.d.ts +0 -28
  261. package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.js +0 -64
  262. package/dist/gdc-common-utils-ts/src/utils/fhir-cid.d.ts +0 -60
  263. package/dist/gdc-common-utils-ts/src/utils/fhir-cid.js +0 -152
  264. package/dist/gdc-common-utils-ts/src/utils/fhir-validator.d.ts +0 -61
  265. package/dist/gdc-common-utils-ts/src/utils/fhir-validator.js +0 -91
  266. package/dist/gdc-common-utils-ts/src/utils/format-converter.d.ts +0 -21
  267. package/dist/gdc-common-utils-ts/src/utils/format-converter.js +0 -109
  268. package/dist/gdc-common-utils-ts/src/utils/index.d.ts +0 -39
  269. package/dist/gdc-common-utils-ts/src/utils/index.js +0 -39
  270. package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.d.ts +0 -55
  271. package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.js +0 -191
  272. package/dist/gdc-common-utils-ts/src/utils/jwt.d.ts +0 -53
  273. package/dist/gdc-common-utils-ts/src/utils/jwt.js +0 -154
  274. package/dist/gdc-common-utils-ts/src/utils/manager-error.d.ts +0 -15
  275. package/dist/gdc-common-utils-ts/src/utils/manager-error.js +0 -21
  276. package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.d.ts +0 -56
  277. package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.js +0 -127
  278. package/dist/gdc-common-utils-ts/src/utils/multibase58.d.ts +0 -13
  279. package/dist/gdc-common-utils-ts/src/utils/multibase58.js +0 -40
  280. package/dist/gdc-common-utils-ts/src/utils/multibasehash.d.ts +0 -8
  281. package/dist/gdc-common-utils-ts/src/utils/multibasehash.js +0 -23
  282. package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.d.ts +0 -1
  283. package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.js +0 -35
  284. package/dist/gdc-common-utils-ts/src/utils/normalize.d.ts +0 -16
  285. package/dist/gdc-common-utils-ts/src/utils/normalize.js +0 -40
  286. package/dist/gdc-common-utils-ts/src/utils/object-convert.d.ts +0 -20
  287. package/dist/gdc-common-utils-ts/src/utils/object-convert.js +0 -51
  288. package/dist/gdc-common-utils-ts/src/utils/smart-scope.d.ts +0 -28
  289. package/dist/gdc-common-utils-ts/src/utils/smart-scope.js +0 -29
  290. package/dist/gdc-common-utils-ts/src/utils/string-convert.d.ts +0 -24
  291. package/dist/gdc-common-utils-ts/src/utils/string-convert.js +0 -62
  292. package/dist/gdc-common-utils-ts/src/utils/string-utils.d.ts +0 -25
  293. package/dist/gdc-common-utils-ts/src/utils/string-utils.js +0 -66
  294. package/dist/gdc-common-utils-ts/src/utils/url.d.ts +0 -26
  295. package/dist/gdc-common-utils-ts/src/utils/url.js +0 -44
  296. package/dist/gdc-common-utils-ts/src/utils/vp-token.d.ts +0 -139
  297. package/dist/gdc-common-utils-ts/src/utils/vp-token.js +0 -256
  298. package/dist/gdc-sdk-core-ts/src/actor-model.d.ts +0 -56
  299. package/dist/gdc-sdk-core-ts/src/actor-model.js +0 -112
  300. package/dist/gdc-sdk-core-ts/src/app-identity.d.ts +0 -80
  301. package/dist/gdc-sdk-core-ts/src/app-identity.js +0 -147
  302. package/dist/gdc-sdk-core-ts/src/bootstrap-facade.d.ts +0 -165
  303. package/dist/gdc-sdk-core-ts/src/bootstrap-facade.js +0 -191
  304. package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.d.ts +0 -112
  305. package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.js +0 -185
  306. package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.d.ts +0 -32
  307. package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.js +0 -215
  308. package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.d.ts +0 -55
  309. package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.js +0 -190
  310. package/dist/gdc-sdk-core-ts/src/communication-document-facade.d.ts +0 -55
  311. package/dist/gdc-sdk-core-ts/src/communication-document-facade.js +0 -194
  312. package/dist/gdc-sdk-core-ts/src/communication-draft.d.ts +0 -104
  313. package/dist/gdc-sdk-core-ts/src/communication-draft.js +0 -143
  314. package/dist/gdc-sdk-core-ts/src/communication-outbox.d.ts +0 -49
  315. package/dist/gdc-sdk-core-ts/src/communication-outbox.js +0 -62
  316. package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.d.ts +0 -180
  317. package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.js +0 -455
  318. package/dist/gdc-sdk-core-ts/src/consent-access.d.ts +0 -73
  319. package/dist/gdc-sdk-core-ts/src/consent-access.js +0 -109
  320. package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.d.ts +0 -5
  321. package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.js +0 -6
  322. package/dist/gdc-sdk-core-ts/src/consent-communication-operations.d.ts +0 -82
  323. package/dist/gdc-sdk-core-ts/src/consent-communication-operations.js +0 -135
  324. package/dist/gdc-sdk-core-ts/src/did-resolution-session.d.ts +0 -33
  325. package/dist/gdc-sdk-core-ts/src/did-resolution-session.js +0 -56
  326. package/dist/gdc-sdk-core-ts/src/discovery-facade.d.ts +0 -84
  327. package/dist/gdc-sdk-core-ts/src/discovery-facade.js +0 -24
  328. package/dist/gdc-sdk-core-ts/src/identity-model.d.ts +0 -46
  329. package/dist/gdc-sdk-core-ts/src/identity-model.js +0 -2
  330. package/dist/gdc-sdk-core-ts/src/identity-store.d.ts +0 -83
  331. package/dist/gdc-sdk-core-ts/src/identity-store.js +0 -51
  332. package/dist/gdc-sdk-core-ts/src/index.d.ts +0 -23
  333. package/dist/gdc-sdk-core-ts/src/index.js +0 -24
  334. package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.d.ts +0 -5
  335. package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.js +0 -6
  336. package/dist/gdc-sdk-core-ts/src/polling-model.d.ts +0 -35
  337. package/dist/gdc-sdk-core-ts/src/polling-model.js +0 -24
  338. package/dist/gdc-sdk-core-ts/src/relationship-access.d.ts +0 -40
  339. package/dist/gdc-sdk-core-ts/src/relationship-access.js +0 -150
  340. package/dist/gdc-sdk-core-ts/src/session-model.d.ts +0 -134
  341. package/dist/gdc-sdk-core-ts/src/session-model.js +0 -2
  342. package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.d.ts +0 -19
  343. package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.js +0 -19
  344. package/dist/gdc-sdk-core-ts/src/vital-signs.d.ts +0 -38
  345. package/dist/gdc-sdk-core-ts/src/vital-signs.js +0 -155
  346. package/dist/gdc-sdk-front-ts/src/ClientSDK.d.ts +0 -99
  347. package/dist/gdc-sdk-front-ts/src/ClientSDK.js +0 -177
  348. package/dist/gdc-sdk-front-ts/src/ProfileManager.d.ts +0 -140
  349. package/dist/gdc-sdk-front-ts/src/ProfileManager.js +0 -76
  350. package/dist/gdc-sdk-front-ts/src/ProfileRegistry.d.ts +0 -11
  351. package/dist/gdc-sdk-front-ts/src/ProfileRegistry.js +0 -26
  352. package/dist/gdc-sdk-front-ts/src/VerifierService.d.ts +0 -6
  353. package/dist/gdc-sdk-front-ts/src/VerifierService.js +0 -10
  354. package/dist/gdc-sdk-front-ts/src/actor-session.d.ts +0 -2
  355. package/dist/gdc-sdk-front-ts/src/actor-session.js +0 -2
  356. package/dist/gdc-sdk-front-ts/src/capabilityMapper.d.ts +0 -8
  357. package/dist/gdc-sdk-front-ts/src/capabilityMapper.js +0 -28
  358. package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.d.ts +0 -4
  359. package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.js +0 -5
  360. package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.d.ts +0 -54
  361. package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.js +0 -85
  362. package/dist/gdc-sdk-front-ts/src/discovery/index.d.ts +0 -3
  363. package/dist/gdc-sdk-front-ts/src/discovery/index.js +0 -4
  364. package/dist/gdc-sdk-front-ts/src/discovery/mappers.d.ts +0 -29
  365. package/dist/gdc-sdk-front-ts/src/discovery/mappers.js +0 -60
  366. package/dist/gdc-sdk-front-ts/src/discovery/types.d.ts +0 -83
  367. package/dist/gdc-sdk-front-ts/src/discovery/types.js +0 -2
  368. package/dist/gdc-sdk-front-ts/src/index.d.ts +0 -15
  369. package/dist/gdc-sdk-front-ts/src/index.js +0 -16
  370. package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.d.ts +0 -4
  371. package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.js +0 -5
  372. package/dist/gdc-sdk-front-ts/src/roleRegistry.d.ts +0 -19
  373. package/dist/gdc-sdk-front-ts/src/roleRegistry.js +0 -2
  374. package/dist/gdc-sdk-front-ts/src/runtime-contracts.d.ts +0 -22
  375. package/dist/gdc-sdk-front-ts/src/runtime-contracts.js +0 -7
  376. package/dist/gdc-sdk-front-ts/src/services.d.ts +0 -167
  377. package/dist/gdc-sdk-front-ts/src/services.js +0 -78
  378. package/dist/gdc-sdk-front-ts/src/session-descriptor.d.ts +0 -11
  379. package/dist/gdc-sdk-front-ts/src/session-descriptor.js +0 -8
  380. package/dist/gdc-sdk-front-ts/src/types.d.ts +0 -11
  381. package/dist/gdc-sdk-front-ts/src/types.js +0 -1
  382. package/dist/lifecycle-examples.d.ts +0 -6
  383. package/dist/lifecycle-examples.js +0 -7
  384. package/dist/medication-claim-helpers.d.ts +0 -4
  385. package/dist/medication-claim-helpers.js +0 -5
  386. package/dist/orchestration/facades.d.ts +0 -65
  387. package/dist/orchestration/facades.js +0 -142
@@ -1,97 +0,0 @@
1
- import { ProtectedHeadersJWE } from "./jwe";
2
- import { JwsHeader } from "./jws";
3
- export type { DataEntry } from "./comm";
4
- /**
5
- * Defines the structure of the cryptographic metadata associated with a job request.
6
- */
7
- export interface DidCommDecodedMetadata {
8
- jws?: {
9
- protected?: JwsHeader;
10
- /** Detached signature of the request JWS (when available). */
11
- signature?: string;
12
- };
13
- jwe?: {
14
- header?: ProtectedHeadersJWE;
15
- };
16
- bearer?: {
17
- compact?: string;
18
- jwt: {
19
- header?: JwsHeader;
20
- payload?: Record<string, any>;
21
- };
22
- };
23
- }
24
- /**
25
- * Represents the standard payload of a DIDComm v2 message.
26
- * @see https://identity.foundation/didcomm-messaging/spec/v2.0/#plaintext-message-structure
27
- */
28
- /**
29
- * Represents the plaintext of a decoded DIDComm message.
30
- * This is the core business-level "input" for a job.
31
- * For FAPI compliance, this entire object is typically the payload of a signed JWS.
32
- */
33
- export interface IDecodedDidcommPayload {
34
- /** Relevant information available through the decryption and verification process */
35
- meta?: DidCommDecodedMetadata;
36
- /**
37
- * (Issuer) The DID of the entity that issued the message.
38
- * REQUIRED for FAPI. MUST match the signer of the enclosing JWS.
39
- */
40
- iss: string;
41
- /**
42
- * (Audience) The URL of the backend endpoint that will process this message.
43
- * REQUIRED for FAPI. The backend MUST validate that this value matches its own URL.
44
- */
45
- aud: string;
46
- /** (Expiration Time) Timestamp after which the message is considered invalid. REQUIRED for FAPI (instead of expires_time). */
47
- exp?: number;
48
- /** (Not Before) Timestamp before which the message must not be processed. REQUIRED for FAPI (instead of created_time). */
49
- nbf?: number;
50
- /** (Issued At) Timestamp when the message was issued. REQUIRED for FAPI. */
51
- iat?: number;
52
- /**
53
- * (JWT ID) A unique identifier for this message/token. Can be used to prevent replay attacks.
54
- * In our architecture, this can also serve as the version hash of the data content.
55
- */
56
- jti: string;
57
- /** Optional. The `jti` identifies both the message and job for processing */
58
- id?: string;
59
- /** The Transaction ID / Thread ID for message correlation across an interaction. */
60
- thid: string;
61
- /** Parent Thread ID */
62
- pthid?: string;
63
- /** The DID of the intended recipient. Used for P2P messaging, informational in client-server requests. */
64
- to?: string[];
65
- /** The DID of the sender. Used for P2P messaging, but `iss` is the authoritative value for FAPI. */
66
- from?: string;
67
- /**
68
- * The Message Type URI, identifying the type of data in the body or protocol used.
69
- * (e.g. 'application/json')
70
- */
71
- type: string;
72
- /** The main business payload of the message. The structure is defined by the 'type' protocol. */
73
- body: any;
74
- }
75
- /**
76
- * Represents a data entry in the `body` of a CommMsgExtended,
77
- * following a hybrid JSON:API and FHIR structure.
78
- */
79
- export interface CommDataEntry {
80
- id: string;
81
- type: 'Annotation' | 'Reference' | 'Attachment' | 'CodeableConcept' | string;
82
- resource: {
83
- [key: string]: any;
84
- };
85
- meta?: {
86
- claims: any;
87
- };
88
- }
89
- /**
90
- * The canonical, internal representation of a secure message, extending
91
- * the standard DIDComm payload with FHIR-specific, flattened metadata.
92
- */
93
- export interface ICommPayloadExtended extends IDecodedDidcommPayload {
94
- body: {
95
- data: CommDataEntry[];
96
- };
97
- }
@@ -1,4 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: crypto-ts/models/confidential-message.ts
3
- // Description: Defines the core communication and data structures based on DIDComm and FHIR.
4
- export {};
@@ -1,134 +0,0 @@
1
- import { ParameterType } from './params';
2
- /**
3
- * FHIR `Coding`-like tag used for research/analytics metadata.
4
- * Keep values coarse and coded; avoid free text in `display` unless explicitly policy-approved.
5
- */
6
- export interface MetaTagCoding {
7
- system?: string;
8
- code?: string;
9
- version?: string;
10
- display?: string;
11
- userSelected?: boolean;
12
- }
13
- /**
14
- * Research/analytics metadata kept outside encrypted `content`.
15
- * Policy-dependent: treat these fields as potentially sensitive.
16
- */
17
- export interface ResearchInfo {
18
- /** Coarse jurisdiction identifier (e.g., "cds-es" or "ES"). */
19
- jurisdiction?: string;
20
- /** Year of birth (YYYY). */
21
- yearOfBirth?: string;
22
- /** Gender identity (user-identified). Keep coded and coarse. */
23
- gender?: string;
24
- /** Sex assigned at birth (if collected). Keep coded and coarse. */
25
- sexAtBirth?: string;
26
- }
27
- /**
28
- * Audit metadata for traceability.
29
- *
30
- * Values are set by the software (off-ledger) and/or by an external attestation layer (on-ledger).
31
- * This object is intentionally separate from:
32
- * - `research` (analytics metadata)
33
- * - any `meta` object inside encrypted `content` (e.g., entry `meta.claims`)
34
- */
35
- export interface AuditInfo {
36
- /** When the document was first created off-ledger (ISO 8601). */
37
- created?: string;
38
- /** When the document was last updated off-ledger (ISO 8601). */
39
- updated?: string;
40
- /** True if removed/deactivated (deactivation time is typically `updated`). */
41
- deactivated?: boolean;
42
- /** Name of the channel/network where the data is audited/anchored. */
43
- channel?: string;
44
- /** Base58/Base64Url transaction identifier, depending on the attestation layer. */
45
- txId?: string;
46
- /** Transaction timestamp (ISO 8601). */
47
- txTime?: string;
48
- }
49
- /**
50
- * Defines the structure of an attribute to be indexed for blind, searchable queries.
51
- * @see https://identity.foundation/confidential-storage/#indexed-attributes
52
- */
53
- export interface IndexedAttribute {
54
- name: string;
55
- value: string;
56
- unique?: boolean;
57
- /**
58
- * The original data type of the `value` before it was converted to a string
59
- * for HMAC protection. This is essential for performing type-aware queries
60
- * (e.g., numerical range queries) on the indexed data.
61
- * If not present, the type is assumed to be 'string'.
62
- */
63
- type?: ParameterType | string;
64
- }
65
- /**
66
- * Defines an indexed portion of a confidential document, allowing specific attributes to be searchable.
67
- */
68
- export interface IndexedData {
69
- attributes: IndexedAttribute[];
70
- hmac?: {
71
- id: string;
72
- type: string;
73
- };
74
- sequence?: number;
75
- }
76
- /**
77
- * Represents a complete Structured Document as defined by the Confidential Storage specification.
78
- * This is the canonical format for all documents persisted in a vault.
79
- * @see https://identity.foundation/confidential-storage/#structureddocument
80
- */
81
- export interface ConfidentialStorageDoc {
82
- id: string;
83
- status: string;
84
- /**
85
- * Optional content-derived version identifier.
86
- *
87
- * Recommended usage:
88
- * - set to a deterministic content hash of the canonicalized artifact/claims (e.g., multihash over JCS bytes),
89
- * so each semantic update yields a new `versionId`.
90
- * - do NOT use this for blockchain transaction identifiers (use `audit.txId` / `audit.txTime` instead).
91
- */
92
- versionId?: string;
93
- vaultId?: string;
94
- chunks?: number;
95
- /** A number that MUST be incremented each time the document is updated. */
96
- sequence: number;
97
- /** Contains an array of indexed attributes protected with HMAC for blind queries. */
98
- indexed?: IndexedData;
99
- /** The main, potentially encrypted, content of the document. */
100
- content?: Record<string, any>;
101
- /** The JWE representation of the encrypted content. It could be a URL in case of a bucket is used to store the JWE or chunks */
102
- jwe?: Record<string, any>;
103
- /**
104
- * Document-level created timestamp (outside encrypted `content`).
105
- * This is distinct from any `meta` objects inside `content` (e.g., entry meta.claims).
106
- */
107
- audit?: AuditInfo;
108
- /**
109
- * @deprecated Use `audit.created` instead.
110
- */
111
- created?: string;
112
- /**
113
- * Document-level content type label (outside encrypted `content`).
114
- * This is distinct from any `contentType` claims inside `content`.
115
- */
116
- contentType?: string;
117
- /**
118
- * Optional research/routing tags kept outside encrypted `content`.
119
- * These tags are intended for analytics/routing and may be mirrored back to API responses.
120
- * Avoid free text in `display` unless explicitly policy-approved.
121
- */
122
- tag?: MetaTagCoding[];
123
- /** Policy-dependent research/analytics metadata, kept outside encrypted `content`. */
124
- research?: ResearchInfo;
125
- }
126
- /**
127
- * Represents a document whose sensitive content has been decrypted and is held
128
- * in memory. The `jwe` property is removed, and the `content` is guaranteed to exist.
129
- * This type should ONLY be used for in-memory processing and NEVER for persistence.
130
- * @template T The expected type of the decrypted `content`.
131
- */
132
- export type UnprotectedStorageDoc<T> = Omit<ConfidentialStorageDoc, 'jwe' | 'content'> & {
133
- content: T;
134
- };
@@ -1,3 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: gdc-common-utils-ts/src/models/confidential-storage.ts
3
- export {};
@@ -1,79 +0,0 @@
1
- import type { ConsentRule } from './consent-rule.js';
2
- export type ConsentActorKind = 'professional' | 'related-person';
3
- export type ConsentMatchKind = 'direct' | 'organization' | 'jurisdiction' | 'none';
4
- export type ConsentTargetKind = 'email' | 'did' | 'organization' | 'jurisdiction' | 'phone' | 'unknown';
5
- export type NormalizedConsentTarget = Readonly<{
6
- raw: string;
7
- kind: ConsentTargetKind;
8
- canonicalValue: string;
9
- isDirectTarget: boolean;
10
- isOrganizationTarget: boolean;
11
- isJurisdictionTarget: boolean;
12
- isPhoneExtension: boolean;
13
- }>;
14
- export type ConsentActorDescriptor = Readonly<{
15
- actorKind?: ConsentActorKind;
16
- email?: string;
17
- did?: string;
18
- phone?: string;
19
- organizationDid?: string;
20
- organizationUrl?: string;
21
- jurisdiction?: string;
22
- }>;
23
- export type ResolvedConsentActor = Readonly<{
24
- actorKind: ConsentActorKind;
25
- directTargets: NormalizedConsentTarget[];
26
- organizationTargets: NormalizedConsentTarget[];
27
- jurisdictionTargets: NormalizedConsentTarget[];
28
- phoneTargets: NormalizedConsentTarget[];
29
- }>;
30
- export type ConsentCoverageRequest = Readonly<{
31
- subject?: string;
32
- actor: ConsentActorDescriptor;
33
- actorRole?: string;
34
- purpose?: string;
35
- sections?: string[];
36
- resourceTypes?: string[];
37
- now?: string | Date;
38
- }>;
39
- export type ConsentRuleMatch = Readonly<{
40
- rule: ConsentRule;
41
- ruleId?: string;
42
- decision: 'permit' | 'deny';
43
- matchKind: ConsentMatchKind;
44
- target: NormalizedConsentTarget;
45
- precedence: number;
46
- section?: string;
47
- resourceType?: string;
48
- }>;
49
- export type MissingPermissionSet = Readonly<{
50
- sections: string[];
51
- resourceTypes: string[];
52
- pairs: Array<{
53
- section?: string;
54
- resourceType?: string;
55
- reason: string;
56
- }>;
57
- }>;
58
- export type EffectiveAccessEvaluation = Readonly<{
59
- allowed: boolean;
60
- denied: boolean;
61
- partial: boolean;
62
- subject?: string;
63
- actor: ResolvedConsentActor;
64
- matchedRules: ConsentRuleMatch[];
65
- winningRules: ConsentRuleMatch[];
66
- explicitDenials: ConsentRuleMatch[];
67
- allowedSections: string[];
68
- deniedSections: string[];
69
- allowedResourceTypes: string[];
70
- deniedResourceTypes: string[];
71
- missing: MissingPermissionSet;
72
- }>;
73
- export type ActiveConsentView = Readonly<{
74
- activeRules: ConsentRule[];
75
- byDirectTarget: Record<string, ConsentRule[]>;
76
- byOrganizationTarget: Record<string, ConsentRule[]>;
77
- byJurisdictionTarget: Record<string, ConsentRule[]>;
78
- byPhoneTarget: Record<string, ConsentRule[]>;
79
- }>;
@@ -1,2 +0,0 @@
1
- // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- export {};
@@ -1,122 +0,0 @@
1
- export declare enum ClaimConsent {
2
- 'decision' = "Consent.decision",
3
- 'action' = "Consent.action",
4
- 'category' = "Consent.category",
5
- 'resourceType' = "Consent.resourceType",
6
- 'subject' = "Consent.subject",
7
- 'actorIdentifier' = "Consent.actor-identifier",
8
- 'actorRole' = "Consent.actor-role",
9
- 'date' = "Consent.date",
10
- 'periodStart' = "Consent.period-start",
11
- 'periodEnd' = "Consent.period-end",
12
- 'grantee' = "Consent.grantee",
13
- 'verifiedBy' = "Consent.verified-by",
14
- 'verifiedDate' = "Consent.verified-date",
15
- 'purpose' = "Consent.purpose",
16
- 'identifier' = "Consent.identifier",
17
- 'attachmentContentType' = "Consent.attachment-contentType",
18
- 'attachmentData' = "Consent.attachment-data",
19
- 'attachmentId' = "Consent.attachment-id"
20
- }
21
- /**
22
- * Defines the structured, query-optimized format for storing a single, atomic consent rule
23
- * in the vault (e.g., Firestore, CouchDB).
24
- *
25
- * This object is the "Query" model in a CQRS (Command Query Responsibility Segregation) pattern.
26
- * It is generated by the `ConsentManager` from the "Command" - a set of interoperable claims
27
- * provided in the `meta.claims` block of an incoming FHIR Consent resource.
28
- *
29
- * The backend's authorization engine queries against collections of these objects for high-speed
30
- * access decisions. The original FHIR Consent resource may be stored separately for auditing.
31
- *
32
- * All fields are derived from claims using the reverse-DNS format, e.g., the `decision` field
33
- * is populated from the `org.hl7.fhir.api.Consent.decision` claim.
34
- */
35
- export interface ConsentRule {
36
- /**
37
- * JSON-LD context to define the vocabulary for the rule.
38
- * Value MUST be "org.hl7.fhir.api".
39
- */
40
- '@context': 'org.hl7.fhir.api';
41
- /**
42
- * The decision of the rule: permit or deny.
43
- * Derived from the `org.hl7.fhir.api.Consent.decision` claim.
44
- */
45
- 'Consent.decision': 'permit' | 'deny';
46
- /**
47
- * The data sections this rule applies to, as a comma-separated list of coded values.
48
- * Derived from the `org.hl7.fhir.api.Consent.action` claim.
49
- * Example claim: "LOINC|48765-2,SNOMED|12345"
50
- */
51
- 'Consent.action': string;
52
- /**
53
- * The type of consent document, as a comma-serpareted list of coded values.
54
- * Used for classifying the consent itself (e.g., for release of information).
55
- * Derived from the `org.hl7.fhir.api.Consent.category` claim.
56
- * Example claim: "LOINC|59284-0,LOINC|57016-8"
57
- */
58
- 'Consent.category'?: string;
59
- /**
60
- * The subject of the consent.
61
- * Derived from the `org.hl7.fhir.api.Consent.patient.identifier` claim.
62
- */
63
- 'Consent.subject': string;
64
- /**
65
- * The identifier of the actor (jurisdiction, organization, professional) this rule applies to.
66
- * This is the party whose access is being controlled.
67
- * Derived from a claim like `org.hl7.fhir.api.Consent.actor.reference.identifier`.
68
- * e.g., "urn:iso:3166-2:ES-CT", "did:web:hospital.example.com", "urn:email:dr-smith@example.com"
69
- */
70
- 'Consent.actor-identifier': string;
71
- /**
72
- * The role of the actor this rule applies to.
73
- * Derived from a claim like `org.hl7.fhir.api.Consent.actor.role`.
74
- * e.g., "doctor", "nurse"
75
- */
76
- 'Consent.actor-role': string;
77
- /**
78
- * The date the consent was granted (ISO 8601 Date).
79
- * Derived from the `org.hl7.fhir.api.Consent.date` claim.
80
- */
81
- 'Consent.date': string;
82
- /**
83
- * Start of the consent's validity period (ISO 8601 DateTime).
84
- * Note: This is different from the date the consent was signed.
85
- * Derived from the start of the `org.hl7.fhir.api.Consent.period` claim.
86
- */
87
- 'Consent.period-start'?: string;
88
- /**
89
- * End of the consent's validity period (ISO 8601 DateTime).
90
- * Derived from the end of the `org.hl7.fhir.api.Consent.period` claim.
91
- */
92
- 'Consent.period-end'?: string;
93
- /**
94
- * The party to whom the consent is granted.
95
- * Use both 'Consent.actor-identifier' and 'Consent.actor-role' instead.
96
- * Derived from the `org.hl7.fhir.api.Consent.grantee` claim.
97
- */
98
- /**
99
- * The DID of the entity (person or system) that verified the consent.
100
- * Derived from the `org.hl7.fhir.api.Consent.verified-by` claim.
101
- */
102
- 'Consent.verified-by'?: string;
103
- /**
104
- * The date the consent was verified (ISO 8601 DateTime).
105
- * Derived from the `org.hl7.fhir.api.Consent.verified-date` claim.
106
- */
107
- 'Consent.verified-date'?: string;
108
- /**
109
- * The purpose of use for this rule.
110
- * Derived from the `org.hl7.fhir.api.Consent.purpose` claim.
111
- * e.g., "ETREAT", "CAREMGT"
112
- */
113
- 'Consent.purpose': string;
114
- /**
115
- * The original Consent resource ID for auditing.
116
- * Derived from the `org.hl7.fhir.api.Consent.identifier` claim.
117
- */
118
- 'Consent.identifier': string;
119
- 'Consent.attachment-contentType'?: string;
120
- 'Consent.attachment-data'?: string;
121
- 'Consent.attachment-id'?: string;
122
- }
@@ -1,22 +0,0 @@
1
- // src/models/consent-rule.ts
2
- export var ClaimConsent;
3
- (function (ClaimConsent) {
4
- ClaimConsent["decision"] = "Consent.decision";
5
- ClaimConsent["action"] = "Consent.action";
6
- ClaimConsent["category"] = "Consent.category";
7
- ClaimConsent["resourceType"] = "Consent.resourceType";
8
- ClaimConsent["subject"] = "Consent.subject";
9
- ClaimConsent["actorIdentifier"] = "Consent.actor-identifier";
10
- ClaimConsent["actorRole"] = "Consent.actor-role";
11
- ClaimConsent["date"] = "Consent.date";
12
- ClaimConsent["periodStart"] = "Consent.period-start";
13
- ClaimConsent["periodEnd"] = "Consent.period-end";
14
- ClaimConsent["grantee"] = "Consent.grantee";
15
- ClaimConsent["verifiedBy"] = "Consent.verified-by";
16
- ClaimConsent["verifiedDate"] = "Consent.verified-date";
17
- ClaimConsent["purpose"] = "Consent.purpose";
18
- ClaimConsent["identifier"] = "Consent.identifier";
19
- ClaimConsent["attachmentContentType"] = "Consent.attachment-contentType";
20
- ClaimConsent["attachmentData"] = "Consent.attachment-data";
21
- ClaimConsent["attachmentId"] = "Consent.attachment-id";
22
- })(ClaimConsent || (ClaimConsent = {}));
@@ -1,35 +0,0 @@
1
- import { PublicJwk } from "../interfaces/Cryptography.types";
2
- /**
3
- * Describes a public key and its controller, for use in JWE recipients or DID documents.
4
- * @see https://w3c-ccg.github.io/ld-cryptosuite-registry/
5
- */
6
- export interface RecipientPublicKey {
7
- type: string;
8
- controller?: string;
9
- publicKeyJwk: PublicJwk;
10
- nbf?: number;
11
- exp?: number;
12
- }
13
- /**
14
- * Represents a full cryptographic key pair, including the private key material.
15
- * This format is for internal use by the KMS and should never be exposed.
16
- */
17
- export interface KeyPair extends RecipientPublicKey {
18
- /** The raw private key bytes. This MUST be protected at rest (encrypted). */
19
- privateKeyBytes: Uint8Array;
20
- }
21
- /**
22
-
23
- * Contains all cryptographic material for a single tenant, managed by the Gateway Service.
24
- * This object is what would be encrypted and stored in a tenant's vault.
25
- */
26
- export interface TenantCryptoData {
27
- /** A cache of public keys of recipients this tenant frequently interacts with. */
28
- recipients: RecipientPublicKey[];
29
- /** A protected PIN/Password used to derive a key for local cryptographic operations. */
30
- passKey: Uint8Array;
31
- /** The history of encryption key pairs used by the tenant (for key rotation). The last one is the current key. */
32
- keyAgreement: KeyPair[];
33
- /** The history of signature key pairs used by the tenant (for key rotation). The last one is the current key. */
34
- verificationMethod: KeyPair[];
35
- }
@@ -1,3 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: crypto-ts/models/crypto.ts
3
- export {};
@@ -1,79 +0,0 @@
1
- import type { DataspaceDiscoverySourceModeValue } from '../constants/dataspace-discovery';
2
- import type { HostingOperatorSemanticRecord, PublishedProviderCatalogRecord } from './dataspace-discovery';
3
- /**
4
- * Shared host/ICA context used to select dataspace discovery defaults.
5
- *
6
- * `networkType` belongs to the host/ICA side.
7
- * Tenant/provider resolution later uses `sector`.
8
- */
9
- export type DataspaceDiscoveryNetworkContext = Readonly<{
10
- jurisdiction: string;
11
- version: string;
12
- networkType: string;
13
- }>;
14
- /**
15
- * Configured ICA seed for a given host/network context.
16
- */
17
- export type DefaultIcaRegistration = DataspaceDiscoveryNetworkContext & Readonly<{
18
- icaUrl: string;
19
- icaDid?: string;
20
- title?: string;
21
- }>;
22
- /**
23
- * Configured hosting-operator seed for a given host/network context.
24
- *
25
- * This mirrors the record shape consumed later by backend resolvers.
26
- */
27
- export type DefaultHostingOperatorRegistration = DataspaceDiscoveryNetworkContext & Readonly<{
28
- operatorDid: string;
29
- discoveryUrl?: string;
30
- catalogUrl?: string;
31
- record: HostingOperatorSemanticRecord;
32
- publishedProviders?: readonly PublishedProviderCatalogRecord[];
33
- title?: string;
34
- }>;
35
- /**
36
- * Optional seed data used when constructing a defaults registry.
37
- */
38
- export type DataspaceDiscoveryDefaultsRegistrySeed = Readonly<{
39
- icas?: readonly DefaultIcaRegistration[];
40
- hostingOperators?: readonly DefaultHostingOperatorRegistration[];
41
- }>;
42
- /**
43
- * Filter used to list configured ICA defaults for a host/network context.
44
- */
45
- export type DataspaceDiscoveryDefaultIcaFilter = Readonly<Partial<DataspaceDiscoveryNetworkContext>>;
46
- /**
47
- * Filter used to list configured hosting-operator defaults for a discovery
48
- * request.
49
- */
50
- export type DataspaceDiscoveryDefaultHostingFilter = Readonly<Partial<DataspaceDiscoveryNetworkContext> & {
51
- sector?: string;
52
- coverageScope?: string;
53
- requiredCapabilities?: readonly string[];
54
- }>;
55
- /**
56
- * Input used to decide how a backend should bootstrap discovery for a
57
- * frontend/API request.
58
- */
59
- export type DataspaceDiscoveryBootstrapInput = DataspaceDiscoveryNetworkContext & Readonly<{
60
- sector: string;
61
- coverageScope?: string;
62
- requiredCapabilities?: readonly string[];
63
- sourceMode?: DataspaceDiscoverySourceModeValue;
64
- }>;
65
- /**
66
- * Bootstrap plan returned by the defaults registry.
67
- *
68
- * Backend usage:
69
- * - use `hostingOperators` immediately when `shouldUseDefaultsFirst` is true
70
- * - try live ICA/internet only when `shouldTryInternet` is true
71
- */
72
- export type DataspaceDiscoveryBootstrapPlan = Readonly<{
73
- sourceMode: DataspaceDiscoverySourceModeValue;
74
- icas: DefaultIcaRegistration[];
75
- hostingOperators: DefaultHostingOperatorRegistration[];
76
- hasDefaults: boolean;
77
- shouldUseDefaultsFirst: boolean;
78
- shouldTryInternet: boolean;
79
- }>;
@@ -1,2 +0,0 @@
1
- // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- export {};
@@ -1,68 +0,0 @@
1
- /**
2
- * Canonical shared coverage scopes derived from semantic service metadata.
3
- *
4
- * `EU` is a coverage scope, not a sector.
5
- */
6
- export declare const DataspaceCoverageScope: {
7
- readonly EuropeanUnion: "EU";
8
- };
9
- export type DataspaceCoverageScopeValue = typeof DataspaceCoverageScope[keyof typeof DataspaceCoverageScope];
10
- /**
11
- * Runtime-neutral service-discovery record normalized from a semantic
12
- * `credentialSubject` and optionally its flattened `meta.claims` projection.
13
- */
14
- export type DataspaceServiceSemanticRecord = Readonly<{
15
- subjectId?: string;
16
- serviceTypes: string[];
17
- categories: string[];
18
- areaServed: string[];
19
- addressCountry?: string;
20
- coverageScope?: string;
21
- }>;
22
- /**
23
- * Semantic hosting-operator record extracted from an ICA-issued VC or
24
- * equivalent semantic payload.
25
- */
26
- export type HostingOperatorSemanticRecord = DataspaceServiceSemanticRecord;
27
- /**
28
- * Semantic tenant-service record extracted from an ICA-issued VC or equivalent
29
- * semantic payload.
30
- */
31
- export type TenantServiceSemanticRecord = DataspaceServiceSemanticRecord;
32
- /**
33
- * Public provider entry expected from a host discovery catalog.
34
- */
35
- export type PublishedProviderCatalogRecord = Readonly<{
36
- providerDid: string;
37
- serviceType: string;
38
- category: string;
39
- areaServed?: string;
40
- endpointUrl?: string;
41
- discoveryUrl?: string;
42
- catalogUrl?: string;
43
- }>;
44
- /**
45
- * Shared host-catalog filter for service autodiscovery.
46
- *
47
- * This shape is runtime-neutral and can be reused by GW, ICA, backend SDKs,
48
- * and portal/native-app backends.
49
- */
50
- export type DataspaceDiscoveryFilter = Readonly<{
51
- sector: string;
52
- capability?: string;
53
- requiredCapabilities?: readonly string[];
54
- jurisdiction?: string;
55
- coverageScope?: string;
56
- }>;
57
- /**
58
- * Public host/operator service-autodiscovery catalog.
59
- *
60
- * This is distinct from any dataset-specific catalog exposed by an individual
61
- * `DigitalTwinProvider`.
62
- */
63
- export type HostingOperatorDiscoveryCatalog = Readonly<{
64
- hostingOperatorDid?: string;
65
- discoveryUrl?: string;
66
- catalogUrl?: string;
67
- providers: PublishedProviderCatalogRecord[];
68
- }>;
@@ -1,9 +0,0 @@
1
- // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- /**
3
- * Canonical shared coverage scopes derived from semantic service metadata.
4
- *
5
- * `EU` is a coverage scope, not a sector.
6
- */
7
- export const DataspaceCoverageScope = {
8
- EuropeanUnion: 'EU',
9
- };