permdock 0.32.0 → 0.34.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/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-BJMEEu7V.js → adoption-scan-BPW1eWy5.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 +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/{approval-chain-D97rgMoA.js → approval-chain-BEeExHpb.js} +15 -10
- package/dist/{approval-prompt-yNyhQqn8.d.ts → approval-prompt-CJvYBdja.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-C_xK2Kaa.js → arazzo-BUXKjylF.js} +1 -1
- package/dist/{arazzo-BAgh0PT6.js → arazzo-DqzmZG-x.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/{audience-CARf-b-R.js → audience-B6DQ5wQu.js} +1 -1
- package/dist/authzen/index.d.ts +6 -6
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-0VF1xe4o.d.ts → automation-BqUmdFfe.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-supabase/index.d.ts +34 -13
- package/dist/better-supabase/index.js +21 -21
- package/dist/{bind-zQacwAOg.d.ts → bind-Bwk9tt1z.d.ts} +7 -7
- package/dist/{bind-BYeoLJgN.js → bind-DPptdk31.js} +2 -2
- package/dist/{bsb-access-tags-CjeR7v7-.js → bsb-access-tags-Nv4nDQ2U.js} +11 -2
- package/dist/{budgets-Dpumu_Dt.js → budgets-hi-ecgEd.js} +3 -3
- package/dist/{build-instance-CFiegi_w.js → build-instance-DZEWYO-A.js} +1 -1
- package/dist/bundle-size-BRFeBvuv.js +1 -0
- package/dist/{bundle-size-Ddhv_H_v.js → bundle-size-DbXV65Ix.js} +2 -2
- package/dist/{capability-BPzseilU.d.ts → capability-qoD_jlcI.d.ts} +1 -1
- package/dist/{casbin-EwdKipQs.js → casbin-CM9mWO1V.js} +1 -1
- package/dist/{casbin-BErdqy1J.js → casbin-qEW6RfXA.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +4 -4
- package/dist/{challenge-CRB1X3Ry.js → challenge-E9sicsCA.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/{claims-size-BsSDVD5u.js → claims-size-BUhCWS88.js} +18 -3
- package/dist/claims-size-C6oKGuOM.js +1 -0
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +2 -2
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{client-subject-xCSkKD1C.d.ts → client-subject-Dzo49nco.d.ts} +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-DW3q3qnp.js → cloud-CNGblWX0.js} +2 -2
- package/dist/{codemod-DVDMFsTX.js → codemod-BtJFcsD7.js} +5 -5
- package/dist/{codemod-CF7NNDzA.js → codemod-Dlhxov9D.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-tG1zkSgX.d.ts → compile-DNgpHgcK.d.ts} +2 -2
- package/dist/{compile-BXKYYmT1.js → compile-nR1gQhXo.js} +10 -9
- package/dist/{completion-B59uPAnZ.js → completion-BIN9YXIe.js} +1 -1
- package/dist/{config-VCa1RLUe.js → config-CoYhD6ur.js} +1 -1
- package/dist/{config-report-CjvA6lGI.js → config-report-D_L1HXDb.js} +3 -3
- package/dist/{context-CAFddgb9.js → context-D8tN3SZm.js} +1 -1
- package/dist/{context-BQHKgT1m.js → context-Nr3nknZX.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-C5yCD-Ls.js → core-DIUrkFNL.js} +5 -5
- package/dist/{core-bf8qgaZf.d.ts → core-DPuDmlbL.d.ts} +2 -2
- package/dist/{create-Cn5EpEez.d.ts → create-BKrKxipb.d.ts} +4 -4
- package/dist/{create-COQVXK6C.js → create-BMRnaZel.js} +3 -3
- package/dist/{create-nOWD3Joc.js → create-BRY0OtFV.js} +3 -3
- package/dist/{create-B7Xa4jSQ.d.ts → create-CdB9FCZh.d.ts} +7 -7
- package/dist/{create-DHA0fhmi.d.ts → create-CdbVXh5I.d.ts} +6 -6
- package/dist/{credentials-COT-cjnP.d.ts → credentials-Dl0-R2aB.d.ts} +2 -2
- package/dist/{custom-role-rebuild-BK73tPib.js → custom-role-rebuild-wzN8pqDk.js} +5 -5
- package/dist/{define-permdock-DBgwTFi1.d.ts → define-permdock-4IkoNaB3.d.ts} +6 -6
- package/dist/{define-permdock-D7aKxIax.js → define-permdock-CO7YNrOF.js} +2 -2
- package/dist/{definition-options-9o8Hdww3.js → definition-options-DO0kIrB9.js} +7 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-C_AWc0f0.d.ts → denied-text-CllTzVJM.d.ts} +1 -1
- package/dist/{describe-AdETpWsn.d.ts → describe-FT1oVN_o.d.ts} +1 -1
- package/dist/{diff-CW9eZy9X.js → diff-CS8ks9h3.js} +1 -1
- package/dist/{diff-COdwpP31.js → diff-CkSZF7LO.js} +2 -2
- package/dist/{doctor-ervtBRzG.js → doctor-Bn5OPJMB.js} +94 -35
- package/dist/{doctor-ELj5hrVv.js → doctor-C9lLeLp2.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-COoiWqIs.d.ts → errors-BGosrHl8.d.ts} +1 -1
- package/dist/{evaluate-Dmd0bShm.js → evaluate-DNz6wMYv.js} +1 -1
- package/dist/{evaluations-GW9j_ARq.d.ts → evaluations-CaXNkxTp.d.ts} +3 -3
- package/dist/{evaluator-eager-CpVYslzY.js → evaluator-eager-BLNVbEAC.js} +1 -1
- package/dist/evaluator-zpeC7zel.js +2 -0
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/{execute-ix7AAdWg.js → execute-DsHFIBuO.js} +4 -4
- package/dist/{explain-DRC9V5Qb.js → explain-D4ipf8IH.js} +1 -1
- package/dist/{explain-jg0KLCVt.js → explain-DISCeeYS.js} +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-CU1DIkXu.js → fetch-adapter-BXQc4NoV.js} +1 -1
- package/dist/{fetch-adapter-CJncmsPg.d.ts → fetch-adapter-Dci9NnyZ.d.ts} +2 -2
- package/dist/{fields-y_PSRCyJ.js → fields-CwFej4gp.js} +3 -3
- package/dist/{from-snapshot-DGc9W4QU.js → from-snapshot-DZ4D2sLa.js} +14 -9
- package/dist/gen-CpS9JkCb.js +1 -0
- package/dist/{gen-8rW_AUG5.js → gen-Fi4GcvIY.js} +3 -3
- package/dist/{gen-kind-C9ikF8nb.js → gen-kind-DR2-to9P.js} +1 -1
- package/dist/{generate-CW7gNfLr.js → generate-BSD_eI61.js} +18 -17
- package/dist/{generate-BmpCt5oi.js → generate-QEHCJSyv.js} +3 -3
- package/dist/{generate-options-DiR4r_sk.js → generate-options-BZ2nqy28.js} +14 -13
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-DHvgN9tr.js → helper-calls-B5MOl99d.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-D-abRHut.js → hook-sql-CbkH78FC.js} +267 -223
- package/dist/{hosted-Bkw3Oyh-.d.ts → hosted-BISipW6F.d.ts} +1 -1
- package/dist/{hosted-DZwCFrcy.js → hosted-D3USbpS6.js} +1 -1
- package/dist/{import-D_8tLF9g.js → import-Bz6IKoMM.js} +3 -3
- package/dist/{import-BAhoTYTk.js → import-DppjSugv.js} +1 -1
- package/dist/{index-DT3hOxA7.d.ts → index-BDJ2OZvV.d.ts} +34 -11
- package/dist/{index-Kj5S3IWE.d.ts → index-BF4IlvkT.d.ts} +4 -4
- package/dist/{index-DWmIuQLz.d.ts → index-BO5f180f.d.ts} +4 -4
- package/dist/{index-WOx7TBbj.d.ts → index-CWwWkz10.d.ts} +2 -2
- package/dist/{index-xShPsK8G.d.ts → index-Co_e22iJ.d.ts} +1 -1
- package/dist/{index-DPVeDtAO.d.ts → index-giCl-aQY.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +13 -13
- package/dist/{init-DkRHIe8-.js → init-BOYIObRF.js} +3 -3
- package/dist/{init-zxb0BVDJ.js → init-DJYSpo-H.js} +1 -1
- package/dist/inspect-functions-CwEAQpVF.js +34 -0
- package/dist/{instance-options-DQCiBBuz.d.ts → instance-options-hq5Cp2Ih.d.ts} +1 -1
- package/dist/{instance-snapshot-D9kjL37B.js → instance-snapshot-D03srwnf.js} +9 -8
- package/dist/{interactive-only-Dqww0ABO.js → interactive-only-Bbq9e61G.js} +10 -182
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-C5akxw5n.js → kernel-DSnWVZ0O.js} +5 -5
- package/dist/{keys-DQsHrgBM.js → keys-U2V0maaq.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-CMgFAGf8.d.ts → lazy-provider-W8KwlWJU.d.ts} +1 -1
- package/dist/{lazy-provider-DNVjY4n3.js → lazy-provider-b8UHGi8P.js} +2 -2
- package/dist/{login-C1p3gmj8.js → login-Dv8TFykx.js} +1 -1
- package/dist/{login-DOEZveP6.js → login-xgjt0a5o.js} +3 -3
- package/dist/{manager-chain-DdkiCw5q.js → manager-chain-FggG63qD.js} +1 -1
- package/dist/{manifest-31igzVGQ.js → manifest-BUeAHWDT.js} +44 -37
- package/dist/{manifest-DgsxeAsM.d.ts → manifest-BwhZ1s5b.d.ts} +35 -3
- package/dist/{manifest-B487A3po.js → manifest-CIWOmdlP.js} +1 -1
- package/dist/{manifest-schema-D7RQbnGY.js → manifest-schema-N3v2RVL-.js} +24 -0
- package/dist/{may-use-4HzzgYJ3.js → may-use-ikNCnNgZ.js} +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +2 -2
- package/dist/measure-DZtly0oE.js +272 -0
- package/dist/membership-claim-sql-DGfhIn__.js +33 -0
- package/dist/{membership-filter-C7ZuhAqJ.js → membership-filter-Bz9QX6E9.js} +1 -1
- package/dist/memberships-4e6qi8Uv.js +1 -0
- package/dist/memberships-CNoAlsma.js +180 -0
- package/dist/{migrate-pg-lkbDu.js → migrate-BXk_rUmb.js} +2 -2
- package/dist/{model-BXhr8gUI.js → model-D0EKt-ED.js} +3 -3
- package/dist/names-DBxKx2bz.js +182 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +11 -11
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-DEGesHWH.js → openapi-Bfakk4cF.js} +1 -1
- package/dist/{openapi-document-CEQ6jqqR.js → openapi-document-ZWpur4f1.js} +1 -1
- package/dist/{openapi-BeMVHVY4.js → openapi-g58VVrsc.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-C7EPeSZj.js → output-D4FLF3_v.js} +1 -1
- package/dist/{ownership-Csk9C3Js.js → ownership-DvmaGcup.js} +7 -6
- package/dist/{parse-local-manifest-B92rFWnk.d.ts → parse-local-manifest-AJWs3pkW.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-CJPIwU1T.js → permdock-JM9TKevZ.js} +14 -14
- package/dist/{permdock-BShHM8OJ.d.ts → permdock-V86uejcm.d.ts} +2 -2
- package/dist/{permissions-wEkTVr_I.js → permissions-xPyAmuXi.js} +1 -1
- package/dist/{pipeline-Bbu7uw28.js → pipeline-DCERGTTY.js} +2 -2
- package/dist/{plugin-L3G7jPGE.d.ts → plugin-BnvEp5tS.d.ts} +2 -2
- package/dist/{policy-BBvhhH9X.js → policy-CZBJDcTx.js} +2 -1
- package/dist/{policy-BUtwixSN.d.ts → policy-DZORR-Fw.d.ts} +1 -1
- package/dist/{policy-CSOOQ3rR.js → policy-DoHkOOTQ.js} +1 -1
- package/dist/{policy-bundle-KYI0EnrM.js → policy-bundle-CsnNAo-n.js} +3 -3
- package/dist/{policy-from-catalog-_zwn1sNj.js → policy-from-catalog-BohzTN3J.js} +3 -3
- package/dist/{policy-types-CfW4X_yX.d.ts → policy-types-BnBZvh7N.d.ts} +50 -1
- package/dist/{postgrest-PQ3zAOD2.d.ts → postgrest-BG0ipED3.d.ts} +9 -2
- package/dist/{powersync-CM6Vg4RH.js → powersync-CTKfjnPT.js} +12 -12
- package/dist/{powersync-CGvu6j5U.js → powersync-Cz3MUw6R.js} +1 -1
- package/dist/{powersync-C1ix7CEY.js → powersync-Dbpn-n0o.js} +1 -1
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-BPN0NaRb.js → protected-action-DDYvU-9Z.js} +1 -1
- package/dist/{protected-action-DhCQ4bSe.d.ts → protected-action-aGL_gT4j.d.ts} +5 -5
- package/dist/{provider-BV_v0JAY.js → provider-BwqzED5h.js} +83 -50
- package/dist/{provider-1xqxLVEz.js → provider-NQwLSlgb.js} +2 -2
- package/dist/{provider-CMgFAGf8.d.ts → provider-W8KwlWJU.d.ts} +1 -1
- package/dist/{provider-store-Cf8HRNtb.js → provider-store-BizF6jyu.js} +2 -2
- package/dist/{provider-with-cpL9vRjC.js → provider-with-DtBgCCV_.js} +1 -1
- package/dist/{prune-config-CdoPJIGz.js → prune-config--x-cEF8G.js} +5 -5
- package/dist/{pull-BaB401Bk.js → pull-BQELP7aV.js} +2 -2
- package/dist/pull-C_ZiPZ5X.js +1 -0
- package/dist/{push-DcjvEj0m.js → push-D5so0ptb.js} +2 -2
- package/dist/{pushed-policy-DcvO8NXy.d.ts → pushed-policy-CQaXRDe3.d.ts} +1 -1
- package/dist/{pushed-policy-DSjSWEAl.js → pushed-policy-dm_hFstN.js} +1 -1
- package/dist/{quote-BKrTBbcH.js → quote-LNaBdCGA.js} +1 -1
- package/dist/{rbac-mblGDx-Z.js → rbac-BRMnQ9Rl.js} +5 -4
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +6 -6
- package/dist/react/lazy.js +3 -3
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +5 -5
- package/dist/read-memberships-DVBitJZG.js +164 -0
- package/dist/{rename-BZNOV8H9.js → rename-BjP2CFUY.js} +5 -5
- package/dist/replay-Dg5-l7xu.d.ts +3 -0
- package/dist/{report-DCAiUc5U.js → report-DF0zUNut.js} +1 -1
- package/dist/{report-DievqWhf.js → report-XdCm1y_J.js} +1 -1
- package/dist/{request-context-BNVY3kZ1.js → request-context-CqqdiVp4.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-config-9NYYVc30.js → resolve-config-Cu_mE2wt.js} +1 -1
- package/dist/{resolve-names-Cth1UQ-8.js → resolve-names-xBg9s2IJ.js} +7 -6
- package/dist/{resolver-CuIY8aFD.js → resolver-C_a-bddD.js} +99 -15
- package/dist/{rls-BtkZgaZp.js → rls-BzCz7ZV0.js} +51 -4
- package/dist/{rls-files-ucAI0J5j.js → rls-files-Bu0O7cZ6.js} +1 -1
- package/dist/{rls-options-BFGRmdcH.d.ts → rls-options-f1wRhXSG.d.ts} +1 -1
- package/dist/{rls-DUYok5e9.js → rls-rk-QH4fc.js} +13 -13
- package/dist/{rpc-D7G7IJDa.js → rpc-BQPa7tLP.js} +1 -1
- package/dist/{rpc-COnquydd.d.ts → rpc-DyCWVn6C.d.ts} +1 -1
- package/dist/run-BvtApZDp.js +1 -0
- package/dist/{run-WIqPbnjD.js → run-DTz-e3Od.js} +2 -2
- package/dist/{run-ticket-Mmor5sYW.d.ts → run-ticket-mVPqm6M6.d.ts} +2 -2
- package/dist/{saas-DcqUkynn.js → saas-DSeazNrN.js} +3 -3
- package/dist/{scan-Badcllgg.js → scan-Cn79IAJs.js} +1 -1
- package/dist/{schema-DBRKgQb4.js → schema-CbzVUpWv.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/seeds/index.d.ts +1 -1
- package/dist/{seeds-Cih1ztkf.d.ts → seeds-DLjPbhvM.d.ts} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +1 -1
- package/dist/{server-types-C2XX60aF.d.ts → server-types-BlMijUtb.d.ts} +8 -8
- package/dist/share-key-claims-CZGAeVqa.js +28 -0
- package/dist/{shared-C6_T7QUo.js → shared-DnVY767H.js} +2 -1
- package/dist/{sink-BQ_6K81r.d.ts → sink-DhrVLPSJ.d.ts} +2 -2
- package/dist/{size-l1pDHE2z.js → size-CY6rK6l9.js} +3 -3
- package/dist/{skills-Ba9hHGO6.js → skills-BKrN1qej.js} +1 -1
- package/dist/{skills-CTKq3o8D.js → skills-oZ8Ng2e7.js} +1 -1
- package/dist/{snapshot-Ty0uk9wZ.js → snapshot-Dzi4LR6n.js} +8 -1
- package/dist/{snapshot-cache-DGvLQW0-.d.ts → snapshot-cache-CVYqOThu.d.ts} +1 -1
- package/dist/{snapshot-compact-yXFxZLPo.js → snapshot-compact-BWMLnIXK.js} +35 -4
- package/dist/{snapshot-evaluate-DSNj2rhV.js → snapshot-evaluate-C382Z1mQ.js} +1 -1
- package/dist/{snapshot-reads-BnAHiuoa.js → snapshot-reads-JxcUSUfW.js} +2 -2
- package/dist/{snapshot-size-DNY1MTsV.js → snapshot-size-D6ixbYvH.js} +1 -1
- package/dist/{snapshot-size-2fkXbCkP.js → snapshot-size-NklqBKcV.js} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-CjgZns7t.d.ts → sources-Bq7k7g34.d.ts} +7 -2
- package/dist/{sources-DnjJPGfb.js → sources-C6Id63F8.js} +2 -1
- package/dist/{src-HRYn4UFj.js → src-BXDohWNO.js} +154 -11
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-Bnnrqa6d.d.ts → standard-webhooks-D6SPYjSQ.d.ts} +2 -2
- package/dist/{store-core-BdFcruPm.d.ts → store-core-Bq7Qc9QM.d.ts} +4 -4
- package/dist/{store-options-DpCQo0vB.js → store-options-DgOuhUSn.js} +4 -4
- package/dist/{stores-D6MIjN_-.d.ts → stores-Dn7TpQFa.d.ts} +5 -5
- package/dist/{stores-KpBCaY6c.js → stores-jgDndNHa.js} +1 -1
- package/dist/{subject-CrldGifz.js → subject-B7p94Y0s.js} +1 -1
- package/dist/{subject-cache-CnJcz2K_.d.ts → subject-cache-UKUgQCEX.d.ts} +3 -1
- package/dist/supabase/index.d.ts +36 -9
- package/dist/supabase/index.js +8 -7
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-CGiB83XQ.js → supabase-BNPS-Gr1.js} +15 -1
- package/dist/{supabase-kWQlkrHw.js → supabase-DrazwRER.js} +14 -7
- package/dist/supabase-hook-D0Yzbl19.js +2 -0
- package/dist/{supabase-hook-CqO_0Koh.js → supabase-hook-t1HnQf8U.js} +7 -7
- package/dist/{supabase-schemas-BglbAG2Z.js → supabase-schemas-_ubYYw9i.js} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +5 -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 +4 -4
- package/dist/sveltekit/index.js +1 -1
- package/dist/{table-reads-AnHPrBp8.js → table-reads-B7z40Yu-.js} +297 -48
- package/dist/{table-reads-BviGc0L_.js → table-reads-Ci-ZVo5m.js} +1 -1
- package/dist/{tables-CDq0HVVq.js → tables-Bxmf2beb.js} +102 -8
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-D7g9oNVH.js → tenant-check-DW0kbH-a.js} +4 -4
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +4 -4
- package/dist/testing/fixtures/index.js +29 -11
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +13 -13
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-CUmJFGV6.d.ts → type-helpers-CVN-p62O.d.ts} +1 -1
- package/dist/{types-vKKndyxx.d.ts → types-5cvjmHTG.d.ts} +1 -1
- package/dist/{types-DwoRXDvN.d.ts → types-BMKDvcXc.d.ts} +2 -2
- package/dist/{types-CIzXPPV-.d.ts → types-B_I8TBA9.d.ts} +2 -2
- package/dist/{types-h9W3CNC_.d.ts → types-BmTW35E5.d.ts} +4 -4
- package/dist/{types-BhBfMdQ5.d.ts → types-CDkJNA3a.d.ts} +3 -3
- package/dist/{types-euUv1wsO.d.ts → types-CgaGxF5q.d.ts} +1 -1
- package/dist/{types-BsRf5rKk.d.ts → types-CrUguLsE.d.ts} +2 -2
- package/dist/{types-BRECeQ2n.d.ts → types-DNOJRhyn.d.ts} +3 -3
- package/dist/{types-BKnUwgvx.d.ts → types-Dl2jRkyq.d.ts} +4 -4
- package/dist/{types-config-DNIw_Gt5.d.ts → types-config-CyawIkMF.d.ts} +2 -2
- package/dist/{types-CjZscT16.d.ts → types-gp1w86cV.d.ts} +4 -4
- package/dist/{types-run-Bwn1MuW0.d.ts → types-run-ByHuYUen.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/{usage-CW6xhRcV.js → usage-B8ca_Nj_.js} +2 -2
- package/dist/usage-CKTsomEq.js +1 -0
- package/dist/{usage-n4V2k_a6.js → usage-Do7LQ4i4.js} +1 -1
- package/dist/{validation-error-P4Z9HUuP.d.ts → validation-error-BKgVVMc1.d.ts} +1 -1
- package/dist/{verify-CKzngsUH.js → verify-ZojGAC3f.js} +12 -12
- package/dist/{version-cache-BzK8dwJy.js → version-cache-Ccrfu2A4.js} +6 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BqUxSRxq.d.ts → waiter-Bov7Cig6.d.ts} +2 -2
- package/dist/{warm-BR-mrnY-.d.ts → warm-BKD3FN6k.d.ts} +1 -1
- package/dist/{warm-5yxlUmBh.js → warm-BZ0ZwSmO.js} +1 -1
- package/dist/{watch-C12Ub7x4.js → watch-EzX_aG73.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/{who-can-CGVpM3fZ.js → who-can-CIgYpEvy.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-D8WtzrB7.d.ts → wrap-CaAA3ubO.d.ts} +2 -2
- package/package.json +11 -11
- package/schemas/snapshot-v2.json +20 -0
- package/schemas/supabase-claims-v1.json +48 -2
- package/schemas/supabase-manifest-v1.json +28 -0
- package/dist/bundle-size-DwZ4e1gu.js +0 -1
- package/dist/claims-size-B6j0Ff4Q.js +0 -1
- package/dist/evaluator-COmATWCr.js +0 -2
- package/dist/gen-BtiGMiuH.js +0 -1
- package/dist/pull-Bp63vtgu.js +0 -1
- package/dist/read-memberships-BkePIa1F.js +0 -63
- package/dist/replay-BCOZifwx.d.ts +0 -3
- package/dist/run-BjMxYYTe.js +0 -1
- package/dist/supabase-hook-CluYxKee.js +0 -2
- package/dist/usage-Ci7Glu-H.js +0 -1
|
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
|
|
|
18
18
|
},
|
|
19
19
|
async run(ctx, { flags }) {
|
|
20
20
|
try {
|
|
21
|
-
const { runPolicyBundle } = await import("./policy-bundle-
|
|
21
|
+
const { runPolicyBundle } = await import("./policy-bundle-CsnNAo-n.js");
|
|
22
22
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
23
23
|
return runPolicyBundle({
|
|
24
24
|
cwd: ctx.cwd,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
3
|
-
import { r as compileGrants } from "./compile-
|
|
4
|
-
import { G as POLICY_BUNDLE_FORMAT, J as policyBundle, i as tableNames, q as bundleLoaderSql } from "./tables-
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-BZ2nqy28.js";
|
|
3
|
+
import { r as compileGrants } from "./compile-nR1gQhXo.js";
|
|
4
|
+
import { G as POLICY_BUNDLE_FORMAT, J as policyBundle, i as tableNames, q as bundleLoaderSql } from "./tables-Bxmf2beb.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -2,17 +2,17 @@ import { l as normalizeWhere } from "./role-builder-BksM3Q9O.js";
|
|
|
2
2
|
import { o as readWireApproval } from "./approval-normalize-C6je8vWN.js";
|
|
3
3
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
4
4
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
5
|
-
import { o as isPortableCondition } from "./hosted-
|
|
5
|
+
import { o as isPortableCondition } from "./hosted-D3USbpS6.js";
|
|
6
6
|
import { i as getRegistry, n as findPermission, v as resource } from "./permission-registry-DstT40VS.js";
|
|
7
7
|
import { t as definePermissions } from "./permissions-DJ_QV9L7.js";
|
|
8
|
-
import { a as indexPolicy, p as normalizeDelegation } from "./policy-
|
|
8
|
+
import { a as indexPolicy, p as normalizeDelegation } from "./policy-CZBJDcTx.js";
|
|
9
9
|
import { n as defineScopes } from "./scopes-B-KX9EI8.js";
|
|
10
10
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
11
11
|
import { r as readWireValidity } from "./validity-YNEEm2MZ.js";
|
|
12
12
|
import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
|
|
13
13
|
import { n as copyJson, t as checkSchema } from "./json-schema-jtX26ydD.js";
|
|
14
14
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
15
|
-
import { n as parsePushedPolicy } from "./pushed-policy-
|
|
15
|
+
import { n as parsePushedPolicy } from "./pushed-policy-dm_hFstN.js";
|
|
16
16
|
// src/catalog/json-schema-validator.ts
|
|
17
17
|
const ANNOTATIONS = /* @__PURE__ */ new Set([
|
|
18
18
|
"$schema",
|
|
@@ -377,6 +377,13 @@ type Principal = {
|
|
|
377
377
|
* `claimsFirst` source reads the rest.
|
|
378
378
|
*/
|
|
379
379
|
readonly membershipsTruncated?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* The tenants where the user holds a membership and the tenant is suspended
|
|
382
|
+
* (`suspended_in` claim, `permdock_subject()`). A tenant listed here is a
|
|
383
|
+
* suspension, not a missing membership; RLS still denies. The list is cut at
|
|
384
|
+
* 16 ids and says nothing about a tenant it leaves out.
|
|
385
|
+
*/
|
|
386
|
+
readonly suspendedIn?: readonly string[];
|
|
380
387
|
/** The authorization version the token was minted at (`authz_ver`). */
|
|
381
388
|
readonly authzVersion?: number;
|
|
382
389
|
/**
|
|
@@ -1305,6 +1312,12 @@ type Snapshot = Omit<ExpandedSnapshot, "v" | "subject" | "grants" | "assignable"
|
|
|
1305
1312
|
* Absent when every grant is inline.
|
|
1306
1313
|
*/
|
|
1307
1314
|
readonly static?: SnapshotStatic;
|
|
1315
|
+
/**
|
|
1316
|
+
* Grants of custom roles left out of `grants` and listed by name. A reader
|
|
1317
|
+
* merges them from the `CustomRoleRecord` of each tenant; without one the
|
|
1318
|
+
* role grants nothing. Absent when every custom-role grant is inline.
|
|
1319
|
+
*/
|
|
1320
|
+
readonly custom?: SnapshotCustom;
|
|
1308
1321
|
readonly grants: readonly {
|
|
1309
1322
|
readonly permission: string;
|
|
1310
1323
|
/**
|
|
@@ -1351,6 +1364,31 @@ type SnapshotStatic = {
|
|
|
1351
1364
|
*/
|
|
1352
1365
|
readonly shared?: string;
|
|
1353
1366
|
};
|
|
1367
|
+
/**
|
|
1368
|
+
* The custom-role grants a snapshot names instead of carrying. `held` lists one
|
|
1369
|
+
* `[role, membership, digest]` per group: the role's grants with that entry of
|
|
1370
|
+
* `subject.principal.memberships` attached, or none for a global role. `digest`
|
|
1371
|
+
* pins the record entry the role was checked against.
|
|
1372
|
+
*/
|
|
1373
|
+
type SnapshotCustom = {
|
|
1374
|
+
readonly held: readonly (readonly [role: string, membership: number | null, digest: string])[];
|
|
1375
|
+
};
|
|
1376
|
+
/**
|
|
1377
|
+
* The grants of the custom roles one tenant holds, written by
|
|
1378
|
+
* `customRoleRecord` and shared by every member of the tenant. A snapshot names
|
|
1379
|
+
* a role and the record supplies its grants, so the record is cached once per
|
|
1380
|
+
* tenant and version. `tenant` is `null` for the platform's global roles.
|
|
1381
|
+
*/
|
|
1382
|
+
type CustomRoleRecord = {
|
|
1383
|
+
readonly v: 1;
|
|
1384
|
+
readonly tenant: string | null;
|
|
1385
|
+
readonly roles: Readonly<Record<string, {
|
|
1386
|
+
readonly digest: string;
|
|
1387
|
+
readonly grants: readonly (SnapshotWireTerms & {
|
|
1388
|
+
readonly permission: string;
|
|
1389
|
+
})[];
|
|
1390
|
+
}>>;
|
|
1391
|
+
};
|
|
1354
1392
|
/**
|
|
1355
1393
|
* The static grants of declared roles, written once per policy by
|
|
1356
1394
|
* `clientBundle(policy)` and shipped as a cached script instead of in every
|
|
@@ -2904,6 +2942,17 @@ type PolicyIndex = {
|
|
|
2904
2942
|
* leaves it writable.
|
|
2905
2943
|
*/
|
|
2906
2944
|
readonly bundle: WeakMap<object, BundleMemo>;
|
|
2945
|
+
/**
|
|
2946
|
+
* The `customRoleRecord` of each tenant (`null` for the global roles), filled
|
|
2947
|
+
* on first use under the list of custom roles it was built from.
|
|
2948
|
+
*/
|
|
2949
|
+
readonly customRecords: WeakMap<object, Map<string | null, CustomRecordMemo>>;
|
|
2950
|
+
};
|
|
2951
|
+
/** What `customRoleRecord` derives once per list of roles and tenant. */
|
|
2952
|
+
type CustomRecordMemo = {
|
|
2953
|
+
readonly record: CustomRoleRecord;
|
|
2954
|
+
/** The canon of each role's grants, in grant order. */
|
|
2955
|
+
readonly expected: ReadonlyMap<string, readonly string[]>;
|
|
2907
2956
|
};
|
|
2908
2957
|
/** What `clientBundle` derives once per policy. */
|
|
2909
2958
|
type BundleMemo = {
|
|
@@ -2988,4 +3037,4 @@ type SubjectOf<P> = {
|
|
|
2988
3037
|
readonly session?: string;
|
|
2989
3038
|
readonly expiresAt?: number;
|
|
2990
3039
|
};
|
|
2991
|
-
export { JwtClaims as $,
|
|
3040
|
+
export { JwtClaims as $, inherit as $n, LocalRowColumn as $t, PolicyOAuthScope as A, PolicyScopesInput as An, Subject as Ar, parseSupportSession as At, SupportAccessOptions as B, allOf as Bn, OpaqueCondition as Br, DecideCredentialOptions as Bt, GrantValidity as C, DirectoryEvent as Cn, CustomRoleGrant as Cr, WhereCompiler as Ct, Policy as D, WireDecision as Dn, Membership as Dr, SupportSessionPolicy as Dt, ObligationInput as E, SinkEvent as En, JsonWebKeyLike as Er, SupportSessionDecision as Et, RoleBinding as F, Approver as Fn, Condition as Fr, CredentialPermission as Ft, CredentialVerifier as G, Grantee as Gn, SqlFunctionCondition as Gr, parseCredential as Gt, ValidateMode as H, holder as Hn, RelatedHop as Hr, credentialPolicyViolation as Ht, RoleOptions as I, ApproverInput as In, ConditionRef as Ir, CredentialPermissionInput as It, CustomRoleSourceFactory as J, RelationGrantee as Jn, isConditionDate as Jr, ClientBundle as Jt, CustomRoleContext as K, GranteeInput as Kn, hasConditionOp as Kr, InstanceHandle as Kt, RoleScope as L, ManagerApprover as Ln, ConditionValue as Lr, CredentialPolicy as Lt, PolicyScopes as M, ScopeDeclaration as Mn, ActorKind as Mr, Credential as Mt, PolicyVocabulary as N, ScopeNames as Nn, AdapterId as Nr, CredentialDecision as Nt, PolicyAppDataSchemas as O, WireDenial as On, Principal as Or, SupportSessionRequest as Ot, PrincipalOf as P, AnyOfApprover as Pn, MembershipVia as Pr, CredentialKind as Pt, Intent as Q, authenticated as Qn, LocalMembershipRows as Qt, SeparationConflict as R, PermissionApprover as Rn, MemberOfCondition as Rr, CredentialPolicyViolation as Rt, GrantScope as S, DeliveryFailureCause as Sn, CustomRole as Sr, VersionQuery as St, MembershipFixture as T, MembershipEvent as Tn, GnapAccess as Tr, SupportSession as Tt, VocabularyFromInput as U, manager as Un, RestrictedAncestors as Ur, decideCredential as Ut, SupportConsent as V, anyOf as Vn, RelatedCondition as Vr, credentialDelegation as Vt, WireValidity as W, user as Wn, SqlFunctionArg as Wr, isFeedId as Wt, DecisionSink as X, anyone as Xn, isSqlFunctionField as Xr, ExpandedSnapshot as Xt, DecisionProvider as Y, actor as Yn, isConditionRef as Yr, CustomRoleRecord as Yt, EntitlementSource as Z, assurance as Zn, LocalCustomRoleTable as Zt, Grant as _, AutomationEvent as _n, TraceSkipReason as _r, TokenSigner as _t, ApprovalMode as a, SnapshotCustom as an, Denial as ar, RelationChain as at, GrantMeta as b, DeliveryChannel as bn, AuthorizationDetail as br, VerifiedToken as bt, ApprovalStage as c, SnapshotGrantTerms as cn, DeniedDecision as cr, RelationSource as ct, BreakGlassRequirements as d, SnapshotScope as dn, LimitDetail as dr, SourceCall as dt, LocalRowValue as en, plan as er, LimitConsumeInput as et, BreakGlassSpec as f, SnapshotStatic as fn, MatchedGrant as fr, SourceContext as ft, DelegationTarget as g, AuthEvent as gn, TraceSkip as gr, TokenFailureCause as gt, DelegationInput as h, AccessEvent as hn, Trace as hr, TenantSettings as ht, ApprovalFallback as i, SnapshotAssignable as in, Decision as ir, MembershipSource as it, PolicyOptions as j, Scope as jn, VerifiedClaims as jr, ApiKeyPrincipal as jt, PolicyDelegation as k, WireDelegation as kn, SharedCustomRole as kr, decideSupportSession as kt, AssuranceRequirement as l, SnapshotListRef as ln, ExplainedDecision as lr, SettingsSource as lt, ClosureGrantFn as m, SnapshotWireAssignable as mn, Quota as mr, SubjectResolver as mt, ApprovalCombine as n, LocalSnapshotRows as nn, AppObligation as nr, LimitStore as nt, ApprovalOption as o, SnapshotGrant as on, DenialDetails as or, RelationGroup as ot, ClosureContext as p, SnapshotTenants as pn, Obligation as pr, SourceMemo as pt, CustomRoleSource as q, InheritGrantee as qn, isCondition as qr, Instant as qt, ApprovalEscalation as r, Snapshot as rn, ApprovalRequiredDecision as rr, MemberEntry as rt, ApprovalRequirement as s, SnapshotGrantRef as sn, DenialReason as sr, RelationHolder as st, ActivationOption as t, LocalSnapshotManifest as tn, relation as tr, LimitRemaining as tt, BreakGlassOptions as u, SnapshotNotEntitled as un, GrantedDecision as ur, SnapshotSource as ut, GrantCondition as v, CredentialEvent as vn, Actor as vr, TokenVerifier as vt, HostedGrantRef as w, EmailCategory as wn, Delegation as wr, DecideSupportSessionOptions as wt, GrantOptions as x, DeliveryEvent as xn, Binding as xr, VersionContext as xt, GrantLimit as y, DecisionEvent as yn, Assurance as yr, VerificationFailure as yt, SubjectOf as z, UserApprover as zn, MemberOfParent as zr, CredentialRequest as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-
|
|
1
|
+
import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-BnBZvh7N.js";
|
|
2
|
+
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-UKUgQCEX.js";
|
|
3
3
|
/**
|
|
4
4
|
* What a supabase-js `rpc` call resolves to: `data` or an `error` with a
|
|
5
5
|
* message.
|
|
@@ -55,6 +55,13 @@ type PostgrestSourcesOptions = {
|
|
|
55
55
|
* `custom_roles_version_for`.
|
|
56
56
|
*/
|
|
57
57
|
readonly rolesVersionFn?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The function that returns both versions as `{ authz, custom_roles }`. A
|
|
60
|
+
* request that needs both in one tick calls it once instead of the two single
|
|
61
|
+
* functions; a missing function is remembered and the single ones answer.
|
|
62
|
+
* Default `authz_versions_for`; `false` never calls it.
|
|
63
|
+
*/
|
|
64
|
+
readonly versionsFn?: string | false;
|
|
58
65
|
/**
|
|
59
66
|
* The policy whose declared roles tell custom roles apart. With it,
|
|
60
67
|
* `customRoles` reads nothing while every role the subject holds is declared,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-DstT40VS.js";
|
|
3
|
-
import { t as getPermDock } from "./permdock-
|
|
4
|
-
import {
|
|
3
|
+
import { t as getPermDock } from "./permdock-JM9TKevZ.js";
|
|
4
|
+
import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-BXDohWNO.js";
|
|
5
5
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
7
7
|
import { i as fileDrift } from "./output-files-8lfALMSU.js";
|
|
8
8
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
9
9
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
11
|
-
import { t as canFixture } from "./verify-
|
|
12
|
-
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-
|
|
13
|
-
import { a as quoteIdent, s as quoteQualified } from "./quote-
|
|
11
|
+
import { t as canFixture } from "./verify-ZojGAC3f.js";
|
|
12
|
+
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-BRMnQ9Rl.js";
|
|
13
|
+
import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
14
14
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
|
|
15
15
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
16
16
|
import { d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
17
|
-
import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-
|
|
18
|
-
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-
|
|
17
|
+
import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
|
|
18
|
+
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
19
19
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
20
20
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
21
|
-
import { t as ownershipRules } from "./ownership-
|
|
22
|
-
import { a as tableFor } from "./compile-
|
|
23
|
-
import { i as tableNames, r as tableNameOf } from "./tables-
|
|
24
|
-
import { l as policyLevels } from "./policy-
|
|
21
|
+
import { t as ownershipRules } from "./ownership-DvmaGcup.js";
|
|
22
|
+
import { a as tableFor } from "./compile-nR1gQhXo.js";
|
|
23
|
+
import { i as tableNames, r as tableNameOf } from "./tables-Bxmf2beb.js";
|
|
24
|
+
import { l as policyLevels } from "./policy-CZBJDcTx.js";
|
|
25
25
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
26
26
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
27
27
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
28
28
|
import { o as parseSqlLenient } from "./ast-Dnm2TOHN.js";
|
|
29
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
29
|
+
import { n as resolveSchemas } from "./supabase-schemas-_ubYYw9i.js";
|
|
30
30
|
import { existsSync, readFileSync } from "node:fs";
|
|
31
31
|
import { join, resolve } from "node:path";
|
|
32
32
|
// src/cli/powersync/claims.ts
|
|
@@ -24,7 +24,7 @@ const verify = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
25
25
|
const fixtures = given(flags.fixtures);
|
|
26
26
|
const from = given(flags.policy);
|
|
27
|
-
const { runPowerSync } = await import("./powersync-
|
|
27
|
+
const { runPowerSync } = await import("./powersync-Dbpn-n0o.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-
|
|
1
|
+
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-CTKfjnPT.js";
|
package/dist/prisma/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-BnBZvh7N.js";
|
|
2
2
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-C9F1sU1d.js";
|
|
3
|
-
import { p as WhereResult } from "../permdock-
|
|
3
|
+
import { p as WhereResult } from "../permdock-V86uejcm.js";
|
|
4
4
|
import { r as RelationsMapping } from "../graph-sql-Ds3nbevr.js";
|
|
5
5
|
/**
|
|
6
6
|
* A model's non-nullable scalar fields and its scalar list fields, by Prisma
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-DiXulRVj.js";
|
|
2
2
|
import { a as gateView, c as protectedView, d as slotContent, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle, u as scopedTenant } from "./views-Dpr1uB16.js";
|
|
3
|
-
import { n as storeOf } from "./store-options-
|
|
3
|
+
import { n as storeOf } from "./store-options-DgOuhUSn.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, r as PermDockSnapshotPromiseContext } from "./live-options-CIUmc-YQ.js";
|
|
5
5
|
import { Suspense, use, useEffect, useLayoutEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-BnBZvh7N.js";
|
|
2
2
|
import { r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
4
|
-
import { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
5
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "./permdock-V86uejcm.js";
|
|
4
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-FT1oVN_o.js";
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-Bq7Qc9QM.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
|
|
7
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-Dl2jRkyq.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
/**
|
|
10
10
|
* The instance with every check. It loads the evaluator on first use and
|
|
@@ -1,12 +1,72 @@
|
|
|
1
1
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { a as delegatedScopeMap } from "./permdock-
|
|
3
|
+
import { a as delegatedScopeMap } from "./permdock-JM9TKevZ.js";
|
|
4
4
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
5
|
-
import { n as parseSupabaseManifest, t as hasTokenHook } from "./manifest-
|
|
5
|
+
import { n as parseSupabaseManifest, t as hasTokenHook } from "./manifest-CIWOmdlP.js";
|
|
6
6
|
import { y as parseAnswer } from "./permission-registry-DstT40VS.js";
|
|
7
7
|
import { o as holder, r as approverLeaves } from "./approvers-BkY_ZfWl.js";
|
|
8
8
|
import { n as asApprover } from "./approval-normalize-C6je8vWN.js";
|
|
9
9
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
10
|
+
// src/better-supabase/provider-tables.ts
|
|
11
|
+
/** Actions the generated RLS compiles to a select policy. */
|
|
12
|
+
const SELECT_ACTIONS = /* @__PURE__ */ new Set([
|
|
13
|
+
"read",
|
|
14
|
+
"list",
|
|
15
|
+
"get"
|
|
16
|
+
]);
|
|
17
|
+
/**
|
|
18
|
+
* better-supabase's `tables`: for each resource the manifest maps to a table,
|
|
19
|
+
* the permission keys its select policy checks and whether every holder of them
|
|
20
|
+
* in a tenant reads the same rows. A table is `tenant` only when each of those
|
|
21
|
+
* keys is held at the tenant scope alone, carries no row condition and has at
|
|
22
|
+
* least one grant; a table whose rows pass through a restriction, a field mask
|
|
23
|
+
* or a parent table is `row`, and so is one with no select permission.
|
|
24
|
+
*
|
|
25
|
+
* A manifest with `rls.tableReads` answers from it instead, keyed by the
|
|
26
|
+
* qualified table: those entries come from the parsed select policies, which
|
|
27
|
+
* also covers hand-written ones.
|
|
28
|
+
*
|
|
29
|
+
* With `widened`, a `row` table that has `tenantFor` is listed as `tenant`
|
|
30
|
+
* under those keys: only for an app whose `shareKey` answers `null` for a
|
|
31
|
+
* caller who holds none of them (`widenedKeys` and `authorizationHooks({
|
|
32
|
+
* widened })`).
|
|
33
|
+
*
|
|
34
|
+
* Doctor BS428 reads the generated select policies and refuses an entry they
|
|
35
|
+
* contradict.
|
|
36
|
+
*/
|
|
37
|
+
function tablesOf(manifest, catalog, tenantScope, widened = false) {
|
|
38
|
+
const reads = manifest.rls.tableReads;
|
|
39
|
+
if (reads !== void 0) return Object.fromEntries(reads.map((read) => [read.table, widened && read.share === "row" && read.tenantFor !== void 0 ? {
|
|
40
|
+
share: "tenant",
|
|
41
|
+
permissions: read.tenantFor
|
|
42
|
+
} : {
|
|
43
|
+
share: read.share,
|
|
44
|
+
permissions: read.permissions ?? []
|
|
45
|
+
}]));
|
|
46
|
+
const resources = manifest.names?.resources ?? {};
|
|
47
|
+
const tables = {};
|
|
48
|
+
for (const [resource, names] of Object.entries(resources)) {
|
|
49
|
+
const { table } = names;
|
|
50
|
+
if (table === void 0) continue;
|
|
51
|
+
const selects = catalog.permissions.filter((permission) => permission.resource === resource && SELECT_ACTIONS.has(permission.action));
|
|
52
|
+
const keys = selects.map((permission) => permission.key).toSorted();
|
|
53
|
+
tables[table] = {
|
|
54
|
+
share: selects.length > 0 && names.permittedIds === void 0 && names.visible === void 0 && selects.every((permission) => {
|
|
55
|
+
const grants = (catalog.grants ?? []).filter((grant) => grant.permission === permission.key);
|
|
56
|
+
return permission.rowConditions === false && grants.length > 0 && grants.every((grant) => grant.scope === tenantScope);
|
|
57
|
+
}) ? "tenant" : "row",
|
|
58
|
+
permissions: keys
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
return tables;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The keys under which some `row` table of the manifest reads as `tenant`
|
|
65
|
+
* (`tableReads[].tenantFor`). Pass them to `authorizationHooks({ widened })`.
|
|
66
|
+
*/
|
|
67
|
+
function widenedKeys(manifest) {
|
|
68
|
+
return [...new Set((manifest.rls.tableReads ?? []).flatMap((read) => read.share === "row" ? read.tenantFor ?? [] : []))].toSorted();
|
|
69
|
+
}
|
|
10
70
|
// src/better-supabase/active-tenant.ts
|
|
11
71
|
const REQUEST = ", or set supabase.hook.activeTenant: \"request\" when the request resolves the tenant.";
|
|
12
72
|
function describe(from) {
|
|
@@ -484,7 +544,13 @@ function providerFunctions(input) {
|
|
|
484
544
|
const helper = helpers.get(name);
|
|
485
545
|
return helper === void 0 ? void 0 : call(name, sql, "authenticated", argTypes(helper.args));
|
|
486
546
|
};
|
|
487
|
-
const
|
|
547
|
+
const requestArgs = helpers.get(REQUEST_APPROVERS)?.args ?? "";
|
|
548
|
+
const approverFor = setTemplate(REQUEST_APPROVERS, `${/\bp_tenant\b/u.test(requestArgs) ? "{requester}, {tenant}" : "{requester}"}${/\bp_resource\b/u.test(requestArgs) ? ", pg_catalog.split_part({kind}, '.', 1)" : ""}`);
|
|
549
|
+
if (approverFor?.includes("pg_catalog.split_part") === true) requires.push({
|
|
550
|
+
function: "pg_catalog.split_part",
|
|
551
|
+
args: "text, text, integer",
|
|
552
|
+
role: "authenticated"
|
|
553
|
+
});
|
|
488
554
|
const managedUsers = /\bp_tenant\b/u.test(helpers.get(MANAGED_USERS)?.args ?? "") ? setTemplate(MANAGED_USERS, "{tenant}") : void 0;
|
|
489
555
|
const roleInHelper = options.roleIn === true && rootTenant ? helpers.get(ROLE_IN) : void 0;
|
|
490
556
|
if (options.roleIn === true && roleInHelper === void 0) problems.push(`roleIn: the manifest's rls.helpers has no ${rls.schema}.${ROLE_IN} at the root tenant scope. Set rls.customRoles in database mode, run \`permdock rls generate\`, then \`permdock supabase inspect --out\`.`);
|
|
@@ -949,51 +1015,6 @@ function platformRolesOf(manifest, schema, assignAny) {
|
|
|
949
1015
|
} : {}
|
|
950
1016
|
};
|
|
951
1017
|
}
|
|
952
|
-
// src/better-supabase/provider-tables.ts
|
|
953
|
-
/** Actions the generated RLS compiles to a select policy. */
|
|
954
|
-
const SELECT_ACTIONS = /* @__PURE__ */ new Set([
|
|
955
|
-
"read",
|
|
956
|
-
"list",
|
|
957
|
-
"get"
|
|
958
|
-
]);
|
|
959
|
-
/**
|
|
960
|
-
* better-supabase's `tables`: for each resource the manifest maps to a table,
|
|
961
|
-
* the permission keys its select policy checks and whether every holder of them
|
|
962
|
-
* in a tenant reads the same rows. A table is `tenant` only when each of those
|
|
963
|
-
* keys is held at the tenant scope alone, carries no row condition and has at
|
|
964
|
-
* least one grant; a table whose rows pass through a restriction, a field mask
|
|
965
|
-
* or a parent table is `row`, and so is one with no select permission.
|
|
966
|
-
*
|
|
967
|
-
* A manifest with `rls.tableReads` answers from it instead, keyed by the
|
|
968
|
-
* qualified table: those entries come from the parsed select policies, which
|
|
969
|
-
* also covers hand-written ones.
|
|
970
|
-
*
|
|
971
|
-
* Doctor BS428 reads the generated select policies and refuses an entry they
|
|
972
|
-
* contradict.
|
|
973
|
-
*/
|
|
974
|
-
function tablesOf(manifest, catalog, tenantScope) {
|
|
975
|
-
const reads = manifest.rls.tableReads;
|
|
976
|
-
if (reads !== void 0) return Object.fromEntries(reads.map((read) => [read.table, {
|
|
977
|
-
share: read.share,
|
|
978
|
-
permissions: read.permissions ?? []
|
|
979
|
-
}]));
|
|
980
|
-
const resources = manifest.names?.resources ?? {};
|
|
981
|
-
const tables = {};
|
|
982
|
-
for (const [resource, names] of Object.entries(resources)) {
|
|
983
|
-
const { table } = names;
|
|
984
|
-
if (table === void 0) continue;
|
|
985
|
-
const selects = catalog.permissions.filter((permission) => permission.resource === resource && SELECT_ACTIONS.has(permission.action));
|
|
986
|
-
const keys = selects.map((permission) => permission.key).toSorted();
|
|
987
|
-
tables[table] = {
|
|
988
|
-
share: selects.length > 0 && names.permittedIds === void 0 && names.visible === void 0 && selects.every((permission) => {
|
|
989
|
-
const grants = (catalog.grants ?? []).filter((grant) => grant.permission === permission.key);
|
|
990
|
-
return permission.rowConditions === false && grants.length > 0 && grants.every((grant) => grant.scope === tenantScope);
|
|
991
|
-
}) ? "tenant" : "row",
|
|
992
|
-
permissions: keys
|
|
993
|
-
};
|
|
994
|
-
}
|
|
995
|
-
return tables;
|
|
996
|
-
}
|
|
997
1018
|
// src/better-supabase/provider-versions.ts
|
|
998
1019
|
/**
|
|
999
1020
|
* better-supabase's `versions` from the hook's `authz_version_for(p_user
|
|
@@ -1122,6 +1143,16 @@ function permissionsOf(catalog, scopes) {
|
|
|
1122
1143
|
});
|
|
1123
1144
|
}
|
|
1124
1145
|
/**
|
|
1146
|
+
* better-supabase's `permissionFilters`: the one-argument helpers in
|
|
1147
|
+
* `rls.permissionFilters`, by `schema.name`. The two-argument helpers are never
|
|
1148
|
+
* listed: 0.87 checks the key argument only, so a caller could pass another
|
|
1149
|
+
* tenant and share the result.
|
|
1150
|
+
*/
|
|
1151
|
+
function permissionFiltersOf(filters) {
|
|
1152
|
+
const entries = filters ?? [];
|
|
1153
|
+
return entries.length === 0 ? void 0 : Object.fromEntries(entries.map((filter) => [filter.name, { keyArgument: filter.keyPosition }]));
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1125
1156
|
* better-supabase's `delegation.scopes`, the same map `rls.tokenScopes`
|
|
1126
1157
|
* compiles.
|
|
1127
1158
|
*/
|
|
@@ -1153,9 +1184,10 @@ function authorizationProvider(options) {
|
|
|
1153
1184
|
}
|
|
1154
1185
|
if (options.tables === true && catalog === void 0) problems.push("tables: true needs a catalog to tell which permissions a table's select policy checks. Pass `catalog`.");
|
|
1155
1186
|
const tenantScope = tenantScopeOf(manifest, options.scope);
|
|
1156
|
-
const tables = options.tables === true && catalog !== void 0 ? tablesOf(manifest, catalog, tenantScope) : void 0;
|
|
1187
|
+
const tables = options.tables === true && catalog !== void 0 ? tablesOf(manifest, catalog, tenantScope, options.widened === true) : void 0;
|
|
1157
1188
|
if (options.sharedFunctions === true && options.tables !== true) problems.push("sharedFunctions: true needs tables: true, because each listed table must be a `tenant` entry of `tables`.");
|
|
1158
1189
|
if (options.sharedFunctions === true && rls.sharedFunctions === void 0) problems.push("sharedFunctions: true needs `rls.sharedFunctions` in the manifest. Run `permdock supabase inspect --out`.");
|
|
1190
|
+
const permissionFilters = permissionFiltersOf(rls.permissionFilters);
|
|
1159
1191
|
const sharedFunctions = options.sharedFunctions === true && options.tables === true && rls.sharedFunctions !== void 0 && rls.sharedFunctions.length > 0 ? Object.fromEntries(rls.sharedFunctions.map((entry) => [entry.function, {
|
|
1160
1192
|
tables: entry.tables,
|
|
1161
1193
|
permissions: entry.permissions
|
|
@@ -1231,6 +1263,7 @@ function authorizationProvider(options) {
|
|
|
1231
1263
|
...wildcards === void 0 ? {} : { wildcards },
|
|
1232
1264
|
...tables === void 0 ? {} : { tables },
|
|
1233
1265
|
...sharedFunctions === void 0 ? {} : { sharedFunctions },
|
|
1266
|
+
...permissionFilters === void 0 ? {} : { permissionFilters },
|
|
1234
1267
|
...Object.keys(delegated).length > 0 || interactiveOnly.length > 0 ? { delegation: {
|
|
1235
1268
|
...Object.keys(delegated).length > 0 ? { scopes: delegated } : {},
|
|
1236
1269
|
...interactiveOnly.length > 0 ? { interactiveOnly } : {}
|
|
@@ -1241,4 +1274,4 @@ function authorizationProvider(options) {
|
|
|
1241
1274
|
...problems.length > 0 ? { problems } : {}
|
|
1242
1275
|
});
|
|
1243
1276
|
}
|
|
1244
|
-
export { activeTenantMismatch as n, authorizationProvider as t };
|
|
1277
|
+
export { activeTenantMismatch as n, widenedKeys as r, authorizationProvider as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as eagerEvaluator } from "./evaluator-eager-
|
|
2
|
-
import { t as ProviderWith } from "./provider-with-
|
|
1
|
+
import { t as eagerEvaluator } from "./evaluator-eager-BLNVbEAC.js";
|
|
2
|
+
import { t as ProviderWith } from "./provider-with-DtBgCCV_.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/react/provider.tsx
|
|
5
5
|
function PermDockProvider(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-Dl2jRkyq.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
4
4
|
export { PermDockProvider as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { t as emptySnapshot } from "./snapshot-empty-pKgPDcLd.js";
|
|
3
|
-
import { t as eagerEvaluator } from "./evaluator-eager-
|
|
4
|
-
import { l as isPromiseLike, t as adapterStore } from "./store-options-
|
|
3
|
+
import { t as eagerEvaluator } from "./evaluator-eager-BLNVbEAC.js";
|
|
4
|
+
import { l as isPromiseLike, t as adapterStore } from "./store-options-DgOuhUSn.js";
|
|
5
5
|
// src/client/provider-store.ts
|
|
6
6
|
/**
|
|
7
7
|
* Store options that read `read()` on every request, so a rotated token, a new
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as adapterStore } from "./store-options-
|
|
1
|
+
import { t as adapterStore } from "./store-options-DgOuhUSn.js";
|
|
2
2
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as emptySnapshot } from "./snapshot-empty-pKgPDcLd.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-CIUmc-YQ.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
2
2
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
4
|
-
import { t as genFiles } from "./gen-
|
|
5
|
-
import { t as projectContext } from "./context-
|
|
6
|
-
import { t as emitPluginFiles } from "./pipeline-
|
|
4
|
+
import { t as genFiles } from "./gen-Fi4GcvIY.js";
|
|
5
|
+
import { t as projectContext } from "./context-D8tN3SZm.js";
|
|
6
|
+
import { t as emitPluginFiles } from "./pipeline-DCERGTTY.js";
|
|
7
7
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-7QvEq57a.js";
|
|
9
9
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
10
|
-
import { n as restatedDefaults, r as withoutPath } from "./resolve-config-
|
|
10
|
+
import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
|
|
11
11
|
import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
|
|
12
12
|
import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
|
|
13
|
-
import { n as commandFor } from "./compile-
|
|
13
|
+
import { n as commandFor } from "./compile-nR1gQhXo.js";
|
|
14
14
|
import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
|
|
15
15
|
import { readFileSync } from "node:fs";
|
|
16
16
|
// src/cli/codemod/prune-config.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
2
2
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
3
|
-
import { n as parseSupabaseManifest } from "./manifest-
|
|
3
|
+
import { n as parseSupabaseManifest } from "./manifest-CIWOmdlP.js";
|
|
4
4
|
import { o as formatCatalogJson } from "./catalog-doc-D4g3nyFB.js";
|
|
5
5
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
6
6
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { o as nonEmptyOr } from "./output-
|
|
7
|
+
import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
|
|
8
8
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
10
10
|
import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-BQELP7aV.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
2
|
-
import { r as pushedPolicy } from "./pushed-policy-
|
|
2
|
+
import { r as pushedPolicy } from "./pushed-policy-dm_hFstN.js";
|
|
3
3
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
4
4
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
5
5
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
6
|
-
import { n as parseSupabaseManifest } from "./manifest-
|
|
6
|
+
import { n as parseSupabaseManifest } from "./manifest-CIWOmdlP.js";
|
|
7
7
|
import { n as runCatalog } from "./catalog-BExjL94D.js";
|
|
8
8
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
9
9
|
import { n as httpRequest, t as authFailure } from "./http-BbX_Ou3_.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy,
|
|
1
|
+
import { D as Policy, Fr as Condition, Gn as Grantee, W as WireValidity, b as GrantMeta, dn as SnapshotScope, f as BreakGlassSpec, nr as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-BnBZvh7N.js";
|
|
2
2
|
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
3
3
|
/**
|
|
4
4
|
* One code grant as `permdock cloud push` sends it. `portable: false` marks a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { n as snapshotScopes } from "./instance-snapshot-
|
|
3
|
+
import { n as snapshotScopes } from "./instance-snapshot-D03srwnf.js";
|
|
4
4
|
import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-jtX26ydD.js";
|
|
5
5
|
import { n as RFC3339_PATTERN } from "./time-r0CKBm57.js";
|
|
6
6
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as quoteQualifiedTable, c as quoteSqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
2
|
-
import "./sources-
|
|
2
|
+
import "./sources-C6Id63F8.js";
|
|
3
3
|
// src/cli/sql/quote.ts
|
|
4
4
|
function quoteIdent(name) {
|
|
5
5
|
return quoteSqlIdent(name, CLI);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as authorizeSql } from "./supabase-
|
|
1
|
+
import { n as authorizeSql } from "./supabase-DrazwRER.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dob6QQAc.js";
|
|
4
4
|
import { c as rootScope, d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
@@ -10,9 +10,10 @@ import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
|
|
|
10
10
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { u as isoAt } from "./time-r0CKBm57.js";
|
|
12
12
|
import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
|
|
13
|
-
import {
|
|
14
|
-
import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-
|
|
15
|
-
import { a as
|
|
13
|
+
import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-Bbq9e61G.js";
|
|
14
|
+
import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
|
|
15
|
+
import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-DBxKx2bz.js";
|
|
16
|
+
import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
16
17
|
// src/cli/sql/conditions.ts
|
|
17
18
|
const MAX_CLAIM_DEPTH = 8;
|
|
18
19
|
/**
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as describe } from "../describe-
|
|
2
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as describe } from "../describe-FT1oVN_o.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-BGosrHl8.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-
|
|
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-aGL_gT4j.js";
|
|
6
6
|
import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
|
|
7
|
-
import { t as PermDockProvider } from "../provider-
|
|
8
|
-
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
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-
|
|
7
|
+
import { t as PermDockProvider } from "../provider-W8KwlWJU.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-Dl2jRkyq.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-Bq7Qc9QM.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 };
|