@croct/sdk 0.17.11 → 0.18.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 (512) hide show
  1. package/activeRecord.cjs +1 -2
  2. package/activeRecord.d.cts +26 -0
  3. package/activeRecord.js +1 -2
  4. package/apiKey.cjs +0 -1
  5. package/apiKey.d.cts +48 -0
  6. package/apiKey.js +0 -1
  7. package/base64Url.cjs +0 -1
  8. package/base64Url.d.cts +4 -0
  9. package/base64Url.js +0 -1
  10. package/cache/cache.cjs +0 -1
  11. package/cache/cache.d.cts +17 -0
  12. package/cache/cache.js +0 -1
  13. package/cache/cookieCache.cjs +0 -1
  14. package/cache/cookieCache.d.cts +22 -0
  15. package/cache/cookieCache.js +0 -1
  16. package/cache/fallbackCache.cjs +0 -1
  17. package/cache/fallbackCache.d.cts +11 -0
  18. package/cache/fallbackCache.js +0 -1
  19. package/cache/inMemoryCache.cjs +0 -1
  20. package/cache/inMemoryCache.d.cts +11 -0
  21. package/cache/inMemoryCache.js +0 -1
  22. package/cache/index.cjs +5 -6
  23. package/cache/index.d.cts +4 -0
  24. package/cache/index.js +4 -5
  25. package/cache/localStorageCache.cjs +0 -1
  26. package/cache/localStorageCache.d.cts +19 -0
  27. package/cache/localStorageCache.js +0 -1
  28. package/channel/channel.cjs +1 -2
  29. package/channel/channel.d.cts +24 -0
  30. package/channel/channel.js +1 -2
  31. package/channel/encodedChannel.cjs +0 -1
  32. package/channel/encodedChannel.d.cts +12 -0
  33. package/channel/encodedChannel.js +0 -1
  34. package/channel/guaranteedChannel.cjs +2 -3
  35. package/channel/guaranteedChannel.d.cts +33 -0
  36. package/channel/guaranteedChannel.js +2 -3
  37. package/channel/httpBeaconChannel.cjs +5 -6
  38. package/channel/httpBeaconChannel.d.cts +26 -0
  39. package/channel/httpBeaconChannel.js +5 -6
  40. package/channel/index.cjs +8 -9
  41. package/channel/index.d.cts +12 -0
  42. package/channel/index.js +7 -8
  43. package/channel/queuedChannel.cjs +2 -3
  44. package/channel/queuedChannel.d.cts +21 -0
  45. package/channel/queuedChannel.js +2 -3
  46. package/channel/retryChannel.cjs +2 -3
  47. package/channel/retryChannel.d.cts +21 -0
  48. package/channel/retryChannel.js +2 -3
  49. package/channel/sandboxChannel.cjs +1 -2
  50. package/channel/sandboxChannel.d.cts +15 -0
  51. package/channel/sandboxChannel.js +1 -2
  52. package/cid/assigner.cjs +0 -1
  53. package/cid/assigner.d.cts +5 -0
  54. package/cid/assigner.js +0 -1
  55. package/cid/cachedAssigner.cjs +1 -2
  56. package/cid/cachedAssigner.d.cts +17 -0
  57. package/cid/cachedAssigner.js +1 -2
  58. package/cid/fixedAssigner.cjs +0 -1
  59. package/cid/fixedAssigner.d.cts +9 -0
  60. package/cid/fixedAssigner.js +0 -1
  61. package/cid/index.cjs +5 -6
  62. package/cid/index.d.cts +6 -0
  63. package/cid/index.js +4 -5
  64. package/cid/remoteAssigner.cjs +3 -4
  65. package/cid/remoteAssigner.d.cts +13 -0
  66. package/cid/remoteAssigner.js +3 -4
  67. package/constants.cjs +1 -2
  68. package/constants.d.cts +6 -0
  69. package/constants.d.ts +2 -2
  70. package/constants.js +1 -2
  71. package/container.cjs +18 -19
  72. package/container.d.cts +95 -0
  73. package/container.js +18 -19
  74. package/contentFetcher.cjs +4 -5
  75. package/contentFetcher.d.cts +69 -0
  76. package/contentFetcher.js +4 -5
  77. package/context.cjs +4 -5
  78. package/context.d.cts +36 -0
  79. package/context.js +4 -5
  80. package/error.cjs +0 -1
  81. package/error.d.cts +4 -0
  82. package/error.js +0 -1
  83. package/evaluator.cjs +5 -6
  84. package/evaluator.d.cts +86 -0
  85. package/evaluator.js +5 -6
  86. package/eventManager.cjs +0 -1
  87. package/eventManager.d.cts +21 -0
  88. package/eventManager.js +0 -1
  89. package/eventSubjectProcessor.cjs +0 -1
  90. package/eventSubjectProcessor.d.cts +22 -0
  91. package/eventSubjectProcessor.js +0 -1
  92. package/facade/contentFetcherFacade.cjs +2 -3
  93. package/facade/contentFetcherFacade.d.cts +36 -0
  94. package/facade/contentFetcherFacade.js +2 -3
  95. package/facade/evaluatorFacade.cjs +2 -3
  96. package/facade/evaluatorFacade.d.cts +41 -0
  97. package/facade/evaluatorFacade.js +2 -3
  98. package/facade/index.cjs +7 -10
  99. package/facade/index.d.cts +29 -0
  100. package/facade/index.js +7 -9
  101. package/facade/sdkFacade.cjs +10 -11
  102. package/facade/sdkFacade.d.cts +86 -0
  103. package/facade/sdkFacade.js +10 -11
  104. package/facade/sessionFacade.cjs +1 -2
  105. package/facade/sessionFacade.d.cts +22 -0
  106. package/facade/sessionFacade.js +1 -2
  107. package/facade/sessionPatch.cjs +1 -2
  108. package/facade/sessionPatch.d.cts +21 -0
  109. package/facade/sessionPatch.js +1 -2
  110. package/facade/trackerFacade.cjs +2 -3
  111. package/facade/trackerFacade.d.cts +25 -0
  112. package/facade/trackerFacade.js +2 -3
  113. package/facade/userFacade.cjs +1 -2
  114. package/facade/userFacade.d.cts +28 -0
  115. package/facade/userFacade.js +1 -2
  116. package/facade/userPatch.cjs +1 -2
  117. package/facade/userPatch.d.cts +21 -0
  118. package/facade/userPatch.js +1 -2
  119. package/help.cjs +0 -1
  120. package/help.d.cts +5 -0
  121. package/help.js +0 -1
  122. package/index.cjs +2 -5
  123. package/index.d.cts +25 -0
  124. package/index.js +2 -4
  125. package/logging/consoleLogger.cjs +0 -1
  126. package/logging/consoleLogger.d.cts +13 -0
  127. package/logging/consoleLogger.js +0 -1
  128. package/logging/filteredLogger.cjs +0 -1
  129. package/logging/filteredLogger.d.cts +22 -0
  130. package/logging/filteredLogger.js +0 -1
  131. package/logging/index.cjs +6 -7
  132. package/logging/index.d.cts +5 -0
  133. package/logging/index.js +5 -6
  134. package/logging/logger.cjs +0 -1
  135. package/logging/logger.d.cts +11 -0
  136. package/logging/logger.js +0 -1
  137. package/logging/namespacedLogger.cjs +0 -1
  138. package/logging/namespacedLogger.d.cts +14 -0
  139. package/logging/namespacedLogger.js +0 -1
  140. package/logging/nullLogger.cjs +0 -1
  141. package/logging/nullLogger.d.cts +10 -0
  142. package/logging/nullLogger.js +0 -1
  143. package/namespacedStorage.cjs +0 -1
  144. package/namespacedStorage.d.cts +16 -0
  145. package/namespacedStorage.js +0 -1
  146. package/package.json +4 -1
  147. package/patch.cjs +0 -1
  148. package/patch.d.cts +46 -0
  149. package/patch.js +0 -1
  150. package/queue/capacityRestrictedQueue.cjs +0 -1
  151. package/queue/capacityRestrictedQueue.d.cts +16 -0
  152. package/queue/capacityRestrictedQueue.js +0 -1
  153. package/queue/inMemoryQueue.cjs +0 -1
  154. package/queue/inMemoryQueue.d.cts +15 -0
  155. package/queue/inMemoryQueue.js +0 -1
  156. package/queue/index.cjs +6 -7
  157. package/queue/index.d.cts +6 -0
  158. package/queue/index.js +5 -6
  159. package/queue/monitoredQueue.cjs +1 -2
  160. package/queue/monitoredQueue.d.cts +28 -0
  161. package/queue/monitoredQueue.js +1 -2
  162. package/queue/persistentQueue.cjs +0 -1
  163. package/queue/persistentQueue.d.cts +18 -0
  164. package/queue/persistentQueue.js +0 -1
  165. package/queue/queue.cjs +0 -1
  166. package/queue/queue.d.cts +11 -0
  167. package/queue/queue.js +0 -1
  168. package/retry/arbitraryPolicy.cjs +0 -1
  169. package/retry/arbitraryPolicy.d.cts +10 -0
  170. package/retry/arbitraryPolicy.js +0 -1
  171. package/retry/backoffPolicy.cjs +0 -1
  172. package/retry/backoffPolicy.d.cts +26 -0
  173. package/retry/backoffPolicy.js +0 -1
  174. package/retry/index.cjs +6 -7
  175. package/retry/index.d.cts +5 -0
  176. package/retry/index.js +5 -6
  177. package/retry/maxAttemptsPolicy.cjs +0 -1
  178. package/retry/maxAttemptsPolicy.d.cts +11 -0
  179. package/retry/maxAttemptsPolicy.js +0 -1
  180. package/retry/neverPolicy.cjs +0 -1
  181. package/retry/neverPolicy.d.cts +8 -0
  182. package/retry/neverPolicy.js +0 -1
  183. package/retry/policy.cjs +0 -1
  184. package/retry/policy.d.cts +6 -0
  185. package/retry/policy.js +0 -1
  186. package/schema/attributeSchema.cjs +1 -2
  187. package/schema/attributeSchema.d.cts +6 -0
  188. package/schema/attributeSchema.js +1 -2
  189. package/schema/contentFetcherSchemas.cjs +1 -2
  190. package/schema/contentFetcherSchemas.d.cts +6 -0
  191. package/schema/contentFetcherSchemas.js +1 -2
  192. package/schema/contentSchemas.cjs +1 -2
  193. package/schema/contentSchemas.d.cts +6 -0
  194. package/schema/contentSchemas.js +1 -2
  195. package/schema/contextSchemas.cjs +1 -2
  196. package/schema/contextSchemas.d.cts +6 -0
  197. package/schema/contextSchemas.js +1 -2
  198. package/schema/ecommerceSchemas.cjs +1 -2
  199. package/schema/ecommerceSchemas.d.cts +10 -0
  200. package/schema/ecommerceSchemas.js +1 -2
  201. package/schema/evaluatorSchemas.cjs +1 -2
  202. package/schema/evaluatorSchemas.d.cts +6 -0
  203. package/schema/evaluatorSchemas.js +1 -2
  204. package/schema/eventSchemas.cjs +4 -5
  205. package/schema/eventSchemas.d.cts +16 -0
  206. package/schema/eventSchemas.js +4 -5
  207. package/schema/index.cjs +22 -23
  208. package/schema/index.d.cts +14 -0
  209. package/schema/index.js +11 -12
  210. package/schema/loggerSchema.cjs +1 -2
  211. package/schema/loggerSchema.d.cts +6 -0
  212. package/schema/loggerSchema.js +1 -2
  213. package/schema/operationSchemas.cjs +2 -3
  214. package/schema/operationSchemas.d.cts +14 -0
  215. package/schema/operationSchemas.js +2 -3
  216. package/schema/sdkFacadeSchemas.cjs +4 -5
  217. package/schema/sdkFacadeSchemas.d.cts +6 -0
  218. package/schema/sdkFacadeSchemas.js +4 -5
  219. package/schema/sdkSchemas.cjs +3 -4
  220. package/schema/sdkSchemas.d.cts +8 -0
  221. package/schema/sdkSchemas.js +3 -4
  222. package/schema/tokenSchema.cjs +1 -2
  223. package/schema/tokenSchema.d.cts +6 -0
  224. package/schema/tokenSchema.js +1 -2
  225. package/schema/userSchema.cjs +2 -3
  226. package/schema/userSchema.d.cts +6 -0
  227. package/schema/userSchema.js +2 -3
  228. package/sdk.cjs +4 -5
  229. package/sdk.d.cts +69 -0
  230. package/sdk.js +4 -5
  231. package/sdkEvents.cjs +0 -1
  232. package/sdkEvents.d.cts +15 -0
  233. package/sdkEvents.js +0 -1
  234. package/sourceLocation.cjs +0 -1
  235. package/sourceLocation.d.cts +14 -0
  236. package/sourceLocation.js +0 -1
  237. package/tab.cjs +1 -2
  238. package/tab.d.cts +40 -0
  239. package/tab.js +1 -2
  240. package/token/cachedTokenStore.cjs +1 -2
  241. package/token/cachedTokenStore.d.cts +13 -0
  242. package/token/cachedTokenStore.js +1 -2
  243. package/token/inMemoryTokenStore.cjs +0 -1
  244. package/token/inMemoryTokenStore.d.cts +11 -0
  245. package/token/inMemoryTokenStore.js +0 -1
  246. package/token/index.cjs +5 -6
  247. package/token/index.d.cts +7 -0
  248. package/token/index.js +4 -5
  249. package/token/replicatedTokenStore.cjs +0 -1
  250. package/token/replicatedTokenStore.d.cts +13 -0
  251. package/token/replicatedTokenStore.js +0 -1
  252. package/token/token.cjs +3 -4
  253. package/token/token.d.cts +70 -0
  254. package/token/token.js +3 -4
  255. package/tracker.cjs +3 -4
  256. package/tracker.d.cts +82 -0
  257. package/tracker.js +3 -4
  258. package/trackingEvents.cjs +0 -1
  259. package/trackingEvents.d.cts +309 -0
  260. package/trackingEvents.js +0 -1
  261. package/transformer.cjs +0 -1
  262. package/transformer.d.cts +6 -0
  263. package/transformer.js +0 -1
  264. package/utilityTypes.cjs +0 -1
  265. package/utilityTypes.d.cts +4 -0
  266. package/utilityTypes.js +0 -1
  267. package/uuid.cjs +0 -1
  268. package/uuid.d.cts +3 -0
  269. package/uuid.js +0 -1
  270. package/validation/arrayType.cjs +2 -3
  271. package/validation/arrayType.d.cts +16 -0
  272. package/validation/arrayType.js +2 -3
  273. package/validation/booleanType.cjs +2 -3
  274. package/validation/booleanType.d.cts +9 -0
  275. package/validation/booleanType.js +2 -3
  276. package/validation/functionType.cjs +2 -3
  277. package/validation/functionType.d.cts +9 -0
  278. package/validation/functionType.js +2 -3
  279. package/validation/index.cjs +14 -15
  280. package/validation/index.d.cts +12 -0
  281. package/validation/index.js +12 -13
  282. package/validation/jsonType.cjs +2 -3
  283. package/validation/jsonType.d.cts +35 -0
  284. package/validation/jsonType.js +2 -3
  285. package/validation/mixedSchema.cjs +0 -1
  286. package/validation/mixedSchema.d.cts +7 -0
  287. package/validation/mixedSchema.js +0 -1
  288. package/validation/nullType.cjs +2 -3
  289. package/validation/nullType.d.cts +9 -0
  290. package/validation/nullType.js +2 -3
  291. package/validation/numberType.cjs +2 -3
  292. package/validation/numberType.d.cts +16 -0
  293. package/validation/numberType.js +2 -3
  294. package/validation/objectType.cjs +3 -4
  295. package/validation/objectType.d.cts +30 -0
  296. package/validation/objectType.js +3 -4
  297. package/validation/schema.cjs +0 -1
  298. package/validation/schema.d.cts +18 -0
  299. package/validation/schema.js +0 -1
  300. package/validation/stringType.cjs +2 -3
  301. package/validation/stringType.d.cts +24 -0
  302. package/validation/stringType.js +2 -3
  303. package/validation/unionType.cjs +2 -3
  304. package/validation/unionType.d.cts +11 -0
  305. package/validation/unionType.js +2 -3
  306. package/validation/violation.cjs +0 -1
  307. package/validation/violation.d.cts +4 -0
  308. package/validation/violation.js +0 -1
  309. package/activeRecord.cjs.map +0 -1
  310. package/activeRecord.js.map +0 -1
  311. package/apiKey.cjs.map +0 -1
  312. package/apiKey.js.map +0 -1
  313. package/base64Url.cjs.map +0 -1
  314. package/base64Url.js.map +0 -1
  315. package/cache/cache.cjs.map +0 -1
  316. package/cache/cache.js.map +0 -1
  317. package/cache/cookieCache.cjs.map +0 -1
  318. package/cache/cookieCache.js.map +0 -1
  319. package/cache/fallbackCache.cjs.map +0 -1
  320. package/cache/fallbackCache.js.map +0 -1
  321. package/cache/inMemoryCache.cjs.map +0 -1
  322. package/cache/inMemoryCache.js.map +0 -1
  323. package/cache/index.cjs.map +0 -1
  324. package/cache/index.js.map +0 -1
  325. package/cache/localStorageCache.cjs.map +0 -1
  326. package/cache/localStorageCache.js.map +0 -1
  327. package/channel/channel.cjs.map +0 -1
  328. package/channel/channel.js.map +0 -1
  329. package/channel/encodedChannel.cjs.map +0 -1
  330. package/channel/encodedChannel.js.map +0 -1
  331. package/channel/guaranteedChannel.cjs.map +0 -1
  332. package/channel/guaranteedChannel.js.map +0 -1
  333. package/channel/httpBeaconChannel.cjs.map +0 -1
  334. package/channel/httpBeaconChannel.js.map +0 -1
  335. package/channel/index.cjs.map +0 -1
  336. package/channel/index.js.map +0 -1
  337. package/channel/queuedChannel.cjs.map +0 -1
  338. package/channel/queuedChannel.js.map +0 -1
  339. package/channel/retryChannel.cjs.map +0 -1
  340. package/channel/retryChannel.js.map +0 -1
  341. package/channel/sandboxChannel.cjs.map +0 -1
  342. package/channel/sandboxChannel.js.map +0 -1
  343. package/cid/assigner.cjs.map +0 -1
  344. package/cid/assigner.js.map +0 -1
  345. package/cid/cachedAssigner.cjs.map +0 -1
  346. package/cid/cachedAssigner.js.map +0 -1
  347. package/cid/fixedAssigner.cjs.map +0 -1
  348. package/cid/fixedAssigner.js.map +0 -1
  349. package/cid/index.cjs.map +0 -1
  350. package/cid/index.js.map +0 -1
  351. package/cid/remoteAssigner.cjs.map +0 -1
  352. package/cid/remoteAssigner.js.map +0 -1
  353. package/constants.cjs.map +0 -1
  354. package/constants.js.map +0 -1
  355. package/container.cjs.map +0 -1
  356. package/container.js.map +0 -1
  357. package/contentFetcher.cjs.map +0 -1
  358. package/contentFetcher.js.map +0 -1
  359. package/context.cjs.map +0 -1
  360. package/context.js.map +0 -1
  361. package/error.cjs.map +0 -1
  362. package/error.js.map +0 -1
  363. package/evaluator.cjs.map +0 -1
  364. package/evaluator.js.map +0 -1
  365. package/eventManager.cjs.map +0 -1
  366. package/eventManager.js.map +0 -1
  367. package/eventSubjectProcessor.cjs.map +0 -1
  368. package/eventSubjectProcessor.js.map +0 -1
  369. package/facade/contentFetcherFacade.cjs.map +0 -1
  370. package/facade/contentFetcherFacade.js.map +0 -1
  371. package/facade/evaluatorFacade.cjs.map +0 -1
  372. package/facade/evaluatorFacade.js.map +0 -1
  373. package/facade/index.cjs.map +0 -1
  374. package/facade/index.js.map +0 -1
  375. package/facade/sdkFacade.cjs.map +0 -1
  376. package/facade/sdkFacade.js.map +0 -1
  377. package/facade/sessionFacade.cjs.map +0 -1
  378. package/facade/sessionFacade.js.map +0 -1
  379. package/facade/sessionPatch.cjs.map +0 -1
  380. package/facade/sessionPatch.js.map +0 -1
  381. package/facade/trackerFacade.cjs.map +0 -1
  382. package/facade/trackerFacade.js.map +0 -1
  383. package/facade/userFacade.cjs.map +0 -1
  384. package/facade/userFacade.js.map +0 -1
  385. package/facade/userPatch.cjs.map +0 -1
  386. package/facade/userPatch.js.map +0 -1
  387. package/help.cjs.map +0 -1
  388. package/help.js.map +0 -1
  389. package/index.cjs.map +0 -1
  390. package/index.js.map +0 -1
  391. package/logging/consoleLogger.cjs.map +0 -1
  392. package/logging/consoleLogger.js.map +0 -1
  393. package/logging/filteredLogger.cjs.map +0 -1
  394. package/logging/filteredLogger.js.map +0 -1
  395. package/logging/index.cjs.map +0 -1
  396. package/logging/index.js.map +0 -1
  397. package/logging/logger.cjs.map +0 -1
  398. package/logging/logger.js.map +0 -1
  399. package/logging/namespacedLogger.cjs.map +0 -1
  400. package/logging/namespacedLogger.js.map +0 -1
  401. package/logging/nullLogger.cjs.map +0 -1
  402. package/logging/nullLogger.js.map +0 -1
  403. package/namespacedStorage.cjs.map +0 -1
  404. package/namespacedStorage.js.map +0 -1
  405. package/patch.cjs.map +0 -1
  406. package/patch.js.map +0 -1
  407. package/queue/capacityRestrictedQueue.cjs.map +0 -1
  408. package/queue/capacityRestrictedQueue.js.map +0 -1
  409. package/queue/inMemoryQueue.cjs.map +0 -1
  410. package/queue/inMemoryQueue.js.map +0 -1
  411. package/queue/index.cjs.map +0 -1
  412. package/queue/index.js.map +0 -1
  413. package/queue/monitoredQueue.cjs.map +0 -1
  414. package/queue/monitoredQueue.js.map +0 -1
  415. package/queue/persistentQueue.cjs.map +0 -1
  416. package/queue/persistentQueue.js.map +0 -1
  417. package/queue/queue.cjs.map +0 -1
  418. package/queue/queue.js.map +0 -1
  419. package/retry/arbitraryPolicy.cjs.map +0 -1
  420. package/retry/arbitraryPolicy.js.map +0 -1
  421. package/retry/backoffPolicy.cjs.map +0 -1
  422. package/retry/backoffPolicy.js.map +0 -1
  423. package/retry/index.cjs.map +0 -1
  424. package/retry/index.js.map +0 -1
  425. package/retry/maxAttemptsPolicy.cjs.map +0 -1
  426. package/retry/maxAttemptsPolicy.js.map +0 -1
  427. package/retry/neverPolicy.cjs.map +0 -1
  428. package/retry/neverPolicy.js.map +0 -1
  429. package/retry/policy.cjs.map +0 -1
  430. package/retry/policy.js.map +0 -1
  431. package/schema/attributeSchema.cjs.map +0 -1
  432. package/schema/attributeSchema.js.map +0 -1
  433. package/schema/contentFetcherSchemas.cjs.map +0 -1
  434. package/schema/contentFetcherSchemas.js.map +0 -1
  435. package/schema/contentSchemas.cjs.map +0 -1
  436. package/schema/contentSchemas.js.map +0 -1
  437. package/schema/contextSchemas.cjs.map +0 -1
  438. package/schema/contextSchemas.js.map +0 -1
  439. package/schema/ecommerceSchemas.cjs.map +0 -1
  440. package/schema/ecommerceSchemas.js.map +0 -1
  441. package/schema/evaluatorSchemas.cjs.map +0 -1
  442. package/schema/evaluatorSchemas.js.map +0 -1
  443. package/schema/eventSchemas.cjs.map +0 -1
  444. package/schema/eventSchemas.js.map +0 -1
  445. package/schema/index.cjs.map +0 -1
  446. package/schema/index.js.map +0 -1
  447. package/schema/loggerSchema.cjs.map +0 -1
  448. package/schema/loggerSchema.js.map +0 -1
  449. package/schema/operationSchemas.cjs.map +0 -1
  450. package/schema/operationSchemas.js.map +0 -1
  451. package/schema/sdkFacadeSchemas.cjs.map +0 -1
  452. package/schema/sdkFacadeSchemas.js.map +0 -1
  453. package/schema/sdkSchemas.cjs.map +0 -1
  454. package/schema/sdkSchemas.js.map +0 -1
  455. package/schema/tokenSchema.cjs.map +0 -1
  456. package/schema/tokenSchema.js.map +0 -1
  457. package/schema/userSchema.cjs.map +0 -1
  458. package/schema/userSchema.js.map +0 -1
  459. package/sdk.cjs.map +0 -1
  460. package/sdk.js.map +0 -1
  461. package/sdkEvents.cjs.map +0 -1
  462. package/sdkEvents.js.map +0 -1
  463. package/sourceLocation.cjs.map +0 -1
  464. package/sourceLocation.js.map +0 -1
  465. package/tab.cjs.map +0 -1
  466. package/tab.js.map +0 -1
  467. package/token/cachedTokenStore.cjs.map +0 -1
  468. package/token/cachedTokenStore.js.map +0 -1
  469. package/token/inMemoryTokenStore.cjs.map +0 -1
  470. package/token/inMemoryTokenStore.js.map +0 -1
  471. package/token/index.cjs.map +0 -1
  472. package/token/index.js.map +0 -1
  473. package/token/replicatedTokenStore.cjs.map +0 -1
  474. package/token/replicatedTokenStore.js.map +0 -1
  475. package/token/token.cjs.map +0 -1
  476. package/token/token.js.map +0 -1
  477. package/tracker.cjs.map +0 -1
  478. package/tracker.js.map +0 -1
  479. package/trackingEvents.cjs.map +0 -1
  480. package/trackingEvents.js.map +0 -1
  481. package/transformer.cjs.map +0 -1
  482. package/transformer.js.map +0 -1
  483. package/utilityTypes.cjs.map +0 -1
  484. package/utilityTypes.js.map +0 -1
  485. package/uuid.cjs.map +0 -1
  486. package/uuid.js.map +0 -1
  487. package/validation/arrayType.cjs.map +0 -1
  488. package/validation/arrayType.js.map +0 -1
  489. package/validation/booleanType.cjs.map +0 -1
  490. package/validation/booleanType.js.map +0 -1
  491. package/validation/functionType.cjs.map +0 -1
  492. package/validation/functionType.js.map +0 -1
  493. package/validation/index.cjs.map +0 -1
  494. package/validation/index.js.map +0 -1
  495. package/validation/jsonType.cjs.map +0 -1
  496. package/validation/jsonType.js.map +0 -1
  497. package/validation/mixedSchema.cjs.map +0 -1
  498. package/validation/mixedSchema.js.map +0 -1
  499. package/validation/nullType.cjs.map +0 -1
  500. package/validation/nullType.js.map +0 -1
  501. package/validation/numberType.cjs.map +0 -1
  502. package/validation/numberType.js.map +0 -1
  503. package/validation/objectType.cjs.map +0 -1
  504. package/validation/objectType.js.map +0 -1
  505. package/validation/schema.cjs.map +0 -1
  506. package/validation/schema.js.map +0 -1
  507. package/validation/stringType.cjs.map +0 -1
  508. package/validation/stringType.js.map +0 -1
  509. package/validation/unionType.cjs.map +0 -1
  510. package/validation/unionType.js.map +0 -1
  511. package/validation/violation.cjs.map +0 -1
  512. package/validation/violation.js.map +0 -1
