@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
package/dist/index.d.ts CHANGED
@@ -1,610 +1,567 @@
1
- import { a as SDKContext, S as SDKConfig, E as EventQueueHealthStatus, T as TemporalHealthStatus, c as SDKHealthStatus, d as SDKShutdownOptions } from './index-DE2w7E0d.js';
2
- export { e as EventQueueSDKConfig, L as LoggerConfig, f as LoggerTransport } from './index-DE2w7E0d.js';
3
- import { L as Logger } from './index-pxYge_6k.js';
4
- export { i as Logger } from './index-pxYge_6k.js';
5
- import { AuthModule } from './auth/index.js';
6
- import { T as TenantNotificationsModule, a as NotificationsModule } from './index-DwMJZ8PP.js';
7
- export { t as Notifications } from './index-DwMJZ8PP.js';
8
- import { RBACModule } from './rbac/index.js';
9
- export { LayerAwareRBACConfig, RBACDirectiveConfig, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv } from './rbac/index.js';
10
- import { A as ActivityModule, T as TrackerModule } from './index-DnjJ9CwI.js';
11
- export { a as Activity, b as ActivityActorType, c as ActivityOperationUnsupportedError, G as GetActivitiesOptions, L as LogActivityOptions } from './index-DnjJ9CwI.js';
12
- import { UsageModule } from './usage/index.js';
13
- export { BillingUsageClient, BillingUsageClientConfig, BillingUsageOperationInput, OrgBillingUsageOperationInput, QuotaLimit, WorkspaceBillingUsageOperationInput } from './usage/index.js';
14
- import { DatabaseConfig, DatabaseModule } from './database/index.js';
15
- import { E as EventsModule, I as IEventPublisher } from './index-DCaVm66D.js';
16
- export { i as EventQueue } from './index-DCaVm66D.js';
17
- import { G as GraphModule } from './index-B8KrxO4j.js';
18
- export { i as Graph } from './index-B8KrxO4j.js';
19
- import { B as BurdenoffGraphQLClient } from './graphql-CMHMQjvd.js';
20
- import { TemporalModule } from './temporal/index.js';
21
- export { TemporalClient, TemporalClientConfig, TemporalClientFactory, TemporalWorker, TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, WorkflowStartOptions } from './temporal/index.js';
22
- export { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from './client/internal-client.js';
23
- export { i as Lifecycle } from './index-CoMKgL-p.js';
24
- export { BillingPlanTransport, PlanTier, RESOURCE_CAP_DEFAULTS, ResourceCap, ResourceCapDefaults, ResourceCapExceededError, ResourceCapsConfig, ResourceCapsModule, ResourceName, WorkspaceResourceCapScope, configureResourceCaps, getResourceCaps } from './resource-caps/index.js';
25
- export { i as Sharing } from './index-kssw5ziY.js';
26
- export { i as Tags } from './index-aHtYvc3i.js';
27
- export { i as Files } from './index-CbgWNcus.js';
28
- export { i as AiCredits } from './index-CmfPeQza.js';
29
- export { i as Cache } from './index-BvkVcW8I.js';
30
- export { i as Middleware } from './index-DSOpj8DI.js';
31
- export { i as Observability } from './index-4gKQKZ2B.js';
32
- export { i as GraphQL } from './index-joONjwLt.js';
33
- export { i as Prisma } from './index-BTMt4OjA.js';
34
- export { i as Utils } from './index-PaojfSdd.js';
35
- export { i as I18n, I as I18nCapableContext, T as Translator, c as createTranslator, g as getLanguage, a as getLocale, h as hasI18n, t } from './index-lFffh5-G.js';
36
- export { i as Export } from './index-CWmH_-RZ.js';
37
- export { i as Init } from './index-5x0XMKXN.js';
38
- export { i as DataLoader } from './index-DW9q22GH.js';
39
- export { i as Instrumentation } from './index-CmpG-zak.js';
40
- export { i as Layer } from './index-ffmipXSA.js';
41
- export { i as Crypto } from './index-e_18DzAg.js';
42
- export { i as Gateway } from './index-BejbszA7.js';
43
- export { i as FeatureFlags } from './index--yvpa6ay.js';
44
- export { i as Captcha, R as RecaptchaVerifyOptions, a as RecaptchaVerifyResult, b as isCaptchaEnabled, v as verifyCaptcha, c as verifyCaptchaIfEnabled } from './index-B70b5mYS.js';
45
- export { i as Platform } from './index-D8HGwglK.js';
46
- export { N as NAME_MAX_LENGTH, a as NAME_MIN_LENGTH, b as NameErrorCode, c as NameValidationResult, R as RbacCoverageError, d as RbacCoverageOptions, e as RbacCoverageReport, f as RbacCoverageSource, U as USERNAME_MAX_LENGTH, g as USERNAME_MIN_LENGTH, h as UserFieldError, i as UserFieldKey, j as UserFieldsValidationResult, k as UsernameErrorCode, l as UsernameValidationResult, V as ValidatedUserFields, m as Validation, n as analyzeRbacCoverage, o as assertRbacCoverage, p as lengthInCodePoints, v as validateName, q as validateUserFields, r as validateUsername } from './index-BkeOYZye.js';
47
- export { E as EmitGeneration, P as PRODUCT_RENAMES, a as PRODUCT_RENAME_EMIT, b as PRODUCT_SLUG_ALIASES, i as ProductAlias, c as ProductRename, R as RENAME_CONCERNS, d as RenameConcern, e as billingIdVariants, f as emitBillingId, g as emitName, h as emitProductSlug, j as emitQuotaKey, k as emitRbacResource, l as emitTemplateKey, m as isLegacyName, n as isSameBillingId, o as isSameGraphQLName, p as isSameName, q as isSameProductSlug, r as isSameQuotaKey, s as isSameRbacResource, t as isSameTemplateKey, u as nameVariants, v as normalizeBillingId, w as normalizeGraphQLName, x as normalizeProductSlug, y as normalizeQuotaKey, z as normalizeRbacResource, A as normalizeTemplateKey, B as productSlugVariants, C as quotaKeyVariants, D as rbacResourceVariants, F as readRenamedEnv, G as templateKeyVariants, H as toCurrentName, I as toLegacyName } from './index-BuAj5nXg.js';
48
- export { C as CircuitBreakerConfig, h as DEFAULT_CIRCUIT_BREAKER_CONFIG, i as DEFAULT_GATEWAY_RETRY_CONFIG, D as DEFAULT_GATEWAY_ROUTING, b as DEFAULT_LAYER_RESOURCES, c as DEFAULT_LAYER_STREAMS, f as GatewayRequestHeaders, g as GatewayRetryConfig, G as GatewayRoutingConfig, L as LayerConfig, a as LayerFullConfig, d as LayerGatewayConfig, e as LayerResourceUrls, S as ServiceLayer } from './layer-Cv9vSwBx.js';
49
- export { S as ShutdownDisposable, d as disposeAll, g as getRegisteredDisposableCount, r as registerDisposable, u as unregisterDisposable } from './shutdown-registry-CW9LryO8.js';
50
- import './types-USOv09qy.js';
51
- import 'graphql';
52
- import 'graphql-yoga';
53
- import './client-CCXpAZ2r.js';
54
- import '@prisma/adapter-pg';
55
- import 'pg';
56
- import './workspace-extension-BGwTOV_r.js';
57
- import './assistant-session-CJZhF4D6.js';
58
- import './types-DVpvrAhd.js';
59
- import 'graphql-request';
60
- import '@envelop/core';
61
- import './explicit-activity-scope-CCoxVwAr.js';
62
- import './client-DSI_760t.js';
63
- import './types-DgJ4lDYA.js';
64
- import '@clickhouse/client';
65
- import './graph-emitter-r5TylDBm.js';
66
- import './prisma-extension-gYhYriA0.js';
67
- import '@temporalio/client';
68
- import '@temporalio/common';
69
- import 'elysia';
70
- import './types-Bo2wkjSP.js';
71
- import './graphql/services/index.js';
72
- import './i18n-Qm2AkPC-.js';
73
- import './index-BOuDKnqD.js';
74
-
75
- declare class ContextManager {
76
- static getContext(): SDKContext | undefined;
77
- static setContext(context: SDKContext): void;
78
- static setCfAccessContext(clientId?: string, clientSecret?: string, cfAuthorization?: string): void;
79
- static withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
80
- static withContextSync<T>(context: SDKContext, fn: () => T): T;
81
- static clearContext(): void;
82
- static getActorId(): string | undefined;
83
- static getUser(): string | undefined;
84
- static getWorkspace(): string | undefined;
85
- static getTenant(): string | undefined;
86
- static getOrganization(): string | undefined;
87
- static getProject(): string | undefined;
88
- static getApp(): string | undefined;
89
- static getToken(): string | undefined;
90
- static getProduct(): string | undefined;
91
- static getCfAccessClientId(): string | undefined;
92
- static getCfAccessClientSecret(): string | undefined;
93
- static getCfAuthorization(): string | undefined;
94
- static getCfAccessHeaders(): Record<string, string>;
95
- static updateContext(updates: Partial<SDKContext>): void;
96
- static hasContext(): boolean;
97
- static getCustomField(key: string): unknown;
98
- static setCustomField(key: string, value: unknown): void;
99
- }
100
-
1
+ import { a as DEFAULT_LAYER_RESOURCES, c as GatewayRetryConfig, d as LayerFullConfig, f as LayerGatewayConfig, i as DEFAULT_GATEWAY_ROUTING, l as GatewayRoutingConfig, m as ServiceLayer, n as DEFAULT_CIRCUIT_BREAKER_CONFIG, o as DEFAULT_LAYER_STREAMS, p as LayerResourceUrls, r as DEFAULT_GATEWAY_RETRY_CONFIG, s as GatewayRequestHeaders, t as CircuitBreakerConfig, u as LayerConfig } from "./layer-BZBZZWeV.js";
2
+ import { a as SDKConfig, c as SDKHealthStatus, i as LoggerTransport, l as SDKShutdownOptions, n as EventQueueSDKConfig, o as SDKContext, r as LoggerConfig, t as EventQueueHealthStatus, u as TemporalHealthStatus } from "./index-BQDsNAMR.js";
3
+ import { c as index_d_exports$17, r as Logger } from "./index-BKwHQtHQ.js";
4
+ import { t as AuthModule } from "./index-D6UeLAye.js";
5
+ import { _ as TenantNotificationsModule, o as NotificationsModule, v as tenant_notifications_d_exports } from "./index-N-huORcj.js";
6
+ import { f as RBACDirectiveConfig, h as createRBACDirectiveFromEnv, m as createRBACDirectiveForLayer, o as RBACModule, p as createRBACDirective, u as LayerAwareRBACConfig } from "./index-CkT2aUr3.js";
7
+ import { C as Activity, D as GetActivitiesOptions, E as ActivityOperationUnsupportedError, O as LogActivityOptions, T as ActivityModule, r as TrackerModule, w as ActivityActorType } from "./index-CZTnQIRU.js";
8
+ import { C as OrgBillingUsageOperationInput, S as BillingUsageOperationInput, T as WorkspaceBillingUsageOperationInput, b as BillingUsageClient, m as UsageModule, w as QuotaLimit, x as BillingUsageClientConfig } from "./index-DZC-2o9R.js";
9
+ import { DatabaseConfig, DatabaseModule } from "./database/index.js";
10
+ import { Zt as IEventPublisher, t as index_d_exports$5, yt as EventsModule } from "./index-CnzbJZP7.js";
11
+ import { i as GraphModule, u as index_d_exports$10 } from "./index-bZKZUvBu.js";
12
+ import { t as BurdenoffGraphQLClient } from "./graphql-DNkMkGBZ.js";
13
+ import { a as TemporalWorkerManager, c as TemporalClientFactory, i as TemporalWorkerFactory, l as WorkflowStartOptions, n as TemporalWorker, o as TemporalClient, r as TemporalWorkerConfig, s as TemporalClientConfig, t as TemporalModule } from "./index-CaM9JUcc.js";
14
+ import { createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces } from "./client/internal-client.js";
15
+ import { a as registerDisposable, i as getRegisteredDisposableCount, n as ShutdownDisposable, o as unregisterDisposable, r as disposeAll, t as index_d_exports$16 } from "./index-Dt1HJPTX.js";
16
+ import { BillingPlanTransport, PlanTier, RESOURCE_CAP_DEFAULTS, ResourceCap, ResourceCapDefaults, ResourceCapExceededError, ResourceCapsConfig, ResourceCapsModule, ResourceName, WorkspaceResourceCapScope, configureResourceCaps, getResourceCaps } from "./resource-caps/index.js";
17
+ import { t as index_d_exports$23 } from "./index-CliOgq6L.js";
18
+ import { t as index_d_exports$24 } from "./index-3KOZ1zN9.js";
19
+ import { t as index_d_exports$8 } from "./index-BGzMYJsm.js";
20
+ import { t as index_d_exports } from "./index-FbXPfen7.js";
21
+ import { o as index_d_exports$1 } from "./index-MArCb8Aq.js";
22
+ import { t as index_d_exports$18 } from "./index-BMIMnp6T.js";
23
+ import { t as index_d_exports$19 } from "./index-C5uEKchX.js";
24
+ import { t as index_d_exports$11 } from "./index-CSRcgkVi.js";
25
+ import { t as index_d_exports$21 } from "./index-BiTzGUZP.js";
26
+ import { s as index_d_exports$25 } from "./index-FKohsiex.js";
27
+ import { C as getLocale, S as getLanguage, T as t, b as Translator, r as index_d_exports$12, w as hasI18n, x as createTranslator, y as I18nCapableContext } from "./index-CPQDMSFS.js";
28
+ import { t as index_d_exports$6 } from "./index-BeVtqGO-.js";
29
+ import { n as index_d_exports$13 } from "./index-DqbGqfAy.js";
30
+ import { p as index_d_exports$4 } from "./index-DGgh9DWn.js";
31
+ import { a as index_d_exports$14 } from "./index-BqYfCQSP.js";
32
+ import { a as index_d_exports$15 } from "./index-CDOqxSIi.js";
33
+ import { t as index_d_exports$3 } from "./index-BVOL7458.js";
34
+ import { t as index_d_exports$9 } from "./index-YOShAwkq.js";
35
+ import { t as index_d_exports$7 } from "./index-BcqQs-Uq.js";
36
+ import { a as index_d_exports$2, c as verifyCaptchaIfEnabled, n as RecaptchaVerifyResult, o as isCaptchaEnabled, s as verifyCaptcha, t as RecaptchaVerifyOptions } from "./index-yBSjMY32.js";
37
+ import { t as index_d_exports$20 } from "./index-DY3dNhMN.js";
38
+ import { B as validateUsername, D as assertRbacCoverage, E as analyzeRbacCoverage, F as validateUserFields, G as lengthInCodePoints, H as NAME_MIN_LENGTH, I as USERNAME_MAX_LENGTH, K as validateName, L as USERNAME_MIN_LENGTH, M as UserFieldKey, N as UserFieldsValidationResult, P as ValidatedUserFields, R as UsernameErrorCode, U as NameErrorCode, V as NAME_MAX_LENGTH, W as NameValidationResult, _ as RbacCoverageError, b as RbacCoverageSource, j as UserFieldError, t as index_d_exports$26, v as RbacCoverageOptions, y as RbacCoverageReport, z as UsernameValidationResult } from "./index-CIgoeobA.js";
39
+ import { A as normalizeTemplateKey, C as isSameTemplateKey, D as normalizeProductSlug, E as normalizeGraphQLName, F as templateKeyVariants, I as toCurrentName, L as toLegacyName, M as quotaKeyVariants, N as rbacResourceVariants, O as normalizeQuotaKey, P as readRenamedEnv, S as isSameRbacResource, T as normalizeBillingId, _ as isSameBillingId, a as ProductRename, b as isSameProductSlug, c as billingIdVariants, d as emitProductSlug, f as emitQuotaKey, g as isLegacyName, h as index_d_exports$22, i as PRODUCT_SLUG_ALIASES, j as productSlugVariants, k as normalizeRbacResource, l as emitBillingId, m as emitTemplateKey, n as PRODUCT_RENAMES, o as RENAME_CONCERNS, p as emitRbacResource, r as PRODUCT_RENAME_EMIT, s as RenameConcern, t as EmitGeneration, u as emitName, v as isSameGraphQLName, w as nameVariants, x as isSameQuotaKey, y as isSameName } from "./index-BBqooJ52.js";
40
+ export declare class ContextManager {
41
+ static getContext(): SDKContext | undefined;
42
+ static setContext(context: SDKContext): void;
43
+ static setCfAccessContext(clientId?: string, clientSecret?: string, cfAuthorization?: string): void;
44
+ static withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
45
+ static withContextSync<T>(context: SDKContext, fn: () => T): T;
46
+ static clearContext(): void;
47
+ static getActorId(): string | undefined;
48
+ static getUser(): string | undefined;
49
+ static getWorkspace(): string | undefined;
50
+ static getTenant(): string | undefined;
51
+ static getOrganization(): string | undefined;
52
+ static getProject(): string | undefined;
53
+ static getApp(): string | undefined;
54
+ static getToken(): string | undefined;
55
+ static getProduct(): string | undefined;
56
+ static getCfAccessClientId(): string | undefined;
57
+ static getCfAccessClientSecret(): string | undefined;
58
+ static getCfAuthorization(): string | undefined;
59
+ static getCfAccessHeaders(): Record<string, string>;
60
+ static updateContext(updates: Partial<SDKContext>): void;
61
+ static hasContext(): boolean;
62
+ static getCustomField(key: string): unknown;
63
+ static setCustomField(key: string, value: unknown): void;
64
+ }
101
65
  interface SearchOptions {
102
- query: string;
103
- resourceTypes?: string[];
104
- workspaceId?: string;
105
- organizationId?: string;
106
- projectId?: string;
107
- fields?: string[];
108
- fuzziness?: number;
109
- boosts?: Record<string, number>;
110
- filters?: SearchFilter[];
111
- sort?: SearchSort[];
112
- limit?: number;
113
- offset?: number;
114
- highlight?: boolean;
66
+ query: string;
67
+ resourceTypes?: string[];
68
+ workspaceId?: string;
69
+ organizationId?: string;
70
+ projectId?: string;
71
+ fields?: string[];
72
+ fuzziness?: number;
73
+ boosts?: Record<string, number>;
74
+ filters?: SearchFilter[];
75
+ sort?: SearchSort[];
76
+ limit?: number;
77
+ offset?: number;
78
+ highlight?: boolean;
115
79
  }
116
80
  interface SearchFilter {
117
- field: string;
118
- operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'range';
119
- value: unknown;
81
+ field: string;
82
+ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'range';
83
+ value: unknown;
120
84
  }
121
85
  interface SearchSort {
122
- field: string;
123
- order: 'asc' | 'desc';
86
+ field: string;
87
+ order: 'asc' | 'desc';
124
88
  }
125
89
  interface SearchResult {
126
- id: string;
127
- type: string;
128
- title: string;
129
- description?: string;
130
- data: Record<string, unknown>;
131
- workspaceId?: string;
132
- organizationId?: string;
133
- projectId?: string;
134
- score: number;
135
- highlights?: Record<string, string[]>;
136
- createdAt: string;
137
- updatedAt: string;
90
+ id: string;
91
+ type: string;
92
+ title: string;
93
+ description?: string;
94
+ data: Record<string, unknown>;
95
+ workspaceId?: string;
96
+ organizationId?: string;
97
+ projectId?: string;
98
+ score: number;
99
+ highlights?: Record<string, string[]>;
100
+ createdAt: string;
101
+ updatedAt: string;
138
102
  }
139
103
  interface SearchResponse {
140
- results: SearchResult[];
141
- total: number;
142
- took: number;
143
- aggregations?: Record<string, SearchAggregation>;
104
+ results: SearchResult[];
105
+ total: number;
106
+ took: number;
107
+ aggregations?: Record<string, SearchAggregation>;
144
108
  }
145
109
  interface SearchAggregation {
146
- buckets: Array<{
147
- key: string;
148
- count: number;
149
- }>;
110
+ buckets: Array<{
111
+ key: string;
112
+ count: number;
113
+ }>;
150
114
  }
151
115
  interface IndexDocumentOptions {
116
+ id: string;
117
+ type: string;
118
+ title: string;
119
+ description?: string;
120
+ content?: string;
121
+ data: Record<string, unknown>;
122
+ workspaceId?: string;
123
+ organizationId?: string;
124
+ projectId?: string;
125
+ tags?: string[];
126
+ metadata?: Record<string, unknown>;
127
+ }
128
+ export declare class SearchModule {
129
+ private client;
130
+ private context;
131
+ constructor(client: BurdenoffGraphQLClient, context: SDKContext);
132
+ search(options: SearchOptions): Promise<SearchResponse>;
133
+ indexDocument(options: IndexDocumentOptions): Promise<{
134
+ id: string;
135
+ indexed: boolean;
136
+ }>;
137
+ removeDocument(id: string, type: string): Promise<boolean>;
138
+ updateDocument(id: string, type: string, updates: Partial<IndexDocumentOptions>): Promise<{
152
139
  id: string;
153
- type: string;
154
- title: string;
155
- description?: string;
156
- content?: string;
157
- data: Record<string, unknown>;
140
+ updated: boolean;
141
+ }>;
142
+ indexDocumentsBulk(documents: IndexDocumentOptions[]): Promise<{
143
+ indexed: number;
144
+ failed: number;
145
+ errors: string[];
146
+ }>;
147
+ suggest(prefix: string, options?: {
148
+ resourceTypes?: string[];
149
+ limit?: number;
150
+ }): Promise<Array<{
151
+ text: string;
152
+ score: number;
153
+ type?: string;
154
+ }>>;
155
+ getRelated(documentId: string, options?: {
156
+ limit?: number;
157
+ minScore?: number;
158
+ }): Promise<SearchResult[]>;
159
+ aggregate(query: string, aggregations: Array<{
160
+ field: string;
161
+ type: 'terms' | 'date_histogram' | 'range';
162
+ size?: number;
163
+ }>): Promise<Record<string, SearchAggregation>>;
164
+ clearIndex(workspaceId?: string): Promise<{
165
+ deletedCount: number;
166
+ }>;
167
+ reindex(options?: {
158
168
  workspaceId?: string;
159
- organizationId?: string;
160
- projectId?: string;
161
- tags?: string[];
162
- metadata?: Record<string, unknown>;
169
+ resourceTypes?: string[];
170
+ }): Promise<{
171
+ indexed: number;
172
+ failed: number;
173
+ }>;
163
174
  }
164
- declare class SearchModule {
165
- private client;
166
- private context;
167
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
168
- search(options: SearchOptions): Promise<SearchResponse>;
169
- indexDocument(options: IndexDocumentOptions): Promise<{
170
- id: string;
171
- indexed: boolean;
172
- }>;
173
- removeDocument(id: string, type: string): Promise<boolean>;
174
- updateDocument(id: string, type: string, updates: Partial<IndexDocumentOptions>): Promise<{
175
- id: string;
176
- updated: boolean;
177
- }>;
178
- indexDocumentsBulk(documents: IndexDocumentOptions[]): Promise<{
179
- indexed: number;
180
- failed: number;
181
- errors: string[];
182
- }>;
183
- suggest(prefix: string, options?: {
184
- resourceTypes?: string[];
185
- limit?: number;
186
- }): Promise<Array<{
187
- text: string;
188
- score: number;
189
- type?: string;
190
- }>>;
191
- getRelated(documentId: string, options?: {
192
- limit?: number;
193
- minScore?: number;
194
- }): Promise<SearchResult[]>;
195
- aggregate(query: string, aggregations: Array<{
196
- field: string;
197
- type: 'terms' | 'date_histogram' | 'range';
198
- size?: number;
199
- }>): Promise<Record<string, SearchAggregation>>;
200
- clearIndex(workspaceId?: string): Promise<{
201
- deletedCount: number;
202
- }>;
203
- reindex(options?: {
204
- workspaceId?: string;
205
- resourceTypes?: string[];
206
- }): Promise<{
207
- indexed: number;
208
- failed: number;
209
- }>;
210
- }
211
-
212
175
  type SupportedLanguage = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'bn' | 'ta' | 'te' | 'ml';
213
176
  interface TranslationOptions {
214
- text: string;
215
- sourceLanguage?: SupportedLanguage;
216
- targetLanguage: SupportedLanguage;
217
- context?: string;
218
- variables?: Record<string, string | number>;
177
+ text: string;
178
+ sourceLanguage?: SupportedLanguage;
179
+ targetLanguage: SupportedLanguage;
180
+ context?: string;
181
+ variables?: Record<string, string | number>;
219
182
  }
220
183
  interface Translation {
221
- original: string;
222
- translated: string;
223
- sourceLanguage: string;
224
- targetLanguage: string;
225
- confidence?: number;
184
+ original: string;
185
+ translated: string;
186
+ sourceLanguage: string;
187
+ targetLanguage: string;
188
+ confidence?: number;
226
189
  }
227
190
  interface GetTranslationsOptions {
228
- keys: string[];
229
- language: SupportedLanguage;
230
- namespace?: string;
231
- fallbackLanguage?: SupportedLanguage;
191
+ keys: string[];
192
+ language: SupportedLanguage;
193
+ namespace?: string;
194
+ fallbackLanguage?: SupportedLanguage;
232
195
  }
233
196
  interface TranslationKey {
234
- key: string;
235
- value: string;
236
- language: SupportedLanguage;
237
- namespace?: string;
238
- description?: string;
239
- variables?: string[];
197
+ key: string;
198
+ value: string;
199
+ language: SupportedLanguage;
200
+ namespace?: string;
201
+ description?: string;
202
+ variables?: string[];
240
203
  }
241
204
  interface SetTranslationOptions {
242
- key: string;
243
- value: string;
244
- language: SupportedLanguage;
245
- namespace?: string;
246
- description?: string;
247
- variables?: string[];
205
+ key: string;
206
+ value: string;
207
+ language: SupportedLanguage;
208
+ namespace?: string;
209
+ description?: string;
210
+ variables?: string[];
248
211
  }
249
212
  type TranslationExportFormat = 'JSON' | 'CSV' | 'XLSX' | 'PO' | 'XLIFF';
250
213
  interface ProductTranslationTree {
251
- [key: string]: string | ProductTranslationTree;
214
+ [key: string]: string | ProductTranslationTree;
252
215
  }
253
216
  interface ExportProductTranslationsOptions {
254
- productId?: string;
255
- productName?: string;
256
- languageCode?: string;
257
- format?: TranslationExportFormat;
258
- decodeJson?: boolean;
217
+ productId?: string;
218
+ productName?: string;
219
+ languageCode?: string;
220
+ format?: TranslationExportFormat;
221
+ decodeJson?: boolean;
259
222
  }
260
223
  interface ProductTranslationsExportResult {
261
- format: TranslationExportFormat;
262
- url: string;
263
- translations?: Record<string, unknown>;
224
+ format: TranslationExportFormat;
225
+ url: string;
226
+ translations?: Record<string, unknown>;
264
227
  }
265
228
  interface UpsertProductTranslationsOptions {
266
- productId?: string;
267
- productName?: string;
268
- languageCode: string;
269
- translations: Record<string, string> | ProductTranslationTree;
270
- defaultValues?: Record<string, string> | ProductTranslationTree;
271
- updateExisting?: boolean;
272
- publish?: boolean;
229
+ productId?: string;
230
+ productName?: string;
231
+ languageCode: string;
232
+ translations: Record<string, string> | ProductTranslationTree;
233
+ defaultValues?: Record<string, string> | ProductTranslationTree;
234
+ updateExisting?: boolean;
235
+ publish?: boolean;
273
236
  }
274
237
  interface UpsertProductTranslationsResult {
275
- productId: string;
276
- languageCode: string;
277
- keysProcessed: number;
278
- createdKeys: number;
279
- updatedKeyDefaults: number;
280
- createdTranslations: number;
281
- updatedTranslations: number;
282
- }
283
- declare class TranslationModule {
284
- private client;
285
- private context;
286
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
287
- translate(options: TranslationOptions): Promise<Translation>;
288
- getTranslations(options: GetTranslationsOptions): Promise<Record<string, string>>;
289
- get(key: string, language: SupportedLanguage, variables?: Record<string, string | number>): Promise<string>;
290
- setTranslation(options: SetTranslationOptions): Promise<TranslationKey>;
291
- deleteTranslation(key: string, language: SupportedLanguage, namespace?: string): Promise<boolean>;
292
- setTranslationsBatch(translations: SetTranslationOptions[]): Promise<TranslationKey[]>;
293
- getAllTranslations(language: SupportedLanguage, namespace?: string): Promise<TranslationKey[]>;
294
- detectLanguage(text: string): Promise<{
295
- language: SupportedLanguage;
296
- confidence: number;
297
- }>;
298
- getSupportedLanguages(): Promise<Array<{
299
- code: SupportedLanguage;
300
- name: string;
301
- nativeName: string;
302
- }>>;
303
- importTranslations(language: SupportedLanguage, translations: Record<string, string>, namespace?: string): Promise<{
304
- imported: number;
305
- failed: number;
306
- }>;
307
- exportTranslations(language: SupportedLanguage, namespace?: string): Promise<Record<string, string>>;
308
- exportProductTranslations(options: ExportProductTranslationsOptions): Promise<ProductTranslationsExportResult>;
309
- upsertProductTranslations(options: UpsertProductTranslationsOptions): Promise<UpsertProductTranslationsResult>;
310
- private flattenTranslationTree;
311
- private decodeDataUrlJson;
312
- private resolveProductId;
313
- private findTranslationKeyByKey;
314
- private createTranslationKey;
315
- private updateTranslationKeyDefaultValue;
316
- private findGlobalTranslation;
317
- private createLanguageTranslation;
318
- private updateLanguageTranslation;
319
- private escapeRegex;
320
- private interpolate;
321
- formatPlural(_language: SupportedLanguage, count: number, translations: {
322
- zero?: string;
323
- one: string;
324
- other: string;
325
- }): string;
326
- formatDateTime(date: Date | string, language: SupportedLanguage, options?: Intl.DateTimeFormatOptions): string;
327
- formatNumber(number: number, language: SupportedLanguage, options?: Intl.NumberFormatOptions): string;
328
- formatCurrency(amount: number, currency: string, language: SupportedLanguage): string;
329
- }
330
-
238
+ productId: string;
239
+ languageCode: string;
240
+ keysProcessed: number;
241
+ createdKeys: number;
242
+ updatedKeyDefaults: number;
243
+ createdTranslations: number;
244
+ updatedTranslations: number;
245
+ }
246
+ export declare class TranslationModule {
247
+ private client;
248
+ private context;
249
+ constructor(client: BurdenoffGraphQLClient, context: SDKContext);
250
+ translate(options: TranslationOptions): Promise<Translation>;
251
+ getTranslations(options: GetTranslationsOptions): Promise<Record<string, string>>;
252
+ get(key: string, language: SupportedLanguage, variables?: Record<string, string | number>): Promise<string>;
253
+ setTranslation(options: SetTranslationOptions): Promise<TranslationKey>;
254
+ deleteTranslation(key: string, language: SupportedLanguage, namespace?: string): Promise<boolean>;
255
+ setTranslationsBatch(translations: SetTranslationOptions[]): Promise<TranslationKey[]>;
256
+ getAllTranslations(language: SupportedLanguage, namespace?: string): Promise<TranslationKey[]>;
257
+ detectLanguage(text: string): Promise<{
258
+ language: SupportedLanguage;
259
+ confidence: number;
260
+ }>;
261
+ getSupportedLanguages(): Promise<Array<{
262
+ code: SupportedLanguage;
263
+ name: string;
264
+ nativeName: string;
265
+ }>>;
266
+ importTranslations(language: SupportedLanguage, translations: Record<string, string>, namespace?: string): Promise<{
267
+ imported: number;
268
+ failed: number;
269
+ }>;
270
+ exportTranslations(language: SupportedLanguage, namespace?: string): Promise<Record<string, string>>;
271
+ exportProductTranslations(options: ExportProductTranslationsOptions): Promise<ProductTranslationsExportResult>;
272
+ upsertProductTranslations(options: UpsertProductTranslationsOptions): Promise<UpsertProductTranslationsResult>;
273
+ private flattenTranslationTree;
274
+ private decodeDataUrlJson;
275
+ private resolveProductId;
276
+ private findTranslationKeyByKey;
277
+ private createTranslationKey;
278
+ private updateTranslationKeyDefaultValue;
279
+ private findGlobalTranslation;
280
+ private createLanguageTranslation;
281
+ private updateLanguageTranslation;
282
+ private escapeRegex;
283
+ private interpolate;
284
+ formatPlural(_language: SupportedLanguage, count: number, translations: {
285
+ zero?: string;
286
+ one: string;
287
+ other: string;
288
+ }): string;
289
+ formatDateTime(date: Date | string, language: SupportedLanguage, options?: Intl.DateTimeFormatOptions): string;
290
+ formatNumber(number: number, language: SupportedLanguage, options?: Intl.NumberFormatOptions): string;
291
+ formatCurrency(amount: number, currency: string, language: SupportedLanguage): string;
292
+ }
331
293
  declare enum PaymentStatus {
332
- PENDING = "pending",
333
- PROCESSING = "processing",
334
- SUCCEEDED = "succeeded",
335
- FAILED = "failed",
336
- CANCELLED = "cancelled",
337
- REFUNDED = "refunded"
294
+ PENDING = "pending",
295
+ PROCESSING = "processing",
296
+ SUCCEEDED = "succeeded",
297
+ FAILED = "failed",
298
+ CANCELLED = "cancelled",
299
+ REFUNDED = "refunded"
338
300
  }
