@brightchain/brightchain-api-lib 0.16.0 → 0.17.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 (285) hide show
  1. package/package.json +4 -4
  2. package/src/browser.d.ts +1 -1
  3. package/src/browser.d.ts.map +1 -1
  4. package/src/browser.js.map +1 -1
  5. package/src/index.d.ts +5 -1
  6. package/src/index.d.ts.map +1 -1
  7. package/src/index.js +7 -1
  8. package/src/index.js.map +1 -1
  9. package/src/lib/adapters/brightChainDbDocumentStoreAdapter.d.ts +24 -0
  10. package/src/lib/adapters/brightChainDbDocumentStoreAdapter.d.ts.map +1 -0
  11. package/src/lib/adapters/brightChainDbDocumentStoreAdapter.js +53 -0
  12. package/src/lib/adapters/brightChainDbDocumentStoreAdapter.js.map +1 -0
  13. package/src/lib/application.d.ts +20 -0
  14. package/src/lib/application.d.ts.map +1 -1
  15. package/src/lib/application.js +59 -13
  16. package/src/lib/application.js.map +1 -1
  17. package/src/lib/availability/gossipService.d.ts +20 -1
  18. package/src/lib/availability/gossipService.d.ts.map +1 -1
  19. package/src/lib/availability/gossipService.js +59 -0
  20. package/src/lib/availability/gossipService.js.map +1 -1
  21. package/src/lib/availability/index.d.ts +1 -0
  22. package/src/lib/availability/index.d.ts.map +1 -1
  23. package/src/lib/availability/index.js +1 -0
  24. package/src/lib/availability/index.js.map +1 -1
  25. package/src/lib/availability/poolDiscoveryService.d.ts +117 -0
  26. package/src/lib/availability/poolDiscoveryService.d.ts.map +1 -0
  27. package/src/lib/availability/poolDiscoveryService.js +218 -0
  28. package/src/lib/availability/poolDiscoveryService.js.map +1 -0
  29. package/src/lib/blockFetch/httpBlockFetchTransport.d.ts.map +1 -1
  30. package/src/lib/blockFetch/httpBlockFetchTransport.js.map +1 -1
  31. package/src/lib/controllers/api/blocks.d.ts.map +1 -1
  32. package/src/lib/controllers/api/blocks.js.map +1 -1
  33. package/src/lib/controllers/api/brightpass.d.ts.map +1 -1
  34. package/src/lib/controllers/api/brightpass.js +4 -8
  35. package/src/lib/controllers/api/brightpass.js.map +1 -1
  36. package/src/lib/controllers/api/energy.d.ts.map +1 -1
  37. package/src/lib/controllers/api/energy.js.map +1 -1
  38. package/src/lib/controllers/api/health.d.ts +4 -4
  39. package/src/lib/controllers/api/health.d.ts.map +1 -1
  40. package/src/lib/controllers/api/health.js.map +1 -1
  41. package/src/lib/controllers/api/i18n.d.ts.map +1 -1
  42. package/src/lib/controllers/api/i18n.js.map +1 -1
  43. package/src/lib/controllers/api/index.d.ts +1 -0
  44. package/src/lib/controllers/api/index.d.ts.map +1 -1
  45. package/src/lib/controllers/api/index.js +1 -0
  46. package/src/lib/controllers/api/index.js.map +1 -1
  47. package/src/lib/controllers/api/introspection.d.ts +60 -0
  48. package/src/lib/controllers/api/introspection.d.ts.map +1 -0
  49. package/src/lib/controllers/api/introspection.js +375 -0
  50. package/src/lib/controllers/api/introspection.js.map +1 -0
  51. package/src/lib/controllers/api/nodes.d.ts +7 -6
  52. package/src/lib/controllers/api/nodes.d.ts.map +1 -1
  53. package/src/lib/controllers/api/nodes.js.map +1 -1
  54. package/src/lib/controllers/api/quorum.d.ts.map +1 -1
  55. package/src/lib/controllers/api/quorum.js.map +1 -1
  56. package/src/lib/controllers/api/sessions.d.ts.map +1 -1
  57. package/src/lib/controllers/api/sessions.js.map +1 -1
  58. package/src/lib/controllers/api/sync.d.ts +6 -5
  59. package/src/lib/controllers/api/sync.d.ts.map +1 -1
  60. package/src/lib/controllers/api/sync.js.map +1 -1
  61. package/src/lib/controllers/api/user.d.ts.map +1 -1
  62. package/src/lib/controllers/api/user.js +130 -50
  63. package/src/lib/controllers/api/user.js.map +1 -1
  64. package/src/lib/controllers/base.d.ts +1 -2
  65. package/src/lib/controllers/base.d.ts.map +1 -1
  66. package/src/lib/controllers/base.js +0 -1
  67. package/src/lib/controllers/base.js.map +1 -1
  68. package/src/lib/databaseInit.d.ts +28 -0
  69. package/src/lib/databaseInit.d.ts.map +1 -0
  70. package/src/lib/databaseInit.js +107 -0
  71. package/src/lib/databaseInit.js.map +1 -0
  72. package/src/lib/enumerations/brightChainApiStrings.d.ts +4 -0
  73. package/src/lib/enumerations/brightChainApiStrings.d.ts.map +1 -1
  74. package/src/lib/enumerations/brightChainApiStrings.js +4 -0
  75. package/src/lib/enumerations/brightChainApiStrings.js.map +1 -1
  76. package/src/lib/enumerations/index.d.ts +1 -0
  77. package/src/lib/enumerations/index.d.ts.map +1 -1
  78. package/src/lib/enumerations/index.js +1 -0
  79. package/src/lib/enumerations/index.js.map +1 -1
  80. package/src/lib/enumerations/websocketMessageType.d.ts +5 -1
  81. package/src/lib/enumerations/websocketMessageType.d.ts.map +1 -1
  82. package/src/lib/enumerations/websocketMessageType.js +4 -0
  83. package/src/lib/enumerations/websocketMessageType.js.map +1 -1
  84. package/src/lib/environment.d.ts +5 -0
  85. package/src/lib/environment.d.ts.map +1 -1
  86. package/src/lib/environment.js +7 -0
  87. package/src/lib/environment.js.map +1 -1
  88. package/src/lib/errors/index.d.ts +1 -0
  89. package/src/lib/errors/index.d.ts.map +1 -1
  90. package/src/lib/errors/index.js +1 -0
  91. package/src/lib/errors/index.js.map +1 -1
  92. package/src/lib/errors/memberIndexSchemaValidationError.d.ts +6 -0
  93. package/src/lib/errors/memberIndexSchemaValidationError.d.ts.map +1 -0
  94. package/src/lib/errors/memberIndexSchemaValidationError.js +15 -0
  95. package/src/lib/errors/memberIndexSchemaValidationError.js.map +1 -0
  96. package/src/lib/factories/blockStoreFactory.d.ts +2 -13
  97. package/src/lib/factories/blockStoreFactory.d.ts.map +1 -1
  98. package/src/lib/factories/blockStoreFactory.js +5 -10
  99. package/src/lib/factories/blockStoreFactory.js.map +1 -1
  100. package/src/lib/interfaces/blocksHandlers.d.ts +3 -3
  101. package/src/lib/interfaces/blocksHandlers.d.ts.map +1 -1
  102. package/src/lib/interfaces/cblHandlers.d.ts +3 -2
  103. package/src/lib/interfaces/cblHandlers.d.ts.map +1 -1
  104. package/src/lib/interfaces/environment.d.ts +4 -0
  105. package/src/lib/interfaces/environment.d.ts.map +1 -1
  106. package/src/lib/interfaces/index.d.ts +5 -1
  107. package/src/lib/interfaces/index.d.ts.map +1 -1
  108. package/src/lib/interfaces/introspectionApiResponses.d.ts +66 -0
  109. package/src/lib/interfaces/introspectionApiResponses.d.ts.map +1 -0
  110. package/src/lib/interfaces/introspectionApiResponses.js +3 -0
  111. package/src/lib/interfaces/introspectionApiResponses.js.map +1 -0
  112. package/src/lib/interfaces/members-handlers.d.ts +11 -0
  113. package/src/lib/interfaces/members-handlers.d.ts.map +1 -0
  114. package/src/lib/interfaces/members-handlers.js +3 -0
  115. package/src/lib/interfaces/members-handlers.js.map +1 -0
  116. package/src/lib/interfaces/responses/api-backup-codes-response.d.ts +2 -5
  117. package/src/lib/interfaces/responses/api-backup-codes-response.d.ts.map +1 -1
  118. package/src/lib/interfaces/responses/api-challenge-response.d.ts +2 -5
  119. package/src/lib/interfaces/responses/api-challenge-response.d.ts.map +1 -1
  120. package/src/lib/interfaces/responses/api-code-count-response.d.ts +2 -5
  121. package/src/lib/interfaces/responses/api-code-count-response.d.ts.map +1 -1
  122. package/src/lib/interfaces/responses/api-detailed-health-response.d.ts +5 -0
  123. package/src/lib/interfaces/responses/api-detailed-health-response.d.ts.map +1 -0
  124. package/src/lib/interfaces/responses/api-detailed-health-response.js +3 -0
  125. package/src/lib/interfaces/responses/api-detailed-health-response.js.map +1 -0
  126. package/src/lib/interfaces/responses/api-discover-block-response.d.ts +5 -0
  127. package/src/lib/interfaces/responses/api-discover-block-response.d.ts.map +1 -0
  128. package/src/lib/interfaces/responses/api-discover-block-response.js +3 -0
  129. package/src/lib/interfaces/responses/api-discover-block-response.js.map +1 -0
  130. package/src/lib/interfaces/responses/api-error.d.ts +5 -0
  131. package/src/lib/interfaces/responses/api-error.d.ts.map +1 -0
  132. package/src/lib/interfaces/responses/api-error.js +3 -0
  133. package/src/lib/interfaces/responses/api-error.js.map +1 -0
  134. package/src/lib/interfaces/responses/api-express-validation-error.d.ts +7 -0
  135. package/src/lib/interfaces/responses/api-express-validation-error.d.ts.map +1 -0
  136. package/src/lib/interfaces/responses/api-express-validation-error.js +3 -0
  137. package/src/lib/interfaces/responses/api-express-validation-error.js.map +1 -0
  138. package/src/lib/interfaces/responses/api-get-block-response.d.ts +5 -0
  139. package/src/lib/interfaces/responses/api-get-block-response.d.ts.map +1 -0
  140. package/src/lib/interfaces/responses/api-get-block-response.js +3 -0
  141. package/src/lib/interfaces/responses/api-get-block-response.js.map +1 -0
  142. package/src/lib/interfaces/responses/api-get-node-response.d.ts +5 -0
  143. package/src/lib/interfaces/responses/api-get-node-response.d.ts.map +1 -0
  144. package/src/lib/interfaces/responses/api-get-node-response.js +3 -0
  145. package/src/lib/interfaces/responses/api-get-node-response.js.map +1 -0
  146. package/src/lib/interfaces/responses/api-health-response.d.ts +5 -0
  147. package/src/lib/interfaces/responses/api-health-response.d.ts.map +1 -0
  148. package/src/lib/interfaces/responses/api-health-response.js +3 -0
  149. package/src/lib/interfaces/responses/api-health-response.js.map +1 -0
  150. package/src/lib/interfaces/responses/api-list-nodes-response.d.ts +5 -0
  151. package/src/lib/interfaces/responses/api-list-nodes-response.d.ts.map +1 -0
  152. package/src/lib/interfaces/responses/api-list-nodes-response.js +3 -0
  153. package/src/lib/interfaces/responses/api-list-nodes-response.js.map +1 -0
  154. package/src/lib/interfaces/responses/api-login-response.d.ts +2 -14
  155. package/src/lib/interfaces/responses/api-login-response.d.ts.map +1 -1
  156. package/src/lib/interfaces/responses/api-members-response.d.ts +8 -0
  157. package/src/lib/interfaces/responses/api-members-response.d.ts.map +1 -0
  158. package/src/lib/interfaces/responses/api-members-response.js +3 -0
  159. package/src/lib/interfaces/responses/api-members-response.js.map +1 -0
  160. package/src/lib/interfaces/responses/api-mnemonic-response.d.ts +2 -5
  161. package/src/lib/interfaces/responses/api-mnemonic-response.d.ts.map +1 -1
  162. package/src/lib/interfaces/responses/api-reconcile-response.d.ts +5 -0
  163. package/src/lib/interfaces/responses/api-reconcile-response.d.ts.map +1 -0
  164. package/src/lib/interfaces/responses/api-reconcile-response.js +3 -0
  165. package/src/lib/interfaces/responses/api-reconcile-response.js.map +1 -0
  166. package/src/lib/interfaces/responses/api-register-node-response.d.ts +5 -0
  167. package/src/lib/interfaces/responses/api-register-node-response.d.ts.map +1 -0
  168. package/src/lib/interfaces/responses/api-register-node-response.js +3 -0
  169. package/src/lib/interfaces/responses/api-register-node-response.js.map +1 -0
  170. package/src/lib/interfaces/responses/api-registration-response.d.ts +2 -10
  171. package/src/lib/interfaces/responses/api-registration-response.d.ts.map +1 -1
  172. package/src/lib/interfaces/responses/api-replicate-block-response.d.ts +5 -0
  173. package/src/lib/interfaces/responses/api-replicate-block-response.d.ts.map +1 -0
  174. package/src/lib/interfaces/responses/api-replicate-block-response.js +3 -0
  175. package/src/lib/interfaces/responses/api-replicate-block-response.js.map +1 -0
  176. package/src/lib/interfaces/responses/api-request-user-response.d.ts +2 -6
  177. package/src/lib/interfaces/responses/api-request-user-response.d.ts.map +1 -1
  178. package/src/lib/interfaces/responses/api-status-code-response.d.ts +7 -0
  179. package/src/lib/interfaces/responses/api-status-code-response.d.ts.map +1 -0
  180. package/src/lib/interfaces/responses/api-status-code-response.js +3 -0
  181. package/src/lib/interfaces/responses/api-status-code-response.js.map +1 -0
  182. package/src/lib/interfaces/responses/api-store-block-response.d.ts +5 -0
  183. package/src/lib/interfaces/responses/api-store-block-response.d.ts.map +1 -0
  184. package/src/lib/interfaces/responses/api-store-block-response.js +3 -0
  185. package/src/lib/interfaces/responses/api-store-block-response.js.map +1 -0
  186. package/src/lib/interfaces/responses/api-store-cbl-response.d.ts +5 -0
  187. package/src/lib/interfaces/responses/api-store-cbl-response.d.ts.map +1 -0
  188. package/src/lib/interfaces/responses/api-store-cbl-response.js +3 -0
  189. package/src/lib/interfaces/responses/api-store-cbl-response.js.map +1 -0
  190. package/src/lib/interfaces/responses/api-sync-request-response.d.ts +5 -0
  191. package/src/lib/interfaces/responses/api-sync-request-response.d.ts.map +1 -0
  192. package/src/lib/interfaces/responses/api-sync-request-response.js +3 -0
  193. package/src/lib/interfaces/responses/api-sync-request-response.js.map +1 -0
  194. package/src/lib/interfaces/responses/block-data-response.d.ts +11 -0
  195. package/src/lib/interfaces/responses/block-data-response.d.ts.map +1 -0
  196. package/src/lib/interfaces/responses/block-data-response.js +3 -0
  197. package/src/lib/interfaces/responses/block-data-response.js.map +1 -0
  198. package/src/lib/interfaces/responses/block-location-response.d.ts +11 -0
  199. package/src/lib/interfaces/responses/block-location-response.d.ts.map +1 -0
  200. package/src/lib/interfaces/responses/block-location-response.js +3 -0
  201. package/src/lib/interfaces/responses/block-location-response.js.map +1 -0
  202. package/src/lib/interfaces/responses/index.d.ts +18 -0
  203. package/src/lib/interfaces/responses/index.d.ts.map +1 -1
  204. package/src/lib/interfaces/status-code-response.d.ts +1 -6
  205. package/src/lib/interfaces/status-code-response.d.ts.map +1 -1
  206. package/src/lib/interfaces/storage/client-session.d.ts +8 -0
  207. package/src/lib/interfaces/storage/client-session.d.ts.map +1 -0
  208. package/src/lib/interfaces/storage/client-session.js +3 -0
  209. package/src/lib/interfaces/storage/client-session.js.map +1 -0
  210. package/src/lib/interfaces/storage/collection.d.ts +9 -0
  211. package/src/lib/interfaces/storage/collection.d.ts.map +1 -0
  212. package/src/lib/interfaces/storage/collection.js +3 -0
  213. package/src/lib/interfaces/storage/collection.js.map +1 -0
  214. package/src/lib/interfaces/storage/database-lifecycle-hooks.d.ts +8 -0
  215. package/src/lib/interfaces/storage/database-lifecycle-hooks.d.ts.map +1 -0
  216. package/src/lib/interfaces/storage/database-lifecycle-hooks.js +3 -0
  217. package/src/lib/interfaces/storage/database-lifecycle-hooks.js.map +1 -0
  218. package/src/lib/interfaces/storage/database.d.ts +9 -0
  219. package/src/lib/interfaces/storage/database.d.ts.map +1 -0
  220. package/src/lib/interfaces/storage/database.js +3 -0
  221. package/src/lib/interfaces/storage/database.js.map +1 -0
  222. package/src/lib/interfaces/storage/document-types.d.ts +9 -0
  223. package/src/lib/interfaces/storage/document-types.d.ts.map +1 -0
  224. package/src/lib/interfaces/storage/document-types.js +10 -0
  225. package/src/lib/interfaces/storage/document-types.js.map +1 -0
  226. package/src/lib/interfaces/storage/index.d.ts +7 -0
  227. package/src/lib/interfaces/storage/index.d.ts.map +1 -0
  228. package/src/lib/interfaces/storage/index.js +7 -0
  229. package/src/lib/interfaces/storage/index.js.map +1 -0
  230. package/src/lib/interfaces/storage/memberIndexSchema.d.ts +11 -0
  231. package/src/lib/interfaces/storage/memberIndexSchema.d.ts.map +1 -0
  232. package/src/lib/interfaces/storage/memberIndexSchema.js +26 -0
  233. package/src/lib/interfaces/storage/memberIndexSchema.js.map +1 -0
  234. package/src/lib/interfaces/userApiResponse.d.ts +17 -0
  235. package/src/lib/interfaces/userApiResponse.d.ts.map +1 -0
  236. package/src/lib/interfaces/userApiResponse.js +3 -0
  237. package/src/lib/interfaces/userApiResponse.js.map +1 -0
  238. package/src/lib/interfaces/websocketMessages.d.ts +64 -1
  239. package/src/lib/interfaces/websocketMessages.d.ts.map +1 -1
  240. package/src/lib/middleware/index.d.ts +2 -0
  241. package/src/lib/middleware/index.d.ts.map +1 -0
  242. package/src/lib/middleware/index.js +6 -0
  243. package/src/lib/middleware/index.js.map +1 -0
  244. package/src/lib/middleware/validateBody.d.ts +13 -0
  245. package/src/lib/middleware/validateBody.d.ts.map +1 -0
  246. package/src/lib/middleware/validateBody.js +35 -0
  247. package/src/lib/middleware/validateBody.js.map +1 -0
  248. package/src/lib/middlewares/authentication.d.ts +2 -0
  249. package/src/lib/middlewares/authentication.d.ts.map +1 -1
  250. package/src/lib/middlewares/authentication.js.map +1 -1
  251. package/src/lib/routers/api.d.ts +27 -0
  252. package/src/lib/routers/api.d.ts.map +1 -1
  253. package/src/lib/routers/api.js +44 -0
  254. package/src/lib/routers/api.js.map +1 -1
  255. package/src/lib/services/auth.d.ts +3 -1
  256. package/src/lib/services/auth.d.ts.map +1 -1
  257. package/src/lib/services/auth.js +51 -4
  258. package/src/lib/services/auth.js.map +1 -1
  259. package/src/lib/services/brightchain-member-init.service.d.ts +66 -0
  260. package/src/lib/services/brightchain-member-init.service.d.ts.map +1 -0
  261. package/src/lib/services/brightchain-member-init.service.js +152 -0
  262. package/src/lib/services/brightchain-member-init.service.js.map +1 -0
  263. package/src/lib/services/clientWebSocketServer.d.ts +147 -0
  264. package/src/lib/services/clientWebSocketServer.d.ts.map +1 -0
  265. package/src/lib/services/clientWebSocketServer.js +437 -0
  266. package/src/lib/services/clientWebSocketServer.js.map +1 -0
  267. package/src/lib/services/index.d.ts +2 -0
  268. package/src/lib/services/index.d.ts.map +1 -1
  269. package/src/lib/services/index.js +2 -0
  270. package/src/lib/services/index.js.map +1 -1
  271. package/src/lib/stores/diskBlockAsyncStore.d.ts +4 -4
  272. package/src/lib/stores/diskBlockAsyncStore.d.ts.map +1 -1
  273. package/src/lib/stores/diskBlockAsyncStore.js.map +1 -1
  274. package/src/lib/stores/diskBlockStore.d.ts +82 -17
  275. package/src/lib/stores/diskBlockStore.d.ts.map +1 -1
  276. package/src/lib/stores/diskBlockStore.js +787 -19
  277. package/src/lib/stores/diskBlockStore.js.map +1 -1
  278. package/src/lib/stores/diskBlockSyncStore.d.ts +24 -5
  279. package/src/lib/stores/diskBlockSyncStore.d.ts.map +1 -1
  280. package/src/lib/stores/diskBlockSyncStore.js +30 -13
  281. package/src/lib/stores/diskBlockSyncStore.js.map +1 -1
  282. package/src/lib/validation/userValidation.d.ts +27 -0
  283. package/src/lib/validation/userValidation.d.ts.map +1 -0
  284. package/src/lib/validation/userValidation.js +70 -0
  285. package/src/lib/validation/userValidation.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-health-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-health-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IListNodesResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IListNodesApiResponse extends IApiMessageResponse, IListNodesResponseData {
4
+ }
5
+ //# sourceMappingURL=api-list-nodes-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-list-nodes-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-list-nodes-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,qBACf,SAAQ,mBAAmB,EAAE,sBAAsB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-list-nodes-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-list-nodes-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-list-nodes-response.ts"],"names":[],"mappings":""}
@@ -1,20 +1,8 @@
1
+ import { ILoginResponseData } from '@brightchain/brightchain-lib';
1
2
  import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
