@burdenoff/be-sdk 2026.1110.2 → 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-GXC3A7DH.js +0 -8
  299. package/dist/EventQueueFactory-GXC3A7DH.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-A5F6Z5UE.js +0 -21
  313. package/dist/chunk-A5F6Z5UE.js.map +0 -1
  314. package/dist/chunk-A6DE32ZS.js +0 -1507
  315. package/dist/chunk-A6DE32ZS.js.map +0 -1
  316. package/dist/chunk-AXJDGQPE.js +0 -690
  317. package/dist/chunk-AXJDGQPE.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-DRWH5XCJ.js +0 -876
  323. package/dist/chunk-DRWH5XCJ.js.map +0 -1
  324. package/dist/chunk-E4QNLVY4.js +0 -909
  325. package/dist/chunk-E4QNLVY4.js.map +0 -1
  326. package/dist/chunk-EBDHIL7V.js +0 -774
  327. package/dist/chunk-EBDHIL7V.js.map +0 -1
  328. package/dist/chunk-ELU7VL3E.js +0 -245
  329. package/dist/chunk-ELU7VL3E.js.map +0 -1
  330. package/dist/chunk-FZRODKIN.js +0 -31
  331. package/dist/chunk-FZRODKIN.js.map +0 -1
  332. package/dist/chunk-GCIB76AJ.js +0 -882
  333. package/dist/chunk-GCIB76AJ.js.map +0 -1
  334. package/dist/chunk-HC6MPUIH.js +0 -1571
  335. package/dist/chunk-HC6MPUIH.js.map +0 -1
  336. package/dist/chunk-HNMHPSAM.js +0 -272
  337. package/dist/chunk-HNMHPSAM.js.map +0 -1
  338. package/dist/chunk-HTLEGD3Q.js +0 -1480
  339. package/dist/chunk-HTLEGD3Q.js.map +0 -1
  340. package/dist/chunk-I3KOWRT3.js +0 -89
  341. package/dist/chunk-I3KOWRT3.js.map +0 -1
  342. package/dist/chunk-ID3WR4JS.js +0 -509
  343. package/dist/chunk-ID3WR4JS.js.map +0 -1
  344. package/dist/chunk-JS52ZHTK.js +0 -1346
  345. package/dist/chunk-JS52ZHTK.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-KH4TRQCO.js +0 -1063
  349. package/dist/chunk-KH4TRQCO.js.map +0 -1
  350. package/dist/chunk-KJOSPVB2.js +0 -57
  351. package/dist/chunk-KJOSPVB2.js.map +0 -1
  352. package/dist/chunk-KO2ZXZ7W.js +0 -61
  353. package/dist/chunk-KO2ZXZ7W.js.map +0 -1
  354. package/dist/chunk-KS2HQCJR.js +0 -56
  355. package/dist/chunk-KS2HQCJR.js.map +0 -1
  356. package/dist/chunk-LA5KPWZ2.js +0 -413
  357. package/dist/chunk-LA5KPWZ2.js.map +0 -1
  358. package/dist/chunk-MESLAC5W.js +0 -574
  359. package/dist/chunk-MESLAC5W.js.map +0 -1
  360. package/dist/chunk-MWPYA2HD.js +0 -94
  361. package/dist/chunk-MWPYA2HD.js.map +0 -1
  362. package/dist/chunk-NUB5GQTU.js +0 -270
  363. package/dist/chunk-NUB5GQTU.js.map +0 -1
  364. package/dist/chunk-OBBCR6WY.js +0 -277
  365. package/dist/chunk-OBBCR6WY.js.map +0 -1
  366. package/dist/chunk-OQDSAOG3.js +0 -1908
  367. package/dist/chunk-OQDSAOG3.js.map +0 -1
  368. package/dist/chunk-OXNCBE7P.js +0 -971
  369. package/dist/chunk-OXNCBE7P.js.map +0 -1
  370. package/dist/chunk-PBZFAAOM.js +0 -941
  371. package/dist/chunk-PN6GIF3R.js +0 -1185
  372. package/dist/chunk-PN6GIF3R.js.map +0 -1
  373. package/dist/chunk-PYD44IHJ.js +0 -728
  374. package/dist/chunk-PYD44IHJ.js.map +0 -1
  375. package/dist/chunk-QVPIACWD.js +0 -679
  376. package/dist/chunk-QVPIACWD.js.map +0 -1
  377. package/dist/chunk-QWNNFE4P.js +0 -41
  378. package/dist/chunk-QWNNFE4P.js.map +0 -1
  379. package/dist/chunk-RU266375.js +0 -327
  380. package/dist/chunk-RU266375.js.map +0 -1
  381. package/dist/chunk-RYTSVGGA.js +0 -1624
  382. package/dist/chunk-RYTSVGGA.js.map +0 -1
  383. package/dist/chunk-RZOFS2BQ.js +0 -225
  384. package/dist/chunk-RZOFS2BQ.js.map +0 -1
  385. package/dist/chunk-SBS4S2PJ.js +0 -100
  386. package/dist/chunk-SBS4S2PJ.js.map +0 -1
  387. package/dist/chunk-SPRG6G6G.js +0 -530
  388. package/dist/chunk-SPRG6G6G.js.map +0 -1
  389. package/dist/chunk-STWFX5E2.js +0 -233
  390. package/dist/chunk-STWFX5E2.js.map +0 -1
  391. package/dist/chunk-UNASM5VJ.js +0 -419
  392. package/dist/chunk-UNASM5VJ.js.map +0 -1
  393. package/dist/chunk-VAT66FJA.js +0 -245
  394. package/dist/chunk-VAT66FJA.js.map +0 -1
  395. package/dist/chunk-VFCMR5GX.js +0 -49
  396. package/dist/chunk-VFCMR5GX.js.map +0 -1
  397. package/dist/chunk-VGAHZKNJ.js +0 -66
  398. package/dist/chunk-VGAHZKNJ.js.map +0 -1
  399. package/dist/chunk-VTJTAAXC.js +0 -627
  400. package/dist/chunk-VTJTAAXC.js.map +0 -1
  401. package/dist/chunk-VXVLKRU6.js +0 -758
  402. package/dist/chunk-VXVLKRU6.js.map +0 -1
  403. package/dist/chunk-WWUU5ETI.js +0 -163
  404. package/dist/chunk-WWUU5ETI.js.map +0 -1
  405. package/dist/chunk-XE4OXN2W.js +0 -10
  406. package/dist/chunk-XE4OXN2W.js.map +0 -1
  407. package/dist/chunk-XOJORS75.js +0 -1853
  408. package/dist/chunk-XOJORS75.js.map +0 -1
  409. package/dist/chunk-YMZEUTD2.js +0 -110
  410. package/dist/chunk-YMZEUTD2.js.map +0 -1
  411. package/dist/chunk-Z77BTSOK.js +0 -617
  412. package/dist/chunk-Z77BTSOK.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,755 +0,0 @@
