@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
@@ -0,0 +1,34 @@
1
+ interface MetricsMiddlewareConfig {
2
+ slowRequestThreshold?: number;
3
+ enableDetailedLogging?: boolean;
4
+ }
5
+ interface CSPDirectives {
6
+ defaultSrc?: string[];
7
+ scriptSrc?: string[];
8
+ styleSrc?: string[];
9
+ imgSrc?: string[];
10
+ connectSrc?: string[];
11
+ fontSrc?: string[];
12
+ frameSrc?: string[];
13
+ frameAncestors?: string[];
14
+ baseUri?: string[];
15
+ formAction?: string[];
16
+ upgradeInsecureRequests?: [] | null;
17
+ }
18
+ interface SecurityMiddlewareConfig {
19
+ csrfSkipRoutes?: string[];
20
+ loginEndpoints?: string[];
21
+ cspDirectives?: CSPDirectives;
22
+ enableCSRF?: boolean;
23
+ enableSessionSecurity?: boolean;
24
+ csrfTokenExpiry?: number;
25
+ helmetConfig?: {
26
+ crossOriginEmbedderPolicy?: boolean;
27
+ crossOriginResourcePolicy?: boolean;
28
+ };
29
+ }
30
+ interface MiddlewareConfig {
31
+ metrics?: MetricsMiddlewareConfig;
32
+ security?: SecurityMiddlewareConfig;
33
+ }
34
+ export { SecurityMiddlewareConfig as i, MetricsMiddlewareConfig as n, MiddlewareConfig as r, CSPDirectives as t };
@@ -0,0 +1,90 @@
1
+ import "./layer-Bcix-WCl.js";
2
+
3
+ // src/types/index.ts
4
+ /**
5
+ * SDK Error base class
6
+ */
7
+ var SDKError = class SDKError extends Error {
8
+ code;
9
+ details;
10
+ constructor(message, code, details) {
11
+ super(message);
12
+ this.code = code;
13
+ this.details = details;
14
+ this.name = "SDKError";
15
+ Object.setPrototypeOf(this, SDKError.prototype);
16
+ }
17
+ };
18
+ /**
19
+ * Permission denied error
20
+ */
21
+ var PermissionDeniedError = class PermissionDeniedError extends SDKError {
22
+ constructor(message, details) {
23
+ super(message, "PERMISSION_DENIED", details);
24
+ this.name = "PermissionDeniedError";
25
+ Object.setPrototypeOf(this, PermissionDeniedError.prototype);
26
+ }
27
+ };
28
+ /**
29
+ * Authentication error
30
+ */
31
+ var AuthenticationError = class AuthenticationError extends SDKError {
32
+ constructor(message, details) {
33
+ super(message, "AUTHENTICATION_ERROR", details);
34
+ this.name = "AuthenticationError";
35
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
36
+ }
37
+ };
38
+ /**
39
+ * API error from backend
40
+ */
41
+ var APIError = class APIError extends SDKError {
42
+ constructor(message, details) {
43
+ super(message, "API_ERROR", details);
44
+ this.name = "APIError";
45
+ Object.setPrototypeOf(this, APIError.prototype);
46
+ }
47
+ };
48
+ /**
49
+ * Validation error
50
+ */
51
+ var ValidationError = class ValidationError extends SDKError {
52
+ constructor(message, details) {
53
+ super(message, "VALIDATION_ERROR", details);
54
+ this.name = "ValidationError";
55
+ Object.setPrototypeOf(this, ValidationError.prototype);
56
+ }
57
+ };
58
+ /**
59
+ * Quota exceeded error
60
+ */
61
+ var QuotaExceededError = class QuotaExceededError extends SDKError {
62
+ constructor(message, details) {
63
+ super(message, "QUOTA_EXCEEDED", details);
64
+ this.name = "QuotaExceededError";
65
+ Object.setPrototypeOf(this, QuotaExceededError.prototype);
66
+ }
67
+ };
68
+ /**
69
+ * Network error
70
+ */
71
+ var NetworkError = class NetworkError extends SDKError {
72
+ constructor(message, details) {
73
+ super(message, "NETWORK_ERROR", details);
74
+ this.name = "NetworkError";
75
+ Object.setPrototypeOf(this, NetworkError.prototype);
76
+ }
77
+ };
78
+ /**
79
+ * Timeout error
80
+ */
81
+ var TimeoutError = class TimeoutError extends SDKError {
82
+ constructor(message, details) {
83
+ super(message, "TIMEOUT_ERROR", details);
84
+ this.name = "TimeoutError";
85
+ Object.setPrototypeOf(this, TimeoutError.prototype);
86
+ }
87
+ };
88
+
89
+ export { QuotaExceededError as a, ValidationError as c, PermissionDeniedError as i, AuthenticationError as n, SDKError as o, NetworkError as r, TimeoutError as s, APIError as t };
90
+ //# sourceMappingURL=types-Cj2RWXbz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-Cj2RWXbz.js","names":[],"sources":["../src/types/index.ts"],"sourcesContent":["/**\n * Core type definitions for Burdenoff Backend SDK\n */\n\nimport type { ServiceLayer } from './layer.js';\n\n/**\n * SDK Configuration\n */\nexport interface SDKConfig {\n /** Workspaces API GraphQL endpoint (should point to wspace-int-gateway for M2M calls) */\n workspacesApiUrl: string;\n /**\n * Tenant API GraphQL endpoint for cross-layer (wspace → global) M2M calls.\n * Cross-layer traffic must go through the **public** global gateway\n * (`GLOBAL_PUBLIC_GATEWAY_URL`). In alpha and production this is the private\n * Route53 address of that gateway; the internal gateway is for same-layer calls.\n */\n tenantApiUrl?: string;\n /**\n * Calling service's layer (`wspace` | `global`). Used to construct the\n * cross-layer GatewayClient. Defaults to the `SERVICE_LAYER` env var, then\n * `wspace`.\n */\n serviceLayer?: ServiceLayer;\n /**\n * Calling service name. Used as the cross-layer GatewayClient service identity\n * and the `sub` of the minted service JWT. Defaults to the `SERVICE_NAME` env\n * var, then `burdenoff-be-sdk`.\n */\n serviceName?: string;\n /** Default timeout for API requests in milliseconds */\n timeout?: number;\n /** Retry configuration */\n retry?: RetryConfig;\n /** Logger configuration */\n logger?: LoggerConfig;\n /** Event queue configuration (Redis Streams). Reads `REDIS_URL` when present. */\n eventQueue?: EventQueueSDKConfig;\n /** Temporal module type (workspace or tenant) */\n temporalModuleType?: 'workspace' | 'tenant';\n /** Temporal server address */\n temporalAddress?: string;\n /** Temporal namespace */\n temporalNamespace?: string;\n /** Temporal task queue */\n temporalTaskQueue?: string;\n /** Auto-connect to Temporal (default: true) */\n temporalAutoConnect?: boolean;\n}\n\n/**\n * Retry configuration for API requests\n */\nexport interface RetryConfig {\n /** Maximum number of retry attempts */\n maxAttempts: number;\n /** Initial retry delay in milliseconds */\n initialDelay: number;\n /** Maximum retry delay in milliseconds */\n maxDelay: number;\n /** Backoff multiplier */\n backoffMultiplier: number;\n}\n\n/**\n * Logger configuration\n */\nexport interface LoggerConfig {\n /** Log level */\n level: 'debug' | 'info' | 'warn' | 'error';\n /** Enable console output */\n console: boolean;\n /** Custom logger transport */\n transport?: LoggerTransport;\n}\n\n/**\n * Custom logger transport interface\n */\nexport interface LoggerTransport {\n log(level: string, message: string, meta?: Record<string, unknown>): void;\n}\n\n/**\n * Actor type for RBAC authorization\n * - user: Direct user request (via frontend)\n * - app: OAuth app acting on behalf of user\n * - service: M2M service-to-service communication\n * - super_admin: Platform administration (bypasses all checks)\n */\nexport type ActorType = 'user' | 'app' | 'service' | 'super_admin';\n\n/**\n * Request context passed with every SDK operation\n */\nexport interface SDKContext {\n /** Actor ID - identifies the entity making the request */\n actorId?: string;\n /** Actor type - determines authorization behavior */\n actorType?: ActorType;\n /** Workspace ID */\n workspaceId?: string;\n /** Organization routing context for gateway calls. */\n organizationId?: string;\n /** Tenant ID */\n tenantId?: string;\n /** Project ID */\n projectId?: string;\n /** App ID */\n appId?: string;\n /** JWT token for authentication */\n token?: string;\n /** Product ID */\n productId?: string;\n /**\n * Cloudflare Access service-token client id, captured from the inbound\n * `cf-access-client-id` header. Re-presented on cross-layer outbound calls so\n * the peer layer's CF-Access-gated public gateway admits the request.\n */\n cfAccessClientId?: string;\n /**\n * Cloudflare Access service-token client secret, from `cf-access-client-secret`.\n * Sensitive — redacted by the SDK logger's secret pattern; never log directly.\n */\n cfAccessClientSecret?: string;\n /**\n * Cloudflare Access USER-SSO credential — the `CF_Authorization` cookie value,\n * forwarded by the public gateway as `x-cf-authorization`. On alpha a real user\n * request carries this (not the service-token pair); re-presented as the\n * `CF_Authorization` cookie on cross-layer outbound calls so the peer layer's\n * CF-Access-gated public gateway (same CF-Access app / shared AUD) admits it.\n * Sensitive — never log directly. See BOFF-2929.\n */\n cfAuthorization?: string;\n /** Additional custom context */\n [key: string]: unknown;\n}\n\n/**\n * SDK Error base class\n */\nexport class SDKError extends Error {\n constructor(\n message: string,\n public code: string,\n public details?: Record<string, unknown>\n ) {\n super(message);\n this.name = 'SDKError';\n Object.setPrototypeOf(this, SDKError.prototype);\n }\n}\n\n/**\n * Permission denied error\n */\nexport class PermissionDeniedError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'PERMISSION_DENIED', details);\n this.name = 'PermissionDeniedError';\n Object.setPrototypeOf(this, PermissionDeniedError.prototype);\n }\n}\n\n/**\n * Authentication error\n */\nexport class AuthenticationError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'AUTHENTICATION_ERROR', details);\n this.name = 'AuthenticationError';\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n}\n\n/**\n * API error from backend\n */\nexport class APIError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'API_ERROR', details);\n this.name = 'APIError';\n Object.setPrototypeOf(this, APIError.prototype);\n }\n}\n\n/**\n * Validation error\n */\nexport class ValidationError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'VALIDATION_ERROR', details);\n this.name = 'ValidationError';\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n}\n\n/**\n * Quota exceeded error\n */\nexport class QuotaExceededError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'QUOTA_EXCEEDED', details);\n this.name = 'QuotaExceededError';\n Object.setPrototypeOf(this, QuotaExceededError.prototype);\n }\n}\n\n/**\n * Network error\n */\nexport class NetworkError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'NETWORK_ERROR', details);\n this.name = 'NetworkError';\n Object.setPrototypeOf(this, NetworkError.prototype);\n }\n}\n\n/**\n * Timeout error\n */\nexport class TimeoutError extends SDKError {\n constructor(message: string, details?: Record<string, unknown>) {\n super(message, 'TIMEOUT_ERROR', details);\n this.name = 'TimeoutError';\n Object.setPrototypeOf(this, TimeoutError.prototype);\n }\n}\n\n/**\n * Event queue SDK configuration (Redis Streams backend).\n *\n * The publisher is created via `createPublisher()` from\n * `@burdenoff/be-sdk/event-queue` and reads `REDIS_URL` from the env.\n * The fields here are for client-name + reconnect tuning only.\n */\nexport interface EventQueueSDKConfig {\n /** Redis Streams server URL. Overrides `REDIS_URL` env if set. */\n url?: string;\n /** Optional password for TLS/auth */\n password?: string;\n /** Maximum reconnect attempts (default: -1 = infinite) */\n maxReconnectAttempts?: number;\n /** Reconnect time wait in milliseconds (default: 2000) */\n reconnectTimeWait?: number;\n /** Client name for logging (default: service name) */\n name?: string;\n /** Auto-connect on SDK initialization (default: true) */\n autoConnect?: boolean;\n}\n\n/**\n * Event queue health status\n */\nexport interface EventQueueHealthStatus {\n status: 'healthy' | 'unhealthy' | 'not_configured';\n connected: boolean;\n url?: string;\n details?: Record<string, unknown>;\n}\n\n/**\n * Temporal health status\n */\nexport interface TemporalHealthStatus {\n status: 'healthy' | 'unhealthy' | 'not_configured';\n connected: boolean;\n address?: string;\n namespace?: string;\n details?: Record<string, unknown>;\n}\n\n/**\n * Overall SDK health status\n */\nexport interface SDKHealthStatus {\n eventQueue: EventQueueHealthStatus;\n temporal: TemporalHealthStatus;\n}\n\n/**\n * SDK shutdown options\n */\nexport interface SDKShutdownOptions {\n /** Shutdown timeout in milliseconds (default: 5000) */\n timeout?: number;\n /** Force shutdown even if timeout is exceeded (default: true) */\n force?: boolean;\n}\n\n// ============================================================================\n// Layer Types Export\n// ============================================================================\n\n/**\n * Re-export all layer-related types for convenience\n */\nexport type {\n ServiceLayer,\n LayerConfig,\n LayerGatewayConfig,\n LayerResourceUrls,\n LayerFullConfig,\n GatewayRoutingConfig,\n CircuitBreakerConfig,\n GatewayRetryConfig,\n GatewayRequestHeaders,\n} from './layer.js';\n\nexport {\n DEFAULT_GATEWAY_ROUTING,\n DEFAULT_LAYER_RESOURCES,\n DEFAULT_LAYER_STREAMS,\n DEFAULT_CIRCUIT_BREAKER_CONFIG,\n DEFAULT_GATEWAY_RETRY_CONFIG,\n} from './layer.js';\n"],"mappings":";;;;;;AA8IA,IAAa,WAAb,MAAa,iBAAiB,MAAM;CAGzB;CACA;CAHT,YACE,SACA,AAAO,MACP,AAAO,SACP;EACA,MAAM,OAAO;EAHN;EACA;EAGP,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,SAAS,SAAS;CAChD;AACF;;;;AAKA,IAAa,wBAAb,MAAa,8BAA8B,SAAS;CAClD,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,qBAAqB,OAAO;EAC3C,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,sBAAsB,SAAS;CAC7D;AACF;;;;AAKA,IAAa,sBAAb,MAAa,4BAA4B,SAAS;CAChD,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,wBAAwB,OAAO;EAC9C,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,oBAAoB,SAAS;CAC3D;AACF;;;;AAKA,IAAa,WAAb,MAAa,iBAAiB,SAAS;CACrC,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,aAAa,OAAO;EACnC,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,SAAS,SAAS;CAChD;AACF;;;;AAKA,IAAa,kBAAb,MAAa,wBAAwB,SAAS;CAC5C,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,oBAAoB,OAAO;EAC1C,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,gBAAgB,SAAS;CACvD;AACF;;;;AAKA,IAAa,qBAAb,MAAa,2BAA2B,SAAS;CAC/C,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,kBAAkB,OAAO;EACxC,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,mBAAmB,SAAS;CAC1D;AACF;;;;AAKA,IAAa,eAAb,MAAa,qBAAqB,SAAS;CACzC,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,iBAAiB,OAAO;EACvC,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,aAAa,SAAS;CACpD;AACF;;;;AAKA,IAAa,eAAb,MAAa,qBAAqB,SAAS;CACzC,YAAY,SAAiB,SAAmC;EAC9D,MAAM,SAAS,iBAAiB,OAAO;EACvC,KAAK,OAAO;EACZ,OAAO,eAAe,MAAM,aAAa,SAAS;CACpD;AACF"}
@@ -0,0 +1,70 @@
1
+ type LocaleCode = 'en-US' | 'en-GB' | 'en-AU' | 'en-CA' | 'en-IN' | 'es-ES' | 'es-MX' | 'es-AR' | 'fr-FR' | 'fr-CA' | 'fr-BE' | 'de-DE' | 'de-AT' | 'de-CH' | 'it-IT' | 'pt-PT' | 'pt-BR' | 'ru-RU' | 'zh-CN' | 'zh-TW' | 'zh-HK' | 'ja-JP' | 'ko-KR' | 'ar-SA' | 'ar-AE' | 'ar-EG' | 'hi-IN' | 'bn-IN' | 'bn-BD' | 'ta-IN' | 'te-IN' | 'ml-IN' | 'nl-NL' | 'nl-BE' | 'pl-PL' | 'tr-TR' | 'vi-VN' | 'th-TH' | 'id-ID' | 'ms-MY' | 'sv-SE' | 'nb-NO' | 'da-DK' | 'fi-FI' | 'el-GR' | 'cs-CZ' | 'ro-RO' | 'hu-HU' | 'he-IL' | 'uk-UA' | string;
2
+ type LanguageCode = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'bn' | 'ta' | 'te' | 'ml' | 'nl' | 'pl' | 'tr' | 'vi' | 'th' | 'id' | 'ms' | 'sv' | 'nb' | 'da' | 'fi' | 'el' | 'cs' | 'ro' | 'hu' | 'he' | 'uk' | string;
3
+ type TranslationDictionary = {
4
+ [key: string]: string | TranslationDictionary | null;
5
+ };
6
+ type FlatTranslationMap = Record<string, string>;
7
+ type TranslationVariables = Record<string, string | number | boolean>;
8
+ interface PluralForms {
9
+ zero?: string;
10
+ one: string;
11
+ two?: string;
12
+ few?: string;
13
+ many?: string;
14
+ other: string;
15
+ }
16
+ type TranslateFunction = (key: string, variables?: TranslationVariables, defaultValue?: string) => string;
17
+ type PluralTranslateFunction = (key: string, count: number, variables?: TranslationVariables) => string;
18
+ interface I18nConfig {
19
+ defaultLocale: LocaleCode;
20
+ fallbackLocale?: LocaleCode;
21
+ localesPath: string;
22
+ supportedLocales?: LocaleCode[];
23
+ lazyLoad?: boolean;
24
+ enableCache?: boolean;
25
+ namespace?: string;
26
+ logMissing?: boolean;
27
+ returnKeyOnMissing?: boolean;
28
+ }
29
+ interface ParsedLocale {
30
+ locale: LocaleCode;
31
+ language: LanguageCode;
32
+ region?: string;
33
+ quality: number;
34
+ }
35
+ interface I18nContext {
36
+ locale: LocaleCode;
37
+ language: LanguageCode;
38
+ region?: string;
39
+ country?: string;
40
+ currency?: string;
41
+ timezone?: string;
42
+ t: TranslateFunction;
43
+ tp: PluralTranslateFunction;
44
+ formatNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
45
+ formatCurrency: (value: number, currency: string) => string;
46
+ formatDate: (date: Date | string, options?: Intl.DateTimeFormatOptions) => string;
47
+ formatRelativeTime: (value: number, unit: Intl.RelativeTimeFormatUnit) => string;
48
+ }
49
+ interface II18n {
50
+ getLocale(): LocaleCode;
51
+ setLocale(locale: LocaleCode): void;
52
+ getSupportedLocales(): LocaleCode[];
53
+ isSupported(locale: LocaleCode): boolean;
54
+ t: TranslateFunction;
55
+ tp: PluralTranslateFunction;
56
+ createContext(locale: LocaleCode): I18nContext;
57
+ loadLocale(locale: LocaleCode): Promise<void>;
58
+ getTranslations(locale: LocaleCode): FlatTranslationMap | undefined;
59
+ }
60
+ type TextDirection = 'ltr' | 'rtl';
61
+ interface LanguageInfo {
62
+ code: LanguageCode;
63
+ name: string;
64
+ nativeName: string;
65
+ direction: TextDirection;
66
+ locales: LocaleCode[];
67
+ }
68
+ declare const RTL_LANGUAGES: LanguageCode[];
69
+ declare function getTextDirection(language: LanguageCode): TextDirection;
70
+ export { LanguageCode as a, ParsedLocale as c, RTL_LANGUAGES as d, TextDirection as f, getTextDirection as g, TranslationVariables as h, II18n as i, PluralForms as l, TranslationDictionary as m, I18nConfig as n, LanguageInfo as o, TranslateFunction as p, I18nContext as r, LocaleCode as s, FlatTranslationMap as t, PluralTranslateFunction as u };
@@ -1,213 +1,2 @@
1
- import { B as BurdenoffGraphQLClient } from '../graphql-CMHMQjvd.js';
2
- import { a as SDKContext, b as SDKError } from '../index-DE2w7E0d.js';
3
- import { G as GatewayClient } from '../client-DSI_760t.js';
4
- import 'graphql-request';
5
- import '../layer-Cv9vSwBx.js';
6
- import '../types-DgJ4lDYA.js';
7
-
8
- interface BillingUsageOperationInput {
9
- quotaName: string;
10
- value?: number;
11
- description: string;
12
- productId: string;
13
- userId?: string;
14
- hash?: string;
15
- tags?: Record<string, unknown>;
16
- }
17
- interface OrgBillingUsageOperationInput extends BillingUsageOperationInput {
18
- orgId: string;
19
- }
20
- interface WorkspaceBillingUsageOperationInput extends BillingUsageOperationInput {
21
- workspaceId: string;
22
- }
23
- interface QuotaLimit {
24
- limit: number;
25
- noLimit: boolean;
26
- }
27
- interface BillingUsageClientConfig {
28
- serviceName: string;
29
- timeout?: number;
30
- gatewayClient?: GatewayClient;
31
- quotaLimitCacheTtlMs?: number;
32
- }
33
- declare class BillingUsageClient {
34
- private readonly gatewayClient;
35
- private readonly quotaLimitCacheTtlMs;
36
- private readonly logPrefix;
37
- private readonly quotaLimitCache;
38
- constructor(config: BillingUsageClientConfig);
39
- private queryWorkspaceLayer;
40
- private queryGlobalLayer;
41
- getOrgIdFromWorkspace(workspaceId: string): Promise<string | null>;
42
- getDefaultBillingAccountId(orgId: string): Promise<string | null>;
43
- ensureQuotaAvailableForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
44
- ensureQuotaAvailableForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
45
- addUsageForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
46
- addUsageForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
47
- freeUpUsageForOrg(input: OrgBillingUsageOperationInput): Promise<boolean>;
48
- freeUpUsageForWorkspace(input: WorkspaceBillingUsageOperationInput): Promise<boolean>;
49
- getQuotaLimitForWorkspace(workspaceId: string, quotaName: string, productId: string): Promise<QuotaLimit | null>;
50
- private rememberQuotaLimit;
51
- }
52
-
53
- declare enum UsageMetricType {
54
- API_CALLS = "api_calls",
55
- STORAGE = "storage",
56
- BANDWIDTH = "bandwidth",
57
- USERS = "users",
58
- PROJECTS = "projects",
59
- WORKSPACES = "workspaces",
60
- RECORDS = "records",
61
- COMPUTE_TIME = "compute_time",
62
- TRANSACTIONS = "transactions",
63
- CUSTOM = "custom"
64
- }
65
- declare enum QuotaPeriod {
66
- DAILY = "daily",
67
- WEEKLY = "weekly",
68
- MONTHLY = "monthly",
69
- YEARLY = "yearly",
70
- LIFETIME = "lifetime"
71
- }
72
- type UsageEntityType = 'user' | 'workspace' | 'organization';
73
- interface TrackUsageOptions {
74
- entityId: string;
75
- entityType: UsageEntityType;
76
- metricType: UsageMetricType;
77
- amount: number;
78
- resourceId?: string;
79
- metadata?: Record<string, unknown>;
80
- workspaceId?: string;
81
- organizationId?: string;
82
- }
83
- interface CheckQuotaOptions {
84
- entityId: string;
85
- entityType: UsageEntityType;
86
- metricType: UsageMetricType;
87
- requestedAmount: number;
88
- workspaceId?: string;
89
- organizationId?: string;
90
- }
91
- interface QuotaCheckResult {
92
- allowed: boolean;
93
- currentUsage: number;
94
- quotaLimit: number;
95
- remainingQuota: number;
96
- resetAt?: string;
97
- period: QuotaPeriod;
98
- reason?: string;
99
- }
100
- interface UsageRecord {
101
- id: string;
102
- entityId: string;
103
- entityType: UsageEntityType;
104
- metricType: UsageMetricType;
105
- amount: number;
106
- resourceId?: string;
107
- metadata?: Record<string, unknown>;
108
- workspaceId?: string;
109
- organizationId?: string;
110
- recordedAt: string;
111
- }
112
- interface UsageSummary {
113
- entityId: string;
114
- entityType: string;
115
- metricType: UsageMetricType;
116
- totalUsage: number;
117
- period: QuotaPeriod;
118
- periodStart: string;
119
- periodEnd: string;
120
- quotaLimit?: number;
121
- utilizationPercentage?: number;
122
- }
123
- interface SetQuotaOptions {
124
- entityId: string;
125
- entityType: UsageEntityType;
126
- metricType: UsageMetricType;
127
- limit: number;
128
- period: QuotaPeriod;
129
- workspaceId?: string;
130
- organizationId?: string;
131
- }
132
- interface Quota {
133
- id: string;
134
- entityId: string;
135
- entityType: string;
136
- metricType: UsageMetricType;
137
- limit: number;
138
- period: QuotaPeriod;
139
- currentUsage: number;
140
- resetAt: string;
141
- createdAt: string;
142
- updatedAt: string;
143
- }
144
- interface GetUsageOptions {
145
- entityId: string;
146
- entityType: UsageEntityType;
147
- metricType?: UsageMetricType;
148
- startDate?: string;
149
- endDate?: string;
150
- workspaceId?: string;
151
- organizationId?: string;
152
- limit?: number;
153
- offset?: number;
154
- }
155
- declare class UsageOperationUnsupportedError extends SDKError {
156
- constructor(operation: string, guidance: string);
157
- }
158
- declare const CHECK_WORKSPACE_QUOTA_QUERY = "\n query CheckWorkspaceQuota($workspaceId: ID!, $quotaName: String!, $amount: Float) {\n checkWorkspaceQuota(workspaceId: $workspaceId, quotaName: $quotaName, amount: $amount) {\n allowed\n assignmentId\n limitLeft\n noLimit\n }\n }\n";
159
- declare const TRACK_USAGE_MUTATION = "\n mutation TrackUsage($input: TrackUsageInput!) {\n trackUsage(input: $input)\n }\n";
160
- interface CheckWorkspaceQuotaOptions {
161
- quotaName: string;
162
- amount?: number;
163
- workspaceId?: string;
164
- userId?: string;
165
- }
166
- interface WorkspaceQuotaCheckResult {
167
- allowed: boolean;
168
- assignmentId: string | null;
169
- limitLeft: number | null;
170
- noLimit: boolean;
171
- }
172
- interface TrackWorkspaceUsageOptions {
173
- quotaName: string;
174
- productId?: string;
175
- amount: number;
176
- description: string;
177
- workspaceId?: string;
178
- userId?: string;
179
- quotaAssignmentId?: string;
180
- billingAccountId?: string;
181
- hash?: string;
182
- metadata?: Record<string, unknown>;
183
- }
184
- declare function buildTrackUsageInput(options: TrackWorkspaceUsageOptions, context?: SDKContext): Record<string, unknown>;
185
- declare class UsageModule {
186
- private client;
187
- private context;
188
- constructor(client: BurdenoffGraphQLClient, context: SDKContext);
189
- private requestContext;
190
- checkWorkspaceQuota(options: CheckWorkspaceQuotaOptions): Promise<WorkspaceQuotaCheckResult>;
191
- requireWorkspaceQuota(options: CheckWorkspaceQuotaOptions): Promise<WorkspaceQuotaCheckResult>;
192
- trackUsage(options: TrackWorkspaceUsageOptions): Promise<boolean>;
193
- track(_options: TrackUsageOptions): Promise<UsageRecord>;
194
- checkQuota(_options: CheckQuotaOptions): Promise<QuotaCheckResult>;
195
- requireQuota(_options: CheckQuotaOptions): Promise<void>;
196
- trackAndCheck(_options: TrackUsageOptions): Promise<{
197
- usage: UsageRecord;
198
- quotaCheck: QuotaCheckResult;
199
- }>;
200
- getUsage(_options: GetUsageOptions): Promise<{
201
- records: UsageRecord[];
202
- total: number;
203
- }>;
204
- getSummary(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType, _period: QuotaPeriod): Promise<UsageSummary>;
205
- setQuota(_options: SetQuotaOptions): Promise<Quota>;
206
- getQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<Quota | null>;
207
- getQuotas(_entityId: string, _entityType: UsageEntityType): Promise<Quota[]>;
208
- resetQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<boolean>;
209
- deleteQuota(_entityId: string, _entityType: UsageEntityType, _metricType: UsageMetricType): Promise<boolean>;
210
- trackBulk(_records: TrackUsageOptions[]): Promise<UsageRecord[]>;
211
- }
212
-
213
- export { BillingUsageClient, type BillingUsageClientConfig, type BillingUsageOperationInput, CHECK_WORKSPACE_QUOTA_QUERY, type CheckQuotaOptions, type CheckWorkspaceQuotaOptions, type GetUsageOptions, type OrgBillingUsageOperationInput, type Quota, type QuotaCheckResult, type QuotaLimit, QuotaPeriod, type SetQuotaOptions, TRACK_USAGE_MUTATION, type TrackUsageOptions, type TrackWorkspaceUsageOptions, type UsageEntityType, UsageMetricType, UsageModule, UsageOperationUnsupportedError, type UsageRecord, type UsageSummary, type WorkspaceBillingUsageOperationInput, type WorkspaceQuotaCheckResult, buildTrackUsageInput };
1
+ import { C as OrgBillingUsageOperationInput, S as BillingUsageOperationInput, T as WorkspaceBillingUsageOperationInput, _ as UsageSummary, a as Quota, b as BillingUsageClient, c as SetQuotaOptions, d as TrackWorkspaceUsageOptions, f as UsageEntityType, g as UsageRecord, h as UsageOperationUnsupportedError, i as GetUsageOptions, l as TRACK_USAGE_MUTATION, m as UsageModule, n as CheckQuotaOptions, o as QuotaCheckResult, p as UsageMetricType, r as CheckWorkspaceQuotaOptions, s as QuotaPeriod, t as CHECK_WORKSPACE_QUOTA_QUERY, u as TrackUsageOptions, v as WorkspaceQuotaCheckResult, w as QuotaLimit, x as BillingUsageClientConfig, y as buildTrackUsageInput } from "../index-DZC-2o9R.js";
2
+ export { BillingUsageClient, type BillingUsageClientConfig, type BillingUsageOperationInput, CHECK_WORKSPACE_QUOTA_QUERY, CheckQuotaOptions, CheckWorkspaceQuotaOptions, GetUsageOptions, type OrgBillingUsageOperationInput, Quota, QuotaCheckResult, type QuotaLimit, QuotaPeriod, SetQuotaOptions, TRACK_USAGE_MUTATION, TrackUsageOptions, TrackWorkspaceUsageOptions, UsageEntityType, UsageMetricType, UsageModule, UsageOperationUnsupportedError, UsageRecord, UsageSummary, type WorkspaceBillingUsageOperationInput, WorkspaceQuotaCheckResult, buildTrackUsageInput };
@@ -1,16 +1,4 @@
1
- export { BillingUsageClient, CHECK_WORKSPACE_QUOTA_QUERY, QuotaPeriod, TRACK_USAGE_MUTATION, UsageMetricType, UsageModule, UsageOperationUnsupportedError, buildTrackUsageInput } from '../chunk-QVPIACWD.js';
2
- import '../chunk-CFXWH2IS.js';
3
- import '../chunk-726AR6Q7.js';
4
- import '../chunk-SPRG6G6G.js';
5
- import '../chunk-FZRODKIN.js';
6
- import '../chunk-STWFX5E2.js';
7
- import '../chunk-VFCMR5GX.js';
8
- import '../chunk-RZOFS2BQ.js';
9
- import '../chunk-QWNNFE4P.js';
10
- import '../chunk-A5F6Z5UE.js';
11
- import '../chunk-I3KOWRT3.js';
12
- import '../chunk-5CAFHK2Z.js';
13
- import '../chunk-RU266375.js';
14
- import '../chunk-XE4OXN2W.js';
1
+ import { a as UsageModule, c as BillingUsageClient, i as UsageMetricType, n as QuotaPeriod, o as UsageOperationUnsupportedError, r as TRACK_USAGE_MUTATION, s as buildTrackUsageInput, t as CHECK_WORKSPACE_QUOTA_QUERY } from "../usage-BKFZiWQn.js";
2
+
3
+ export { BillingUsageClient, CHECK_WORKSPACE_QUOTA_QUERY, QuotaPeriod, TRACK_USAGE_MUTATION, UsageMetricType, UsageModule, UsageOperationUnsupportedError, buildTrackUsageInput };
15
4
  //# sourceMappingURL=index.js.map
16
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"file":"index.js","sources":[],"names":[],"mappings":""}