permdock 0.32.0 → 0.35.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 (390) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +2 -2
  3. package/dist/{adoption-scan-BJMEEu7V.js → adoption-scan-oaPsvHSN.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 +3 -3
  8. package/dist/app/index.d.ts +1 -1
  9. package/dist/app/index.js +1 -1
  10. package/dist/{approval-chain-D97rgMoA.js → approval-chain-BEeExHpb.js} +15 -10
  11. package/dist/{approval-prompt-yNyhQqn8.d.ts → approval-prompt-BKxaKtby.d.ts} +1 -1
  12. package/dist/approvals/index.d.ts +3 -3
  13. package/dist/{arazzo-BAgh0PT6.js → arazzo-1oDMApA_.js} +2 -2
  14. package/dist/{arazzo-C_xK2Kaa.js → arazzo-B2PszcDL.js} +1 -1
  15. package/dist/astro/index.d.ts +4 -4
  16. package/dist/astro/index.js +1 -1
  17. package/dist/{audience-CARf-b-R.js → audience-B6DQ5wQu.js} +1 -1
  18. package/dist/authzen/index.d.ts +6 -6
  19. package/dist/authzen/index.js +1 -1
  20. package/dist/{automation-0VF1xe4o.d.ts → automation-C7WH5XcZ.d.ts} +1 -1
  21. package/dist/better-auth/index.d.ts +1 -1
  22. package/dist/better-supabase/index.d.ts +34 -13
  23. package/dist/better-supabase/index.js +21 -21
  24. package/dist/{bind-zQacwAOg.d.ts → bind-BnrOLyJq.d.ts} +7 -7
  25. package/dist/{bind-BYeoLJgN.js → bind-DPptdk31.js} +2 -2
  26. package/dist/{bsb-access-tags-CjeR7v7-.js → bsb-access-tags-uDuwPUbT.js} +12 -3
  27. package/dist/{bsb-action-keys-CYEREFMg.js → bsb-action-keys-BfZAwg-9.js} +1 -1
  28. package/dist/{budgets-Dpumu_Dt.js → budgets-hi-ecgEd.js} +3 -3
  29. package/dist/{build-instance-CFiegi_w.js → build-instance-DZEWYO-A.js} +1 -1
  30. package/dist/bundle-size-BRFeBvuv.js +1 -0
  31. package/dist/{bundle-size-Ddhv_H_v.js → bundle-size-DbXV65Ix.js} +2 -2
  32. package/dist/{capability-BPzseilU.d.ts → capability-BW-vAxJi.d.ts} +1 -1
  33. package/dist/{casbin-BErdqy1J.js → casbin-DrdS0vLy.js} +1 -1
  34. package/dist/{casbin-EwdKipQs.js → casbin-vtIUd-6L.js} +1 -1
  35. package/dist/catalog/index.d.ts +4 -4
  36. package/dist/catalog/index.js +4 -4
  37. package/dist/{challenge-CRB1X3Ry.js → challenge-E9sicsCA.js} +1 -1
  38. package/dist/chat/index.d.ts +1 -1
  39. package/dist/chat/index.js +1 -1
  40. package/dist/chat-sdk/index.d.ts +3 -3
  41. package/dist/{claims-size-BsSDVD5u.js → claims-size-BUhCWS88.js} +18 -3
  42. package/dist/claims-size-C6oKGuOM.js +1 -0
  43. package/dist/claude-agent/index.d.ts +3 -3
  44. package/dist/claude-agent/index.js +2 -2
  45. package/dist/clerk/index.d.ts +2 -2
  46. package/dist/cli/bin.js +1 -1
  47. package/dist/cli/generate/watch-worker.js +2 -2
  48. package/dist/cli/index.d.ts +6 -6
  49. package/dist/cli/index.js +3 -3
  50. package/dist/cli/plugins/app.d.ts +1 -1
  51. package/dist/cli/plugins/app.js +1 -1
  52. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  53. package/dist/cli/plugins/openapi.d.ts +1 -1
  54. package/dist/cli/plugins/openapi.js +1 -1
  55. package/dist/cli/plugins/powersync.d.ts +1 -1
  56. package/dist/cli/plugins/powersync.js +1 -1
  57. package/dist/cli/plugins/rls.d.ts +2 -2
  58. package/dist/cli/plugins/rls.js +1 -1
  59. package/dist/cli/plugins/schemas.d.ts +1 -1
  60. package/dist/cli/plugins/schemas.js +1 -1
  61. package/dist/cli/plugins/scim.d.ts +2 -2
  62. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  63. package/dist/cli/plugins/supabase-hook.js +1 -1
  64. package/dist/cli/plugins/supabase.d.ts +3 -3
  65. package/dist/cli/plugins/supabase.js +2 -2
  66. package/dist/cli/plugins/ui.d.ts +1 -1
  67. package/dist/cli/plugins/ui.js +1 -1
  68. package/dist/{client-subject-xCSkKD1C.d.ts → client-subject-YAGMzRa-.d.ts} +2 -2
  69. package/dist/cloud/index.d.ts +8 -8
  70. package/dist/cloud/index.js +1 -1
  71. package/dist/{cloud-DW3q3qnp.js → cloud-BQnIR-SS.js} +2 -2
  72. package/dist/{codemod-DVDMFsTX.js → codemod-C0OHCnaj.js} +6 -6
  73. package/dist/{codemod-CF7NNDzA.js → codemod-rv5XSBNw.js} +1 -1
  74. package/dist/{collect-CE5wK0AX.js → collect-Ba7ccZ23.js} +1 -1
  75. package/dist/compile/index.d.ts +1 -1
  76. package/dist/{compile-BXKYYmT1.js → compile-BRDpja_Y.js} +10 -9
  77. package/dist/{compile-tG1zkSgX.d.ts → compile-CoUadQXF.d.ts} +2 -2
  78. package/dist/{completion-B59uPAnZ.js → completion-Dgjdte2-.js} +1 -1
  79. package/dist/{config-7QvEq57a.js → config-Dan6vcvj.js} +2 -2
  80. package/dist/{config-VCa1RLUe.js → config-anQ9E37F.js} +1 -1
  81. package/dist/{config-report-CjvA6lGI.js → config-report-C43BSFHY.js} +3 -3
  82. package/dist/{config-shape-BTojaD-H.js → config-shape-BODqM-rG.js} +1 -1
  83. package/dist/{context-BQHKgT1m.js → context-Nr3nknZX.js} +2 -2
  84. package/dist/{context-CAFddgb9.js → context-rioF4fQl.js} +1 -1
  85. package/dist/convex/index.d.ts +4 -4
  86. package/dist/convex/index.js +2 -2
  87. package/dist/{core-bf8qgaZf.d.ts → core-DCMIztx1.d.ts} +2 -2
  88. package/dist/{core-C5yCD-Ls.js → core-DIUrkFNL.js} +5 -5
  89. package/dist/{create-COQVXK6C.js → create-BMRnaZel.js} +3 -3
  90. package/dist/{create-nOWD3Joc.js → create-BRY0OtFV.js} +3 -3
  91. package/dist/{create-Cn5EpEez.d.ts → create-BYL8xCJB.d.ts} +4 -4
  92. package/dist/{create-B7Xa4jSQ.d.ts → create-T_NqxU31.d.ts} +7 -7
  93. package/dist/{create-DHA0fhmi.d.ts → create-iCwrnaFE.d.ts} +6 -6
  94. package/dist/{credentials-COT-cjnP.d.ts → credentials-DzNrCNZY.d.ts} +2 -2
  95. package/dist/{custom-role-rebuild-BK73tPib.js → custom-role-rebuild-wzN8pqDk.js} +5 -5
  96. package/dist/{define-permdock-DBgwTFi1.d.ts → define-permdock-Bhye7WSY.d.ts} +6 -6
  97. package/dist/{define-permdock-D7aKxIax.js → define-permdock-CO7YNrOF.js} +2 -2
  98. package/dist/{definition-options-9o8Hdww3.js → definition-options-DLBlRrPO.js} +8 -9
  99. package/dist/delivery/index.d.ts +4 -4
  100. package/dist/delivery/index.js +1 -1
  101. package/dist/{denied-text-C_AWc0f0.d.ts → denied-text-DgNqDAPH.d.ts} +1 -1
  102. package/dist/{describe-AdETpWsn.d.ts → describe-DEoWvk00.d.ts} +1 -1
  103. package/dist/{diff-CW9eZy9X.js → diff-CS8ks9h3.js} +1 -1
  104. package/dist/{diff-COdwpP31.js → diff-CkSZF7LO.js} +2 -2
  105. package/dist/{doctor-ervtBRzG.js → doctor-GnMgqGO8.js} +102 -42
  106. package/dist/{doctor-ELj5hrVv.js → doctor-sAqU02Fx.js} +2 -2
  107. package/dist/drizzle/index.d.ts +3 -3
  108. package/dist/elysia/index.d.ts +4 -4
  109. package/dist/elysia/index.js +1 -1
  110. package/dist/{errors-COoiWqIs.d.ts → errors-BliKrfmP.d.ts} +1 -1
  111. package/dist/{evaluate-Dmd0bShm.js → evaluate-DNz6wMYv.js} +1 -1
  112. package/dist/{evaluations-GW9j_ARq.d.ts → evaluations-CUkSKioS.d.ts} +3 -3
  113. package/dist/{evaluator-eager-CpVYslzY.js → evaluator-eager-BLNVbEAC.js} +1 -1
  114. package/dist/evaluator-zpeC7zel.js +2 -0
  115. package/dist/eve/index.d.ts +4 -4
  116. package/dist/eve/index.js +2 -2
  117. package/dist/{execute-ix7AAdWg.js → execute-xF5fwAel.js} +4 -4
  118. package/dist/{explain-DRC9V5Qb.js → explain-D4ipf8IH.js} +1 -1
  119. package/dist/{explain-jg0KLCVt.js → explain-DISCeeYS.js} +2 -2
  120. package/dist/express/index.d.ts +4 -4
  121. package/dist/express/index.js +1 -1
  122. package/dist/fastify/index.d.ts +4 -4
  123. package/dist/fastify/index.js +1 -1
  124. package/dist/{fetch-adapter-CU1DIkXu.js → fetch-adapter-BXQc4NoV.js} +1 -1
  125. package/dist/{fetch-adapter-CJncmsPg.d.ts → fetch-adapter-Ds2-fUUi.d.ts} +2 -2
  126. package/dist/{fields-y_PSRCyJ.js → fields-CwFej4gp.js} +3 -3
  127. package/dist/{from-snapshot-DGc9W4QU.js → from-snapshot-DZ4D2sLa.js} +14 -9
  128. package/dist/gen-BPYFr_tZ.js +1 -0
  129. package/dist/{gen-8rW_AUG5.js → gen-djPw1RS-.js} +3 -3
  130. package/dist/{gen-kind-C9ikF8nb.js → gen-kind-Vhq_ZIZm.js} +1 -1
  131. package/dist/{generate-CW7gNfLr.js → generate-BcH-uL0z.js} +18 -17
  132. package/dist/{generate-BmpCt5oi.js → generate-CYHeuPq8.js} +3 -3
  133. package/dist/{generate-options-DiR4r_sk.js → generate-options-DDSeUTFU.js} +15 -14
  134. package/dist/h3/index.d.ts +4 -4
  135. package/dist/h3/index.js +2 -2
  136. package/dist/{helper-calls-DHvgN9tr.js → helper-calls-B5MOl99d.js} +1 -1
  137. package/dist/hono/index.d.ts +4 -4
  138. package/dist/hono/index.js +1 -1
  139. package/dist/{hook-sql-D-abRHut.js → hook-sql-EksAnz-T.js} +269 -225
  140. package/dist/{hosted-DZwCFrcy.js → hosted-D3USbpS6.js} +1 -1
  141. package/dist/{hosted-Bkw3Oyh-.d.ts → hosted-DZgmEG4b.d.ts} +1 -1
  142. package/dist/identity-scopes-CRVAV0HU.js +11 -0
  143. package/dist/{import-D_8tLF9g.js → import-Bz6IKoMM.js} +3 -3
  144. package/dist/{import-BAhoTYTk.js → import-C45gc74U.js} +1 -1
  145. package/dist/{index-DPVeDtAO.d.ts → index-BOJPdIBk.d.ts} +4 -4
  146. package/dist/{index-xShPsK8G.d.ts → index-CAE_Z53Y.d.ts} +1 -1
  147. package/dist/{index-Kj5S3IWE.d.ts → index-CWBCzwOp.d.ts} +4 -4
  148. package/dist/{index-DT3hOxA7.d.ts → index-Cjr8Q-uq.d.ts} +34 -11
  149. package/dist/{index-WOx7TBbj.d.ts → index-DBBRSw6r.d.ts} +2 -2
  150. package/dist/{index-DWmIuQLz.d.ts → index-ktQ7E4qB.d.ts} +4 -4
  151. package/dist/index.d.ts +16 -16
  152. package/dist/index.js +13 -13
  153. package/dist/{init-zxb0BVDJ.js → init-B6aZxzd7.js} +1 -1
  154. package/dist/{init-DkRHIe8-.js → init-CCBVeyW8.js} +3 -3
  155. package/dist/inspect-functions-BUACOlgS.js +34 -0
  156. package/dist/{instance-options-DQCiBBuz.d.ts → instance-options-DDERlopm.d.ts} +1 -1
  157. package/dist/{instance-snapshot-D9kjL37B.js → instance-snapshot-D03srwnf.js} +9 -8
  158. package/dist/{interactive-only-Dqww0ABO.js → interactive-only-Bbq9e61G.js} +10 -182
  159. package/dist/jwt/index.d.ts +4 -4
  160. package/dist/{kernel-C5akxw5n.js → kernel-DSnWVZ0O.js} +5 -5
  161. package/dist/{keys-DQsHrgBM.js → keys-BWhAnANj.js} +1 -1
  162. package/dist/kysely/index.d.ts +3 -3
  163. package/dist/{lazy-provider-CMgFAGf8.d.ts → lazy-provider-Clt2095H.d.ts} +1 -1
  164. package/dist/{lazy-provider-DNVjY4n3.js → lazy-provider-b8UHGi8P.js} +2 -2
  165. package/dist/{login-C1p3gmj8.js → login-BnE2iUUA.js} +1 -1
  166. package/dist/{login-DOEZveP6.js → login-d631Tpa9.js} +3 -3
  167. package/dist/{manager-chain-DdkiCw5q.js → manager-chain-CFkceFls.js} +2 -2
  168. package/dist/{manifest-31igzVGQ.js → manifest-1w67doim.js} +45 -38
  169. package/dist/{manifest-DgsxeAsM.d.ts → manifest-BwhZ1s5b.d.ts} +35 -3
  170. package/dist/{manifest-B487A3po.js → manifest-CIWOmdlP.js} +1 -1
  171. package/dist/{manifest-schema-D7RQbnGY.js → manifest-schema-N3v2RVL-.js} +24 -0
  172. package/dist/{may-use-4HzzgYJ3.js → may-use-ikNCnNgZ.js} +1 -1
  173. package/dist/mcp/index.d.ts +8 -8
  174. package/dist/mcp/index.js +2 -2
  175. package/dist/measure-BKsYdwKd.js +272 -0
  176. package/dist/membership-claim-sql-DGfhIn__.js +33 -0
  177. package/dist/{membership-filter-C7ZuhAqJ.js → membership-filter-Bz9QX6E9.js} +1 -1
  178. package/dist/memberships-4e6qi8Uv.js +1 -0
  179. package/dist/memberships-CNoAlsma.js +180 -0
  180. package/dist/{migrate-pg-lkbDu.js → migrate-BXk_rUmb.js} +2 -2
  181. package/dist/{model-BXhr8gUI.js → model-BYCtXS_g.js} +3 -3
  182. package/dist/{module-values-B09BBJIj.js → module-values-D-AiNhBp.js} +1 -1
  183. package/dist/names-DBxKx2bz.js +182 -0
  184. package/dist/nest/index.d.ts +4 -4
  185. package/dist/nest/index.js +1 -1
  186. package/dist/next/index.d.ts +11 -11
  187. package/dist/next/index.js +3 -3
  188. package/dist/next/plugin.d.ts +1 -1
  189. package/dist/next/plugin.js +1 -1
  190. package/dist/node/index.d.ts +4 -4
  191. package/dist/node/index.js +1 -1
  192. package/dist/openai/index.d.ts +4 -4
  193. package/dist/openai/index.js +3 -3
  194. package/dist/openapi/index.d.ts +2 -2
  195. package/dist/{openapi-BeMVHVY4.js → openapi-BnKSxOrh.js} +2 -2
  196. package/dist/{openapi-DEGesHWH.js → openapi-CN2Oq9zN.js} +1 -1
  197. package/dist/{openapi-document-CEQ6jqqR.js → openapi-document-XnGRbWBb.js} +1 -1
  198. package/dist/orpc/index.d.ts +5 -5
  199. package/dist/orpc/index.js +2 -2
  200. package/dist/otel/index.d.ts +3 -3
  201. package/dist/{output-C7EPeSZj.js → output-dO4bArCS.js} +1 -1
  202. package/dist/{ownership-Csk9C3Js.js → ownership-CSdLGGfW.js} +7 -6
  203. package/dist/{parse-local-manifest-B92rFWnk.d.ts → parse-local-manifest-DoLQFkRb.d.ts} +1 -1
  204. package/dist/pdp/index.d.ts +3 -3
  205. package/dist/pdp/index.js +1 -1
  206. package/dist/{permdock-BShHM8OJ.d.ts → permdock-DkvkGVF0.d.ts} +2 -2
  207. package/dist/{permdock-CJPIwU1T.js → permdock-JM9TKevZ.js} +14 -14
  208. package/dist/{permissions-wEkTVr_I.js → permissions-xPyAmuXi.js} +1 -1
  209. package/dist/{pipeline-Bbu7uw28.js → pipeline-BAGSNnct.js} +2 -2
  210. package/dist/{plugin-L3G7jPGE.d.ts → plugin-DDPXES4k.d.ts} +2 -2
  211. package/dist/{policy-BUtwixSN.d.ts → policy-BoUbJ2c0.d.ts} +1 -1
  212. package/dist/{policy-CSOOQ3rR.js → policy-CTn-9VQm.js} +1 -1
  213. package/dist/{policy-BBvhhH9X.js → policy-CZBJDcTx.js} +2 -1
  214. package/dist/{policy-bundle-KYI0EnrM.js → policy-bundle-BHd1dqU9.js} +3 -3
  215. package/dist/{policy-from-catalog-_zwn1sNj.js → policy-from-catalog-BohzTN3J.js} +3 -3
  216. package/dist/{policy-types-CfW4X_yX.d.ts → policy-types-DuM3k5Ao.d.ts} +51 -2
  217. package/dist/{postgrest-PQ3zAOD2.d.ts → postgrest-B1bTbVE4.d.ts} +9 -2
  218. package/dist/{powersync-C1ix7CEY.js → powersync-CZkZgVyi.js} +1 -1
  219. package/dist/{powersync-CM6Vg4RH.js → powersync-DJ7dY-Vf.js} +12 -12
  220. package/dist/{powersync-CGvu6j5U.js → powersync-Jj57J-X8.js} +1 -1
  221. package/dist/prisma/index.d.ts +2 -2
  222. package/dist/{protected-action-BPN0NaRb.js → protected-action-DDYvU-9Z.js} +1 -1
  223. package/dist/{protected-action-DhCQ4bSe.d.ts → protected-action-gBxeetqY.d.ts} +5 -5
  224. package/dist/{provider-BV_v0JAY.js → provider-BwqzED5h.js} +83 -50
  225. package/dist/{provider-CMgFAGf8.d.ts → provider-Clt2095H.d.ts} +1 -1
  226. package/dist/{provider-1xqxLVEz.js → provider-NQwLSlgb.js} +2 -2
  227. package/dist/{provider-store-Cf8HRNtb.js → provider-store-BizF6jyu.js} +2 -2
  228. package/dist/{provider-with-cpL9vRjC.js → provider-with-DtBgCCV_.js} +1 -1
  229. package/dist/{prune-config-CdoPJIGz.js → prune-config-Bwz4wNQA.js} +6 -6
  230. package/dist/pull-BOC-0kJV.js +1 -0
  231. package/dist/{pull-BaB401Bk.js → pull-Cj_ngsuu.js} +2 -2
  232. package/dist/{push-DcjvEj0m.js → push-D5so0ptb.js} +2 -2
  233. package/dist/{pushed-policy-DcvO8NXy.d.ts → pushed-policy-C65TbLtU.d.ts} +1 -1
  234. package/dist/{pushed-policy-DSjSWEAl.js → pushed-policy-dm_hFstN.js} +1 -1
  235. package/dist/{quote-BKrTBbcH.js → quote-LNaBdCGA.js} +1 -1
  236. package/dist/{rbac-mblGDx-Z.js → rbac-DbyaaNLa.js} +5 -4
  237. package/dist/react/index.d.ts +6 -6
  238. package/dist/react/index.js +3 -3
  239. package/dist/react/lazy.d.ts +6 -6
  240. package/dist/react/lazy.js +3 -3
  241. package/dist/react/provider-client-lazy.d.ts +1 -1
  242. package/dist/react/provider-client-lazy.js +1 -1
  243. package/dist/react/provider-client.d.ts +1 -1
  244. package/dist/react/provider-client.js +1 -1
  245. package/dist/react-native/index.d.ts +15 -15
  246. package/dist/react-native/index.js +6 -6
  247. package/dist/read-memberships-DVBitJZG.js +164 -0
  248. package/dist/{rename-BZNOV8H9.js → rename-CI6NIF9t.js} +5 -5
  249. package/dist/replay-B__gzUx3.d.ts +3 -0
  250. package/dist/{report-DCAiUc5U.js → report-DF0zUNut.js} +1 -1
  251. package/dist/{report-DievqWhf.js → report-XdCm1y_J.js} +1 -1
  252. package/dist/{request-context-BNVY3kZ1.js → request-context-CqqdiVp4.js} +1 -1
  253. package/dist/resend/index.d.ts +4 -4
  254. package/dist/{resolve-config-9NYYVc30.js → resolve-config-Cu_mE2wt.js} +1 -1
  255. package/dist/{resolve-names-Cth1UQ-8.js → resolve-names-CuEhEQyB.js} +7 -6
  256. package/dist/{resolver-CuIY8aFD.js → resolver-D2c1CcoZ.js} +99 -15
  257. package/dist/{rls-DUYok5e9.js → rls-BDtyip5c.js} +13 -13
  258. package/dist/{rls-BtkZgaZp.js → rls-DcqSn7b2.js} +51 -4
  259. package/dist/{rls-files-ucAI0J5j.js → rls-files-CRRtjXxG.js} +1 -1
  260. package/dist/{rls-options-BFGRmdcH.d.ts → rls-options-DCLdZaTZ.d.ts} +1 -1
  261. package/dist/{rpc-D7G7IJDa.js → rpc-BQPa7tLP.js} +1 -1
  262. package/dist/{rpc-COnquydd.d.ts → rpc-BYFB37KV.d.ts} +1 -1
  263. package/dist/run-DOP1UKWw.js +1 -0
  264. package/dist/{run-WIqPbnjD.js → run-DvbrPkgt.js} +3 -3
  265. package/dist/{run-ticket-Mmor5sYW.d.ts → run-ticket-CRldclc7.d.ts} +2 -2
  266. package/dist/{saas-DcqUkynn.js → saas-DSeazNrN.js} +3 -3
  267. package/dist/{scan-Badcllgg.js → scan-CmfWbAbz.js} +1 -1
  268. package/dist/{schema-DBRKgQb4.js → schema-CO3btX_O.js} +1 -1
  269. package/dist/scim/index.d.ts +1 -1
  270. package/dist/seeds/index.d.ts +1 -1
  271. package/dist/{seeds-Cih1ztkf.d.ts → seeds-BZMPfWcC.d.ts} +1 -1
  272. package/dist/server/index.d.ts +11 -11
  273. package/dist/server/index.js +1 -1
  274. package/dist/{server-types-C2XX60aF.d.ts → server-types-FkdDSB9h.d.ts} +8 -8
  275. package/dist/share-key-claims-CZGAeVqa.js +28 -0
  276. package/dist/{shared-C6_T7QUo.js → shared-DnVY767H.js} +2 -1
  277. package/dist/{sink-BQ_6K81r.d.ts → sink-CoMI_OVw.d.ts} +2 -2
  278. package/dist/{size-l1pDHE2z.js → size-CY6rK6l9.js} +3 -3
  279. package/dist/{skills-CTKq3o8D.js → skills-C28GUaJC.js} +1 -1
  280. package/dist/{skills-Ba9hHGO6.js → skills-CA8GfQxQ.js} +1 -1
  281. package/dist/{snapshot-Ty0uk9wZ.js → snapshot-Dzi4LR6n.js} +8 -1
  282. package/dist/{snapshot-cache-DGvLQW0-.d.ts → snapshot-cache-R1lJjYmI.d.ts} +1 -1
  283. package/dist/{snapshot-compact-yXFxZLPo.js → snapshot-compact-BWMLnIXK.js} +35 -4
  284. package/dist/{snapshot-evaluate-DSNj2rhV.js → snapshot-evaluate-C382Z1mQ.js} +1 -1
  285. package/dist/{snapshot-reads-BnAHiuoa.js → snapshot-reads-JxcUSUfW.js} +2 -2
  286. package/dist/{snapshot-size-DNY1MTsV.js → snapshot-size-D6ixbYvH.js} +1 -1
  287. package/dist/{snapshot-size-2fkXbCkP.js → snapshot-size-NklqBKcV.js} +1 -1
  288. package/dist/solid/index.d.ts +5 -5
  289. package/dist/solid/index.js +2 -2
  290. package/dist/solid-start/index.d.ts +4 -4
  291. package/dist/solid-start/index.js +2 -2
  292. package/dist/{sources-DnjJPGfb.js → sources-C6Id63F8.js} +2 -1
  293. package/dist/{sources-CjgZns7t.d.ts → sources-Dp6FQ8np.d.ts} +7 -2
  294. package/dist/{src-HRYn4UFj.js → src-BXDohWNO.js} +154 -11
  295. package/dist/ssf/index.d.ts +3 -3
  296. package/dist/{standard-webhooks-Bnnrqa6d.d.ts → standard-webhooks-D2FwHtMX.d.ts} +2 -2
  297. package/dist/{store-core-BdFcruPm.d.ts → store-core-aluQ3R1M.d.ts} +4 -4
  298. package/dist/{store-options-DpCQo0vB.js → store-options-DgOuhUSn.js} +4 -4
  299. package/dist/{stores-D6MIjN_-.d.ts → stores-hHICuiQl.d.ts} +5 -5
  300. package/dist/{stores-KpBCaY6c.js → stores-jgDndNHa.js} +1 -1
  301. package/dist/{subject-CrldGifz.js → subject-B7p94Y0s.js} +1 -1
  302. package/dist/{subject-cache-CnJcz2K_.d.ts → subject-cache-Bn4oJY_R.d.ts} +3 -1
  303. package/dist/supabase/index.d.ts +36 -9
  304. package/dist/supabase/index.js +8 -7
  305. package/dist/supabase/middleware.d.ts +5 -5
  306. package/dist/supabase/middleware.js +4 -4
  307. package/dist/{supabase-kWQlkrHw.js → supabase-ByhSqBDB.js} +14 -7
  308. package/dist/{supabase-CGiB83XQ.js → supabase-DXEcFJGM.js} +15 -1
  309. package/dist/supabase-hook-C_ViYz3g.js +2 -0
  310. package/dist/{supabase-hook-CqO_0Koh.js → supabase-hook-D-ybV98H.js} +7 -7
  311. package/dist/{supabase-schemas-BglbAG2Z.js → supabase-schemas-CVhpyYB6.js} +2 -2
  312. package/dist/svelte/index.d.ts +5 -5
  313. package/dist/svelte/index.js +5 -3
  314. package/dist/svelte/runtime.d.ts +3 -3
  315. package/dist/svelte/runtime.js +1 -1
  316. package/dist/svelte/source.d.ts +5 -5
  317. package/dist/svelte/source.js +2 -2
  318. package/dist/sveltekit/index.d.ts +4 -4
  319. package/dist/sveltekit/index.js +1 -1
  320. package/dist/{table-reads-BviGc0L_.js → table-reads-BcceuV7h.js} +1 -1
  321. package/dist/{table-reads-AnHPrBp8.js → table-reads-BoF_58yh.js} +297 -48
  322. package/dist/{tables-CDq0HVVq.js → tables-BTXmioCH.js} +187 -20
  323. package/dist/tanstack-start/index.d.ts +4 -4
  324. package/dist/tanstack-start/index.js +1 -1
  325. package/dist/{tenant-check-D7g9oNVH.js → tenant-check-DNbm8OiV.js} +4 -4
  326. package/dist/terminal/index.d.ts +5 -5
  327. package/dist/terminal/index.js +3 -3
  328. package/dist/testing/core.d.ts +1 -1
  329. package/dist/testing/core.js +1 -1
  330. package/dist/testing/fixtures/index.d.ts +4 -4
  331. package/dist/testing/fixtures/index.js +29 -11
  332. package/dist/testing/index.d.ts +23 -23
  333. package/dist/testing/index.js +13 -13
  334. package/dist/testing/saas/index.d.ts +3 -3
  335. package/dist/testing/saas/index.js +2 -2
  336. package/dist/testing/saas/permissions.js +1 -1
  337. package/dist/trpc/index.d.ts +5 -5
  338. package/dist/trpc/index.js +2 -2
  339. package/dist/{type-helpers-CUmJFGV6.d.ts → type-helpers-CsWH9z8p.d.ts} +1 -1
  340. package/dist/{types-vKKndyxx.d.ts → types-BGN3coSe.d.ts} +1 -1
  341. package/dist/{types-h9W3CNC_.d.ts → types-BwjOhlgx.d.ts} +4 -4
  342. package/dist/{types-BKnUwgvx.d.ts → types-BzsplNgO.d.ts} +4 -4
  343. package/dist/{types-BsRf5rKk.d.ts → types-CBUYbPwl.d.ts} +2 -2
  344. package/dist/{types-euUv1wsO.d.ts → types-CKwI6AT4.d.ts} +1 -1
  345. package/dist/{types-CIzXPPV-.d.ts → types-Cvfe-G_N.d.ts} +2 -2
  346. package/dist/{types-BhBfMdQ5.d.ts → types-D3GI2B9O.d.ts} +3 -3
  347. package/dist/{types-BRECeQ2n.d.ts → types-D417woMp.d.ts} +3 -3
  348. package/dist/{types-DwoRXDvN.d.ts → types-DRMoZjJm.d.ts} +2 -2
  349. package/dist/{types-config-DNIw_Gt5.d.ts → types-config-DYRoZ8Iw.d.ts} +11 -5
  350. package/dist/{types-CjZscT16.d.ts → types-dtDg4goh.d.ts} +4 -4
  351. package/dist/{types-run-Bwn1MuW0.d.ts → types-run-CeCrWO0v.d.ts} +1 -1
  352. package/dist/unplugin/index.d.ts +1 -1
  353. package/dist/unplugin/index.js +1 -1
  354. package/dist/{usage-CW6xhRcV.js → usage-BGuSrwiW.js} +2 -2
  355. package/dist/usage-CW6PfRfC.js +1 -0
  356. package/dist/{usage-n4V2k_a6.js → usage-D5QwWiNp.js} +1 -1
  357. package/dist/{validation-error-P4Z9HUuP.d.ts → validation-error-MZ7KLNHt.d.ts} +1 -1
  358. package/dist/{verify-CKzngsUH.js → verify-GWeopgxU.js} +12 -12
  359. package/dist/{version-cache-BzK8dwJy.js → version-cache-Ccrfu2A4.js} +6 -1
  360. package/dist/vue/index.d.ts +5 -5
  361. package/dist/vue/index.js +2 -2
  362. package/dist/{waiter-BqUxSRxq.d.ts → waiter-DdwtUSzB.d.ts} +2 -2
  363. package/dist/{warm-5yxlUmBh.js → warm-BZ0ZwSmO.js} +1 -1
  364. package/dist/{warm-BR-mrnY-.d.ts → warm-znYuJoUZ.d.ts} +1 -1
  365. package/dist/{watch-D-5ztqN8.js → watch-14vng0pg.js} +1 -1
  366. package/dist/watch-Be7ja4dL.js +1 -0
  367. package/dist/{watch-C12Ub7x4.js → watch-DuIAsqFR.js} +2 -2
  368. package/dist/webmcp/index.d.ts +1 -1
  369. package/dist/webmcp/index.js +1 -1
  370. package/dist/{who-can-CGVpM3fZ.js → who-can-CIgYpEvy.js} +1 -1
  371. package/dist/workflow/index.d.ts +3 -3
  372. package/dist/workflow/index.js +1 -1
  373. package/dist/workflow-sdk/index.d.ts +4 -4
  374. package/dist/{wrap-D8WtzrB7.d.ts → wrap-C36-eV-C.d.ts} +2 -2
  375. package/package.json +11 -11
  376. package/schemas/snapshot-v2.json +20 -0
  377. package/schemas/supabase-claims-v1.json +48 -2
  378. package/schemas/supabase-manifest-v1.json +28 -0
  379. package/skills/permdock-data/references/queries-and-rls.md +1 -1
  380. package/dist/bundle-size-DwZ4e1gu.js +0 -1
  381. package/dist/claims-size-B6j0Ff4Q.js +0 -1
  382. package/dist/evaluator-COmATWCr.js +0 -2
  383. package/dist/gen-BtiGMiuH.js +0 -1
  384. package/dist/pull-Bp63vtgu.js +0 -1
  385. package/dist/read-memberships-BkePIa1F.js +0 -63
  386. package/dist/replay-BCOZifwx.d.ts +0 -3
  387. package/dist/run-BjMxYYTe.js +0 -1
  388. package/dist/supabase-hook-CluYxKee.js +0 -2
  389. package/dist/usage-Ci7Glu-H.js +0 -1
  390. package/dist/watch-J1PfGMfb.js +0 -1
@@ -1,10 +1,10 @@
1
- import { i as describe } from "../describe-AdETpWsn.js";
2
- import { c as requiredPlans } from "../errors-COoiWqIs.js";
1
+ import { i as describe } from "../describe-DEoWvk00.js";
2
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
3
3
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
4
4
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
5
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DhCQ4bSe.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-gBxeetqY.js";
6
6
  import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
7
- import { t as PermDockProvider } from "../provider-CMgFAGf8.js";
8
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BKnUwgvx.js";
9
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-BdFcruPm.js";
7
+ import { t as PermDockProvider } from "../provider-Clt2095H.js";
8
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BzsplNgO.js";
9
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
10
10
  export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -2,8 +2,8 @@
2
2
  import { n as describe } from "../describe-B7EosIKA.js";
3
3
  import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
4
4
  import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
5
- import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DpCQo0vB.js";
6
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BPN0NaRb.js";
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DDYvU-9Z.js";
7
7
  import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
8
- import { t as PermDockProvider } from "../provider-1xqxLVEz.js";
8
+ import { t as PermDockProvider } from "../provider-NQwLSlgb.js";
9
9
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,10 +1,10 @@
1
- import { i as describe } from "../describe-AdETpWsn.js";
2
- import { c as requiredPlans } from "../errors-COoiWqIs.js";
1
+ import { i as describe } from "../describe-DEoWvk00.js";
2
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
3
3
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
4
4
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
5
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DhCQ4bSe.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-gBxeetqY.js";
6
6
  import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
7
- import { t as PermDockProvider } from "../lazy-provider-CMgFAGf8.js";
8
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BKnUwgvx.js";
9
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-BdFcruPm.js";
7
+ import { t as PermDockProvider } from "../lazy-provider-Clt2095H.js";
8
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BzsplNgO.js";
9
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
10
10
  export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -2,8 +2,8 @@
2
2
  import { n as describe } from "../describe-B7EosIKA.js";
3
3
  import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
4
4
  import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
5
- import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DpCQo0vB.js";
6
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BPN0NaRb.js";
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DDYvU-9Z.js";
7
7
  import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
8
- import { t as PermDockProvider } from "../lazy-provider-DNVjY4n3.js";
8
+ import { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
9
9
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../lazy-provider-CMgFAGf8.js";
1
+ import { t as PermDockProvider } from "../lazy-provider-Clt2095H.js";
2
2
  export { PermDockProvider };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../lazy-provider-DNVjY4n3.js";
2
+ export { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../provider-CMgFAGf8.js";
1
+ import { t as PermDockProvider } from "../provider-Clt2095H.js";
2
2
  export { PermDockProvider };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../provider-1xqxLVEz.js";
2
+ export { t as PermDockProvider } from "../provider-NQwLSlgb.js";
@@ -1,15 +1,15 @@
1
- import { i as describe } from "../describe-AdETpWsn.js";
1
+ import { i as describe } from "../describe-DEoWvk00.js";
2
2
  import { t as approvalHeaders } from "../headers-D1oRr-js.js";
3
- import { c as requiredPlans } from "../errors-COoiWqIs.js";
3
+ import { c as requiredPlans } from "../errors-BliKrfmP.js";
4
4
  import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
5
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DhCQ4bSe.js";
6
- import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-BdFcruPm.js";
7
- import { r as ProtectedProps, t as PermDockDefaults } from "../types-BKnUwgvx.js";
8
- import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-B92rFWnk.js";
5
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-gBxeetqY.js";
6
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
7
+ import { r as ProtectedProps, t as PermDockDefaults } from "../types-BzsplNgO.js";
8
+ import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-DoLQFkRb.js";
9
9
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
10
- import { $t as LocalRowValue, Qt as LocalRowColumn, Tr as Membership, Zt as LocalMembershipRows, br as CustomRole, en as LocalSnapshotManifest, nn as Snapshot, qt as Instant, tn as LocalSnapshotRows, ut as SnapshotSource } from "../policy-types-CfW4X_yX.js";
10
+ import { $t as LocalRowColumn, Dr as Membership, Qt as LocalMembershipRows, Sr as CustomRole, en as LocalRowValue, nn as LocalSnapshotRows, qt as Instant, rn as Snapshot, tn as LocalSnapshotManifest, ut as SnapshotSource } from "../policy-types-DuM3k5Ao.js";
11
11
  import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-V95IvZsF.js";
12
- import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-CjZscT16.js";
12
+ import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-dtDg4goh.js";
13
13
  import { ReactElement } from "react";
14
14
  /**
15
15
  * `true` once the provider has a snapshot to answer from: storage was read or a
@@ -83,8 +83,8 @@ type PowerSyncQuery = {
83
83
  };
84
84
  type PowerSyncSourceOptions<Q extends string> = {
85
85
  /**
86
- * `localSnapshotManifest(policy)`, as `permdock powersync generate`
87
- * writes it to `powersync.manifest`.
86
+ * `localSnapshotManifest(policy)`, as `permdock generate --only
87
+ * powersync` writes it to `powersync.manifest`.
88
88
  */
89
89
  readonly manifest: LocalSnapshotManifest;
90
90
  /** The queries over the `permdock_*` streams' tables; each one is watched. */
@@ -96,8 +96,8 @@ type PowerSyncSourceOptions<Q extends string> = {
96
96
  readonly read: (rows: Readonly<Record<Q, readonly unknown[]>>) => LocalSnapshotData;
97
97
  } | {
98
98
  /**
99
- * The manifest `permdock powersync generate` writes, with its `rows`
100
- * section.
99
+ * The manifest `permdock generate --only powersync` writes, with its
100
+ * `rows` section.
101
101
  */
102
102
  readonly manifest: LocalSnapshotManifest;
103
103
  /**
@@ -201,9 +201,9 @@ type NativeRefreshPowerSync<K> = {
201
201
  /** The connector the app connects with; a reconnect fetches a new token. */
202
202
  readonly connector: K;
203
203
  /**
204
- * The manifest `permdock powersync generate` writes. With its `rows.version`,
205
- * a synced version above the token's `authz_ver` runs a refresh, which covers
206
- * a message sent while the app was closed.
204
+ * The manifest `permdock generate --only powersync` writes. With its
205
+ * `rows.version`, a synced version above the token's `authz_ver` runs a
206
+ * refresh, which covers a message sent while the app was closed.
207
207
  */
208
208
  readonly manifest?: LocalSnapshotManifest;
209
209
  /**
@@ -2,20 +2,20 @@
2
2
  import { n as describe } from "../describe-B7EosIKA.js";
3
3
  import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
4
4
  import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
5
- import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-DpCQo0vB.js";
6
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BPN0NaRb.js";
5
+ import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-DgOuhUSn.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DDYvU-9Z.js";
7
7
  import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-CfMjZAFi.js";
8
- import { c as bindConditionRefs, n as parseSnapshot, o as heldRoleNames } from "../snapshot-Ty0uk9wZ.js";
8
+ import { c as bindConditionRefs, n as parseSnapshot, o as heldRoleNames } from "../snapshot-Dzi4LR6n.js";
9
9
  import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
10
10
  import { o as flattenGrantee } from "../grantee-BSCdpIF3.js";
11
11
  import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-B-KX9EI8.js";
12
- import { n as compactSnapshot } from "../snapshot-compact-yXFxZLPo.js";
12
+ import { n as compactSnapshot } from "../snapshot-compact-BWMLnIXK.js";
13
13
  import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-B5Xxt9Sc.js";
14
14
  import { h as secondsAt, m as rfc3339 } from "../time-r0CKBm57.js";
15
15
  import { t as byCodePoint } from "../compare-dfHDj8kT.js";
16
16
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
17
17
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-CIUmc-YQ.js";
18
- import { t as eagerEvaluator } from "../evaluator-eager-CpVYslzY.js";
18
+ import { t as eagerEvaluator } from "../evaluator-eager-BLNVbEAC.js";
19
19
  import { t as emptySnapshot } from "../snapshot-empty-pKgPDcLd.js";
20
20
  import { n as isThenable } from "../thenable-BxMy2v8w.js";
21
21
  import { useEffect, useMemo, useRef } from "react";
@@ -559,7 +559,7 @@ function highestVersion(rows) {
559
559
  function planOf(options) {
560
560
  if (!("user" in options)) return options;
561
561
  const { rows } = options.manifest;
562
- if (rows === void 0) throw new TypeError("PermDock: powerSyncSource needs queries and read, or a manifest with rows (run permdock powersync generate with powersync.manifest)");
562
+ if (rows === void 0) throw new TypeError("PermDock: powerSyncSource needs queries and read, or a manifest with rows (run permdock generate --only powersync with powersync.manifest)");
563
563
  const principal = compact({
564
564
  id: options.user,
565
565
  tenant: options.tenant,
@@ -0,0 +1,164 @@
1
+ import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
2
+ // src/core/membership-claim.ts
3
+ const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u;
4
+ const SHORT_UUID = /^[A-Za-z0-9_-]{22}$/u;
5
+ /**
6
+ * The keys of an entry the compact form can carry; anything else stays an
7
+ * object.
8
+ */
9
+ const COMPACT_KEYS = /* @__PURE__ */ new Set([
10
+ "scope",
11
+ "id",
12
+ "roles",
13
+ "via"
14
+ ]);
15
+ function shortId(id) {
16
+ if (!UUID.test(id)) return `=${id}`;
17
+ const hex = id.replaceAll("-", "");
18
+ let binary = "";
19
+ for (let at = 0; at < hex.length; at += 2) binary += String.fromCodePoint(Number.parseInt(hex.slice(at, at + 2), 16));
20
+ return btoa(binary).replaceAll("+", "-").replaceAll("/", "_").slice(0, 22);
21
+ }
22
+ function longId(short) {
23
+ if (short.startsWith("=")) return short.slice(1);
24
+ if (!SHORT_UUID.test(short)) return;
25
+ const binary = atob(`${short.replaceAll("-", "+").replaceAll("_", "/")}==`);
26
+ let hex = "";
27
+ for (const char of binary) hex += (char.codePointAt(0) ?? 0).toString(16).padStart(2, "0");
28
+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
29
+ }
30
+ function plain(entry) {
31
+ return isRecord(entry) && Object.keys(entry).every((key) => COMPACT_KEYS.has(key)) && typeof entry["scope"] === "string" && typeof entry["id"] === "string" && (entry["via"] === void 0 || typeof entry["via"] === "string") && Array.isArray(entry["roles"]) && entry["roles"].every((role) => typeof role === "string");
32
+ }
33
+ /**
34
+ * The compact claim for `entries`: the shape the generated hook writes. The
35
+ * claims-size report and the tests use it to measure the claim without a
36
+ * database.
37
+ */
38
+ function compactMemberships(entries) {
39
+ if (entries.length === 0) return [];
40
+ const scopes = /* @__PURE__ */ new Set();
41
+ const roles = /* @__PURE__ */ new Set();
42
+ const vias = /* @__PURE__ */ new Set();
43
+ for (const entry of entries) if (plain(entry)) {
44
+ scopes.add(entry.scope);
45
+ if (entry.via !== void 0) vias.add(entry.via);
46
+ for (const role of entry.roles) roles.add(role);
47
+ }
48
+ const s = [...scopes].toSorted();
49
+ const r = [...roles].toSorted();
50
+ const v = [...vias].toSorted();
51
+ const e = [];
52
+ const o = [];
53
+ for (const entry of entries) if (plain(entry)) e.push([
54
+ s.indexOf(entry.scope),
55
+ shortId(entry.id),
56
+ entry.via === void 0 ? -1 : v.indexOf(entry.via),
57
+ ...entry.roles.map((role) => r.indexOf(role))
58
+ ]);
59
+ else o.push(entry);
60
+ return {
61
+ ...s.length === 0 ? {} : { s },
62
+ ...r.length === 0 ? {} : { r },
63
+ ...v.length === 0 ? {} : { v },
64
+ ...e.length === 0 ? {} : { e },
65
+ ...o.length === 0 ? {} : { o }
66
+ };
67
+ }
68
+ function list(item) {
69
+ return Array.isArray(item) ? item : [];
70
+ }
71
+ function expandRow(row, scopes, roles, vias) {
72
+ if (!Array.isArray(row) || typeof row[1] !== "string") return;
73
+ const scope = scopes[Number(row[0])];
74
+ const id = longId(row[1]);
75
+ const via = vias[Number(row[2])];
76
+ const held = row.slice(3).map((index) => roles[Number(index)]).filter((role) => typeof role === "string");
77
+ return typeof scope === "string" && id !== void 0 ? {
78
+ scope,
79
+ id,
80
+ roles: held,
81
+ ...typeof via === "string" ? { via } : {}
82
+ } : void 0;
83
+ }
84
+ /**
85
+ * The entry array of a `memberships` claim: an array stays as it is and the
86
+ * compact object expands to the entries it stands for. A row that does not
87
+ * resolve becomes `null`, which `readMemberships` drops and reports.
88
+ */
89
+ function expandMemberships(value) {
90
+ if (!isRecord(value)) return value;
91
+ const { s, r, v, e, o } = value;
92
+ if (![
93
+ "s",
94
+ "r",
95
+ "v",
96
+ "e",
97
+ "o"
98
+ ].some((key) => Array.isArray(value[key]))) return value;
99
+ return [...list(e).map((row) => expandRow(row, list(s), list(r), list(v)) ?? null), ...list(o)];
100
+ }
101
+ // src/core/read-memberships.ts
102
+ function asStrings(value) {
103
+ return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
104
+ }
105
+ /**
106
+ * Reads the `memberships` claim, an array or the compact object
107
+ * (`core/membership-claim.ts`); an entry it cannot read is dropped and its
108
+ * index reported.
109
+ */
110
+ function readMemberships(claim) {
111
+ const value = expandMemberships(claim);
112
+ if (!Array.isArray(value)) return {
113
+ memberships: [],
114
+ dropped: []
115
+ };
116
+ const out = [];
117
+ const dropped = [];
118
+ for (const [index, item] of value.entries()) {
119
+ const membership = asMembership(item);
120
+ if (membership === void 0) dropped.push(index);
121
+ else out.push(membership);
122
+ }
123
+ return {
124
+ memberships: out,
125
+ dropped
126
+ };
127
+ }
128
+ function asMembership(item) {
129
+ if (!isRecord(item) || !Array.isArray(item["roles"])) return;
130
+ const roles = item["roles"].filter((role) => typeof role === "string");
131
+ if (roles.length === 0) return;
132
+ const scope = typeof item["scope"] === "string" ? item["scope"] : void 0;
133
+ const id = typeof item["id"] === "string" ? item["id"] : void 0;
134
+ const within = isRecord(item["within"]) ? Object.fromEntries(Object.entries(item["within"]).filter((entry) => typeof entry[1] === "string")) : void 0;
135
+ const onRecord = isRecord(item["on"]) ? item["on"] : void 0;
136
+ const on = onRecord !== void 0 && typeof onRecord["resource"] === "string" && typeof onRecord["id"] === "string" ? {
137
+ resource: onRecord["resource"],
138
+ id: onRecord["id"]
139
+ } : void 0;
140
+ if ((scope === void 0 || id === void 0) && on === void 0) return;
141
+ const keep = item["keep"];
142
+ if (keep !== void 0 && (!Array.isArray(keep) || !keep.every((key) => typeof key === "string" && key !== ""))) return;
143
+ return compact({
144
+ roles,
145
+ scope,
146
+ id,
147
+ within,
148
+ on,
149
+ via: typeof item["via"] === "string" ? item["via"] : void 0,
150
+ expiresAt: typeof item["expires_at"] === "number" ? item["expires_at"] : void 0,
151
+ grantedBy: typeof item["granted_by"] === "string" ? item["granted_by"] : void 0,
152
+ reason: typeof item["reason"] === "string" ? item["reason"] : void 0,
153
+ member: memberOf(item["member"]),
154
+ managedBy: item["managed_by"] === "idp" ? "idp" : void 0,
155
+ entitlements: Array.isArray(item["entitlements"]) ? item["entitlements"].filter((seat) => typeof seat === "string") : void 0,
156
+ keep: keep === void 0 ? void 0 : asStrings(keep)
157
+ });
158
+ }
159
+ function memberOf(value) {
160
+ if (value === null || typeof value !== "object" || !Object.hasOwn(value, "group")) return;
161
+ const group = value.group;
162
+ return typeof group === "string" && group !== "" ? { group } : void 0;
163
+ }
164
+ export { compactMemberships as n, expandMemberships as r, readMemberships as t };
@@ -1,13 +1,13 @@
1
1
  import { u as renamedKeys } from "./permission-registry-DstT40VS.js";
2
- import "./sources-DnjJPGfb.js";
2
+ import "./sources-C6Id63F8.js";
3
3
  import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
4
4
  import { i as refuseDirty, n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
5
5
  import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
6
- import { a as resolveAuthorize } from "./rbac-mblGDx-Z.js";
7
- import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-C6_T7QUo.js";
8
- import { n as legacyKeySql } from "./custom-role-rebuild-BK73tPib.js";
6
+ import { a as resolveAuthorize } from "./rbac-DbyaaNLa.js";
7
+ import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
8
+ import { n as legacyKeySql } from "./custom-role-rebuild-wzN8pqDk.js";
9
9
  import { n as byKey } from "./compare-8SNJN-9U.js";
10
- import { a as quoteIdent, o as quoteLiteral } from "./quote-BKrTBbcH.js";
10
+ import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
11
11
  import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
12
12
  import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
13
13
  import { t as parseProgram } from "./program-CvarkLMS.js";
@@ -0,0 +1,3 @@
1
+ import { l as ReplayStore } from "./types-Cvfe-G_N.js";
2
+ declare function memoryReplayStore(): ReplayStore;
3
+ export { memoryReplayStore as t };
@@ -1 +1 @@
1
- export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-DievqWhf.js";
1
+ export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-XdCm1y_J.js";
@@ -4,7 +4,7 @@ import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
4
4
  import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
5
5
  import { a as parseSqlFile, c as readPolicy, d as sqlCalls, i as isPolicyCommand, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
6
6
  import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
7
- import { a as helperCallKeys, i as callsHelper } from "./helper-calls-DHvgN9tr.js";
7
+ import { a as helperCallKeys, i as callsHelper } from "./helper-calls-B5MOl99d.js";
8
8
  import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
9
9
  import { readFileSync } from "node:fs";
10
10
  import { deparse } from "pgsql-parser";
@@ -1,5 +1,5 @@
1
1
  import { t as assertAppData } from "./app-data-DbSPSPIl.js";
2
- import { t as buildInstance } from "./build-instance-CFiegi_w.js";
2
+ import { t as buildInstance } from "./build-instance-DZEWYO-A.js";
3
3
  import { n as wrapPermDock } from "./wrap-CsfsaJhd.js";
4
4
  // src/core/request-context.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-yNyhQqn8.js";
2
- import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-BhBfMdQ5.js";
3
- import { X as DecisionSink } from "../policy-types-CfW4X_yX.js";
4
- import { l as ReplayStore } from "../types-CIzXPPV-.js";
1
+ import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-BKxaKtby.js";
2
+ import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-D3GI2B9O.js";
3
+ import { X as DecisionSink } from "../policy-types-DuM3k5Ao.js";
4
+ import { l as ReplayStore } from "../types-Cvfe-G_N.js";
5
5
  type ApprovalEmailOptions = {
6
6
  /**
7
7
  * The app's approval page: a base the request id is appended to, or a
@@ -1,5 +1,5 @@
1
1
  import { n as supabaseMembershipsBudget } from "./budget-BH81q2cj.js";
2
- import { r as PERMDOCK_SCHEMA } from "./sources-DnjJPGfb.js";
2
+ import { r as PERMDOCK_SCHEMA } from "./sources-C6Id63F8.js";
3
3
  import { t as defaultSrcPath } from "./files-DAR51W3J.js";
4
4
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
5
5
  import { isDeepStrictEqual } from "node:util";
@@ -2,13 +2,14 @@ import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
2
2
  import { c as listPermissions } from "./permission-registry-DstT40VS.js";
3
3
  import { d as scopeList } from "./scopes-B-KX9EI8.js";
4
4
  import "./budget-BH81q2cj.js";
5
- import "./sources-DnjJPGfb.js";
5
+ import "./sources-C6Id63F8.js";
6
6
  import { i as configError } from "./errors-DgLOqc6j.js";
7
- import { t as FIELD_VIEWS } from "./fields-y_PSRCyJ.js";
8
- import { C as forUserContext, Q as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-CDq0HVVq.js";
9
- import { b as idTypeOf, x as scopeTypeOf } from "./subject-CrldGifz.js";
10
- import { D as globalRoleRows, G as graphHelper, K as graphSqlName, Q as isTeamScope, X as hasPermittedUsers, Z as inheritedRowsHelper, ct as restrictedHelper, et as memberForHelper, it as memberOfHelper, m as holderBody, ot as permittedForHelper, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-Dqww0ABO.js";
11
- import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
7
+ import { t as FIELD_VIEWS } from "./fields-CwFej4gp.js";
8
+ import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-BTXmioCH.js";
9
+ import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
10
+ import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DBxKx2bz.js";
11
+ import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
12
+ import { D as globalRoleRows, m as holderBody } from "./interactive-only-Bbq9e61G.js";
12
13
  // src/cli/rls/permission-holders.ts
13
14
  /**
14
15
  * `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL