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,28 +0,0 @@
1
- /**
2
- * @interface ICryptoHelper
3
- * Defines the contract for platform-specific cryptographic primitives.
4
- * This is the "port" in a hexagonal architecture, allowing the agnostic
5
- * core (CryptographyService) to be "plugged into" any runtime environment
6
- * (like Expo, Node, or Web) without depending on its implementation details.
7
- */
8
- export interface ICryptoHelper {
9
- /**
10
- * Generates a specified number of cryptographically secure random bytes.
11
- * @param byteCount The number of bytes to generate.
12
- * @returns A Promise that resolves to a Uint8Array with the random bytes.
13
- */
14
- getRandomBytes(byteCount: number): Promise<Uint8Array>;
15
- /**
16
- * Computes the cryptographic digest of a string using a specified algorithm.
17
- * The implementation is responsible for validating the algorithm string.
18
- * @param data The string to hash.
19
- * @param algorithm The hash algorithm to use (e.g., 'SHA-256', 'SHA-512').
20
- * @returns A Promise that resolves to the digest as a hex string.
21
- */
22
- digestString(data: string, algorithm: any): Promise<string>;
23
- /**
24
- * Generates a platform-specific, cryptographically secure UUID v4.
25
- * @returns A string representation of the UUID.
26
- */
27
- randomUUID(): string;
28
- }
@@ -1,3 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: crypto-ts/interfaces/ICryptoHelper.ts
3
- export {};
@@ -1,154 +0,0 @@
1
- import { JweObject } from '../models/jwe';
2
- import { ProtectedDataAES } from '../models/aes';
3
- import { MlkemPublicJwk, MldsaPublicJwk, PublicJwk, MlkemPrivateJwk, MldsaAlg, MlkemCurve } from './Cryptography.types';
4
- import { DataCompactJWT, JwtCompactParts } from '../models/jwt';
5
- /**
6
- * Defines the class for the low-level, stateless cryptography utility (the "Engine").
7
- */
8
- export interface ICryptography {
9
- /**
10
- * Generates a ML-KEM (Kyber) key pair.
11
- * @param seedBytes Optional 64-byte seed for deterministic key generation.
12
- * @param crv The desired security level. Defaults to 'ML-KEM-768'.
13
- */
14
- generateKeyPairMlKem(seedBytes?: Uint8Array, crv?: MlkemCurve): Promise<{
15
- publicJWKey: MlkemPublicJwk & {
16
- kid: string;
17
- };
18
- secretKeyBytes: Uint8Array;
19
- }>;
20
- /**
21
- * Generates a ML-DSA (Dilithium) key pair.
22
- * @param seedBytes Optional 32-byte seed for deterministic key generation.
23
- * @param alg The desired security level. Defaults to 'ML-DSA-44'.
24
- */
25
- generateKeyPairMlDsa(seedBytes?: Uint8Array, alg?: MldsaAlg): Promise<{
26
- publicJWKey: MldsaPublicJwk & {
27
- kid: string;
28
- };
29
- secretKeyBytes: Uint8Array;
30
- }>;
31
- /**
32
- * Encrypts a plaintext string using AES-GCM (a symmetric algorithm) and returns the components.
33
- * This is the core symmetric encryption primitive.
34
- * @param plaintext The stringified data to encrypt.
35
- * @param cekBytes The 32-byte Content Encryption Key (Symmetric Key).
36
- * @param aad The base64url-encoded 'JWE Protected Header', which serves as the 'Additional Authenticated Data' (AAD) for integrity verification.
37
- * @returns A promise resolving to the JWE-compatible encrypted components (ciphertext, iv, tag).
38
- */
39
- encrypt(plaintext: string, cekBytes: Uint8Array, aad: string): Promise<ProtectedDataAES>;
40
- /**
41
- * Decrypts JWE-compatible encrypted components back to a plaintext string.
42
- * @param encryptedData The object containing the base64url-encoded ciphertext, iv, and tag.
43
- * @param cekBytes The 32-byte Content Encryption Key.
44
- * @param aad The base64url-encoded 'JWE Protected Header', which serves as the 'Additional Authenticated Data' (AAD) for integrity verification.
45
- * @returns A promise resolving to the decrypted plaintext string.
46
- */
47
- decrypt(encryptedData: ProtectedDataAES, cekBytes: Uint8Array, aad: string): Promise<string>;
48
- /**
49
- * Generates and protects (encapsulates) a symmetric shared key (32 bytes)
50
- * @param cekSeedBytes
51
- * @param secretKeyBytes
52
- * @param recipientPublicKeyBytes
53
- */
54
- encapsulate(cekSeedBytes: Uint8Array, secretKeyBytes: Uint8Array, recipientPublicKeyBytes: Uint8Array): Promise<{
55
- encapsulatedCekBytes: Uint8Array;
56
- derivedCekBytes: Uint8Array;
57
- }>;
58
- /**
59
- * Returns the unprotected shared symmetric key
60
- * @param encapsulatedBytes
61
- * @param secretKeyBytes
62
- */
63
- decapsulate(encapsulatedBytes: Uint8Array, secretKeyBytes: Uint8Array): Promise<Uint8Array>;
64
- /**
65
- * Signs a byte array using a specified ML-DSA algorithm.
66
- * @param payloadBytes The raw data to sign.
67
- * @param secretKeyBytes The private signing key.
68
- * @param alg The ML-DSA algorithm to use (e.g., 'ML-DSA-44').
69
- * @returns A promise resolving to the raw signature bytes.
70
- */
71
- signBytes(payloadBytes: Uint8Array, secretKeyBytes: Uint8Array, alg: MldsaAlg): Promise<Uint8Array>;
72
- /**
73
- * Verifies a signature against a byte array and a public key.
74
- * The algorithm is inferred from the `alg` property of the publicJWKey.
75
- * @param signatureBytes The raw signature to verify.
76
- * @param dataBytes The original data that was signed.
77
- * @param publicJWKey The public key to use for verification.
78
- * @returns A promise resolving to true if the signature is valid, false otherwise.
79
- */
80
- verifyBytes(signatureBytes: Uint8Array, dataBytes: Uint8Array, publicJWKey: PublicJwk): Promise<boolean>;
81
- /**
82
- * Encrypts a payload into a JWE Object, suitable for JSON General Serialization.
83
- * This method keeps protected and per-recipient headers separate, making it ideal
84
- * for multi-recipient scenarios or storing as a structured object (e.g., ConfidentialStorage).
85
- * @param payload The JSON object to encrypt.
86
- * @param protectedHeader The main protected header (JWE Protected Header). Used as AAD.
87
- * @param secretJWKey The sender's private ML-KEM key.
88
- * @param recipientsJWKeys An array of public ML-KEM keys for the recipients.
89
- * @returns A Promise resolving to a JweObject.
90
- */
91
- encryptJwe(payload: object, protectedHeader: object, secretJWKey: MlkemPrivateJwk, recipientsJWKeys: MlkemPublicJwk[]): Promise<JweObject>;
92
- /**
93
- * Encrypts a payload directly into a JWE Compact Serialization string.
94
- * This method is optimized for single-recipient JWEs. It merges the protected and
95
- * recipient headers *before* encryption to form the correct AAD for the compact format.
96
- * @param payload The JSON object to encrypt or a nested JWS string (compact representation).
97
- * @param protectedHeader The main protected header (e.g., specifying `enc`).
98
- * @param secretJWKey The sender's private ML-KEM key.
99
- * @param recipientJWKey The single recipient's public ML-KEM key.
100
- * @returns A Promise resolving to the JWE as a compact string.
101
- */
102
- encryptJweToCompact(payload: object | string, protectedHeader: object, secretJWKey: MlkemPrivateJwk, recipientJWKey: MlkemPublicJwk): Promise<string>;
103
- /**
104
- * Decrypts a JWE (in Compact or JSON format) and returns the decrypted bytes and protected header.
105
- * This method identifies the correct recipient using the `kid` from the provided private JWK.
106
- * @param jwe The JWE object or Compact JWE string.
107
- * @param secretKeyJwk The private key of the recipient, containing the `kid` to find the
108
- * correct recipient and the `dBytes` for the decapsulation operation.
109
- * @returns A promise resolving to an object containing the decrypted bytes and the decoded protected header.
110
- */
111
- decryptJwe(jwe: JweObject | string, secretKeyJwk: MlkemPrivateJwk): Promise<{
112
- decryptedBytes: Uint8Array;
113
- protectedHeader: object;
114
- }>;
115
- /**
116
- * @param jwe The JWE object or Compact/JSON JWE string.
117
- * @returns An array of strings, where each string is a recipient's `kid`. Returns an empty array if no kids are found.
118
- */
119
- getRecipientKidsFromJwe(jwe: JweObject | string): string[];
120
- /**
121
- * Creates a JWS using the payload and header objects, and the signer's private key bytes.
122
- */
123
- signDataJws(payload: object, protectedHeader: object, secretJWKey: Uint8Array): Promise<JwtCompactParts>;
124
- /**
125
- * Verifies the signature of a JWS Object against the signer's public key (JWK).
126
- */
127
- verifyJws(jws: JwtCompactParts | string, publicJWKey: PublicJwk): Promise<boolean>;
128
- /**
129
- * Verifies a detached JWS signature against the original payload.
130
- * @param payloadBytes The original, unencoded byte stream that was signed.
131
- * @param detachedJws The JWS in detached format ('header..signature').
132
- * @param publicJWKey The signer's public key (JWK) to use for verification.
133
- * @returns A boolean indicating if the signature is valid.
134
- */
135
- verifyDetachedJws(payloadBytes: Uint8Array, detachedJws: string, publicJWKey: PublicJwk): Promise<boolean>;
136
- /**
137
- * Converts a JWS Object (with decoded headers and payload) into Compact Serialization format.
138
- * @param jws The JWS Object to convert.
139
- * @returns The JWS in Compact Serialization format (three base64url strings joined by dots).
140
- */
141
- jwsToCompact(jws: DataCompactJWT): string;
142
- /**
143
- * Parses a JWS in Compact Serialization format into a JWS Object with decoded headers and payload.
144
- * @param jwsString The compact JWS string.
145
- * @returns A JWS Object with JSON objects for the header and payload.
146
- */
147
- parseCompactJws(jwsString: string): DataCompactJWT;
148
- /**
149
- * Parses a JWE in Compact Serialization format into a JWE Object.
150
- * @param jweString The compact JWE string.
151
- * @returns A JWE Object.
152
- */
153
- parseCompactJwe(jweString: string): JweObject;
154
- }
@@ -1,3 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: crypto-ts/interfaces/ICryptography.ts
3
- export {};
@@ -1,9 +0,0 @@
1
- import type { ActorCapabilitiesValue, ActorKindsValue } from '../constants/actor-session';
2
- /**
3
- * Canonical actor kind shared across SDK packages.
4
- */
5
- export type ActorKind = ActorKindsValue;
6
- /**
7
- * Canonical capability token shared across SDK packages.
8
- */
9
- export type Capability = ActorCapabilitiesValue;
@@ -1,3 +0,0 @@
1
- // Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // Always create JSDoc, do not use strings inline in keys nor values, use types instead, and reuse the data test examples.
3
- export {};
@@ -1,85 +0,0 @@
1
- export declare const WORD_BYTES = 4;
2
- export declare const WORD_BITS: number;
3
- export declare const AES_GCM_256_KEY_SIZE_BITS = 256;
4
- export declare const AES_GCM_TAG_SIZE_BITS = 128;
5
- export declare const AES_GCM_NONCE_SIZE_BITS = 128;
6
- export declare const AES_GCM_JWA_ENC = "A256GCM";
7
- /**
8
- * Represents the raw, binary components of a payload encrypted with AES-GCM.
9
- * This interface is used for in-memory cryptographic operations before any
10
- * Base64Url encoding is applied. Its string-based counterpart for transport
11
- * is `ProtectedDataAES`.
12
- */
13
- export interface AesGcmComponents {
14
- /**
15
- * The encrypted content as a raw byte array.
16
- */
17
- ciphertext: Uint8Array;
18
- /**
19
- * The Initialization Vector (IV) as a raw byte array.
20
- */
21
- iv: Uint8Array;
22
- /**
23
- * The Authentication Tag generated by the GCM mode.
24
- */
25
- authTag: Uint8Array;
26
- }
27
- /**
28
- * Represents the components of an AES-GCM encrypted payload, with each
29
- * component encoded as a Base64Url string. This is suitable for use in
30
- * transport structures like a JWE. Its byte-based counterpart for in-memory
31
- * operations is `AesGcmComponents`.
32
- *
33
- * - ciphertext: base64url encoded bytes of the plaintext
34
- * - tag: base64url encoded
35
- * - iv: base64url encoded (it is like a nonce)
36
- */
37
- export interface ProtectedDataAES {
38
- ciphertext: string;
39
- tag: string;
40
- iv: string;
41
- }
42
- /** Use it instead of the SjclCipherDecryptParams to avoid problems with encryption / decryption
43
- * iv: required random bytes created for Initialization Vector (nonce) created when doing the encryption, base64 encoded (but not Base64url nor BitArray).
44
- * adata: AAD (Additional Authenticated Data) base64 encoded (e.g.: JWE protected headers), but not base64url nor BitArray. It can be and empty string "".
45
- * ct: ciphertext and tag combined and then base64 encoded, but not base64url nor BitArray.
46
- * ts: tagsize is only required if a value other than the sjcl default value (64 bits) is defined in the encryption options (to know what size authentication tag is part of the cipher text)
47
- * mode: "ccm", "gcm" (the default is "ccm").
48
- * ks: keysize is only required if a value other than the sjcl default value (128 bits) is defined in the encryption options (to know what size key to generate with Pbkdf2)
49
- * iter: iterations for Pbkdf2
50
- * v: scjl version
51
- * cipher: "aes"
52
- */
53
- export interface DecryptionDataWithParametersSJCL {
54
- iv: string;
55
- adata: string;
56
- ct: string;
57
- ts?: number;
58
- mode?: string;
59
- ks?: number;
60
- iter?: number;
61
- v?: number;
62
- cipher?: string;
63
- }
64
- /** Use it instead of the SjclCipherEncryptParams to avoid problems with encryption / decryption
65
- * iv: required BitArray containing the random bytes for the Initialization Vector (nonce).
66
- * adata: required BitArray containing the AAD (Additional Authenticated Data), e.g.: JWE protected headers.
67
- * ts: tagsize is only required if a value other than the sjcl default value (64 bits) is used (to know what size authentication tag is part of the cipher text).
68
- * mode: "ccm", "gcm" (the default is "ccm").
69
- * ks: keysize is only required if a value other than the sjcl default value (128 bits) is used (to know what size key to generate with Pbkdf2)
70
- * iter: iterations for Pbkdf2
71
- * salt: BitArray, a 64 bits salt it is created automatically if not provided when generating the key from a password (KDF).
72
- * v: scjl version
73
- * cipher: "aes"
74
- */
75
- export interface EncryptionParametersSJCL {
76
- iv: any;
77
- adata: any;
78
- ts?: number;
79
- mode?: string;
80
- ks?: number;
81
- iter?: number;
82
- salt?: any;
83
- v?: number;
84
- cipher?: string;
85
- }
@@ -1,10 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: crypto-ts/models/aes.ts
3
- export const WORD_BYTES = 4;
4
- export const WORD_BITS = WORD_BYTES * 8; // sjcl BitArray are words of 32 bits.
5
- export const AES_GCM_256_KEY_SIZE_BITS = 256; // key size is 32 bytes = 256 bits (by default it is 128 bits).
6
- export const AES_GCM_TAG_SIZE_BITS = 128; // tag size is 16 bytes = 128 bits (by default it is 64 bits).
7
- export const AES_GCM_NONCE_SIZE_BITS = 128; // NIST 800-38D 8.2.2 (RGB Construction of IV) allows to be 16 bytes (128 bits).
8
- export const AES_GCM_JWA_ENC = 'A256GCM'; // AES GCM using 256-bit key, see https://datatracker.ietf.org/doc/html/rfc7518#section-5.1
9
- ;
10
- ;
@@ -1,35 +0,0 @@
1
- /**
2
- * Defines the structure of the claims object decoded from a bearer access token.
3
- * This object is typically attached to the request object by an authentication middleware.
4
- */
5
- export interface IAccessTokenClaims {
6
- /**
7
- * Issuer of the token (e.g., the DID of the issuing tenant).
8
- * This is the source of truth for identifying the tenant.
9
- */
10
- iss: string;
11
- /**
12
- * Subject of the token (e.g., the DID of the employee).
13
- */
14
- sub: string;
15
- /**
16
- * Audience for which the token is intended.
17
- */
18
- aud: string;
19
- /**
20
- * Expiration time (Unix timestamp).
21
- */
22
- exp: number;
23
- /**
24
- * Issued at time (Unix timestamp).
25
- */
26
- iat: number;
27
- /**
28
- * The scope of permissions granted by the token.
29
- */
30
- scope: string;
31
- /**
32
- * Client ID - The client that requested the token.
33
- */
34
- client_id: string;
35
- }
@@ -1,3 +0,0 @@
1
- // Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
2
- // File: src/models/auth.ts
3
- export {};
@@ -1,153 +0,0 @@
1
- /**
2
- * @file src/models/bundle.ts
3
- * @copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
4
- *
5
- * @summary
6
- * This file defines the canonical data structures for "Bundles" and their "Entries"
7
- * within this system, following a hybrid FHIR / JSON:API pattern. It is the single
8
- * source of truth for the shape of request and response bodies.
9
- *
10
- * @architecture
11
- * The models herein are critical for maintaining architectural consistency.
12
- *
13
- * 1. **`BundleJsonApi`**: The top-level container for all batch operations. Corresponds
14
- * to the `body` of a DIDComm message or a standard API request.
15
- *
16
- * 2. **`BundleEntry`**: The core component of a Bundle. Represents a single unit of work,
17
- * such as registering one organization or creating one employee. It has a strict
18
- * structure:
19
- * - `type`: A string that defines the business action (e.g., 'Organization-registration-offer-v1.0').
20
- * - `resource.meta.claims`: Canonical location for claims in request entries.
21
- * - `meta.claims`: Legacy compatibility location accepted during migration.
22
- * - `resource`: A FHIR-like resource object that is the subject of the action.
23
- * - `request`/`response`: Contextual objects indicating the operation's details or result.
24
- */
25
- import { OperationOutcome } from "./operation-outcome";
26
- /**
27
- * Defines the `request` property for an entry in a request Bundle.
28
- * This indicates the intended action for the entry.
29
- */
30
- export interface BundleRequest {
31
- method: 'POST' | 'PUT' | 'DELETE' | 'GET';
32
- url: string;
33
- }
34
- /**
35
- * Defines the `response` property for an entry in a response Bundle.
36
- * This indicates the outcome of the action for the entry.
37
- */
38
- export interface BundleResponse {
39
- /** The HTTP status code as a string (e.g., "201", "404"). */
40
- status: string;
41
- [key: string]: any;
42
- }
43
- /**
44
- * Defines the `meta` property that holds the original, unprocessed claims for a BundleEntry.
45
- * This ensures that the complete context of a request is preserved through the entire
46
- * asynchronous workflow and is available for error reporting.
47
- */
48
- export interface BundleEntryMeta {
49
- /** The original, flattened claims record for this specific entry. */
50
- claims?: Record<string, any>;
51
- }
52
- /**
53
- * Canonical resource shape for batch-style entries.
54
- * Claims should be authored in `resource.meta.claims`.
55
- */
56
- /**
57
- * Agnostic resource shape for batch-style entries.
58
- * Canonical claims location: resource.meta.claims
59
- * Allows any resource structure, but meta.claims is always present for business logic.
60
- */
61
- export interface BundleEntryResource {
62
- meta?: {
63
- claims?: Record<string, any>;
64
- [key: string]: any;
65
- };
66
- resourceType?: string;
67
- [key: string]: any;
68
- }
69
- /**
70
- * @deprecated Use `BundleEntry` instead. This will be removed in a future version.
71
- * Represents a single entry in an INCOMING request Bundle.
72
- */
73
- export interface BundleEntryRequest {
74
- id?: string;
75
- fullUrl?: string;
76
- type: string;
77
- request: BundleRequest;
78
- resource?: BundleEntryResource;
79
- /** @deprecated Legacy claims location. Prefer resource.meta.claims. */
80
- meta?: BundleEntryMeta;
81
- }
82
- /**
83
- * @deprecated Use `BundleEntry` instead. This will be removed in a future version.
84
- * Represents a single successful entry in an OUTGOING response Bundle.
85
- */
86
- export interface BundleEntryResponse {
87
- id?: string;
88
- fullUrl?: string;
89
- type: string;
90
- response: BundleResponse;
91
- resource?: BundleEntryResource;
92
- /** @deprecated Legacy claims location. Prefer resource.meta.claims. */
93
- meta?: BundleEntryMeta;
94
- }
95
- /**
96
- * Represents a single error entry in a response Bundle.
97
- *
98
- * @architecture
99
- * CRITICAL: When an error occurs for a specific request entry, the corresponding error
100
- * entry in the response MUST include the original, unprocessed `meta` object from that
101
- * request entry. This allows the client to correlate the exact input that caused the failure.
102
- */
103
- export interface ErrorEntry {
104
- /** An optional unique identifier for this entry. */
105
- id?: string;
106
- /** The `type` of the original request entry that failed. */
107
- type: string;
108
- /** The original, unprocessed `meta` object from the request entry that failed. */
109
- meta?: BundleEntryMeta;
110
- /** The details of the error that occurred. */
111
- response: {
112
- /** The HTTP status code reflecting the error (e.g., "400", "500"). */
113
- status: string;
114
- /** A FHIR OperationOutcome resource providing detailed error diagnostics. */
115
- outcome: OperationOutcome;
116
- };
117
- }
118
- /**
119
- * Represents a single, canonical entry within a `BundleJsonApi`.
120
- * This structure is used for both requests and successful responses.
121
- *
122
- * @property {string} type - A string identifying the business action of the entry.
123
- * @property {object} resource - The primary FHIR-like resource that is the subject of the action.
124
- * Canonical claims location is `resource.meta.claims`.
125
- * @property {BundleEntryMeta} [meta] - Legacy top-level claims location for backward compatibility.
126
- * @property {BundleRequest} [request] - Details of the requested operation (for request bundles).
127
- * @property {BundleResponse} [response] - Details of the operation outcome (for response bundles).
128
- */
129
- export type BundleEntry = {
130
- id?: string;
131
- fullUrl?: string;
132
- type: string;
133
- /** @deprecated Legacy claims location. Prefer resource.meta.claims. */
134
- meta?: BundleEntryMeta;
135
- resource?: BundleEntryResource;
136
- request?: BundleRequest;
137
- response?: BundleResponse;
138
- };
139
- /**
140
- * Represents the canonical Bundle structure used as the `body` of a request or response.
141
- * The generic type `T` allows for specifying whether the `data` array contains request
142
- * entries or response entries, providing strong type safety.
143
- *
144
- * @example
145
- * const requestBundle: BundleJsonApi<BundleEntry> = { ... };
146
- * const responseBundle: BundleJsonApi<BundleEntry | ErrorEntry> = { ... };
147
- */
148
- export interface BundleJsonApi<T = BundleEntry | ErrorEntry> {
149
- data: T[];
150
- resourceType: 'Bundle';
151
- total?: number;
152
- type: string;
153
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * @file src/models/bundle.ts
3
- * @copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
4
- *
5
- * @summary
6
- * This file defines the canonical data structures for "Bundles" and their "Entries"
7
- * within this system, following a hybrid FHIR / JSON:API pattern. It is the single
8
- * source of truth for the shape of request and response bodies.
9
- *
10
- * @architecture
11
- * The models herein are critical for maintaining architectural consistency.
12
- *
13
- * 1. **`BundleJsonApi`**: The top-level container for all batch operations. Corresponds
14
- * to the `body` of a DIDComm message or a standard API request.
15
- *
16
- * 2. **`BundleEntry`**: The core component of a Bundle. Represents a single unit of work,
17
- * such as registering one organization or creating one employee. It has a strict
18
- * structure:
19
- * - `type`: A string that defines the business action (e.g., 'Organization-registration-offer-v1.0').
20
- * - `resource.meta.claims`: Canonical location for claims in request entries.
21
- * - `meta.claims`: Legacy compatibility location accepted during migration.
22
- * - `resource`: A FHIR-like resource object that is the subject of the action.
23
- * - `request`/`response`: Contextual objects indicating the operation's details or result.
24
- */
25
- export {};
@@ -1,36 +0,0 @@
1
- /**
2
- * Canonical registry of supported clinical document sections (e.g., IPS Composition sections).
3
- *
4
- * Design goals:
5
- * - Use stable codes (LOINC) for interoperability.
6
- * - Provide a reverse-DNS i18n key for consistent UI translations across apps.
7
- * - Keep this in `gdc-common-utils-ts` so both backend and frontend can share it.
8
- */
9
- import { clinicalSectionTitleEn } from './clinical-sections.en';
10
- export declare const LOINC_SYSTEM_URL: "http://loinc.org";
11
- export declare const LOINC_SYSTEM_REVERSE_DNS: "org.loinc";
12
- export type ClinicalSectionDescriptor = {
13
- /** Canonical coding system URL (FHIR-style). */
14
- system: string;
15
- /** Code within the coding system (e.g., a LOINC code). */
16
- code: string;
17
- /**
18
- * Reverse-DNS translation key, intended for i18n resources.
19
- * Example: `org.loinc.48765-2`.
20
- */
21
- i18nKey: string;
22
- /**
23
- * English fallback label (documentation/UI fallback).
24
- *
25
- * Prefer rendering a UI label via `i18nKey` (e.g., `org.loinc.<CODE>`) rather than relying on this.
26
- */
27
- titleEn?: string;
28
- /** True when this is an IPS-aligned section code. */
29
- ips?: boolean;
30
- };
31
- export declare function loincI18nKey(code: string): string;
32
- export type SupportedClinicalSectionCode = keyof typeof clinicalSectionTitleEn;
33
- export declare const supportedClinicalSectionCodes: readonly ("61144-2" | "82810-3" | "87520-3" | "10190-7" | "18726-0" | "10154-3" | "10164-2" | "10183-2" | "10184-0" | "10187-3" | "10210-3" | "10216-0" | "10218-6" | "10222-8" | "10223-6" | "11329-0" | "48768-6" | "51848-0" | "57852-6" | "18776-5" | "18841-7" | "60591-5" | "11493-4" | "11535-2" | "11537-8" | "29299-5" | "29549-3" | "29554-3" | "42344-2" | "42346-7" | "42349-1" | "46241-6" | "55109-3" | "55122-6" | "59768-2" | "59769-0" | "59770-8" | "59771-6" | "59772-4" | "59773-2" | "59775-7" | "59776-5" | "61149-1" | "61150-9" | "69730-0" | "8648-8" | "8653-8" | "11503-0" | "56796-6" | "10157-6" | "10160-0" | "11348-0" | "11369-6" | "11450-4" | "29762-2" | "30954-2" | "42348-3" | "46240-8" | "46264-8" | "47420-5" | "47519-4" | "48765-2" | "56446-8" | "8716-3")[];
34
- export declare const clinicalSectionRegistry: Readonly<Record<string, ClinicalSectionDescriptor>>;
35
- export { clinicalSectionTitleEn };
36
- export declare function getClinicalSectionByCode(code: string): ClinicalSectionDescriptor | undefined;