@burdenoff/be-sdk 2026.1110.2 → 2026.1110.4

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 (497) 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/activity/index.d.ts +165 -0
  8. package/dist/activity/index.js +389 -0
  9. package/dist/activity/index.js.map +1 -0
  10. package/dist/ai-credits/index.d.ts +2 -3
  11. package/dist/ai-credits/index.js +3 -4
  12. package/dist/ai-credits/index.js.map +1 -1
  13. package/dist/ai-credits-xxfwGpHS.js +546 -0
  14. package/dist/ai-credits-xxfwGpHS.js.map +1 -0
  15. package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
  16. package/dist/auth/index.d.ts +2 -77
  17. package/dist/auth/index.js +3 -7
  18. package/dist/auth/index.js.map +1 -1
  19. package/dist/auth-C5ctwSLp.js +228 -0
  20. package/dist/auth-C5ctwSLp.js.map +1 -0
  21. package/dist/bootstrap/index.d.ts +74 -0
  22. package/dist/bootstrap/index.js +282 -0
  23. package/dist/bootstrap/index.js.map +1 -0
  24. package/dist/cache/index.d.ts +2 -3
  25. package/dist/cache/index.js +3 -7
  26. package/dist/cache/index.js.map +1 -1
  27. package/dist/cache-CU0uLwcS.js +1837 -0
  28. package/dist/cache-CU0uLwcS.js.map +1 -0
  29. package/dist/captcha/index.d.ts +2 -1
  30. package/dist/captcha/index.js +3 -3
  31. package/dist/captcha/index.js.map +1 -1
  32. package/dist/captcha-BT7yh1YS.js +77 -0
  33. package/dist/captcha-BT7yh1YS.js.map +1 -0
  34. package/dist/client/internal-client.d.ts +4 -7
  35. package/dist/client/internal-client.js +172 -4
  36. package/dist/client/internal-client.js.map +1 -1
  37. package/dist/client-BgAEvDC2.d.ts +86 -0
  38. package/dist/client-sAJTrb4i.js +565 -0
  39. package/dist/client-sAJTrb4i.js.map +1 -0
  40. package/dist/collector-endpoint-iyQYeI50.js +50 -0
  41. package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
  42. package/dist/context/index.d.ts +35 -0
  43. package/dist/context/index.js +283 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/crypto/index.d.ts +2 -1
  46. package/dist/crypto/index.js +3 -3
  47. package/dist/crypto/index.js.map +1 -1
  48. package/dist/crypto-DO9fM0FO.js +145 -0
  49. package/dist/crypto-DO9fM0FO.js.map +1 -0
  50. package/dist/database/index.d.ts +104 -108
  51. package/dist/database/index.js +468 -6
  52. package/dist/database/index.js.map +1 -1
  53. package/dist/dataloader/index.d.ts +2 -1
  54. package/dist/dataloader/index.js +3 -3
  55. package/dist/dataloader/index.js.map +1 -1
  56. package/dist/dataloader-DwpT3YoS.js +294 -0
  57. package/dist/dataloader-DwpT3YoS.js.map +1 -0
  58. package/dist/deployed-environment-p_Tdl3sT.js +38 -0
  59. package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
  60. package/dist/dist-BGKdXVy3.js +1718 -0
  61. package/dist/dist-BGKdXVy3.js.map +1 -0
  62. package/dist/env-DdaoGjIt.js +74 -0
  63. package/dist/env-DdaoGjIt.js.map +1 -0
  64. package/dist/event-queue/index.d.ts +2 -7
  65. package/dist/event-queue/index.js +7 -9
  66. package/dist/event-queue/index.js.map +1 -1
  67. package/dist/event-queue-Cw-YJPY_.js +1384 -0
  68. package/dist/event-queue-Cw-YJPY_.js.map +1 -0
  69. package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
  70. package/dist/explicit-activity-scope-DikJ7NAE.js +57 -0
  71. package/dist/explicit-activity-scope-DikJ7NAE.js.map +1 -0
  72. package/dist/export/index.d.ts +2 -2
  73. package/dist/export/index.js +3 -14
  74. package/dist/export/index.js.map +1 -1
  75. package/dist/export-DJXE3Osa.js +642 -0
  76. package/dist/export-DJXE3Osa.js.map +1 -0
  77. package/dist/feature-flags/index.d.ts +2 -10
  78. package/dist/feature-flags/index.js +3 -6
  79. package/dist/feature-flags/index.js.map +1 -1
  80. package/dist/feature-flags-CP1KRgwD.js +422 -0
  81. package/dist/feature-flags-CP1KRgwD.js.map +1 -0
  82. package/dist/files/index.d.ts +2 -3
  83. package/dist/files/index.js +3 -4
  84. package/dist/files/index.js.map +1 -1
  85. package/dist/files-h5U-D2AF.js +830 -0
  86. package/dist/files-h5U-D2AF.js.map +1 -0
  87. package/dist/gateway/index.d.ts +4 -6
  88. package/dist/gateway/index.js +7 -13
  89. package/dist/gateway/index.js.map +1 -1
  90. package/dist/gateway/security/index.d.ts +2 -2
  91. package/dist/gateway/security/index.js +3 -5
  92. package/dist/gateway/security/index.js.map +1 -1
  93. package/dist/gateway-ByVo-n37.js +50 -0
  94. package/dist/gateway-ByVo-n37.js.map +1 -0
  95. package/dist/graph/index.d.ts +3 -10
  96. package/dist/graph/index.js +4 -13
  97. package/dist/graph/index.js.map +1 -1
  98. package/dist/graph-CR7u4lpl.js +2152 -0
  99. package/dist/graph-CR7u4lpl.js.map +1 -0
  100. package/dist/graph-emitter-CdOXP7Tn.js +621 -0
  101. package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
  102. package/dist/graphql/index.d.ts +3 -2
  103. package/dist/graphql/index.js +4 -6
  104. package/dist/graphql/index.js.map +1 -1
  105. package/dist/graphql/services/index.d.ts +2 -24
  106. package/dist/graphql/services/index.js +3 -4
  107. package/dist/graphql/services/index.js.map +1 -1
  108. package/dist/graphql-CUDyhibV.d.ts +21 -0
  109. package/dist/graphql-DHAHHcww.js +161 -0
  110. package/dist/graphql-DHAHHcww.js.map +1 -0
  111. package/dist/i18n/index.d.ts +3 -3
  112. package/dist/i18n/index.js +3 -4
  113. package/dist/i18n/index.js.map +1 -1
  114. package/dist/i18n-BBMYFd0P.js +860 -0
  115. package/dist/i18n-BBMYFd0P.js.map +1 -0
  116. package/dist/import-optional-peer-B82VYxeX.js +18 -0
  117. package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
  118. package/dist/index-3KOZ1zN9.d.ts +233 -0
  119. package/dist/index-ADmsX0BI.d.ts +646 -0
  120. package/dist/index-B2LCaK0R.d.ts +500 -0
  121. package/dist/index-BBqooJ52.d.ts +45 -0
  122. package/dist/index-BGzMYJsm.d.ts +209 -0
  123. package/dist/index-BMIMnp6T.d.ts +8 -0
  124. package/dist/index-BVOL7458.d.ts +10 -0
  125. package/dist/index-BcqQs-Uq.d.ts +69 -0
  126. package/dist/index-BeVtqGO-.d.ts +208 -0
  127. package/dist/index-BiTzGUZP.d.ts +114 -0
  128. package/dist/index-C0qLquY0.d.ts +150 -0
  129. package/dist/index-C5uEKchX.d.ts +60 -0
  130. package/dist/index-CDOqxSIi.d.ts +37 -0
  131. package/dist/index-CG6wj66Y.d.ts +148 -0
  132. package/dist/index-CHwMhK6v.d.ts +63 -0
  133. package/dist/index-CIgoeobA.d.ts +145 -0
  134. package/dist/index-CPQDMSFS.d.ts +103 -0
  135. package/dist/index-CSRcgkVi.d.ts +23 -0
  136. package/dist/index-CTTwo9av.d.ts +102 -0
  137. package/dist/index-CVCyKzhB.d.ts +207 -0
  138. package/dist/index-C_GXXF32.d.ts +704 -0
  139. package/dist/index-CaM9JUcc.d.ts +144 -0
  140. package/dist/index-CliOgq6L.d.ts +203 -0
  141. package/dist/index-Cot73bdh.d.ts +63 -0
  142. package/dist/index-DGgh9DWn.d.ts +59 -0
  143. package/dist/index-DY3dNhMN.d.ts +420 -0
  144. package/dist/index-DqbGqfAy.d.ts +127 -0
  145. package/dist/index-Dt1HJPTX.d.ts +12 -0
  146. package/dist/index-DtI6aBtB.d.ts +22 -0
  147. package/dist/index-FKohsiex.d.ts +38 -0
  148. package/dist/index-FRRaa6h2.d.ts +999 -0
  149. package/dist/index-FbXPfen7.d.ts +132 -0
  150. package/dist/index-MArCb8Aq.d.ts +306 -0
  151. package/dist/index-U_tu3zUl.d.ts +303 -0
  152. package/dist/index-YOShAwkq.d.ts +45 -0
  153. package/dist/index-cmR9k9ga.d.ts +26 -0
  154. package/dist/index-yBSjMY32.d.ts +24 -0
  155. package/dist/index-zd_NPGJo.d.ts +206 -0
  156. package/dist/index.d.ts +106 -609
  157. package/dist/index.js +769 -2590
  158. package/dist/index.js.map +1 -1
  159. package/dist/init/index.d.ts +2 -2
  160. package/dist/init/index.js +3 -16
  161. package/dist/init/index.js.map +1 -1
  162. package/dist/init-CQPFmOOe.js +325 -0
  163. package/dist/init-CQPFmOOe.js.map +1 -0
  164. package/dist/instrumentation/index.d.ts +3 -4
  165. package/dist/instrumentation/index.js +5 -5
  166. package/dist/instrumentation/index.js.map +1 -1
  167. package/dist/instrumentation-xkkmDgJ0.js +1678 -0
  168. package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
  169. package/dist/lake/index.d.ts +50 -54
  170. package/dist/lake/index.js +169 -193
  171. package/dist/lake/index.js.map +1 -1
  172. package/dist/layer/index.d.ts +3 -2
  173. package/dist/layer/index.js +4 -5
  174. package/dist/layer/index.js.map +1 -1
  175. package/dist/layer-BZBZZWeV.d.ts +69 -0
  176. package/dist/layer-Bcix-WCl.js +105 -0
  177. package/dist/layer-Bcix-WCl.js.map +1 -0
  178. package/dist/layer-CEKy6cm8.js +252 -0
  179. package/dist/layer-CEKy6cm8.js.map +1 -0
  180. package/dist/lifecycle/index.d.ts +2 -1
  181. package/dist/lifecycle/index.js +3 -4
  182. package/dist/lifecycle/index.js.map +1 -1
  183. package/dist/lifecycle-DeoLSX0U.js +76 -0
  184. package/dist/lifecycle-DeoLSX0U.js.map +1 -0
  185. package/dist/logger/index.d.ts +2 -3
  186. package/dist/logger/index.js +3 -3
  187. package/dist/logger/index.js.map +1 -1
  188. package/dist/logger-B6rCpb7D.js +290 -0
  189. package/dist/logger-B6rCpb7D.js.map +1 -0
  190. package/dist/metrics/index.d.ts +13 -14
  191. package/dist/metrics/index.js +3 -4
  192. package/dist/metrics/index.js.map +1 -1
  193. package/dist/metrics-BrLwNUrb.js +52 -0
  194. package/dist/metrics-BrLwNUrb.js.map +1 -0
  195. package/dist/metrics-collector-C2eShrlW.js +922 -0
  196. package/dist/metrics-collector-C2eShrlW.js.map +1 -0
  197. package/dist/middleware/index.d.ts +3 -3
  198. package/dist/middleware/index.js +3 -4
  199. package/dist/middleware/index.js.map +1 -1
  200. package/dist/middleware-CUxJVUpD.js +1243 -0
  201. package/dist/middleware-CUxJVUpD.js.map +1 -0
  202. package/dist/middleware-Cq0zFMGp.js +253 -0
  203. package/dist/middleware-Cq0zFMGp.js.map +1 -0
  204. package/dist/notifications/index.d.ts +2 -5
  205. package/dist/notifications/index.js +3 -6
  206. package/dist/notifications/index.js.map +1 -1
  207. package/dist/notifications-DY_i37WN.js +869 -0
  208. package/dist/notifications-DY_i37WN.js.map +1 -0
  209. package/dist/observability/index.d.ts +2 -3
  210. package/dist/observability/index.js +3 -4
  211. package/dist/observability/index.js.map +1 -1
  212. package/dist/observability-DBDXipTU.js +272 -0
  213. package/dist/observability-DBDXipTU.js.map +1 -0
  214. package/dist/payments/index.d.ts +144 -0
  215. package/dist/payments/index.js +404 -0
  216. package/dist/payments/index.js.map +1 -0
  217. package/dist/platform/index.d.ts +2 -1
  218. package/dist/platform/index.js +3 -5
  219. package/dist/platform/index.js.map +1 -1
  220. package/dist/platform-DZwczW7v.js +1510 -0
  221. package/dist/platform-DZwczW7v.js.map +1 -0
  222. package/dist/prisma/generator/index.d.ts +1 -1
  223. package/dist/prisma/generator/index.js +97 -84
  224. package/dist/prisma/generator/index.js.map +1 -1
  225. package/dist/prisma/index.d.ts +4 -7
  226. package/dist/prisma/index.js +5 -12
  227. package/dist/prisma/index.js.map +1 -1
  228. package/dist/prisma-BzOOdt79.js +863 -0
  229. package/dist/prisma-BzOOdt79.js.map +1 -0
  230. package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
  231. package/dist/product-alias/index.d.ts +2 -1
  232. package/dist/product-alias/index.js +3 -3
  233. package/dist/product-alias/index.js.map +1 -1
  234. package/dist/product-alias-BPqtskMq.js +273 -0
  235. package/dist/product-alias-BPqtskMq.js.map +1 -0
  236. package/dist/rate-limit-CBrK_U5H.js +142 -0
  237. package/dist/rate-limit-CBrK_U5H.js.map +1 -0
  238. package/dist/rbac/index.d.ts +2 -122
  239. package/dist/rbac/index.js +3 -6
  240. package/dist/rbac/index.js.map +1 -1
  241. package/dist/rbac-Dvz0YzEt.js +1486 -0
  242. package/dist/rbac-Dvz0YzEt.js.map +1 -0
  243. package/dist/resource-caps/index.d.ts +66 -72
  244. package/dist/resource-caps/index.js +430 -5
  245. package/dist/resource-caps/index.js.map +1 -1
  246. package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
  247. package/dist/sdk-Dju9o-sq.js +124 -0
  248. package/dist/sdk-Dju9o-sq.js.map +1 -0
  249. package/dist/search/index.d.ts +112 -0
  250. package/dist/search/index.js +266 -0
  251. package/dist/search/index.js.map +1 -0
  252. package/dist/security/index.d.ts +2 -0
  253. package/dist/security/index.js +4 -0
  254. package/dist/security/index.js.map +1 -0
  255. package/dist/security/rate-limit/index.d.ts +2 -0
  256. package/dist/security/rate-limit/index.js +4 -0
  257. package/dist/security/rate-limit/index.js.map +1 -0
  258. package/dist/security-DIG-95Ic.js +1647 -0
  259. package/dist/security-DIG-95Ic.js.map +1 -0
  260. package/dist/server/index.d.ts +7 -164
  261. package/dist/server/index.js +2001 -1507
  262. package/dist/server/index.js.map +1 -1
  263. package/dist/service-jwt-Bu-WNA_-.js +80 -0
  264. package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
  265. package/dist/services-BWzfz7vG.js +102 -0
  266. package/dist/services-BWzfz7vG.js.map +1 -0
  267. package/dist/sharding/index.d.ts +41 -44
  268. package/dist/sharding/index.js +156 -137
  269. package/dist/sharding/index.js.map +1 -1
  270. package/dist/sharing/index.d.ts +2 -1
  271. package/dist/sharing/index.js +3 -4
  272. package/dist/sharing/index.js.map +1 -1
  273. package/dist/sharing-CflDsSJ-.js +911 -0
  274. package/dist/sharing-CflDsSJ-.js.map +1 -0
  275. package/dist/stub-BUnfMiAS.js +577 -0
  276. package/dist/stub-BUnfMiAS.js.map +1 -0
  277. package/dist/tags/index.d.ts +2 -3
  278. package/dist/tags/index.js +3 -4
  279. package/dist/tags/index.js.map +1 -1
  280. package/dist/tags-CbijgoqR.js +868 -0
  281. package/dist/{chunk-PBZFAAOM.js.map → tags-CbijgoqR.js.map} +1 -1
  282. package/dist/telemetry/index.d.ts +64 -76
  283. package/dist/telemetry/index.js +369 -201
  284. package/dist/telemetry/index.js.map +1 -1
  285. package/dist/temporal/index.d.ts +2 -148
  286. package/dist/temporal/index.js +3 -5
  287. package/dist/temporal/index.js.map +1 -1
  288. package/dist/temporal-B534uYK8.js +706 -0
  289. package/dist/temporal-B534uYK8.js.map +1 -0
  290. package/dist/tracker/index.d.ts +5 -11
  291. package/dist/tracker/index.js +7 -20
  292. package/dist/tracker/index.js.map +1 -1
  293. package/dist/tracker-PQztSlhJ.js +458 -0
  294. package/dist/tracker-PQztSlhJ.js.map +1 -0
  295. package/dist/translation/index.d.ts +120 -0
  296. package/dist/translation/index.js +573 -0
  297. package/dist/translation/index.js.map +1 -0
  298. package/dist/types/index.d.ts +3 -0
  299. package/dist/types/index.js +90 -0
  300. package/dist/types/index.js.map +1 -0
  301. package/dist/types-BYMYND1L.js +44 -0
  302. package/dist/types-BYMYND1L.js.map +1 -0
  303. package/dist/types-C6EKaS3V.d.ts +106 -0
  304. package/dist/types-CWybW61E.d.ts +323 -0
  305. package/dist/types-C_yfu3XK.d.ts +34 -0
  306. package/dist/types-DgaQqvxo.d.ts +70 -0
  307. package/dist/usage/index.d.ts +2 -213
  308. package/dist/usage/index.js +3 -15
  309. package/dist/usage/index.js.map +1 -1
  310. package/dist/usage-BRqVP3CJ.js +682 -0
  311. package/dist/usage-BRqVP3CJ.js.map +1 -0
  312. package/dist/utils/index.d.ts +2 -1
  313. package/dist/utils/index.js +3 -3
  314. package/dist/utils/index.js.map +1 -1
  315. package/dist/utils-DL85Tnbn.js +500 -0
  316. package/dist/utils-DL85Tnbn.js.map +1 -0
  317. package/dist/validation/index.d.ts +2 -2
  318. package/dist/validation/index.js +3 -3
  319. package/dist/validation/index.js.map +1 -1
  320. package/dist/validation-CPUITdMk.js +762 -0
  321. package/dist/validation-CPUITdMk.js.map +1 -0
  322. package/dist/workspace-extension-COrC0dYi.js +979 -0
  323. package/dist/workspace-extension-COrC0dYi.js.map +1 -0
  324. package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
  325. package/package.json +7 -10
  326. package/dist/EventQueueFactory-GXC3A7DH.js +0 -8
  327. package/dist/EventQueueFactory-GXC3A7DH.js.map +0 -1
  328. package/dist/chunk-4XIBXZ6J.js +0 -276
  329. package/dist/chunk-4XIBXZ6J.js.map +0 -1
  330. package/dist/chunk-554Z4C2K.js +0 -1006
  331. package/dist/chunk-554Z4C2K.js.map +0 -1
  332. package/dist/chunk-5CAFHK2Z.js +0 -107
  333. package/dist/chunk-5CAFHK2Z.js.map +0 -1
  334. package/dist/chunk-63ZXJ42X.js +0 -451
  335. package/dist/chunk-63ZXJ42X.js.map +0 -1
  336. package/dist/chunk-6XEXJATV.js +0 -304
  337. package/dist/chunk-6XEXJATV.js.map +0 -1
  338. package/dist/chunk-726AR6Q7.js +0 -1532
  339. package/dist/chunk-726AR6Q7.js.map +0 -1
  340. package/dist/chunk-A5F6Z5UE.js +0 -21
  341. package/dist/chunk-A5F6Z5UE.js.map +0 -1
  342. package/dist/chunk-A6DE32ZS.js +0 -1507
  343. package/dist/chunk-A6DE32ZS.js.map +0 -1
  344. package/dist/chunk-AXJDGQPE.js +0 -690
  345. package/dist/chunk-AXJDGQPE.js.map +0 -1
  346. package/dist/chunk-BJQOGOVW.js +0 -602
  347. package/dist/chunk-BJQOGOVW.js.map +0 -1
  348. package/dist/chunk-CFXWH2IS.js +0 -52
  349. package/dist/chunk-CFXWH2IS.js.map +0 -1
  350. package/dist/chunk-DRWH5XCJ.js +0 -876
  351. package/dist/chunk-DRWH5XCJ.js.map +0 -1
  352. package/dist/chunk-E4QNLVY4.js +0 -909
  353. package/dist/chunk-E4QNLVY4.js.map +0 -1
  354. package/dist/chunk-EBDHIL7V.js +0 -774
  355. package/dist/chunk-EBDHIL7V.js.map +0 -1
  356. package/dist/chunk-ELU7VL3E.js +0 -245
  357. package/dist/chunk-ELU7VL3E.js.map +0 -1
  358. package/dist/chunk-FZRODKIN.js +0 -31
  359. package/dist/chunk-FZRODKIN.js.map +0 -1
  360. package/dist/chunk-GCIB76AJ.js +0 -882
  361. package/dist/chunk-GCIB76AJ.js.map +0 -1
  362. package/dist/chunk-HC6MPUIH.js +0 -1571
  363. package/dist/chunk-HC6MPUIH.js.map +0 -1
  364. package/dist/chunk-HNMHPSAM.js +0 -272
  365. package/dist/chunk-HNMHPSAM.js.map +0 -1
  366. package/dist/chunk-HTLEGD3Q.js +0 -1480
  367. package/dist/chunk-HTLEGD3Q.js.map +0 -1
  368. package/dist/chunk-I3KOWRT3.js +0 -89
  369. package/dist/chunk-I3KOWRT3.js.map +0 -1
  370. package/dist/chunk-ID3WR4JS.js +0 -509
  371. package/dist/chunk-ID3WR4JS.js.map +0 -1
  372. package/dist/chunk-JS52ZHTK.js +0 -1346
  373. package/dist/chunk-JS52ZHTK.js.map +0 -1
  374. package/dist/chunk-JVMAQOA3.js +0 -521
  375. package/dist/chunk-JVMAQOA3.js.map +0 -1
  376. package/dist/chunk-KH4TRQCO.js +0 -1063
  377. package/dist/chunk-KH4TRQCO.js.map +0 -1
  378. package/dist/chunk-KJOSPVB2.js +0 -57
  379. package/dist/chunk-KJOSPVB2.js.map +0 -1
  380. package/dist/chunk-KO2ZXZ7W.js +0 -61
  381. package/dist/chunk-KO2ZXZ7W.js.map +0 -1
  382. package/dist/chunk-KS2HQCJR.js +0 -56
  383. package/dist/chunk-KS2HQCJR.js.map +0 -1
  384. package/dist/chunk-LA5KPWZ2.js +0 -413
  385. package/dist/chunk-LA5KPWZ2.js.map +0 -1
  386. package/dist/chunk-MESLAC5W.js +0 -574
  387. package/dist/chunk-MESLAC5W.js.map +0 -1
  388. package/dist/chunk-MWPYA2HD.js +0 -94
  389. package/dist/chunk-MWPYA2HD.js.map +0 -1
  390. package/dist/chunk-NUB5GQTU.js +0 -270
  391. package/dist/chunk-NUB5GQTU.js.map +0 -1
  392. package/dist/chunk-OBBCR6WY.js +0 -277
  393. package/dist/chunk-OBBCR6WY.js.map +0 -1
  394. package/dist/chunk-OQDSAOG3.js +0 -1908
  395. package/dist/chunk-OQDSAOG3.js.map +0 -1
  396. package/dist/chunk-OXNCBE7P.js +0 -971
  397. package/dist/chunk-OXNCBE7P.js.map +0 -1
  398. package/dist/chunk-PBZFAAOM.js +0 -941
  399. package/dist/chunk-PN6GIF3R.js +0 -1185
  400. package/dist/chunk-PN6GIF3R.js.map +0 -1
  401. package/dist/chunk-PYD44IHJ.js +0 -728
  402. package/dist/chunk-PYD44IHJ.js.map +0 -1
  403. package/dist/chunk-QVPIACWD.js +0 -679
  404. package/dist/chunk-QVPIACWD.js.map +0 -1
  405. package/dist/chunk-QWNNFE4P.js +0 -41
  406. package/dist/chunk-QWNNFE4P.js.map +0 -1
  407. package/dist/chunk-RU266375.js +0 -327
  408. package/dist/chunk-RU266375.js.map +0 -1
  409. package/dist/chunk-RYTSVGGA.js +0 -1624
  410. package/dist/chunk-RYTSVGGA.js.map +0 -1
  411. package/dist/chunk-RZOFS2BQ.js +0 -225
  412. package/dist/chunk-RZOFS2BQ.js.map +0 -1
  413. package/dist/chunk-SBS4S2PJ.js +0 -100
  414. package/dist/chunk-SBS4S2PJ.js.map +0 -1
  415. package/dist/chunk-SPRG6G6G.js +0 -530
  416. package/dist/chunk-SPRG6G6G.js.map +0 -1
  417. package/dist/chunk-STWFX5E2.js +0 -233
  418. package/dist/chunk-STWFX5E2.js.map +0 -1
  419. package/dist/chunk-UNASM5VJ.js +0 -419
  420. package/dist/chunk-UNASM5VJ.js.map +0 -1
  421. package/dist/chunk-VAT66FJA.js +0 -245
  422. package/dist/chunk-VAT66FJA.js.map +0 -1
  423. package/dist/chunk-VFCMR5GX.js +0 -49
  424. package/dist/chunk-VFCMR5GX.js.map +0 -1
  425. package/dist/chunk-VGAHZKNJ.js +0 -66
  426. package/dist/chunk-VGAHZKNJ.js.map +0 -1
  427. package/dist/chunk-VTJTAAXC.js +0 -627
  428. package/dist/chunk-VTJTAAXC.js.map +0 -1
  429. package/dist/chunk-VXVLKRU6.js +0 -758
  430. package/dist/chunk-VXVLKRU6.js.map +0 -1
  431. package/dist/chunk-WWUU5ETI.js +0 -163
  432. package/dist/chunk-WWUU5ETI.js.map +0 -1
  433. package/dist/chunk-XE4OXN2W.js +0 -10
  434. package/dist/chunk-XE4OXN2W.js.map +0 -1
  435. package/dist/chunk-XOJORS75.js +0 -1853
  436. package/dist/chunk-XOJORS75.js.map +0 -1
  437. package/dist/chunk-YMZEUTD2.js +0 -110
  438. package/dist/chunk-YMZEUTD2.js.map +0 -1
  439. package/dist/chunk-Z77BTSOK.js +0 -617
  440. package/dist/chunk-Z77BTSOK.js.map +0 -1
  441. package/dist/chunk-ZZK3WEDI.js +0 -181
  442. package/dist/chunk-ZZK3WEDI.js.map +0 -1
  443. package/dist/client-CCXpAZ2r.d.ts +0 -89
  444. package/dist/client-DSI_760t.d.ts +0 -36
  445. package/dist/client-JU6T3UPB.js +0 -11
  446. package/dist/client-JU6T3UPB.js.map +0 -1
  447. package/dist/dist-2X4Q7PJA.js +0 -1491
  448. package/dist/dist-2X4Q7PJA.js.map +0 -1
  449. package/dist/env-4UWSUS64.js +0 -4
  450. package/dist/env-4UWSUS64.js.map +0 -1
  451. package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
  452. package/dist/graphql-CMHMQjvd.d.ts +0 -23
  453. package/dist/i18n-Qm2AkPC-.d.ts +0 -33
  454. package/dist/index--yvpa6ay.d.ts +0 -83
  455. package/dist/index-4gKQKZ2B.d.ts +0 -71
  456. package/dist/index-5x0XMKXN.d.ts +0 -149
  457. package/dist/index-B70b5mYS.d.ts +0 -33
  458. package/dist/index-B8KrxO4j.d.ts +0 -755
  459. package/dist/index-BOuDKnqD.d.ts +0 -201
  460. package/dist/index-BTMt4OjA.d.ts +0 -201
  461. package/dist/index-BejbszA7.d.ts +0 -39
  462. package/dist/index-BkeOYZye.d.ts +0 -198
  463. package/dist/index-BuAj5nXg.d.ts +0 -83
  464. package/dist/index-BvkVcW8I.d.ts +0 -349
  465. package/dist/index-CWmH_-RZ.d.ts +0 -247
  466. package/dist/index-CbgWNcus.d.ts +0 -258
  467. package/dist/index-CmfPeQza.d.ts +0 -166
  468. package/dist/index-CmpG-zak.d.ts +0 -607
  469. package/dist/index-CoMKgL-p.d.ts +0 -12
  470. package/dist/index-D8HGwglK.d.ts +0 -541
  471. package/dist/index-DCaVm66D.d.ts +0 -1101
  472. package/dist/index-DE2w7E0d.d.ts +0 -83
  473. package/dist/index-DSOpj8DI.d.ts +0 -17
  474. package/dist/index-DW9q22GH.d.ts +0 -75
  475. package/dist/index-DnjJ9CwI.d.ts +0 -347
  476. package/dist/index-DwMJZ8PP.d.ts +0 -317
  477. package/dist/index-PaojfSdd.d.ts +0 -71
  478. package/dist/index-aHtYvc3i.d.ts +0 -284
  479. package/dist/index-e_18DzAg.d.ts +0 -18
  480. package/dist/index-ffmipXSA.d.ts +0 -55
  481. package/dist/index-joONjwLt.d.ts +0 -33
  482. package/dist/index-kssw5ziY.d.ts +0 -250
  483. package/dist/index-lFffh5-G.d.ts +0 -125
  484. package/dist/index-pxYge_6k.d.ts +0 -79
  485. package/dist/layer-Cv9vSwBx.d.ts +0 -70
  486. package/dist/pino-logger-H4HPW5P6.js +0 -5
  487. package/dist/pino-logger-H4HPW5P6.js.map +0 -1
  488. package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
  489. package/dist/sdk-L75WWUP3.js +0 -156
  490. package/dist/sdk-L75WWUP3.js.map +0 -1
  491. package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
  492. package/dist/types-Bo2wkjSP.d.ts +0 -35
  493. package/dist/types-DVpvrAhd.d.ts +0 -71
  494. package/dist/types-DgJ4lDYA.d.ts +0 -108
  495. package/dist/types-USOv09qy.d.ts +0 -327
  496. package/dist/workspace-guard-NXVYYBVJ.js +0 -5
  497. 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 };