permdock 0.20.1 → 0.22.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.
- package/README.md +2 -1
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +5 -4
- package/dist/{adoption-scan-BTG9Noyy.js → adoption-scan-_bHLMnVQ.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +85 -0
- package/dist/app/index.js +91 -0
- package/dist/app-DIvM65Mv.js +24 -0
- package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
- package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
- package/dist/{arazzo-CDXfX4u0.js → arazzo-BXD-VJU_.js} +1 -1
- package/dist/{arazzo-D4mKdaWI.js → arazzo-Ct0PGblq.js} +3 -3
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
- package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +4 -4
- package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
- package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +113 -56
- package/dist/better-supabase/index.js +200 -62
- package/dist/better-supabase-DF8f8oly.js +194 -0
- package/dist/{bind-gwEbe9hL.js → bind-B4Z0U2Gr.js} +5 -5
- package/dist/{bind-CW7nsZ86.d.ts → bind-CnOMjazH.d.ts} +7 -7
- package/dist/{build-instance-DaBdCRiz.js → build-instance-B0vsViF5.js} +3 -25
- package/dist/{capability-zN6T9fxe.js → capability-CenWwTMR.js} +1 -1
- package/dist/{capability-v2xZB7us.d.ts → capability-YkRMUAsF.d.ts} +2 -2
- package/dist/{casbin-COUi09Ti.js → casbin-D5evU3lX.js} +1 -1
- package/dist/{casbin-BXlRcCdU.js → casbin-imBS3UIf.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-C462QC3A.js +1 -0
- package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
- package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
- package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
- package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +8 -7
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +3 -3
- package/dist/{cloud-BW7JKfrF.js → cloud-DWCeStPH.js} +2 -2
- package/dist/{codemod-6CBQaT0x.js → codemod-B7QKJ_ak.js} +2 -2
- package/dist/{codemod-CR9EQBVd.js → codemod-BaPmaCYQ.js} +13 -6
- package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
- package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
- package/dist/collect-W9i7REKT.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
- package/dist/{compile-DZftFfXc.d.ts → compile-DC-BrhH1.d.ts} +3 -3
- package/dist/{completion-CYRlOJzv.js → completion-DOUMyCwa.js} +1 -1
- package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
- package/dist/{config-6iLK155o.js → config-DRp-E8Ly.js} +1 -1
- package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
- package/dist/{config-report-BLroaWCe.js → config-report-Bh_nLdAE.js} +2 -2
- package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
- package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{core-BwVkrpsi.js → core-CUjhfz0W.js} +6 -6
- package/dist/{core-BOeGWbcR.d.ts → core-D2JNg5jA.d.ts} +3 -3
- package/dist/coverage-D8jBJdgD.d.ts +114 -0
- package/dist/coverage-Dh2W_DmF.js +211 -0
- package/dist/{create-BezeYFcT.d.ts → create-B2tdOygC.d.ts} +7 -7
- package/dist/{create-C0R8omeF.js → create-BJ2_8NDO.js} +5 -5
- package/dist/{create-DDUFG1ul.js → create-BsL5lCWR.js} +10 -8
- package/dist/{create-DYSYYiLr.d.ts → create-CPDSbK1a.d.ts} +5 -5
- package/dist/{create-DMCC5ZOi.d.ts → create-oMCcZV4X.d.ts} +9 -9
- package/dist/{credential-B3Hj4puZ.js → credential-Bap3HClV.js} +4 -4
- package/dist/{server-D0PW6ZCw.js → credentials-BXV0oz56.js} +3 -146
- package/dist/credentials-DPX140fN.d.ts +125 -0
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-De8cw3MW.d.ts → denied-text-BXQkWU7d.d.ts} +2 -2
- package/dist/{describe-DibQM6g-.d.ts → describe-DVobr5FX.d.ts} +2 -2
- package/dist/{diff-Bd1-VCe5.js → diff-BR9JArxz.js} +6 -6
- package/dist/{diff-DXRNcjpg.js → diff-Jc_kbDz-.js} +1 -1
- package/dist/{doctor-CJcS0Mrq.js → doctor-BBMW5ZT_.js} +310 -36
- package/dist/{doctor-DYTgibLC.js → doctor-DhqSiPkq.js} +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
- package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
- package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
- package/dist/{evaluations-BgxEfPL7.d.ts → evaluations-DQYfh4Jh.d.ts} +3 -3
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-DCQ4pZxf.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
- package/dist/{fetch-adapter-acq4dPX3.js → fetch-adapter-MoYZ-vF5.js} +5 -4
- package/dist/{fields-D_TfExiI.js → fields-CVyOk-f1.js} +2 -2
- package/dist/{fixtures-Cemqurt8.js → fixtures-BVZc7OCF.js} +1 -1
- package/dist/{from-snapshot-DHnb8Fh4.js → from-snapshot-oR_N97dM.js} +346 -14
- package/dist/{gen-gv_WHBIG.js → gen-DXXoFjyf.js} +1 -1
- package/dist/{gen-CH50v9VI.js → gen-WdycZ_-b.js} +5 -5
- package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
- package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
- package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
- package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
- package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
- package/dist/{import-BlwuuZkr.js → import-BE5sDazm.js} +2 -2
- package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
- package/dist/index-BcS8c_2S.d.ts +101 -0
- package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
- package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
- package/dist/{index-CruReRkB.d.ts → index-C_8uxAlv.d.ts} +5 -5
- package/dist/{index-D7xGi1LS.d.ts → index-Cjfa1Uwr.d.ts} +22 -40
- package/dist/{index-Bt37QovT.d.ts → index-iIsqXFVu.d.ts} +6 -6
- package/dist/index.d.ts +19 -20
- package/dist/index.js +25 -24
- package/dist/{init-CalppFAI.js → init-B_S8Xdz1.js} +4 -4
- package/dist/{init-B62H9Kyx.js → init-CqGHcvyR.js} +2 -2
- package/dist/{instance-options-VPsNQsTH.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
- package/dist/instance-options-URVwqpMW.js +24 -0
- package/dist/{instance-snapshot-SX8zH_1t.js → instance-snapshot-D_dGTq--.js} +10 -10
- package/dist/jwt/index.d.ts +4 -4
- package/dist/jwt/index.js +2 -2
- package/dist/{kernel-_QEUOSU0.js → kernel-NmxiWII2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/kysely/index.js +1 -1
- package/dist/limits-CAhpRrhk.js +167 -0
- package/dist/{load-BaEamml-.js → load-C4p4VgwR.js} +2 -2
- package/dist/load-DiBUJx77.js +1 -0
- package/dist/{login-dDb_8muO.js → login-CzwlsBEO.js} +4 -4
- package/dist/{login-MxQV1BLh.js → login-DoLxv1s5.js} +3 -3
- package/dist/{manifest-DvDzxhy6.js → manifest-BAf7cgRx.js} +35 -35
- package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
- package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +9 -8
- package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
- package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +46 -17
- package/dist/next/index.js +58 -23
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +5 -59
- package/dist/openapi/index.js +3 -2
- package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
- package/dist/{openapi-BkGtE5kX.js → openapi-DroBcLJZ.js} +2 -2
- package/dist/{openapi-DKePsnln.js → openapi-EmvKwuWj.js} +4 -4
- package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
- package/dist/optional-8TKc-0j4.js +47 -0
- package/dist/orpc/index.d.ts +7 -7
- package/dist/orpc/index.js +4 -4
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-B2h-2g3F.js → output-CYgfpT6o.js} +1 -1
- package/dist/{ownership-MGHa5vfX.js → ownership-adPAsUwY.js} +15 -13
- package/dist/{parse-CXTT7hBq.js → parse-CORUNcCo.js} +1 -1
- package/dist/{parse-local-manifest-CE4tgFsj.d.ts → parse-local-manifest-BaCqsqwC.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +4 -3
- package/dist/{permdock-C1DN_7a-.js → permdock-B5LyNVgn.js} +71 -34
- package/dist/{permdock-D4F2p5J8.d.ts → permdock-BaB-KQqn.d.ts} +51 -9
- package/dist/{permissions-8N2yFsUM.js → permissions-COpRGKt7.js} +1 -1
- package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
- package/dist/{policy-from-catalog-CUNlpgz0.js → policy-from-catalog-Cy103lsm.js} +8 -8
- package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
- package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
- package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
- package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
- package/dist/powersync-BdoR7nwS.js +1 -0
- package/dist/{powersync-Deim9O47.js → powersync-BeI0VmEK.js} +2 -2
- package/dist/{powersync-CB8RwcB4.js → powersync-Dpa5AnnN.js} +11 -11
- package/dist/preset/index.js +1 -1
- package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{protected-action-ua0cx5cW.d.ts → protected-action-C4aj1KjO.d.ts} +6 -7
- package/dist/{protected-action-CD1HXwQK.js → protected-action-E7Sdt_Dt.js} +1 -1
- package/dist/{provider-D_hgjZRa.d.ts → provider-B-1DlOGM.d.ts} +1 -1
- package/dist/{provider-qESIf_C0.js → provider-DKO9KHua.js} +2 -2
- package/dist/{provider-store-BTHGJH9j.js → provider-store-D4PU1my_.js} +2 -2
- package/dist/{pull-BxqVL4Es.js → pull-3tkn25ll.js} +5 -5
- package/dist/pull-D90HqWNP.js +1 -0
- package/dist/{push-D2SsRW0U.js → push-dMyKdlEm.js} +6 -6
- package/dist/{pushed-policy-BERO0x9O.js → pushed-policy-Bi5-il4C.js} +2 -2
- package/dist/{pushed-policy-P0hgyLBh.d.ts → pushed-policy-P55cJNx5.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +9 -9
- package/dist/react-native/index.js +7 -7
- package/dist/{relation-walk-DK_gkgL7.js → relation-walk-BDTaTKTM.js} +1 -1
- package/dist/{relations-BxvRvDHK.js → relations-CMsJ1ARY.js} +1 -1
- package/dist/{replay-DYXI4gRN.d.ts → replay-DKhFvt0L.d.ts} +1 -1
- package/dist/{request-context-BPTi68z5.js → request-context-5gl_oxO1.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-BZQZRnMH.js → resolve-names-BnGJU88N.js} +4 -4
- package/dist/{rls-DpoJ5gCg.js → rls-DIYSRnDZ.js} +1 -1
- package/dist/{rls-OPorg_2G.js → rls-qrehUPf_.js} +45 -18
- package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
- package/dist/{rpc-D2LnFELm.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
- package/dist/{rpc-DdkbQVlT.js → rpc-Dhi55Whd.js} +2 -2
- package/dist/run-elFdnSZx.js +1 -0
- package/dist/{run-YCpANf1B.js → run-oNqBe0gc.js} +3 -3
- package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
- package/dist/{run-ticket-94DOS9Cd.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
- package/dist/{saas-BEXnrH9H.js → saas-DABv6vjy.js} +6 -5
- package/dist/{scan-COvn7ZjN.js → scan-BYXqcgON.js} +1 -1
- package/dist/{schema-BfSDo7Xj.js → schema-Wf-SvlHG.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/scim/index.js +1 -1
- package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +7 -6
- package/dist/server-CKjFooaJ.js +147 -0
- package/dist/{server-types-ChzXWU4Y.d.ts → server-types--_Hann81.d.ts} +10 -9
- package/dist/{shared-sW3VYchq.js → shared-DfaIWvIJ.js} +11 -2
- package/dist/{sink-RwmP7ZHs.d.ts → sink-Cs6z34AX.d.ts} +4 -4
- package/dist/{skills-N2Hd8KN8.js → skills-417bOj4o.js} +1 -1
- package/dist/{skills-Ce4C2dq1.js → skills-B9U465B7.js} +2 -2
- package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
- package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -7
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
- package/dist/{src-B8SQNsvw.js → src-BG9YJM3Q.js} +97 -247
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +3 -3
- package/dist/{standard-webhooks-CFZIYtBF.d.ts → standard-webhooks-CJBgfl7y.d.ts} +2 -2
- package/dist/{store-CSOsXd5s.js → store-BpKH-pLm.js} +2 -2
- package/dist/{store-Dpg_fSNQ.d.ts → store-DSyjHD5-.d.ts} +5 -5
- package/dist/{store-options-CDvoX52-.js → store-options-CXv6BHH6.js} +5 -6
- package/dist/{stores-PpYVQ5yF.js → stores-BuqAHjp_.js} +1 -1
- package/dist/{stores-C2A6KsxE.d.ts → stores-C6-7TPTV.d.ts} +6 -7
- package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
- package/dist/subject-cache-BT1fGuea.js +193 -0
- package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
- package/dist/supabase/index.d.ts +6 -5
- package/dist/supabase/index.js +3 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-zL7PC3RG.js → supabase-D0J99yqL.js} +2 -2
- package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
- package/dist/{supabase-hook-BCSwK5x-.js → supabase-hook-Bh5syR9N.js} +174 -62
- package/dist/supabase-hook-CVAenq-w.js +1 -0
- package/dist/{supautils-7UES0i4a.js → supautils-ChXR-4Or.js} +302 -43
- package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-DSX_Ma_n.js → tables-CbEOy2Ma.js} +137 -55
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +6 -6
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +35 -2
- package/dist/testing/fixtures/index.js +39 -2
- package/dist/testing/index.d.ts +41 -25
- package/dist/testing/index.js +114 -26
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +4 -4
- package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
- package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
- package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
- package/dist/{types-DnzRZjEu.d.ts → types-BpxdxaRD.d.ts} +5 -5
- package/dist/{types-C5p2hoBR.d.ts → types-CD1qmxdx.d.ts} +4 -4
- package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
- package/dist/{types-CMclYgSk.d.ts → types-C_a44wSr.d.ts} +3 -3
- package/dist/{types-DBVSljAx.d.ts → types-Cq2rvv-C.d.ts} +3 -3
- package/dist/{types--_lpWUGV.d.ts → types-CuDXvyIT.d.ts} +5 -5
- package/dist/{types-7Vlz1Wi2.d.ts → types-DAyp592k.d.ts} +2 -2
- package/dist/{types-Drs3OOAy.d.ts → types-NikV1pND.d.ts} +4 -4
- package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
- package/dist/{types-D8JVDWOr.d.ts → types-_pi9kxS2.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-CUnw73Y-.js → usage-0wsl83uw.js} +10 -10
- package/dist/{usage-BcAqmjkj.js → usage-Bl-BkXEq.js} +1 -1
- package/dist/usage-CmyGbo4e.js +1 -0
- package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
- package/dist/{verify-V08pirDB.js → verify-BSLotSa0.js} +41 -24
- package/dist/version-sources-BC3hf2ME.js +34 -0
- package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
- package/dist/vue/index.d.ts +6 -7
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
- package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
- package/dist/watch-CHURMgrv.js +1 -0
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +6 -5
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-CE5lxje7.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
- package/package.json +16 -4
- package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
- package/dist/better-supabase-ayun1IKE.js +0 -122
- package/dist/catalog-BTPySmbp.js +0 -1
- package/dist/collect-eSTXOZDC.js +0 -1
- package/dist/index-B_I6N8Ju.d.ts +0 -222
- package/dist/load-CjnlPxpL.js +0 -1
- package/dist/powersync-Cs1E04s6.js +0 -1
- package/dist/pull-BLT25Y5C.js +0 -1
- package/dist/run-CW0QsyA9.js +0 -1
- package/dist/supabase-hook-7XxWGHQF.js +0 -1
- package/dist/usage-BdIS9NfN.js +0 -1
- package/dist/version-cache-q5cpaDSt.d.ts +0 -57
- package/dist/vocabulary-DEJ5j4mR.d.ts +0 -70
- package/dist/watch-CS69ftMP.js +0 -1
- package/dist/where-scope-BAyOsPQW.js +0 -332
- package/dist/{approval-normalize-hlfO9BJv.js → approval-normalize-DNLW0zOM.js} +1 -1
- package/dist/{body-C9JbIoqb.js → body-B3ylkmmE.js} +1 -1
- package/dist/{catalog-doc-nrgfbh8I.js → catalog-doc-Zi0jRpyH.js} +2 -2
- package/dist/{device-BwbJNmb2.js → device-BkSynWdg.js} +1 -1
- package/dist/{prompt-BYc6drYW.js → prompt-D1Gj1W4Y.js} +1 -1
- package/dist/{scim-C30QBBoF.js → scim-BG6uPUeW.js} +1 -1
- package/dist/{wrap-C5PWzgkq.js → wrap-BKU5Arsu.js} +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
|
|
3
|
-
import {
|
|
3
|
+
import { D as memoryCustomRoleSource, h as localSnapshotManifest } from "./src-BG9YJM3Q.js";
|
|
4
4
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
5
|
-
import { d as scopeList, s as resolveScope } from "./scopes-
|
|
6
|
-
import { l as policyLevels } from "./policy-CaAME-Rh.js";
|
|
5
|
+
import { d as scopeList, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
7
6
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
8
|
-
import { t as getPermDock } from "./permdock-
|
|
7
|
+
import { t as getPermDock } from "./permdock-B5LyNVgn.js";
|
|
8
|
+
import { l as policyLevels } from "./policy-wGzbAPQF.js";
|
|
9
9
|
import { u as usageResult } from "./errors-BhRkoNS7.js";
|
|
10
|
-
import { c as requirePolicy } from "./load-
|
|
10
|
+
import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
11
11
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
12
|
-
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-
|
|
12
|
+
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-Cvru58id.js";
|
|
13
13
|
import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C4vkzZJV.js";
|
|
14
14
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
15
15
|
import { i as fileDrift } from "./output-files-CM0BnH05.js";
|
|
16
|
-
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-
|
|
16
|
+
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-BVZc7OCF.js";
|
|
17
17
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
18
|
-
import { A as quoteQualified, O as quoteIdent, a as customRolesOn, t as CUSTOM_ROLES } from "./shared-
|
|
19
|
-
import {
|
|
20
|
-
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-
|
|
18
|
+
import { A as quoteQualified, O as quoteIdent, a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DfaIWvIJ.js";
|
|
19
|
+
import { i as tableNames, r as tableNameOf } from "./tables-CbEOy2Ma.js";
|
|
20
|
+
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-adPAsUwY.js";
|
|
21
21
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
22
|
-
import {
|
|
22
|
+
import { h as tableFor, t as canFixture } from "./verify-BSLotSa0.js";
|
|
23
23
|
import { resolve } from "node:path";
|
|
24
24
|
//#region src/cli/powersync/claims.ts
|
|
25
25
|
/** The `/docs` section that explains why a claim stream needs a reconnect. */
|
package/dist/preset/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as ARCHETYPES, c as AUTH, l as BACKENDS, u as FEATURES, d as FRAMEWORKS, f as INTEGRATIONS, p as PRESET_DEFAULTS, r as PRESET_FLAGS, m as SERVICES, a as decodePreset, o as encodePreset, n as generatePreset, h as integrationsOf, i as presetFlags, t as presetMatrix, g as resolvePreset } from "../preset-
|
|
1
|
+
export { s as ARCHETYPES, c as AUTH, l as BACKENDS, u as FEATURES, d as FRAMEWORKS, f as INTEGRATIONS, p as PRESET_DEFAULTS, r as PRESET_FLAGS, m as SERVICES, a as decodePreset, o as encodePreset, n as generatePreset, h as integrationsOf, i as presetFlags, t as presetMatrix, g as resolvePreset } from "../preset-Bn5Z54cH.js";
|
|
@@ -1292,7 +1292,7 @@ function backendFiles(ctx) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
/**
|
|
1294
1294
|
* What `permdock.ts` adds for the backend: imports, statements before
|
|
1295
|
-
* `
|
|
1295
|
+
* `definePermDock`, and its options.
|
|
1296
1296
|
*/
|
|
1297
1297
|
function backendApp(ctx) {
|
|
1298
1298
|
if (ctx.preset.backend !== "supabase") return {
|
|
@@ -1444,9 +1444,9 @@ export const demoUser: User = { ${demo.join(", ")} };
|
|
|
1444
1444
|
`;
|
|
1445
1445
|
}
|
|
1446
1446
|
function appFile(ctx) {
|
|
1447
|
-
const valueImports = /* @__PURE__ */ new Set(
|
|
1447
|
+
const valueImports = /* @__PURE__ */ new Set();
|
|
1448
1448
|
const lines = [];
|
|
1449
|
-
const preamble = [];
|
|
1449
|
+
const preamble = [`import { definePermDock } from "permdock/app";`];
|
|
1450
1450
|
const services = ctx.preset.services;
|
|
1451
1451
|
const cloudServices = services.length > 0;
|
|
1452
1452
|
if (cloudServices) preamble.push(`import { cloud } from "permdock/cloud";`);
|
|
@@ -1476,15 +1476,14 @@ function appFile(ctx) {
|
|
|
1476
1476
|
preamble.push(...backend.imports);
|
|
1477
1477
|
lines.unshift(...backend.options);
|
|
1478
1478
|
const sources = backend.preamble.length === 0 ? "" : `\n${backend.preamble.join("\n")}\n`;
|
|
1479
|
-
return `import { ${[...valueImports].toSorted().join(", ")} } from "permdock"
|
|
1480
|
-
${preamble.length === 0 ? "" : `${preamble.join("\n")}\n`}
|
|
1479
|
+
return `${valueImports.size === 0 ? "" : `import { ${[...valueImports].toSorted().join(", ")} } from "permdock";\n`}${preamble.length === 0 ? "" : `${preamble.join("\n")}\n`}
|
|
1481
1480
|
import { policy } from "./policy";
|
|
1482
1481
|
${cloudLine}${sources}
|
|
1483
1482
|
/**
|
|
1484
1483
|
* The app definition every adapter reads. Your own code: change sources,
|
|
1485
1484
|
* features and services here; the rules stay in the permdock package.
|
|
1486
1485
|
*/
|
|
1487
|
-
export const app =
|
|
1486
|
+
export const app = definePermDock(policy, {
|
|
1488
1487
|
profile: ${env("NODE_ENV")} === "production" ? "prod" : "dev",
|
|
1489
1488
|
${lines.join("\n")}${lines.length === 0 ? "" : "\n"}});
|
|
1490
1489
|
`;
|
package/dist/prisma/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-BaB-KQqn.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
4
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
5
5
|
//#region src/prisma/model-fields.d.ts
|
package/dist/prisma/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { t as assertSafeKey } from "../paths-CUvURzHp.js";
|
|
4
4
|
import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
5
|
-
import { c as relatedTargetsSql, d as restrictedRowsSql, n as compileWhere, o as relatedRowGuard, r as escapeLike, u as renderGraphSql } from "../compile-
|
|
5
|
+
import { c as relatedTargetsSql, d as restrictedRowsSql, n as compileWhere, o as relatedRowGuard, r as escapeLike, u as renderGraphSql } from "../compile-Cvru58id.js";
|
|
6
6
|
import { n as statementText, o as rowCheckOf, r as subjectStatements, s as loadPeer } from "../subject-settings-8sH5HlII.js";
|
|
7
7
|
//#region src/prisma/to-where.ts
|
|
8
8
|
function fieldTests(options) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-Dpg_fSNQ.js";
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { r as Role, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "./permdock-BaB-KQqn.js";
|
|
4
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DVobr5FX.js";
|
|
5
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-DSyjHD5-.js";
|
|
7
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
8
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-BpxdxaRD.js";
|
|
9
8
|
import { ReactNode } from "react";
|
|
10
9
|
//#region src/react/hooks.d.ts
|
|
11
10
|
declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
|
|
2
2
|
import { c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "./views-MWmJ6Y4P.js";
|
|
3
|
-
import { n as storeOf } from "./store-options-
|
|
3
|
+
import { n as storeOf } from "./store-options-CXv6BHH6.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, r as PermDockSnapshotPromiseContext } from "./live-options-BBIT68le.js";
|
|
5
5
|
import { Suspense, use, useEffect, useLayoutEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-BpxdxaRD.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
//#region src/react/provider.d.ts
|
|
4
4
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./from-snapshot-
|
|
3
|
-
import { t as adapterStore } from "./store-options-
|
|
2
|
+
import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
3
|
+
import { t as adapterStore } from "./store-options-CXv6BHH6.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-BBIT68le.js";
|
|
5
5
|
import { useLayoutEffect, useMemo } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as emptySnapshot } from "./from-snapshot-
|
|
3
|
-
import { l as isPromiseLike, t as adapterStore } from "./store-options-
|
|
2
|
+
import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
|
|
3
|
+
import { l as isPromiseLike, t as adapterStore } from "./store-options-CXv6BHH6.js";
|
|
4
4
|
//#region src/client/provider-store.ts
|
|
5
5
|
/**
|
|
6
6
|
* Store options that read `read()` on every request, so a rotated token, a new
|
|
@@ -3,14 +3,14 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
|
3
3
|
import { a as describeError } from "./errors-BhRkoNS7.js";
|
|
4
4
|
import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
|
|
5
5
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
6
|
-
import { o as formatCatalogJson } from "./catalog-doc-
|
|
6
|
+
import { o as formatCatalogJson } from "./catalog-doc-Zi0jRpyH.js";
|
|
7
7
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
8
8
|
import { n as parseSupabaseManifest } from "./manifest-BdzBobNK.js";
|
|
9
|
-
import { t as parseCatalog } from "./parse-
|
|
10
|
-
import { a as nonEmptyOr } from "./output-
|
|
9
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
10
|
+
import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
|
|
11
11
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
12
|
-
import { n as httpRequest, t as authFailure } from "./http-
|
|
13
|
-
import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-
|
|
12
|
+
import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
|
|
13
|
+
import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-BxXHxWRy.js";
|
|
14
14
|
import { n as formatManifestJson } from "./manifest-json-CAGzls-C.js";
|
|
15
15
|
import { existsSync, readFileSync, rmSync } from "node:fs";
|
|
16
16
|
import { relative, resolve } from "node:path";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-3tkn25ll.js";
|
|
@@ -3,13 +3,13 @@ import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
|
3
3
|
import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
4
4
|
import { a as describeError, n as CliError } from "./errors-BhRkoNS7.js";
|
|
5
5
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
6
|
-
import { i as loadConfiguredPolicy } from "./load-
|
|
6
|
+
import { i as loadConfiguredPolicy } from "./load-C4p4VgwR.js";
|
|
7
7
|
import { n as parseSupabaseManifest } from "./manifest-BdzBobNK.js";
|
|
8
|
-
import { t as parseCatalog } from "./parse-
|
|
9
|
-
import { r as pushedPolicy } from "./pushed-policy-
|
|
10
|
-
import { n as runCatalog } from "./catalog-
|
|
11
|
-
import { n as httpRequest, t as authFailure } from "./http-
|
|
12
|
-
import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-
|
|
8
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
9
|
+
import { r as pushedPolicy } from "./pushed-policy-Bi5-il4C.js";
|
|
10
|
+
import { n as runCatalog } from "./catalog-Y4CjN8NA.js";
|
|
11
|
+
import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
|
|
12
|
+
import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-BxXHxWRy.js";
|
|
13
13
|
import "./manifest-json-CAGzls-C.js";
|
|
14
14
|
import { existsSync, readFileSync } from "node:fs";
|
|
15
15
|
import { resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
4
|
-
import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
|
|
5
4
|
import { i as wireValidity } from "./validity-Buc7w8E9.js";
|
|
6
|
-
import { n as
|
|
5
|
+
import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
|
|
6
|
+
import { n as snapshotScopes } from "./instance-snapshot-D_dGTq--.js";
|
|
7
7
|
import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
8
8
|
//#region src/catalog/pushed-policy.ts
|
|
9
9
|
const strings = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-
|
|
1
|
+
import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-rNfz7t0M.js";
|
|
2
2
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
3
3
|
//#region src/catalog/pushed-policy.d.ts
|
|
4
4
|
/**
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
3
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
1
|
+
import { c as requiredPlans } from "../errors-D_JIQJYb.js";
|
|
2
|
+
import { i as describe } from "../describe-DVobr5FX.js";
|
|
3
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.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-L9UOwATg.js";
|
|
5
|
-
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
5
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
8
|
-
import { t as PermDockProvider } from "../provider-
|
|
7
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
|
|
8
|
+
import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
|
|
9
9
|
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 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, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
package/dist/react/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
3
3
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
5
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
6
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
7
|
-
import { t as PermDockProvider } from "../provider-
|
|
5
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CXv6BHH6.js";
|
|
6
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
|
|
7
|
+
import { t as PermDockProvider } from "../provider-DKO9KHua.js";
|
|
8
8
|
export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../provider-
|
|
1
|
+
import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { t as PermDockProvider } from "../provider-
|
|
2
|
+
export { t as PermDockProvider } from "../provider-DKO9KHua.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
4
|
-
import { i as describe } from "../describe-
|
|
5
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
6
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, t as ClientStore, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
1
|
+
import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { c as requiredPlans } from "../errors-D_JIQJYb.js";
|
|
4
|
+
import { i as describe } from "../describe-DVobr5FX.js";
|
|
5
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-BaCqsqwC.js";
|
|
6
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, t as ClientStore, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.js";
|
|
7
7
|
import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
8
|
-
import { r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
8
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
|
|
9
9
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
10
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
10
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
|
|
11
11
|
import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
|
|
12
|
-
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-
|
|
12
|
+
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-NikV1pND.js";
|
|
13
13
|
import { ReactElement } from "react";
|
|
14
14
|
//#region src/react-native/guards.d.ts
|
|
15
15
|
/**
|
|
@@ -3,19 +3,19 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
|
3
3
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
4
4
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
5
5
|
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
6
|
+
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-oR_N97dM.js";
|
|
6
7
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
7
|
-
import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
|
|
8
|
-
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-BSdYaGHs.js";
|
|
9
8
|
import { o as flattenGrantee } from "../grantee-Dke-9rd1.js";
|
|
9
|
+
import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
|
|
10
|
+
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-gdH__vDZ.js";
|
|
11
|
+
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-BlxY5T0q.js";
|
|
12
|
+
import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-C2j96x97.js";
|
|
10
13
|
import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
11
|
-
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-DvOHHk3-.js";
|
|
12
|
-
import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-DHPih65J.js";
|
|
13
|
-
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-DHnb8Fh4.js";
|
|
14
14
|
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
|
|
15
15
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
16
|
-
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-
|
|
16
|
+
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-CXv6BHH6.js";
|
|
17
17
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
|
|
18
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
18
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
|
|
19
19
|
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
20
20
|
import { useEffect, useMemo, useRef } from "react";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
3
|
-
import { n as relationId } from "./relations-
|
|
3
|
+
import { n as relationId } from "./relations-CMsJ1ARY.js";
|
|
4
4
|
//#region src/core/relation-walk.ts
|
|
5
5
|
/** Whether the holder's period covers `now`. */
|
|
6
6
|
function activeNow(holder, now) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { i as idText } from "./expiry-6XByK0dm.js";
|
|
3
2
|
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
4
3
|
import { a as expandRelation } from "./resource-relations-8-pCScBO.js";
|
|
4
|
+
import { n as idText } from "./ids-DzhJaCUj.js";
|
|
5
5
|
//#region src/core/relations.ts
|
|
6
6
|
function isInstant(value) {
|
|
7
7
|
return value === void 0 || typeof value === "number" && Number.isFinite(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
2
|
-
import { n as wrapPermDock } from "./wrap-
|
|
3
|
-
import { t as buildInstance } from "./build-instance-
|
|
2
|
+
import { n as wrapPermDock } from "./wrap-BKU5Arsu.js";
|
|
3
|
+
import { t as buildInstance } from "./build-instance-B0vsViF5.js";
|
|
4
4
|
//#region src/core/request-context.ts
|
|
5
5
|
/**
|
|
6
6
|
* Errors an adapter raises around one instance (a `context` hook that threw, an
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { X as DecisionSink } from "../policy-types-
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { X as DecisionSink } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-2hTqo6IM.js";
|
|
3
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-B9F0EZAF.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-Cq2rvv-C.js";
|
|
5
5
|
//#region src/resend/approval-email.d.ts
|
|
6
6
|
type ApprovalEmailOptions = {
|
|
7
7
|
/**
|
package/dist/resend/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
|
4
4
|
import { l as isRfc3339, p as nowSeconds } from "../time-nR1JesoH.js";
|
|
5
5
|
import { n as sha256, t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
6
6
|
import { t as deliveryEvent } from "../delivery-event-JioK5YbS.js";
|
|
7
|
-
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
8
7
|
import { l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
9
|
-
import {
|
|
8
|
+
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
9
|
+
import { t as bodyTooLarge } from "../body-B3ylkmmE.js";
|
|
10
10
|
import { n as approvalUrlFor } from "../approval-prompt-B8hQY69x.js";
|
|
11
11
|
import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
|
|
12
12
|
//#region src/resend/approval-email.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
2
2
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
3
|
-
import { d as scopeList } from "./scopes-
|
|
3
|
+
import { d as scopeList } from "./scopes-gdH__vDZ.js";
|
|
4
4
|
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
5
5
|
import "./budget-BBCPDOGP.js";
|
|
6
6
|
import "./sources-C4vkzZJV.js";
|
|
7
|
-
import { A as quoteQualified, D as qualified,
|
|
8
|
-
import {
|
|
9
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
7
|
+
import { A as quoteQualified, D as qualified, L as scopeTypeOf, O as quoteIdent } from "./shared-DfaIWvIJ.js";
|
|
8
|
+
import { C as permittedByPermissionHelper, Ct as scopeTable, U as globalRoleRows, _t as memberOfHelper, at as graphHelper, b as checkName, bt as permittedIdsHelper, c as graphPlan, dt as isTeamScope, gt as memberIdsHelper, i as tableNames, lt as hasPermittedUsers, ot as graphSqlName, pt as memberForHelper, u as holderSources, ut as inheritedRowsHelper, xt as restrictedHelper, y as PERMISSION_HELPERS, yt as permittedForHelper } from "./tables-CbEOy2Ma.js";
|
|
9
|
+
import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
|
|
10
10
|
//#region src/cli/rls/permission-holders.ts
|
|
11
11
|
/**
|
|
12
12
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-qrehUPf_.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
const generate = defineLeaf({
|
|
198
198
|
flags: {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { c as listPermissions, u as renamedKeys } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { i as dateAt } from "./time-nR1JesoH.js";
|
|
4
|
-
import { p as scopeField } from "./tenancy-
|
|
4
|
+
import { p as scopeField } from "./tenancy-BlxY5T0q.js";
|
|
5
5
|
import { a as describeError, i as configError, o as exitCodeOfError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
6
6
|
import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
|
|
7
7
|
import { o as sqlFiles } from "./files-BSjrtIHw.js";
|
|
8
|
-
import {
|
|
8
|
+
import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
|
|
9
|
+
import { c as requirePolicy } from "./load-C4p4VgwR.js";
|
|
9
10
|
import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
|
|
10
11
|
import "./sources-C4vkzZJV.js";
|
|
11
|
-
import { t as policyFromCatalog } from "./policy-from-catalog-
|
|
12
|
+
import { t as policyFromCatalog } from "./policy-from-catalog-Cy103lsm.js";
|
|
12
13
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
13
14
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
|
|
14
|
-
import { a as nonEmptyOr } from "./output-
|
|
15
|
-
import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
|
|
15
|
+
import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
|
|
16
16
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
17
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
17
|
+
import { t as fetchProjectPolicy } from "./pull-3tkn25ll.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
20
20
|
import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
21
|
-
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-
|
|
22
|
-
import { A as quoteQualified, D as qualified$1,
|
|
23
|
-
import {
|
|
24
|
-
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-
|
|
21
|
+
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-Bh5syR9N.js";
|
|
22
|
+
import { A as quoteQualified, D as qualified$1, L as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DfaIWvIJ.js";
|
|
23
|
+
import { $ as byKey, C as permittedByPermissionHelper, Ct as scopeTable, E as helpersSql, O as seedSql, St as scopeSources, T as accessSql, at as graphHelper, bt as permittedIdsHelper, gt as memberIdsHelper, i as tableNames, l as graphSql, x as permissionHelpersSql } from "./tables-CbEOy2Ma.js";
|
|
24
|
+
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-adPAsUwY.js";
|
|
25
25
|
import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
|
|
26
|
-
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-
|
|
27
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
28
|
-
import { _ as
|
|
29
|
-
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-
|
|
26
|
+
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-CVyOk-f1.js";
|
|
27
|
+
import { n as permissionHoldersSql } from "./resolve-names-BnGJU88N.js";
|
|
28
|
+
import { _ as INDEX_COLUMNS_SQL, a as verifyResult, b as pruneIndexTargets, c as callsHelper, g as COLUMNS_SQL, h as tableFor, i as verifyIgnores, l as helperCallKeys, m as inferredCommand, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexTargets, x as readTableIndexFacts, y as indexesSql } from "./verify-BSLotSa0.js";
|
|
29
|
+
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-ChXR-4Or.js";
|
|
30
30
|
import { readFileSync } from "node:fs";
|
|
31
31
|
import { basename, delimiter, join } from "node:path";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
@@ -285,9 +285,32 @@ function explainRls(input) {
|
|
|
285
285
|
resource,
|
|
286
286
|
permissions: [...new Set(generated.compiled.branches.flatMap((branch) => branch.resource === resource && branch.coverage !== true ? [branch.permissionKey] : []))].toSorted()
|
|
287
287
|
})),
|
|
288
|
+
inferredActions: inferredActions(generated, rls?.actions),
|
|
288
289
|
triggers: generatedTriggers(input.text)
|
|
289
290
|
};
|
|
290
291
|
}
|
|
292
|
+
function inferredActions(generated, actions) {
|
|
293
|
+
const found = /* @__PURE__ */ new Map();
|
|
294
|
+
for (const branch of generated.compiled.branches) {
|
|
295
|
+
if (branch.resource === void 0) continue;
|
|
296
|
+
const base = branch.permissionKey.split("@")[0] ?? branch.permissionKey;
|
|
297
|
+
const action = base.slice(branch.resource.length + 1);
|
|
298
|
+
const command = inferredCommand(action, actions);
|
|
299
|
+
if (command !== void 0) {
|
|
300
|
+
const entry = found.get(action) ?? {
|
|
301
|
+
command,
|
|
302
|
+
keys: /* @__PURE__ */ new Set()
|
|
303
|
+
};
|
|
304
|
+
entry.keys.add(base);
|
|
305
|
+
found.set(action, entry);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return [...found.entries()].toSorted(([a], [b]) => a < b ? -1 : 1).map(([action, { command, keys }]) => ({
|
|
309
|
+
action,
|
|
310
|
+
command,
|
|
311
|
+
permissions: [...keys].toSorted()
|
|
312
|
+
}));
|
|
313
|
+
}
|
|
291
314
|
/** The text report of `explain`. */
|
|
292
315
|
function describeExplain(explain) {
|
|
293
316
|
const lines = [
|
|
@@ -315,6 +338,10 @@ function describeExplain(explain) {
|
|
|
315
338
|
lines.push("", "row helpers:");
|
|
316
339
|
for (const helper of explain.rowHelpers) lines.push(` ${helper.resource}: ${helper.permissions.join(", ")}`);
|
|
317
340
|
}
|
|
341
|
+
if (explain.inferredActions.length > 0) {
|
|
342
|
+
lines.push("", "inferred actions (set rls.actions to change):");
|
|
343
|
+
for (const item of explain.inferredActions) lines.push(` ${item.action} -> ${item.command}: ${item.permissions.join(", ")}`);
|
|
344
|
+
}
|
|
318
345
|
if (explain.triggers.length > 0) {
|
|
319
346
|
lines.push("", "generated triggers:");
|
|
320
347
|
for (const trigger of explain.triggers) lines.push(` ${trigger.name} on ${trigger.table} (${trigger.reason})`);
|
|
@@ -1027,7 +1054,7 @@ function realtimeStoragePolicies(ctx, facts, config, warnings = []) {
|
|
|
1027
1054
|
}
|
|
1028
1055
|
//#endregion
|
|
1029
1056
|
//#region src/cli/rls/generate-policies.ts
|
|
1030
|
-
const ACTOR_GUARDS_HEADER = "-- rls.readOnlyActors with --helpers-only: restrictive policies on the write commands, which narrow the hand-written policies and grant nothing.
|
|
1057
|
+
const ACTOR_GUARDS_HEADER = "-- rls.readOnlyActors with --helpers-only: restrictive policies on the write commands, which narrow the hand-written policies and grant nothing. Apply this after the migrations that create the tables.";
|
|
1031
1058
|
const SERVICE_TABLES_HEADER = "-- Supabase Realtime and Storage: rls.realtime and rls.storage. RLS on both tables is Supabase's.";
|
|
1032
1059
|
/**
|
|
1033
1060
|
* A policy that applies only where its table exists. The Realtime and Storage
|
|
@@ -1119,7 +1146,7 @@ function generatePolicies(input, policy, options, built, warnings) {
|
|
|
1119
1146
|
force,
|
|
1120
1147
|
views,
|
|
1121
1148
|
policies: helpersOnly ? [] : withActors(assembled),
|
|
1122
|
-
...actorGuards.length === 0 ? {} : { actorGuards: [ACTOR_GUARDS_HEADER, ...actorGuards.map(
|
|
1149
|
+
...actorGuards.length === 0 ? {} : { actorGuards: [ACTOR_GUARDS_HEADER, ...actorGuards.map((item) => policySql(item))].join("\n") }
|
|
1123
1150
|
};
|
|
1124
1151
|
if (servicePolicies.length === 0) return generated;
|
|
1125
1152
|
return {
|
|
@@ -2502,7 +2529,7 @@ async function migrate(input) {
|
|
|
2502
2529
|
output: generated.output
|
|
2503
2530
|
};
|
|
2504
2531
|
await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls migrate", input.cwd, PGSQL_PARSER_MAJOR);
|
|
2505
|
-
const { migrateTarget, runRlsMigrate } = await import("./migrate-
|
|
2532
|
+
const { migrateTarget, runRlsMigrate } = await import("./migrate-DVsxeE0y.js");
|
|
2506
2533
|
return runRlsMigrate({
|
|
2507
2534
|
cwd: input.cwd,
|
|
2508
2535
|
sql: input.sql,
|
|
@@ -2618,7 +2645,7 @@ async function runRls(input) {
|
|
|
2618
2645
|
}
|
|
2619
2646
|
case "import": {
|
|
2620
2647
|
await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls import", input.cwd, PGSQL_PARSER_MAJOR);
|
|
2621
|
-
const { runRlsImport } = await import("./import-
|
|
2648
|
+
const { runRlsImport } = await import("./import-CvXswHDy.js");
|
|
2622
2649
|
return runRlsImport({
|
|
2623
2650
|
cwd: input.cwd,
|
|
2624
2651
|
config: input.config,
|
|
@@ -2,12 +2,12 @@ import { a as sole, n as isReadonlyArray, r as isRecord, t as compact } from "./
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { i as ownKeys, n as isForbiddenKey, t as assertSafeKey } from "./paths-CUvURzHp.js";
|
|
4
4
|
import { c as isConditionDate, l as isConditionRef, r as isSubjectRef, s as isCondition, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
5
|
+
import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
5
6
|
import { c as listPermissions, o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
6
7
|
import { n as assertMetaValue, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
7
|
-
import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
|
|
8
8
|
import { d as roleScopeOf, g as isRole, o as flattenGrantee, r as asGrantee, u as roleNameOf } from "./grantee-Dke-9rd1.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import {
|
|
9
|
+
import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
|
|
10
|
+
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-DNLW0zOM.js";
|
|
11
11
|
//#region src/conditions/opaque.ts
|
|
12
12
|
function opaque(input) {
|
|
13
13
|
return freezeDeep({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as ProtectOptions } from "./server-types
|
|
1
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
2
|
+
import { o as ProtectOptions } from "./server-types--_Hann81.js";
|
|
3
3
|
//#region src/server/stream.d.ts
|
|
4
4
|
type StreamProtectOptions = ProtectOptions & {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { s as requestFromContext } from "./http-DKLXrFGk.js";
|
|
3
2
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
4
|
-
import {
|
|
3
|
+
import { s as requestFromContext } from "./http-DKLXrFGk.js";
|
|
4
|
+
import { t as adapterKernel } from "./bind-B4Z0U2Gr.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-DQ3rbO3J.js";
|
|
6
6
|
//#region src/server/rpc.ts
|
|
7
7
|
/** The tRPC and oRPC error code for a Problem Details status. */
|