permdock 0.22.1 → 0.24.0

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 (322) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +4 -4
  3. package/dist/{adoption-scan-DzX5Gqcg.js → adoption-scan-CNoE5yBA.js} +1 -1
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +3 -3
  7. package/dist/ai-sdk/index.js +2 -2
  8. package/dist/app/index.d.ts +6 -6
  9. package/dist/app/index.js +4 -4
  10. package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
  11. package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
  12. package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
  13. package/dist/approvals/index.d.ts +3 -3
  14. package/dist/approvals/index.js +3 -3
  15. package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
  16. package/dist/{arazzo-BkjyGVF0.js → arazzo-4rMFOHbu.js} +1 -1
  17. package/dist/{arazzo-CTx11zFc.js → arazzo-rsYPFgga.js} +2 -2
  18. package/dist/astro/index.d.ts +4 -4
  19. package/dist/astro/index.js +2 -2
  20. package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
  21. package/dist/authzen/index.d.ts +5 -5
  22. package/dist/authzen/index.js +3 -3
  23. package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.d.ts} +1 -1
  24. package/dist/better-auth/index.d.ts +1 -1
  25. package/dist/better-auth/index.js +1 -1
  26. package/dist/better-supabase/index.d.ts +61 -23
  27. package/dist/better-supabase/index.js +87 -35
  28. package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
  29. package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
  30. package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
  31. package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
  32. package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
  33. package/dist/{casbin-BFOuRptJ.js → casbin-CjUT-wqV.js} +1 -1
  34. package/dist/{casbin-BpS9ABSO.js → casbin-Dg5N0Gfa.js} +1 -1
  35. package/dist/catalog/index.d.ts +4 -4
  36. package/dist/catalog/index.js +5 -5
  37. package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
  38. package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
  39. package/dist/catalog-DqYnQz8U.js +1 -0
  40. package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
  41. package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
  42. package/dist/chat/index.d.ts +1 -1
  43. package/dist/chat/index.js +3 -3
  44. package/dist/chat-sdk/index.d.ts +3 -3
  45. package/dist/claude-agent/index.d.ts +3 -3
  46. package/dist/claude-agent/index.js +1 -1
  47. package/dist/clerk/index.d.ts +2 -2
  48. package/dist/cli/bin.js +1 -1
  49. package/dist/cli/index.d.ts +4 -4
  50. package/dist/cli/index.js +2 -2
  51. package/dist/cloud/index.d.ts +8 -8
  52. package/dist/cloud/index.js +2 -2
  53. package/dist/{cloud-DXcQXWDi.js → cloud-Blw4AaQv.js} +2 -2
  54. package/dist/{codemod-CxyKuniX.js → codemod-BFFXaS-S.js} +1 -1
  55. package/dist/{codemod-DJ0WqXWk.js → codemod-ByRUKVp-.js} +2 -2
  56. package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
  57. package/dist/collect-CjFczu8a.js +1 -0
  58. package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
  59. package/dist/compile/index.d.ts +1 -1
  60. package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
  61. package/dist/{completion-BHVvAJ6Q.js → completion-BW53byZN.js} +1 -1
  62. package/dist/{config-2grt3oll.js → config-B0qti4jI.js} +1 -1
  63. package/dist/{config-report-Cg5Y5j0h.js → config-report-DgMqeeK6.js} +2 -2
  64. package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
  65. package/dist/convex/index.d.ts +4 -4
  66. package/dist/convex/index.js +1 -1
  67. package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
  68. package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
  69. package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
  70. package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
  71. package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
  72. package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
  73. package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
  74. package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
  75. package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
  76. package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
  77. package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
  78. package/dist/delivery/index.d.ts +4 -4
  79. package/dist/delivery/index.js +1 -1
  80. package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
  81. package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
  82. package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
  83. package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
  84. package/dist/{doctor-iIbdUK8F.js → doctor-Jk2Ifezw.js} +2 -2
  85. package/dist/{doctor-DaRoSPT0.js → doctor-oD08zL1e.js} +37 -19
  86. package/dist/drizzle/index.d.ts +3 -3
  87. package/dist/elysia/index.d.ts +4 -4
  88. package/dist/elysia/index.js +3 -3
  89. package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
  90. package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
  91. package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
  92. package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
  93. package/dist/evaluator-BvRk9kiK.js +0 -0
  94. package/dist/evaluator-eager-DvmrpdZt.js +9 -0
  95. package/dist/evaluator-mHAoYEkk.js +2 -0
  96. package/dist/eve/index.d.ts +4 -4
  97. package/dist/eve/index.js +2 -2
  98. package/dist/express/index.d.ts +4 -4
  99. package/dist/express/index.js +3 -3
  100. package/dist/fastify/index.d.ts +4 -4
  101. package/dist/fastify/index.js +3 -3
  102. package/dist/{fetch-adapter-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
  103. package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
  104. package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
  105. package/dist/fields-DlKwZYiy.js +26 -0
  106. package/dist/from-snapshot-CdGYjHUg.js +153 -0
  107. package/dist/{gen-Cw8goef4.js → gen-BwcwwLok.js} +3 -3
  108. package/dist/{gen-DFpWGJWF.js → gen-D4ulqsYR.js} +1 -1
  109. package/dist/grantee-OG4klcNr.js +110 -0
  110. package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
  111. package/dist/h3/index.d.ts +4 -4
  112. package/dist/h3/index.js +3 -3
  113. package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
  114. package/dist/hono/index.d.ts +4 -4
  115. package/dist/hono/index.js +3 -3
  116. package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
  117. package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
  118. package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
  119. package/dist/{import-DDegvwDI.js → import-BsrnU4BF.js} +1 -1
  120. package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
  121. package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
  122. package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
  123. package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
  124. package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
  125. package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
  126. package/dist/index.d.ts +16 -16
  127. package/dist/index.js +21 -18
  128. package/dist/{init-D_T_zgFg.js → init-Baq0yYfu.js} +1 -1
  129. package/dist/{init-Dz552ZPp.js → init-Cik6ITgM.js} +3 -3
  130. package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
  131. package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
  132. package/dist/jwt/index.d.ts +4 -4
  133. package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
  134. package/dist/kysely/index.d.ts +3 -3
  135. package/dist/{login-DIVe6QdP.js → login-CUboKh0f.js} +3 -3
  136. package/dist/{login-B2usNw0X.js → login-CcBS1xkU.js} +1 -1
  137. package/dist/{manifest-D44OkoLk.js → manifest-BoCYBbQL.js} +1 -1
  138. package/dist/{manifest-CbHnl4I_.js → manifest-CIlVL-QT.js} +35 -35
  139. package/dist/{manifest-schema-DUheHWcp.js → manifest-schema-svAkgqMc.js} +1 -1
  140. package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
  141. package/dist/may-use-D0_wNcgB.js +126 -0
  142. package/dist/mcp/index.d.ts +8 -8
  143. package/dist/mcp/index.js +5 -5
  144. package/dist/membership-filter-CfLdP_F9.js +68 -0
  145. package/dist/nest/index.d.ts +4 -4
  146. package/dist/nest/index.js +3 -3
  147. package/dist/next/index.d.ts +10 -10
  148. package/dist/next/index.js +6 -6
  149. package/dist/next/plugin.d.ts +1 -1
  150. package/dist/next/plugin.js +1 -1
  151. package/dist/node/index.d.ts +4 -4
  152. package/dist/node/index.js +2 -2
  153. package/dist/openai/index.d.ts +4 -4
  154. package/dist/openai/index.js +2 -2
  155. package/dist/openapi/index.d.ts +2 -2
  156. package/dist/{openapi-5moP9sTG.js → openapi-DglIpD53.js} +2 -2
  157. package/dist/{openapi-DcvNnLFa.js → openapi-DobvXTF6.js} +2 -2
  158. package/dist/orpc/index.d.ts +5 -5
  159. package/dist/orpc/index.js +3 -3
  160. package/dist/otel/index.d.ts +3 -3
  161. package/dist/otel/index.js +1 -1
  162. package/dist/{output-RIUEs3_S.js → output-B81GJ6u6.js} +1 -1
  163. package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
  164. package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
  165. package/dist/pdp/index.d.ts +3 -3
  166. package/dist/pdp/index.js +3 -3
  167. package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
  168. package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
  169. package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
  170. package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
  171. package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
  172. package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
  173. package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
  174. package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
  175. package/dist/{powersync-C5_aFFaU.js → powersync-B6f4l8C1.js} +2 -2
  176. package/dist/{powersync-BUO5uQve.js → powersync-BUUqJfH2.js} +6 -6
  177. package/dist/powersync-D12Q6Chj.js +1 -0
  178. package/dist/prisma/index.d.ts +2 -2
  179. package/dist/{protected-action-E7Sdt_Dt.js → protected-action-BWvZjjyt.js} +83 -12
  180. package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
  181. package/dist/provider-B085HEOf.js +12 -0
  182. package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
  183. package/dist/{provider-DKO9KHua.js → provider-with-DobrMx1N.js} +6 -6
  184. package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
  185. package/dist/{pull-BkT7tTKb.js → pull-4Yi8zYeU.js} +3 -3
  186. package/dist/pull-Dr6Bq5Jo.js +1 -0
  187. package/dist/{push-CEPcWdTJ.js → push-Dv1nfFPr.js} +3 -3
  188. package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
  189. package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
  190. package/dist/react/index.d.ts +7 -7
  191. package/dist/react/index.js +4 -4
  192. package/dist/react/lazy.d.ts +12 -0
  193. package/dist/react/lazy.js +36 -0
  194. package/dist/react/provider-client.d.ts +1 -1
  195. package/dist/react/provider-client.js +1 -1
  196. package/dist/react-native/index.d.ts +8 -8
  197. package/dist/react-native/index.js +7 -6
  198. package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
  199. package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
  200. package/dist/resend/index.d.ts +4 -4
  201. package/dist/resend/index.js +2 -2
  202. package/dist/{resolve-names-bzYlAXRt.js → resolve-names-SGcLjtFc.js} +2 -2
  203. package/dist/{rls-v6V75yf_.js → rls-Df9NEWD3.js} +1 -1
  204. package/dist/{rls-DTf8X__h.js → rls-hmwRIS3-.js} +11 -11
  205. package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
  206. package/dist/row-pair-DglMdRFh.js +34 -0
  207. package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
  208. package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
  209. package/dist/{run-CgSQS9RF.js → run-BXmJIjRA.js} +2 -2
  210. package/dist/run-DnzrDgU-.js +1 -0
  211. package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
  212. package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
  213. package/dist/{scan-BY3Pp1PS.js → scan-BrTSlc_5.js} +1 -1
  214. package/dist/{schema-B_HsJKm2.js → schema-UOeI_LTB.js} +1 -1
  215. package/dist/scim/index.d.ts +1 -1
  216. package/dist/server/index.d.ts +11 -11
  217. package/dist/server/index.js +5 -5
  218. package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
  219. package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
  220. package/dist/{skills-Bj2wk38p.js → skills-BTVeFptV.js} +1 -1
  221. package/dist/{skills-Clo4qYLn.js → skills-CAgWKbDR.js} +1 -1
  222. package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
  223. package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
  224. package/dist/snapshot-empty-BoPBFoB8.js +17 -0
  225. package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
  226. package/dist/snapshot-reads-DOsTYC82.js +66 -0
  227. package/dist/solid/index.d.ts +5 -5
  228. package/dist/solid/index.js +2 -2
  229. package/dist/solid-start/index.d.ts +4 -4
  230. package/dist/solid-start/index.js +3 -3
  231. package/dist/{sources-CdYZBVcW.d.ts → sources-DhCtO9G8.d.ts} +1 -1
  232. package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
  233. package/dist/ssf/index.d.ts +3 -3
  234. package/dist/ssf/index.js +2 -2
  235. package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
  236. package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
  237. package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
  238. package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
  239. package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
  240. package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
  241. package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
  242. package/dist/supabase/index.d.ts +6 -6
  243. package/dist/supabase/index.js +2 -2
  244. package/dist/supabase/middleware.d.ts +5 -5
  245. package/dist/supabase/middleware.js +5 -5
  246. package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
  247. package/dist/{supabase-CJv6K3iz.js → supabase-Bt8rb-ah.js} +2 -2
  248. package/dist/{supabase-hook-DLQMugW8.js → supabase-hook-Cb3UZpGC.js} +6 -5
  249. package/dist/supabase-hook-D1pwHu87.js +1 -0
  250. package/dist/{supautils-BHKsP7l-.js → supautils-CuR9rPsi.js} +8 -8
  251. package/dist/svelte/index.d.ts +5 -5
  252. package/dist/svelte/index.js +3 -3
  253. package/dist/svelte/runtime.d.ts +3 -3
  254. package/dist/svelte/runtime.js +1 -1
  255. package/dist/svelte/source.d.ts +5 -5
  256. package/dist/svelte/source.js +2 -2
  257. package/dist/sveltekit/index.d.ts +4 -4
  258. package/dist/sveltekit/index.js +2 -2
  259. package/dist/{tables-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
  260. package/dist/tanstack-start/index.d.ts +4 -4
  261. package/dist/tanstack-start/index.js +2 -2
  262. package/dist/terminal/index.d.ts +5 -5
  263. package/dist/terminal/index.js +3 -3
  264. package/dist/testing/core.d.ts +1 -1
  265. package/dist/testing/core.js +1 -1
  266. package/dist/testing/fixtures/index.d.ts +3 -3
  267. package/dist/testing/fixtures/index.js +7 -1
  268. package/dist/testing/index.d.ts +23 -23
  269. package/dist/testing/index.js +47 -41
  270. package/dist/testing/saas/index.d.ts +3 -3
  271. package/dist/testing/saas/index.js +2 -2
  272. package/dist/testing/saas/permissions.js +1 -1
  273. package/dist/trpc/index.d.ts +5 -5
  274. package/dist/trpc/index.js +3 -3
  275. package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
  276. package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
  277. package/dist/{types-cNZhj0UF.d.ts → types-B_s1oQaF.d.ts} +2 -2
  278. package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
  279. package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
  280. package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
  281. package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
  282. package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
  283. package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
  284. package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
  285. package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
  286. package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
  287. package/dist/unplugin/index.d.ts +1 -1
  288. package/dist/unplugin/index.js +1 -1
  289. package/dist/{usage-DlOllyPi.js → usage-B6sQwycY.js} +4 -4
  290. package/dist/{usage-BUUXeKwk.js → usage-CNkKk27O.js} +1 -1
  291. package/dist/usage-Cem1FOeJ.js +1 -0
  292. package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
  293. package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
  294. package/dist/{verify-CfmvQjVw.js → verify-OtU4yCzg.js} +11 -11
  295. package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
  296. package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
  297. package/dist/vue/index.d.ts +5 -5
  298. package/dist/vue/index.js +2 -2
  299. package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
  300. package/dist/watch-B8F7Wgdy.js +1 -0
  301. package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
  302. package/dist/webmcp/index.d.ts +1 -1
  303. package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
  304. package/dist/workflow/index.d.ts +3 -3
  305. package/dist/workflow/index.js +2 -2
  306. package/dist/workflow-sdk/index.d.ts +4 -4
  307. package/dist/{wrap-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
  308. package/package.json +8 -4
  309. package/schemas/supabase-manifest-v1.json +1 -1
  310. package/skills/permdock-wire/references/adapters.md +2 -0
  311. package/dist/catalog-C462QC3A.js +0 -1
  312. package/dist/collect-W9i7REKT.js +0 -1
  313. package/dist/from-snapshot-oR_N97dM.js +0 -927
  314. package/dist/powersync-DhspazC8.js +0 -1
  315. package/dist/pull-COPm1W-l.js +0 -1
  316. package/dist/run-ItR_bQGz.js +0 -1
  317. package/dist/supabase-hook-vZADjjfN.js +0 -1
  318. package/dist/usage-NmH5QXKC.js +0 -1
  319. package/dist/watch-CHURMgrv.js +0 -1
  320. package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
  321. package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
  322. package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
@@ -0,0 +1,110 @@
1
+ import { t as compact } from "./compact-CAf557ZB.js";
2
+ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
+ import { c as listPermissions, o as isPermission } from "./permission-registry-B8tYxPIt.js";
4
+ import { a as isRole, i as isPlan } from "./vocabulary-BuYFWeCU.js";
5
+ function isGrantee(value) {
6
+ return value !== null && typeof value === "object" && "kind" in value && typeof value.kind === "string";
7
+ }
8
+ function anyone() {
9
+ return freezeDeep({ kind: "anyone" });
10
+ }
11
+ function authenticated() {
12
+ return freezeDeep({ kind: "authenticated" });
13
+ }
14
+ function relation(resource, name, options) {
15
+ const resourceName = listPermissions(resource)[0]?.resource;
16
+ if (resourceName === void 0) throw new Error("PermDock: relation() requires a resource tree");
17
+ const through = options?.through;
18
+ if (Array.isArray(through)) {
19
+ if (through.length === 0) throw new Error("PermDock: relation() through needs at least one link");
20
+ for (const link of through) if (typeof link !== "string" || link === "" || link === "parent") throw new Error("PermDock: relation() through lists link names; walk parents with through: 'parent' or depth");
21
+ } else if (through !== void 0 && through !== "parent") throw new Error(`PermDock: relation() through must be 'parent' or a list of link names (got '${String(through)}')`);
22
+ const depth = options?.depth;
23
+ if (depth !== void 0) {
24
+ if (through === void 0) throw new Error("PermDock: relation() depth needs through: 'parent' or a link list");
25
+ const hops = Array.isArray(through) ? through.length : 0;
26
+ if (!Number.isInteger(depth) || depth < 0 || depth + hops > 32) throw new Error(`PermDock: relation() depth must be an integer from 0 to 32, counting each link`);
27
+ }
28
+ return freezeDeep(compact({
29
+ kind: "relation",
30
+ resource: resourceName,
31
+ relation: name,
32
+ through: through === void 0 || through === "parent" ? through : [...through],
33
+ depth
34
+ }));
35
+ }
36
+ function inherit(permission, options) {
37
+ if (!isPermission(permission) || permission.kind === "collection") throw new Error("PermDock: inherit() takes an instance permission leaf");
38
+ const through = options.through;
39
+ const links = Array.isArray(through) ? through : void 0;
40
+ if (through !== "parent" && (links === void 0 || links.length === 0 || !links.every((link) => typeof link === "string" && link !== "" && link !== "parent"))) throw new Error("PermDock: inherit() through must be 'parent' or a non-empty list of link names");
41
+ return freezeDeep({
42
+ kind: "inherit",
43
+ permission: permission.key,
44
+ resource: permission.resource,
45
+ through: links === void 0 ? "parent" : links.map(String)
46
+ });
47
+ }
48
+ function plan(name) {
49
+ return freezeDeep({
50
+ kind: "plan",
51
+ plan: typeof name === "string" ? name : name.key
52
+ });
53
+ }
54
+ function actor(kind) {
55
+ return freezeDeep({
56
+ kind: "actor",
57
+ actor: kind
58
+ });
59
+ }
60
+ function assurance(options) {
61
+ const acr = options.acr === void 0 ? void 0 : typeof options.acr === "string" ? [options.acr] : options.acr;
62
+ const amr = options.amr === void 0 ? void 0 : typeof options.amr === "string" ? [options.amr] : options.amr;
63
+ return freezeDeep(compact({
64
+ kind: "assurance",
65
+ acr,
66
+ amr,
67
+ maxAge: options.maxAge
68
+ }));
69
+ }
70
+ function resolveRoleScope(on) {
71
+ return typeof on === "string" ? on : "global";
72
+ }
73
+ function asGrantee(input) {
74
+ if (Array.isArray(input)) {
75
+ const items = [];
76
+ for (const item of input) items.push(...flattenGrantee(asGrantee(item)));
77
+ return items;
78
+ }
79
+ if (typeof input === "string") return freezeDeep({
80
+ kind: "role",
81
+ role: input,
82
+ scope: "global"
83
+ });
84
+ if (isRole(input)) return freezeDeep({
85
+ kind: "role",
86
+ role: input.key,
87
+ scope: resolveRoleScope(input.on)
88
+ });
89
+ if (isPlan(input)) return freezeDeep({
90
+ kind: "plan",
91
+ plan: input.key
92
+ });
93
+ if (isGrantee(input)) return input;
94
+ throw new Error("PermDock: invalid grantee");
95
+ }
96
+ function flattenGrantee(input) {
97
+ if (input === void 0) return [];
98
+ if (Array.isArray(input)) return input;
99
+ return [input];
100
+ }
101
+ function roleNameOf(to) {
102
+ for (const item of flattenGrantee(to)) if (item.kind === "role") return item.role;
103
+ return null;
104
+ }
105
+ function roleScopeOf(to, fallback = "global") {
106
+ for (const item of flattenGrantee(to)) if (item.kind === "role") return item.scope;
107
+ return fallback;
108
+ }
109
+ //#endregion
110
+ export { authenticated as a, plan as c, roleScopeOf as d, assurance as i, relation as l, anyone as n, flattenGrantee as o, asGrantee as r, inherit as s, actor as t, roleNameOf as u };
@@ -1,5 +1,5 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
2
+ import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
3
3
  import { u as isoAt } from "./time-nR1JesoH.js";
4
4
  import { d as scopeList, t as activeFor } from "./scopes-gdH__vDZ.js";
5
5
  import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dzprappv.js";
@@ -1,7 +1,7 @@
1
- import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-rNfz7t0M.js";
2
- import { a as PermDock } from "../permdock-BaB-KQqn.js";
3
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types--_Hann81.js";
4
- import { a as ProtectTarget, n as FetchAdapterOptions, r as FetchProtect, t as ContextReader } from "../fetch-adapter-DxqsIXSO.js";
1
+ import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-CCBrL7me.js";
2
+ import { a as PermDock } from "../permdock-vD3mwLSm.js";
3
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CtJSDhOv.js";
4
+ import { a as ProtectTarget, n as FetchAdapterOptions, r as FetchProtect, t as ContextReader } from "../fetch-adapter-eQ-mdk8n.js";
5
5
  import { EventHandler, H3Event, H3EventContext, Middleware } from "h3";
6
6
  //#region src/h3/create.d.ts
7
7
  type H3PermDockOptions<TUser = unknown> = FetchAdapterOptions<H3Event, TUser>;
package/dist/h3/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-BzTDWO4m.js";
2
- import { i as decorate } from "../bind-B4Z0U2Gr.js";
3
- import { t as fetchAdapter } from "../fetch-adapter-MoYZ-vF5.js";
1
+ import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
2
+ import { i as decorate } from "../bind-Cx10JuJ-.js";
3
+ import { t as fetchAdapter } from "../fetch-adapter-CAA3VJMX.js";
4
4
  //#region src/h3/create.ts
5
5
  function createPermDock(policy, options) {
6
6
  const adapter = fetchAdapter(policy, options, "h3", (event) => event.req);
@@ -9,7 +9,7 @@ import { n as toWireDelegation } from "./wire-delegation-Cv3W2eaM.js";
9
9
  import { r as relationReader, t as pendingRelations } from "./relations-CMsJ1ARY.js";
10
10
  import { n as resolveRelated } from "./relation-walk-BDTaTKTM.js";
11
11
  import { i as approverRelationKey, s as ApprovalError, t as APPROVAL_HEADER } from "./types-CcUXciSj.js";
12
- import { n as assertApprover, u as listAllApprovals } from "./store-BpKH-pLm.js";
12
+ import { n as assertApprover, u as listAllApprovals } from "./store-DXO0aVgf.js";
13
13
  import { n as parseApprovalHeader } from "./approval-header-8QV6MU4H.js";
14
14
  //#region src/approvals/directory.ts
15
15
  /**
@@ -1,9 +1,9 @@
1
- import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-rNfz7t0M.js";
1
+ import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-CCBrL7me.js";
2
2
  import { w as Permission } from "../vocabulary-DeZvUaTw.js";
3
- import { a as PermDock } from "../permdock-BaB-KQqn.js";
3
+ import { a as PermDock } from "../permdock-vD3mwLSm.js";
4
4
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
5
- import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types--_Hann81.js";
6
- import { t as ServerAdapterOptions } from "../bind-CnOMjazH.js";
5
+ import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CtJSDhOv.js";
6
+ import { t as ServerAdapterOptions } from "../bind-N5jf6kjk.js";
7
7
  import { Context, Hono, MiddlewareHandler } from "hono";
8
8
  import { SSEMessage, SSEStreamingApi } from "hono/streaming";
9
9
  import { WSEvents } from "hono/ws";
@@ -1,8 +1,8 @@
1
1
  import { t as compact } from "../compact-CAf557ZB.js";
2
2
  import { r as PermDockRevokedError } from "../errors-ynga1EQy.js";
3
- import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-BzTDWO4m.js";
4
- import { r as bindKernel } from "../bind-B4Z0U2Gr.js";
5
- import { t as problemFromError } from "../map-error-p4ROJ_26.js";
3
+ import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
4
+ import { r as bindKernel } from "../bind-Cx10JuJ-.js";
5
+ import { t as problemFromError } from "../map-error-BCdb2Nrp.js";
6
6
  import { a as onRevoked, n as closeReason, r as guardIterable, t as POLICY_VIOLATION } from "../stream-DQ3rbO3J.js";
7
7
  import { Hono } from "hono";
8
8
  //#region src/hono/create.ts
@@ -1,4 +1,4 @@
1
- import { D as Policy, Er as Condition, In as Grantee, s as ApprovalRequirement } from "./policy-types-rNfz7t0M.js";
1
+ import { D as Policy, Er as Condition, In as Grantee, s as ApprovalRequirement } from "./policy-types-CCBrL7me.js";
2
2
  //#region src/core/hosted.d.ts
3
3
  /**
4
4
  * One grant authored in PermDock Cloud; its grantee is a declared role, plan or
@@ -1,14 +1,15 @@
1
1
  import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { n as isForbiddenKey, s as splitPath } from "./paths-CUvURzHp.js";
4
- import { a as deny, i as completeGrant, l as normalizeWhere, n as role, r as allow } from "./role-builder-boQiUvfo.js";
4
+ import { a as deny, i as completeGrant, l as normalizeWhere, n as role, r as allow } from "./role-builder-BXdhhQcB.js";
5
5
  import { a as getResource, n as findPermission } from "./permission-registry-B8tYxPIt.js";
6
6
  import { d as isSelfParented } from "./resource-relations-8-pCScBO.js";
7
- import { _ as listPlans, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
7
+ import { o as listPlans, r as findRole } from "./vocabulary-BuYFWeCU.js";
8
+ import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
8
9
  import { a as durationOf, l as isRfc3339, m as rfc3339 } from "./time-nR1JesoH.js";
9
10
  import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
10
- import { o as readWireApproval } from "./approval-normalize-DNLW0zOM.js";
11
- import { a as indexPolicy, n as declaredRoleNames } from "./policy-wGzbAPQF.js";
11
+ import { o as readWireApproval } from "./approval-normalize-KfhzpD93.js";
12
+ import { a as indexPolicy, n as declaredRoleNames } from "./policy-BovcTojN.js";
12
13
  //#region src/core/hosted.ts
13
14
  function memoryPolicySource(document = null) {
14
15
  const current = document === null ? null : parsePolicyDocument(document);
@@ -5,7 +5,7 @@ import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
5
5
  import { r as escapeSqlIdent, s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
6
6
  import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
7
7
  import { C as parseMembershipsFlag, r as HELPERS } from "./shared-DfaIWvIJ.js";
8
- import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
8
+ import { t as FIELD_VIEWS } from "./fields-B17OWcPx.js";
9
9
  import { n as emptySchema, r as isSchemaKind, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
10
10
  import { existsSync, readFileSync } from "node:fs";
11
11
  import { resolve } from "node:path";
@@ -4,7 +4,7 @@ import { i as readJsonFile } from "./files-BSjrtIHw.js";
4
4
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
5
5
  import { n as httpRequest } from "./http-dptLQzPP.js";
6
6
  import { i as schemaExpression, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
7
- import { t as validateOpenapi } from "./schema-B_HsJKm2.js";
7
+ import { t as validateOpenapi } from "./schema-UOeI_LTB.js";
8
8
  import { existsSync, readFileSync } from "node:fs";
9
9
  import { resolve } from "node:path";
10
10
  //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
@@ -1,4 +1,4 @@
1
- import { X as DecisionSink, it as MembershipSource, vt as TokenVerifier } from "./policy-types-rNfz7t0M.js";
1
+ import { X as DecisionSink, it as MembershipSource, vt as TokenVerifier } from "./policy-types-CCBrL7me.js";
2
2
  import { K as AppData } from "./vocabulary-DeZvUaTw.js";
3
3
  import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
4
4
  import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
@@ -1,8 +1,8 @@
1
- import { D as Policy, N as PolicyVocabulary, Tt as SupportSession, Yn as Decision, _t as TokenSigner, gt as TokenFailureCause, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
1
+ import { D as Policy, N as PolicyVocabulary, Tt as SupportSession, Yn as Decision, _t as TokenSigner, gt as TokenFailureCause, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
2
2
  import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
3
- import { _ as PrincipalSource } from "./permdock-BaB-KQqn.js";
4
- import { a as ProblemDetails, s as Disclosure, t as ApprovalHint } from "./errors-D_JIQJYb.js";
5
- import { c as ServerPermDock, l as ServerPermDockOptions } from "./server-types--_Hann81.js";
3
+ import { _ as PrincipalSource } from "./permdock-vD3mwLSm.js";
4
+ import { a as ProblemDetails, s as Disclosure, t as ApprovalHint } from "./errors-CXxQwtbZ.js";
5
+ import { c as ServerPermDock, l as ServerPermDockOptions } from "./server-types-CtJSDhOv.js";
6
6
  //#region src/server/create.d.ts
7
7
  /**
8
8
  * The Fetch factory behind every HTTP adapter. The subject and actor are
@@ -1,5 +1,5 @@
1
- import { D as Policy, _t as TokenSigner, yr as Principal } from "./policy-types-rNfz7t0M.js";
2
- import { E as SsfPermDockOptions, O as SsfStreamConfiguration, T as SsfPermDock, _ as SetSubject, c as PushSetOptions, d as SetDelivery, g as SetQueue, h as SetPollHandlerOptions, k as SsfStreamStatus, m as SetEvent, p as SetError, t as CaepCommon, v as SignSetOptions } from "./types-Cq2rvv-C.js";
1
+ import { D as Policy, _t as TokenSigner, yr as Principal } from "./policy-types-CCBrL7me.js";
2
+ import { E as SsfPermDockOptions, O as SsfStreamConfiguration, T as SsfPermDock, _ as SetSubject, c as PushSetOptions, d as SetDelivery, g as SetQueue, h as SetPollHandlerOptions, k as SsfStreamStatus, m as SetEvent, p as SetError, t as CaepCommon, v as SignSetOptions } from "./types-CdXM6qPc.js";
3
3
  //#region src/ssf/create.d.ts
4
4
  declare function createPermDock<TUser, TPrincipal extends Principal = Principal>(policy: Policy<TUser, TPrincipal>, options: SsfPermDockOptions): SsfPermDock;
5
5
  //#endregion
@@ -1,11 +1,11 @@
1
- import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
1
+ import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
2
2
  import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, I as ResourceParent, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, T as PermissionKind, a as RoleTree, g as ActionMeta, h as ActionList, r as Role, w as Permission, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
3
- import { a as PermDock } from "./permdock-BaB-KQqn.js";
4
- import { o as PolicyDocument } from "./hosted-DXq1plaP.js";
5
- import { n as PermDockWrap } from "./wrap-B-k2qHJx.js";
6
- import { s as VersionCache } from "./subject-cache-d_Z4KAnm.js";
3
+ import { a as PermDock } from "./permdock-vD3mwLSm.js";
4
+ import { o as PolicyDocument } from "./hosted-BUCpV8-u.js";
5
+ import { n as PermDockWrap } from "./wrap-CVBPIuEs.js";
6
+ import { s as VersionCache } from "./subject-cache-DrJGnRiV.js";
7
7
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
8
- import { i as CatalogEventData, s as CloudEvent } from "./sink-Cs6z34AX.js";
8
+ import { i as CatalogEventData, s as CloudEvent } from "./sink-BskpqwLl.js";
9
9
  import { StandardSchemaV1 } from "@standard-schema/spec";
10
10
  //#region src/conditions/refs.d.ts
11
11
  type KnownRefField = "id" | "issuer" | "kind" | "tenant" | "team" | "roles" | "plans" | "memberships" | "assurance" | "binding" | "session" | "claims";
@@ -111,12 +111,14 @@ declare function customRoleClaim(roles: readonly CustomRole[], policy?: Policy):
111
111
  //#region src/core/snapshot.d.ts
112
112
  declare function parseSnapshot(json: unknown): Snapshot;
113
113
  //#endregion
114
+ //#region src/core/snapshot-empty.d.ts
115
+ declare function emptySnapshot(): Snapshot;
116
+ //#endregion
114
117
  //#region src/core/from-snapshot.d.ts
115
118
  declare function fromSnapshot(snapshot: Snapshot, options?: {
116
119
  readonly tenant?: string;
117
120
  readonly team?: string;
118
121
  }): PermDock;
119
- declare function emptySnapshot(): Snapshot;
120
122
  //#endregion
121
123
  //#region src/core/approval-required.d.ts
122
124
  declare function requiresApproval(approval: Grant["approval"] | undefined): boolean;
@@ -1147,4 +1149,4 @@ declare function coveredByDelegation(permission: DelegatedPermission, delegation
1147
1149
  */
1148
1150
  declare function delegatedPermissions(delegations: readonly PolicyDelegation[] | undefined, subject: Subject, heldRoles: ReadonlySet<string>, now: number): ReadonlySet<string> | undefined;
1149
1151
  //#endregion
1150
- export { resource as $, listPermissions as $t, RoleChangeCheckInput as A, MemoryEdge as At, ActivateInput as B, memoryCustomRoleSource as Bt, parseCatalogEventData as C, snapshotFromClaims as Ct, parseSinkEvents as D, HoldingVia as Dt, parseSinkEvent as E, Holder as Et, checkRoleChange as F, claimsFirst as Ft, allow as G, subjectMembershipSource as Gt, breakGlass as H, memoryMembershipSource as Ht, decideRoleChange as I, composeMemberships as It, role as J, sqlFunction as Jt, deny as K, AccessOutcome as Kt, normalizeMembership as L, countHolders as Lt, RoleChangeOptions as M, memoryRelationSource as Mt, RoleChangeTarget as N, StripeEntitlementsClient as Nt, RoleChange as O, WhoCan as Ot, RoleRules as P, stripeEntitlementSource as Pt, formerKeys as Q, isPermission as Qt, normalizeMemberships as R, isExternallyManaged as Rt, SINK_EVENT_SCHEMAS as S, principal as Sn, snapshotClaims as St, parseCloudEventBatch as T, signPolicyDocument as Tt, supportAccess as U, memorySettingsSource as Ut, activate as V, memoryEntitlementSource as Vt, normalizeApproval as W, memorySnapshotSource as Wt, readable as X, findPermission as Xt, crud as Y, opaque as Yt, writable as Z, getResource as Zt, DECISION_EVENT_SCHEMA as _, parseCustomRoleEntry as _n, simulateArazzo as _t, catalogFingerprint as a, requiresApproval as an, customRoleSource as at, EVENT_SCHEMA_IDS as b, claim as bn, SnapshotClaims as bt, OCSF_VERSION as c, parseSnapshot as cn, ShadowMismatch as ct, accessToOcsf as d, CustomRoleEntry as dn, localSnapshotManifest as dt, mergePermissions as en, definePermissions as et, toOcsf as f, CustomRoleRename as fn, ArazzoFinding as ft, CREDENTIAL_EVENT_SCHEMA as g, customRoleClaim as gn, arazzoFindings as gt, CATALOG_EVENT_SCHEMA as h, ValidateCustomRoleOptions as hn, ArazzoStepResult as ht, canonicalJson as i, separationConflicts as in, CustomRoleSourceOptions as it, RoleChangeDecision as j, MemoryRelationSourceData as jt, RoleChangeCheck as k, whoCan as kt, OcsfAuthorizeSession as l, CustomRoleDrop as ln, ShadowOptions as lt, AUTOMATION_EVENT_SCHEMA as m, ResolvedCustomRole as mn, ArazzoSimulateInput as mt, delegatedPermissions as n, definePolicy as nn, snapshotFor as nt, CSV_COLUMNS as o, emptySnapshot as on, mayAccess as ot, ACCESS_EVENT_SCHEMA as p, CustomRoleValidation as pn, ArazzoPlan as pt, normalizeAssurance as q, accessOutcome as qt, sha256Digest as r, isRoleName as rn, CustomRoleReader as rt, toCsvRow as s, fromSnapshot as sn, LegacyCheck as st, coveredByDelegation as t, RoleNameOf as tn, SnapshotForOptions as tt, OcsfUserManagement as u, CustomRoleDropReason as un, shadowMode as ut, DELIVERY_EVENT_SCHEMA as v, resolveCustomRole as vn, deliveryEvent as vt, parseCloudEvent as w, SignPolicyDocumentOptions as wt, MEMBERSHIP_EVENT_SCHEMA as x, context as xn, signSnapshot as xt, DIRECTORY_EVENT_SCHEMA as y, validateCustomRole as yn, SignSnapshotOptions as yt, resolveScope as z, APPROVAL_POLICY_UNAVAILABLE as zt };
1152
+ export { resource as $, listPermissions as $t, RoleChangeCheckInput as A, MemoryEdge as At, ActivateInput as B, memoryCustomRoleSource as Bt, parseCatalogEventData as C, snapshotFromClaims as Ct, parseSinkEvents as D, HoldingVia as Dt, parseSinkEvent as E, Holder as Et, checkRoleChange as F, claimsFirst as Ft, allow as G, subjectMembershipSource as Gt, breakGlass as H, memoryMembershipSource as Ht, decideRoleChange as I, composeMemberships as It, role as J, sqlFunction as Jt, deny as K, AccessOutcome as Kt, normalizeMembership as L, countHolders as Lt, RoleChangeOptions as M, memoryRelationSource as Mt, RoleChangeTarget as N, StripeEntitlementsClient as Nt, RoleChange as O, WhoCan as Ot, RoleRules as P, stripeEntitlementSource as Pt, formerKeys as Q, isPermission as Qt, normalizeMemberships as R, isExternallyManaged as Rt, SINK_EVENT_SCHEMAS as S, principal as Sn, snapshotClaims as St, parseCloudEventBatch as T, signPolicyDocument as Tt, supportAccess as U, memorySettingsSource as Ut, activate as V, memoryEntitlementSource as Vt, normalizeApproval as W, memorySnapshotSource as Wt, readable as X, findPermission as Xt, crud as Y, opaque as Yt, writable as Z, getResource as Zt, DECISION_EVENT_SCHEMA as _, parseCustomRoleEntry as _n, simulateArazzo as _t, catalogFingerprint as a, requiresApproval as an, customRoleSource as at, EVENT_SCHEMA_IDS as b, claim as bn, SnapshotClaims as bt, OCSF_VERSION as c, parseSnapshot as cn, ShadowMismatch as ct, accessToOcsf as d, CustomRoleEntry as dn, localSnapshotManifest as dt, mergePermissions as en, definePermissions as et, toOcsf as f, CustomRoleRename as fn, ArazzoFinding as ft, CREDENTIAL_EVENT_SCHEMA as g, customRoleClaim as gn, arazzoFindings as gt, CATALOG_EVENT_SCHEMA as h, ValidateCustomRoleOptions as hn, ArazzoStepResult as ht, canonicalJson as i, separationConflicts as in, CustomRoleSourceOptions as it, RoleChangeDecision as j, MemoryRelationSourceData as jt, RoleChangeCheck as k, whoCan as kt, OcsfAuthorizeSession as l, CustomRoleDrop as ln, ShadowOptions as lt, AUTOMATION_EVENT_SCHEMA as m, ResolvedCustomRole as mn, ArazzoSimulateInput as mt, delegatedPermissions as n, definePolicy as nn, snapshotFor as nt, CSV_COLUMNS as o, fromSnapshot as on, mayAccess as ot, ACCESS_EVENT_SCHEMA as p, CustomRoleValidation as pn, ArazzoPlan as pt, normalizeAssurance as q, accessOutcome as qt, sha256Digest as r, isRoleName as rn, CustomRoleReader as rt, toCsvRow as s, emptySnapshot as sn, LegacyCheck as st, coveredByDelegation as t, RoleNameOf as tn, SnapshotForOptions as tt, OcsfUserManagement as u, CustomRoleDropReason as un, shadowMode as ut, DELIVERY_EVENT_SCHEMA as v, resolveCustomRole as vn, deliveryEvent as vt, parseCloudEvent as w, SignPolicyDocumentOptions as wt, MEMBERSHIP_EVENT_SCHEMA as x, context as xn, signSnapshot as xt, DIRECTORY_EVENT_SCHEMA as y, validateCustomRole as yn, SignSnapshotOptions as yt, resolveScope as z, APPROVAL_POLICY_UNAVAILABLE as zt };
@@ -1,10 +1,10 @@
1
- import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-rNfz7t0M.js";
1
+ import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, yr as Principal } from "./policy-types-CCBrL7me.js";
2
2
  import { w as Permission } from "./vocabulary-DeZvUaTw.js";
3
3
  import { t as Operation } from "./operations-BMPx7HyO.js";
4
- import { _ as PrincipalSource, a as PermDock } from "./permdock-BaB-KQqn.js";
4
+ import { _ as PrincipalSource, a as PermDock } from "./permdock-vD3mwLSm.js";
5
5
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
6
- import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-B9F0EZAF.js";
7
- import { l as WebhookSigner } from "./standard-webhooks-CJBgfl7y.js";
6
+ import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-DyA4Loy4.js";
7
+ import { l as WebhookSigner } from "./standard-webhooks-kQDkIPj3.js";
8
8
  //#region src/delivery/audience.d.ts
9
9
  type Audience = {
10
10
  /**
@@ -1,8 +1,8 @@
1
- import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-rNfz7t0M.js";
1
+ import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-CCBrL7me.js";
2
2
  import { E as PermissionTree, K as AppData, w as Permission } from "./vocabulary-DeZvUaTw.js";
3
- import { a as PermDock } from "./permdock-BaB-KQqn.js";
4
- import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-ZfjQB0KC.js";
5
- import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-BSNZMp5b.js";
3
+ import { a as PermDock } from "./permdock-vD3mwLSm.js";
4
+ import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-CAp7UGiB.js";
5
+ import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-ChYCRn7Y.js";
6
6
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
7
7
  //#region src/approvals/access-reviews/handler.d.ts
8
8
  type AccessReviewsHandlerOptions = {
package/dist/index.d.ts CHANGED
@@ -1,25 +1,25 @@
1
- import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-rNfz7t0M.js";
1
+ import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-CCBrL7me.js";
2
2
  import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, G as RESOURCE_X, H as PERMISSION_ROW, I as ResourceParent, J as MetaValue, K as AppData, L as ResourceRelation, M as ResourceLink, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, S as FieldRelation, T as PermissionKind, U as POLICY_SCOPES, V as RowOf, W as RESOURCE_NAME, _ as ComputedRelation, a as RoleTree, b as EdgeMatch, c as definePlans, d as isPlan, f as isRole, g as ActionMeta, i as RoleMeta, j as ResourceLevel, k as PrincipalRelation, l as defineRoles, m as listRoles, n as PlanTree, o as Vocabulary, p as listPlans, q as AppDataSchema, r as Role, s as VocabularyOptions, t as Plan, u as findRole, v as EdgeGroup, w as Permission, x as EdgeRelation, y as EdgeGroups, z as ResourceRestricted } from "./vocabulary-DeZvUaTw.js";
3
- import { $ as resource, $t as listPermissions, A as RoleChangeCheckInput, At as MemoryEdge, B as ActivateInput, Bt as memoryCustomRoleSource, C as parseCatalogEventData, Ct as snapshotFromClaims, D as parseSinkEvents, Dt as HoldingVia, E as parseSinkEvent, Et as Holder, F as checkRoleChange, Ft as claimsFirst, G as allow, Gt as subjectMembershipSource, H as breakGlass, Ht as memoryMembershipSource, I as decideRoleChange, It as composeMemberships, J as role, Jt as sqlFunction, K as deny, Kt as AccessOutcome, L as normalizeMembership, Lt as countHolders, M as RoleChangeOptions, Mt as memoryRelationSource, N as RoleChangeTarget, Nt as StripeEntitlementsClient, O as RoleChange, Ot as WhoCan, P as RoleRules, Pt as stripeEntitlementSource, Q as formerKeys, Qt as isPermission, R as normalizeMemberships, Rt as isExternallyManaged, S as SINK_EVENT_SCHEMAS, Sn as principal, St as snapshotClaims, T as parseCloudEventBatch, Tt as signPolicyDocument, U as supportAccess, Ut as memorySettingsSource, V as activate, Vt as memoryEntitlementSource, W as normalizeApproval, Wt as memorySnapshotSource, X as readable, Xt as findPermission, Y as crud, Yt as opaque, Z as writable, Zt as getResource, _ as DECISION_EVENT_SCHEMA, _n as parseCustomRoleEntry, _t as simulateArazzo, a as catalogFingerprint, an as requiresApproval, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as claim, bt as SnapshotClaims, c as OCSF_VERSION, cn as parseSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleEntry, dt as localSnapshotManifest, en as mergePermissions, et as definePermissions, f as toOcsf, fn as CustomRoleRename, ft as ArazzoFinding, g as CREDENTIAL_EVENT_SCHEMA, gn as customRoleClaim, gt as arazzoFindings, h as CATALOG_EVENT_SCHEMA, hn as ValidateCustomRoleOptions, ht as ArazzoStepResult, i as canonicalJson, in as separationConflicts, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as MemoryRelationSourceData, k as RoleChangeCheck, kt as whoCan, l as OcsfAuthorizeSession, ln as CustomRoleDrop, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as ResolvedCustomRole, mt as ArazzoSimulateInput, n as delegatedPermissions, nn as definePolicy, nt as snapshotFor, o as CSV_COLUMNS, on as emptySnapshot, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleValidation, pt as ArazzoPlan, q as normalizeAssurance, qt as accessOutcome, r as sha256Digest, rn as isRoleName, rt as CustomRoleReader, s as toCsvRow, sn as fromSnapshot, st as LegacyCheck, t as coveredByDelegation, tn as RoleNameOf, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDropReason, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as resolveCustomRole, vt as deliveryEvent, w as parseCloudEvent, wt as SignPolicyDocumentOptions, x as MEMBERSHIP_EVENT_SCHEMA, xn as context, xt as signSnapshot, y as DIRECTORY_EVENT_SCHEMA, yn as validateCustomRole, yt as SignSnapshotOptions, z as resolveScope, zt as APPROVAL_POLICY_UNAVAILABLE } from "./index-Cjfa1Uwr.js";
3
+ import { $ as resource, $t as listPermissions, A as RoleChangeCheckInput, At as MemoryEdge, B as ActivateInput, Bt as memoryCustomRoleSource, C as parseCatalogEventData, Ct as snapshotFromClaims, D as parseSinkEvents, Dt as HoldingVia, E as parseSinkEvent, Et as Holder, F as checkRoleChange, Ft as claimsFirst, G as allow, Gt as subjectMembershipSource, H as breakGlass, Ht as memoryMembershipSource, I as decideRoleChange, It as composeMemberships, J as role, Jt as sqlFunction, K as deny, Kt as AccessOutcome, L as normalizeMembership, Lt as countHolders, M as RoleChangeOptions, Mt as memoryRelationSource, N as RoleChangeTarget, Nt as StripeEntitlementsClient, O as RoleChange, Ot as WhoCan, P as RoleRules, Pt as stripeEntitlementSource, Q as formerKeys, Qt as isPermission, R as normalizeMemberships, Rt as isExternallyManaged, S as SINK_EVENT_SCHEMAS, Sn as principal, St as snapshotClaims, T as parseCloudEventBatch, Tt as signPolicyDocument, U as supportAccess, Ut as memorySettingsSource, V as activate, Vt as memoryEntitlementSource, W as normalizeApproval, Wt as memorySnapshotSource, X as readable, Xt as findPermission, Y as crud, Yt as opaque, Z as writable, Zt as getResource, _ as DECISION_EVENT_SCHEMA, _n as parseCustomRoleEntry, _t as simulateArazzo, a as catalogFingerprint, an as requiresApproval, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as claim, bt as SnapshotClaims, c as OCSF_VERSION, cn as parseSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleEntry, dt as localSnapshotManifest, en as mergePermissions, et as definePermissions, f as toOcsf, fn as CustomRoleRename, ft as ArazzoFinding, g as CREDENTIAL_EVENT_SCHEMA, gn as customRoleClaim, gt as arazzoFindings, h as CATALOG_EVENT_SCHEMA, hn as ValidateCustomRoleOptions, ht as ArazzoStepResult, i as canonicalJson, in as separationConflicts, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as MemoryRelationSourceData, k as RoleChangeCheck, kt as whoCan, l as OcsfAuthorizeSession, ln as CustomRoleDrop, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as ResolvedCustomRole, mt as ArazzoSimulateInput, n as delegatedPermissions, nn as definePolicy, nt as snapshotFor, o as CSV_COLUMNS, on as fromSnapshot, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleValidation, pt as ArazzoPlan, q as normalizeAssurance, qt as accessOutcome, r as sha256Digest, rn as isRoleName, rt as CustomRoleReader, s as toCsvRow, sn as emptySnapshot, st as LegacyCheck, t as coveredByDelegation, tn as RoleNameOf, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDropReason, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as resolveCustomRole, vt as deliveryEvent, w as parseCloudEvent, wt as SignPolicyDocumentOptions, x as MEMBERSHIP_EVENT_SCHEMA, xn as context, xt as signSnapshot, y as DIRECTORY_EVENT_SCHEMA, yn as validateCustomRole, yt as SignSnapshotOptions, z as resolveScope, zt as APPROVAL_POLICY_UNAVAILABLE } from "./index-DD2FBFdm.js";
4
4
  import { a as OperationInput, c as defineOperations, d as isOperationRisk, i as OperationEffect, l as OPERATION_RISKS, n as OperationData, o as OperationMap, r as OperationDefinition, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-BMPx7HyO.js";
5
- import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-UnDSxT__.js";
6
- import { A as GrantedPermissionsOptions, C as memoryLimitStore, D as InstanceCacheOptions, E as InstanceCacheKey, M as PermissionCheck, N as PermissionState, O as InstanceCacheStats, S as limits, T as InstanceCache, _ as PrincipalSource, a as PermDock, b as PermittedIdsOptions, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, j as isGlobalPermission, k as instanceCache, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as CustomRoleOwner, x as Limits, y as MembershipFilter } from "./permdock-BaB-KQqn.js";
7
- import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-DXq1plaP.js";
8
- import { n as PermDockValidationError } from "./validation-error-DLAYFlkr.js";
9
- import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-D_JIQJYb.js";
10
- import { t as InstanceOptions } from "./instance-options-C6gEDOts.js";
5
+ import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-D7moEfTM.js";
6
+ import { A as GrantedPermissionsOptions, C as memoryLimitStore, D as InstanceCacheOptions, E as InstanceCacheKey, M as PermissionCheck, N as PermissionState, O as InstanceCacheStats, S as limits, T as InstanceCache, _ as PrincipalSource, a as PermDock, b as PermittedIdsOptions, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, j as isGlobalPermission, k as instanceCache, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as CustomRoleOwner, x as Limits, y as MembershipFilter } from "./permdock-vD3mwLSm.js";
7
+ import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-BUCpV8-u.js";
8
+ import { n as PermDockValidationError } from "./validation-error-BE8bpmhR.js";
9
+ import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-CXxQwtbZ.js";
10
+ import { t as InstanceOptions } from "./instance-options-BDHB3qBG.js";
11
11
  import { t as RequestContext } from "./request-context-C2_1lchh.js";
12
- import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-B-k2qHJx.js";
13
- import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-d_Z4KAnm.js";
12
+ import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-CVBPIuEs.js";
13
+ import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-DrJGnRiV.js";
14
14
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
15
15
  import { t as approvalFingerprint } from "./token-D6pWn8Uj.js";
16
16
  import { i as memoryRevocationFeed, n as RevocationFeed, r as RevocationListener, t as RevocationEvent } from "./revocations-BaUXHM1N.js";
17
17
  import { t as ClientNames } from "./clients-C_NOET3z.js";
18
- import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-YkRMUAsF.js";
19
- import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-B20_8UoT.js";
20
- import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-Cs6z34AX.js";
21
- import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-iXJEIDe7.js";
22
- import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-DVobr5FX.js";
18
+ import { a as CapabilityOptions, c as LinkPolicy, d as linkPolicyViolation, f as parseCapability, i as CapabilityInput, l as LinkPolicyViolation, m as signCapability, n as CapabilityClaim, o as CapabilityPrincipal, p as parseCapabilityClaim, r as CapabilityConfirmation, s as CapabilityRedeemer, t as Capability, u as capabilityFromClaims } from "./capability-mLbd3KZ0.js";
19
+ import { a as AutomationSource, c as decideAutomation, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, o as DecideAutomationOptions, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "./automation-CrGcfIZn.js";
20
+ import { S as toCloudEvent, _ as credentialEvent, a as CatalogFinding, b as signDecisionBatch, c as CloudEventOptions, d as MemoryDecisionSinkOptions, f as RESERVED_CLOUD_EVENT_TYPES, g as cloudEventType, h as automationEvent, i as CatalogEventData, l as CloudEventType, m as accessEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as CatalogFindingCode, p as SignDecisionBatchOptions, r as CLOUD_EVENT_TYPES, s as CloudEvent, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, u as MemoryDecisionSink, v as membershipEvent, x as supportSessionEvent, y as memoryDecisionSink } from "./sink-BskpqwLl.js";
21
+ import { a as PlanNameOf, c as VocabularyOf, i as PermissionOf, n as OperationNameOf, s as ScopeNameOf } from "./type-helpers-fQdBvtU0.js";
22
+ import { i as describe, n as DescribeMessages, r as DescribeOptions, t as DecisionDescription } from "./describe-CazEjtOH.js";
23
23
  import { n as parsePermDockDigest, t as PermDockDigest } from "./digest-8Yx2CchM.js";
24
- import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-BaCqsqwC.js";
24
+ import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-DzZOzDsK.js";
25
25
  export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, type AccessEvent, type AccessOutcome, type ActionMeta, type ActivateInput, type ActivationOption, type Actor, type ActorKind, type AdapterId, type AnyOfApprover, type ApiKeyPrincipal, type AppData, type AppDataSchema, type AppObligation, type ApprovalCombine, type ApprovalEscalation, type ApprovalFallback, type ApprovalMode, type ApprovalOption, type ApprovalPolicies, type ApprovalPolicy, type ApprovalPolicyProblem, type ApprovalPolicySource, type ApprovalPolicyValidation, type ApprovalRequiredDecision, type ApprovalRequirement, type ApprovalStage, type Approver, type ApproverInput, type ArazzoFinding, type ArazzoPlan, type ArazzoSimulateInput, type ArazzoStepResult, type Assurance, type AssuranceRequirement, type AuthEvent, type AuthorizationDetail, type Automation, type AutomationDecision, type AutomationEvent, type AutomationMode, type AutomationRequest, type AutomationSource, type Binding, type BreakGlassOptions, type BreakGlassRequirements, type BreakGlassSpec, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, type Capability, type CapabilityClaim, type CapabilityConfirmation, type CapabilityInput, type CapabilityOptions, type CapabilityPrincipal, type CapabilityRedeemer, type CatalogEventData, type CatalogFinding, type CatalogFindingCode, type ClientNames, type ClosureContext, type ClosureGrantFn, type CloudEvent, type CloudEventOptions, type CloudEventType, type ComputedRelation, type Condition, type ConditionRef, type ConditionValue, type Credential, type CredentialDecision, type CredentialEvent, type CredentialKind, type CredentialPermission, type CredentialPermissionInput, type CredentialPolicy, type CredentialPolicyViolation, type CredentialRequest, type CredentialVerifier, type CustomRole, type CustomRoleContext, type CustomRoleDrop, type CustomRoleDropReason, type CustomRoleEntry, type CustomRoleGrant, type CustomRoleOwner, type CustomRoleReader, type CustomRoleRename, type CustomRoleSource, type CustomRoleSourceFactory, type CustomRoleSourceOptions, type CustomRoleValidation, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, type DecideAutomationOptions, type DecideCredentialOptions, type DecideIdsOptions, type DecideOptions, type DecideSupportSessionOptions, type Decision, type DecisionDescription, type DecisionEvent, type DecisionProvider, type DecisionSink, type Delegation, type DelegationInput, type DelegationTarget, type DeliveryChannel, type DeliveryEvent, type DeliveryFailureCause, type Denial, type DenialDetails, type DenialReason, type DeniedDecision, type DeriveOptions, type DescribeMessages, type DescribeOptions, type DirectoryEvent, EVENT_SCHEMA_IDS, type EdgeGroup, type EdgeGroups, type EdgeMatch, type EdgeRelation, type EmailCategory, type EntitlementSource, type ExplainedDecision, type FieldRelation, type GnapAccess, type Grant, type GrantCondition, type GrantLimit, type GrantMeta, type GrantOptions, type GrantScope, type GrantValidity, type GrantedDecision, type GrantedPermissionsOptions, type Grantee, type GranteeInput, type Holder, type HoldingVia, type HostedGrant, type HostedGrantDropReason, type HostedGrantDropped, type HostedGrantRef, type InheritGrantee, type InstanceCache, type InstanceCacheKey, type InstanceCacheOptions, type InstanceCacheStats, type InstanceOptions, type Intent, type JsonSchemaNode, type LegacyCheck, type LimitConsumeInput, type LimitDetail, type LimitRemaining, type LimitStore, type Limits, type LinkPolicy, type LinkPolicyViolation, type LoadedRows, type LocalCustomRoleTable, type LocalMembershipRows, type LocalRowColumn, type LocalRowValue, type LocalSnapshotManifest, type LocalSnapshotRows, MEMBERSHIP_EVENT_SCHEMA, type ManagerApprover, type MatchedGrant, type MemberEntry, type MemberOfCondition, type MemberOfParent, type Membership, type MembershipEvent, type MembershipFilter, type MembershipFixture, type MembershipSource, type MembershipVia, type MemoryAutomationSource, type MemoryDecisionSink, type MemoryDecisionSinkOptions, type MemoryEdge, type MemoryRelationSourceData, type MemorySubjectCacheOptions, type MemoryVersionCacheOptions, type MetaValue, OCSF_VERSION, OPERATION_RISKS, type Obligation, type ObligationInput, type OcsfAuthorizeSession, type OcsfUserManagement, type Operation, type OperationData, type OperationDefinition, type OperationEffect, type OperationInput, type OperationMap, type OperationMeta, type OperationNameOf, type OperationRisk, type PERMISSION_ROW, type POLICY_SCOPES, type PermDock, PermDockApprovalRequiredError, PermDockDeniedError, type PermDockDigest, type PermDockOptions, type PermDockOverrides, PermDockRevokedError, PermDockValidationError, type PermDockWrap, type Permission, type PermissionApprover, type PermissionCheck, type PermissionKind, type PermissionOf, type PermissionState, type PermissionTree, type PermissionsOf, type PermissionsOptions, type PermittedIdsOptions, type Plan, type PlanNameOf, type PlanTree, type Policy, type PolicyAppDataSchemas, type PolicyDelegation, type PolicyDocument, type PolicyOAuthScope, type PolicyScopes, type PolicyScopesInput, type PolicySource, type Principal, type PrincipalIdentity, type PrincipalIdentityLink, type PrincipalOf, type PrincipalRelation, type PrincipalSource, type ProblemDetails, type Quota, RESERVED_CLOUD_EVENT_TYPES, type RESOURCE_NAME, type RESOURCE_X, type RelatedCondition, type RelatedHop, type RelationChain, type RelationGrantee, type RelationGroup, type RelationHolder, type RelationSource, type RequestContext, type ResolvedCustomRole, type ResourceInit, type ResourceLevel, type ResourceLink, type ResourceMeta, type ResourceNode, type ResourceOptions, type ResourceParent, type ResourceRelation, type ResourceRelationInput, type ResourceRestricted, type ResourceXTree, type RestrictedAncestors, type RevocationEvent, type RevocationFeed, type RevocationListener, type RevokedCode, type Role, type RoleBinding, type RoleChange, type RoleChangeCheck, type RoleChangeCheckInput, type RoleChangeDecision, type RoleChangeOptions, type RoleChangeTarget, type RoleMeta, type RoleNameOf, type RoleOptions, type RoleRules, type RoleScope, type RoleTree, type RowData, type RowOf, type RowPair, SINK_EVENT_SCHEMAS, type Scope, type ScopeDeclaration, type ScopeNameOf, type ScopeNames, type SeparationConflict, type SettingsSource, type ShadowMismatch, type ShadowOptions, type SharedCustomRole, type SignDecisionBatchOptions, type SignPolicyDocumentOptions, type SignSnapshotOptions, type SimulateOptions, type SinkEvent, type Snapshot, type SnapshotAssignable, type SnapshotClaims, type SnapshotForOptions, type SnapshotGrant, type SnapshotNotEntitled, type SnapshotOptions, type SnapshotScope, type SnapshotSource, type SnapshotTenants, type SourceCall, type SourceContext, type SourceMemo, type SqlFunctionArg, type SqlFunctionCondition, type StripeEntitlementsClient, type Subject, type SubjectCache, type SubjectOf, type SubjectRecord, type SubjectResolver, type SupportAccessOptions, type SupportConsent, type SupportSession, type SupportSessionDecision, type SupportSessionPolicy, type SupportSessionRequest, type TenantSettings, type TokenFailureCause, type TokenSigner, type TokenVerifier, type Trace, type TraceSkip, type TraceSkipReason, type UncheckedData, type UserApprover, type ValidateCustomRoleOptions, type ValidateMode, type VerificationFailure, type VerifiedClaims, type VerifiedToken, type VersionCache, type VersionCacheStats, type VersionContext, type VersionQuery, type VersionStore, type Vocabulary, type VocabularyOf, type VocabularyOptions, type WhereCompiler, type WhereResult, type WhoCan, type WireDecision, type WireDenial, type WireValidity, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
package/dist/index.js CHANGED
@@ -1,43 +1,46 @@
1
1
  import { c as isConditionDate, i as principal, l as isConditionRef, n as context, o as hasConditionOp, s as isCondition, t as claim, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
2
- import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-boQiUvfo.js";
3
- import { A as memorySettingsSource, C as approvalPolicies, D as memoryCustomRoleSource, E as validateApprovalPolicy, M as subjectMembershipSource, N as accessOutcome, O as memoryEntitlementSource, P as sqlFunction, S as stripeEntitlementSource, T as memoryApprovalPolicySource, _ as simulateArazzo, a as normalizeMembership, b as signPolicyDocument, c as crud, d as snapshotFor, f as customRoleSource, g as arazzoFindings, h as localSnapshotManifest, i as decideRoleChange, j as memorySnapshotSource, k as memoryMembershipSource, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as memoryVersionCache, x as memoryRelationSource, y as instanceCache } from "./src-BG9YJM3Q.js";
2
+ import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-BXdhhQcB.js";
3
+ import { A as memorySettingsSource, C as approvalPolicies, D as memoryCustomRoleSource, E as validateApprovalPolicy, M as subjectMembershipSource, N as accessOutcome, O as memoryEntitlementSource, P as sqlFunction, S as stripeEntitlementSource, T as memoryApprovalPolicySource, _ as simulateArazzo, a as normalizeMembership, b as signPolicyDocument, c as crud, d as snapshotFor, f as customRoleSource, g as arazzoFindings, h as localSnapshotManifest, i as decideRoleChange, j as memorySnapshotSource, k as memoryMembershipSource, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as memoryVersionCache, x as memoryRelationSource, y as instanceCache } from "./src-BZKQe1lr.js";
4
4
  import { d as manager, f as user, n as anyOf, o as holder, t as allOf } from "./approvers-BaNwKYgd.js";
5
5
  import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
6
6
  import { r as requiredPlans } from "./problem-details-CLDgX1KV.js";
7
7
  import { n as describe } from "./describe-BZAlPHxT.js";
8
- import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
9
- import { i as signSnapshot, n as fromSnapshot, o as snapshotClaims, s as snapshotFromClaims, t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
10
- import { r as parsePermDockDigest } from "./digest-BI-6aa6d.js";
11
- import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
12
8
  import { a as getResource, c as listPermissions, h as formerKeys, l as mergePermissions, n as findPermission, o as isPermission, v as resource } from "./permission-registry-B8tYxPIt.js";
13
- import { _ as listPlans, a as authenticated, c as plan, f as definePlans, g as isRole, h as isPlan, i as assurance, l as relation, m as findRole, n as anyone, p as defineRoles, s as inherit, t as actor, v as listRoles } from "./grantee-Dke-9rd1.js";
14
- import { c as delegatedPermissions, o as coveredByDelegation } from "./condition-evaluate-bVVRSdzq.js";
9
+ import { a as isRole, i as isPlan, n as defineRoles, o as listPlans, r as findRole, s as listRoles, t as definePlans } from "./vocabulary-BuYFWeCU.js";
10
+ import { a as authenticated, c as plan, i as assurance, l as relation, n as anyone, s as inherit, t as actor } from "./grantee-OG4klcNr.js";
11
+ import { i as delegatedPermissions, n as coveredByDelegation } from "./delegation-CrdqnesZ.js";
15
12
  import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
16
13
  import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
17
14
  import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
18
15
  import { t as approvalFingerprint } from "./token-DaMnIU9O.js";
19
- import { n as parseSnapshot } from "./snapshot-C2j96x97.js";
20
- import { c as isGlobalPermission, n as getPermDockSync, t as getPermDock } from "./permdock-B5LyNVgn.js";
16
+ import { n as parseSnapshot } from "./snapshot-BcHYtUIg.js";
17
+ import { c as isGlobalPermission, n as getPermDockSync, t as getPermDock } from "./permdock-HfTF99xX.js";
18
+ import { r as parsePermDockDigest } from "./digest-BI-6aa6d.js";
19
+ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
21
20
  import { t as memoryRevocationFeed } from "./revocations-Bhr0aMIC.js";
21
+ import { r as memoryPrincipalSource } from "./principal-source-C6N60GtM.js";
22
22
  import { n as memoryAutomationSource, r as parseAutomation, t as decideAutomation } from "./automation-BueW05db.js";
23
23
  import { n as parseSupportSession, t as decideSupportSession } from "./support-session-BGeEYDSq.js";
24
- import { a as normalizeApproval } from "./approval-normalize-DNLW0zOM.js";
25
- import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-wGzbAPQF.js";
26
- import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument, o as isPortableCondition, s as memoryPolicySource, u as policyDocumentFromClaims } from "./hosted-C5I2TSXm.js";
24
+ import { a as normalizeApproval } from "./approval-normalize-KfhzpD93.js";
25
+ import { o as isRoleName, r as definePolicy, u as separationConflicts } from "./policy-BovcTojN.js";
26
+ import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument, o as isPortableCondition, s as memoryPolicySource, u as policyDocumentFromClaims } from "./hosted-cPDyrlsQ.js";
27
27
  import { n as isOperationRisk, t as OPERATION_RISKS } from "./operation-risks-BKOcTv8J.js";
28
28
  import { t as defineOperations } from "./operations-Bm9HFecz.js";
29
- import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-B5yZHmts.js";
30
- import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-D_dGTq--.js";
29
+ import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-_JdlbJ32.js";
30
+ import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-LPNBG9np.js";
31
31
  import { n as memoryLimitStore, t as limits } from "./limits-CAhpRrhk.js";
32
- import { t as whoCan } from "./who-can-CjfMP9a4.js";
32
+ import { t as whoCan } from "./who-can-DcrHB6ya.js";
33
+ import { a as snapshotFromClaims, i as snapshotClaims, n as signSnapshot } from "./membership-filter-CfLdP_F9.js";
33
34
  import { t as memorySubjectCache } from "./subject-cache-BT1fGuea.js";
34
35
  import { t as deliveryEvent } from "./delivery-event-JioK5YbS.js";
36
+ import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
37
+ import { t as fromSnapshot } from "./from-snapshot-CdGYjHUg.js";
35
38
  import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-Ce2N-Opr.js";
36
- import { n as wrapPermDock } from "./wrap-BKU5Arsu.js";
39
+ import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
37
40
  import { t as definePermissions } from "./permissions-BaoLxy66.js";
38
41
  import { C as EVENT_SCHEMA_IDS, S as DIRECTORY_EVENT_SCHEMA, T as SINK_EVENT_SCHEMAS, _ as AUTOMATION_EVENT_SCHEMA, a as accessEvent, b as DECISION_EVENT_SCHEMA, c as credentialEvent, d as membershipEvent, f as memoryDecisionSink, g as ACCESS_EVENT_SCHEMA, h as toCloudEvent, i as RESERVED_CLOUD_EVENT_TYPES, m as supportSessionEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as automationEvent, p as signDecisionBatch, r as CLOUD_EVENT_TYPES, s as cloudEventType, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, v as CATALOG_EVENT_SCHEMA, w as MEMBERSHIP_EVENT_SCHEMA, x as DELIVERY_EVENT_SCHEMA, y as CREDENTIAL_EVENT_SCHEMA } from "./sink-D9_vh372.js";
39
42
  import { a as parseSinkEvent, i as parseCloudEventBatch, n as parseCatalogEventData, o as parseSinkEvents, r as parseCloudEvent, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
40
43
  import { i as toOcsf, n as accessToOcsf, t as OCSF_VERSION } from "./ocsf-TcjRBgIs.js";
41
44
  import { a as parseCapability, c as signCapability, i as linkPolicyViolation, o as parseCapabilityClaim, t as capabilityFromClaims } from "./capability-CenWwTMR.js";
42
- import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-Bap3HClV.js";
45
+ import { a as decideCredential, n as credentialPolicyViolation, o as isFeedId, s as parseCredential, t as credentialDelegation } from "./credential-DrVrRL7z.js";
43
46
  export { ACCESS_EVENT_SCHEMA, APPROVAL_POLICY_UNAVAILABLE, AUTOMATION_EVENT_SCHEMA, CATALOG_EVENT_SCHEMA, CLOUDEVENTS_BATCH_CONTENT_TYPE, CLOUDEVENTS_CONTENT_TYPE, CLOUD_EVENT_TYPES, CREDENTIAL_EVENT_SCHEMA, CSV_COLUMNS, DECISION_EVENT_SCHEMA, DELIVERY_EVENT_SCHEMA, DIRECTORY_EVENT_SCHEMA, EVENT_SCHEMA_IDS, MEMBERSHIP_EVENT_SCHEMA, OCSF_VERSION, OPERATION_RISKS, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RESERVED_CLOUD_EVENT_TYPES, SINK_EVENT_SCHEMAS, accessEvent, accessOutcome, accessToOcsf, activate, actor, allOf, allow, anyOf, anyone, approvalFingerprint, approvalPolicies, arazzoFindings, assurance, authenticated, automationEvent, breakGlass, canonicalJson, capabilityFromClaims, catalogFingerprint, checkRoleChange, claim, claimsFirst, cloudEventType, composeMemberships, context, countHolders, coveredByDelegation, credentialDelegation, credentialEvent, credentialPolicyViolation, crud, customRoleClaim, customRoleSource, decideAutomation, decideCredential, decideRoleChange, decideSupportSession, defineOperations, definePermissions, definePlans, definePolicy, defineRoles, delegatedPermissions, deliveryEvent, deny, describe, emptySnapshot, findPermission, findRole, formerKeys, fromSnapshot, getPermDock, getPermDockSync, getResource, hasConditionOp, holder, hostedPolicies, inherit, instanceCache, isCondition, isConditionDate, isConditionRef, isExternallyManaged, isFeedId, isGlobalPermission, isOperationRisk, isPermission, isPlan, isPortableCondition, isRole, isRoleName, isSqlFunctionField, limits, linkPolicyViolation, listPermissions, listPlans, listRoles, localSnapshotManifest, manager, mayAccess, membershipEvent, memoryApprovalPolicySource, memoryAutomationSource, memoryCustomRoleSource, memoryDecisionSink, memoryEntitlementSource, memoryLimitStore, memoryMembershipSource, memoryPolicySource, memoryPrincipalSource, memoryRelationSource, memoryRevocationFeed, memorySettingsSource, memorySnapshotSource, memorySubjectCache, memoryVersionCache, mergeHostedGrants, mergePermissions, normalizeApproval, normalizeAssurance, normalizeMembership, normalizeMemberships, opaque, parseAutomation, parseCapability, parseCapabilityClaim, parseCatalogEventData, parseCloudEvent, parseCloudEventBatch, parseCredential, parseCustomRoleEntry, parseLocalSnapshotManifest, parsePermDockDigest, parsePolicyDocument, parseSinkEvent, parseSinkEvents, parseSnapshot, parseSupportSession, plan, policyDocumentFromClaims, principal, readable, relation, requiredPlans, requiresApproval, resolveCustomRole, resolveScope, resource, role, separationConflicts, sha256Digest, shadowMode, signCapability, signDecisionBatch, signPolicyDocument, signSnapshot, simulateArazzo, snapshotClaims, snapshotFor, snapshotFromClaims, sqlFunction, stripeEntitlementSource, subjectMembershipSource, supportAccess, supportSessionEvent, toCloudEvent, toCsvRow, toOcsf, user, validateApprovalPolicy, validateCustomRole, whoCan, wrapPermDock, writable };
@@ -1,7 +1,7 @@
1
1
  import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { t as addLine } from "./peer-BuK9F53f.js";
3
3
  import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-Bn5Z54cH.js";
4
- import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
4
+ import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
5
5
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -48,7 +48,7 @@ const init = defineLeaf({
48
48
  ...forceFlag
49
49
  },
50
50
  async run(ctx, { flags }) {
51
- const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-D_T_zgFg.js"), import("./peer-n-swIV4H.js")]);
51
+ const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-Baq0yYfu.js"), import("./peer-n-swIV4H.js")]);
52
52
  const agent = await packageManagerOf(ctx.cwd);
53
53
  const selection = {
54
54
  archetype: flags.archetype,
@@ -79,7 +79,7 @@ const presetDecode = defineLeaf({
79
79
  positionals: presetCode,
80
80
  flags: {},
81
81
  async run(_ctx, { args }) {
82
- const { runPreset } = await import("./init-D_T_zgFg.js");
82
+ const { runPreset } = await import("./init-Baq0yYfu.js");
83
83
  return runPreset("decode", args["code"] ?? "");
84
84
  }
85
85
  });
@@ -87,7 +87,7 @@ const presetUrl = defineLeaf({
87
87
  positionals: presetCode,
88
88
  flags: {},
89
89
  async run(_ctx, { args }) {
90
- const { runPreset } = await import("./init-D_T_zgFg.js");
90
+ const { runPreset } = await import("./init-Baq0yYfu.js");
91
91
  return runPreset("url", args["code"] ?? "");
92
92
  }
93
93
  });
@@ -1,4 +1,4 @@
1
- import { o as PermDockOptions } from "./permdock-BaB-KQqn.js";
1
+ import { o as PermDockOptions } from "./permdock-vD3mwLSm.js";
2
2
  //#region src/core/instance-options.d.ts
3
3
  type InstanceKey = "memberships" | "relations" | "entitlements" | "customRoles" | "policies" | "approvalPolicies" | "sink" | "limits" | "principals" | "instances";
4
4
  /**