@burdenoff/be-sdk 2026.1110.1 → 2026.1110.3

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 (469) hide show
  1. package/configs/eslint/index.js +1 -1
  2. package/configs/tsconfig/tsconfig.json +1 -1
  3. package/dist/EventQueueFactory-9NGZV9jl.js +1457 -0
  4. package/dist/EventQueueFactory-9NGZV9jl.js.map +1 -0
  5. package/dist/RedisStreamsConnection-CY8WySJy.js +283 -0
  6. package/dist/RedisStreamsConnection-CY8WySJy.js.map +1 -0
  7. package/dist/ai-credits/index.d.ts +2 -3
  8. package/dist/ai-credits/index.js +3 -4
  9. package/dist/ai-credits/index.js.map +1 -1
  10. package/dist/ai-credits-Ca-NNcVx.js +546 -0
  11. package/dist/ai-credits-Ca-NNcVx.js.map +1 -0
  12. package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
  13. package/dist/auth/index.d.ts +2 -77
  14. package/dist/auth/index.js +3 -7
  15. package/dist/auth/index.js.map +1 -1
  16. package/dist/auth-CEuBEBQN.js +228 -0
  17. package/dist/auth-CEuBEBQN.js.map +1 -0
  18. package/dist/cache/index.d.ts +2 -3
  19. package/dist/cache/index.js +3 -7
  20. package/dist/cache/index.js.map +1 -1
  21. package/dist/cache-CU0uLwcS.js +1837 -0
  22. package/dist/cache-CU0uLwcS.js.map +1 -0
  23. package/dist/captcha/index.d.ts +2 -1
  24. package/dist/captcha/index.js +3 -3
  25. package/dist/captcha/index.js.map +1 -1
  26. package/dist/captcha-BT7yh1YS.js +77 -0
  27. package/dist/captcha-BT7yh1YS.js.map +1 -0
  28. package/dist/client/internal-client.d.ts +4 -7
  29. package/dist/client/internal-client.js +172 -4
  30. package/dist/client/internal-client.js.map +1 -1
  31. package/dist/client-BgAEvDC2.d.ts +86 -0
  32. package/dist/client-DcZ3iGES.js +565 -0
  33. package/dist/client-DcZ3iGES.js.map +1 -0
  34. package/dist/collector-endpoint-iyQYeI50.js +50 -0
  35. package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
  36. package/dist/context-CZnXf2yb.js +247 -0
  37. package/dist/context-CZnXf2yb.js.map +1 -0
  38. package/dist/crypto/index.d.ts +2 -1
  39. package/dist/crypto/index.js +3 -3
  40. package/dist/crypto/index.js.map +1 -1
  41. package/dist/crypto-DO9fM0FO.js +145 -0
  42. package/dist/crypto-DO9fM0FO.js.map +1 -0
  43. package/dist/database/index.d.ts +104 -108
  44. package/dist/database/index.js +468 -6
  45. package/dist/database/index.js.map +1 -1
  46. package/dist/dataloader/index.d.ts +2 -1
  47. package/dist/dataloader/index.js +3 -3
  48. package/dist/dataloader/index.js.map +1 -1
  49. package/dist/dataloader-DwpT3YoS.js +294 -0
  50. package/dist/dataloader-DwpT3YoS.js.map +1 -0
  51. package/dist/deployed-environment-p_Tdl3sT.js +38 -0
  52. package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
  53. package/dist/dist-BGKdXVy3.js +1718 -0
  54. package/dist/dist-BGKdXVy3.js.map +1 -0
  55. package/dist/env-DdaoGjIt.js +74 -0
  56. package/dist/env-DdaoGjIt.js.map +1 -0
  57. package/dist/event-queue/index.d.ts +2 -7
  58. package/dist/event-queue/index.js +7 -9
  59. package/dist/event-queue/index.js.map +1 -1
  60. package/dist/event-queue-Cw-YJPY_.js +1384 -0
  61. package/dist/event-queue-Cw-YJPY_.js.map +1 -0
  62. package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
  63. package/dist/export/index.d.ts +2 -2
  64. package/dist/export/index.js +3 -14
  65. package/dist/export/index.js.map +1 -1
  66. package/dist/export-B6fphx8a.js +642 -0
  67. package/dist/export-B6fphx8a.js.map +1 -0
  68. package/dist/feature-flags/index.d.ts +2 -10
  69. package/dist/feature-flags/index.js +3 -6
  70. package/dist/feature-flags/index.js.map +1 -1
  71. package/dist/feature-flags-71oDkrUe.js +422 -0
  72. package/dist/feature-flags-71oDkrUe.js.map +1 -0
  73. package/dist/files/index.d.ts +2 -3
  74. package/dist/files/index.js +3 -4
  75. package/dist/files/index.js.map +1 -1
  76. package/dist/files-DjH0099H.js +830 -0
  77. package/dist/files-DjH0099H.js.map +1 -0
  78. package/dist/gateway/index.d.ts +4 -6
  79. package/dist/gateway/index.js +7 -13
  80. package/dist/gateway/index.js.map +1 -1
  81. package/dist/gateway/security/index.d.ts +2 -2
  82. package/dist/gateway/security/index.js +3 -5
  83. package/dist/gateway/security/index.js.map +1 -1
  84. package/dist/gateway-DBFmxWks.js +50 -0
  85. package/dist/gateway-DBFmxWks.js.map +1 -0
  86. package/dist/graph/index.d.ts +3 -10
  87. package/dist/graph/index.js +4 -13
  88. package/dist/graph/index.js.map +1 -1
  89. package/dist/graph-DDYgIryR.js +2152 -0
  90. package/dist/graph-DDYgIryR.js.map +1 -0
  91. package/dist/graph-emitter-CdOXP7Tn.js +621 -0
  92. package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
  93. package/dist/graphql/index.d.ts +3 -2
  94. package/dist/graphql/index.js +4 -6
  95. package/dist/graphql/index.js.map +1 -1
  96. package/dist/graphql/services/index.d.ts +2 -24
  97. package/dist/graphql/services/index.js +3 -4
  98. package/dist/graphql/services/index.js.map +1 -1
  99. package/dist/graphql-DHAHHcww.js +161 -0
  100. package/dist/graphql-DHAHHcww.js.map +1 -0
  101. package/dist/graphql-DNkMkGBZ.d.ts +21 -0
  102. package/dist/i18n/index.d.ts +3 -3
  103. package/dist/i18n/index.js +3 -4
  104. package/dist/i18n/index.js.map +1 -1
  105. package/dist/i18n-BBMYFd0P.js +860 -0
  106. package/dist/i18n-BBMYFd0P.js.map +1 -0
  107. package/dist/import-optional-peer-B82VYxeX.js +18 -0
  108. package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
  109. package/dist/index-3KOZ1zN9.d.ts +233 -0
  110. package/dist/index-BBqooJ52.d.ts +45 -0
  111. package/dist/index-BGzMYJsm.d.ts +209 -0
  112. package/dist/index-BKwHQtHQ.d.ts +63 -0
  113. package/dist/index-BMIMnp6T.d.ts +8 -0
  114. package/dist/index-BQDsNAMR.d.ts +81 -0
  115. package/dist/index-BVOL7458.d.ts +10 -0
  116. package/dist/index-BcqQs-Uq.d.ts +69 -0
  117. package/dist/index-BeVtqGO-.d.ts +208 -0
  118. package/dist/index-BiTzGUZP.d.ts +114 -0
  119. package/dist/index-BqYfCQSP.d.ts +500 -0
  120. package/dist/index-C0qLquY0.d.ts +150 -0
  121. package/dist/index-C5uEKchX.d.ts +60 -0
  122. package/dist/index-CDOqxSIi.d.ts +37 -0
  123. package/dist/index-CG6wj66Y.d.ts +148 -0
  124. package/dist/index-CIgoeobA.d.ts +145 -0
  125. package/dist/index-CPQDMSFS.d.ts +103 -0
  126. package/dist/index-CSRcgkVi.d.ts +23 -0
  127. package/dist/index-CZTnQIRU.d.ts +341 -0
  128. package/dist/index-CaM9JUcc.d.ts +144 -0
  129. package/dist/index-CkT2aUr3.d.ts +704 -0
  130. package/dist/index-CliOgq6L.d.ts +203 -0
  131. package/dist/index-CnzbJZP7.d.ts +999 -0
  132. package/dist/index-D6UeLAye.d.ts +63 -0
  133. package/dist/index-DGgh9DWn.d.ts +59 -0
  134. package/dist/index-DY3dNhMN.d.ts +420 -0
  135. package/dist/index-DZC-2o9R.d.ts +207 -0
  136. package/dist/index-DqbGqfAy.d.ts +127 -0
  137. package/dist/index-Dt1HJPTX.d.ts +12 -0
  138. package/dist/index-DtI6aBtB.d.ts +22 -0
  139. package/dist/index-FKohsiex.d.ts +38 -0
  140. package/dist/index-FbXPfen7.d.ts +132 -0
  141. package/dist/index-MArCb8Aq.d.ts +306 -0
  142. package/dist/index-N-huORcj.d.ts +303 -0
  143. package/dist/index-YOShAwkq.d.ts +45 -0
  144. package/dist/index-bZKZUvBu.d.ts +646 -0
  145. package/dist/index-yBSjMY32.d.ts +24 -0
  146. package/dist/index.d.ts +501 -544
  147. package/dist/index.js +1820 -2171
  148. package/dist/index.js.map +1 -1
  149. package/dist/init/index.d.ts +2 -2
  150. package/dist/init/index.js +3 -16
  151. package/dist/init/index.js.map +1 -1
  152. package/dist/init-Dy3KhT6Y.js +325 -0
  153. package/dist/init-Dy3KhT6Y.js.map +1 -0
  154. package/dist/instrumentation/index.d.ts +3 -4
  155. package/dist/instrumentation/index.js +5 -5
  156. package/dist/instrumentation/index.js.map +1 -1
  157. package/dist/instrumentation-xkkmDgJ0.js +1678 -0
  158. package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
  159. package/dist/lake/index.d.ts +50 -54
  160. package/dist/lake/index.js +169 -193
  161. package/dist/lake/index.js.map +1 -1
  162. package/dist/layer/index.d.ts +3 -2
  163. package/dist/layer/index.js +4 -5
  164. package/dist/layer/index.js.map +1 -1
  165. package/dist/layer-BZBZZWeV.d.ts +69 -0
  166. package/dist/layer-Bcix-WCl.js +105 -0
  167. package/dist/layer-Bcix-WCl.js.map +1 -0
  168. package/dist/layer-CEKy6cm8.js +252 -0
  169. package/dist/layer-CEKy6cm8.js.map +1 -0
  170. package/dist/lifecycle/index.d.ts +2 -1
  171. package/dist/lifecycle/index.js +3 -4
  172. package/dist/lifecycle/index.js.map +1 -1
  173. package/dist/lifecycle-DeoLSX0U.js +76 -0
  174. package/dist/lifecycle-DeoLSX0U.js.map +1 -0
  175. package/dist/logger/index.d.ts +2 -3
  176. package/dist/logger/index.js +3 -3
  177. package/dist/logger/index.js.map +1 -1
  178. package/dist/logger-B6rCpb7D.js +290 -0
  179. package/dist/logger-B6rCpb7D.js.map +1 -0
  180. package/dist/metrics/index.d.ts +13 -14
  181. package/dist/metrics/index.js +3 -4
  182. package/dist/metrics/index.js.map +1 -1
  183. package/dist/metrics-BrLwNUrb.js +52 -0
  184. package/dist/metrics-BrLwNUrb.js.map +1 -0
  185. package/dist/metrics-collector-C2eShrlW.js +922 -0
  186. package/dist/metrics-collector-C2eShrlW.js.map +1 -0
  187. package/dist/middleware/index.d.ts +3 -3
  188. package/dist/middleware/index.js +3 -4
  189. package/dist/middleware/index.js.map +1 -1
  190. package/dist/middleware-CUxJVUpD.js +1243 -0
  191. package/dist/middleware-CUxJVUpD.js.map +1 -0
  192. package/dist/middleware-Cq0zFMGp.js +253 -0
  193. package/dist/middleware-Cq0zFMGp.js.map +1 -0
  194. package/dist/notifications/index.d.ts +2 -5
  195. package/dist/notifications/index.js +3 -6
  196. package/dist/notifications/index.js.map +1 -1
  197. package/dist/notifications-CdETrtFK.js +869 -0
  198. package/dist/notifications-CdETrtFK.js.map +1 -0
  199. package/dist/observability/index.d.ts +2 -3
  200. package/dist/observability/index.js +3 -4
  201. package/dist/observability/index.js.map +1 -1
  202. package/dist/observability-DBDXipTU.js +272 -0
  203. package/dist/observability-DBDXipTU.js.map +1 -0
  204. package/dist/platform/index.d.ts +2 -1
  205. package/dist/platform/index.js +3 -5
  206. package/dist/platform/index.js.map +1 -1
  207. package/dist/platform-DZwczW7v.js +1510 -0
  208. package/dist/platform-DZwczW7v.js.map +1 -0
  209. package/dist/prisma/generator/index.d.ts +1 -1
  210. package/dist/prisma/generator/index.js +97 -84
  211. package/dist/prisma/generator/index.js.map +1 -1
  212. package/dist/prisma/index.d.ts +4 -7
  213. package/dist/prisma/index.js +5 -12
  214. package/dist/prisma/index.js.map +1 -1
  215. package/dist/prisma-BzOOdt79.js +863 -0
  216. package/dist/prisma-BzOOdt79.js.map +1 -0
  217. package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
  218. package/dist/product-alias/index.d.ts +2 -1
  219. package/dist/product-alias/index.js +3 -3
  220. package/dist/product-alias/index.js.map +1 -1
  221. package/dist/product-alias-BPqtskMq.js +273 -0
  222. package/dist/product-alias-BPqtskMq.js.map +1 -0
  223. package/dist/rbac/index.d.ts +2 -122
  224. package/dist/rbac/index.js +3 -6
  225. package/dist/rbac/index.js.map +1 -1
  226. package/dist/rbac-BB9l9Xph.js +1486 -0
  227. package/dist/rbac-BB9l9Xph.js.map +1 -0
  228. package/dist/resource-caps/index.d.ts +66 -72
  229. package/dist/resource-caps/index.js +430 -5
  230. package/dist/resource-caps/index.js.map +1 -1
  231. package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
  232. package/dist/sdk-Dju9o-sq.js +124 -0
  233. package/dist/sdk-Dju9o-sq.js.map +1 -0
  234. package/dist/security-DIG-95Ic.js +1647 -0
  235. package/dist/security-DIG-95Ic.js.map +1 -0
  236. package/dist/server/index.d.ts +7 -164
  237. package/dist/server/index.js +2000 -1507
  238. package/dist/server/index.js.map +1 -1
  239. package/dist/service-jwt-Bu-WNA_-.js +80 -0
  240. package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
  241. package/dist/services-BWzfz7vG.js +102 -0
  242. package/dist/services-BWzfz7vG.js.map +1 -0
  243. package/dist/sharding/index.d.ts +41 -44
  244. package/dist/sharding/index.js +156 -137
  245. package/dist/sharding/index.js.map +1 -1
  246. package/dist/sharing/index.d.ts +2 -1
  247. package/dist/sharing/index.js +3 -4
  248. package/dist/sharing/index.js.map +1 -1
  249. package/dist/sharing-CflDsSJ-.js +911 -0
  250. package/dist/sharing-CflDsSJ-.js.map +1 -0
  251. package/dist/stub-BqwKn4eh.js +630 -0
  252. package/dist/stub-BqwKn4eh.js.map +1 -0
  253. package/dist/tags/index.d.ts +2 -3
  254. package/dist/tags/index.js +3 -4
  255. package/dist/tags/index.js.map +1 -1
  256. package/dist/tags-B5xpbgsk.js +868 -0
  257. package/dist/{chunk-PBZFAAOM.js.map → tags-B5xpbgsk.js.map} +1 -1
  258. package/dist/telemetry/index.d.ts +64 -76
  259. package/dist/telemetry/index.js +369 -201
  260. package/dist/telemetry/index.js.map +1 -1
  261. package/dist/temporal/index.d.ts +2 -148
  262. package/dist/temporal/index.js +3 -5
  263. package/dist/temporal/index.js.map +1 -1
  264. package/dist/temporal-B534uYK8.js +706 -0
  265. package/dist/temporal-B534uYK8.js.map +1 -0
  266. package/dist/tracker/index.d.ts +5 -11
  267. package/dist/tracker/index.js +5 -20
  268. package/dist/tracker/index.js.map +1 -1
  269. package/dist/tracker-BQVoEFUo.js +839 -0
  270. package/dist/tracker-BQVoEFUo.js.map +1 -0
  271. package/dist/types-BYMYND1L.js +44 -0
  272. package/dist/types-BYMYND1L.js.map +1 -0
  273. package/dist/types-C6EKaS3V.d.ts +106 -0
  274. package/dist/types-CWybW61E.d.ts +323 -0
  275. package/dist/types-C_yfu3XK.d.ts +34 -0
  276. package/dist/types-Cj2RWXbz.js +90 -0
  277. package/dist/types-Cj2RWXbz.js.map +1 -0
  278. package/dist/types-DgaQqvxo.d.ts +70 -0
  279. package/dist/usage/index.d.ts +2 -213
  280. package/dist/usage/index.js +3 -15
  281. package/dist/usage/index.js.map +1 -1
  282. package/dist/usage-BKFZiWQn.js +682 -0
  283. package/dist/usage-BKFZiWQn.js.map +1 -0
  284. package/dist/utils/index.d.ts +2 -1
  285. package/dist/utils/index.js +3 -3
  286. package/dist/utils/index.js.map +1 -1
  287. package/dist/utils-DL85Tnbn.js +500 -0
  288. package/dist/utils-DL85Tnbn.js.map +1 -0
  289. package/dist/validation/index.d.ts +2 -2
  290. package/dist/validation/index.js +3 -3
  291. package/dist/validation/index.js.map +1 -1
  292. package/dist/validation-CPUITdMk.js +762 -0
  293. package/dist/validation-CPUITdMk.js.map +1 -0
  294. package/dist/workspace-extension-COrC0dYi.js +979 -0
  295. package/dist/workspace-extension-COrC0dYi.js.map +1 -0
  296. package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
  297. package/package.json +7 -10
  298. package/dist/EventQueueFactory-PP534MBQ.js +0 -8
  299. package/dist/EventQueueFactory-PP534MBQ.js.map +0 -1
  300. package/dist/chunk-4XIBXZ6J.js +0 -276
  301. package/dist/chunk-4XIBXZ6J.js.map +0 -1
  302. package/dist/chunk-554Z4C2K.js +0 -1006
  303. package/dist/chunk-554Z4C2K.js.map +0 -1
  304. package/dist/chunk-5CAFHK2Z.js +0 -107
  305. package/dist/chunk-5CAFHK2Z.js.map +0 -1
  306. package/dist/chunk-63ZXJ42X.js +0 -451
  307. package/dist/chunk-63ZXJ42X.js.map +0 -1
  308. package/dist/chunk-6XEXJATV.js +0 -304
  309. package/dist/chunk-6XEXJATV.js.map +0 -1
  310. package/dist/chunk-726AR6Q7.js +0 -1532
  311. package/dist/chunk-726AR6Q7.js.map +0 -1
  312. package/dist/chunk-7EISSMFP.js +0 -617
  313. package/dist/chunk-7EISSMFP.js.map +0 -1
  314. package/dist/chunk-A5F6Z5UE.js +0 -21
  315. package/dist/chunk-A5F6Z5UE.js.map +0 -1
  316. package/dist/chunk-A6DE32ZS.js +0 -1507
  317. package/dist/chunk-A6DE32ZS.js.map +0 -1
  318. package/dist/chunk-BJQOGOVW.js +0 -602
  319. package/dist/chunk-BJQOGOVW.js.map +0 -1
  320. package/dist/chunk-CFXWH2IS.js +0 -52
  321. package/dist/chunk-CFXWH2IS.js.map +0 -1
  322. package/dist/chunk-DIOS6L7M.js +0 -690
  323. package/dist/chunk-DIOS6L7M.js.map +0 -1
  324. package/dist/chunk-DJNHR37J.js +0 -1185
  325. package/dist/chunk-DJNHR37J.js.map +0 -1
  326. package/dist/chunk-DRWH5XCJ.js +0 -876
  327. package/dist/chunk-DRWH5XCJ.js.map +0 -1
  328. package/dist/chunk-E4QNLVY4.js +0 -909
  329. package/dist/chunk-E4QNLVY4.js.map +0 -1
  330. package/dist/chunk-E6OAFS7A.js +0 -1346
  331. package/dist/chunk-E6OAFS7A.js.map +0 -1
  332. package/dist/chunk-EBDHIL7V.js +0 -774
  333. package/dist/chunk-EBDHIL7V.js.map +0 -1
  334. package/dist/chunk-ELU7VL3E.js +0 -245
  335. package/dist/chunk-ELU7VL3E.js.map +0 -1
  336. package/dist/chunk-FZRODKIN.js +0 -31
  337. package/dist/chunk-FZRODKIN.js.map +0 -1
  338. package/dist/chunk-GCIB76AJ.js +0 -882
  339. package/dist/chunk-GCIB76AJ.js.map +0 -1
  340. package/dist/chunk-HC6MPUIH.js +0 -1571
  341. package/dist/chunk-HC6MPUIH.js.map +0 -1
  342. package/dist/chunk-I3KOWRT3.js +0 -89
  343. package/dist/chunk-I3KOWRT3.js.map +0 -1
  344. package/dist/chunk-ID3WR4JS.js +0 -509
  345. package/dist/chunk-ID3WR4JS.js.map +0 -1
  346. package/dist/chunk-JVMAQOA3.js +0 -521
  347. package/dist/chunk-JVMAQOA3.js.map +0 -1
  348. package/dist/chunk-K56L7NUR.js +0 -1444
  349. package/dist/chunk-K56L7NUR.js.map +0 -1
  350. package/dist/chunk-KH4TRQCO.js +0 -1063
  351. package/dist/chunk-KH4TRQCO.js.map +0 -1
  352. package/dist/chunk-KJOSPVB2.js +0 -57
  353. package/dist/chunk-KJOSPVB2.js.map +0 -1
  354. package/dist/chunk-KO2ZXZ7W.js +0 -61
  355. package/dist/chunk-KO2ZXZ7W.js.map +0 -1
  356. package/dist/chunk-KS2HQCJR.js +0 -56
  357. package/dist/chunk-KS2HQCJR.js.map +0 -1
  358. package/dist/chunk-LA5KPWZ2.js +0 -413
  359. package/dist/chunk-LA5KPWZ2.js.map +0 -1
  360. package/dist/chunk-MESLAC5W.js +0 -574
  361. package/dist/chunk-MESLAC5W.js.map +0 -1
  362. package/dist/chunk-MWPYA2HD.js +0 -94
  363. package/dist/chunk-MWPYA2HD.js.map +0 -1
  364. package/dist/chunk-NUB5GQTU.js +0 -270
  365. package/dist/chunk-NUB5GQTU.js.map +0 -1
  366. package/dist/chunk-O2JMZHNH.js +0 -1908
  367. package/dist/chunk-O2JMZHNH.js.map +0 -1
  368. package/dist/chunk-OBBCR6WY.js +0 -277
  369. package/dist/chunk-OBBCR6WY.js.map +0 -1
  370. package/dist/chunk-OBZQ4AJC.js +0 -272
  371. package/dist/chunk-OBZQ4AJC.js.map +0 -1
  372. package/dist/chunk-OXNCBE7P.js +0 -971
  373. package/dist/chunk-OXNCBE7P.js.map +0 -1
  374. package/dist/chunk-PBZFAAOM.js +0 -941
  375. package/dist/chunk-PYD44IHJ.js +0 -728
  376. package/dist/chunk-PYD44IHJ.js.map +0 -1
  377. package/dist/chunk-QVPIACWD.js +0 -679
  378. package/dist/chunk-QVPIACWD.js.map +0 -1
  379. package/dist/chunk-QWNNFE4P.js +0 -41
  380. package/dist/chunk-QWNNFE4P.js.map +0 -1
  381. package/dist/chunk-RU266375.js +0 -327
  382. package/dist/chunk-RU266375.js.map +0 -1
  383. package/dist/chunk-RYTSVGGA.js +0 -1624
  384. package/dist/chunk-RYTSVGGA.js.map +0 -1
  385. package/dist/chunk-RZOFS2BQ.js +0 -225
  386. package/dist/chunk-RZOFS2BQ.js.map +0 -1
  387. package/dist/chunk-SBS4S2PJ.js +0 -100
  388. package/dist/chunk-SBS4S2PJ.js.map +0 -1
  389. package/dist/chunk-SPRG6G6G.js +0 -530
  390. package/dist/chunk-SPRG6G6G.js.map +0 -1
  391. package/dist/chunk-STWFX5E2.js +0 -233
  392. package/dist/chunk-STWFX5E2.js.map +0 -1
  393. package/dist/chunk-UNASM5VJ.js +0 -419
  394. package/dist/chunk-UNASM5VJ.js.map +0 -1
  395. package/dist/chunk-VAT66FJA.js +0 -245
  396. package/dist/chunk-VAT66FJA.js.map +0 -1
  397. package/dist/chunk-VFCMR5GX.js +0 -49
  398. package/dist/chunk-VFCMR5GX.js.map +0 -1
  399. package/dist/chunk-VGAHZKNJ.js +0 -66
  400. package/dist/chunk-VGAHZKNJ.js.map +0 -1
  401. package/dist/chunk-VTJTAAXC.js +0 -627
  402. package/dist/chunk-VTJTAAXC.js.map +0 -1
  403. package/dist/chunk-VXVLKRU6.js +0 -758
  404. package/dist/chunk-VXVLKRU6.js.map +0 -1
  405. package/dist/chunk-WWUU5ETI.js +0 -163
  406. package/dist/chunk-WWUU5ETI.js.map +0 -1
  407. package/dist/chunk-XE4OXN2W.js +0 -10
  408. package/dist/chunk-XE4OXN2W.js.map +0 -1
  409. package/dist/chunk-XOJORS75.js +0 -1853
  410. package/dist/chunk-XOJORS75.js.map +0 -1
  411. package/dist/chunk-YMZEUTD2.js +0 -110
  412. package/dist/chunk-YMZEUTD2.js.map +0 -1
  413. package/dist/chunk-ZZK3WEDI.js +0 -181
  414. package/dist/chunk-ZZK3WEDI.js.map +0 -1
  415. package/dist/client-CCXpAZ2r.d.ts +0 -89
  416. package/dist/client-DSI_760t.d.ts +0 -36
  417. package/dist/client-JU6T3UPB.js +0 -11
  418. package/dist/client-JU6T3UPB.js.map +0 -1
  419. package/dist/dist-2X4Q7PJA.js +0 -1491
  420. package/dist/dist-2X4Q7PJA.js.map +0 -1
  421. package/dist/env-4UWSUS64.js +0 -4
  422. package/dist/env-4UWSUS64.js.map +0 -1
  423. package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
  424. package/dist/graphql-CMHMQjvd.d.ts +0 -23
  425. package/dist/i18n-Qm2AkPC-.d.ts +0 -33
  426. package/dist/index--yvpa6ay.d.ts +0 -83
  427. package/dist/index-4gKQKZ2B.d.ts +0 -71
  428. package/dist/index-5x0XMKXN.d.ts +0 -149
  429. package/dist/index-B70b5mYS.d.ts +0 -33
  430. package/dist/index-B8KrxO4j.d.ts +0 -755
  431. package/dist/index-BOuDKnqD.d.ts +0 -201
  432. package/dist/index-BTMt4OjA.d.ts +0 -201
  433. package/dist/index-BejbszA7.d.ts +0 -39
  434. package/dist/index-BkeOYZye.d.ts +0 -198
  435. package/dist/index-BuAj5nXg.d.ts +0 -83
  436. package/dist/index-BvkVcW8I.d.ts +0 -349
  437. package/dist/index-CWmH_-RZ.d.ts +0 -247
  438. package/dist/index-CbgWNcus.d.ts +0 -258
  439. package/dist/index-CmfPeQza.d.ts +0 -166
  440. package/dist/index-CmpG-zak.d.ts +0 -607
  441. package/dist/index-CoMKgL-p.d.ts +0 -12
  442. package/dist/index-D8HGwglK.d.ts +0 -541
  443. package/dist/index-DCaVm66D.d.ts +0 -1101
  444. package/dist/index-DE2w7E0d.d.ts +0 -83
  445. package/dist/index-DSOpj8DI.d.ts +0 -17
  446. package/dist/index-DW9q22GH.d.ts +0 -75
  447. package/dist/index-DnjJ9CwI.d.ts +0 -347
  448. package/dist/index-DwMJZ8PP.d.ts +0 -317
  449. package/dist/index-PaojfSdd.d.ts +0 -71
  450. package/dist/index-aHtYvc3i.d.ts +0 -284
  451. package/dist/index-e_18DzAg.d.ts +0 -18
  452. package/dist/index-ffmipXSA.d.ts +0 -55
  453. package/dist/index-joONjwLt.d.ts +0 -33
  454. package/dist/index-kssw5ziY.d.ts +0 -250
  455. package/dist/index-lFffh5-G.d.ts +0 -125
  456. package/dist/index-pxYge_6k.d.ts +0 -79
  457. package/dist/layer-Cv9vSwBx.d.ts +0 -70
  458. package/dist/pino-logger-H4HPW5P6.js +0 -5
  459. package/dist/pino-logger-H4HPW5P6.js.map +0 -1
  460. package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
  461. package/dist/sdk-L75WWUP3.js +0 -156
  462. package/dist/sdk-L75WWUP3.js.map +0 -1
  463. package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
  464. package/dist/types-Bo2wkjSP.d.ts +0 -35
  465. package/dist/types-DVpvrAhd.d.ts +0 -71
  466. package/dist/types-DgJ4lDYA.d.ts +0 -108
  467. package/dist/types-USOv09qy.d.ts +0 -327
  468. package/dist/workspace-guard-NXVYYBVJ.js +0 -5
  469. package/dist/workspace-guard-NXVYYBVJ.js.map +0 -1