package/activeRecord.cjs CHANGED
@@ -20,7 +20,7 @@ __export(activeRecord_exports, {
20
20
  ActiveRecord: () => ActiveRecord
21
21
  });
22
22
  module.exports = __toCommonJS(activeRecord_exports);
23
- var import_schema = require("./schema");
23
+ var import_schema = require('./schema/index.cjs');
24
24
  const operationSchema = {
25
25
  add: import_schema.addOperation,
26
26
  set: import_schema.setOperation,
@@ -132,4 +132,3 @@ class ActiveRecord {
132
132
  0 && (module.exports = {
133
133
  ActiveRecord
134
134
  });
135
- //# sourceMappingURL=activeRecord.cjs.map
@@ -0,0 +1,26 @@
1
+ import { JsonValue, JsonStructure } from '@croct/json';
2
+ import { Patch } from './patch.cjs';
3
+ import { TrackingEvent } from './trackingEvents.cjs';
4
+ import './utilityTypes.cjs';
5
+
6
+ declare abstract class ActiveRecord<T extends TrackingEvent> {
7
+ private readonly operations;
8
+ set(value: JsonValue): this;
9
+ set(property: string, value: JsonValue): this;
10
+ add(property: string, value: JsonValue): this;
11
+ combine(property: string, value: JsonValue): this;
12
+ merge(value: JsonStructure): this;
13
+ merge(property: string, value: JsonStructure): this;
14
+ increment(property: string, amount?: number): this;
15
+ decrement(property: string, amount?: number): this;
16
+ clear(property: string): this;
17
+ unset(property: string): this;
18
+ remove(property: string, value: JsonValue): this;
19
+ private pushOperation;
20
+ protected reset(): this;
21
+ abstract save(): Promise<T>;
22
+ protected isDirty(): boolean;
23
+ protected buildPatch(): Patch;
24
+ }
25
+
26
+ export { ActiveRecord };
package/activeRecord.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  setOperation,
9
9
  unsetOperation,
10
10
  removeOperation
11
- } from "./schema";
11
+ } from "./schema/index.js";
12
12
  const operationSchema = {
13
13
  add: addOperation,
14
14
  set: setOperation,
@@ -119,4 +119,3 @@ class ActiveRecord {
119
119
  export {
120
120
  ActiveRecord
121
121
  };
122
- //# sourceMappingURL=activeRecord.js.map
package/apiKey.cjs CHANGED
@@ -175,4 +175,3 @@ let ApiKey = _ApiKey;
175
175
  0 && (module.exports = {
176
176
  ApiKey
177
177
  });
178
- //# sourceMappingURL=apiKey.cjs.map
package/apiKey.d.cts ADDED
@@ -0,0 +1,48 @@
1
+ type ParsedPrivateKey = {
2
+ algorithm: string;
3
+ encodedKey: string;
4
+ };
5
+ declare class ApiKey {
6
+ private static readonly IDENTIFIER_PATTERN;
7
+ private static readonly PRIVATE_KEY_PATTERN;
8
+ private static readonly ALGORITHMS;
9
+ private readonly identifier;
10
+ private readonly privateKey?;
11
+ private importedKey;
12
+ private constructor();
13
+ static from(apiKey: string | ApiKey): ApiKey;
14
+ static parse(apiKey: string): ApiKey;
15
+ static of(identifier: string, privateKey?: string): ApiKey;
16
+ getIdentifier(): string;
17
+ getIdentifierHash(): Promise<string>;
18
+ hasPrivateKey(): boolean;
19
+ getPrivateKey(): string;
20
+ sign(data: string): Promise<string>;
21
+ getSigningAlgorithm(): string;
22
+ private importKey;
23
+ private getParsedPrivateKey;
24
+ export(): string;
25
+ toString(): string;
26
+ /**
27
+ * Create an array buffer from a string.
28
+ *
29
+ * @see https://developers.google.com/web/updates/2012/06/How-to-convert-ArrayBuffer-to-and-from-String
30
+ *
31
+ * @param data The string to convert.
32
+ * @returns The array buffer.
33
+ */
34
+ private static createByteArrayFromString;
35
+ private static createByteArrayFromHexString;
36
+ /**
37
+ * Convert an array buffer to a string.
38
+ *
39
+ * @see https://developers.google.com/web/updates/2012/06/How-to-convert-ArrayBuffer-to-and-from-String
40
+ *
41
+ * @param buffer The buffer to convert.
42
+ * @returns The string.
43
+ */
44
+ private static convertBufferToString;
45
+ private static convertBufferToHexString;
46
+ }
47
+
48
+ export { ApiKey, type ParsedPrivateKey };
package/apiKey.js CHANGED
@@ -152,4 +152,3 @@ let ApiKey = _ApiKey;
152
152
  export {
153
153
  ApiKey
154
154
  };
155
- //# sourceMappingURL=apiKey.js.map
package/base64Url.cjs CHANGED
@@ -38,4 +38,3 @@ function base64UrlDecode(value, utf8 = false) {
38
38
  base64UrlDecode,
39
39
  base64UrlEncode
40
40
  });
41
- //# sourceMappingURL=base64Url.cjs.map
@@ -0,0 +1,4 @@
1
+ declare function base64UrlEncode(value: string, utf8?: boolean): string;
2
+ declare function base64UrlDecode(value: string, utf8?: boolean): string;
3
+
4
+ export { base64UrlDecode, base64UrlEncode };
package/base64Url.js CHANGED
@@ -14,4 +14,3 @@ export {
14
14
  base64UrlDecode,
15
15
  base64UrlEncode
16
16
  };
17
- //# sourceMappingURL=base64Url.js.map
package/cache/cache.cjs CHANGED
@@ -31,4 +31,3 @@ var ObservableCache;
31
31
  0 && (module.exports = {
32
32
  ObservableCache
33
33
  });
34
- //# sourceMappingURL=cache.cjs.map
@@ -0,0 +1,17 @@
1
+ interface Cache {
2
+ get(): string | null;
3
+ put(value: string): void;
4
+ clear(): void;
5
+ }
6
+ interface CacheListener {
7
+ (value: string | null): void;
8
+ }
9
+ interface ObservableCache extends Cache {
10
+ addListener(listener: CacheListener): void;
11
+ removeListener(listener: CacheListener): void;
12
+ }
13
+ declare namespace ObservableCache {
14
+ function isObservable(cache: Cache): cache is ObservableCache;
15
+ }
16
+
17
+ export { type Cache, type CacheListener, ObservableCache };
package/cache/cache.js CHANGED
@@ -8,4 +8,3 @@ var ObservableCache;
8
8
  export {
9
9
  ObservableCache
10
10
  };
11
- //# sourceMappingURL=cache.js.map
@@ -82,4 +82,3 @@ class CookieCache {
82
82
  0 && (module.exports = {
83
83
  CookieCache
84
84
  });
85
- //# sourceMappingURL=cookieCache.cjs.map
@@ -0,0 +1,22 @@
1
+ import { Cache } from './cache.cjs';
2
+
3
+ type CookieCacheConfiguration = {
4
+ name: string;
5
+ secure?: boolean;
6
+ maxAge?: number;
7
+ domain?: string;
8
+ path?: string;
9
+ sameSite?: 'strict' | 'lax' | 'none';
10
+ };
11
+ declare class CookieCache implements Cache {
12
+ private readonly config;
13
+ constructor(config: CookieCacheConfiguration, defaultSecure?: boolean);
14
+ get(): string | null;
15
+ put(value: string): void;
16
+ clear(): void;
17
+ private static serializeCookie;
18
+ private static encode;
19
+ private static decode;
20
+ }
21
+
22
+ export { CookieCache, type CookieCacheConfiguration };
@@ -59,4 +59,3 @@ class CookieCache {
59
59
  export {
60
60
  CookieCache
61
61
  };
62
- //# sourceMappingURL=cookieCache.js.map
@@ -44,4 +44,3 @@ class FallbackCache {
44
44
  0 && (module.exports = {
45
45
  FallbackCache
46
46
  });
47
- //# sourceMappingURL=fallbackCache.cjs.map
@@ -0,0 +1,11 @@
1
+ import { Cache } from './cache.cjs';
2
+
3
+ declare class FallbackCache implements Cache {
4
+ private readonly caches;
5
+ constructor(...caches: Cache[]);
6
+ get(): string | null;
7
+ put(value: string): void;
8
+ clear(): void;
9
+ }
10
+
11
+ export { FallbackCache };
@@ -21,4 +21,3 @@ class FallbackCache {
21
21
  export {
22
22
  FallbackCache
23
23
  };
24
- //# sourceMappingURL=fallbackCache.js.map
@@ -38,4 +38,3 @@ class InMemoryCache {
38
38
  0 && (module.exports = {
39
39
  InMemoryCache
40
40
  });
41
- //# sourceMappingURL=inMemoryCache.cjs.map
@@ -0,0 +1,11 @@
1
+ import { Cache } from './cache.cjs';
2
+
3
+ declare class InMemoryCache implements Cache {
4
+ private cache?;
5
+ constructor(cache?: string);
6
+ get(): string | null;
7
+ put(value: string): void;
8
+ clear(): void;
9
+ }
10
+
11
+ export { InMemoryCache };
@@ -15,4 +15,3 @@ class InMemoryCache {
15
15
  export {
16
16
  InMemoryCache
17
17
  };
18
- //# sourceMappingURL=inMemoryCache.js.map
package/cache/index.cjs CHANGED
@@ -23,15 +23,14 @@ __export(cache_exports, {
23
23
  LocalStorageCache: () => import_localStorageCache.LocalStorageCache
24
24
  });
25
25
  module.exports = __toCommonJS(cache_exports);
26
- __reExport(cache_exports, require("./cache"), module.exports);
27
- var import_fallbackCache = require("./fallbackCache");
28
- var import_inMemoryCache = require("./inMemoryCache");
29
- var import_localStorageCache = require("./localStorageCache");
26
+ __reExport(cache_exports, require('./cache.cjs'), module.exports);
27
+ var import_fallbackCache = require('./fallbackCache.cjs');
28
+ var import_inMemoryCache = require('./inMemoryCache.cjs');
29
+ var import_localStorageCache = require('./localStorageCache.cjs');
30
30
  // Annotate the CommonJS export names for ESM import in node:
31
31
  0 && (module.exports = {
32
32
  FallbackCache,
33
33
  InMemoryCache,
34
34
  LocalStorageCache,
35
- ...require("./cache")
35
+ ...require('./cache.cjs')
36
36
  });
37
- //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,4 @@
1
+ export { Cache, CacheListener, ObservableCache } from './cache.cjs';
2
+ export { FallbackCache } from './fallbackCache.cjs';
3
+ export { InMemoryCache } from './inMemoryCache.cjs';
4
+ export { LocalStorageCache } from './localStorageCache.cjs';
package/cache/index.js CHANGED
@@ -1,10 +1,9 @@
1
- export * from "./cache";
2
- import { FallbackCache } from "./fallbackCache";
3
- import { InMemoryCache } from "./inMemoryCache";
4
- import { LocalStorageCache } from "./localStorageCache";
1
+ export * from "./cache.js";
2
+ import { FallbackCache } from "./fallbackCache.js";
3
+ import { InMemoryCache } from "./inMemoryCache.js";
4
+ import { LocalStorageCache } from "./localStorageCache.js";
5
5
  export {
6
6
  FallbackCache,
7
7
  InMemoryCache,
8
8
  LocalStorageCache
9
9
  };
10
- //# sourceMappingURL=index.js.map
@@ -78,4 +78,3 @@ class LocalStorageCache {
78
78
  0 && (module.exports = {
79
79
  LocalStorageCache
80
80
  });
81
- //# sourceMappingURL=localStorageCache.cjs.map
@@ -0,0 +1,19 @@
1
+ import { ObservableCache, CacheListener } from './cache.cjs';
2
+
3
+ declare class LocalStorageCache implements ObservableCache {
4
+ private readonly storage;
5
+ private readonly key;
6
+ private value;
7
+ private readonly listeners;
8
+ constructor(storage: Storage, key: string);
9
+ static autoSync(cache: LocalStorageCache): (() => void);
10
+ get(): string | null;
11
+ put(value: string): void;
12
+ clear(): void;
13
+ addListener(listener: CacheListener): void;
14
+ removeListener(listener: CacheListener): void;
15
+ private notifyChange;
16
+ private sync;
17
+ }
18
+
19
+ export { LocalStorageCache };
@@ -55,4 +55,3 @@ class LocalStorageCache {
55
55
  export {
56
56
  LocalStorageCache
57
57
  };
58
- //# sourceMappingURL=localStorageCache.js.map
@@ -20,7 +20,7 @@ __export(channel_exports, {
20
20
  MessageDeliveryError: () => MessageDeliveryError
21
21
  });
22
22
  module.exports = __toCommonJS(channel_exports);
23
- var import_error = require("../error");
23
+ var import_error = require('../error.cjs');
24
24
  class MessageDeliveryError extends Error {
25
25
  constructor(message, retryable) {
26
26
  super(message);
@@ -45,4 +45,3 @@ class MessageDeliveryError extends Error {
45
45
  0 && (module.exports = {
46
46
  MessageDeliveryError
47
47
  });
48
- //# sourceMappingURL=channel.cjs.map
@@ -0,0 +1,24 @@
1
+ declare class MessageDeliveryError extends Error {
2
+ readonly retryable: boolean;
3
+ constructor(message: string, retryable: boolean);
4
+ static retryable(cause: unknown): MessageDeliveryError;
5
+ static nonRetryable(cause: unknown): MessageDeliveryError;
6
+ private static fromCause;
7
+ }
8
+ interface Closeable {
9
+ close(): Promise<void>;
10
+ }
11
+ interface OutputChannel<O> extends Closeable {
12
+ publish(message: O): Promise<void>;
13
+ }
14
+ type ChannelListener<T> = {
15
+ (message: T): void;
16
+ };
17
+ interface InputChannel<I> extends Closeable {
18
+ subscribe(listener: ChannelListener<I>): void;
19
+ unsubscribe(listener: ChannelListener<I>): void;
20
+ }
21
+ interface DuplexChannel<I, O> extends InputChannel<I>, OutputChannel<O> {
22
+ }
23
+
24
+ export { type ChannelListener, type Closeable, type DuplexChannel, type InputChannel, MessageDeliveryError, type OutputChannel };
@@ -1,4 +1,4 @@
1
- import { formatMessage } from "../error";
1
+ import { formatMessage } from "../error.js";
2
2
  class MessageDeliveryError extends Error {
3
3
  constructor(message, retryable) {
4
4
  super(message);
@@ -22,4 +22,3 @@ class MessageDeliveryError extends Error {
22
22
  export {
23
23
  MessageDeliveryError
24
24
  };
25
- //# sourceMappingURL=channel.js.map
@@ -36,4 +36,3 @@ class EncodedChannel {
36
36
  0 && (module.exports = {
37
37
  EncodedChannel
38
38
  });
39
- //# sourceMappingURL=encodedChannel.cjs.map
@@ -0,0 +1,12 @@
1
+ import { OutputChannel } from './channel.cjs';
2
+ import { Transformer } from '../transformer.cjs';
3
+
4
+ declare class EncodedChannel<D, E> implements OutputChannel<D> {
5
+ private readonly encode;
6
+ private readonly channel;
7
+ constructor(channel: OutputChannel<E>, encoder: Transformer<D, E>);
8
+ publish(message: D): Promise<void>;
9
+ close(): Promise<void>;
10
+ }
11
+
12
+ export { EncodedChannel };
@@ -13,4 +13,3 @@ class EncodedChannel {
13
13
  export {
14
14
  EncodedChannel
15
15
  };
16
- //# sourceMappingURL=encodedChannel.js.map
@@ -21,8 +21,8 @@ __export(guaranteedChannel_exports, {
21
21
  TimeStamper: () => TimeStamper
22
22
  });
23
23
  module.exports = __toCommonJS(guaranteedChannel_exports);
24
- var import_logging = require("../logging");
25
- var import_channel = require("./channel");
24
+ var import_logging = require('../logging/index.cjs');
25
+ var import_channel = require('./channel.cjs');
26
26
  class TimeStamper {
27
27
  generate() {
28
28
  return String(Date.now());
@@ -102,4 +102,3 @@ class GuaranteedChannel {
102
102
  GuaranteedChannel,
103
103
  TimeStamper
104
104
  });
105
- //# sourceMappingURL=guaranteedChannel.cjs.map
@@ -0,0 +1,33 @@
1
+ import { Logger } from '../logging/logger.cjs';
2
+ import { OutputChannel, DuplexChannel } from './channel.cjs';
3
+
4
+ type MessageStamper<M, S> = {
5
+ generate(message: M): S;
6
+ };
7
+ declare class TimeStamper implements MessageStamper<any, string> {
8
+ generate(): string;
9
+ }
10
+ type Envelope<M, S> = {
11
+ id: S;
12
+ message: M;
13
+ };
14
+ type Options = {
15
+ ackTimeout: number;
16
+ };
17
+ type Configuration<M, S> = Partial<Options> & {
18
+ channel: DuplexChannel<S, Envelope<M, S>>;
19
+ stamper: MessageStamper<M, S>;
20
+ logger?: Logger;
21
+ };
22
+ declare class GuaranteedChannel<M, S> implements OutputChannel<M> {
23
+ private readonly channel;
24
+ private readonly stamper;
25
+ private readonly logger;
26
+ private readonly options;
27
+ private closed;
28
+ constructor({ channel, logger, stamper, ...options }: Configuration<M, S>);
29
+ publish(message: M): Promise<void>;
30
+ close(): Promise<void>;
31
+ }
32
+
33
+ export { type Envelope, GuaranteedChannel, type MessageStamper, TimeStamper };
@@ -1,5 +1,5 @@
1
- import { NullLogger } from "../logging";
2
- import { MessageDeliveryError } from "./channel";
1
+ import { NullLogger } from "../logging/index.js";
2
+ import { MessageDeliveryError } from "./channel.js";
3
3
  class TimeStamper {
4
4
  generate() {
5
5
  return String(Date.now());
@@ -78,4 +78,3 @@ export {
78
78
  GuaranteedChannel,
79
79
  TimeStamper
80
80
  };
81
- //# sourceMappingURL=guaranteedChannel.js.map
@@ -20,11 +20,11 @@ __export(httpBeaconChannel_exports, {
20
20
  HttpBeaconChannel: () => HttpBeaconChannel
21
21
  });
22
22
  module.exports = __toCommonJS(httpBeaconChannel_exports);
23
- var import_channel = require("./channel");
24
- var import_logging = require("../logging");
25
- var import_error = require("../error");
26
- var import_constants = require("../constants");
27
- var import_help = require("../help");
23
+ var import_channel = require('./channel.cjs');
24
+ var import_logging = require('../logging/index.cjs');
25
+ var import_error = require('../error.cjs');
26
+ var import_constants = require('../constants.cjs');
27
+ var import_help = require('../help.cjs');
28
28
  class HttpBeaconChannel {
29
29
  constructor({ logger = new import_logging.NullLogger(), ...configuration }) {
30
30
  this.listeners = [];
@@ -108,4 +108,3 @@ class HttpBeaconChannel {
108
108
  0 && (module.exports = {
109
109
  HttpBeaconChannel
110
110
  });
111
- //# sourceMappingURL=httpBeaconChannel.cjs.map
@@ -0,0 +1,26 @@
1
+ import { DuplexChannel, ChannelListener } from './channel.cjs';
2
+ import { Envelope } from './guaranteedChannel.cjs';
3
+ import { Logger } from '../logging/logger.cjs';
4
+ import { CidAssigner } from '../cid/assigner.cjs';
5
+
6
+ type Configuration = {
7
+ appId: string;
8
+ endpointUrl: string;
9
+ cidAssigner: CidAssigner;
10
+ logger?: Logger;
11
+ };
12
+ declare class HttpBeaconChannel implements DuplexChannel<string, Envelope<string, string>> {
13
+ private readonly configuration;
14
+ private readonly logger;
15
+ private readonly listeners;
16
+ private closed;
17
+ constructor({ logger, ...configuration }: Configuration);
18
+ publish({ id: receiptId, message }: Envelope<string, string>): Promise<void>;
19
+ subscribe(listener: ChannelListener<string>): void;
20
+ unsubscribe(listener: ChannelListener<string>): void;
21
+ private notify;
22
+ close(): Promise<void>;
23
+ private static isRetryable;
24
+ }
25
+
26
+ export { type Configuration, HttpBeaconChannel };
@@ -1,8 +1,8 @@
1
- import { MessageDeliveryError } from "./channel";
2
- import { NullLogger } from "../logging";
3
- import { formatMessage } from "../error";
4
- import { CLIENT_LIBRARY } from "../constants";
5
- import { Help } from "../help";
1
+ import { MessageDeliveryError } from "./channel.js";
2
+ import { NullLogger } from "../logging/index.js";
3
+ import { formatMessage } from "../error.js";
4
+ import { CLIENT_LIBRARY } from "../constants.js";
5
+ import { Help } from "../help.js";
6
6
  class HttpBeaconChannel {
7
7
  constructor({ logger = new NullLogger(), ...configuration }) {
8
8
  this.listeners = [];
@@ -85,4 +85,3 @@ class HttpBeaconChannel {
85
85
  export {
86
86
  HttpBeaconChannel
87
87
  };
88
- //# sourceMappingURL=httpBeaconChannel.js.map
package/channel/index.cjs CHANGED
@@ -26,13 +26,13 @@ __export(channel_exports, {
26
26
  SandboxChannel: () => import_sandboxChannel.SandboxChannel
27
27
  });
28
28
  module.exports = __toCommonJS(channel_exports);
29
- __reExport(channel_exports, require("./channel"), module.exports);
30
- var import_encodedChannel = require("./encodedChannel");
31
- var import_guaranteedChannel = require("./guaranteedChannel");
32
- var import_queuedChannel = require("./queuedChannel");
33
- var import_retryChannel = require("./retryChannel");
34
- var import_sandboxChannel = require("./sandboxChannel");
35
- var import_httpBeaconChannel = require("./httpBeaconChannel");
29
+ __reExport(channel_exports, require('./channel.cjs'), module.exports);
30
+ var import_encodedChannel = require('./encodedChannel.cjs');
31
+ var import_guaranteedChannel = require('./guaranteedChannel.cjs');
32
+ var import_queuedChannel = require('./queuedChannel.cjs');
33
+ var import_retryChannel = require('./retryChannel.cjs');
34
+ var import_sandboxChannel = require('./sandboxChannel.cjs');
35
+ var import_httpBeaconChannel = require('./httpBeaconChannel.cjs');
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
38
38
  EncodedChannel,
@@ -41,6 +41,5 @@ var import_httpBeaconChannel = require("./httpBeaconChannel");
41
41
  QueuedChannel,
42
42
  RetryChannel,
43
43
  SandboxChannel,
44
- ...require("./channel")
44
+ ...require('./channel.cjs')
45
45
  });
46
- //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,12 @@
1
+ export { ChannelListener, Closeable, DuplexChannel, InputChannel, MessageDeliveryError, OutputChannel } from './channel.cjs';
2
+ export { EncodedChannel } from './encodedChannel.cjs';
3
+ export { GuaranteedChannel } from './guaranteedChannel.cjs';
4
+ export { QueuedChannel } from './queuedChannel.cjs';
5
+ export { RetryChannel } from './retryChannel.cjs';
6
+ export { SandboxChannel } from './sandboxChannel.cjs';
7
+ export { HttpBeaconChannel } from './httpBeaconChannel.cjs';
8
+ import '../transformer.cjs';
9
+ import '../logging/logger.cjs';
10
+ import '../queue/queue.cjs';
11
+ import '../retry/policy.cjs';
12
+ import '../cid/assigner.cjs';
package/channel/index.js CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./channel";
2
- import { EncodedChannel } from "./encodedChannel";
3
- import { GuaranteedChannel } from "./guaranteedChannel";
4
- import { QueuedChannel } from "./queuedChannel";
5
- import { RetryChannel } from "./retryChannel";
6
- import { SandboxChannel } from "./sandboxChannel";
7
- import { HttpBeaconChannel } from "./httpBeaconChannel";
1
+ export * from "./channel.js";
2
+ import { EncodedChannel } from "./encodedChannel.js";
3
+ import { GuaranteedChannel } from "./guaranteedChannel.js";
4
+ import { QueuedChannel } from "./queuedChannel.js";
5
+ import { RetryChannel } from "./retryChannel.js";
6
+ import { SandboxChannel } from "./sandboxChannel.js";
7
+ import { HttpBeaconChannel } from "./httpBeaconChannel.js";
8
8
  export {
9
9
  EncodedChannel,
10
10
  GuaranteedChannel,
@@ -13,4 +13,3 @@ export {
13
13
  RetryChannel,
14
14
  SandboxChannel
15
15
  };
16
- //# sourceMappingURL=index.js.map
@@ -20,8 +20,8 @@ __export(queuedChannel_exports, {
20
20
  QueuedChannel: () => QueuedChannel
21
21
  });
22
22
  module.exports = __toCommonJS(queuedChannel_exports);
23
- var import_channel = require("./channel");
24
- var import_logging = require("../logging");
23
+ var import_channel = require('./channel.cjs');
24
+ var import_logging = require('../logging/index.cjs');
25
25
  class QueuedChannel {
26
26
  constructor(channel, queue, logger) {
27
27
  this.closed = false;
@@ -119,4 +119,3 @@ class QueuedChannel {
119
119
  0 && (module.exports = {
120
120
  QueuedChannel
121
121
  });
122
- //# sourceMappingURL=queuedChannel.cjs.map
@@ -0,0 +1,21 @@
1
+ import { OutputChannel } from './channel.cjs';
2
+ import { Queue } from '../queue/queue.cjs';
3
+ import { Logger } from '../logging/logger.cjs';
4
+
5
+ declare class QueuedChannel<T> implements OutputChannel<T> {
6
+ private readonly channel;
7
+ private readonly queue;
8
+ private readonly logger;
9
+ private pending?;
10
+ private closed;
11
+ constructor(channel: OutputChannel<T>, queue: Queue<T>, logger?: Logger);
12
+ flush(): Promise<void>;
13
+ publish(message: T): Promise<void>;
14
+ private enqueue;
15
+ private dequeue;
16
+ private requeue;
17
+ private chainNext;
18
+ close(): Promise<void>;
19
+ }
20
+
21
+ export { QueuedChannel };