@burdenoff/be-sdk 2026.1110.2 → 2026.1110.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/configs/eslint/index.js +1 -1
  2. package/configs/tsconfig/tsconfig.json +1 -1
  3. package/dist/EventQueueFactory-9NGZV9jl.js +1457 -0
  4. package/dist/EventQueueFactory-9NGZV9jl.js.map +1 -0
  5. package/dist/RedisStreamsConnection-CY8WySJy.js +283 -0
  6. package/dist/RedisStreamsConnection-CY8WySJy.js.map +1 -0
  7. package/dist/activity/index.d.ts +165 -0
  8. package/dist/activity/index.js +389 -0
  9. package/dist/activity/index.js.map +1 -0
  10. package/dist/ai-credits/index.d.ts +2 -3
  11. package/dist/ai-credits/index.js +3 -4
  12. package/dist/ai-credits/index.js.map +1 -1
  13. package/dist/ai-credits-xxfwGpHS.js +546 -0
  14. package/dist/ai-credits-xxfwGpHS.js.map +1 -0
  15. package/dist/{assistant-session-CJZhF4D6.d.ts → assistant-session-DA5ZKJOr.d.ts} +4 -5
  16. package/dist/auth/index.d.ts +2 -77
  17. package/dist/auth/index.js +3 -7
  18. package/dist/auth/index.js.map +1 -1
  19. package/dist/auth-C5ctwSLp.js +228 -0
  20. package/dist/auth-C5ctwSLp.js.map +1 -0
  21. package/dist/bootstrap/index.d.ts +74 -0
  22. package/dist/bootstrap/index.js +282 -0
  23. package/dist/bootstrap/index.js.map +1 -0
  24. package/dist/cache/index.d.ts +2 -3
  25. package/dist/cache/index.js +3 -7
  26. package/dist/cache/index.js.map +1 -1
  27. package/dist/cache-CU0uLwcS.js +1837 -0
  28. package/dist/cache-CU0uLwcS.js.map +1 -0
  29. package/dist/captcha/index.d.ts +2 -1
  30. package/dist/captcha/index.js +3 -3
  31. package/dist/captcha/index.js.map +1 -1
  32. package/dist/captcha-BT7yh1YS.js +77 -0
  33. package/dist/captcha-BT7yh1YS.js.map +1 -0
  34. package/dist/client/internal-client.d.ts +4 -7
  35. package/dist/client/internal-client.js +172 -4
  36. package/dist/client/internal-client.js.map +1 -1
  37. package/dist/client-BgAEvDC2.d.ts +86 -0
  38. package/dist/client-sAJTrb4i.js +565 -0
  39. package/dist/client-sAJTrb4i.js.map +1 -0
  40. package/dist/collector-endpoint-iyQYeI50.js +50 -0
  41. package/dist/collector-endpoint-iyQYeI50.js.map +1 -0
  42. package/dist/context/index.d.ts +35 -0
  43. package/dist/context/index.js +283 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/crypto/index.d.ts +2 -1
  46. package/dist/crypto/index.js +3 -3
  47. package/dist/crypto/index.js.map +1 -1
  48. package/dist/crypto-DO9fM0FO.js +145 -0
  49. package/dist/crypto-DO9fM0FO.js.map +1 -0
  50. package/dist/database/index.d.ts +104 -108
  51. package/dist/database/index.js +468 -6
  52. package/dist/database/index.js.map +1 -1
  53. package/dist/dataloader/index.d.ts +2 -1
  54. package/dist/dataloader/index.js +3 -3
  55. package/dist/dataloader/index.js.map +1 -1
  56. package/dist/dataloader-DwpT3YoS.js +294 -0
  57. package/dist/dataloader-DwpT3YoS.js.map +1 -0
  58. package/dist/deployed-environment-p_Tdl3sT.js +38 -0
  59. package/dist/deployed-environment-p_Tdl3sT.js.map +1 -0
  60. package/dist/dist-BGKdXVy3.js +1718 -0
  61. package/dist/dist-BGKdXVy3.js.map +1 -0
  62. package/dist/env-DdaoGjIt.js +74 -0
  63. package/dist/env-DdaoGjIt.js.map +1 -0
  64. package/dist/event-queue/index.d.ts +2 -7
  65. package/dist/event-queue/index.js +7 -9
  66. package/dist/event-queue/index.js.map +1 -1
  67. package/dist/event-queue-Cw-YJPY_.js +1384 -0
  68. package/dist/event-queue-Cw-YJPY_.js.map +1 -0
  69. package/dist/{explicit-activity-scope-CCoxVwAr.d.ts → explicit-activity-scope-D8VeGGpt.d.ts} +1 -2
  70. package/dist/explicit-activity-scope-DikJ7NAE.js +57 -0
  71. package/dist/explicit-activity-scope-DikJ7NAE.js.map +1 -0
  72. package/dist/export/index.d.ts +2 -2
  73. package/dist/export/index.js +3 -14
  74. package/dist/export/index.js.map +1 -1
  75. package/dist/export-DJXE3Osa.js +642 -0
  76. package/dist/export-DJXE3Osa.js.map +1 -0
  77. package/dist/feature-flags/index.d.ts +2 -10
  78. package/dist/feature-flags/index.js +3 -6
  79. package/dist/feature-flags/index.js.map +1 -1
  80. package/dist/feature-flags-CP1KRgwD.js +422 -0
  81. package/dist/feature-flags-CP1KRgwD.js.map +1 -0
  82. package/dist/files/index.d.ts +2 -3
  83. package/dist/files/index.js +3 -4
  84. package/dist/files/index.js.map +1 -1
  85. package/dist/files-h5U-D2AF.js +830 -0
  86. package/dist/files-h5U-D2AF.js.map +1 -0
  87. package/dist/gateway/index.d.ts +4 -6
  88. package/dist/gateway/index.js +7 -13
  89. package/dist/gateway/index.js.map +1 -1
  90. package/dist/gateway/security/index.d.ts +2 -2
  91. package/dist/gateway/security/index.js +3 -5
  92. package/dist/gateway/security/index.js.map +1 -1
  93. package/dist/gateway-ByVo-n37.js +50 -0
  94. package/dist/gateway-ByVo-n37.js.map +1 -0
  95. package/dist/graph/index.d.ts +3 -10
  96. package/dist/graph/index.js +4 -13
  97. package/dist/graph/index.js.map +1 -1
  98. package/dist/graph-CR7u4lpl.js +2152 -0
  99. package/dist/graph-CR7u4lpl.js.map +1 -0
  100. package/dist/graph-emitter-CdOXP7Tn.js +621 -0
  101. package/dist/graph-emitter-CdOXP7Tn.js.map +1 -0
  102. package/dist/graphql/index.d.ts +3 -2
  103. package/dist/graphql/index.js +4 -6
  104. package/dist/graphql/index.js.map +1 -1
  105. package/dist/graphql/services/index.d.ts +2 -24
  106. package/dist/graphql/services/index.js +3 -4
  107. package/dist/graphql/services/index.js.map +1 -1
  108. package/dist/graphql-CUDyhibV.d.ts +21 -0
  109. package/dist/graphql-DHAHHcww.js +161 -0
  110. package/dist/graphql-DHAHHcww.js.map +1 -0
  111. package/dist/i18n/index.d.ts +3 -3
  112. package/dist/i18n/index.js +3 -4
  113. package/dist/i18n/index.js.map +1 -1
  114. package/dist/i18n-BBMYFd0P.js +860 -0
  115. package/dist/i18n-BBMYFd0P.js.map +1 -0
  116. package/dist/import-optional-peer-B82VYxeX.js +18 -0
  117. package/dist/import-optional-peer-B82VYxeX.js.map +1 -0
  118. package/dist/index-3KOZ1zN9.d.ts +233 -0
  119. package/dist/index-ADmsX0BI.d.ts +646 -0
  120. package/dist/index-B2LCaK0R.d.ts +500 -0
  121. package/dist/index-BBqooJ52.d.ts +45 -0
  122. package/dist/index-BGzMYJsm.d.ts +209 -0
  123. package/dist/index-BMIMnp6T.d.ts +8 -0
  124. package/dist/index-BVOL7458.d.ts +10 -0
  125. package/dist/index-BcqQs-Uq.d.ts +69 -0
  126. package/dist/index-BeVtqGO-.d.ts +208 -0
  127. package/dist/index-BiTzGUZP.d.ts +114 -0
  128. package/dist/index-C0qLquY0.d.ts +150 -0
  129. package/dist/index-C5uEKchX.d.ts +60 -0
  130. package/dist/index-CDOqxSIi.d.ts +37 -0
  131. package/dist/index-CG6wj66Y.d.ts +148 -0
  132. package/dist/index-CHwMhK6v.d.ts +63 -0
  133. package/dist/index-CIgoeobA.d.ts +145 -0
  134. package/dist/index-CPQDMSFS.d.ts +103 -0
  135. package/dist/index-CSRcgkVi.d.ts +23 -0
  136. package/dist/index-CTTwo9av.d.ts +102 -0
  137. package/dist/index-CVCyKzhB.d.ts +207 -0
  138. package/dist/index-C_GXXF32.d.ts +704 -0
  139. package/dist/index-CaM9JUcc.d.ts +144 -0
  140. package/dist/index-CliOgq6L.d.ts +203 -0
  141. package/dist/index-Cot73bdh.d.ts +63 -0
  142. package/dist/index-DGgh9DWn.d.ts +59 -0
  143. package/dist/index-DY3dNhMN.d.ts +420 -0
  144. package/dist/index-DqbGqfAy.d.ts +127 -0
  145. package/dist/index-Dt1HJPTX.d.ts +12 -0
  146. package/dist/index-DtI6aBtB.d.ts +22 -0
  147. package/dist/index-FKohsiex.d.ts +38 -0
  148. package/dist/index-FRRaa6h2.d.ts +999 -0
  149. package/dist/index-FbXPfen7.d.ts +132 -0
  150. package/dist/index-MArCb8Aq.d.ts +306 -0
  151. package/dist/index-U_tu3zUl.d.ts +303 -0
  152. package/dist/index-YOShAwkq.d.ts +45 -0
  153. package/dist/index-cmR9k9ga.d.ts +26 -0
  154. package/dist/index-yBSjMY32.d.ts +24 -0
  155. package/dist/index-zd_NPGJo.d.ts +206 -0
  156. package/dist/index.d.ts +106 -609
  157. package/dist/index.js +769 -2590
  158. package/dist/index.js.map +1 -1
  159. package/dist/init/index.d.ts +2 -2
  160. package/dist/init/index.js +3 -16
  161. package/dist/init/index.js.map +1 -1
  162. package/dist/init-CQPFmOOe.js +325 -0
  163. package/dist/init-CQPFmOOe.js.map +1 -0
  164. package/dist/instrumentation/index.d.ts +3 -4
  165. package/dist/instrumentation/index.js +5 -5
  166. package/dist/instrumentation/index.js.map +1 -1
  167. package/dist/instrumentation-xkkmDgJ0.js +1678 -0
  168. package/dist/instrumentation-xkkmDgJ0.js.map +1 -0
  169. package/dist/lake/index.d.ts +50 -54
  170. package/dist/lake/index.js +169 -193
  171. package/dist/lake/index.js.map +1 -1
  172. package/dist/layer/index.d.ts +3 -2
  173. package/dist/layer/index.js +4 -5
  174. package/dist/layer/index.js.map +1 -1
  175. package/dist/layer-BZBZZWeV.d.ts +69 -0
  176. package/dist/layer-Bcix-WCl.js +105 -0
  177. package/dist/layer-Bcix-WCl.js.map +1 -0
  178. package/dist/layer-CEKy6cm8.js +252 -0
  179. package/dist/layer-CEKy6cm8.js.map +1 -0
  180. package/dist/lifecycle/index.d.ts +2 -1
  181. package/dist/lifecycle/index.js +3 -4
  182. package/dist/lifecycle/index.js.map +1 -1
  183. package/dist/lifecycle-DeoLSX0U.js +76 -0
  184. package/dist/lifecycle-DeoLSX0U.js.map +1 -0
  185. package/dist/logger/index.d.ts +2 -3
  186. package/dist/logger/index.js +3 -3
  187. package/dist/logger/index.js.map +1 -1
  188. package/dist/logger-B6rCpb7D.js +290 -0
  189. package/dist/logger-B6rCpb7D.js.map +1 -0
  190. package/dist/metrics/index.d.ts +13 -14
  191. package/dist/metrics/index.js +3 -4
  192. package/dist/metrics/index.js.map +1 -1
  193. package/dist/metrics-BrLwNUrb.js +52 -0
  194. package/dist/metrics-BrLwNUrb.js.map +1 -0
  195. package/dist/metrics-collector-C2eShrlW.js +922 -0
  196. package/dist/metrics-collector-C2eShrlW.js.map +1 -0
  197. package/dist/middleware/index.d.ts +3 -3
  198. package/dist/middleware/index.js +3 -4
  199. package/dist/middleware/index.js.map +1 -1
  200. package/dist/middleware-CUxJVUpD.js +1243 -0
  201. package/dist/middleware-CUxJVUpD.js.map +1 -0
  202. package/dist/middleware-Cq0zFMGp.js +253 -0
  203. package/dist/middleware-Cq0zFMGp.js.map +1 -0
  204. package/dist/notifications/index.d.ts +2 -5
  205. package/dist/notifications/index.js +3 -6
  206. package/dist/notifications/index.js.map +1 -1
  207. package/dist/notifications-DY_i37WN.js +869 -0
  208. package/dist/notifications-DY_i37WN.js.map +1 -0
  209. package/dist/observability/index.d.ts +2 -3
  210. package/dist/observability/index.js +3 -4
  211. package/dist/observability/index.js.map +1 -1
  212. package/dist/observability-DBDXipTU.js +272 -0
  213. package/dist/observability-DBDXipTU.js.map +1 -0
  214. package/dist/payments/index.d.ts +144 -0
  215. package/dist/payments/index.js +404 -0
  216. package/dist/payments/index.js.map +1 -0
  217. package/dist/platform/index.d.ts +2 -1
  218. package/dist/platform/index.js +3 -5
  219. package/dist/platform/index.js.map +1 -1
  220. package/dist/platform-DZwczW7v.js +1510 -0
  221. package/dist/platform-DZwczW7v.js.map +1 -0
  222. package/dist/prisma/generator/index.d.ts +1 -1
  223. package/dist/prisma/generator/index.js +97 -84
  224. package/dist/prisma/generator/index.js.map +1 -1
  225. package/dist/prisma/index.d.ts +4 -7
  226. package/dist/prisma/index.js +5 -12
  227. package/dist/prisma/index.js.map +1 -1
  228. package/dist/prisma-BzOOdt79.js +863 -0
  229. package/dist/prisma-BzOOdt79.js.map +1 -0
  230. package/dist/prisma-extension-Cfl09swM.d.ts +172 -0
  231. package/dist/product-alias/index.d.ts +2 -1
  232. package/dist/product-alias/index.js +3 -3
  233. package/dist/product-alias/index.js.map +1 -1
  234. package/dist/product-alias-BPqtskMq.js +273 -0
  235. package/dist/product-alias-BPqtskMq.js.map +1 -0
  236. package/dist/rate-limit-CBrK_U5H.js +142 -0
  237. package/dist/rate-limit-CBrK_U5H.js.map +1 -0
  238. package/dist/rbac/index.d.ts +2 -122
  239. package/dist/rbac/index.js +3 -6
  240. package/dist/rbac/index.js.map +1 -1
  241. package/dist/rbac-Dvz0YzEt.js +1486 -0
  242. package/dist/rbac-Dvz0YzEt.js.map +1 -0
  243. package/dist/resource-caps/index.d.ts +66 -72
  244. package/dist/resource-caps/index.js +430 -5
  245. package/dist/resource-caps/index.js.map +1 -1
  246. package/dist/rolldown-runtime-ad2WFvuA.js +17 -0
  247. package/dist/sdk-Dju9o-sq.js +124 -0
  248. package/dist/sdk-Dju9o-sq.js.map +1 -0
  249. package/dist/search/index.d.ts +112 -0
  250. package/dist/search/index.js +266 -0
  251. package/dist/search/index.js.map +1 -0
  252. package/dist/security/index.d.ts +2 -0
  253. package/dist/security/index.js +4 -0
  254. package/dist/security/index.js.map +1 -0
  255. package/dist/security/rate-limit/index.d.ts +2 -0
  256. package/dist/security/rate-limit/index.js +4 -0
  257. package/dist/security/rate-limit/index.js.map +1 -0
  258. package/dist/security-DIG-95Ic.js +1647 -0
  259. package/dist/security-DIG-95Ic.js.map +1 -0
  260. package/dist/server/index.d.ts +7 -164
  261. package/dist/server/index.js +2001 -1507
  262. package/dist/server/index.js.map +1 -1
  263. package/dist/service-jwt-Bu-WNA_-.js +80 -0
  264. package/dist/service-jwt-Bu-WNA_-.js.map +1 -0
  265. package/dist/services-BWzfz7vG.js +102 -0
  266. package/dist/services-BWzfz7vG.js.map +1 -0
  267. package/dist/sharding/index.d.ts +41 -44
  268. package/dist/sharding/index.js +156 -137
  269. package/dist/sharding/index.js.map +1 -1
  270. package/dist/sharing/index.d.ts +2 -1
  271. package/dist/sharing/index.js +3 -4
  272. package/dist/sharing/index.js.map +1 -1
  273. package/dist/sharing-CflDsSJ-.js +911 -0
  274. package/dist/sharing-CflDsSJ-.js.map +1 -0
  275. package/dist/stub-BUnfMiAS.js +577 -0
  276. package/dist/stub-BUnfMiAS.js.map +1 -0
  277. package/dist/tags/index.d.ts +2 -3
  278. package/dist/tags/index.js +3 -4
  279. package/dist/tags/index.js.map +1 -1
  280. package/dist/tags-CbijgoqR.js +868 -0
  281. package/dist/{chunk-PBZFAAOM.js.map → tags-CbijgoqR.js.map} +1 -1
  282. package/dist/telemetry/index.d.ts +64 -76
  283. package/dist/telemetry/index.js +369 -201
  284. package/dist/telemetry/index.js.map +1 -1
  285. package/dist/temporal/index.d.ts +2 -148
  286. package/dist/temporal/index.js +3 -5
  287. package/dist/temporal/index.js.map +1 -1
  288. package/dist/temporal-B534uYK8.js +706 -0
  289. package/dist/temporal-B534uYK8.js.map +1 -0
  290. package/dist/tracker/index.d.ts +5 -11
  291. package/dist/tracker/index.js +7 -20
  292. package/dist/tracker/index.js.map +1 -1
  293. package/dist/tracker-PQztSlhJ.js +458 -0
  294. package/dist/tracker-PQztSlhJ.js.map +1 -0
  295. package/dist/translation/index.d.ts +120 -0
  296. package/dist/translation/index.js +573 -0
  297. package/dist/translation/index.js.map +1 -0
  298. package/dist/types/index.d.ts +3 -0
  299. package/dist/types/index.js +90 -0
  300. package/dist/types/index.js.map +1 -0
  301. package/dist/types-BYMYND1L.js +44 -0
  302. package/dist/types-BYMYND1L.js.map +1 -0
  303. package/dist/types-C6EKaS3V.d.ts +106 -0
  304. package/dist/types-CWybW61E.d.ts +323 -0
  305. package/dist/types-C_yfu3XK.d.ts +34 -0
  306. package/dist/types-DgaQqvxo.d.ts +70 -0
  307. package/dist/usage/index.d.ts +2 -213
  308. package/dist/usage/index.js +3 -15
  309. package/dist/usage/index.js.map +1 -1
  310. package/dist/usage-BRqVP3CJ.js +682 -0
  311. package/dist/usage-BRqVP3CJ.js.map +1 -0
  312. package/dist/utils/index.d.ts +2 -1
  313. package/dist/utils/index.js +3 -3
  314. package/dist/utils/index.js.map +1 -1
  315. package/dist/utils-DL85Tnbn.js +500 -0
  316. package/dist/utils-DL85Tnbn.js.map +1 -0
  317. package/dist/validation/index.d.ts +2 -2
  318. package/dist/validation/index.js +3 -3
  319. package/dist/validation/index.js.map +1 -1
  320. package/dist/validation-CPUITdMk.js +762 -0
  321. package/dist/validation-CPUITdMk.js.map +1 -0
  322. package/dist/workspace-extension-COrC0dYi.js +979 -0
  323. package/dist/workspace-extension-COrC0dYi.js.map +1 -0
  324. package/dist/{workspace-extension-BGwTOV_r.d.ts → workspace-extension-DTFTdGVF.d.ts} +43 -45
  325. package/package.json +7 -10
  326. package/dist/EventQueueFactory-GXC3A7DH.js +0 -8
  327. package/dist/EventQueueFactory-GXC3A7DH.js.map +0 -1
  328. package/dist/chunk-4XIBXZ6J.js +0 -276
  329. package/dist/chunk-4XIBXZ6J.js.map +0 -1
  330. package/dist/chunk-554Z4C2K.js +0 -1006
  331. package/dist/chunk-554Z4C2K.js.map +0 -1
  332. package/dist/chunk-5CAFHK2Z.js +0 -107
  333. package/dist/chunk-5CAFHK2Z.js.map +0 -1
  334. package/dist/chunk-63ZXJ42X.js +0 -451
  335. package/dist/chunk-63ZXJ42X.js.map +0 -1
  336. package/dist/chunk-6XEXJATV.js +0 -304
  337. package/dist/chunk-6XEXJATV.js.map +0 -1
  338. package/dist/chunk-726AR6Q7.js +0 -1532
  339. package/dist/chunk-726AR6Q7.js.map +0 -1
  340. package/dist/chunk-A5F6Z5UE.js +0 -21
  341. package/dist/chunk-A5F6Z5UE.js.map +0 -1
  342. package/dist/chunk-A6DE32ZS.js +0 -1507
  343. package/dist/chunk-A6DE32ZS.js.map +0 -1
  344. package/dist/chunk-AXJDGQPE.js +0 -690
  345. package/dist/chunk-AXJDGQPE.js.map +0 -1
  346. package/dist/chunk-BJQOGOVW.js +0 -602
  347. package/dist/chunk-BJQOGOVW.js.map +0 -1
  348. package/dist/chunk-CFXWH2IS.js +0 -52
  349. package/dist/chunk-CFXWH2IS.js.map +0 -1
  350. package/dist/chunk-DRWH5XCJ.js +0 -876
  351. package/dist/chunk-DRWH5XCJ.js.map +0 -1
  352. package/dist/chunk-E4QNLVY4.js +0 -909
  353. package/dist/chunk-E4QNLVY4.js.map +0 -1
  354. package/dist/chunk-EBDHIL7V.js +0 -774
  355. package/dist/chunk-EBDHIL7V.js.map +0 -1
  356. package/dist/chunk-ELU7VL3E.js +0 -245
  357. package/dist/chunk-ELU7VL3E.js.map +0 -1
  358. package/dist/chunk-FZRODKIN.js +0 -31
  359. package/dist/chunk-FZRODKIN.js.map +0 -1
  360. package/dist/chunk-GCIB76AJ.js +0 -882
  361. package/dist/chunk-GCIB76AJ.js.map +0 -1
  362. package/dist/chunk-HC6MPUIH.js +0 -1571
  363. package/dist/chunk-HC6MPUIH.js.map +0 -1
  364. package/dist/chunk-HNMHPSAM.js +0 -272
  365. package/dist/chunk-HNMHPSAM.js.map +0 -1
  366. package/dist/chunk-HTLEGD3Q.js +0 -1480
  367. package/dist/chunk-HTLEGD3Q.js.map +0 -1
  368. package/dist/chunk-I3KOWRT3.js +0 -89
  369. package/dist/chunk-I3KOWRT3.js.map +0 -1
  370. package/dist/chunk-ID3WR4JS.js +0 -509
  371. package/dist/chunk-ID3WR4JS.js.map +0 -1
  372. package/dist/chunk-JS52ZHTK.js +0 -1346
  373. package/dist/chunk-JS52ZHTK.js.map +0 -1
  374. package/dist/chunk-JVMAQOA3.js +0 -521
  375. package/dist/chunk-JVMAQOA3.js.map +0 -1
  376. package/dist/chunk-KH4TRQCO.js +0 -1063
  377. package/dist/chunk-KH4TRQCO.js.map +0 -1
  378. package/dist/chunk-KJOSPVB2.js +0 -57
  379. package/dist/chunk-KJOSPVB2.js.map +0 -1
  380. package/dist/chunk-KO2ZXZ7W.js +0 -61
  381. package/dist/chunk-KO2ZXZ7W.js.map +0 -1
  382. package/dist/chunk-KS2HQCJR.js +0 -56
  383. package/dist/chunk-KS2HQCJR.js.map +0 -1
  384. package/dist/chunk-LA5KPWZ2.js +0 -413
  385. package/dist/chunk-LA5KPWZ2.js.map +0 -1
  386. package/dist/chunk-MESLAC5W.js +0 -574
  387. package/dist/chunk-MESLAC5W.js.map +0 -1
  388. package/dist/chunk-MWPYA2HD.js +0 -94
  389. package/dist/chunk-MWPYA2HD.js.map +0 -1
  390. package/dist/chunk-NUB5GQTU.js +0 -270
  391. package/dist/chunk-NUB5GQTU.js.map +0 -1
  392. package/dist/chunk-OBBCR6WY.js +0 -277
  393. package/dist/chunk-OBBCR6WY.js.map +0 -1
  394. package/dist/chunk-OQDSAOG3.js +0 -1908
  395. package/dist/chunk-OQDSAOG3.js.map +0 -1
  396. package/dist/chunk-OXNCBE7P.js +0 -971
  397. package/dist/chunk-OXNCBE7P.js.map +0 -1
  398. package/dist/chunk-PBZFAAOM.js +0 -941
  399. package/dist/chunk-PN6GIF3R.js +0 -1185
  400. package/dist/chunk-PN6GIF3R.js.map +0 -1
  401. package/dist/chunk-PYD44IHJ.js +0 -728
  402. package/dist/chunk-PYD44IHJ.js.map +0 -1
  403. package/dist/chunk-QVPIACWD.js +0 -679
  404. package/dist/chunk-QVPIACWD.js.map +0 -1
  405. package/dist/chunk-QWNNFE4P.js +0 -41
  406. package/dist/chunk-QWNNFE4P.js.map +0 -1
  407. package/dist/chunk-RU266375.js +0 -327
  408. package/dist/chunk-RU266375.js.map +0 -1
  409. package/dist/chunk-RYTSVGGA.js +0 -1624
  410. package/dist/chunk-RYTSVGGA.js.map +0 -1
  411. package/dist/chunk-RZOFS2BQ.js +0 -225
  412. package/dist/chunk-RZOFS2BQ.js.map +0 -1
  413. package/dist/chunk-SBS4S2PJ.js +0 -100
  414. package/dist/chunk-SBS4S2PJ.js.map +0 -1
  415. package/dist/chunk-SPRG6G6G.js +0 -530
  416. package/dist/chunk-SPRG6G6G.js.map +0 -1
  417. package/dist/chunk-STWFX5E2.js +0 -233
  418. package/dist/chunk-STWFX5E2.js.map +0 -1
  419. package/dist/chunk-UNASM5VJ.js +0 -419
  420. package/dist/chunk-UNASM5VJ.js.map +0 -1
  421. package/dist/chunk-VAT66FJA.js +0 -245
  422. package/dist/chunk-VAT66FJA.js.map +0 -1
  423. package/dist/chunk-VFCMR5GX.js +0 -49
  424. package/dist/chunk-VFCMR5GX.js.map +0 -1
  425. package/dist/chunk-VGAHZKNJ.js +0 -66
  426. package/dist/chunk-VGAHZKNJ.js.map +0 -1
  427. package/dist/chunk-VTJTAAXC.js +0 -627
  428. package/dist/chunk-VTJTAAXC.js.map +0 -1
  429. package/dist/chunk-VXVLKRU6.js +0 -758
  430. package/dist/chunk-VXVLKRU6.js.map +0 -1
  431. package/dist/chunk-WWUU5ETI.js +0 -163
  432. package/dist/chunk-WWUU5ETI.js.map +0 -1
  433. package/dist/chunk-XE4OXN2W.js +0 -10
  434. package/dist/chunk-XE4OXN2W.js.map +0 -1
  435. package/dist/chunk-XOJORS75.js +0 -1853
  436. package/dist/chunk-XOJORS75.js.map +0 -1
  437. package/dist/chunk-YMZEUTD2.js +0 -110
  438. package/dist/chunk-YMZEUTD2.js.map +0 -1
  439. package/dist/chunk-Z77BTSOK.js +0 -617
  440. package/dist/chunk-Z77BTSOK.js.map +0 -1
  441. package/dist/chunk-ZZK3WEDI.js +0 -181
  442. package/dist/chunk-ZZK3WEDI.js.map +0 -1
  443. package/dist/client-CCXpAZ2r.d.ts +0 -89
  444. package/dist/client-DSI_760t.d.ts +0 -36
  445. package/dist/client-JU6T3UPB.js +0 -11
  446. package/dist/client-JU6T3UPB.js.map +0 -1
  447. package/dist/dist-2X4Q7PJA.js +0 -1491
  448. package/dist/dist-2X4Q7PJA.js.map +0 -1
  449. package/dist/env-4UWSUS64.js +0 -4
  450. package/dist/env-4UWSUS64.js.map +0 -1
  451. package/dist/graph-emitter-r5TylDBm.d.ts +0 -47
  452. package/dist/graphql-CMHMQjvd.d.ts +0 -23
  453. package/dist/i18n-Qm2AkPC-.d.ts +0 -33
  454. package/dist/index--yvpa6ay.d.ts +0 -83
  455. package/dist/index-4gKQKZ2B.d.ts +0 -71
  456. package/dist/index-5x0XMKXN.d.ts +0 -149
  457. package/dist/index-B70b5mYS.d.ts +0 -33
  458. package/dist/index-B8KrxO4j.d.ts +0 -755
  459. package/dist/index-BOuDKnqD.d.ts +0 -201
  460. package/dist/index-BTMt4OjA.d.ts +0 -201
  461. package/dist/index-BejbszA7.d.ts +0 -39
  462. package/dist/index-BkeOYZye.d.ts +0 -198
  463. package/dist/index-BuAj5nXg.d.ts +0 -83
  464. package/dist/index-BvkVcW8I.d.ts +0 -349
  465. package/dist/index-CWmH_-RZ.d.ts +0 -247
  466. package/dist/index-CbgWNcus.d.ts +0 -258
  467. package/dist/index-CmfPeQza.d.ts +0 -166
  468. package/dist/index-CmpG-zak.d.ts +0 -607
  469. package/dist/index-CoMKgL-p.d.ts +0 -12
  470. package/dist/index-D8HGwglK.d.ts +0 -541
  471. package/dist/index-DCaVm66D.d.ts +0 -1101
  472. package/dist/index-DE2w7E0d.d.ts +0 -83
  473. package/dist/index-DSOpj8DI.d.ts +0 -17
  474. package/dist/index-DW9q22GH.d.ts +0 -75
  475. package/dist/index-DnjJ9CwI.d.ts +0 -347
  476. package/dist/index-DwMJZ8PP.d.ts +0 -317
  477. package/dist/index-PaojfSdd.d.ts +0 -71
  478. package/dist/index-aHtYvc3i.d.ts +0 -284
  479. package/dist/index-e_18DzAg.d.ts +0 -18
  480. package/dist/index-ffmipXSA.d.ts +0 -55
  481. package/dist/index-joONjwLt.d.ts +0 -33
  482. package/dist/index-kssw5ziY.d.ts +0 -250
  483. package/dist/index-lFffh5-G.d.ts +0 -125
  484. package/dist/index-pxYge_6k.d.ts +0 -79
  485. package/dist/layer-Cv9vSwBx.d.ts +0 -70
  486. package/dist/pino-logger-H4HPW5P6.js +0 -5
  487. package/dist/pino-logger-H4HPW5P6.js.map +0 -1
  488. package/dist/prisma-extension-gYhYriA0.d.ts +0 -174
  489. package/dist/sdk-L75WWUP3.js +0 -156
  490. package/dist/sdk-L75WWUP3.js.map +0 -1
  491. package/dist/shutdown-registry-CW9LryO8.d.ts +0 -10
  492. package/dist/types-Bo2wkjSP.d.ts +0 -35
  493. package/dist/types-DVpvrAhd.d.ts +0 -71
  494. package/dist/types-DgJ4lDYA.d.ts +0 -108
  495. package/dist/types-USOv09qy.d.ts +0 -327
  496. package/dist/workspace-guard-NXVYYBVJ.js +0 -5
  497. package/dist/workspace-guard-NXVYYBVJ.js.map +0 -1