@@ -1,317 +0,0 @@
1
- import { B as BurdenoffGraphQLClient } from './graphql-CMHMQjvd.js';
2
- import { a as SDKContext } from './index-DE2w7E0d.js';
3
-
4
- declare enum NotificationChannel$1 {
5
- EMAIL = "EMAIL",
6
- SMS = "SMS",
7
- PUSH = "PUSH",
8
- IN_APP = "IN_APP",
9
- WEBHOOK = "WEBHOOK",
10
- WHATSAPP = "WHATSAPP",
11
- TEAMS = "TEAMS",
12
- SLACK = "SLACK",
13
- TELEGRAM = "TELEGRAM",
14
- DISCORD = "DISCORD"
15
- }
16
- declare enum NotificationPriority {
17
- LOW = "LOW",
18
- MEDIUM = "MEDIUM",
19
- HIGH = "HIGH",
20
- URGENT = "URGENT"
21
- }
22
- declare enum NotificationType$1 {
23
- TRANSACTIONAL = "TRANSACTIONAL",
24
- MARKETING = "MARKETING",
25
- SYSTEM = "SYSTEM",
26
- ALERT = "ALERT"
27
- }
28
- interface RecipientInput$1 {
29
- userId?: string;
30
- email?: string;
31
- phoneNumber?: string;
32
- pushToken?: string;
33
- whatsappNumber?: string;
34
- teamsUserId?: string;
35
- slackUserId?: string;
36
- webhookUrl?: string;
37
- name?: string;
38
- locale?: string;
39
- timezone?: string;
40
- }
41
- interface SendNotificationInput {
42
- recipient: RecipientInput$1;
43
- channel: NotificationChannel$1;
44
- type?: NotificationType$1;
45
- priority?: NotificationPriority;
46
- subject?: string;
47
- body: string;
48
- htmlBody?: string;
49
- data?: Record<string, unknown>;
50
- metadata?: Record<string, unknown>;
51
- scheduledFor?: Date;
52
- expiresAt?: Date;
53
- trackOpens?: boolean;
54
- trackClicks?: boolean;
55
- }
56
- interface SendWithTemplateInput {
57
- templateSlug: string;
58
- variables: Record<string, unknown>;
59
- recipient: RecipientInput$1;
60
- priority?: NotificationPriority;
61
- scheduledFor?: Date;
62
- expiresAt?: Date;
63
- trackOpens?: boolean;
64
- trackClicks?: boolean;
65
- channelId?: string;
66
- platform?: NotificationChannel$1;
67
- timezone?: string;
68
- }
69
- interface BatchNotificationInput {
70
- notifications: SendNotificationInput[];
71
- batchSize?: number;
72
- delayBetweenBatches?: number;
73
- priority?: NotificationPriority;
74
- }
75
- interface Notification$1 {
76
- id: string;
77
- userId: string;
78
- channel: NotificationChannel$1;
79
- type: NotificationType$1;
80
- priority: NotificationPriority;
81
- status: string;
82
- deliveryStatus?: string;
83
- title: string;
84
- message: string;
85
- htmlMessage?: string;
86
- subject?: string;
87
- recipientEmail?: string;
88
- recipientPhone?: string;
89
- trackOpens: boolean;
90
- trackClicks: boolean;
91
- openedAt?: string;
92
- clickedAt?: string;
93
- sentAt?: string;
94
- deliveredAt?: string;
95
- createdAt: string;
96
- updatedAt: string;
97
- }
98
- interface NotificationTemplate {
99
- id: string;
100
- name: string;
101
- slug: string;
102
- description?: string;
103
- channel: NotificationChannel$1;
104
- type: NotificationType$1;
105
- locale: string;
106
- subject?: string;
107
- bodyTemplate: string;
108
- htmlTemplate?: string;
109
- variables: Array<{
110
- name: string;
111
- type: string;
112
- required: boolean;
113
- defaultValue?: unknown;
114
- description?: string;
115
- example?: unknown;
116
- }>;
117
- enabled: boolean;
118
- version: number;
119
- createdAt: string;
120
- updatedAt: string;
121
- }
122
- interface NotificationStats {
123
- total: number;
124
- pending: number;
125
- queued?: number;
126
- processing?: number;
127
- triggered: number;
128
- scheduled: number;
129
- cancelled: number;
130
- sent: number;
131
- delivered: number;
132
- failed: number;
133
- byChannel: Record<string, number>;
134
- byType: Record<string, number>;
135
- }
136
- declare class TenantNotificationsModule {
137
- private client;
138
- private context;
139
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
140
- send(input: SendNotificationInput, context?: SDKContext): Promise<string>;
141
- private createNotificationInput;
142
- sendWithTemplate(input: SendWithTemplateInput, context?: SDKContext): Promise<string>;
143
- sendBatch(input: BatchNotificationInput, context?: SDKContext): Promise<{
144
- totalRequested: number;
145
- totalQueued: number;
146
- totalFailed: number;
147
- batchId: string;
148
- }>;
149
- getNotification(id: string): Promise<Notification$1 | null>;
150
- getNotifications(filter?: {
151
- userId?: string;
152
- channel?: NotificationChannel$1;
153
- type?: NotificationType$1;
154
- status?: string;
155
- priority?: NotificationPriority;
156
- startDate?: Date;
157
- endDate?: Date;
158
- limit?: number;
159
- offset?: number;
160
- }): Promise<Notification$1[]>;
161
- getTemplate(slug: string, locale?: string): Promise<NotificationTemplate | null>;
162
- getTemplates(filter?: {
163
- channel?: NotificationChannel$1;
164
- type?: NotificationType$1;
165
- enabled?: boolean;
166
- }): Promise<NotificationTemplate[]>;
167
- getStats(filter?: {
168
- userId?: string;
169
- startDate?: Date;
170
- endDate?: Date;
171
- }): Promise<NotificationStats>;
172
- markAsRead(notificationIds: string[]): Promise<boolean>;
173
- markAllAsRead(): Promise<boolean>;
174
- deleteNotifications(notificationIds: string[]): Promise<boolean>;
175
- deleteAllReadNotifications(): Promise<boolean>;
176
- private validateSendInput;
177
- private validateDates;
178
- }
179
-
180
- type tenantNotifications_BatchNotificationInput = BatchNotificationInput;
181
- type tenantNotifications_NotificationPriority = NotificationPriority;
182
- declare const tenantNotifications_NotificationPriority: typeof NotificationPriority;
183
- type tenantNotifications_NotificationStats = NotificationStats;
184
- type tenantNotifications_NotificationTemplate = NotificationTemplate;
185
- type tenantNotifications_SendNotificationInput = SendNotificationInput;
186
- type tenantNotifications_SendWithTemplateInput = SendWithTemplateInput;
187
- type tenantNotifications_TenantNotificationsModule = TenantNotificationsModule;
188
- declare const tenantNotifications_TenantNotificationsModule: typeof TenantNotificationsModule;
189
- declare namespace tenantNotifications {
190
- export { type tenantNotifications_BatchNotificationInput as BatchNotificationInput, type Notification$1 as Notification, NotificationChannel$1 as NotificationChannel, tenantNotifications_NotificationPriority as NotificationPriority, type tenantNotifications_NotificationStats as NotificationStats, type tenantNotifications_NotificationTemplate as NotificationTemplate, NotificationType$1 as NotificationType, type RecipientInput$1 as RecipientInput, type tenantNotifications_SendNotificationInput as SendNotificationInput, type tenantNotifications_SendWithTemplateInput as SendWithTemplateInput, tenantNotifications_TenantNotificationsModule as TenantNotificationsModule };
191
- }
192
-
193
- declare enum NotificationType {
194
- INFO = "info",
195
- SUCCESS = "success",
196
- WARNING = "warning",
197
- ERROR = "error"
198
- }
199
- declare enum NotificationChannel {
200
- EMAIL = "EMAIL",
201
- SMS = "SMS",
202
- WHATSAPP = "WHATSAPP",
203
- PUSH = "PUSH",
204
- SLACK = "SLACK",
205
- TEAMS = "TEAMS",
206
- WEBHOOK = "WEBHOOK"
207
- }
208
-
209
- interface SendNotificationOptions {
210
- title: string;
211
- message: string;
212
- type?: NotificationType;
213
- userIds: string[];
214
- redirectUrl?: string;
215
- appName?: string;
216
- email?: boolean;
217
- sms?: boolean;
218
- metadata?: Record<string, unknown>;
219
- data?: Record<string, unknown>;
220
- expiresAt?: Date;
221
- }
222
- interface NotificationResponse {
223
- successCount: number;
224
- failureCount: number;
225
- errors: string[];
226
- notificationIds?: string[];
227
- }
228
- interface GetNotificationsOptions {
229
- userId: string;
230
- status?: 'unread' | 'read' | 'all';
231
- type?: NotificationType;
232
- appName?: string;
233
- search?: string;
234
- limit?: number;
235
- offset?: number;
236
- }
237
- interface Notification {
238
- id: string;
239
- userId: string;
240
- title: string;
241
- message: string;
242
- type: NotificationType;
243
- status: 'unread' | 'read';
244
- redirectUrl?: string;
245
- appName?: string;
246
- createdAt: string;
247
- updatedAt: string;
248
- }
249
- interface RecipientInput {
250
- email?: string;
251
- locale?: string;
252
- name?: string;
253
- phoneNumber?: string;
254
- pushToken?: string;
255
- slackUserId?: string;
256
- teamsUserId?: string;
257
- timezone?: string;
258
- userId?: string;
259
- webhookUrl?: string;
260
- whatsappNumber?: string;
261
- }
262
- interface SendChannelNotificationOptions {
263
- platform: NotificationChannel;
264
- recipient: RecipientInput;
265
- recipients?: RecipientInput[];
266
- subject?: string;
267
- body: string;
268
- htmlBody?: string;
269
- type?: NotificationType;
270
- appName?: string;
271
- redirectUrl?: string;
272
- includeInApp?: boolean;
273
- userIds?: string[];
274
- metadata?: Record<string, unknown>;
275
- trackOpens?: boolean;
276
- trackClicks?: boolean;
277
- expiresAt?: Date;
278
- channelId?: string;
279
- }
280
- interface SendTemplateNotificationOptions {
281
- platform: NotificationChannel;
282
- templateSlug: string;
283
- variables: Record<string, unknown>;
284
- recipient?: RecipientInput;
285
- recipients?: RecipientInput[];
286
- includeInApp?: boolean;
287
- userIds?: string[];
288
- appName?: string;
289
- trackOpens?: boolean;
290
- trackClicks?: boolean;
291
- expiresAt?: Date;
292
- scheduledFor?: Date;
293
- timezone?: string;
294
- channelId?: string;
295
- }
296
- declare class NotificationsModule {
297
- private client;
298
- private context;
299
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
300
- send(options: SendNotificationOptions): Promise<NotificationResponse>;
301
- sendToUser(userId: string, title: string, message: string, options?: Omit<SendNotificationOptions, 'userIds' | 'title' | 'message'>): Promise<NotificationResponse>;
302
- getNotifications(options: GetNotificationsOptions): Promise<{
303
- notifications: Notification[];
304
- total: number;
305
- unreadCount: number;
306
- }>;
307
- markAsRead(notificationId: string): Promise<boolean>;
308
- markMultipleAsRead(notificationIds: string[]): Promise<number>;
309
- markAllAsRead(): Promise<number>;
310
- deleteNotification(notificationId: string): Promise<boolean>;
311
- deleteMultiple(notificationIds: string[]): Promise<number>;
312
- getUnreadCount(userId: string): Promise<number>;
313
- sendChannelNotification(options: SendChannelNotificationOptions): Promise<NotificationResponse>;
314
- sendTemplateNotification(options: SendTemplateNotificationOptions): Promise<NotificationResponse>;
315
- }
316
-
317
- export { type BatchNotificationInput as B, type GetNotificationsOptions as G, NotificationType as N, type RecipientInput as R, type SendChannelNotificationOptions as S, TenantNotificationsModule as T, NotificationsModule as a, type Notification as b, NotificationChannel as c, NotificationPriority as d, type NotificationResponse as e, type SendNotificationOptions as f, type SendTemplateNotificationOptions as g, NotificationChannel$1 as h, NotificationType$1 as i, type SendNotificationInput as j, type SendWithTemplateInput as k, tenantNotifications as t };
@@ -1,71 +0,0 @@
1
- declare function isValidEmail(email: string): boolean;
2
- declare function isValidUrl(url: string): boolean;
3
- declare function isValidRegexPattern(pattern: string): boolean;
4
- declare function compileValidatedPattern(pattern: string): RegExp | null;
5
- declare function isValidPhone(phone: string): boolean;
6
- declare function isValidUUID(uuid: string): boolean;
7
- declare function isValidIPv4(ip: string): boolean;
8
- declare function isValidSlug(slug: string): boolean;
9
- declare function isValidHexColor(color: string): boolean;
10
- declare function isValidBase64(str: string): boolean;
11
- declare function isValidJSON(str: string): boolean;
12
- declare function isNumberInRange(value: number, min: number | null, max: number | null): boolean;
13
- declare function isStringLengthValid(value: string, min: number | null, max: number | null): boolean;
14
-
15
- declare function retry<T>(fn: () => Promise<T>, options: {
16
- maxAttempts: number;
17
- initialDelay: number;
18
- maxDelay: number;
19
- backoffMultiplier: number;
20
- }): Promise<T>;
21
- declare function sleep(ms: number): Promise<void>;
22
- declare function deepMerge<T extends Record<string, unknown>>(target: T, source: Partial<T>): T;
23
- declare function generateUUID(): string;
24
- declare function sanitizeForLog(data: Record<string, unknown>): Record<string, unknown>;
25
- declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delay: number): (...args: Parameters<T>) => void;
26
- declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, delay: number): (...args: Parameters<T>) => void;
27
- declare function parseJWT(token: string): Record<string, unknown> | null;
28
- declare function isTokenExpired(token: string): boolean;
29
- declare function formatBytes(bytes: number, decimals?: number): string;
30
-
31
- declare function truncate(str: string, maxLength: number): string;
32
- declare function chunk<T>(array: T[], size: number): T[][];
33
- declare function unique<T>(array: T[]): T[];
34
- declare function groupBy<T>(array: T[], key: keyof T): Record<string, T[]>;
35
- declare function pick<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
36
- declare function omit<T extends Record<string, unknown>, K extends keyof T>(obj: T, keys: K[]): Omit<T, K>;
37
-
38
- declare const index_chunk: typeof chunk;
39
- declare const index_compileValidatedPattern: typeof compileValidatedPattern;
40
- declare const index_debounce: typeof debounce;
41
- declare const index_deepMerge: typeof deepMerge;
42
- declare const index_formatBytes: typeof formatBytes;
43
- declare const index_generateUUID: typeof generateUUID;
44
- declare const index_groupBy: typeof groupBy;
45
- declare const index_isNumberInRange: typeof isNumberInRange;
46
- declare const index_isStringLengthValid: typeof isStringLengthValid;
47
- declare const index_isTokenExpired: typeof isTokenExpired;
48
- declare const index_isValidBase64: typeof isValidBase64;
49
- declare const index_isValidEmail: typeof isValidEmail;
50
- declare const index_isValidHexColor: typeof isValidHexColor;
51
- declare const index_isValidIPv4: typeof isValidIPv4;
52
- declare const index_isValidJSON: typeof isValidJSON;
53
- declare const index_isValidPhone: typeof isValidPhone;
54
- declare const index_isValidRegexPattern: typeof isValidRegexPattern;
55
- declare const index_isValidSlug: typeof isValidSlug;
56
- declare const index_isValidUUID: typeof isValidUUID;
57
- declare const index_isValidUrl: typeof isValidUrl;
58
- declare const index_omit: typeof omit;
59
- declare const index_parseJWT: typeof parseJWT;
60
- declare const index_pick: typeof pick;
61
- declare const index_retry: typeof retry;
62
- declare const index_sanitizeForLog: typeof sanitizeForLog;
63
- declare const index_sleep: typeof sleep;
64
- declare const index_throttle: typeof throttle;
65
- declare const index_truncate: typeof truncate;
66
- declare const index_unique: typeof unique;
67
- declare namespace index {
68
- export { index_chunk as chunk, index_compileValidatedPattern as compileValidatedPattern, index_debounce as debounce, index_deepMerge as deepMerge, index_formatBytes as formatBytes, index_generateUUID as generateUUID, index_groupBy as groupBy, index_isNumberInRange as isNumberInRange, index_isStringLengthValid as isStringLengthValid, index_isTokenExpired as isTokenExpired, index_isValidBase64 as isValidBase64, index_isValidEmail as isValidEmail, index_isValidHexColor as isValidHexColor, index_isValidIPv4 as isValidIPv4, index_isValidJSON as isValidJSON, index_isValidPhone as isValidPhone, index_isValidRegexPattern as isValidRegexPattern, index_isValidSlug as isValidSlug, index_isValidUUID as isValidUUID, index_isValidUrl as isValidUrl, index_omit as omit, index_parseJWT as parseJWT, index_pick as pick, index_retry as retry, index_sanitizeForLog as sanitizeForLog, index_sleep as sleep, index_throttle as throttle, index_truncate as truncate, index_unique as unique };
69
- }
70
-
71
- export { sleep as A, throttle as B, truncate as C, unique as D, compileValidatedPattern as a, deepMerge as b, chunk as c, debounce as d, groupBy as e, formatBytes as f, generateUUID as g, isNumberInRange as h, index as i, isStringLengthValid as j, isTokenExpired as k, isValidBase64 as l, isValidEmail as m, isValidHexColor as n, isValidIPv4 as o, isValidJSON as p, isValidPhone as q, isValidRegexPattern as r, isValidSlug as s, isValidUUID as t, isValidUrl as u, omit as v, parseJWT as w, pick as x, retry as y, sanitizeForLog as z };
@@ -1,284 +0,0 @@
1
- import { a as GraphQLRequestOptions, b as GraphQLResponse } from './types-DgJ4lDYA.js';
2
-
3
- declare const TAG_ACTOR_TYPES: readonly ["user", "app", "service", "super_admin"];
4
- type TagActorType = (typeof TAG_ACTOR_TYPES)[number];
5
- interface TagActor {
6
- actorId: string;
7
- workspaceId: string;
8
- actorType?: TagActorType;
9
- }
10
- declare const TAG_ASSIGNMENT_SOURCES: readonly ["AUTOMATIC", "COMPUTED", "IMPORTED", "INHERITED", "MANUAL", "MIGRATED"];
11
- type TagAssignmentSource = (typeof TAG_ASSIGNMENT_SOURCES)[number];
12
- interface RawTagAssignment {
13
- id: string;
14
- tagId: string;
15
- entityType: string;
16
- entityId: string;
17
- source: string;
18
- assignedById?: string | null;
19
- createdAt?: string | null;
20
- validFrom?: string | null;
21
- validTo?: string | null;
22
- metadata?: unknown;
23
- tag?: {
24
- id: string;
25
- key?: string | null;
26
- label?: string | null;
27
- color?: string | null;
28
- } | null;
29
- }
30
- interface EntityTagInfo {
31
- id: string;
32
- key: string | null;
33
- label: string | null;
34
- color: string | null;
35
- }
36
- interface EntityTagAssignment {
37
- id: string;
38
- tagId: string;
39
- tag: {
40
- id: string;
41
- } | null;
42
- tagInfo: EntityTagInfo | null;
43
- entityType: string;
44
- entityId: string;
45
- source: string;
46
- assignedBy: string | null;
47
- assignedAt: Date | null;
48
- validFrom: Date | null;
49
- validTo: Date | null;
50
- metadata: unknown;
51
- }
52
- interface AvailableTag {
53
- id: string;
54
- key: string;
55
- label: string;
56
- color: string | null;
57
- }
58
- interface TagVocabularyRef {
59
- id: string;
60
- key: string;
61
- name: string;
62
- }
63
- interface TagVocabularyConfig {
64
- key: string;
65
- name: string;
66
- description?: string;
67
- id?: string;
68
- }
69
- interface TagEntityOptions {
70
- tagId: string;
71
- source?: string | null;
72
- validFrom?: Date | null;
73
- validTo?: Date | null;
74
- metadata?: Record<string, unknown> | null;
75
- }
76
- interface CreateTagOptions {
77
- label: string;
78
- color?: string | null;
79
- vocabularyId?: string | null;
80
- }
81
- interface FindEntitiesByTagsOptions {
82
- matchAll?: boolean;
83
- limit?: number | null;
84
- cursor?: string | null;
85
- }
86
- interface TaggedEntityPage {
87
- entityIds: string[];
88
- total: number;
89
- hasMore: boolean;
90
- nextCursor: string | null;
91
- }
92
- interface TagsGatewayClient {
93
- internalQuery<T = unknown>(options: GraphQLRequestOptions): Promise<GraphQLResponse<T>>;
94
- }
95
-
96
- type EntityTagsErrorCode = 'INVALID_ENTITY_TYPE' | 'INVALID_SOURCE' | 'INVALID_INPUT' | 'MISSING_CONTEXT' | 'UPSTREAM_ERROR' | 'CONFIGURATION_ERROR';
97
- declare const ENTITY_TAGS_GRAPHQL_CODES: Record<EntityTagsErrorCode, string>;
98
- declare class EntityTagsError extends Error {
99
- readonly code: EntityTagsErrorCode;
100
- readonly details: Record<string, unknown>;
101
- constructor(code: EntityTagsErrorCode, message: string, details?: Record<string, unknown>);
102
- get graphqlCode(): string;
103
- }
104
- declare function isEntityTagsError(error: unknown): error is EntityTagsError;
105
-
106
- interface EntityTagsFieldNames {
107
- entityTags: string;
108
- searchTags: string;
109
- availableTags: string;
110
- entitiesByTags: string;
111
- tagEntity: string;
112
- untagEntity: string;
113
- replaceEntityTags: string;
114
- createTag: string;
115
- }
116
- interface EntityTagsTypeNames {
117
- getEntityTagsInput: string;
118
- tagEntityInput: string;
119
- untagEntityInput: string;
120
- replaceEntityTagsInput: string;
121
- createTagInput: string;
122
- entitiesByTagsInput: string;
123
- tagInfo: string;
124
- tagAssignment: string;
125
- availableTag: string;
126
- taggedEntityPage: string;
127
- }
128
- declare function assertTagPrefix(prefix: string): void;
129
- declare function entityTagsFieldNames(prefix: string): EntityTagsFieldNames;
130
- declare function entityTagsTypeNames(prefix: string, overrides?: Partial<EntityTagsTypeNames>): EntityTagsTypeNames;
131
-
132
- interface TagsGatewayAdapterOptions {
133
- entityTypes: readonly string[];
134
- vocabulary: TagVocabularyConfig;
135
- defaultSource?: TagAssignmentSource;
136
- client?: TagsGatewayClient | (() => TagsGatewayClient | Promise<TagsGatewayClient>);
137
- serviceName?: string;
138
- requestTimeoutMs?: number;
139
- }
140
- declare function slugifyTagKey(label: string): string;
141
- declare function mapTagAssignment(raw: RawTagAssignment): EntityTagAssignment;
142
- declare class TagsGatewayAdapter {
143
- readonly entityTypes: readonly string[];
144
- readonly vocabulary: Readonly<TagVocabularyConfig>;
145
- readonly defaultSource: TagAssignmentSource;
146
- private readonly entityTypeSet;
147
- private readonly requestTimeoutMs;
148
- private readonly clientOption;
149
- private readonly serviceName;
150
- private clientPromise;
151
- constructor(options: TagsGatewayAdapterOptions);
152
- isValidEntityType(entityType: string): boolean;
153
- assertEntityType(entityType: string): void;
154
- resolveSource(source: string | null | undefined): TagAssignmentSource;
155
- getEntityTags(entityType: string, entityId: string, actor: TagActor): Promise<EntityTagAssignment[]>;
156
- tagEntity(entityType: string, entityId: string, options: TagEntityOptions, actor: TagActor): Promise<EntityTagAssignment>;
157
- untagEntity(entityType: string, entityId: string, tagId: string, actor: TagActor): Promise<boolean>;
158
- replaceEntityTags(entityType: string, entityId: string, tagIds: readonly string[], actor: TagActor): Promise<EntityTagAssignment[]>;
159
- findEntityIdsByTags(entityType: string, tagIds: readonly string[], actor: TagActor, options?: FindEntitiesByTagsOptions): Promise<TaggedEntityPage>;
160
- searchTags(query: string, actor: TagActor, limit?: number | null): Promise<AvailableTag[]>;
161
- getAvailableTags(actor: TagActor, limit?: number | null): Promise<AvailableTag[]>;
162
- createTag(options: CreateTagOptions, actor: TagActor): Promise<AvailableTag>;
163
- ensureWorkspaceVocabulary(actor: TagActor, override?: Partial<TagVocabularyConfig>): Promise<string>;
164
- getVocabularyById(id: string, actor: TagActor): Promise<TagVocabularyRef | null>;
165
- getVocabularyByKey(key: string, actor: TagActor): Promise<TagVocabularyRef | null>;
166
- createVocabulary(vocabulary: TagVocabularyConfig, actor: TagActor): Promise<TagVocabularyRef | null>;
167
- private requireActor;
168
- private getClient;
169
- private request;
170
- }
171
-
172
- interface EntityTagsRbacOptions {
173
- resource: string;
174
- scopeType?: string;
175
- readAction?: string;
176
- updateAction?: string;
177
- createAction?: string;
178
- }
179
- interface EntityTagsSdlOptions {
180
- prefix: string;
181
- productLabel?: string;
182
- rbac: EntityTagsRbacOptions;
183
- extendTypes?: readonly string[];
184
- typeNames?: Partial<EntityTagsTypeNames>;
185
- externalTypes?: readonly (keyof EntityTagsTypeNames)[];
186
- includeEntitiesByTags?: boolean;
187
- includeUniversalTagStub?: boolean;
188
- }
189
- declare const UNIVERSAL_TAG_STUB_SDL = "\n \"UniversalTag is owned by wspace-tags-svc; only its key is resolvable here.\"\n type UniversalTag @key(fields: \"id\", resolvable: false) {\n id: ID!\n }\n";
190
- declare function buildEntityTagsSdl(options: EntityTagsSdlOptions): string;
191
-
192
- interface EntityTagBinding {
193
- entityType: string;
194
- entityId?: (parent: Record<string, unknown>) => string | null | undefined;
195
- }
196
- type EntityTagOperation = 'tag' | 'untag' | 'replace' | 'createTag';
197
- interface EntityTagMutationEvent {
198
- operation: EntityTagOperation;
199
- fieldName: string;
200
- actor: TagActor;
201
- entityType?: string;
202
- entityId?: string;
203
- tagId?: string;
204
- tagIds?: string[];
205
- source?: string;
206
- tag?: AvailableTag;
207
- vocabularyId?: string;
208
- }
209
- interface EntityTagAccessCheck {
210
- entityType: string;
211
- entityId: string;
212
- access: 'read' | 'write';
213
- actor: TagActor;
214
- }
215
- interface CreateEntityTagResolversOptions<TContext> {
216
- prefix: string;
217
- adapter: TagsGatewayAdapter;
218
- entities?: Readonly<Record<string, EntityTagBinding>>;
219
- getActor?: (context: TContext) => TagActor;
220
- authorizeEntity?: (check: EntityTagAccessCheck, context: TContext) => void | Promise<void>;
221
- onMutation?: (event: EntityTagMutationEvent, context: TContext) => void | Promise<void>;
222
- mapError?: (error: EntityTagsError, context: TContext) => Error;
223
- includeEntitiesByTags?: boolean;
224
- }
225
- type Resolver<TArgs, TResult, TContext> = (parent: unknown, args: TArgs, context: TContext) => Promise<TResult>;
226
- type TagAssignmentsResolver<TContext> = (parent: Record<string, unknown>, args: unknown, context: TContext) => Promise<EntityTagAssignment[]>;
227
- interface EntityTagResolvers<TContext> {
228
- Query: Record<string, Resolver<never, unknown, TContext>>;
229
- Mutation: Record<string, Resolver<never, unknown, TContext>>;
230
- types: Record<string, {
231
- tagAssignments: TagAssignmentsResolver<TContext>;
232
- }>;
233
- }
234
- declare function defaultTagActor(context: unknown): TagActor;
235
- declare function createEntityTagResolvers<TContext>(options: CreateEntityTagResolversOptions<TContext>): EntityTagResolvers<TContext>;
236
-
237
- type index_AvailableTag = AvailableTag;
238
- type index_CreateEntityTagResolversOptions<TContext> = CreateEntityTagResolversOptions<TContext>;
239
- type index_CreateTagOptions = CreateTagOptions;
240
- declare const index_ENTITY_TAGS_GRAPHQL_CODES: typeof ENTITY_TAGS_GRAPHQL_CODES;
241
- type index_EntityTagAccessCheck = EntityTagAccessCheck;
242
- type index_EntityTagAssignment = EntityTagAssignment;
243
- type index_EntityTagBinding = EntityTagBinding;
244
- type index_EntityTagInfo = EntityTagInfo;
245
- type index_EntityTagMutationEvent = EntityTagMutationEvent;
246
- type index_EntityTagOperation = EntityTagOperation;
247
- type index_EntityTagResolvers<TContext> = EntityTagResolvers<TContext>;
248
- type index_EntityTagsError = EntityTagsError;
249
- declare const index_EntityTagsError: typeof EntityTagsError;
250
- type index_EntityTagsErrorCode = EntityTagsErrorCode;
251
- type index_EntityTagsFieldNames = EntityTagsFieldNames;
252
- type index_EntityTagsRbacOptions = EntityTagsRbacOptions;
253
- type index_EntityTagsSdlOptions = EntityTagsSdlOptions;
254
- type index_EntityTagsTypeNames = EntityTagsTypeNames;
255
- type index_FindEntitiesByTagsOptions = FindEntitiesByTagsOptions;
256
- type index_RawTagAssignment = RawTagAssignment;
257
- declare const index_TAG_ACTOR_TYPES: typeof TAG_ACTOR_TYPES;
258
- declare const index_TAG_ASSIGNMENT_SOURCES: typeof TAG_ASSIGNMENT_SOURCES;
259
- type index_TagActor = TagActor;
260
- type index_TagActorType = TagActorType;
261
- type index_TagAssignmentSource = TagAssignmentSource;
262
- type index_TagEntityOptions = TagEntityOptions;
263
- type index_TagVocabularyConfig = TagVocabularyConfig;
264
- type index_TagVocabularyRef = TagVocabularyRef;
265
- type index_TaggedEntityPage = TaggedEntityPage;
266
- type index_TagsGatewayAdapter = TagsGatewayAdapter;
267
- declare const index_TagsGatewayAdapter: typeof TagsGatewayAdapter;
268
- type index_TagsGatewayAdapterOptions = TagsGatewayAdapterOptions;
269
- type index_TagsGatewayClient = TagsGatewayClient;
270
- declare const index_UNIVERSAL_TAG_STUB_SDL: typeof UNIVERSAL_TAG_STUB_SDL;
271
- declare const index_assertTagPrefix: typeof assertTagPrefix;
272
- declare const index_buildEntityTagsSdl: typeof buildEntityTagsSdl;
273
- declare const index_createEntityTagResolvers: typeof createEntityTagResolvers;
274
- declare const index_defaultTagActor: typeof defaultTagActor;
275
- declare const index_entityTagsFieldNames: typeof entityTagsFieldNames;
276
- declare const index_entityTagsTypeNames: typeof entityTagsTypeNames;
277
- declare const index_isEntityTagsError: typeof isEntityTagsError;
278
- declare const index_mapTagAssignment: typeof mapTagAssignment;
279
- declare const index_slugifyTagKey: typeof slugifyTagKey;
280
- declare namespace index {
281
- export { type index_AvailableTag as AvailableTag, type index_CreateEntityTagResolversOptions as CreateEntityTagResolversOptions, type index_CreateTagOptions as CreateTagOptions, index_ENTITY_TAGS_GRAPHQL_CODES as ENTITY_TAGS_GRAPHQL_CODES, type index_EntityTagAccessCheck as EntityTagAccessCheck, type index_EntityTagAssignment as EntityTagAssignment, type index_EntityTagBinding as EntityTagBinding, type index_EntityTagInfo as EntityTagInfo, type index_EntityTagMutationEvent as EntityTagMutationEvent, type index_EntityTagOperation as EntityTagOperation, type index_EntityTagResolvers as EntityTagResolvers, index_EntityTagsError as EntityTagsError, type index_EntityTagsErrorCode as EntityTagsErrorCode, type index_EntityTagsFieldNames as EntityTagsFieldNames, type index_EntityTagsRbacOptions as EntityTagsRbacOptions, type index_EntityTagsSdlOptions as EntityTagsSdlOptions, type index_EntityTagsTypeNames as EntityTagsTypeNames, type index_FindEntitiesByTagsOptions as FindEntitiesByTagsOptions, type index_RawTagAssignment as RawTagAssignment, index_TAG_ACTOR_TYPES as TAG_ACTOR_TYPES, index_TAG_ASSIGNMENT_SOURCES as TAG_ASSIGNMENT_SOURCES, type index_TagActor as TagActor, type index_TagActorType as TagActorType, type index_TagAssignmentSource as TagAssignmentSource, type index_TagEntityOptions as TagEntityOptions, type index_TagVocabularyConfig as TagVocabularyConfig, type index_TagVocabularyRef as TagVocabularyRef, type index_TaggedEntityPage as TaggedEntityPage, index_TagsGatewayAdapter as TagsGatewayAdapter, type index_TagsGatewayAdapterOptions as TagsGatewayAdapterOptions, type index_TagsGatewayClient as TagsGatewayClient, index_UNIVERSAL_TAG_STUB_SDL as UNIVERSAL_TAG_STUB_SDL, index_assertTagPrefix as assertTagPrefix, index_buildEntityTagsSdl as buildEntityTagsSdl, index_createEntityTagResolvers as createEntityTagResolvers, index_defaultTagActor as defaultTagActor, index_entityTagsFieldNames as entityTagsFieldNames, index_entityTagsTypeNames as entityTagsTypeNames, index_isEntityTagsError as isEntityTagsError, index_mapTagAssignment as mapTagAssignment, index_slugifyTagKey as slugifyTagKey };
282
- }
283
-
284
- export { type AvailableTag as A, assertTagPrefix as B, type CreateEntityTagResolversOptions as C, buildEntityTagsSdl as D, ENTITY_TAGS_GRAPHQL_CODES as E, type FindEntitiesByTagsOptions as F, createEntityTagResolvers as G, defaultTagActor as H, entityTagsFieldNames as I, entityTagsTypeNames as J, isEntityTagsError as K, mapTagAssignment as L, slugifyTagKey as M, type RawTagAssignment as R, TAG_ACTOR_TYPES as T, UNIVERSAL_TAG_STUB_SDL as U, type CreateTagOptions as a, type EntityTagAccessCheck as b, type EntityTagAssignment as c, type EntityTagBinding as d, type EntityTagInfo as e, type EntityTagMutationEvent as f, type EntityTagOperation as g, type EntityTagResolvers as h, index as i, EntityTagsError as j, type EntityTagsErrorCode as k, type EntityTagsFieldNames as l, type EntityTagsRbacOptions as m, type EntityTagsSdlOptions as n, type EntityTagsTypeNames as o, TAG_ASSIGNMENT_SOURCES as p, type TagActor as q, type TagActorType as r, type TagAssignmentSource as s, type TagEntityOptions as t, type TagVocabularyConfig as u, type TagVocabularyRef as v, type TaggedEntityPage as w, TagsGatewayAdapter as x, type TagsGatewayAdapterOptions as y, type TagsGatewayClient as z };