339
301
  declare enum PaymentMethod {
340
- CREDIT_CARD = "credit_card",
341
- DEBIT_CARD = "debit_card",
342
- BANK_TRANSFER = "bank_transfer",
343
- UPI = "upi",
344
- WALLET = "wallet",
345
- PAYPAL = "paypal",
346
- STRIPE = "stripe"
302
+ CREDIT_CARD = "credit_card",
303
+ DEBIT_CARD = "debit_card",
304
+ BANK_TRANSFER = "bank_transfer",
305
+ UPI = "upi",
306
+ WALLET = "wallet",
307
+ PAYPAL = "paypal",
308
+ STRIPE = "stripe"
347
309
  }
348
310
  declare enum SubscriptionStatus {
349
- ACTIVE = "active",
350
- INACTIVE = "inactive",
351
- CANCELLED = "cancelled",
352
- EXPIRED = "expired",
353
- PAST_DUE = "past_due",
354
- TRIALING = "trialing"
311
+ ACTIVE = "active",
312
+ INACTIVE = "inactive",
313
+ CANCELLED = "cancelled",
314
+ EXPIRED = "expired",
315
+ PAST_DUE = "past_due",
316
+ TRIALING = "trialing"
355
317
  }
356
318
  interface CreatePaymentOptions {
357
- amount: number;
358
- currency: string;
359
- paymentMethod: PaymentMethod;
360
- customerId: string;
361
- description?: string;
362
- metadata?: Record<string, unknown>;
363
- workspaceId?: string;
364
- organizationId?: string;
319
+ amount: number;
320
+ currency: string;
321
+ paymentMethod: PaymentMethod;
322
+ customerId: string;
323
+ description?: string;
324
+ metadata?: Record<string, unknown>;
325
+ workspaceId?: string;
326
+ organizationId?: string;
365
327
  }