@@ -1,201 +0,0 @@
1
- import { Plugin } from 'graphql-yoga';
2
-
3
- type Tier = 'public' | 'user' | 'app' | 'service' | 'super_admin';
4
- interface TierLimits {
5
- points: number;
6
- duration: number;
7
- burst: number;
8
- }
9
- interface ActorContext {
10
- tier: Tier;
11
- identity: string;
12
- headers: {
13
- actorId?: string;
14
- actorType?: string;
15
- actorRole?: string;
16
- workspaceId?: string;
17
- tenantId?: string;
18
- orgId?: string;
19
- appId?: string;
20
- ip?: string;
21
- };
22
- }
23
- type CostMap = Record<string, number>;
24
- interface RateLimitResult {
25
- allowed: boolean;
26
- remaining: number;
27
- resetAtMs: number;
28
- limit: number;
29
- }
30
- interface ArmorConfig {
31
- maxAliases: number;
32
- maxTokens: number;
33
- maxDirectives: number;
34
- characterLimit: number;
35
- costLimit: number;
36
- observe: boolean;
37
- }
38
- interface QueryComplexityConfig {
39
- enabled: boolean;
40
- maxCost: number;
41
- costMap: CostMap;
42
- observe: boolean;
43
- }
44
- interface PerWorkspaceRateLimit {
45
- enabled: boolean;
46
- points: number;
47
- duration: number;
48
- burst: number;
49
- observeOnly: boolean;
50
- }
51
- interface RateLimitConfig {
52
- tiers: Record<Tier, TierLimits>;
53
- keyPrefix: string;
54
- observeOnly: boolean;
55
- failClosed: boolean;
56
- perWorkspace: PerWorkspaceRateLimit;
57
- }
58
- interface OperationTimeoutConfig {
59
- timeoutMs: number;
60
- mutationTimeoutMs?: number;
61
- }
62
- interface OtelConfig {
63
- enabled: boolean;
64
- serviceName: string;
65
- endpoint: string;
66
- environment: string;
67
- version?: string;
68
- }
69
- interface GatewaySecurityOptions {
70
- gatewayName: string;
71
- enabled: boolean;
72
- armor: ArmorConfig;
73
- queryComplexity: QueryComplexityConfig;
74
- rateLimit: RateLimitConfig;
75
- operationTimeout: OperationTimeoutConfig;
76
- otel: OtelConfig;
77
- }
78
- interface SecurityValkeyClient {
79
- get(key: string): Promise<string | null>;
80
- set(key: string, value: string, options?: {
81
- EX?: number;
82
- }): Promise<string | null>;
83
- incrBy(key: string, amount: number): Promise<number>;
84
- expire(key: string, seconds: number): Promise<boolean>;
85
- ttl(key: string): Promise<number>;
86
- ping(): Promise<string>;
87
- }
88
-
89
- type HeaderGetter = (name: string) => string | null | undefined;
90
- declare const resolveActor: (getHeader: HeaderGetter) => ActorContext;
91
-
92
- declare const DEFAULT_COST_MAP: CostMap;
93
- declare const mergeCostMap: (base: CostMap, override: CostMap) => CostMap;
94
-
95
- declare const DEFAULT_ARMOR_CONFIG: ArmorConfig;
96
- declare const resolveSecurityOptionsFromEnv: (gatewayName: string, costMapOverride?: CostMap) => GatewaySecurityOptions;
97
-
98
- declare const DEFAULT_TIERS: Record<Tier, TierLimits>;
99
- declare const resolveTiersFromEnv: (base?: Record<Tier, TierLimits>) => Record<Tier, TierLimits>;
100
-
101
- declare class MemoryValkey implements SecurityValkeyClient {
102
- private store;
103
- private prune;
104
- get(key: string): Promise<string | null>;
105
- set(key: string, value: string, options?: {
106
- EX?: number;
107
- }): Promise<string | null>;
108
- incrBy(key: string, amount: number): Promise<number>;
109
- expire(key: string, seconds: number): Promise<boolean>;
110
- ttl(key: string): Promise<number>;
111
- ping(): Promise<string>;
112
- }
113
- declare const initializeSecurityValkey: (gatewayName: string) => Promise<SecurityValkeyClient>;
114
- declare const getSecurityValkey: () => SecurityValkeyClient;
115
- declare const __setSecurityValkeyForTest: (client: SecurityValkeyClient | null) => void;
116
-
117
- type CounterLike = {
118
- inc(labels?: Record<string, string>, value?: number): void;
119
- };
120
- interface Metrics {
121
- rateLimit: CounterLike;
122
- complexityRejected: CounterLike;
123
- armorRejected: CounterLike;
124
- valkeyFailover: CounterLike;
125
- operationTimeout: CounterLike;
126
- }
127
- declare const initializeMetrics: () => Promise<Metrics>;
128
- declare const getMetrics: () => Metrics;
129
- declare const scrapeMetrics: () => Promise<{
130
- body: string;
131
- contentType: string;
132
- } | null>;
133
- declare const __resetMetricsForTest: () => void;
134
-
135
- declare const createArmorPlugins: (cfg: ArmorConfig) => Promise<Plugin[]>;
136
-
137
- interface OperationTimeoutPluginDeps {
138
- config: OperationTimeoutConfig;
139
- }
140
- declare const createOperationTimeoutPlugin: (deps: OperationTimeoutPluginDeps) => Plugin;
141
-
142
- declare const initializeOtel: (cfg: OtelConfig) => Promise<void>;
143
- declare const shutdownOtel: () => Promise<void>;
144
- declare const createOtelPlugin: (cfg: OtelConfig) => Promise<Plugin>;
145
-
146
- interface QueryComplexityPluginDeps {
147
- config: QueryComplexityConfig;
148
- }
149
- declare const createQueryComplexityPlugin: (deps: QueryComplexityPluginDeps) => Plugin;
150
-
151
- interface RateLimitPluginDeps {
152
- valkey: SecurityValkeyClient;
153
- config: RateLimitConfig;
154
- }
155
- declare const checkRateLimit: (deps: RateLimitPluginDeps, actor: ActorContext) => Promise<RateLimitResult>;
156
- declare const createRateLimitPlugin: (deps: RateLimitPluginDeps) => Plugin;
157
-
158
- declare const buildSecurityPlugins: (options: GatewaySecurityOptions) => Promise<Plugin[]>;
159
-
160
- type index_ActorContext = ActorContext;
161
- type index_ArmorConfig = ArmorConfig;
162
- type index_CostMap = CostMap;
163
- declare const index_DEFAULT_ARMOR_CONFIG: typeof DEFAULT_ARMOR_CONFIG;
164
- declare const index_DEFAULT_COST_MAP: typeof DEFAULT_COST_MAP;
165
- declare const index_DEFAULT_TIERS: typeof DEFAULT_TIERS;
166
- type index_GatewaySecurityOptions = GatewaySecurityOptions;
167
- type index_MemoryValkey = MemoryValkey;
168
- declare const index_MemoryValkey: typeof MemoryValkey;
169
- type index_OperationTimeoutConfig = OperationTimeoutConfig;
170
- type index_OtelConfig = OtelConfig;
171
- type index_QueryComplexityConfig = QueryComplexityConfig;
172
- type index_RateLimitConfig = RateLimitConfig;
173
- type index_RateLimitResult = RateLimitResult;
174
- type index_SecurityValkeyClient = SecurityValkeyClient;
175
- type index_Tier = Tier;
176
- type index_TierLimits = TierLimits;
177
- declare const index___resetMetricsForTest: typeof __resetMetricsForTest;
178
- declare const index___setSecurityValkeyForTest: typeof __setSecurityValkeyForTest;
179
- declare const index_buildSecurityPlugins: typeof buildSecurityPlugins;
180
- declare const index_checkRateLimit: typeof checkRateLimit;
181
- declare const index_createArmorPlugins: typeof createArmorPlugins;
182
- declare const index_createOperationTimeoutPlugin: typeof createOperationTimeoutPlugin;
183
- declare const index_createOtelPlugin: typeof createOtelPlugin;
184
- declare const index_createQueryComplexityPlugin: typeof createQueryComplexityPlugin;
185
- declare const index_createRateLimitPlugin: typeof createRateLimitPlugin;
186
- declare const index_getMetrics: typeof getMetrics;
187
- declare const index_getSecurityValkey: typeof getSecurityValkey;
188
- declare const index_initializeMetrics: typeof initializeMetrics;
189
- declare const index_initializeOtel: typeof initializeOtel;
190
- declare const index_initializeSecurityValkey: typeof initializeSecurityValkey;
191
- declare const index_mergeCostMap: typeof mergeCostMap;
192
- declare const index_resolveActor: typeof resolveActor;
193
- declare const index_resolveSecurityOptionsFromEnv: typeof resolveSecurityOptionsFromEnv;
194
- declare const index_resolveTiersFromEnv: typeof resolveTiersFromEnv;
195
- declare const index_scrapeMetrics: typeof scrapeMetrics;
196
- declare const index_shutdownOtel: typeof shutdownOtel;
197
- declare namespace index {
198
- export { type index_ActorContext as ActorContext, type index_ArmorConfig as ArmorConfig, type index_CostMap as CostMap, index_DEFAULT_ARMOR_CONFIG as DEFAULT_ARMOR_CONFIG, index_DEFAULT_COST_MAP as DEFAULT_COST_MAP, index_DEFAULT_TIERS as DEFAULT_TIERS, type index_GatewaySecurityOptions as GatewaySecurityOptions, index_MemoryValkey as MemoryValkey, type index_OperationTimeoutConfig as OperationTimeoutConfig, type index_OtelConfig as OtelConfig, type index_QueryComplexityConfig as QueryComplexityConfig, type index_RateLimitConfig as RateLimitConfig, type index_RateLimitResult as RateLimitResult, type index_SecurityValkeyClient as SecurityValkeyClient, type index_Tier as Tier, type index_TierLimits as TierLimits, index___resetMetricsForTest as __resetMetricsForTest, index___setSecurityValkeyForTest as __setSecurityValkeyForTest, index_buildSecurityPlugins as buildSecurityPlugins, index_checkRateLimit as checkRateLimit, index_createArmorPlugins as createArmorPlugins, index_createOperationTimeoutPlugin as createOperationTimeoutPlugin, index_createOtelPlugin as createOtelPlugin, index_createQueryComplexityPlugin as createQueryComplexityPlugin, index_createRateLimitPlugin as createRateLimitPlugin, index_getMetrics as getMetrics, index_getSecurityValkey as getSecurityValkey, index_initializeMetrics as initializeMetrics, index_initializeOtel as initializeOtel, index_initializeSecurityValkey as initializeSecurityValkey, index_mergeCostMap as mergeCostMap, index_resolveActor as resolveActor, index_resolveSecurityOptionsFromEnv as resolveSecurityOptionsFromEnv, index_resolveTiersFromEnv as resolveTiersFromEnv, index_scrapeMetrics as scrapeMetrics, index_shutdownOtel as shutdownOtel };
199
- }
200
-
201
- export { type ActorContext as A, type CostMap as C, DEFAULT_ARMOR_CONFIG as D, type GatewaySecurityOptions as G, MemoryValkey as M, type OperationTimeoutConfig as O, type QueryComplexityConfig as Q, type RateLimitConfig as R, type SecurityValkeyClient as S, type Tier as T, __resetMetricsForTest as _, type ArmorConfig as a, DEFAULT_COST_MAP as b, DEFAULT_TIERS as c, type OtelConfig as d, type RateLimitResult as e, type TierLimits as f, __setSecurityValkeyForTest as g, buildSecurityPlugins as h, index as i, checkRateLimit as j, createArmorPlugins as k, createOperationTimeoutPlugin as l, createOtelPlugin as m, createQueryComplexityPlugin as n, createRateLimitPlugin as o, getMetrics as p, getSecurityValkey as q, initializeMetrics as r, initializeOtel as s, initializeSecurityValkey as t, mergeCostMap as u, resolveActor as v, resolveSecurityOptionsFromEnv as w, resolveTiersFromEnv as x, scrapeMetrics as y, shutdownOtel as z };
@@ -1,201 +0,0 @@
1
- import { P as PrismaClientBase, b as PrismaClientWrapper, c as PrismaClientConfig, a as PrismaClientConstructorOptions, D as DatabaseReturnType, d as DatabaseHealth, C as ConnectionState, e as PrismaEvent, f as PrismaLogDefinition, g as PrismaLogEvent, h as PrismaLogLevel, i as PrismaQueryEvent, j as PrismaTransactionOptions, k as configurePrismaLogging, l as createConnectionPool, m as createPrismaAdapter, n as createPrismaClient, o as ensureServiceApplicationName, p as installAcquireRetry, q as isTransientAcquireError } from './client-CCXpAZ2r.js';
2
- import { G as GraphEventEmitter } from './prisma-extension-gYhYriA0.js';
3
- import { W as WorkspaceExtensionConfig, C as CallerTransaction, P as PrismaQueryInternalParams, R as RawPrismaForCallerTransaction, T as TransactionContextStatement, a as WorkspaceContext, b as addWorkspaceExtension, c as buildTransactionContextStatement, d as defaultWorkspaceExtensionConfig, g as getCallerTransaction, e as getScopedWorkspaceContext, f as getWorkspaceContext, i as injectCreateFields, h as injectWhereWorkspaceId, m as maybeSetRlsGuc, j as maybeTagConnection, r as resetCallerTransactionStateForTests, k as runOperationInCallerTransaction, l as runOperationWithRlsGuc, s as setWorkspaceContext, w as withWorkspaceContext, n as withWorkspaceContextSync } from './workspace-extension-BGwTOV_r.js';
4
-
5
- interface DatabaseClientConfig extends PrismaClientConfig {
6
- productName: string;
7
- enableGraphExtension?: boolean;
8
- graphEventEmitter?: GraphEventEmitter;
9
- enableWorkspaceExtension?: boolean;
10
- workspaceExtensionConfig?: WorkspaceExtensionConfig;
11
- registerShutdownHandlers?: boolean;
12
- }
13
- interface DatabaseClient<T extends PrismaClientBase> {
14
- db: T & {
15
- client: T;
16
- };
17
- wrapper: PrismaClientWrapper<T>;
18
- connect: (retries?: number, delay?: number) => Promise<void>;
19
- disconnect: () => Promise<void>;
20
- }
21
- declare function createDatabaseClient<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, config: DatabaseClientConfig): DatabaseClient<T>;
22
- interface PoolTuningEnv {
23
- applicationName: string;
24
- queryTimeoutMillis?: number;
25
- statementTimeoutMillis?: number;
26
- idleInTransactionTimeoutMillis?: number;
27
- lockTimeoutMillis?: number;
28
- }
29
- declare function resolvePoolTuningFromEnv(productName: string): PoolTuningEnv;
30
- declare function createDatabaseClientFromEnv<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, productName: string, overrides?: Partial<DatabaseClientConfig>): DatabaseClient<T>;
31
-
32
- declare function initializeDatabase<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, productName: string, config?: Partial<DatabaseClientConfig>): DatabaseClient<T>;
33
- declare function initializeDatabaseWithConfig<T extends PrismaClientBase>(PrismaClientConstructor: new (options: PrismaClientConstructorOptions) => T, config: DatabaseClientConfig): DatabaseClient<T>;
34
- declare function getDb<T extends PrismaClientBase = PrismaClientBase>(): DatabaseReturnType<T>;
35
- declare function getDatabaseManager<T extends PrismaClientBase = PrismaClientBase>(): DatabaseClient<T>;
36
- declare function isDatabaseInitialized(): boolean;
37
- declare function getDatabaseProductName(): string | null;
38
- declare function resetDatabaseManager(): Promise<void>;
39
-
40
- declare function checkDatabaseHealth<T extends PrismaClientBase>(client: T): Promise<DatabaseHealth>;
41
- declare function testConnection<T extends PrismaClientBase>(client: T): Promise<boolean>;
42
- declare function getDatabaseVersion<T extends PrismaClientBase>(client: T): Promise<string | null>;
43
- declare function getDatabaseStats<T extends PrismaClientBase>(client: T): Promise<{
44
- health: DatabaseHealth;
45
- version: string | null;
46
- timestamp: Date;
47
- }>;
48
-
49
- interface FieldExtractionOptions {
50
- excludeFields?: string[];
51
- includeRelations?: boolean;
52
- customFilter?: (field: {
53
- name: string;
54
- type: string;
55
- isRelation: boolean;
56
- }) => boolean;
57
- }
58
- interface FieldExtractionResult {
59
- fields: string[];
60
- metadata: {
61
- totalFields: number;
62
- excludedCount: number;
63
- excludedFields: string[];
64
- relationFields: number;
65
- };
66
- }
67
- type ModelFieldsMap = Record<string, {
68
- fields: string[];
69
- relations: string[];
70
- }>;
71
- declare function loadGeneratedFields(generatedFieldsPath: string): ModelFieldsMap;
72
- declare function extractFieldsFromModel(modelName: string, modelFieldsMap: ModelFieldsMap, options?: FieldExtractionOptions): FieldExtractionResult;
73
- declare function getModelFields(modelName: string, modelFieldsMap: ModelFieldsMap, includeRelations?: boolean): string[];
74
- declare function hasModel(modelName: string, modelFieldsMap: ModelFieldsMap): boolean;
75
- declare function getAllModelNames(modelFieldsMap: ModelFieldsMap): string[];
76
-
77
- interface ContextFilterInput {
78
- workspaceId?: string | null;
79
- userId?: string | null;
80
- projectId?: string | null;
81
- appId?: string | null;
82
- productId?: string | null;
83
- organizationId?: string | null;
84
- }
85
- interface OperationContext extends ContextFilterInput {
86
- custom?: Record<string, unknown> | null;
87
- }
88
- type PrismaJsonFilter = Record<string, unknown>;
89
- type ContextWhereCondition = {
90
- context: PrismaJsonFilter;
91
- } | {
92
- OR: Array<{
93
- context: PrismaJsonFilter;
94
- }>;
95
- };
96
- type JsonValue = string | number | boolean | null | {
97
- [key: string]: JsonValue;
98
- } | JsonValue[];
99
- type InputJsonValue = string | number | boolean | {
100
- [key: string]: InputJsonValue;
101
- } | InputJsonValue[];
102
- declare function buildContextWhereClause(contextFilter: ContextFilterInput | null | undefined): PrismaJsonFilter | undefined;
103
- declare function buildContextWhereConditions(contextFilter: ContextFilterInput | null | undefined): ContextWhereCondition[];
104
- declare function toContextJson(contextInput: OperationContext | null | undefined): InputJsonValue | undefined;
105
- declare function mergeContext(existingContext: JsonValue | null | undefined, newContext: OperationContext | null | undefined): InputJsonValue | undefined;
106
- declare function parseContext(contextJson: JsonValue | null | undefined): OperationContext | null;
107
- declare function contextMatches(context: OperationContext | null | undefined, filter: ContextFilterInput): boolean;
108
- declare function createContextFromSDK(sdkContext: {
109
- workspaceId?: string;
110
- userId?: string;
111
- projectId?: string;
112
- appId?: string;
113
- productId?: string;
114
- organizationId?: string;
115
- }): OperationContext;
116
-
117
- declare const index_CallerTransaction: typeof CallerTransaction;
118
- declare const index_ConnectionState: typeof ConnectionState;
119
- type index_ContextFilterInput = ContextFilterInput;
120
- type index_ContextWhereCondition = ContextWhereCondition;
121
- type index_DatabaseClient<T extends PrismaClientBase> = DatabaseClient<T>;
122
- type index_DatabaseClientConfig = DatabaseClientConfig;
123
- declare const index_DatabaseHealth: typeof DatabaseHealth;
124
- declare const index_DatabaseReturnType: typeof DatabaseReturnType;
125
- type index_FieldExtractionOptions = FieldExtractionOptions;
126
- type index_FieldExtractionResult = FieldExtractionResult;
127
- type index_InputJsonValue = InputJsonValue;
128
- type index_JsonValue = JsonValue;
129
- type index_ModelFieldsMap = ModelFieldsMap;
130
- type index_OperationContext = OperationContext;
131
- type index_PoolTuningEnv = PoolTuningEnv;
132
- declare const index_PrismaClientBase: typeof PrismaClientBase;
133
- declare const index_PrismaClientConfig: typeof PrismaClientConfig;
134
- declare const index_PrismaClientConstructorOptions: typeof PrismaClientConstructorOptions;
135
- declare const index_PrismaClientWrapper: typeof PrismaClientWrapper;
136
- declare const index_PrismaEvent: typeof PrismaEvent;
137
- type index_PrismaJsonFilter = PrismaJsonFilter;
138
- declare const index_PrismaLogDefinition: typeof PrismaLogDefinition;
139
- declare const index_PrismaLogEvent: typeof PrismaLogEvent;
140
- declare const index_PrismaLogLevel: typeof PrismaLogLevel;
141
- declare const index_PrismaQueryEvent: typeof PrismaQueryEvent;
142
- declare const index_PrismaQueryInternalParams: typeof PrismaQueryInternalParams;
143
- declare const index_PrismaTransactionOptions: typeof PrismaTransactionOptions;
144
- declare const index_RawPrismaForCallerTransaction: typeof RawPrismaForCallerTransaction;
145
- declare const index_TransactionContextStatement: typeof TransactionContextStatement;
146
- declare const index_WorkspaceContext: typeof WorkspaceContext;
147
- declare const index_WorkspaceExtensionConfig: typeof WorkspaceExtensionConfig;
148
- declare const index_addWorkspaceExtension: typeof addWorkspaceExtension;
149
- declare const index_buildContextWhereClause: typeof buildContextWhereClause;
150
- declare const index_buildContextWhereConditions: typeof buildContextWhereConditions;
151
- declare const index_buildTransactionContextStatement: typeof buildTransactionContextStatement;
152
- declare const index_checkDatabaseHealth: typeof checkDatabaseHealth;
153
- declare const index_configurePrismaLogging: typeof configurePrismaLogging;
154
- declare const index_contextMatches: typeof contextMatches;
155
- declare const index_createConnectionPool: typeof createConnectionPool;
156
- declare const index_createContextFromSDK: typeof createContextFromSDK;
157
- declare const index_createDatabaseClient: typeof createDatabaseClient;
158
- declare const index_createDatabaseClientFromEnv: typeof createDatabaseClientFromEnv;
159
- declare const index_createPrismaAdapter: typeof createPrismaAdapter;
160
- declare const index_createPrismaClient: typeof createPrismaClient;
161
- declare const index_defaultWorkspaceExtensionConfig: typeof defaultWorkspaceExtensionConfig;
162
- declare const index_ensureServiceApplicationName: typeof ensureServiceApplicationName;
163
- declare const index_extractFieldsFromModel: typeof extractFieldsFromModel;
164
- declare const index_getAllModelNames: typeof getAllModelNames;
165
- declare const index_getCallerTransaction: typeof getCallerTransaction;
166
- declare const index_getDatabaseManager: typeof getDatabaseManager;
167
- declare const index_getDatabaseProductName: typeof getDatabaseProductName;
168
- declare const index_getDatabaseStats: typeof getDatabaseStats;
169
- declare const index_getDatabaseVersion: typeof getDatabaseVersion;
170
- declare const index_getDb: typeof getDb;
171
- declare const index_getModelFields: typeof getModelFields;
172
- declare const index_getScopedWorkspaceContext: typeof getScopedWorkspaceContext;
173
- declare const index_getWorkspaceContext: typeof getWorkspaceContext;
174
- declare const index_hasModel: typeof hasModel;
175
- declare const index_initializeDatabase: typeof initializeDatabase;
176
- declare const index_initializeDatabaseWithConfig: typeof initializeDatabaseWithConfig;
177
- declare const index_injectCreateFields: typeof injectCreateFields;
178
- declare const index_injectWhereWorkspaceId: typeof injectWhereWorkspaceId;
179
- declare const index_installAcquireRetry: typeof installAcquireRetry;
180
- declare const index_isDatabaseInitialized: typeof isDatabaseInitialized;
181
- declare const index_isTransientAcquireError: typeof isTransientAcquireError;
182
- declare const index_loadGeneratedFields: typeof loadGeneratedFields;
183
- declare const index_maybeSetRlsGuc: typeof maybeSetRlsGuc;
184
- declare const index_maybeTagConnection: typeof maybeTagConnection;
185
- declare const index_mergeContext: typeof mergeContext;
186
- declare const index_parseContext: typeof parseContext;
187
- declare const index_resetCallerTransactionStateForTests: typeof resetCallerTransactionStateForTests;
188
- declare const index_resetDatabaseManager: typeof resetDatabaseManager;
189
- declare const index_resolvePoolTuningFromEnv: typeof resolvePoolTuningFromEnv;
190
- declare const index_runOperationInCallerTransaction: typeof runOperationInCallerTransaction;
191
- declare const index_runOperationWithRlsGuc: typeof runOperationWithRlsGuc;
192
- declare const index_setWorkspaceContext: typeof setWorkspaceContext;
193
- declare const index_testConnection: typeof testConnection;
194
- declare const index_toContextJson: typeof toContextJson;
195
- declare const index_withWorkspaceContext: typeof withWorkspaceContext;
196
- declare const index_withWorkspaceContextSync: typeof withWorkspaceContextSync;
197
- declare namespace index {
198
- export { index_CallerTransaction as CallerTransaction, index_ConnectionState as ConnectionState, type index_ContextFilterInput as ContextFilterInput, type index_ContextWhereCondition as ContextWhereCondition, type index_DatabaseClient as DatabaseClient, type index_DatabaseClientConfig as DatabaseClientConfig, index_DatabaseHealth as DatabaseHealth, index_DatabaseReturnType as DatabaseReturnType, type index_FieldExtractionOptions as FieldExtractionOptions, type index_FieldExtractionResult as FieldExtractionResult, type index_InputJsonValue as InputJsonValue, type index_JsonValue as JsonValue, type index_ModelFieldsMap as ModelFieldsMap, type index_OperationContext as OperationContext, type index_PoolTuningEnv as PoolTuningEnv, index_PrismaClientBase as PrismaClientBase, index_PrismaClientConfig as PrismaClientConfig, index_PrismaClientConstructorOptions as PrismaClientConstructorOptions, index_PrismaClientWrapper as PrismaClientWrapper, index_PrismaEvent as PrismaEvent, type index_PrismaJsonFilter as PrismaJsonFilter, index_PrismaLogDefinition as PrismaLogDefinition, index_PrismaLogEvent as PrismaLogEvent, index_PrismaLogLevel as PrismaLogLevel, index_PrismaQueryEvent as PrismaQueryEvent, index_PrismaQueryInternalParams as PrismaQueryInternalParams, index_PrismaTransactionOptions as PrismaTransactionOptions, index_RawPrismaForCallerTransaction as RawPrismaForCallerTransaction, index_TransactionContextStatement as TransactionContextStatement, index_WorkspaceContext as WorkspaceContext, index_WorkspaceExtensionConfig as WorkspaceExtensionConfig, index_addWorkspaceExtension as addWorkspaceExtension, index_buildContextWhereClause as buildContextWhereClause, index_buildContextWhereConditions as buildContextWhereConditions, index_buildTransactionContextStatement as buildTransactionContextStatement, index_checkDatabaseHealth as checkDatabaseHealth, index_configurePrismaLogging as configurePrismaLogging, index_contextMatches as contextMatches, index_createConnectionPool as createConnectionPool, index_createContextFromSDK as createContextFromSDK, index_createDatabaseClient as createDatabaseClient, index_createDatabaseClientFromEnv as createDatabaseClientFromEnv, index_createPrismaAdapter as createPrismaAdapter, index_createPrismaClient as createPrismaClient, index_defaultWorkspaceExtensionConfig as defaultWorkspaceExtensionConfig, index_ensureServiceApplicationName as ensureServiceApplicationName, index_extractFieldsFromModel as extractFieldsFromModel, index_getAllModelNames as getAllModelNames, index_getCallerTransaction as getCallerTransaction, index_getDatabaseManager as getDatabaseManager, index_getDatabaseProductName as getDatabaseProductName, index_getDatabaseStats as getDatabaseStats, index_getDatabaseVersion as getDatabaseVersion, index_getDb as getDb, index_getModelFields as getModelFields, index_getScopedWorkspaceContext as getScopedWorkspaceContext, index_getWorkspaceContext as getWorkspaceContext, index_hasModel as hasModel, index_initializeDatabase as initializeDatabase, index_initializeDatabaseWithConfig as initializeDatabaseWithConfig, index_injectCreateFields as injectCreateFields, index_injectWhereWorkspaceId as injectWhereWorkspaceId, index_installAcquireRetry as installAcquireRetry, index_isDatabaseInitialized as isDatabaseInitialized, index_isTransientAcquireError as isTransientAcquireError, index_loadGeneratedFields as loadGeneratedFields, index_maybeSetRlsGuc as maybeSetRlsGuc, index_maybeTagConnection as maybeTagConnection, index_mergeContext as mergeContext, index_parseContext as parseContext, index_resetCallerTransactionStateForTests as resetCallerTransactionStateForTests, index_resetDatabaseManager as resetDatabaseManager, index_resolvePoolTuningFromEnv as resolvePoolTuningFromEnv, index_runOperationInCallerTransaction as runOperationInCallerTransaction, index_runOperationWithRlsGuc as runOperationWithRlsGuc, index_setWorkspaceContext as setWorkspaceContext, index_testConnection as testConnection, index_toContextJson as toContextJson, index_withWorkspaceContext as withWorkspaceContext, index_withWorkspaceContextSync as withWorkspaceContextSync };
199
- }
200
-
201
- export { parseContext as A, resetDatabaseManager as B, type ContextFilterInput as C, type DatabaseClient as D, resolvePoolTuningFromEnv as E, type FieldExtractionOptions as F, testConnection as G, toContextJson as H, type InputJsonValue as I, type JsonValue as J, type ModelFieldsMap as M, type OperationContext as O, type PoolTuningEnv as P, type ContextWhereCondition as a, type DatabaseClientConfig as b, type FieldExtractionResult as c, type PrismaJsonFilter as d, buildContextWhereClause as e, buildContextWhereConditions as f, checkDatabaseHealth as g, contextMatches as h, index as i, createContextFromSDK as j, createDatabaseClient as k, createDatabaseClientFromEnv as l, extractFieldsFromModel as m, getAllModelNames as n, getDatabaseManager as o, getDatabaseProductName as p, getDatabaseStats as q, getDatabaseVersion as r, getDb as s, getModelFields as t, hasModel as u, initializeDatabase as v, initializeDatabaseWithConfig as w, isDatabaseInitialized as x, loadGeneratedFields as y, mergeContext as z };
@@ -1,39 +0,0 @@
1
- import { G as GatewayClient, c as createGatewayClient, a as createGatewayClientFromEnv, i as isGatewayClientError } from './client-DSI_760t.js';
2
- import { f as GatewayRequestHeaders } from './layer-Cv9vSwBx.js';
3
- import { C as CircuitBreakerStats, e as CircuitState, G as GatewayClientConfig, d as GatewayClientHealth, f as GatewayError, g as GatewayErrorType, h as GraphQLError, a as GraphQLRequestOptions, b as GraphQLResponse, c as ICircuitBreaker, I as IGatewayClient, R as RequestContext } from './types-DgJ4lDYA.js';
4
- import { i as index$1 } from './index-BOuDKnqD.js';
5
-
6
- declare function signServiceJwt(actorId: string, ttlSeconds?: number): Promise<string | null>;
7
-
8
- declare const DELEGATED_AUTHORIZATION_HEADER = "x-delegated-authorization";
9
- interface DelegatedGatewayTransportInput {
10
- appAsUserToken: string;
11
- workspaceId?: string;
12
- }
13
- declare function buildDelegatedGatewayHeaders(input: DelegatedGatewayTransportInput): GatewayRequestHeaders;
14
-
15
- declare const index_CircuitBreakerStats: typeof CircuitBreakerStats;
16
- declare const index_CircuitState: typeof CircuitState;
17
- declare const index_DELEGATED_AUTHORIZATION_HEADER: typeof DELEGATED_AUTHORIZATION_HEADER;
18
- type index_DelegatedGatewayTransportInput = DelegatedGatewayTransportInput;
19
- declare const index_GatewayClient: typeof GatewayClient;
20
- declare const index_GatewayClientConfig: typeof GatewayClientConfig;
21
- declare const index_GatewayClientHealth: typeof GatewayClientHealth;
22
- declare const index_GatewayError: typeof GatewayError;
23
- declare const index_GatewayErrorType: typeof GatewayErrorType;
24
- declare const index_GraphQLError: typeof GraphQLError;
25
- declare const index_GraphQLRequestOptions: typeof GraphQLRequestOptions;
26
- declare const index_GraphQLResponse: typeof GraphQLResponse;
27
- declare const index_ICircuitBreaker: typeof ICircuitBreaker;
28
- declare const index_IGatewayClient: typeof IGatewayClient;
29
- declare const index_RequestContext: typeof RequestContext;
30
- declare const index_buildDelegatedGatewayHeaders: typeof buildDelegatedGatewayHeaders;
31
- declare const index_createGatewayClient: typeof createGatewayClient;
32
- declare const index_createGatewayClientFromEnv: typeof createGatewayClientFromEnv;
33
- declare const index_isGatewayClientError: typeof isGatewayClientError;
34
- declare const index_signServiceJwt: typeof signServiceJwt;
35
- declare namespace index {
36
- export { index_CircuitBreakerStats as CircuitBreakerStats, index_CircuitState as CircuitState, index_DELEGATED_AUTHORIZATION_HEADER as DELEGATED_AUTHORIZATION_HEADER, type index_DelegatedGatewayTransportInput as DelegatedGatewayTransportInput, index_GatewayClient as GatewayClient, index_GatewayClientConfig as GatewayClientConfig, index_GatewayClientHealth as GatewayClientHealth, index_GatewayError as GatewayError, index_GatewayErrorType as GatewayErrorType, index_GraphQLError as GraphQLError, index_GraphQLRequestOptions as GraphQLRequestOptions, index_GraphQLResponse as GraphQLResponse, index_ICircuitBreaker as ICircuitBreaker, index_IGatewayClient as IGatewayClient, index_RequestContext as RequestContext, index$1 as Security, index_buildDelegatedGatewayHeaders as buildDelegatedGatewayHeaders, index_createGatewayClient as createGatewayClient, index_createGatewayClientFromEnv as createGatewayClientFromEnv, index_isGatewayClientError as isGatewayClientError, index_signServiceJwt as signServiceJwt };
37
- }
38
-
39
- export { DELEGATED_AUTHORIZATION_HEADER as D, type DelegatedGatewayTransportInput as a, buildDelegatedGatewayHeaders as b, index as i, signServiceJwt as s };
@@ -1,198 +0,0 @@
1
- import { DocumentNode, FieldDefinitionNode, InputValueDefinitionNode } from 'graphql';
2
-
3
- type NameErrorCode = 'required' | 'too_long' | 'no_letter' | 'invalid_chars';
4
- type NameValidationResult = {
5
- valid: true;
6
- value: string;
7
- } | {
8
- valid: false;
9
- code: NameErrorCode;
10
- message: string;
11
- };
12
- declare const NAME_MIN_LENGTH = 1;
13
- declare const NAME_MAX_LENGTH = 100;
14
- declare function lengthInCodePoints(s: string): number;
15
- declare function validateName(name: string | undefined | null): NameValidationResult;
16
-
17
- type UsernameErrorCode = 'required' | 'too_short' | 'too_long' | 'invalid_chars' | 'no_letter';
18
- type UsernameValidationResult = {
19
- valid: true;
20
- value: string;
21
- } | {
22
- valid: false;
23
- errors: Array<{
24
- code: UsernameErrorCode;
25
- message: string;
26
- }>;
27
- };
28
- declare const USERNAME_MIN_LENGTH = 3;
29
- declare const USERNAME_MAX_LENGTH = 30;
30
- declare function validateUsername(username: string | undefined | null): UsernameValidationResult;
31
-
32
- type UserFieldKey = 'firstName' | 'lastName' | 'username';
33
- interface UserFieldError {
34
- field: UserFieldKey;
35
- code: string;
36
- message: string;
37
- }
38
- interface ValidatedUserFields {
39
- firstName: string;
40
- lastName: string;
41
- username: string;
42
- }
43
- type UserFieldsValidationResult = {
44
- valid: true;
45
- values: ValidatedUserFields;
46
- } | {
47
- valid: false;
48
- errors: UserFieldError[];
49
- };
50
- declare function validateUserFields(input: {
51
- firstName?: string | null;
52
- lastName?: string | null;
53
- username?: string | null;
54
- }, options?: {
55
- requireAll?: boolean;
56
- }): UserFieldsValidationResult;
57
-
58
- declare const RBAC_GATED_SCOPE_TYPES: readonly ["wspace", "global", "entity", "billing", "organization"];
59
- declare const RBAC_SCOPE_TYPES: readonly ["wspace", "global", "entity", "billing", "organization", "self"];
60
- type RbacScopeType = (typeof RBAC_SCOPE_TYPES)[number];
61
- declare const DEFAULT_RBAC_ROOT_TYPES: readonly ["Query", "Mutation", "Subscription"];
62
- declare const DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS = 2;
63
- interface RbacDirectiveArgs {
64
- action?: string;
65
- resource?: string;
66
- resourceIdArg?: string;
67
- scopeType?: string;
68
- scopeArg?: string;
69
- public?: boolean;
70
- actorTypes?: string[];
71
- }
72
- interface RbacRootField {
73
- type: string;
74
- name: string;
75
- coordinate: string;
76
- file?: string;
77
- rbac: RbacDirectiveArgs | null;
78
- }
79
- type RbacFieldPin = readonly string[] | Readonly<Record<string, string>>;
80
- interface RbacCoverageOptions {
81
- rootTypes?: readonly string[];
82
- exemptFields?: readonly string[];
83
- selfScopedFields?: RbacFieldPin;
84
- minRootFields?: number;
85
- maxArgPathSegments?: number;
86
- idScalars?: readonly string[];
87
- }
88
- interface RbacSchemaDocument {
89
- document: DocumentNode;
90
- file?: string;
91
- }
92
- interface RbacCoverageReport {
93
- rootFields: RbacRootField[];
94
- missing: string[];
95
- malformed: string[];
96
- unresolvedArgPaths: string[];
97
- unreviewedSelfScoped: string[];
98
- staleSelfScoped: string[];
99
- problems: string[];
100
- ok: boolean;
101
- }
102
- declare class RbacCoverageError extends Error {
103
- readonly report: RbacCoverageReport;
104
- constructor(report: RbacCoverageReport);
105
- }
106
- type RbacCoverageSource = string | readonly string[] | DocumentNode | readonly DocumentNode[] | readonly RbacSchemaDocument[];
107
- declare function loadRbacSchemaDocuments(paths: string | readonly string[]): RbacSchemaDocument[];
108
- declare function readRbacDirectiveArgs(field: FieldDefinitionNode): RbacDirectiveArgs | null;
109
- declare function rbacArgPathProblem(field: FieldDefinitionNode, path: string, inputs: Map<string, readonly InputValueDefinitionNode[]>, options?: {
110
- maxSegments?: number;
111
- idScalars?: readonly string[];
112
- }): string | null;
113
- declare function analyzeRbacCoverage(source: RbacCoverageSource, options?: RbacCoverageOptions): RbacCoverageReport;
114
- declare function assertRbacCoverage(source: RbacCoverageSource, options?: RbacCoverageOptions): RbacCoverageReport;
115
-
116
- declare const SUPPORTED_BILLING_CURRENCIES: readonly ["USD", "EUR", "GBP", "INR", "AUD", "CAD", "SGD", "JPY", "CNY", "BRL", "MXN", "KRW", "HKD", "NOK", "SEK", "DKK", "CHF", "NZD", "ZAR", "AED", "SAR", "QAR", "OMR", "BHD", "KWD", "JOD", "EGP", "PKR", "BDT", "LKR", "THB", "MYR", "IDR", "PHP", "VND", "TWD", "CZK", "HUF", "PLN", "RON", "RUB", "TRY", "ILS", "NGN", "GHS", "KES", "TZS", "UGX", "ETB", "MAD", "DZD", "TND", "BWP", "MUR", "MVR", "BND", "KHR", "MMK", "KZT", "UZS", "AZN", "GEL", "AMD", "UAH", "BGN", "HRK", "MKD", "ALL", "RSD", "CLP", "COP", "PEN", "ARS", "BOB", "PYG", "UYU", "GTQ", "HNL", "NIO", "CRC", "DOP", "TTD", "JMD", "BBD", "HTG", "BZD", "GYD", "SRD", "XCD", "PAB"];
117
- type SupportedBillingCurrency = (typeof SUPPORTED_BILLING_CURRENCIES)[number];
118
- declare const MAX_BILLING_AMOUNT = 1000000000;
119
- declare function isSupportedBillingCurrency(currency: unknown): boolean;
120
- type BillingAmountErrorCode = 'not_finite' | 'not_positive' | 'negative' | 'exceeds_maximum';
121
- type BillingAmountValidationResult = {
122
- valid: true;
123
- value: number;
124
- } | {
125
- valid: false;
126
- code: BillingAmountErrorCode;
127
- };
128
- declare function validateBillingAmount(amount: unknown, options?: {
129
- allowZero?: boolean;
130
- }): BillingAmountValidationResult;
131
- declare function convertBillingToMinorUnits(amount: number, currency: string): number;
132
- type BillingMoneyErrorCode = BillingAmountErrorCode | 'unsupported_currency' | 'minor_unit_precision';
133
- type BillingMoneyValidationResult = {
134
- valid: true;
135
- value: {
136
- amount: number;
137
- currency: SupportedBillingCurrency;
138
- minorUnits: number;
139
- };
140
- } | {
141
- valid: false;
142
- code: BillingMoneyErrorCode;
143
- };
144
- declare function validateBillingMoney(amount: unknown, currency: unknown, options?: {
145
- allowZero?: boolean;
146
- }): BillingMoneyValidationResult;
147
-
148
- type index_BillingAmountErrorCode = BillingAmountErrorCode;
149
- type index_BillingAmountValidationResult = BillingAmountValidationResult;
150
- type index_BillingMoneyErrorCode = BillingMoneyErrorCode;
151
- type index_BillingMoneyValidationResult = BillingMoneyValidationResult;
152
- declare const index_DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS: typeof DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS;
153
- declare const index_DEFAULT_RBAC_ROOT_TYPES: typeof DEFAULT_RBAC_ROOT_TYPES;
154
- declare const index_MAX_BILLING_AMOUNT: typeof MAX_BILLING_AMOUNT;
155
- declare const index_NAME_MAX_LENGTH: typeof NAME_MAX_LENGTH;
156
- declare const index_NAME_MIN_LENGTH: typeof NAME_MIN_LENGTH;
157
- type index_NameErrorCode = NameErrorCode;
158
- type index_NameValidationResult = NameValidationResult;
159
- declare const index_RBAC_GATED_SCOPE_TYPES: typeof RBAC_GATED_SCOPE_TYPES;
160
- declare const index_RBAC_SCOPE_TYPES: typeof RBAC_SCOPE_TYPES;
161
- type index_RbacCoverageError = RbacCoverageError;
162
- declare const index_RbacCoverageError: typeof RbacCoverageError;
163
- type index_RbacCoverageOptions = RbacCoverageOptions;
164
- type index_RbacCoverageReport = RbacCoverageReport;
165
- type index_RbacCoverageSource = RbacCoverageSource;
166
- type index_RbacDirectiveArgs = RbacDirectiveArgs;
167
- type index_RbacFieldPin = RbacFieldPin;
168
- type index_RbacRootField = RbacRootField;
169
- type index_RbacSchemaDocument = RbacSchemaDocument;
170
- type index_RbacScopeType = RbacScopeType;
171
- declare const index_SUPPORTED_BILLING_CURRENCIES: typeof SUPPORTED_BILLING_CURRENCIES;
172
- type index_SupportedBillingCurrency = SupportedBillingCurrency;
173
- declare const index_USERNAME_MAX_LENGTH: typeof USERNAME_MAX_LENGTH;
174
- declare const index_USERNAME_MIN_LENGTH: typeof USERNAME_MIN_LENGTH;
175
- type index_UserFieldError = UserFieldError;
176
- type index_UserFieldKey = UserFieldKey;
177
- type index_UserFieldsValidationResult = UserFieldsValidationResult;
178
- type index_UsernameErrorCode = UsernameErrorCode;
179
- type index_UsernameValidationResult = UsernameValidationResult;
180
- type index_ValidatedUserFields = ValidatedUserFields;
181
- declare const index_analyzeRbacCoverage: typeof analyzeRbacCoverage;
182
- declare const index_assertRbacCoverage: typeof assertRbacCoverage;
183
- declare const index_convertBillingToMinorUnits: typeof convertBillingToMinorUnits;
184
- declare const index_isSupportedBillingCurrency: typeof isSupportedBillingCurrency;
185
- declare const index_lengthInCodePoints: typeof lengthInCodePoints;
186
- declare const index_loadRbacSchemaDocuments: typeof loadRbacSchemaDocuments;
187
- declare const index_rbacArgPathProblem: typeof rbacArgPathProblem;
188
- declare const index_readRbacDirectiveArgs: typeof readRbacDirectiveArgs;
189
- declare const index_validateBillingAmount: typeof validateBillingAmount;
190
- declare const index_validateBillingMoney: typeof validateBillingMoney;
191
- declare const index_validateName: typeof validateName;
192
- declare const index_validateUserFields: typeof validateUserFields;
193
- declare const index_validateUsername: typeof validateUsername;
194
- declare namespace index {
195
- export { type index_BillingAmountErrorCode as BillingAmountErrorCode, type index_BillingAmountValidationResult as BillingAmountValidationResult, type index_BillingMoneyErrorCode as BillingMoneyErrorCode, type index_BillingMoneyValidationResult as BillingMoneyValidationResult, index_DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS as DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS, index_DEFAULT_RBAC_ROOT_TYPES as DEFAULT_RBAC_ROOT_TYPES, index_MAX_BILLING_AMOUNT as MAX_BILLING_AMOUNT, index_NAME_MAX_LENGTH as NAME_MAX_LENGTH, index_NAME_MIN_LENGTH as NAME_MIN_LENGTH, type index_NameErrorCode as NameErrorCode, type index_NameValidationResult as NameValidationResult, index_RBAC_GATED_SCOPE_TYPES as RBAC_GATED_SCOPE_TYPES, index_RBAC_SCOPE_TYPES as RBAC_SCOPE_TYPES, index_RbacCoverageError as RbacCoverageError, type index_RbacCoverageOptions as RbacCoverageOptions, type index_RbacCoverageReport as RbacCoverageReport, type index_RbacCoverageSource as RbacCoverageSource, type index_RbacDirectiveArgs as RbacDirectiveArgs, type index_RbacFieldPin as RbacFieldPin, type index_RbacRootField as RbacRootField, type index_RbacSchemaDocument as RbacSchemaDocument, type index_RbacScopeType as RbacScopeType, index_SUPPORTED_BILLING_CURRENCIES as SUPPORTED_BILLING_CURRENCIES, type index_SupportedBillingCurrency as SupportedBillingCurrency, index_USERNAME_MAX_LENGTH as USERNAME_MAX_LENGTH, index_USERNAME_MIN_LENGTH as USERNAME_MIN_LENGTH, type index_UserFieldError as UserFieldError, type index_UserFieldKey as UserFieldKey, type index_UserFieldsValidationResult as UserFieldsValidationResult, type index_UsernameErrorCode as UsernameErrorCode, type index_UsernameValidationResult as UsernameValidationResult, type index_ValidatedUserFields as ValidatedUserFields, index_analyzeRbacCoverage as analyzeRbacCoverage, index_assertRbacCoverage as assertRbacCoverage, index_convertBillingToMinorUnits as convertBillingToMinorUnits, index_isSupportedBillingCurrency as isSupportedBillingCurrency, index_lengthInCodePoints as lengthInCodePoints, index_loadRbacSchemaDocuments as loadRbacSchemaDocuments, index_rbacArgPathProblem as rbacArgPathProblem, index_readRbacDirectiveArgs as readRbacDirectiveArgs, index_validateBillingAmount as validateBillingAmount, index_validateBillingMoney as validateBillingMoney, index_validateName as validateName, index_validateUserFields as validateUserFields, index_validateUsername as validateUsername };
196
- }
197
-
198
- export { type RbacFieldPin as A, type BillingAmountErrorCode as B, type RbacRootField as C, DEFAULT_MAX_RBAC_ARG_PATH_SEGMENTS as D, type RbacSchemaDocument as E, type RbacScopeType as F, type SupportedBillingCurrency as G, convertBillingToMinorUnits as H, isSupportedBillingCurrency as I, loadRbacSchemaDocuments as J, rbacArgPathProblem as K, readRbacDirectiveArgs as L, MAX_BILLING_AMOUNT as M, NAME_MAX_LENGTH as N, validateBillingAmount as O, validateBillingMoney as P, RbacCoverageError as R, SUPPORTED_BILLING_CURRENCIES as S, USERNAME_MAX_LENGTH as U, type ValidatedUserFields as V, NAME_MIN_LENGTH as a, type NameErrorCode as b, type NameValidationResult as c, type RbacCoverageOptions as d, type RbacCoverageReport as e, type RbacCoverageSource as f, USERNAME_MIN_LENGTH as g, type UserFieldError as h, type UserFieldKey as i, type UserFieldsValidationResult as j, type UsernameErrorCode as k, type UsernameValidationResult as l, index as m, analyzeRbacCoverage as n, assertRbacCoverage as o, lengthInCodePoints as p, validateUserFields as q, validateUsername as r, type BillingAmountValidationResult as s, type BillingMoneyErrorCode as t, type BillingMoneyValidationResult as u, validateName as v, DEFAULT_RBAC_ROOT_TYPES as w, RBAC_GATED_SCOPE_TYPES as x, RBAC_SCOPE_TYPES as y, type RbacDirectiveArgs as z };