@veridid/openbadges 0.0.0-stage → 1.0.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 (268) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +43 -2
  3. package/build/OpenBadgesModule.d.mts +15 -0
  4. package/build/OpenBadgesModule.d.mts.map +1 -0
  5. package/build/OpenBadgesModule.mjs +71 -0
  6. package/build/OpenBadgesModule.mjs.map +1 -0
  7. package/build/OpenBadgesModuleConfig.d.mts +101 -0
  8. package/build/OpenBadgesModuleConfig.d.mts.map +1 -0
  9. package/build/OpenBadgesModuleConfig.mjs +51 -0
  10. package/build/OpenBadgesModuleConfig.mjs.map +1 -0
  11. package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs +14 -0
  12. package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs +11 -0
  13. package/build/_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateParam.mjs +13 -0
  14. package/build/_virtual/_rolldown/runtime.mjs +41 -0
  15. package/build/api/OpenBadgesApi.d.mts +77 -0
  16. package/build/api/OpenBadgesApi.d.mts.map +1 -0
  17. package/build/api/OpenBadgesApi.mjs +124 -0
  18. package/build/api/OpenBadgesApi.mjs.map +1 -0
  19. package/build/constants.d.mts +17 -0
  20. package/build/constants.d.mts.map +1 -0
  21. package/build/constants.mjs +19 -0
  22. package/build/constants.mjs.map +1 -0
  23. package/build/cryptosuites/EcdsaSd2023.d.mts +129 -0
  24. package/build/cryptosuites/EcdsaSd2023.d.mts.map +1 -0
  25. package/build/cryptosuites/EcdsaSd2023.mjs +408 -0
  26. package/build/cryptosuites/EcdsaSd2023.mjs.map +1 -0
  27. package/build/cryptosuites/EddsaRdfc2022.d.mts +118 -0
  28. package/build/cryptosuites/EddsaRdfc2022.d.mts.map +1 -0
  29. package/build/cryptosuites/EddsaRdfc2022.mjs +301 -0
  30. package/build/cryptosuites/EddsaRdfc2022.mjs.map +1 -0
  31. package/build/cryptosuites/constants.d.mts +18 -0
  32. package/build/cryptosuites/constants.d.mts.map +1 -0
  33. package/build/cryptosuites/constants.mjs +19 -0
  34. package/build/cryptosuites/constants.mjs.map +1 -0
  35. package/build/cryptosuites/contextPreprocessor.mjs +76 -0
  36. package/build/cryptosuites/contextPreprocessor.mjs.map +1 -0
  37. package/build/cryptosuites/dataIntegrityV2Context.d.mts +147 -0
  38. package/build/cryptosuites/dataIntegrityV2Context.d.mts.map +1 -0
  39. package/build/cryptosuites/dataIntegrityV2Context.mjs +82 -0
  40. package/build/cryptosuites/dataIntegrityV2Context.mjs.map +1 -0
  41. package/build/cryptosuites/index.mjs +4 -0
  42. package/build/formats/OpenBadgesCredentialFormat.d.mts +41 -0
  43. package/build/formats/OpenBadgesCredentialFormat.d.mts.map +1 -0
  44. package/build/formats/OpenBadgesCredentialFormat.mjs +7 -0
  45. package/build/formats/OpenBadgesCredentialFormat.mjs.map +1 -0
  46. package/build/formats/OpenBadgesCredentialFormatService.d.mts +79 -0
  47. package/build/formats/OpenBadgesCredentialFormatService.d.mts.map +1 -0
  48. package/build/formats/OpenBadgesCredentialFormatService.mjs +208 -0
  49. package/build/formats/OpenBadgesCredentialFormatService.mjs.map +1 -0
  50. package/build/formats/OpenBadgesProofFormat.d.mts +41 -0
  51. package/build/formats/OpenBadgesProofFormat.d.mts.map +1 -0
  52. package/build/formats/OpenBadgesProofFormat.mjs +7 -0
  53. package/build/formats/OpenBadgesProofFormat.mjs.map +1 -0
  54. package/build/formats/OpenBadgesProofFormatService.d.mts +56 -0
  55. package/build/formats/OpenBadgesProofFormatService.d.mts.map +1 -0
  56. package/build/formats/OpenBadgesProofFormatService.mjs +138 -0
  57. package/build/formats/OpenBadgesProofFormatService.mjs.map +1 -0
  58. package/build/formats/index.d.mts +4 -0
  59. package/build/formats/index.mjs +4 -0
  60. package/build/http/OpenBadgesHttpModule.d.mts +14 -0
  61. package/build/http/OpenBadgesHttpModule.d.mts.map +1 -0
  62. package/build/http/OpenBadgesHttpModule.mjs +85 -0
  63. package/build/http/OpenBadgesHttpModule.mjs.map +1 -0
  64. package/build/http/OpenBadgesHttpModuleConfig.d.mts +60 -0
  65. package/build/http/OpenBadgesHttpModuleConfig.d.mts.map +1 -0
  66. package/build/http/OpenBadgesHttpModuleConfig.mjs +80 -0
  67. package/build/http/OpenBadgesHttpModuleConfig.mjs.map +1 -0
  68. package/build/http/endpoints/authorize.mjs +69 -0
  69. package/build/http/endpoints/authorize.mjs.map +1 -0
  70. package/build/http/endpoints/consent.mjs +34 -0
  71. package/build/http/endpoints/consent.mjs.map +1 -0
  72. package/build/http/endpoints/credentials.mjs +77 -0
  73. package/build/http/endpoints/credentials.mjs.map +1 -0
  74. package/build/http/endpoints/did.mjs +44 -0
  75. package/build/http/endpoints/did.mjs.map +1 -0
  76. package/build/http/endpoints/introspect.mjs +34 -0
  77. package/build/http/endpoints/introspect.mjs.map +1 -0
  78. package/build/http/endpoints/jwks.mjs +40 -0
  79. package/build/http/endpoints/jwks.mjs.map +1 -0
  80. package/build/http/endpoints/profile.mjs +56 -0
  81. package/build/http/endpoints/profile.mjs.map +1 -0
  82. package/build/http/endpoints/refresh.mjs +99 -0
  83. package/build/http/endpoints/refresh.mjs.map +1 -0
  84. package/build/http/endpoints/registration.mjs +42 -0
  85. package/build/http/endpoints/registration.mjs.map +1 -0
  86. package/build/http/endpoints/revoke.mjs +31 -0
  87. package/build/http/endpoints/revoke.mjs.map +1 -0
  88. package/build/http/endpoints/serviceDescription.mjs +48 -0
  89. package/build/http/endpoints/serviceDescription.mjs.map +1 -0
  90. package/build/http/endpoints/statusList.mjs +91 -0
  91. package/build/http/endpoints/statusList.mjs.map +1 -0
  92. package/build/http/endpoints/token.mjs +123 -0
  93. package/build/http/endpoints/token.mjs.map +1 -0
  94. package/build/http/middleware/auth.mjs +38 -0
  95. package/build/http/middleware/auth.mjs.map +1 -0
  96. package/build/http/router.d.mts +19 -0
  97. package/build/http/router.d.mts.map +1 -0
  98. package/build/http/router.mjs +36 -0
  99. package/build/http/router.mjs.map +1 -0
  100. package/build/http/tenants.mjs +16 -0
  101. package/build/http/tenants.mjs.map +1 -0
  102. package/build/http/util/auth.mjs +38 -0
  103. package/build/http/util/auth.mjs.map +1 -0
  104. package/build/index.d.mts +57 -0
  105. package/build/index.mjs +68 -0
  106. package/build/index.mjs.map +1 -0
  107. package/build/models/ClrCredential.d.mts +116 -0
  108. package/build/models/ClrCredential.d.mts.map +1 -0
  109. package/build/models/ClrCredential.mjs +38 -0
  110. package/build/models/ClrCredential.mjs.map +1 -0
  111. package/build/models/EndorsementCredential.d.mts +93 -0
  112. package/build/models/EndorsementCredential.d.mts.map +1 -0
  113. package/build/models/StatusListCredential.d.mts +85 -0
  114. package/build/models/StatusListCredential.d.mts.map +1 -0
  115. package/build/models/StatusListCredential.mjs +29 -0
  116. package/build/models/StatusListCredential.mjs.map +1 -0
  117. package/build/models/index.mjs +2 -0
  118. package/build/repository/OpenBadgeCredentialRecord.d.mts +48 -0
  119. package/build/repository/OpenBadgeCredentialRecord.d.mts.map +1 -0
  120. package/build/repository/OpenBadgeCredentialRecord.mjs +44 -0
  121. package/build/repository/OpenBadgeCredentialRecord.mjs.map +1 -0
  122. package/build/repository/OpenBadgeCredentialRepository.d.mts +13 -0
  123. package/build/repository/OpenBadgeCredentialRepository.d.mts.map +1 -0
  124. package/build/repository/OpenBadgeCredentialRepository.mjs +34 -0
  125. package/build/repository/OpenBadgeCredentialRepository.mjs.map +1 -0
  126. package/build/repository/OpenBadgesAuthCodeRecord.d.mts +39 -0
  127. package/build/repository/OpenBadgesAuthCodeRecord.d.mts.map +1 -0
  128. package/build/repository/OpenBadgesAuthCodeRecord.mjs +40 -0
  129. package/build/repository/OpenBadgesAuthCodeRecord.mjs.map +1 -0
  130. package/build/repository/OpenBadgesAuthCodeRepository.d.mts +11 -0
  131. package/build/repository/OpenBadgesAuthCodeRepository.d.mts.map +1 -0
  132. package/build/repository/OpenBadgesAuthCodeRepository.mjs +29 -0
  133. package/build/repository/OpenBadgesAuthCodeRepository.mjs.map +1 -0
  134. package/build/repository/OpenBadgesConsentRecord.d.mts +28 -0
  135. package/build/repository/OpenBadgesConsentRecord.d.mts.map +1 -0
  136. package/build/repository/OpenBadgesConsentRecord.mjs +33 -0
  137. package/build/repository/OpenBadgesConsentRecord.mjs.map +1 -0
  138. package/build/repository/OpenBadgesConsentRepository.d.mts +11 -0
  139. package/build/repository/OpenBadgesConsentRepository.d.mts.map +1 -0
  140. package/build/repository/OpenBadgesConsentRepository.mjs +37 -0
  141. package/build/repository/OpenBadgesConsentRepository.mjs.map +1 -0
  142. package/build/repository/OpenBadgesKeyBindingRecord.d.mts +32 -0
  143. package/build/repository/OpenBadgesKeyBindingRecord.d.mts.map +1 -0
  144. package/build/repository/OpenBadgesKeyBindingRecord.mjs +37 -0
  145. package/build/repository/OpenBadgesKeyBindingRecord.mjs.map +1 -0
  146. package/build/repository/OpenBadgesKeyBindingRepository.d.mts +12 -0
  147. package/build/repository/OpenBadgesKeyBindingRepository.d.mts.map +1 -0
  148. package/build/repository/OpenBadgesKeyBindingRepository.mjs +31 -0
  149. package/build/repository/OpenBadgesKeyBindingRepository.mjs.map +1 -0
  150. package/build/repository/OpenBadgesOAuthRecord.d.mts +39 -0
  151. package/build/repository/OpenBadgesOAuthRecord.d.mts.map +1 -0
  152. package/build/repository/OpenBadgesOAuthRecord.mjs +37 -0
  153. package/build/repository/OpenBadgesOAuthRecord.mjs.map +1 -0
  154. package/build/repository/OpenBadgesOAuthRepository.d.mts +13 -0
  155. package/build/repository/OpenBadgesOAuthRepository.d.mts.map +1 -0
  156. package/build/repository/OpenBadgesOAuthRepository.mjs +35 -0
  157. package/build/repository/OpenBadgesOAuthRepository.mjs.map +1 -0
  158. package/build/repository/OpenBadgesProfileRecord.d.mts +25 -0
  159. package/build/repository/OpenBadgesProfileRecord.d.mts.map +1 -0
  160. package/build/repository/OpenBadgesProfileRecord.mjs +26 -0
  161. package/build/repository/OpenBadgesProfileRecord.mjs.map +1 -0
  162. package/build/repository/OpenBadgesProfileRepository.d.mts +11 -0
  163. package/build/repository/OpenBadgesProfileRepository.d.mts.map +1 -0
  164. package/build/repository/OpenBadgesProfileRepository.mjs +28 -0
  165. package/build/repository/OpenBadgesProfileRepository.mjs.map +1 -0
  166. package/build/repository/OpenBadgesRevocationCacheRecord.d.mts +27 -0
  167. package/build/repository/OpenBadgesRevocationCacheRecord.d.mts.map +1 -0
  168. package/build/repository/OpenBadgesRevocationCacheRecord.mjs +27 -0
  169. package/build/repository/OpenBadgesRevocationCacheRecord.mjs.map +1 -0
  170. package/build/repository/OpenBadgesRevocationCacheRepository.d.mts +11 -0
  171. package/build/repository/OpenBadgesRevocationCacheRepository.d.mts.map +1 -0
  172. package/build/repository/OpenBadgesRevocationCacheRepository.mjs +28 -0
  173. package/build/repository/OpenBadgesRevocationCacheRepository.mjs.map +1 -0
  174. package/build/repository/OpenBadgesServiceDescriptionRecord.d.mts +25 -0
  175. package/build/repository/OpenBadgesServiceDescriptionRecord.d.mts.map +1 -0
  176. package/build/repository/OpenBadgesServiceDescriptionRecord.mjs +26 -0
  177. package/build/repository/OpenBadgesServiceDescriptionRecord.mjs.map +1 -0
  178. package/build/repository/OpenBadgesServiceDescriptionRepository.d.mts +11 -0
  179. package/build/repository/OpenBadgesServiceDescriptionRepository.d.mts.map +1 -0
  180. package/build/repository/OpenBadgesServiceDescriptionRepository.mjs +28 -0
  181. package/build/repository/OpenBadgesServiceDescriptionRepository.mjs.map +1 -0
  182. package/build/repository/OpenBadgesTokenRecord.d.mts +43 -0
  183. package/build/repository/OpenBadgesTokenRecord.d.mts.map +1 -0
  184. package/build/repository/OpenBadgesTokenRecord.mjs +37 -0
  185. package/build/repository/OpenBadgesTokenRecord.mjs.map +1 -0
  186. package/build/repository/OpenBadgesTokenRepository.d.mts +14 -0
  187. package/build/repository/OpenBadgesTokenRepository.d.mts.map +1 -0
  188. package/build/repository/OpenBadgesTokenRepository.mjs +46 -0
  189. package/build/repository/OpenBadgesTokenRepository.mjs.map +1 -0
  190. package/build/repository/StatusListRecord.d.mts +40 -0
  191. package/build/repository/StatusListRecord.d.mts.map +1 -0
  192. package/build/repository/StatusListRecord.mjs +42 -0
  193. package/build/repository/StatusListRecord.mjs.map +1 -0
  194. package/build/repository/StatusListRepository.d.mts +23 -0
  195. package/build/repository/StatusListRepository.d.mts.map +1 -0
  196. package/build/repository/StatusListRepository.mjs +46 -0
  197. package/build/repository/StatusListRepository.mjs.map +1 -0
  198. package/build/services/AchievementValidator.d.mts +162 -0
  199. package/build/services/AchievementValidator.d.mts.map +1 -0
  200. package/build/services/AchievementValidator.mjs +173 -0
  201. package/build/services/AchievementValidator.mjs.map +1 -0
  202. package/build/services/ConsumerService.d.mts +29 -0
  203. package/build/services/ConsumerService.d.mts.map +1 -0
  204. package/build/services/ConsumerService.mjs +114 -0
  205. package/build/services/ConsumerService.mjs.map +1 -0
  206. package/build/services/ContextService.d.mts +17 -0
  207. package/build/services/ContextService.d.mts.map +1 -0
  208. package/build/services/ContextService.mjs +48 -0
  209. package/build/services/ContextService.mjs.map +1 -0
  210. package/build/services/DataIntegrityService.d.mts +58 -0
  211. package/build/services/DataIntegrityService.d.mts.map +1 -0
  212. package/build/services/DataIntegrityService.mjs +130 -0
  213. package/build/services/DataIntegrityService.mjs.map +1 -0
  214. package/build/services/DidCommLinkService.d.mts +12 -0
  215. package/build/services/DidCommLinkService.d.mts.map +1 -0
  216. package/build/services/DidCommLinkService.mjs +15 -0
  217. package/build/services/DidCommLinkService.mjs.map +1 -0
  218. package/build/services/DisplayMapper.d.mts +13 -0
  219. package/build/services/DisplayMapper.d.mts.map +1 -0
  220. package/build/services/DisplayMapper.mjs +23 -0
  221. package/build/services/DisplayMapper.mjs.map +1 -0
  222. package/build/services/IssuerService.d.mts +43 -0
  223. package/build/services/IssuerService.d.mts.map +1 -0
  224. package/build/services/IssuerService.mjs +230 -0
  225. package/build/services/IssuerService.mjs.map +1 -0
  226. package/build/services/JwtService.d.mts +22 -0
  227. package/build/services/JwtService.d.mts.map +1 -0
  228. package/build/services/JwtService.mjs +190 -0
  229. package/build/services/JwtService.mjs.map +1 -0
  230. package/build/services/KeyService.d.mts +122 -0
  231. package/build/services/KeyService.d.mts.map +1 -0
  232. package/build/services/KeyService.mjs +448 -0
  233. package/build/services/KeyService.mjs.map +1 -0
  234. package/build/services/OAuthClient.d.mts +31 -0
  235. package/build/services/OAuthClient.d.mts.map +1 -0
  236. package/build/services/OAuthClient.mjs +131 -0
  237. package/build/services/OAuthClient.mjs.map +1 -0
  238. package/build/services/ProofService.d.mts +20 -0
  239. package/build/services/ProofService.d.mts.map +1 -0
  240. package/build/services/ProofService.mjs +39 -0
  241. package/build/services/ProofService.mjs.map +1 -0
  242. package/build/services/RevocationService.d.mts +64 -0
  243. package/build/services/RevocationService.d.mts.map +1 -0
  244. package/build/services/RevocationService.mjs +253 -0
  245. package/build/services/RevocationService.mjs.map +1 -0
  246. package/build/services/VerifyService.d.mts +24 -0
  247. package/build/services/VerifyService.d.mts.map +1 -0
  248. package/build/services/VerifyService.mjs +59 -0
  249. package/build/services/VerifyService.mjs.map +1 -0
  250. package/build/services/crypto/CryptoDriver.d.mts +14 -0
  251. package/build/services/crypto/CryptoDriver.d.mts.map +1 -0
  252. package/build/services/crypto/CryptoDriver.mjs +6 -0
  253. package/build/services/crypto/CryptoDriver.mjs.map +1 -0
  254. package/build/services/crypto/JsonLdCryptoDriver.d.mts +22 -0
  255. package/build/services/crypto/JsonLdCryptoDriver.d.mts.map +1 -0
  256. package/build/services/crypto/JsonLdCryptoDriver.mjs +43 -0
  257. package/build/services/crypto/JsonLdCryptoDriver.mjs.map +1 -0
  258. package/build/services/crypto/JwtCryptoDriver.d.mts +18 -0
  259. package/build/services/crypto/JwtCryptoDriver.d.mts.map +1 -0
  260. package/build/services/crypto/JwtCryptoDriver.mjs +46 -0
  261. package/build/services/crypto/JwtCryptoDriver.mjs.map +1 -0
  262. package/build/services/index.d.mts +12 -0
  263. package/build/services/index.mjs +12 -0
  264. package/build/utils/validate.d.mts +21 -0
  265. package/build/utils/validate.d.mts.map +1 -0
  266. package/build/utils/validate.mjs +111 -0
  267. package/build/utils/validate.mjs.map +1 -0
  268. package/package.json +63 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JsonLdCryptoDriver.mjs","names":[],"sources":["../../../src/services/crypto/JsonLdCryptoDriver.ts"],"sourcesContent":["import { injectable, inject } from '@credo-ts/core'\nimport type { AgentContext } from '@credo-ts/core'\nimport { CryptoDriver } from './CryptoDriver'\nimport { DataIntegrityService } from '../DataIntegrityService'\n\n@injectable()\nexport class JsonLdCryptoDriver extends CryptoDriver {\n public constructor(@inject(DataIntegrityService) private readonly di: DataIntegrityService) {\n super()\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public async sign(agentContext: AgentContext, document: any, keyHint?: any): Promise<any> {\n return this.di.sign(agentContext, document, keyHint)\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public async verify(_agentContext: AgentContext, input: any) {\n try {\n const res = await this.di.verify(input)\n return { verified: !!res.verified, credential: input }\n } catch (e: any) {\n return { verified: false, error: e?.message || String(e) }\n }\n }\n}\n\n"],"mappings":";;;;;;;;;;;;AAMO,+BAAM,2BAA2B,aAAa;CACnD,AAAO,YAAY,AAA+C,IAA0B;AAC1F,SAAO;EADyD;;CAKlE,MAAa,KAAK,cAA4B,UAAe,SAA6B;AACxF,SAAO,KAAK,GAAG,KAAK,cAAc,UAAU,QAAQ;;CAItD,MAAa,OAAO,eAA6B,OAAY;AAC3D,MAAI;AAEF,UAAO;IAAE,UAAU,CAAC,EADR,MAAM,KAAK,GAAG,OAAO,MAAM,EACd;IAAU,YAAY;IAAO;WAC/C,GAAQ;AACf,UAAO;IAAE,UAAU;IAAO,OAAO,GAAG,WAAW,OAAO,EAAE;IAAE;;;;;CAjB/D,YAAY;oBAES,OAAO,qBAAqB"}
@@ -0,0 +1,18 @@
1
+ import { CryptoDriver } from "./CryptoDriver.mjs";
2
+ import { JwtService } from "../JwtService.mjs";
3
+ import { AgentContext } from "@credo-ts/core";
4
+
5
+ //#region src/services/crypto/JwtCryptoDriver.d.ts
6
+ declare class JwtCryptoDriver extends CryptoDriver {
7
+ private readonly jwt;
8
+ constructor(jwt: JwtService);
9
+ sign(agentContext: AgentContext, document: any, keyHint?: any): Promise<any>;
10
+ verify(agentContext: AgentContext, input: any): Promise<{
11
+ verified: boolean;
12
+ credential: any;
13
+ error: string | undefined;
14
+ }>;
15
+ }
16
+ //#endregion
17
+ export { JwtCryptoDriver };
18
+ //# sourceMappingURL=JwtCryptoDriver.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JwtCryptoDriver.d.mts","names":[],"sources":["../../../src/services/crypto/JwtCryptoDriver.ts"],"mappings":";;;;;cAMa,eAAA,SAAwB,YAAA;EAAA,iBACqB,GAAA;cAAA,GAAA,EAAK,UAAA;EAKhD,IAAA,CAAK,YAAA,EAAc,YAAA,EAAc,QAAA,OAAe,OAAA,SAAgB,OAAA;EAMhE,MAAA,CAAO,YAAA,EAAc,YAAA,EAAc,KAAA,QAAU,OAAA"}
@@ -0,0 +1,46 @@
1
+ import { __decorateMetadata, init_decorateMetadata } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateMetadata.mjs";
2
+ import { __decorateParam, init_decorateParam } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorateParam.mjs";
3
+ import { __decorate, init_decorate } from "../../_virtual/_@oxc-project_runtime@0.112.0/helpers/decorate.mjs";
4
+ import { CryptoDriver } from "./CryptoDriver.mjs";
5
+ import { JwtService } from "../JwtService.mjs";
6
+ import { inject, injectable } from "@credo-ts/core";
7
+
8
+ //#region src/services/crypto/JwtCryptoDriver.ts
9
+ init_decorateMetadata();
10
+ init_decorateParam();
11
+ init_decorate();
12
+ var _ref;
13
+ let JwtCryptoDriver = class JwtCryptoDriver extends CryptoDriver {
14
+ constructor(jwt) {
15
+ super();
16
+ this.jwt = jwt;
17
+ }
18
+ async sign(agentContext, document, keyHint) {
19
+ const jwt = await this.jwt.signVcJwt(agentContext, document, keyHint);
20
+ return {
21
+ ...document,
22
+ proof: {
23
+ type: "JwtProof2020",
24
+ jwt
25
+ }
26
+ };
27
+ }
28
+ async verify(agentContext, input) {
29
+ const jwtStr = typeof input === "string" ? input : String(input?.proof?.jwt || "");
30
+ const res = await this.jwt.verifyVcJwt(agentContext, jwtStr);
31
+ return {
32
+ verified: !!res.verified,
33
+ credential: res.payload?.vc,
34
+ error: res.error
35
+ };
36
+ }
37
+ };
38
+ JwtCryptoDriver = __decorate([
39
+ injectable(),
40
+ __decorateParam(0, inject(JwtService)),
41
+ __decorateMetadata("design:paramtypes", [JwtService])
42
+ ], JwtCryptoDriver);
43
+
44
+ //#endregion
45
+ export { JwtCryptoDriver };
46
+ //# sourceMappingURL=JwtCryptoDriver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JwtCryptoDriver.mjs","names":[],"sources":["../../../src/services/crypto/JwtCryptoDriver.ts"],"sourcesContent":["import { injectable, inject } from '@credo-ts/core'\nimport type { AgentContext } from '@credo-ts/core'\nimport { CryptoDriver } from './CryptoDriver'\nimport { JwtService } from '../JwtService'\n\n@injectable()\nexport class JwtCryptoDriver extends CryptoDriver {\n public constructor(@inject(JwtService) private readonly jwt: JwtService) {\n super()\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public async sign(agentContext: AgentContext, document: any, keyHint?: any): Promise<any> {\n const jwt = await this.jwt.signVcJwt(agentContext, document, keyHint)\n return { ...document, proof: { type: 'JwtProof2020', jwt } }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n public async verify(agentContext: AgentContext, input: any) {\n const jwtStr = typeof input === 'string' ? input : String(input?.proof?.jwt || '')\n const res = await this.jwt.verifyVcJwt(agentContext, jwtStr)\n return { verified: !!res.verified, credential: res.payload?.vc, error: res.error }\n }\n}\n\n"],"mappings":";;;;;;;;;;;;AAMO,4BAAM,wBAAwB,aAAa;CAChD,AAAO,YAAY,AAAqC,KAAiB;AACvE,SAAO;EAD+C;;CAKxD,MAAa,KAAK,cAA4B,UAAe,SAA6B;EACxF,MAAM,MAAM,MAAM,KAAK,IAAI,UAAU,cAAc,UAAU,QAAQ;AACrE,SAAO;GAAE,GAAG;GAAU,OAAO;IAAE,MAAM;IAAgB;IAAK;GAAE;;CAI9D,MAAa,OAAO,cAA4B,OAAY;EAC1D,MAAM,SAAS,OAAO,UAAU,WAAW,QAAQ,OAAO,OAAO,OAAO,OAAO,GAAG;EAClF,MAAM,MAAM,MAAM,KAAK,IAAI,YAAY,cAAc,OAAO;AAC5D,SAAO;GAAE,UAAU,CAAC,CAAC,IAAI;GAAU,YAAY,IAAI,SAAS;GAAI,OAAO,IAAI;GAAO;;;;CAhBrF,YAAY;oBAES,OAAO,WAAW"}
@@ -0,0 +1,12 @@
1
+ import { CryptoDriver } from "./crypto/CryptoDriver.mjs";
2
+ import { JsonLdCryptoDriver } from "./crypto/JsonLdCryptoDriver.mjs";
3
+ import { JwtService } from "./JwtService.mjs";
4
+ import { JwtCryptoDriver } from "./crypto/JwtCryptoDriver.mjs";
5
+ import { ProofService } from "./ProofService.mjs";
6
+ import { IssuerService } from "./IssuerService.mjs";
7
+ import { RevocationService } from "./RevocationService.mjs";
8
+ import { VerifyService } from "./VerifyService.mjs";
9
+ import { OAuthClient } from "./OAuthClient.mjs";
10
+ import { ConsumerService } from "./ConsumerService.mjs";
11
+ import { DidCommLinkService } from "./DidCommLinkService.mjs";
12
+ import { DisplayMapper } from "./DisplayMapper.mjs";
@@ -0,0 +1,12 @@
1
+ import { CryptoDriver } from "./crypto/CryptoDriver.mjs";
2
+ import { JsonLdCryptoDriver } from "./crypto/JsonLdCryptoDriver.mjs";
3
+ import { JwtService } from "./JwtService.mjs";
4
+ import { JwtCryptoDriver } from "./crypto/JwtCryptoDriver.mjs";
5
+ import { ProofService } from "./ProofService.mjs";
6
+ import { IssuerService } from "./IssuerService.mjs";
7
+ import { RevocationService } from "./RevocationService.mjs";
8
+ import { VerifyService } from "./VerifyService.mjs";
9
+ import { OAuthClient } from "./OAuthClient.mjs";
10
+ import { ConsumerService } from "./ConsumerService.mjs";
11
+ import { DidCommLinkService } from "./DidCommLinkService.mjs";
12
+ import { DisplayMapper } from "./DisplayMapper.mjs";
@@ -0,0 +1,21 @@
1
+ //#region src/utils/validate.d.ts
2
+ type ValidationIssue = {
3
+ code: string;
4
+ message: string;
5
+ };
6
+ declare function isObject(value: unknown): value is Record<string, unknown>;
7
+ declare function ensureContexts(credential: any): ValidationIssue[];
8
+ declare function ensureTypes(credential: any): ValidationIssue[];
9
+ declare function validateObEnvelope(credential: unknown): ValidationIssue[];
10
+ declare function ensureEndorsementTypes(credential: any): ValidationIssue[];
11
+ /**
12
+ * Validates an EndorsementCredential envelope
13
+ * EndorsementCredentials have a different structure than OpenBadgeCredentials:
14
+ * - type must include 'VerifiableCredential' and 'EndorsementCredential'
15
+ * - credentialSubject.type must be 'EndorsementSubject'
16
+ * - credentialSubject.id is required (the entity being endorsed)
17
+ */
18
+ declare function validateEndorsementEnvelope(credential: unknown): ValidationIssue[];
19
+ //#endregion
20
+ export { ValidationIssue, ensureContexts, ensureEndorsementTypes, ensureTypes, isObject, validateEndorsementEnvelope, validateObEnvelope };
21
+ //# sourceMappingURL=validate.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.mts","names":[],"sources":["../../src/utils/validate.ts"],"mappings":";KAEY,eAAA;EAAoB,IAAA;EAAc,OAAA;AAAA;AAAA,iBAE9B,QAAA,CAAS,KAAA,YAAiB,KAAA,IAAS,MAAA;AAAA,iBAKnC,cAAA,CAAe,UAAA,QAAkB,eAAA;AAAA,iBAcjC,WAAA,CAAY,UAAA,QAAkB,eAAA;AAAA,iBAS9B,kBAAA,CAAmB,UAAA,YAAsB,eAAA;AAAA,iBAyBzC,sBAAA,CAAuB,UAAA,QAAkB,eAAA;;;;;;;AAhDzD;iBAgEgB,2BAAA,CAA4B,UAAA,YAAsB,eAAA"}
@@ -0,0 +1,111 @@
1
+ import { ENDORSEMENT_TYPES, OBV3_CONTEXT, REQUIRED_TYPES, VC_V2_CONTEXT } from "../constants.mjs";
2
+
3
+ //#region src/utils/validate.ts
4
+ function isObject(value) {
5
+ return value != null && typeof value === "object" && !Array.isArray(value);
6
+ }
7
+ function ensureContexts(credential) {
8
+ const issues = [];
9
+ const ctx = credential?.["@context"];
10
+ const contexts = Array.isArray(ctx) ? ctx : ctx ? [ctx] : [];
11
+ if (!contexts.includes(VC_V2_CONTEXT)) issues.push({
12
+ code: "missing_vc_v2_context",
13
+ message: "Missing VC v2 context"
14
+ });
15
+ if (!contexts.includes(OBV3_CONTEXT)) issues.push({
16
+ code: "missing_obv3_context",
17
+ message: "Missing OBv3 context"
18
+ });
19
+ return issues;
20
+ }
21
+ function ensureTypes(credential) {
22
+ const issues = [];
23
+ const types = Array.isArray(credential?.type) ? credential.type : [];
24
+ for (const t of REQUIRED_TYPES) if (!types.includes(t)) issues.push({
25
+ code: "missing_type",
26
+ message: `Missing required type ${t}`
27
+ });
28
+ return issues;
29
+ }
30
+ function validateObEnvelope(credential) {
31
+ const issues = [];
32
+ if (!isObject(credential)) return [{
33
+ code: "invalid_json",
34
+ message: "Credential must be a JSON object"
35
+ }];
36
+ issues.push(...ensureContexts(credential));
37
+ issues.push(...ensureTypes(credential));
38
+ const issuer = credential?.issuer;
39
+ if (!(typeof issuer === "string" ? issuer : issuer?.id)) issues.push({
40
+ code: "missing_issuer",
41
+ message: "Missing issuer or issuer.id"
42
+ });
43
+ const cs = credential?.credentialSubject;
44
+ if (!cs || typeof cs !== "object" && !Array.isArray(cs)) issues.push({
45
+ code: "missing_credentialSubject",
46
+ message: "Missing credentialSubject"
47
+ });
48
+ const achievement = credential?.credentialSubject?.achievement;
49
+ if (achievement) {
50
+ if (!achievement?.type) issues.push({
51
+ code: "missing_achievement_type",
52
+ message: "Achievement.type is recommended"
53
+ });
54
+ if (!achievement?.name) issues.push({
55
+ code: "missing_achievement_name",
56
+ message: "Achievement.name is recommended"
57
+ });
58
+ }
59
+ return issues;
60
+ }
61
+ function ensureEndorsementTypes(credential) {
62
+ const issues = [];
63
+ const types = Array.isArray(credential?.type) ? credential.type : [];
64
+ for (const t of ENDORSEMENT_TYPES) if (!types.includes(t)) issues.push({
65
+ code: "missing_type",
66
+ message: `Missing required type ${t}`
67
+ });
68
+ return issues;
69
+ }
70
+ /**
71
+ * Validates an EndorsementCredential envelope
72
+ * EndorsementCredentials have a different structure than OpenBadgeCredentials:
73
+ * - type must include 'VerifiableCredential' and 'EndorsementCredential'
74
+ * - credentialSubject.type must be 'EndorsementSubject'
75
+ * - credentialSubject.id is required (the entity being endorsed)
76
+ */
77
+ function validateEndorsementEnvelope(credential) {
78
+ const issues = [];
79
+ if (!isObject(credential)) return [{
80
+ code: "invalid_json",
81
+ message: "Credential must be a JSON object"
82
+ }];
83
+ issues.push(...ensureContexts(credential));
84
+ issues.push(...ensureEndorsementTypes(credential));
85
+ const issuer = credential?.issuer;
86
+ if (!(typeof issuer === "string" ? issuer : issuer?.id)) issues.push({
87
+ code: "missing_issuer",
88
+ message: "Missing issuer or issuer.id"
89
+ });
90
+ const cs = credential?.credentialSubject;
91
+ if (!cs || typeof cs !== "object") {
92
+ issues.push({
93
+ code: "missing_credentialSubject",
94
+ message: "Missing credentialSubject"
95
+ });
96
+ return issues;
97
+ }
98
+ if (!cs.id) issues.push({
99
+ code: "missing_endorsement_subject_id",
100
+ message: "EndorsementSubject requires id of the entity being endorsed"
101
+ });
102
+ if (cs.type !== "EndorsementSubject") issues.push({
103
+ code: "invalid_endorsement_subject_type",
104
+ message: "credentialSubject.type must be EndorsementSubject"
105
+ });
106
+ return issues;
107
+ }
108
+
109
+ //#endregion
110
+ export { ensureContexts, ensureEndorsementTypes, ensureTypes, isObject, validateEndorsementEnvelope, validateObEnvelope };
111
+ //# sourceMappingURL=validate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.mjs","names":[],"sources":["../../src/utils/validate.ts"],"sourcesContent":["import { VC_V2_CONTEXT, OBV3_CONTEXT, REQUIRED_TYPES, ENDORSEMENT_TYPES } from '../constants'\n\nexport type ValidationIssue = { code: string; message: string }\n\nexport function isObject(value: unknown): value is Record<string, unknown> {\n return value != null && typeof value === 'object' && !Array.isArray(value)\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function ensureContexts(credential: any): ValidationIssue[] {\n const issues: ValidationIssue[] = []\n const ctx = credential?.['@context']\n const contexts = Array.isArray(ctx) ? ctx : ctx ? [ctx] : []\n if (!contexts.includes(VC_V2_CONTEXT)) {\n issues.push({ code: 'missing_vc_v2_context', message: 'Missing VC v2 context' })\n }\n if (!contexts.includes(OBV3_CONTEXT)) {\n issues.push({ code: 'missing_obv3_context', message: 'Missing OBv3 context' })\n }\n return issues\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function ensureTypes(credential: any): ValidationIssue[] {\n const issues: ValidationIssue[] = []\n const types = Array.isArray(credential?.type) ? credential.type : []\n for (const t of REQUIRED_TYPES) {\n if (!types.includes(t)) issues.push({ code: 'missing_type', message: `Missing required type ${t}` })\n }\n return issues\n}\n\nexport function validateObEnvelope(credential: unknown): ValidationIssue[] {\n const issues: ValidationIssue[] = []\n if (!isObject(credential)) return [{ code: 'invalid_json', message: 'Credential must be a JSON object' }]\n issues.push(...ensureContexts(credential))\n issues.push(...ensureTypes(credential))\n // Minimal OBv3 required fields\n const issuer = (credential as any)?.issuer\n const issuerId = typeof issuer === 'string' ? issuer : issuer?.id\n if (!issuerId) issues.push({ code: 'missing_issuer', message: 'Missing issuer or issuer.id' })\n\n const cs = (credential as any)?.credentialSubject\n if (!cs || (typeof cs !== 'object' && !Array.isArray(cs))) {\n issues.push({ code: 'missing_credentialSubject', message: 'Missing credentialSubject' })\n }\n\n // If achievement present, ensure basic fields\n const achievement = (credential as any)?.credentialSubject?.achievement\n if (achievement) {\n if (!achievement?.type) issues.push({ code: 'missing_achievement_type', message: 'Achievement.type is recommended' })\n if (!achievement?.name) issues.push({ code: 'missing_achievement_name', message: 'Achievement.name is recommended' })\n }\n return issues\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function ensureEndorsementTypes(credential: any): ValidationIssue[] {\n const issues: ValidationIssue[] = []\n const types = Array.isArray(credential?.type) ? credential.type : []\n for (const t of ENDORSEMENT_TYPES) {\n if (!types.includes(t)) issues.push({ code: 'missing_type', message: `Missing required type ${t}` })\n }\n return issues\n}\n\n/**\n * Validates an EndorsementCredential envelope\n * EndorsementCredentials have a different structure than OpenBadgeCredentials:\n * - type must include 'VerifiableCredential' and 'EndorsementCredential'\n * - credentialSubject.type must be 'EndorsementSubject'\n * - credentialSubject.id is required (the entity being endorsed)\n */\nexport function validateEndorsementEnvelope(credential: unknown): ValidationIssue[] {\n const issues: ValidationIssue[] = []\n if (!isObject(credential)) return [{ code: 'invalid_json', message: 'Credential must be a JSON object' }]\n\n // Check contexts\n issues.push(...ensureContexts(credential))\n\n // Check endorsement-specific types\n issues.push(...ensureEndorsementTypes(credential))\n\n // Check issuer\n const issuer = (credential as any)?.issuer\n const issuerId = typeof issuer === 'string' ? issuer : issuer?.id\n if (!issuerId) issues.push({ code: 'missing_issuer', message: 'Missing issuer or issuer.id' })\n\n // Check credentialSubject\n const cs = (credential as any)?.credentialSubject\n if (!cs || typeof cs !== 'object') {\n issues.push({ code: 'missing_credentialSubject', message: 'Missing credentialSubject' })\n return issues\n }\n\n // EndorsementSubject requires id (the entity being endorsed)\n if (!cs.id) {\n issues.push({ code: 'missing_endorsement_subject_id', message: 'EndorsementSubject requires id of the entity being endorsed' })\n }\n\n // Check type is EndorsementSubject\n if (cs.type !== 'EndorsementSubject') {\n issues.push({ code: 'invalid_endorsement_subject_type', message: 'credentialSubject.type must be EndorsementSubject' })\n }\n\n return issues\n}\n\n"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
2
  "name": "@veridid/openbadges",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "description": "Open Badges 3.0 support for Credo: issue, verify and store OBv3 credentials.",
5
+ "files": [
6
+ "build"
7
+ ],
8
+ "license": "Apache-2.0",
9
+ "main": "./build/index.mjs",
10
+ "types": "./build/index.d.mts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./build/index.d.mts",
14
+ "default": "./build/index.mjs"
15
+ },
16
+ "./http": {
17
+ "types": "./build/http/OpenBadgesHttpModule.d.mts",
18
+ "default": "./build/http/OpenBadgesHttpModule.mjs"
19
+ },
20
+ "./package.json": "./package.json"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "homepage": "https://github.com/VeriDID/credo-ts-internal/tree/release/packages/openbadges",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "https://github.com/VeriDID/credo-ts-internal",
29
+ "directory": "packages/openbadges"
30
+ },
31
+ "dependencies": {
32
+ "@digitalcredentials/jsonld": "^9.0.0",
33
+ "@stablelib/ed25519": "^1.0.3",
34
+ "@types/pako": "^2.0.3",
35
+ "bs58": "^5.0.0",
36
+ "class-transformer": "0.5.1",
37
+ "class-validator": "^0.14.3",
38
+ "jose": "^5.0.0",
39
+ "pako": "^2.1.0",
40
+ "rxjs": "^7.8.2"
41
+ },
42
+ "peerDependencies": {
43
+ "@credo-ts/core": ">=0.7.0 <0.8",
44
+ "@credo-ts/didcomm": ">=0.7.0 <0.8",
45
+ "express": "^4.18.0"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "express": {
49
+ "optional": true
50
+ }
51
+ },
52
+ "devDependencies": {
53
+ "@digitalcredentials/jsonld-signatures": "^9.4.0",
54
+ "@digitalcredentials/vc": "^6.0.1",
55
+ "@types/express": "^4.17.21",
56
+ "express": "^4.21.0",
57
+ "reflect-metadata": "0.2.2",
58
+ "typescript": "~5.9.3",
59
+ "@credo-ts/core": "0.7.0",
60
+ "@credo-ts/didcomm": "0.7.0"
61
+ },
62
+ "scripts": {
63
+ "build": "tsdown --config-loader unconfig",
64
+ "clean": "rimraf ./build"
65
+ }
6
66
  }