2
- import { IRequestUserDTO } from '@digitaldefiance/suite-core-lib';
3
3
  /**
4
4
  * API response for successful login operations
5
5
  */
6
- export interface IApiLoginResponse extends IApiMessageResponse {
7
- /**
8
- * The authenticated user information
9
- */
10
- user: IRequestUserDTO;
11
- /**
12
- * JWT authentication token
13
- */
14
- token: string;
15
- /**
16
- * Server's public key for encryption
17
- */
18
- serverPublicKey: string;
6
+ export interface IApiLoginResponse extends IApiMessageResponse, ILoginResponseData {
19
7
  }
20
8
  //# sourceMappingURL=api-login-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-login-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-login-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"api-login-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-login-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,iBACf,SAAQ,mBAAmB,EAAE,kBAAkB;CAAG"}
@@ -0,0 +1,8 @@
1
+ import { IMembersResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ /**
4
+ * API response for members operations
5
+ */
6
+ export interface MembersResponse extends IApiMessageResponse, IMembersResponseData {
7
+ }
8
+ //# sourceMappingURL=api-members-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-members-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-members-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,eACf,SAAQ,mBAAmB,EAAE,oBAAoB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-members-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-members-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-members-response.ts"],"names":[],"mappings":""}
@@ -1,11 +1,8 @@
1
+ import { IMnemonicResponseData } from '@brightchain/brightchain-lib';
1
2
  import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
2
3
  /**
3
4
  * API response for mnemonic recovery operations
4
5
  */
5
- export interface IApiMnemonicResponse extends IApiMessageResponse {
6
- /**
7
- * The recovered mnemonic phrase
8
- */
9
- mnemonic: string;
6
+ export interface IApiMnemonicResponse extends IApiMessageResponse, IMnemonicResponseData {
10
7
  }
11
8
  //# sourceMappingURL=api-mnemonic-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-mnemonic-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-mnemonic-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"api-mnemonic-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-mnemonic-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,oBACf,SAAQ,mBAAmB,EAAE,qBAAqB;CAAG"}
@@ -0,0 +1,5 @@
1
+ import { IReconcileResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IReconcileApiResponse extends IApiMessageResponse, IReconcileResponseData {
4
+ }
5
+ //# sourceMappingURL=api-reconcile-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-reconcile-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-reconcile-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,qBACf,SAAQ,mBAAmB,EAAE,sBAAsB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-reconcile-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-reconcile-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-reconcile-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IRegisterNodeResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IRegisterNodeApiResponse extends IApiMessageResponse, IRegisterNodeResponseData {
4
+ }
5
+ //# sourceMappingURL=api-register-node-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-register-node-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-register-node-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,wBACf,SAAQ,mBAAmB,EAAE,yBAAyB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-register-node-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-register-node-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-register-node-response.ts"],"names":[],"mappings":""}
@@ -1,16 +1,8 @@
1
- import { SecureString } from '@digitaldefiance/ecies-lib';
1
+ import { IRegistrationResponseData } from '@brightchain/brightchain-lib';
2
2
  import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
3
  /**
4
4
  * API response for successful user registration
5
5
  */
6
- export interface IApiRegistrationResponse extends IApiMessageResponse {
7
- /**
8
- * The user's mnemonic phrase for account recovery
9
- */
10
- mnemonic: string;
11
- /**
12
- * Array of backup codes for account recovery
13
- */
14
- backupCodes: SecureString[];
6
+ export interface IApiRegistrationResponse extends IApiMessageResponse, IRegistrationResponseData {
15
7
  }
16
8
  //# sourceMappingURL=api-registration-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-registration-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-registration-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,YAAY,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"api-registration-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-registration-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,wBACf,SAAQ,mBAAmB,EAAE,yBAAyB;CAAG"}
@@ -0,0 +1,5 @@
1
+ import { IReplicateBlockResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IReplicateBlockApiResponse extends IApiMessageResponse, IReplicateBlockResponseData {
4
+ }
5
+ //# sourceMappingURL=api-replicate-block-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-replicate-block-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-replicate-block-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,0BACf,SAAQ,mBAAmB,EAAE,2BAA2B;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-replicate-block-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-replicate-block-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-replicate-block-response.ts"],"names":[],"mappings":""}
@@ -1,12 +1,8 @@
1
+ import { IRequestUserResponseData } from '@brightchain/brightchain-lib';
1
2
  import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
2
- import { IRequestUserDTO } from '@digitaldefiance/suite-core-lib';
3
3
  /**
4
4
  * API response containing user information
5
5
  */
6
- export interface IApiRequestUserResponse extends IApiMessageResponse {
7
- /**
8
- * The user information
9
- */
10
- user: IRequestUserDTO;
6
+ export interface IApiRequestUserResponse extends IApiMessageResponse, IRequestUserResponseData {
11
7
  }
12
8
  //# sourceMappingURL=api-request-user-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-request-user-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-request-user-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB"}
1
+ {"version":3,"file":"api-request-user-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-request-user-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,uBACf,SAAQ,mBAAmB,EAAE,wBAAwB;CAAG"}
@@ -0,0 +1,7 @@
1
+ import { ApiResponse } from '@digitaldefiance/node-express-suite';
2
+ export interface IStatusCodeResponse<T extends ApiResponse> {
3
+ statusCode: number;
4
+ response: T;
5
+ headers?: Record<string, string>;
6
+ }
7
+ //# sourceMappingURL=api-status-code-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-status-code-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-status-code-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,WAAW;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-status-code-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-status-code-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-status-code-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IStoreBlockResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IStoreBlockApiResponse extends IApiMessageResponse, IStoreBlockResponseData {
4
+ }
5
+ //# sourceMappingURL=api-store-block-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-store-block-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-store-block-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,sBACf,SAAQ,mBAAmB,EAAE,uBAAuB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-store-block-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-store-block-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-store-block-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { IStoreCblResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface IStoreCblApiResponse extends IApiMessageResponse, IStoreCblResponseData {
4
+ }
5
+ //# sourceMappingURL=api-store-cbl-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-store-cbl-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-store-cbl-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,oBACf,SAAQ,mBAAmB,EAAE,qBAAqB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-store-cbl-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-store-cbl-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-store-cbl-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ISyncRequestResponseData } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ export interface ISyncRequestApiResponse extends IApiMessageResponse, ISyncRequestResponseData {
4
+ }
5
+ //# sourceMappingURL=api-sync-request-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-sync-request-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-sync-request-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,MAAM,WAAW,uBACf,SAAQ,mBAAmB,EAAE,wBAAwB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api-sync-request-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-sync-request-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/api-sync-request-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
2
+ /**
3
+ * Response for GET /api/sync/blocks/:blockId
4
+ * Returns raw block data as base64-encoded string.
5
+ */
6
+ export interface IBlockDataResponse extends IApiMessageResponse {
7
+ blockId: string;
8
+ data: string;
9
+ [key: string]: unknown;
10
+ }
11
+ //# sourceMappingURL=block-data-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-data-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/block-data-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=block-data-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-data-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/block-data-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IBlockLocationInfo } from '@brightchain/brightchain-lib';
2
+ import { IApiMessageResponse } from '@digitaldefiance/node-express-suite';
3
+ /**
4
+ * Get block locations response
5
+ */
6
+ export interface IBlockLocationsResponse extends IApiMessageResponse {
7
+ blockId: string;
8
+ locations: IBlockLocationInfo[];
9
+ [key: string]: unknown;
10
+ }
11
+ //# sourceMappingURL=block-location-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-location-response.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/block-location-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,kBAAkB,EAAE,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=block-location-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-location-response.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/block-location-response.ts"],"names":[],"mappings":""}
@@ -1,8 +1,26 @@
1
1
  export type * from './api-backup-codes-response';
2
2
  export type * from './api-challenge-response';
3
3
  export type * from './api-code-count-response';
4
+ export type * from './api-detailed-health-response';
5
+ export type * from './api-discover-block-response';
6
+ export type * from './api-error';
7
+ export type * from './api-express-validation-error';
8
+ export type * from './api-get-block-response';
9
+ export type * from './api-get-node-response';
10
+ export type * from './api-health-response';
11
+ export type * from './api-list-nodes-response';
4
12
  export type * from './api-login-response';
13
+ export type * from './api-members-response';
5
14
  export type * from './api-mnemonic-response';
15
+ export type * from './api-reconcile-response';
16
+ export type * from './api-register-node-response';
6
17
  export type * from './api-registration-response';
18
+ export type * from './api-replicate-block-response';
7
19
  export type * from './api-request-user-response';
20
+ export type * from './api-status-code-response';
21
+ export type * from './api-store-block-response';
22
+ export type * from './api-store-cbl-response';
23
+ export type * from './api-sync-request-response';
24
+ export type * from './block-data-response';
25
+ export type * from './block-location-response';
8
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/responses/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,+BAA+B,CAAC;AACnD,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,uBAAuB,CAAC;AAC3C,mBAAmB,2BAA2B,CAAC"}
@@ -1,7 +1,2 @@
1
- import { ApiResponse } from '@digitaldefiance/node-express-suite';
2
- export interface IStatusCodeResponse<T extends ApiResponse> {
3
- statusCode: number;
4
- response: T;
5
- headers?: Record<string, string>;
6
- }
1
+ export type { IStatusCodeResponse } from './responses/api-status-code-response';
7
2
  //# sourceMappingURL=status-code-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"status-code-response.d.ts","sourceRoot":"","sources":["../../../../../brightchain-api-lib/src/lib/interfaces/status-code-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,WAAW;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
1
+ {"version":3,"file":"status-code-response.d.ts","sourceRoot":"","sources":["../../../../../brightchain-api-lib/src/lib/interfaces/status-code-response.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Storage-agnostic client session interface for transaction support.
3
+ *
4
+ * This type is now defined in @digitaldefiance/node-express-suite and
5
+ * re-exported here for backward compatibility.
6
+ */
7
+ export type { IClientSession } from '@digitaldefiance/node-express-suite';
8
+ //# sourceMappingURL=client-session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-session.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/client-session.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,YAAY,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=client-session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-session.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/client-session.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Storage-agnostic collection interface for document CRUD, query, index,
3
+ * aggregation, schema validation, and lifecycle operations.
4
+ *
5
+ * This type is now defined in @digitaldefiance/node-express-suite and
6
+ * re-exported here for backward compatibility.
7
+ */
8
+ export type { ICollection } from '@digitaldefiance/node-express-suite';
9
+ //# sourceMappingURL=collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/collection.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/collection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Storage-agnostic lifecycle hooks for database initialization.
3
+ *
4
+ * This type is now defined in @digitaldefiance/node-express-suite and
5
+ * re-exported here for backward compatibility.
6
+ */
7
+ export type { IDatabaseLifecycleHooks } from '@digitaldefiance/node-express-suite';
8
+ //# sourceMappingURL=database-lifecycle-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database-lifecycle-hooks.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/database-lifecycle-hooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,YAAY,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=database-lifecycle-hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database-lifecycle-hooks.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/database-lifecycle-hooks.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Storage-agnostic database interface for collection access, session/transaction
3
+ * management, and connection lifecycle.
4
+ *
5
+ * This type is now defined in @digitaldefiance/node-express-suite and
6
+ * re-exported here for backward compatibility.
7
+ */
8
+ export type { IDatabase } from '@digitaldefiance/node-express-suite';
9
+ //# sourceMappingURL=database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/database.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,YAAY,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/database.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Shared document store types for MongoDB-compatible query/update/result contracts.
3
+ *
4
+ * Platform-agnostic types (BsonDocument, DocumentId, FieldSchema, ValidationFieldError)
5
+ * are defined in @brightchain/brightchain-lib — import them directly from there.
6
+ * This file only re-exports Node.js-specific types from node-express-suite.
7
+ */
8
+ export type { AggregationStage, BulkWriteOperation, BulkWriteOptions, BulkWriteResult, ChangeEvent, ChangeEventType, ChangeListener, ClientSession, CollectionOptions, CollectionSchema, CollectionSchemaFieldType, CursorSession, DeleteResult, FilterOperator, FilterQuery, FindOptions, IndexOptions, IndexSpec, InsertManyResult, InsertOneResult, LogicalOperators, ProjectionSpec, ReadPreference, ReplaceResult, SortSpec, TextIndexOptions, UpdateOperators, UpdateOptions, UpdateQuery, UpdateResult, WriteConcern, WriteOptions, } from '@digitaldefiance/node-express-suite';
9
+ //# sourceMappingURL=document-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-types.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/document-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,MAAM,qCAAqC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * Shared document store types for MongoDB-compatible query/update/result contracts.
4
+ *
5
+ * Platform-agnostic types (BsonDocument, DocumentId, FieldSchema, ValidationFieldError)
6
+ * are defined in @brightchain/brightchain-lib — import them directly from there.
7
+ * This file only re-exports Node.js-specific types from node-express-suite.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=document-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-types.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/document-types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -0,0 +1,7 @@
1
+ export type * from './client-session';
2
+ export type * from './collection';
3
+ export type * from './database';
4
+ export type * from './database-lifecycle-hooks';
5
+ export type * from './document-types';
6
+ export { MEMBER_INDEX_SCHEMA } from './memberIndexSchema';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,cAAc,CAAC;AAClC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,4BAA4B,CAAC;AAChD,mBAAmB,kBAAkB,CAAC;AAGtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEMBER_INDEX_SCHEMA = void 0;
4
+ // Member index schema (runtime value — uses brandedField)
5
+ var memberIndexSchema_1 = require("./memberIndexSchema");
6
+ Object.defineProperty(exports, "MEMBER_INDEX_SCHEMA", { enumerable: true, get: function () { return memberIndexSchema_1.MEMBER_INDEX_SCHEMA; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/index.ts"],"names":[],"mappings":";;;AAMA,0DAA0D;AAC1D,yDAA0D;AAAjD,wHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,11 @@
1
+ import type { CollectionSchema } from './document-types';
2
+ /**
3
+ * Schema for the member index collection.
4
+ *
5
+ * Uses brandedField() so each field is validated against the registered
6
+ * BrandedPrimitiveDefinition rather than a duplicated regex.
7
+ *
8
+ * _Requirements: 5.1–5.6_
9
+ */
10
+ export declare const MEMBER_INDEX_SCHEMA: CollectionSchema;
11
+ //# sourceMappingURL=memberIndexSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memberIndexSchema.d.ts","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/memberIndexSchema.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAYjC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEMBER_INDEX_SCHEMA = void 0;
4
+ const brightchain_lib_1 = require("@brightchain/brightchain-lib");
5
+ /**
6
+ * Schema for the member index collection.
7
+ *
8
+ * Uses brandedField() so each field is validated against the registered
9
+ * BrandedPrimitiveDefinition rather than a duplicated regex.
10
+ *
11
+ * _Requirements: 5.1–5.6_
12
+ */
13
+ exports.MEMBER_INDEX_SCHEMA = {
14
+ name: 'memberIndex',
15
+ properties: {
16
+ id: (0, brightchain_lib_1.brandedField)(brightchain_lib_1.ShortHexGuidPrimitive, { required: true }),
17
+ publicCBL: (0, brightchain_lib_1.brandedField)(brightchain_lib_1.BlockIdPrimitive, { required: true }),
18
+ privateCBL: (0, brightchain_lib_1.brandedField)(brightchain_lib_1.BlockIdPrimitive, { required: true }),
19
+ poolId: (0, brightchain_lib_1.brandedField)(brightchain_lib_1.PoolIdPrimitive, { required: true }),
20
+ },
21
+ required: ['id', 'publicCBL', 'privateCBL', 'poolId'],
22
+ additionalProperties: true,
23
+ validationLevel: 'strict',
24
+ validationAction: 'error',
25
+ };
26
+ //# sourceMappingURL=memberIndexSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memberIndexSchema.js","sourceRoot":"","sources":["../../../../../../brightchain-api-lib/src/lib/interfaces/storage/memberIndexSchema.ts"],"names":[],"mappings":";;;AAAA,kEAKsC;AAGtC;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAqB;IACnD,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE;QACV,EAAE,EAAE,IAAA,8BAAY,EAAC,uCAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC3D,SAAS,EAAE,IAAA,8BAAY,EAAC,kCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC7D,UAAU,EAAE,IAAA,8BAAY,EAAC,kCAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC9D,MAAM,EAAE,IAAA,8BAAY,EAAC,iCAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KAC1D;IACD,QAAQ,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC;IACrD,oBAAoB,EAAE,IAAI;IAC1B,eAAe,EAAE,QAAQ;IACzB,gBAAgB,EAAE,OAAO;CAC1B,CAAC"}