366
328
  interface Payment {
367
- id: string;
368
- amount: number;
369
- currency: string;
370
- status: PaymentStatus;
371
- paymentMethod: PaymentMethod;
372
- customerId: string;
373
- description?: string;
374
- metadata?: Record<string, unknown>;
375
- workspaceId?: string;
376
- organizationId?: string;
377
- transactionId?: string;
378
- failureReason?: string;
379
- createdAt: string;
380
- updatedAt: string;
329
+ id: string;
330
+ amount: number;
331
+ currency: string;
332
+ status: PaymentStatus;
333
+ paymentMethod: PaymentMethod;
334
+ customerId: string;
335
+ description?: string;
336
+ metadata?: Record<string, unknown>;
337
+ workspaceId?: string;
338
+ organizationId?: string;
339
+ transactionId?: string;
340
+ failureReason?: string;
341
+ createdAt: string;
342
+ updatedAt: string;
381
343
  }
382
344
  interface CreateSubscriptionOptions {
383
- customerId: string;
384
- planId: string;
385
- paymentMethod: PaymentMethod;
386
- trialDays?: number;
387
- metadata?: Record<string, unknown>;
388
- workspaceId?: string;
389
- organizationId?: string;
345
+ customerId: string;
346
+ planId: string;
347
+ paymentMethod: PaymentMethod;
348
+ trialDays?: number;
349
+ metadata?: Record<string, unknown>;
350
+ workspaceId?: string;
351
+ organizationId?: string;
390
352
  }