1
- import { B as BurdenoffGraphQLClient } from './graphql-CMHMQjvd.js';
2
- import { a as SDKContext } from './index-DE2w7E0d.js';
3
- import { M as ModuleGraphConfig, E as EntityGraphConfig, R as RegistryEntityRbacConfig, a as RelationshipGraphConfig, b as EntityBulkOperationsConfig, c as GraphEventType, d as GraphEvent, G as GraphEventEmitter, e as EdgeDocument, f as EntityEventType, g as EntityVertex, h as GraphMiddlewareConfig, P as ProductFacet, S as SearchFacets, i as SearchFilters, j as SearchResponse, k as SearchResult, T as TypeFacet, l as addGraphExtension } from './prisma-extension-gYhYriA0.js';
4
- import { P as PrismaClientBase } from './client-CCXpAZ2r.js';
5
- import { G as GraphEventEmitterImpl, E as EntityEventRbacMetadata } from './graph-emitter-r5TylDBm.js';
6
-
7
- interface ResolvedEntityGraphConfig extends Omit<EntityGraphConfig, 'fields'> {
8
- fields: string[];
9
- getOrgId?: (data: Record<string, unknown>) => string | undefined;
10
- getWorkspaceId?: (data: Record<string, unknown>) => string | undefined;
11
- rbac?: RegistryEntityRbacConfig;
12
- }
13
- declare class GraphRegistry {
14
- private static entityMappings;
15
- private static relationshipMappings;
16
- private static registeredModules;
17
- private static resolveFields;
18
- static registerModule(config: ModuleGraphConfig): void;
19
- static getEntityConfig(entityType: string): ResolvedEntityGraphConfig | undefined;
20
- static getRelationshipConfig(relationshipType: string): RelationshipGraphConfig | undefined;
21
- static getAllEntityTypes(): string[];
22
- static getAllRelationshipTypes(): string[];
23
- static getRegisteredModules(): string[];
24
- static isEntityRegistered(entityType: string): boolean;
25
- static isRelationshipRegistered(relationshipType: string): boolean;
26
- static getOrganizationId(entityType: string, data: Record<string, unknown>): string | undefined;
27
- static getWorkspaceId(entityType: string, data: Record<string, unknown>): string | undefined;
28
- static getRbacConfig(entityType: string): RegistryEntityRbacConfig | undefined;
29
- static getBulkOperationsConfig(entityType: string): EntityBulkOperationsConfig | undefined;
30
- static resolveRbacMetadata(entityType: string, entityData: Record<string, unknown>): {
31
- resourceTypeName: string;
32
- name?: string;
33
- identifier?: string;
34
- parentResourceIdentifier?: string;
35
- createResource?: boolean;
36
- } | undefined;
37
- static getStats(): {
38
- modules: number;
39
- entities: number;
40
- relationships: number;
41
- collections: Set<string>;
42
- edgeTypes: Set<string>;
43
- };
44
- static clear(): void;
45
- static getRelationshipsForEntity(entityType: string): Array<[string, RelationshipGraphConfig]>;
46
- static printStatus(): void;
47
- }
48
-
49
- declare function createEntityEvent(eventType: GraphEventType, organizationId: string, entity: {
50
- id: string;
51
- type: string;
52
- data: Record<string, unknown>;
53
- }, metadata?: {
54
- userId?: string;
55
- correlationId?: string;
56
- workspaceId?: string;
57
- projectId?: string;
58
- }, productSource?: string): GraphEvent;
59
- declare function createRelationshipEvent(eventType: GraphEventType, organizationId: string, relationship: {
60
- from: {
61
- id: string;
62
- type: string;
63
- };
64
- to: {
65
- id: string;
66
- type: string;
67
- };
68
- type: string;
69
- metadata: Record<string, unknown>;
70
- }, metadata?: {
71
- userId?: string;
72
- correlationId?: string;
73
- }, productSource?: string): GraphEvent;
74
- declare function extractMinimalFields(modelName: string, entity: Record<string, unknown>): Record<string, unknown>;
75
- declare function parseRelationship(modelName: string, relationship: Record<string, unknown>): {
76
- from: {
77
- id: string;
78
- type: string;
79
- };
80
- to: {
81
- id: string;
82
- type: string;
83
- };
84
- relationshipType: string;
85
- metadata: Record<string, unknown>;
86
- };
87
- declare function getCollectionForEntity(entityType: string): string;
88
- declare function extractEntityTitle(entityType: string, entity: Record<string, unknown>): string;
89
- declare function shouldSyncEntity(entityType: string): boolean;
90
- declare function shouldSyncRelationship(relationshipType: string): boolean;
91
-
92
- type FieldMapper<T = string> = (data: Record<string, unknown>) => T | undefined;
93
- interface EntityRbacConfig$1 {
94
- resourceTypeName: string;
95
- extractName?: (data: Record<string, unknown>) => string | undefined;
96
- extractIdentifier?: (data: Record<string, unknown>) => string | undefined;
97
- parentResourceField?: string;
98
- createResource?: boolean;
99
- }
100
- interface GenericEntityConfig {
101
- collection?: string;
102
- fields: string[];
103
- getWorkspaceId: FieldMapper<string>;
104
- getOrgId: FieldMapper<string>;
105
- getProjectId?: FieldMapper<string>;
106
- extractTitle?: FieldMapper<string>;
107
- enabled?: boolean;
108
- rbac?: EntityRbacConfig$1;
109
- bulkOperations?: EntityBulkOperationsConfig;
110
- }
111
- interface GenericRelationshipConfig {
112
- from: string;
113
- to: string;
114
- fromField: string;
115
- toField?: string;
116
- label: string;
117
- description?: string;
118
- extractMetadata?: (record: Record<string, unknown>) => Record<string, unknown>;
119
- polymorphicTypeField?: string;
120
- enabled?: boolean;
121
- }
122
- interface GenericGraphConfig {
123
- moduleName: string;
124
- entities: Record<string, GenericEntityConfig>;
125
- relationships?: Record<string, GenericRelationshipConfig>;
126
- }
127
- type ValidationErrorType = 'MISSING_WORKSPACE_ID' | 'MISSING_ORG_ID' | 'ORPHANED_ENTITY' | 'INVALID_ENTITY_TYPE' | 'INVALID_RELATIONSHIP' | 'DUPLICATE_ENTITY_TYPE' | 'DUPLICATE_RELATIONSHIP_LABEL' | 'CIRCULAR_DEPENDENCY';
128
- interface GraphValidationError {
129
- type: ValidationErrorType;
130
- entityType?: string;
131
- relationshipKey?: string;
132
- message: string;
133
- data?: Record<string, unknown>;
134
- }
135
- interface GraphValidationResult {
136
- valid: boolean;
137
- errors: GraphValidationError[];
138
- warnings: string[];
139
- }
140
- interface ExtractedEntityData {
141
- id: string;
142
- type: string;
143
- workspaceId: string;
144
- organizationId: string;
145
- projectId?: string;
146
- title: string;
147
- fields: Record<string, unknown>;
148
- }
149
- interface ExtractedRelationshipData {
150
- from: {
151
- id: string;
152
- type: string;
153
- };
154
- to: {
155
- id: string;
156
- type: string;
157
- };
158
- label: string;
159
- metadata?: Record<string, unknown>;
160
- }
161
-
162
- interface PrismaGraphIntegrationOptions<TPrismaClient = unknown> {
163
- serviceName: string;
164
- graphConfig: GenericGraphConfig;
165
- productName?: string;
166
- validateRuntime?: boolean;
167
- autoInit?: boolean;
168
- createPrismaClient: () => TPrismaClient;
169
- bulkOperations?: EntityBulkOperationsConfig;
170
- }
171
- declare function createPrismaGraphIntegration<TPrismaClient extends PrismaClientBase>(options: PrismaGraphIntegrationOptions<TPrismaClient>): {
172
- initializeGraphEmitter: () => Promise<void>;
173
- db: () => {
174
- client: TPrismaClient;
175
- };
176
- prisma: TPrismaClient;
177
- cleanup: () => Promise<void>;
178
- getGraphEmitter: () => GraphEventEmitterImpl | null;
179
- isInitialized: () => boolean;
180
- };
181
- type PrismaGraphIntegration<TPrismaClient extends PrismaClientBase> = ReturnType<typeof createPrismaGraphIntegration<TPrismaClient>>;
182
-
183
- interface DeferredGraphResult<T> {
184
- result: T;
185
- eventDelivery: {
186
- attempted: number;
187
- failed: number;
188
- };
189
- }
190
- declare function withDeferredGraphEvents<T>(transaction: () => Promise<T>): Promise<DeferredGraphResult<T>>;
191
-
192
- interface GraphEventPublishOptions {
193
- userId?: string;
194
- correlationId?: string;
195
- }
196
- interface GraphRelationshipData {
197
- from: {
198
- id: string;
199
- type: string;
200
- };
201
- to: {
202
- id: string;
203
- type: string;
204
- };
205
- relationType: string;
206
- metadata?: Record<string, unknown>;
207
- }
208
- interface GraphEntityConfig {
209
- type: string;
210
- getOrgId?: (data: Record<string, unknown>) => string | undefined;
211
- getWorkspaceId?: (data: Record<string, unknown>) => string | undefined;
212
- onCreated?: (data: Record<string, unknown>, publisher: GraphEventsPublisher, options?: GraphEventPublishOptions) => Promise<void>;
213
- onUpdated?: (data: Record<string, unknown>, publisher: GraphEventsPublisher, options?: GraphEventPublishOptions) => Promise<void>;
214
- onDeleted?: (data: Record<string, unknown>, publisher: GraphEventsPublisher, options?: GraphEventPublishOptions) => Promise<void>;
215
- }
216
- interface GraphEventsHelperConfig {
217
- moduleName: string;
218
- entities: Record<string, GraphEntityConfig>;
219
- }
220
- interface EntityEventData {
221
- id: string;
222
- type: string;
223
- data: Record<string, unknown>;
224
- organizationId?: string;
225
- workspaceId?: string;
226
- }
227
- declare class GraphEventsPublisher {
228
- private static instance;
229
- private productName;
230
- private initialized;
231
- private emitter;
232
- constructor(productName?: string);
233
- static getInstance(productName?: string): GraphEventsPublisher;
234
- setProductName(name: string): void;
235
- initialize(): Promise<void>;
236
- private ensureInitialized;
237
- publishEntityCreated(entity: EntityEventData, options?: GraphEventPublishOptions): Promise<void>;
238
- publishEntityUpdated(entity: EntityEventData, options?: GraphEventPublishOptions): Promise<void>;
239
- publishEntityDeleted(entity: EntityEventData, options?: GraphEventPublishOptions): Promise<void>;
240
- publishRelationshipCreated(relationship: GraphRelationshipData, organizationId: string, options?: GraphEventPublishOptions): Promise<void>;
241
- publishRelationshipDeleted(relationship: GraphRelationshipData, organizationId: string, options?: GraphEventPublishOptions): Promise<void>;
242
- private publishEntityEvent;
243
- private publishRelationshipEvent;
244
- shutdown(): Promise<void>;
245
- static reset(): void;
246
- }
247
- declare function getGraphEventsPublisher(productName?: string): GraphEventsPublisher;
248
- type EntityEventHandler = (data: Record<string, unknown>, options?: GraphEventPublishOptions) => Promise<void>;
249
- interface EntityEvents {
250
- created: EntityEventHandler;
251
- updated: EntityEventHandler;
252
- deleted: EntityEventHandler;
253
- }
254
- type GraphEventsHelper = Record<string, EntityEvents>;
255
- declare function createGraphEventsHelper(config: GraphEventsHelperConfig): GraphEventsHelper;
256
-
257
- interface GraphEntityExport {
258
- id: string;
259
- type: string;
260
- data: Record<string, unknown>;
261
- organizationId?: string;
262
- workspaceId?: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- }
266
- interface GraphRelationshipExport {
267
- id: string;
268
- type: string;
269
- fromId: string;
270
- fromType: string;
271
- toId: string;
272
- toType: string;
273
- metadata: Record<string, unknown>;
274
- createdAt: string;
275
- updatedAt: string;
276
- }
277
- interface GraphExportResponse {
278
- moduleName: string;
279
- productSource: string;
280
- exportedAt: string;
281
- schema: {
282
- entities: Record<string, {
283
- fields: string[];
284
- collection: string;
285
- }>;
286
- relationships: Record<string, {
287
- from: string;
288
- fromType: string;
289
- to: string;
290
- toType: string;
291
- edgeType: string;
292
- }>;
293
- };
294
- data: {
295
- entities: Record<string, GraphEntityExport[]>;
296
- relationships: GraphRelationshipExport[];
297
- };
298
- stats: {
299
- totalEntities: number;
300
- totalRelationships: number;
301
- entityCounts: Record<string, number>;
302
- };
303
- }
304
- type EntityFetcher$1<T = Record<string, unknown>> = (organizationId?: string, workspaceId?: string) => Promise<T[]>;
305
- type RelationshipFetcher$1 = (organizationId?: string, workspaceId?: string) => Promise<GraphRelationshipExport[]>;
306
- interface GraphExportServiceConfig {
307
- moduleName: string;
308
- config: ModuleGraphConfig;
309
- fetchers: Record<string, EntityFetcher$1>;
310
- relationshipFetchers?: Record<string, RelationshipFetcher$1>;
311
- transformEntity?: (type: string, item: Record<string, unknown>) => GraphEntityExport;
312
- }
313
- declare class GraphExportService {
314
- private readonly moduleName;
315
- private readonly config;
316
- private readonly fetchers;
317
- private readonly relationshipFetchers;
318
- private readonly customTransformer?;
319
- constructor(serviceConfig: GraphExportServiceConfig);
320
- getSchema(): {
321
- moduleName: string;
322
- entities: Record<string, {
323
- fields: string[];
324
- collection: string;
325
- }>;
326
- relationships: Record<string, {
327
- from: string;
328
- fromType: string;
329
- to: string;
330
- toType: string;
331
- edgeType: string;
332
- }>;
333
- };
334
- exportEntities(organizationId?: string, workspaceId?: string, entityTypes?: string[]): Promise<Record<string, GraphEntityExport[]>>;
335
- exportRelationships(organizationId?: string, workspaceId?: string): Promise<GraphRelationshipExport[]>;
336
- exportAll(organizationId?: string, workspaceId?: string): Promise<GraphExportResponse>;
337
- private transformEntity;
338
- }
339
- declare function createGraphExportService(config: GraphExportServiceConfig): GraphExportService;
340
- declare function createRelationshipFromEntity(entity: Record<string, unknown>, relationConfig: RelationshipGraphConfig, relationType: string): GraphRelationshipExport | null;
341
-
342
- interface GraphEventOptions {
343
- actorId?: string;
344
- correlationId?: string;
345
- organizationId?: string;
346
- }
347
- interface RelationshipEventData {
348
- from: {
349
- id: string;
350
- type: string;
351
- };
352
- to: {
353
- id: string;
354
- type: string;
355
- };
356
- relationType: string;
357
- metadata?: Record<string, unknown>;
358
- }
359
- interface EntityEventContext {
360
- publishRelationship: (data: RelationshipEventData, orgId?: string) => Promise<void>;
361
- deleteRelationship: (data: RelationshipEventData, orgId?: string) => Promise<void>;
362
- getOrgId: (data: Record<string, unknown>) => string | undefined;
363
- getWorkspaceId: (data: Record<string, unknown>) => string | undefined;
364
- }
365
- type EntityEventHook = (data: Record<string, unknown>, ctx: EntityEventContext, options?: GraphEventOptions) => Promise<void>;
366
- type EntityFetcher<T = Record<string, unknown>> = (organizationId?: string, workspaceId?: string) => Promise<T[]>;
367
- interface RelationshipExportData {
368
- id: string;
369
- fromId: string;
370
- toId: string;
371
- metadata?: Record<string, unknown>;
372
- createdAt?: string;
373
- updatedAt?: string;
374
- }
375
- type RelationshipFetcher = (organizationId?: string, workspaceId?: string) => Promise<RelationshipExportData[]>;
376
- interface EntityRbacConfig {
377
- resourceTypeName: string;
378
- extractName?: (data: Record<string, unknown>) => string | undefined;
379
- extractIdentifier?: (data: Record<string, unknown>) => string | undefined;
380
- parentResourceField?: string;
381
- createResource?: boolean;
382
- }
383
- interface EntityDefinition<T = Record<string, unknown>> {
384
- type: string;
385
- fields?: string[];
386
- collection?: string;
387
- getOrgId?: (data: Record<string, unknown>) => string | undefined;
388
- getWorkspaceId?: (data: Record<string, unknown>) => string | undefined;
389
- onCreated?: EntityEventHook;
390
- onUpdated?: EntityEventHook;
391
- onDeleted?: EntityEventHook;
392
- fetch?: EntityFetcher<T>;
393
- rbac?: EntityRbacConfig;
394
- }
395
- interface RelationshipDefinition {
396
- fromType: string;
397
- toType: string;
398
- edgeType: string;
399
- extractMetadata?: (record: Record<string, unknown>) => Record<string, unknown>;
400
- fetch?: RelationshipFetcher;
401
- }
402
- interface ModuleGraphDefinition {
403
- moduleName: string;
404
- productSource?: string;
405
- entities: Record<string, EntityDefinition>;
406
- relationships?: Record<string, RelationshipDefinition>;
407
- }
408
- interface EntityEventMethods {
409
- created: (data: Record<string, unknown>, options?: GraphEventOptions) => Promise<void>;
410
- updated: (data: Record<string, unknown>, options?: GraphEventOptions) => Promise<void>;
411
- deleted: (data: Record<string, unknown>, options?: GraphEventOptions) => Promise<void>;
412
- }
413
- interface EntityExport {
414
- id: string;
415
- type: string;
416
- data: Record<string, unknown>;
417
- organizationId?: string;
418
- workspaceId?: string;
419
- createdAt: string;
420
- updatedAt: string;
421
- }
422
- interface RelationshipExport {
423
- id: string;
424
- type: string;
425
- fromId: string;
426
- fromType: string;
427
- toId: string;
428
- toType: string;
429
- metadata: Record<string, unknown>;
430
- createdAt: string;
431
- updatedAt: string;
432
- }
433
- interface GraphSchema {
434
- moduleName: string;
435
- entities: Record<string, {
436
- fields: string[];
437
- collection: string;
438
- }>;
439
- relationships: Record<string, {
440
- fromType: string;
441
- toType: string;
442
- edgeType: string;
443
- }>;
444
- }
445
- interface ExportResponse {
446
- moduleName: string;
447
- productSource: string;
448
- exportedAt: string;
449
- schema: GraphSchema;
450
- data: {
451
- entities: Record<string, EntityExport[]>;
452
- relationships: RelationshipExport[];
453
- };
454
- stats: {
455
- totalEntities: number;
456
- totalRelationships: number;
457
- entityCounts: Record<string, number>;
458
- };
459
- }
460
- interface ModuleGraph {
461
- readonly moduleName: string;
462
- readonly events: Record<string, EntityEventMethods>;
463
- initialize(): Promise<void>;
464
- shutdown(): Promise<void>;
465
- getSchema(): GraphSchema;
466
- exportEntities(organizationId?: string, workspaceId?: string, entityTypes?: string[]): Promise<Record<string, EntityExport[]>>;
467
- exportRelationships(organizationId?: string, workspaceId?: string): Promise<RelationshipExport[]>;
468
- exportAll(organizationId?: string, workspaceId?: string): Promise<ExportResponse>;
469
- getPublisher(): GraphEventsPublisherInternal;
470
- }
471
- declare class GraphEventsPublisherInternal {
472
- private productName;
473
- private initialized;
474
- private emitter;
475
- constructor(productName: string);
476
- initialize(): Promise<void>;
477
- private ensureInitialized;
478
- publishEntityCreated(entity: {
479
- id: string;
480
- type: string;
481
- data: Record<string, unknown>;
482
- organizationId?: string;
483
- workspaceId?: string;
484
- }, options?: GraphEventOptions, rbac?: EntityEventRbacMetadata): Promise<void>;
485
- publishEntityUpdated(entity: {
486
- id: string;
487
- type: string;
488
- data: Record<string, unknown>;
489
- organizationId?: string;
490
- workspaceId?: string;
491
- }, options?: GraphEventOptions, rbac?: EntityEventRbacMetadata): Promise<void>;
492
- publishEntityDeleted(entity: {
493
- id: string;
494
- type: string;
495
- data: Record<string, unknown>;
496
- organizationId?: string;
497
- workspaceId?: string;
498
- }, options?: GraphEventOptions, rbac?: EntityEventRbacMetadata): Promise<void>;
499
- publishRelationshipCreated(relationship: RelationshipEventData, organizationId: string, options?: GraphEventOptions): Promise<void>;
500
- publishRelationshipDeleted(relationship: RelationshipEventData, organizationId: string, options?: GraphEventOptions): Promise<void>;
501
- private publishEntityEvent;
502
- private publishRelationshipEvent;
503
- shutdown(): Promise<void>;
504
- }
505
- declare function defineModuleGraph(definition: ModuleGraphDefinition): ModuleGraph;
506
-
507
- declare const STANDARD_FIELDS: readonly ["id", "createdAt", "updatedAt"];
508
- declare const SOFT_DELETE_FIELDS: readonly ["deletedAt"];
509
- declare const AUDIT_FIELDS: readonly ["metadata", "context"];
510
- declare const TENANT_FIELDS: readonly ["workspaceId", "tenantId"];
511
- interface DefineEntityConfigOptions extends Omit<GenericEntityConfig, 'fields'> {
512
- fields?: string[];
513
- model?: string;
514
- exclude?: string[];
515
- include?: string[];
516
- softDelete?: boolean;
517
- multiTenant?: boolean;
518
- audit?: boolean;
519
- }
520
- interface DefineRelationshipConfigOptions extends Omit<GenericRelationshipConfig, 'label' | 'toField'> {
521
- label?: string;
522
- toField?: string;
523
- }
524
- interface PrismaFieldsModule {
525
- getScalarFields: (modelName: string) => string[];
526
- hasModel: (modelName: string) => boolean;
527
- getAllModelNames: () => string[];
528
- }
529
- interface DefineGraphConfigOptions {
530
- moduleName: string;
531
- entities: Record<string, DefineEntityConfigOptions>;
532
- relationships?: Record<string, DefineRelationshipConfigOptions>;
533
- prismaFieldsModule?: PrismaFieldsModule;
534
- }
535
- declare function defineGraphConfig(options: DefineGraphConfigOptions): GenericGraphConfig;
536
- declare function defineEntity(config: GenericEntityConfig): GenericEntityConfig;
537
- declare function defineRelationship(config: GenericRelationshipConfig): GenericRelationshipConfig;
538
-
539
- interface InitializeGraphOptions {
540
- productName: string;
541
- eventEmitter: GraphEventEmitter;
542
- monitoredEntityTypes?: string[];
543
- enabled?: boolean;
544
- validateRuntime?: boolean;
545
- bulkOperations?: EntityBulkOperationsConfig;
546
- }
547
- declare function initializeGraph<TPrisma>(prismaClient: TPrisma, config: GenericGraphConfig, options: InitializeGraphOptions): TPrisma;
548
- declare function isGraphInitialized(moduleName: string): boolean;
549
- declare function getGraphStats(): {
550
- modules: number;
551
- entities: number;
552
- relationships: number;
553
- registeredModules: string[];
554
- };
555
-
556
- interface GraphNode {
557
- id: string;
558
- type: string;
559
- properties: Record<string, unknown>;
560
- workspaceId?: string;
561
- organizationId?: string;
562
- createdAt: string;
563
- updatedAt: string;
564
- }
565
- interface GraphEdge {
566
- id: string;
567
- from: string;
568
- to: string;
569
- type: string;
570
- properties?: Record<string, unknown>;
571
- workspaceId?: string;
572
- organizationId?: string;
573
- createdAt: string;
574
- }
575
- interface CreateNodeOptions {
576
- type: string;
577
- properties: Record<string, unknown>;
578
- workspaceId?: string;
579
- organizationId?: string;
580
- }
581
- interface CreateEdgeOptions {
582
- from: string;
583
- to: string;
584
- type: string;
585
- properties?: Record<string, unknown>;
586
- workspaceId?: string;
587
- organizationId?: string;
588
- }
589
- type TraverseDirection = 'outbound' | 'inbound' | 'any';
590
- interface TraverseOptions {
591
- startNode: string;
592
- direction?: TraverseDirection;
593
- edgeTypes?: string[];
594
- minDepth?: number;
595
- maxDepth?: number;
596
- limit?: number;
597
- }
598
- interface TraverseResult {
599
- nodes: GraphNode[];
600
- edges: GraphEdge[];
601
- paths: Array<{
602
- nodes: GraphNode[];
603
- edges: GraphEdge[];
604
- }>;
605
- }
606
- interface QueryGraphOptions {
607
- query: string;
608
- bindVars?: Record<string, unknown>;
609
- limit?: number;
610
- }
611
- declare class GraphModule {
612
- private client;
613
- private context;
614
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
615
- createNode(options: CreateNodeOptions): Promise<GraphNode>;
616
- createEdge(options: CreateEdgeOptions): Promise<GraphEdge>;
617
- getNode(nodeId: string): Promise<GraphNode | null>;
618
- updateNode(nodeId: string, properties: Record<string, unknown>): Promise<GraphNode>;
619
- deleteNode(nodeId: string): Promise<boolean>;
620
- deleteEdge(edgeId: string): Promise<boolean>;
621
- traverse(options: TraverseOptions): Promise<TraverseResult>;
622
- findShortestPath(fromNode: string, toNode: string, options?: {
623
- edgeTypes?: string[];
624
- maxDepth?: number;
625
- }): Promise<{
626
- nodes: GraphNode[];
627
- edges: GraphEdge[];
628
- distance: number;
629
- } | null>;
630
- query<T = unknown>(options: QueryGraphOptions): Promise<T[]>;
631
- getNeighbors(nodeId: string, options?: {
632
- direction?: 'outbound' | 'inbound' | 'any';
633
- edgeTypes?: string[];
634
- limit?: number;
635
- }): Promise<{
636
- nodes: GraphNode[];
637
- edges: GraphEdge[];
638
- }>;
639
- getNodeDegree(nodeId: string, direction?: 'outbound' | 'inbound' | 'any'): Promise<{
640
- inbound: number;
641
- outbound: number;
642
- total: number;
643
- }>;
644
- findNodes(type: string, filters: Record<string, unknown>, options?: {
645
- limit?: number;
646
- offset?: number;
647
- }): Promise<{
648
- nodes: GraphNode[];
649
- total: number;
650
- }>;
651
- createNodesBatch(nodes: CreateNodeOptions[]): Promise<GraphNode[]>;
652
- createEdgesBatch(edges: CreateEdgeOptions[]): Promise<GraphEdge[]>;
653
- }
654
-
655
- declare const index_AUDIT_FIELDS: typeof AUDIT_FIELDS;
656
- type index_CreateEdgeOptions = CreateEdgeOptions;
657
- type index_CreateNodeOptions = CreateNodeOptions;
658
- type index_DeferredGraphResult<T> = DeferredGraphResult<T>;
659
- type index_DefineEntityConfigOptions = DefineEntityConfigOptions;
660
- type index_DefineGraphConfigOptions = DefineGraphConfigOptions;
661
- type index_DefineRelationshipConfigOptions = DefineRelationshipConfigOptions;
662
- declare const index_EdgeDocument: typeof EdgeDocument;
663
- declare const index_EntityBulkOperationsConfig: typeof EntityBulkOperationsConfig;
664
- type index_EntityDefinition<T = Record<string, unknown>> = EntityDefinition<T>;
665
- type index_EntityEventContext = EntityEventContext;
666
- type index_EntityEventData = EntityEventData;
667
- type index_EntityEventHook = EntityEventHook;
668
- declare const index_EntityEventType: typeof EntityEventType;
669
- declare const index_EntityGraphConfig: typeof EntityGraphConfig;
670
- type index_EntityRbacConfig = EntityRbacConfig;
671
- declare const index_EntityVertex: typeof EntityVertex;
672
- type index_ExtractedEntityData = ExtractedEntityData;
673
- type index_ExtractedRelationshipData = ExtractedRelationshipData;
674
- type index_FieldMapper<T = string> = FieldMapper<T>;
675
- type index_GenericEntityConfig = GenericEntityConfig;
676
- type index_GenericGraphConfig = GenericGraphConfig;
677
- type index_GenericRelationshipConfig = GenericRelationshipConfig;
678
- type index_GraphEdge = GraphEdge;
679
- type index_GraphEntityConfig = GraphEntityConfig;
680
- type index_GraphEntityExport = GraphEntityExport;
681
- declare const index_GraphEvent: typeof GraphEvent;
682
- declare const index_GraphEventEmitter: typeof GraphEventEmitter;
683
- type index_GraphEventOptions = GraphEventOptions;
684
- type index_GraphEventPublishOptions = GraphEventPublishOptions;
685
- declare const index_GraphEventType: typeof GraphEventType;
686
- type index_GraphEventsHelper = GraphEventsHelper;
687
- type index_GraphEventsHelperConfig = GraphEventsHelperConfig;
688
- type index_GraphEventsPublisher = GraphEventsPublisher;
689
- declare const index_GraphEventsPublisher: typeof GraphEventsPublisher;
690
- type index_GraphExportResponse = GraphExportResponse;
691
- type index_GraphExportService = GraphExportService;
692
- declare const index_GraphExportService: typeof GraphExportService;
693
- type index_GraphExportServiceConfig = GraphExportServiceConfig;
694
- declare const index_GraphMiddlewareConfig: typeof GraphMiddlewareConfig;
695
- type index_GraphModule = GraphModule;
696
- declare const index_GraphModule: typeof GraphModule;
697
- type index_GraphNode = GraphNode;
698
- type index_GraphRegistry = GraphRegistry;
699
- declare const index_GraphRegistry: typeof GraphRegistry;
700
- type index_GraphRelationshipData = GraphRelationshipData;
701
- type index_GraphRelationshipExport = GraphRelationshipExport;
702
- type index_GraphSchema = GraphSchema;
703
- type index_GraphValidationError = GraphValidationError;
704
- type index_GraphValidationResult = GraphValidationResult;
705
- type index_InitializeGraphOptions = InitializeGraphOptions;
706
- type index_ModuleGraph = ModuleGraph;
707
- declare const index_ModuleGraphConfig: typeof ModuleGraphConfig;
708
- type index_ModuleGraphDefinition = ModuleGraphDefinition;
709
- type index_PrismaGraphIntegration<TPrismaClient extends PrismaClientBase> = PrismaGraphIntegration<TPrismaClient>;
710
- type index_PrismaGraphIntegrationOptions<TPrismaClient = unknown> = PrismaGraphIntegrationOptions<TPrismaClient>;
711
- declare const index_ProductFacet: typeof ProductFacet;
712
- type index_QueryGraphOptions = QueryGraphOptions;
713
- type index_RelationshipDefinition = RelationshipDefinition;
714
- type index_RelationshipEventData = RelationshipEventData;
715
- type index_RelationshipExportData = RelationshipExportData;
716
- declare const index_RelationshipGraphConfig: typeof RelationshipGraphConfig;
717
- declare const index_SOFT_DELETE_FIELDS: typeof SOFT_DELETE_FIELDS;
718
- declare const index_STANDARD_FIELDS: typeof STANDARD_FIELDS;
719
- declare const index_SearchFacets: typeof SearchFacets;
720
- declare const index_SearchFilters: typeof SearchFilters;
721
- declare const index_SearchResponse: typeof SearchResponse;
722
- declare const index_SearchResult: typeof SearchResult;
723
- declare const index_TENANT_FIELDS: typeof TENANT_FIELDS;
724
- type index_TraverseDirection = TraverseDirection;
725
- type index_TraverseOptions = TraverseOptions;
726
- type index_TraverseResult = TraverseResult;
727
- declare const index_TypeFacet: typeof TypeFacet;
728
- type index_ValidationErrorType = ValidationErrorType;
729
- declare const index_addGraphExtension: typeof addGraphExtension;
730
- declare const index_createEntityEvent: typeof createEntityEvent;
731
- declare const index_createGraphEventsHelper: typeof createGraphEventsHelper;
732
- declare const index_createGraphExportService: typeof createGraphExportService;
733
- declare const index_createPrismaGraphIntegration: typeof createPrismaGraphIntegration;
734
- declare const index_createRelationshipEvent: typeof createRelationshipEvent;
735
- declare const index_createRelationshipFromEntity: typeof createRelationshipFromEntity;
736
- declare const index_defineEntity: typeof defineEntity;
737
- declare const index_defineGraphConfig: typeof defineGraphConfig;
738
- declare const index_defineModuleGraph: typeof defineModuleGraph;
739
- declare const index_defineRelationship: typeof defineRelationship;
740
- declare const index_extractEntityTitle: typeof extractEntityTitle;
741
- declare const index_extractMinimalFields: typeof extractMinimalFields;
742
- declare const index_getCollectionForEntity: typeof getCollectionForEntity;
743
- declare const index_getGraphEventsPublisher: typeof getGraphEventsPublisher;
744
- declare const index_getGraphStats: typeof getGraphStats;
745
- declare const index_initializeGraph: typeof initializeGraph;
746
- declare const index_isGraphInitialized: typeof isGraphInitialized;
747
- declare const index_parseRelationship: typeof parseRelationship;
748
- declare const index_shouldSyncEntity: typeof shouldSyncEntity;
749
- declare const index_shouldSyncRelationship: typeof shouldSyncRelationship;
750
- declare const index_withDeferredGraphEvents: typeof withDeferredGraphEvents;
751
- declare namespace index {
752
- export { index_AUDIT_FIELDS as AUDIT_FIELDS, type index_CreateEdgeOptions as CreateEdgeOptions, type index_CreateNodeOptions as CreateNodeOptions, type index_DeferredGraphResult as DeferredGraphResult, type index_DefineEntityConfigOptions as DefineEntityConfigOptions, type index_DefineGraphConfigOptions as DefineGraphConfigOptions, type index_DefineRelationshipConfigOptions as DefineRelationshipConfigOptions, index_EdgeDocument as EdgeDocument, index_EntityBulkOperationsConfig as EntityBulkOperationsConfig, type index_EntityDefinition as EntityDefinition, type index_EntityEventContext as EntityEventContext, type index_EntityEventData as EntityEventData, type index_EntityEventHook as EntityEventHook, index_EntityEventType as EntityEventType, type EntityFetcher$1 as EntityFetcher, index_EntityGraphConfig as EntityGraphConfig, type index_EntityRbacConfig as EntityRbacConfig, index_EntityVertex as EntityVertex, type index_ExtractedEntityData as ExtractedEntityData, type index_ExtractedRelationshipData as ExtractedRelationshipData, type index_FieldMapper as FieldMapper, type index_GenericEntityConfig as GenericEntityConfig, type EntityRbacConfig$1 as GenericEntityRbacConfig, type index_GenericGraphConfig as GenericGraphConfig, type index_GenericRelationshipConfig as GenericRelationshipConfig, type index_GraphEdge as GraphEdge, type index_GraphEntityConfig as GraphEntityConfig, type index_GraphEntityExport as GraphEntityExport, index_GraphEvent as GraphEvent, index_GraphEventEmitter as GraphEventEmitter, type index_GraphEventOptions as GraphEventOptions, type index_GraphEventPublishOptions as GraphEventPublishOptions, index_GraphEventType as GraphEventType, type index_GraphEventsHelper as GraphEventsHelper, type index_GraphEventsHelperConfig as GraphEventsHelperConfig, index_GraphEventsPublisher as GraphEventsPublisher, type index_GraphExportResponse as GraphExportResponse, index_GraphExportService as GraphExportService, type index_GraphExportServiceConfig as GraphExportServiceConfig, index_GraphMiddlewareConfig as GraphMiddlewareConfig, index_GraphModule as GraphModule, type index_GraphNode as GraphNode, index_GraphRegistry as GraphRegistry, type index_GraphRelationshipData as GraphRelationshipData, type index_GraphRelationshipExport as GraphRelationshipExport, type index_GraphSchema as GraphSchema, type index_GraphValidationError as GraphValidationError, type index_GraphValidationResult as GraphValidationResult, type index_InitializeGraphOptions as InitializeGraphOptions, type index_ModuleGraph as ModuleGraph, index_ModuleGraphConfig as ModuleGraphConfig, type index_ModuleGraphDefinition as ModuleGraphDefinition, type index_PrismaGraphIntegration as PrismaGraphIntegration, type index_PrismaGraphIntegrationOptions as PrismaGraphIntegrationOptions, index_ProductFacet as ProductFacet, type index_QueryGraphOptions as QueryGraphOptions, type index_RelationshipDefinition as RelationshipDefinition, type index_RelationshipEventData as RelationshipEventData, type index_RelationshipExportData as RelationshipExportData, type RelationshipFetcher$1 as RelationshipFetcher, index_RelationshipGraphConfig as RelationshipGraphConfig, index_SOFT_DELETE_FIELDS as SOFT_DELETE_FIELDS, index_STANDARD_FIELDS as STANDARD_FIELDS, index_SearchFacets as SearchFacets, index_SearchFilters as SearchFilters, index_SearchResponse as SearchResponse, index_SearchResult as SearchResult, index_TENANT_FIELDS as TENANT_FIELDS, type index_TraverseDirection as TraverseDirection, type index_TraverseOptions as TraverseOptions, type index_TraverseResult as TraverseResult, index_TypeFacet as TypeFacet, type index_ValidationErrorType as ValidationErrorType, index_addGraphExtension as addGraphExtension, index_createEntityEvent as createEntityEvent, index_createGraphEventsHelper as createGraphEventsHelper, index_createGraphExportService as createGraphExportService, index_createPrismaGraphIntegration as createPrismaGraphIntegration, index_createRelationshipEvent as createRelationshipEvent, index_createRelationshipFromEntity as createRelationshipFromEntity, index_defineEntity as defineEntity, index_defineGraphConfig as defineGraphConfig, index_defineModuleGraph as defineModuleGraph, index_defineRelationship as defineRelationship, index_extractEntityTitle as extractEntityTitle, index_extractMinimalFields as extractMinimalFields, index_getCollectionForEntity as getCollectionForEntity, index_getGraphEventsPublisher as getGraphEventsPublisher, index_getGraphStats as getGraphStats, index_initializeGraph as initializeGraph, index_isGraphInitialized as isGraphInitialized, index_parseRelationship as parseRelationship, index_shouldSyncEntity as shouldSyncEntity, index_shouldSyncRelationship as shouldSyncRelationship, index_withDeferredGraphEvents as withDeferredGraphEvents };
753
- }
754
-
755
- export { type TraverseDirection as $, AUDIT_FIELDS as A, type GraphExportServiceConfig as B, type CreateEdgeOptions as C, type DeferredGraphResult as D, type EntityDefinition as E, type FieldMapper as F, GraphModule as G, type GraphNode as H, GraphRegistry as I, type GraphRelationshipData as J, type GraphRelationshipExport as K, type GraphSchema as L, type GraphValidationError as M, type GraphValidationResult as N, type InitializeGraphOptions as O, type ModuleGraph as P, type ModuleGraphDefinition as Q, type PrismaGraphIntegration as R, type PrismaGraphIntegrationOptions as S, type QueryGraphOptions as T, type RelationshipDefinition as U, type RelationshipEventData as V, type RelationshipExportData as W, type RelationshipFetcher$1 as X, SOFT_DELETE_FIELDS as Y, STANDARD_FIELDS as Z, TENANT_FIELDS as _, type CreateNodeOptions as a, type TraverseOptions as a0, type TraverseResult as a1, type ValidationErrorType as a2, createEntityEvent as a3, createGraphEventsHelper as a4, createGraphExportService as a5, createPrismaGraphIntegration as a6, createRelationshipEvent as a7, createRelationshipFromEntity as a8, defineEntity as a9, defineGraphConfig as aa, defineModuleGraph as ab, defineRelationship as ac, extractEntityTitle as ad, extractMinimalFields as ae, getCollectionForEntity as af, getGraphEventsPublisher as ag, getGraphStats as ah, initializeGraph as ai, isGraphInitialized as aj, parseRelationship as ak, shouldSyncEntity as al, shouldSyncRelationship as am, withDeferredGraphEvents as an, type DefineEntityConfigOptions as b, type DefineGraphConfigOptions as c, type DefineRelationshipConfigOptions as d, type EntityEventContext as e, type EntityEventData as f, type EntityEventHook as g, type EntityFetcher$1 as h, index as i, type EntityRbacConfig as j, type ExtractedEntityData as k, type ExtractedRelationshipData as l, type GenericEntityConfig as m, type EntityRbacConfig$1 as n, type GenericGraphConfig as o, type GenericRelationshipConfig as p, type GraphEdge as q, type GraphEntityConfig as r, type GraphEntityExport as s, type GraphEventOptions as t, type GraphEventPublishOptions as u, type GraphEventsHelper as v, type GraphEventsHelperConfig as w, GraphEventsPublisher as x, type GraphExportResponse as y, GraphExportService as z };