391
353
  interface Subscription {
392
- id: string;
393
- customerId: string;
394
- planId: string;
395
- status: SubscriptionStatus;
396
- currentPeriodStart: string;
397
- currentPeriodEnd: string;
398
- trialEnd?: string;
399
- cancelledAt?: string;
400
- endedAt?: string;
401
- metadata?: Record<string, unknown>;
402
- workspaceId?: string;
403
- organizationId?: string;
404
- createdAt: string;
405
- updatedAt: string;
354
+ id: string;
355
+ customerId: string;
356
+ planId: string;
357
+ status: SubscriptionStatus;
358
+ currentPeriodStart: string;
359
+ currentPeriodEnd: string;
360
+ trialEnd?: string;
361
+ cancelledAt?: string;
362
+ endedAt?: string;
363
+ metadata?: Record<string, unknown>;
364
+ workspaceId?: string;
365
+ organizationId?: string;
366
+ createdAt: string;
367
+ updatedAt: string;
406
368
  }
407
369
  interface Plan {
408
- id: string;
409
- name: string;
410
- description?: string;
370
+ id: string;
371
+ name: string;
372
+ description?: string;
373
+ amount: number;
374
+ currency: string;
375
+ interval: 'day' | 'week' | 'month' | 'year';
376
+ intervalCount: number;
377
+ features?: string[];
378
+ metadata?: Record<string, unknown>;
379
+ active: boolean;
380
+ createdAt: string;
381
+ }
382
+ interface GetPaymentsOptions {
383
+ customerId?: string;
384
+ status?: PaymentStatus;
385
+ workspaceId?: string;
386
+ organizationId?: string;
387
+ startDate?: string;
388
+ endDate?: string;
389
+ limit?: number;
390
+ offset?: number;
391
+ }
392
+ export declare class PaymentsModule {
393
+ private client;
394
+ private context;
395
+ constructor(client: BurdenoffGraphQLClient, context: SDKContext);
396
+ createPayment(options: CreatePaymentOptions): Promise<Payment>;
397
+ getPayment(paymentId: string): Promise<Payment>;
398
+ getPayments(options: GetPaymentsOptions): Promise<{
399
+ payments: Payment[];
400
+ total: number;
401
+ }>;
402
+ refundPayment(paymentId: string, amount?: number, reason?: string): Promise<Payment>;
403
+ verifyPayment(paymentId: string, verificationData: Record<string, unknown>): Promise<{
404
+ verified: boolean;
405
+ status: PaymentStatus;
406
+ }>;
407
+ createSubscription(options: CreateSubscriptionOptions): Promise<Subscription>;
408
+ getSubscription(subscriptionId: string): Promise<Subscription>;
409
+ cancelSubscription(subscriptionId: string, cancelAtPeriodEnd?: boolean): Promise<Subscription>;
410
+ getCustomerSubscriptions(customerId: string): Promise<Subscription[]>;
411
+ getPlans(activeOnly?: boolean): Promise<Plan[]>;
412
+ createPaymentIntent(options: {
411
413
  amount: number;
412
414
  currency: string;
413
- interval: 'day' | 'week' | 'month' | 'year';
414
- intervalCount: number;
415
- features?: string[];
415
+ customerId: string;
416
+ paymentMethod?: PaymentMethod;
416
417
  metadata?: Record<string, unknown>;
417
- active: boolean;
418
- createdAt: string;
419
- }
420
- interface GetPaymentsOptions {
421
- customerId?: string;
422
- status?: PaymentStatus;
423
- workspaceId?: string;
424
- organizationId?: string;
418
+ }): Promise<{
419
+ clientSecret: string;
420
+ paymentIntentId: string;
421
+ }>;
422
+ getPaymentStats(options?: {
425
423
  startDate?: string;
426
424
  endDate?: string;
427
- limit?: number;
428
- offset?: number;
429
- }
430
- declare class PaymentsModule {
431
- private client;
432
- private context;
433
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
434
- createPayment(options: CreatePaymentOptions): Promise<Payment>;
435
- getPayment(paymentId: string): Promise<Payment>;
436
- getPayments(options: GetPaymentsOptions): Promise<{
437
- payments: Payment[];
438
- total: number;
439
- }>;
440
- refundPayment(paymentId: string, amount?: number, reason?: string): Promise<Payment>;
441
- verifyPayment(paymentId: string, verificationData: Record<string, unknown>): Promise<{
442
- verified: boolean;
443
- status: PaymentStatus;
444
- }>;
445
- createSubscription(options: CreateSubscriptionOptions): Promise<Subscription>;
446
- getSubscription(subscriptionId: string): Promise<Subscription>;
447
- cancelSubscription(subscriptionId: string, cancelAtPeriodEnd?: boolean): Promise<Subscription>;
448
- getCustomerSubscriptions(customerId: string): Promise<Subscription[]>;
449
- getPlans(activeOnly?: boolean): Promise<Plan[]>;
450
- createPaymentIntent(options: {
451
- amount: number;
452
- currency: string;
453
- customerId: string;
454
- paymentMethod?: PaymentMethod;
455
- metadata?: Record<string, unknown>;
456
- }): Promise<{
457
- clientSecret: string;
458
- paymentIntentId: string;
459
- }>;
460
- getPaymentStats(options?: {
461
- startDate?: string;
462
- endDate?: string;
463
- workspaceId?: string;
464
- }): Promise<{
465
- totalRevenue: number;
466
- totalPayments: number;
467
- successfulPayments: number;
468
- failedPayments: number;
469
- refundedAmount: number;
470
- averagePaymentAmount: number;
471
- }>;
472
- }
473
-
425
+ workspaceId?: string;
426
+ }): Promise<{
427
+ totalRevenue: number;
428
+ totalPayments: number;
429
+ successfulPayments: number;
430
+ failedPayments: number;
431
+ refundedAmount: number;
432
+ averagePaymentAmount: number;
433
+ }>;
434
+ }
474
435
  type HeaderValue = string | string[] | undefined;
475
436
  interface BootstrapConfig extends SDKConfig {
476
- database?: DatabaseConfig;
477
- healthCheck?: boolean;
478
- healthCheckInterval?: number;
479
- modules?: string[];
480
- environment?: 'development' | 'staging' | 'production';
481
- serviceName?: string;
482
- serviceVersion?: string;
483
- healthCheckPort?: number;
437
+ database?: DatabaseConfig;
438
+ healthCheck?: boolean;
439
+ healthCheckInterval?: number;
440
+ modules?: string[];
441
+ environment?: 'development' | 'staging' | 'production';
442
+ serviceName?: string;
443
+ serviceVersion?: string;
444
+ healthCheckPort?: number;
484
445
  }
485
446
  interface BootstrapResult {
486
- success: boolean;
447
+ success: boolean;
448
+ serviceName: string;
449
+ serviceVersion: string;
450
+ environment: string;
451
+ startedAt: string;
452
+ modules: string[];
453
+ databaseConnected: boolean;
454
+ healthCheckEnabled: boolean;
455
+ }
456
+ interface BootstrapHealthCheckResult {
457
+ healthy: boolean;
458
+ checks: {
459
+ database?: boolean;
460
+ graphql?: boolean;
461
+ memory?: {
462
+ used: number;
463
+ total: number;
464
+ percentage: number;
465
+ };
466
+ uptime?: number;
467
+ };
468
+ timestamp: string;
469
+ }
470
+ export declare class BootstrapModule {
471
+ private config;
472
+ private startTime;
473
+ private healthCheckInterval?;
474
+ constructor(config: BootstrapConfig);
475
+ bootstrap(): Promise<BootstrapResult>;
476
+ private validateConfiguration;
477
+ private connectDatabase;
478
+ private loadModules;
479
+ private setupHealthChecks;
480
+ performHealthCheck(): Promise<BootstrapHealthCheckResult>;
481
+ private setupSignalHandlers;
482
+ private cleanup;
483
+ getInfo(): {
487
484
  serviceName: string;
488
485
  serviceVersion: string;
489
486
  environment: string;
487
+ uptime: number;
490
488
  startedAt: string;
491
- modules: string[];
492
- databaseConnected: boolean;
493
- healthCheckEnabled: boolean;
494
- }
495
- interface BootstrapHealthCheckResult {
496
- healthy: boolean;
497
- checks: {
498
- database?: boolean;
499
- graphql?: boolean;
500
- memory?: {
501
- used: number;
502
- total: number;
503
- percentage: number;
504
- };
505
- uptime?: number;
506
- };
507
- timestamp: string;
508
- }
509
- declare class BootstrapModule {
510
- private config;
511
- private startTime;
512
- private healthCheckInterval?;
513
- constructor(config: BootstrapConfig);
514
- bootstrap(): Promise<BootstrapResult>;
515
- private validateConfiguration;
516
- private connectDatabase;
517
- private loadModules;
518
- private setupHealthChecks;
519
- performHealthCheck(): Promise<BootstrapHealthCheckResult>;
520
- private setupSignalHandlers;
521
- private cleanup;
522
- getInfo(): {
523
- serviceName: string;
524
- serviceVersion: string;
525
- environment: string;
526
- uptime: number;
527
- startedAt: string;
528
- };
529
- setupDefaultContext(context: SDKContext): void;
530
- createContextMiddleware(): (req: {
531
- headers: Record<string, HeaderValue>;
532
- user?: unknown;
533
- }, _res: unknown, next: () => void) => Promise<void>;
534
- private extractContextFromRequest;
535
- loadSchema(schemaPath: string): Promise<boolean>;
536
- onShutdown(callback: () => Promise<void> | void): void;
537
- isReady(): Promise<boolean>;
538
- getMetrics(): {
539
- memory: NodeJS.MemoryUsage;
540
- uptime: number;
541
- cpu: NodeJS.CpuUsage;
542
- };
543
- }
544
- declare function createBootstrap(config: BootstrapConfig): BootstrapModule;
545
-
489
+ };
490
+ setupDefaultContext(context: SDKContext): void;
491
+ createContextMiddleware(): (req: {
492
+ headers: Record<string, HeaderValue>;
493
+ user?: unknown;
494
+ }, _res: unknown, next: () => void) => Promise<void>;
495
+ private extractContextFromRequest;
496
+ loadSchema(schemaPath: string): Promise<boolean>;
497
+ onShutdown(callback: () => Promise<void> | void): void;
498
+ isReady(): Promise<boolean>;
499
+ getMetrics(): {
500
+ memory: NodeJS.MemoryUsage;
501
+ uptime: number;
502
+ cpu: NodeJS.CpuUsage;
503
+ };
504
+ }
505
+ export declare function createBootstrap(config: BootstrapConfig): BootstrapModule;
546
506
  interface TenantBackendClientConfig {
547
- tenantBackendUrl: string;
548
- workspacesBackendUrl?: string;
549
- apiKey?: string;
550
- }
551
- declare class TenantBackendClient {
552
- private graphqlClient;
553
- private config;
554
- readonly notifications: TenantNotificationsModule;
555
- constructor(config: TenantBackendClientConfig);
556
- setAuthToken(token: string): void;
557
- query<T>(query: string, variables?: Record<string, unknown>): Promise<T>;
558
- healthCheck(): Promise<boolean>;
559
- getClient(): BurdenoffGraphQLClient;
560
- getConfig(): TenantBackendClientConfig;
561
- }
562
- declare function createTenantBackendClient(config: TenantBackendClientConfig): TenantBackendClient;
563
-
564
- declare class BurdenoffSDK {
565
- private client;
566
- private defaultContext;
567
- private eventPublisher;
568
- private eventPublisherInitPromise;
569
- private eventQueueConfig;
570
- private initializationPromise;
571
- private isShuttingDown;
572
- readonly auth: AuthModule;
573
- readonly notifications: NotificationsModule;
574
- readonly tenantNotifications: TenantNotificationsModule;
575
- readonly rbac: RBACModule;
576
- readonly activity: ActivityModule;
577
- readonly usage: UsageModule;
578
- readonly tracker: TrackerModule;
579
- readonly database: typeof DatabaseModule;
580
- readonly events: EventsModule;
581
- readonly graph: GraphModule;
582
- readonly search: SearchModule;
583
- readonly translation: TranslationModule;
584
- readonly payments: PaymentsModule;
585
- private _temporal;
586
- private _temporalPromise;
587
- private _temporalConfig;
588
- getTemporalModule(): Promise<TemporalModule>;
589
- private loadTemporalModule;
590
- readonly logger: Logger;
591
- readonly context: typeof ContextManager;
592
- constructor(config: SDKConfig, defaultContext?: SDKContext);
593
- private scheduleBackgroundInit;
594
- setContext(context: SDKContext): void;
595
- getContext(): SDKContext | undefined;
596
- withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
597
- private initializeAsync;
598
- private initializeEventQueue;
599
- getEventPublisher(): Promise<IEventPublisher>;
600
- waitForReady(): Promise<void>;
601
- isEventQueueHealthy(): Promise<EventQueueHealthStatus>;
602
- isTemporalHealthy(): Promise<TemporalHealthStatus>;
603
- getHealthStatus(): Promise<SDKHealthStatus>;
604
- shutdown(options?: SDKShutdownOptions): Promise<void>;
605
- static createBootstrap(config: Parameters<typeof createBootstrap>[0]): BootstrapModule;
606
- }
607
-
608
- declare function createSDK(config: SDKConfig, context?: SDKContext): BurdenoffSDK;
609
-
610
- export { ActivityModule, AuthModule, BootstrapModule, BurdenoffGraphQLClient, BurdenoffSDK, ContextManager, DatabaseModule, EventQueueHealthStatus, EventsModule, type ExportProductTranslationsOptions, GraphModule, NotificationsModule, PaymentsModule, type ProductTranslationTree, type ProductTranslationsExportResult, RBACModule, SDKConfig, SDKContext, SDKHealthStatus, SDKShutdownOptions, SearchModule, TemporalHealthStatus, TemporalModule, TenantBackendClient, type TenantBackendClientConfig, TrackerModule, type TranslationExportFormat, TranslationModule, type UpsertProductTranslationsOptions, type UpsertProductTranslationsResult, UsageModule, createBootstrap, createSDK, createTenantBackendClient, BurdenoffSDK as default };
507
+ tenantBackendUrl: string;
508
+ workspacesBackendUrl?: string;
509
+ apiKey?: string;
510
+ }
511
+ export declare class TenantBackendClient {
512
+ private graphqlClient;
513
+ private config;
514
+ readonly notifications: TenantNotificationsModule;
515
+ constructor(config: TenantBackendClientConfig);
516
+ setAuthToken(token: string): void;
517
+ query<T>(query: string, variables?: Record<string, unknown>): Promise<T>;
518
+ healthCheck(): Promise<boolean>;
519
+ getClient(): BurdenoffGraphQLClient;
520
+ getConfig(): TenantBackendClientConfig;
521
+ }
522
+ export declare function createTenantBackendClient(config: TenantBackendClientConfig): TenantBackendClient;
523
+ export declare class BurdenoffSDK {
524
+ private client;
525
+ private defaultContext;
526
+ private eventPublisher;
527
+ private eventPublisherInitPromise;
528
+ private eventQueueConfig;
529
+ private initializationPromise;
530
+ private isShuttingDown;
531
+ readonly auth: AuthModule;
532
+ readonly notifications: NotificationsModule;
533
+ readonly tenantNotifications: TenantNotificationsModule;
534
+ readonly rbac: RBACModule;
535
+ readonly activity: ActivityModule;
536
+ readonly usage: UsageModule;
537
+ readonly tracker: TrackerModule;
538
+ readonly database: typeof DatabaseModule;
539
+ readonly events: EventsModule;
540
+ readonly graph: GraphModule;
541
+ readonly search: SearchModule;
542
+ readonly translation: TranslationModule;
543
+ readonly payments: PaymentsModule;
544
+ private _temporal;
545
+ private _temporalPromise;
546
+ private _temporalConfig;
547
+ getTemporalModule(): Promise<TemporalModule>;
548
+ private loadTemporalModule;
549
+ readonly logger: Logger;
550
+ readonly context: typeof ContextManager;
551
+ constructor(config: SDKConfig, defaultContext?: SDKContext);
552
+ private scheduleBackgroundInit;
553
+ setContext(context: SDKContext): void;
554
+ getContext(): SDKContext | undefined;
555
+ withContext<T>(context: SDKContext, fn: () => Promise<T>): Promise<T>;
556
+ private initializeAsync;
557
+ private initializeEventQueue;
558
+ getEventPublisher(): Promise<IEventPublisher>;
559
+ waitForReady(): Promise<void>;
560
+ isEventQueueHealthy(): Promise<EventQueueHealthStatus>;
561
+ isTemporalHealthy(): Promise<TemporalHealthStatus>;
562
+ getHealthStatus(): Promise<SDKHealthStatus>;
563
+ shutdown(options?: SDKShutdownOptions): Promise<void>;
564
+ static createBootstrap(config: Parameters<typeof createBootstrap>[0]): BootstrapModule;
565
+ }
566
+ export declare function createSDK(config: SDKConfig, context?: SDKContext): BurdenoffSDK;
567
+ export { type Activity, type ActivityActorType, ActivityModule, ActivityOperationUnsupportedError, index_d_exports as AiCredits, AuthModule, type BillingPlanTransport, BillingUsageClient, type BillingUsageClientConfig, type BillingUsageOperationInput, BurdenoffGraphQLClient, BurdenoffSDK as default, index_d_exports$1 as Cache, index_d_exports$2 as Captcha, type CircuitBreakerConfig, index_d_exports$3 as Crypto, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_GATEWAY_RETRY_CONFIG, DEFAULT_GATEWAY_ROUTING, DEFAULT_LAYER_RESOURCES, DEFAULT_LAYER_STREAMS, index_d_exports$4 as DataLoader, DatabaseModule, type EmitGeneration, index_d_exports$5 as EventQueue, type EventQueueHealthStatus, type EventQueueSDKConfig, EventsModule, index_d_exports$6 as Export, type ExportProductTranslationsOptions, index_d_exports$7 as FeatureFlags, index_d_exports$8 as Files, index_d_exports$9 as Gateway, type GatewayRequestHeaders, type GatewayRetryConfig, type GatewayRoutingConfig, type GetActivitiesOptions, index_d_exports$10 as Graph, GraphModule, index_d_exports$11 as GraphQL, index_d_exports$12 as I18n, type I18nCapableContext, index_d_exports$13 as Init, index_d_exports$14 as Instrumentation, index_d_exports$15 as Layer, type LayerAwareRBACConfig, type LayerConfig, type LayerFullConfig, type LayerGatewayConfig, type LayerResourceUrls, index_d_exports$16 as Lifecycle, type LogActivityOptions, index_d_exports$17 as Logger, type LoggerConfig, type LoggerTransport, index_d_exports$18 as Middleware, NAME_MAX_LENGTH, NAME_MIN_LENGTH, type NameErrorCode, type NameValidationResult, tenant_notifications_d_exports as Notifications, NotificationsModule, index_d_exports$19 as Observability, type OrgBillingUsageOperationInput, PRODUCT_RENAMES, PRODUCT_RENAME_EMIT, PRODUCT_SLUG_ALIASES, type PlanTier, index_d_exports$20 as Platform, index_d_exports$21 as Prisma, index_d_exports$22 as ProductAlias, type ProductRename, type ProductTranslationTree, type ProductTranslationsExportResult, type QuotaLimit, type RBACDirectiveConfig, RBACModule, RENAME_CONCERNS, RESOURCE_CAP_DEFAULTS, RbacCoverageError, type RbacCoverageOptions, type RbacCoverageReport, type RbacCoverageSource, type RecaptchaVerifyOptions, type RecaptchaVerifyResult, type RenameConcern, type ResourceCap, type ResourceCapDefaults, ResourceCapExceededError, type ResourceCapsConfig, ResourceCapsModule, type ResourceName, type SDKConfig, type SDKContext, type SDKHealthStatus, type SDKShutdownOptions, type ServiceLayer, index_d_exports$23 as Sharing, type ShutdownDisposable, index_d_exports$24 as Tags, TemporalClient, type TemporalClientConfig, TemporalClientFactory, type TemporalHealthStatus, TemporalModule, TemporalWorker, type TemporalWorkerConfig, TemporalWorkerFactory, TemporalWorkerManager, type TenantBackendClientConfig, TrackerModule, type TranslationExportFormat, type Translator, USERNAME_MAX_LENGTH, USERNAME_MIN_LENGTH, type UpsertProductTranslationsOptions, type UpsertProductTranslationsResult, UsageModule, type UserFieldError, type UserFieldKey, type UserFieldsValidationResult, type UsernameErrorCode, type UsernameValidationResult, index_d_exports$25 as Utils, type ValidatedUserFields, index_d_exports$26 as Validation, type WorkflowStartOptions, type WorkspaceBillingUsageOperationInput, type WorkspaceResourceCapScope, analyzeRbacCoverage, assertRbacCoverage, billingIdVariants, configureResourceCaps, createInternalClient, createInternalClientForTenant, createInternalClientForWorkspaces, createRBACDirective, createRBACDirectiveForLayer, createRBACDirectiveFromEnv, createTranslator, disposeAll, emitBillingId, emitName, emitProductSlug, emitQuotaKey, emitRbacResource, emitTemplateKey, getLanguage, getLocale, getRegisteredDisposableCount, getResourceCaps, hasI18n, isCaptchaEnabled, isLegacyName, isSameBillingId, isSameGraphQLName, isSameName, isSameProductSlug, isSameQuotaKey, isSameRbacResource, isSameTemplateKey, lengthInCodePoints, nameVariants, normalizeBillingId, normalizeGraphQLName, normalizeProductSlug, normalizeQuotaKey, normalizeRbacResource, normalizeTemplateKey, productSlugVariants, quotaKeyVariants, rbacResourceVariants, readRenamedEnv, registerDisposable, t, templateKeyVariants, toCurrentName, toLegacyName, unregisterDisposable, validateName, validateUserFields, validateUsername, verifyCaptcha, verifyCaptchaIfEnabled };