permdock 0.32.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-BJMEEu7V.js → adoption-scan-oaPsvHSN.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-BKxaKtby.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-BAgh0PT6.js → arazzo-1oDMApA_.js} +2 -2
- package/dist/{arazzo-C_xK2Kaa.js → arazzo-B2PszcDL.js} +1 -1
- 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-C7WH5XcZ.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-BnrOLyJq.d.ts} +7 -7
- package/dist/{bind-BYeoLJgN.js → bind-DPptdk31.js} +2 -2
- package/dist/{bsb-access-tags-CjeR7v7-.js → bsb-access-tags-uDuwPUbT.js} +12 -3
- package/dist/{bsb-action-keys-CYEREFMg.js → bsb-action-keys-BfZAwg-9.js} +1 -1
- 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-BW-vAxJi.d.ts} +1 -1
- package/dist/{casbin-BErdqy1J.js → casbin-DrdS0vLy.js} +1 -1
- package/dist/{casbin-EwdKipQs.js → casbin-vtIUd-6L.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 +2 -2
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +3 -3
- 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-YAGMzRa-.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-BQnIR-SS.js} +2 -2
- package/dist/{codemod-DVDMFsTX.js → codemod-C0OHCnaj.js} +6 -6
- package/dist/{codemod-CF7NNDzA.js → codemod-rv5XSBNw.js} +1 -1
- package/dist/{collect-CE5wK0AX.js → collect-Ba7ccZ23.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-BXKYYmT1.js → compile-BRDpja_Y.js} +10 -9
- package/dist/{compile-tG1zkSgX.d.ts → compile-CoUadQXF.d.ts} +2 -2
- package/dist/{completion-B59uPAnZ.js → completion-Dgjdte2-.js} +1 -1
- package/dist/{config-7QvEq57a.js → config-Dan6vcvj.js} +2 -2
- package/dist/{config-VCa1RLUe.js → config-anQ9E37F.js} +1 -1
- package/dist/{config-report-CjvA6lGI.js → config-report-C43BSFHY.js} +3 -3
- package/dist/{config-shape-BTojaD-H.js → config-shape-BODqM-rG.js} +1 -1
- package/dist/{context-BQHKgT1m.js → context-Nr3nknZX.js} +2 -2
- package/dist/{context-CAFddgb9.js → context-rioF4fQl.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-bf8qgaZf.d.ts → core-DCMIztx1.d.ts} +2 -2
- package/dist/{core-C5yCD-Ls.js → core-DIUrkFNL.js} +5 -5
- package/dist/{create-COQVXK6C.js → create-BMRnaZel.js} +3 -3
- package/dist/{create-nOWD3Joc.js → create-BRY0OtFV.js} +3 -3
- package/dist/{create-Cn5EpEez.d.ts → create-BYL8xCJB.d.ts} +4 -4
- package/dist/{create-B7Xa4jSQ.d.ts → create-T_NqxU31.d.ts} +7 -7
- package/dist/{create-DHA0fhmi.d.ts → create-iCwrnaFE.d.ts} +6 -6
- package/dist/{credentials-COT-cjnP.d.ts → credentials-DzNrCNZY.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-Bhye7WSY.d.ts} +6 -6
- package/dist/{define-permdock-D7aKxIax.js → define-permdock-CO7YNrOF.js} +2 -2
- package/dist/{definition-options-9o8Hdww3.js → definition-options-DLBlRrPO.js} +8 -9
- 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-DgNqDAPH.d.ts} +1 -1
- package/dist/{describe-AdETpWsn.d.ts → describe-DEoWvk00.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-GnMgqGO8.js} +102 -42
- package/dist/{doctor-ELj5hrVv.js → doctor-sAqU02Fx.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-BliKrfmP.d.ts} +1 -1
- package/dist/{evaluate-Dmd0bShm.js → evaluate-DNz6wMYv.js} +1 -1
- package/dist/{evaluations-GW9j_ARq.d.ts → evaluations-CUkSKioS.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-xF5fwAel.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-Ds2-fUUi.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-BPYFr_tZ.js +1 -0
- package/dist/{gen-8rW_AUG5.js → gen-djPw1RS-.js} +3 -3
- package/dist/{gen-kind-C9ikF8nb.js → gen-kind-Vhq_ZIZm.js} +1 -1
- package/dist/{generate-CW7gNfLr.js → generate-BcH-uL0z.js} +18 -17
- package/dist/{generate-BmpCt5oi.js → generate-CYHeuPq8.js} +3 -3
- package/dist/{generate-options-DiR4r_sk.js → generate-options-DDSeUTFU.js} +15 -14
- 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-EksAnz-T.js} +269 -225
- package/dist/{hosted-DZwCFrcy.js → hosted-D3USbpS6.js} +1 -1
- package/dist/{hosted-Bkw3Oyh-.d.ts → hosted-DZgmEG4b.d.ts} +1 -1
- package/dist/identity-scopes-CRVAV0HU.js +11 -0
- package/dist/{import-D_8tLF9g.js → import-Bz6IKoMM.js} +3 -3
- package/dist/{import-BAhoTYTk.js → import-C45gc74U.js} +1 -1
- package/dist/{index-DPVeDtAO.d.ts → index-BOJPdIBk.d.ts} +4 -4
- package/dist/{index-xShPsK8G.d.ts → index-CAE_Z53Y.d.ts} +1 -1
- package/dist/{index-Kj5S3IWE.d.ts → index-CWBCzwOp.d.ts} +4 -4
- package/dist/{index-DT3hOxA7.d.ts → index-Cjr8Q-uq.d.ts} +34 -11
- package/dist/{index-WOx7TBbj.d.ts → index-DBBRSw6r.d.ts} +2 -2
- package/dist/{index-DWmIuQLz.d.ts → index-ktQ7E4qB.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +13 -13
- package/dist/{init-zxb0BVDJ.js → init-B6aZxzd7.js} +1 -1
- package/dist/{init-DkRHIe8-.js → init-CCBVeyW8.js} +3 -3
- package/dist/inspect-functions-BUACOlgS.js +34 -0
- package/dist/{instance-options-DQCiBBuz.d.ts → instance-options-DDERlopm.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-BWhAnANj.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-CMgFAGf8.d.ts → lazy-provider-Clt2095H.d.ts} +1 -1
- package/dist/{lazy-provider-DNVjY4n3.js → lazy-provider-b8UHGi8P.js} +2 -2
- package/dist/{login-C1p3gmj8.js → login-BnE2iUUA.js} +1 -1
- package/dist/{login-DOEZveP6.js → login-d631Tpa9.js} +3 -3
- package/dist/{manager-chain-DdkiCw5q.js → manager-chain-CFkceFls.js} +2 -2
- package/dist/{manifest-31igzVGQ.js → manifest-1w67doim.js} +45 -38
- 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-BKsYdwKd.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-BYCtXS_g.js} +3 -3
- package/dist/{module-values-B09BBJIj.js → module-values-D-AiNhBp.js} +1 -1
- 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/next/plugin.js +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-BeMVHVY4.js → openapi-BnKSxOrh.js} +2 -2
- package/dist/{openapi-DEGesHWH.js → openapi-CN2Oq9zN.js} +1 -1
- package/dist/{openapi-document-CEQ6jqqR.js → openapi-document-XnGRbWBb.js} +1 -1
- 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-dO4bArCS.js} +1 -1
- package/dist/{ownership-Csk9C3Js.js → ownership-CSdLGGfW.js} +7 -6
- package/dist/{parse-local-manifest-B92rFWnk.d.ts → parse-local-manifest-DoLQFkRb.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-BShHM8OJ.d.ts → permdock-DkvkGVF0.d.ts} +2 -2
- package/dist/{permdock-CJPIwU1T.js → permdock-JM9TKevZ.js} +14 -14
- package/dist/{permissions-wEkTVr_I.js → permissions-xPyAmuXi.js} +1 -1
- package/dist/{pipeline-Bbu7uw28.js → pipeline-BAGSNnct.js} +2 -2
- package/dist/{plugin-L3G7jPGE.d.ts → plugin-DDPXES4k.d.ts} +2 -2
- package/dist/{policy-BUtwixSN.d.ts → policy-BoUbJ2c0.d.ts} +1 -1
- package/dist/{policy-CSOOQ3rR.js → policy-CTn-9VQm.js} +1 -1
- package/dist/{policy-BBvhhH9X.js → policy-CZBJDcTx.js} +2 -1
- package/dist/{policy-bundle-KYI0EnrM.js → policy-bundle-BHd1dqU9.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-DuM3k5Ao.d.ts} +51 -2
- package/dist/{postgrest-PQ3zAOD2.d.ts → postgrest-B1bTbVE4.d.ts} +9 -2
- package/dist/{powersync-C1ix7CEY.js → powersync-CZkZgVyi.js} +1 -1
- package/dist/{powersync-CM6Vg4RH.js → powersync-DJ7dY-Vf.js} +12 -12
- package/dist/{powersync-CGvu6j5U.js → powersync-Jj57J-X8.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-gBxeetqY.d.ts} +5 -5
- package/dist/{provider-BV_v0JAY.js → provider-BwqzED5h.js} +83 -50
- package/dist/{provider-CMgFAGf8.d.ts → provider-Clt2095H.d.ts} +1 -1
- package/dist/{provider-1xqxLVEz.js → provider-NQwLSlgb.js} +2 -2
- 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-Bwz4wNQA.js} +6 -6
- package/dist/pull-BOC-0kJV.js +1 -0
- package/dist/{pull-BaB401Bk.js → pull-Cj_ngsuu.js} +2 -2
- package/dist/{push-DcjvEj0m.js → push-D5so0ptb.js} +2 -2
- package/dist/{pushed-policy-DcvO8NXy.d.ts → pushed-policy-C65TbLtU.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-DbyaaNLa.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 +15 -15
- package/dist/react-native/index.js +6 -6
- package/dist/read-memberships-DVBitJZG.js +164 -0
- package/dist/{rename-BZNOV8H9.js → rename-CI6NIF9t.js} +5 -5
- package/dist/replay-B__gzUx3.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-CuEhEQyB.js} +7 -6
- package/dist/{resolver-CuIY8aFD.js → resolver-D2c1CcoZ.js} +99 -15
- package/dist/{rls-DUYok5e9.js → rls-BDtyip5c.js} +13 -13
- package/dist/{rls-BtkZgaZp.js → rls-DcqSn7b2.js} +51 -4
- package/dist/{rls-files-ucAI0J5j.js → rls-files-CRRtjXxG.js} +1 -1
- package/dist/{rls-options-BFGRmdcH.d.ts → rls-options-DCLdZaTZ.d.ts} +1 -1
- package/dist/{rpc-D7G7IJDa.js → rpc-BQPa7tLP.js} +1 -1
- package/dist/{rpc-COnquydd.d.ts → rpc-BYFB37KV.d.ts} +1 -1
- package/dist/run-DOP1UKWw.js +1 -0
- package/dist/{run-WIqPbnjD.js → run-DvbrPkgt.js} +3 -3
- package/dist/{run-ticket-Mmor5sYW.d.ts → run-ticket-CRldclc7.d.ts} +2 -2
- package/dist/{saas-DcqUkynn.js → saas-DSeazNrN.js} +3 -3
- package/dist/{scan-Badcllgg.js → scan-CmfWbAbz.js} +1 -1
- package/dist/{schema-DBRKgQb4.js → schema-CO3btX_O.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-BZMPfWcC.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-FkdDSB9h.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-CoMI_OVw.d.ts} +2 -2
- package/dist/{size-l1pDHE2z.js → size-CY6rK6l9.js} +3 -3
- package/dist/{skills-CTKq3o8D.js → skills-C28GUaJC.js} +1 -1
- package/dist/{skills-Ba9hHGO6.js → skills-CA8GfQxQ.js} +1 -1
- package/dist/{snapshot-Ty0uk9wZ.js → snapshot-Dzi4LR6n.js} +8 -1
- package/dist/{snapshot-cache-DGvLQW0-.d.ts → snapshot-cache-R1lJjYmI.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-DnjJPGfb.js → sources-C6Id63F8.js} +2 -1
- package/dist/{sources-CjgZns7t.d.ts → sources-Dp6FQ8np.d.ts} +7 -2
- 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-D2FwHtMX.d.ts} +2 -2
- package/dist/{store-core-BdFcruPm.d.ts → store-core-aluQ3R1M.d.ts} +4 -4
- package/dist/{store-options-DpCQo0vB.js → store-options-DgOuhUSn.js} +4 -4
- package/dist/{stores-D6MIjN_-.d.ts → stores-hHICuiQl.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-Bn4oJY_R.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-kWQlkrHw.js → supabase-ByhSqBDB.js} +14 -7
- package/dist/{supabase-CGiB83XQ.js → supabase-DXEcFJGM.js} +15 -1
- package/dist/supabase-hook-C_ViYz3g.js +2 -0
- package/dist/{supabase-hook-CqO_0Koh.js → supabase-hook-D-ybV98H.js} +7 -7
- package/dist/{supabase-schemas-BglbAG2Z.js → supabase-schemas-CVhpyYB6.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-BviGc0L_.js → table-reads-BcceuV7h.js} +1 -1
- package/dist/{table-reads-AnHPrBp8.js → table-reads-BoF_58yh.js} +297 -48
- package/dist/{tables-CDq0HVVq.js → tables-BTXmioCH.js} +187 -20
- 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-DNbm8OiV.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-CsWH9z8p.d.ts} +1 -1
- package/dist/{types-vKKndyxx.d.ts → types-BGN3coSe.d.ts} +1 -1
- package/dist/{types-h9W3CNC_.d.ts → types-BwjOhlgx.d.ts} +4 -4
- package/dist/{types-BKnUwgvx.d.ts → types-BzsplNgO.d.ts} +4 -4
- package/dist/{types-BsRf5rKk.d.ts → types-CBUYbPwl.d.ts} +2 -2
- package/dist/{types-euUv1wsO.d.ts → types-CKwI6AT4.d.ts} +1 -1
- package/dist/{types-CIzXPPV-.d.ts → types-Cvfe-G_N.d.ts} +2 -2
- package/dist/{types-BhBfMdQ5.d.ts → types-D3GI2B9O.d.ts} +3 -3
- package/dist/{types-BRECeQ2n.d.ts → types-D417woMp.d.ts} +3 -3
- package/dist/{types-DwoRXDvN.d.ts → types-DRMoZjJm.d.ts} +2 -2
- package/dist/{types-config-DNIw_Gt5.d.ts → types-config-DYRoZ8Iw.d.ts} +11 -5
- package/dist/{types-CjZscT16.d.ts → types-dtDg4goh.d.ts} +4 -4
- package/dist/{types-run-Bwn1MuW0.d.ts → types-run-CeCrWO0v.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-CW6xhRcV.js → usage-BGuSrwiW.js} +2 -2
- package/dist/usage-CW6PfRfC.js +1 -0
- package/dist/{usage-n4V2k_a6.js → usage-D5QwWiNp.js} +1 -1
- package/dist/{validation-error-P4Z9HUuP.d.ts → validation-error-MZ7KLNHt.d.ts} +1 -1
- package/dist/{verify-CKzngsUH.js → verify-GWeopgxU.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-DdwtUSzB.d.ts} +2 -2
- package/dist/{warm-5yxlUmBh.js → warm-BZ0ZwSmO.js} +1 -1
- package/dist/{warm-BR-mrnY-.d.ts → warm-znYuJoUZ.d.ts} +1 -1
- package/dist/{watch-D-5ztqN8.js → watch-14vng0pg.js} +1 -1
- package/dist/watch-Be7ja4dL.js +1 -0
- package/dist/{watch-C12Ub7x4.js → watch-DuIAsqFR.js} +2 -2
- 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-C36-eV-C.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/skills/permdock-data/references/queries-and-rls.md +1 -1
- 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
- package/dist/watch-J1PfGMfb.js +0 -1
|
@@ -2,82 +2,83 @@ import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolve
|
|
|
2
2
|
import { r as supabaseTenantClaim } from "./budget-BH81q2cj.js";
|
|
3
3
|
import { r as runCollect } from "./collect-CPimbkC5.js";
|
|
4
4
|
import { t as didYouMean } from "./args-BSpXxMnb.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { o as nonEmptyOr, r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-1w67doim.js";
|
|
6
|
+
import { o as nonEmptyOr, r as findingOf } from "./output-dO4bArCS.js";
|
|
7
7
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
8
8
|
import { i as DOCTOR_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { a as rel, n as doctorSrcPath, o as sqlFiles$1, r as listSourceFiles } from "./files-DAR51W3J.js";
|
|
10
10
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
11
11
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
12
|
-
import { S as restatedFacts, _ as workspaceDirs, b as readJson, d as betterSupabaseAuthzVersions, f as betterSupabaseConfig, g as betterSupabaseTenantClaim, h as betterSupabaseInstalled, m as betterSupabaseDefaults, o as readParsedConfig, p as betterSupabaseConfigPath, t as configFileIn, u as BETTER_SUPABASE_AUTHZ_TOPIC, v as filesOf, x as membershipDisagreements, y as nodeFiles } from "./config-
|
|
12
|
+
import { S as restatedFacts, _ as workspaceDirs, b as readJson, d as betterSupabaseAuthzVersions, f as betterSupabaseConfig, g as betterSupabaseTenantClaim, h as betterSupabaseInstalled, m as betterSupabaseDefaults, o as readParsedConfig, p as betterSupabaseConfigPath, t as configFileIn, u as BETTER_SUPABASE_AUTHZ_TOPIC, v as filesOf, x as membershipDisagreements, y as nodeFiles } from "./config-Dan6vcvj.js";
|
|
13
13
|
import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-m7jmit3y.js";
|
|
14
|
-
import { i as runSkillsInstall } from "./skills-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-C28GUaJC.js";
|
|
15
15
|
import { i as withSchemaDefaults, n as schemaDefaults, r as schemaTables } from "./schema-tables-Ba9LE_XB.js";
|
|
16
|
-
import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-
|
|
17
|
-
import {
|
|
18
|
-
import { i as pd039, t as hookOut } from "./supabase-hook-
|
|
16
|
+
import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-CVhpyYB6.js";
|
|
17
|
+
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-EksAnz-T.js";
|
|
18
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-D-ybV98H.js";
|
|
19
19
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
20
20
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
21
21
|
import { n as bsbActions, t as answerOf } from "./bsb-actions-BHiyBxQZ.js";
|
|
22
22
|
import { c as outFiles } from "./output-files-8lfALMSU.js";
|
|
23
|
-
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
23
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-CSdLGGfW.js";
|
|
24
24
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
25
25
|
import { n as membershipColumns, r as tableKey } from "./deciding-columns-DBZsrpdD.js";
|
|
26
26
|
import { a as parseSqlFile, c as readPolicy$1, d as sqlCalls, f as stringValues, h as sqlStatements, l as readRelation, o as parseSqlLenient, p as group, r as functionArgTypes, s as parseSqlStatements, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
27
27
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
28
|
-
import { o as splitIgnored } from "./verify-
|
|
28
|
+
import { o as splitIgnored } from "./verify-GWeopgxU.js";
|
|
29
29
|
import { a as updatedBaseline, i as readBaseline, n as baselineText, t as applyBaseline } from "./baseline-file-BQoki1O_.js";
|
|
30
|
-
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-
|
|
30
|
+
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-BwqzED5h.js";
|
|
31
31
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
32
32
|
import "./authz-topic-D8x24Jv-.js";
|
|
33
|
-
import { n as
|
|
33
|
+
import { n as activeSource } from "./memberships-CNoAlsma.js";
|
|
34
|
+
import { n as budgetBreaches, r as snapshotProbeOptions, t as breachText } from "./budgets-hi-ecgEd.js";
|
|
34
35
|
import { a as nameOf, i as lineIndex, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
|
|
35
36
|
import { r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
36
37
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
37
38
|
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-D4g3nyFB.js";
|
|
38
|
-
import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-
|
|
39
|
+
import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-BGuSrwiW.js";
|
|
39
40
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
|
|
40
|
-
import { t as resolveNames } from "./resolve-names-
|
|
41
|
+
import { t as resolveNames } from "./resolve-names-CuEhEQyB.js";
|
|
41
42
|
import "./markers-C-kThnKN.js";
|
|
42
43
|
import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
43
44
|
import { s as parseCredential } from "./credential-D9in5keC.js";
|
|
44
|
-
import { u as separationConflicts } from "./policy-
|
|
45
|
-
import { O as validateCustomRole } from "./evaluate-
|
|
46
|
-
import { d as keptKeys, r as PERMDOCK_SCHEMA } from "./sources-
|
|
47
|
-
import { a as quoteIdent } from "./quote-
|
|
45
|
+
import { u as separationConflicts } from "./policy-CZBJDcTx.js";
|
|
46
|
+
import { O as validateCustomRole } from "./evaluate-DNz6wMYv.js";
|
|
47
|
+
import { d as keptKeys, r as PERMDOCK_SCHEMA } from "./sources-C6Id63F8.js";
|
|
48
|
+
import { a as quoteIdent } from "./quote-LNaBdCGA.js";
|
|
48
49
|
import { t as configProperty } from "./config-paths-CQvGng3k.js";
|
|
49
50
|
import { o as hasConditionOp, u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
|
|
50
51
|
import { o as flattenGrantee } from "./grantee-BSCdpIF3.js";
|
|
51
52
|
import { u as isPrincipalRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
52
53
|
import { t as operationCoverage } from "./coverage-C3jVYC9Y.js";
|
|
53
|
-
import { a as snapshotSize, r as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-
|
|
54
|
+
import { a as snapshotSize, r as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-NklqBKcV.js";
|
|
54
55
|
import { a as taggedPolicyId, o as taggedPolicyIds } from "./bsb-access-Bcw6GrQm.js";
|
|
55
56
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
56
|
-
import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-
|
|
57
|
-
import { a as pd114, i as pd110, r as pd109 } from "./claims-size-
|
|
57
|
+
import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-BYCtXS_g.js";
|
|
58
|
+
import { a as pd114, i as pd110, r as pd109 } from "./claims-size-BUhCWS88.js";
|
|
58
59
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
59
|
-
import { c as rlsReport, o as policiesFor } from "./report-
|
|
60
|
+
import { c as rlsReport, o as policiesFor } from "./report-XdCm1y_J.js";
|
|
60
61
|
import { a as scopeMembershipTable } from "./compile-BUKXrueE.js";
|
|
61
|
-
import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, s as scopeSourcesOf } from "./powersync-
|
|
62
|
+
import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, r as publicationPath, s as scopeSourcesOf } from "./powersync-DJ7dY-Vf.js";
|
|
62
63
|
import { t as parseProgram } from "./program-CvarkLMS.js";
|
|
63
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
64
|
-
import { n as restatedDefaults } from "./resolve-config-
|
|
64
|
+
import { t as FIELD_VIEWS } from "./fields-CwFej4gp.js";
|
|
65
|
+
import { n as restatedDefaults } from "./resolve-config-Cu_mE2wt.js";
|
|
65
66
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
66
|
-
import {
|
|
67
|
+
import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-BTXmioCH.js";
|
|
67
68
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
68
|
-
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-
|
|
69
|
-
import { p as contextRefs } from "./rbac-
|
|
70
|
-
import { c as rowConditionMessage, o as helperTablePolicies, r as ROW_CONDITION_FIX } from "./helper-calls-
|
|
71
|
-
import {
|
|
72
|
-
import { t as CUSTOM_ROLES } from "./shared-
|
|
69
|
+
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-BRDpja_Y.js";
|
|
70
|
+
import { p as contextRefs } from "./rbac-DbyaaNLa.js";
|
|
71
|
+
import { c as rowConditionMessage, o as helperTablePolicies, r as ROW_CONDITION_FIX } from "./helper-calls-B5MOl99d.js";
|
|
72
|
+
import { i as graphSqlName } from "./names-DBxKx2bz.js";
|
|
73
|
+
import { t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
73
74
|
import { n as isSeeds } from "./seeds-Bs44UDS3.js";
|
|
74
75
|
import { r as FIXTURES_PATH, s as seedPathsLine } from "./seed-sql-CjF7u0aX.js";
|
|
75
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
76
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-DDSeUTFU.js";
|
|
76
77
|
import { n as propertyKey } from "./edits-CqU8s2GC.js";
|
|
77
78
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-FN4aY6-n.js";
|
|
78
79
|
import { t as supautilsRejections } from "./supautils-C85NuESf.js";
|
|
79
80
|
import { t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
80
|
-
import {
|
|
81
|
+
import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads-BoF_58yh.js";
|
|
81
82
|
import { isDeepStrictEqual } from "node:util";
|
|
82
83
|
import { readFileSync } from "node:fs";
|
|
83
84
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -3025,15 +3026,16 @@ async function pd058(input) {
|
|
|
3025
3026
|
if (config.powersync === void 0 || config.policy === void 0) return [];
|
|
3026
3027
|
const policy = await policyOf(input);
|
|
3027
3028
|
if (policy === void 0) return [];
|
|
3029
|
+
const publicationAt = await publicationPath(cwd, config);
|
|
3028
3030
|
let compiled;
|
|
3029
3031
|
try {
|
|
3030
|
-
compiled = powersyncFiles(policy, config);
|
|
3032
|
+
compiled = powersyncFiles(policy, config, void 0, publicationAt);
|
|
3031
3033
|
} catch (cause) {
|
|
3032
3034
|
return [{
|
|
3033
3035
|
code: "PD058",
|
|
3034
3036
|
severity: "warning",
|
|
3035
3037
|
message: `the policy does not compile to Sync Streams: ${cause instanceof Error ? cause.message : String(cause)}`,
|
|
3036
|
-
fix: "fix the powersync and rls config, then run permdock powersync
|
|
3038
|
+
fix: "fix the powersync and rls config, then run permdock generate --only powersync"
|
|
3037
3039
|
}];
|
|
3038
3040
|
}
|
|
3039
3041
|
const gaps = sourceGaps(policy, config).map((gap) => ({
|
|
@@ -3047,7 +3049,7 @@ async function pd058(input) {
|
|
|
3047
3049
|
code: "PD058",
|
|
3048
3050
|
severity: "warning",
|
|
3049
3051
|
message: file.missing ? `${file.path} is missing, so ${file.path === config.powersync?.manifest ? "the device builds no local snapshot" : "PowerSync syncs no stream the policy compiles to"}` : `${file.path} is not what the policy compiles to, so ${file.path === config.powersync?.manifest ? "the device builds snapshots" : "PowerSync syncs rows"} by an older policy`,
|
|
3050
|
-
fix: "run permdock powersync
|
|
3052
|
+
fix: "run permdock generate --only powersync and deploy the files"
|
|
3051
3053
|
})),
|
|
3052
3054
|
...gaps,
|
|
3053
3055
|
...branchGaps(policy, config.powersync?.resources ?? [])
|
|
@@ -3142,7 +3144,7 @@ function pd102(input) {
|
|
|
3142
3144
|
severity: "warning",
|
|
3143
3145
|
target: path,
|
|
3144
3146
|
message: `${path} filters ${stale} while the membership source reads roles: "many", so a member syncs only their own role rows`,
|
|
3145
|
-
fix: "run permdock powersync
|
|
3147
|
+
fix: "run permdock generate --only powersync and deploy the file"
|
|
3146
3148
|
}] : [];
|
|
3147
3149
|
});
|
|
3148
3150
|
}
|
|
@@ -4882,7 +4884,7 @@ function topLevelParts(body) {
|
|
|
4882
4884
|
*/
|
|
4883
4885
|
function tablePart(raw) {
|
|
4884
4886
|
const part = raw.replace(/^constraint\s+(?:"[^"]+"|\w+)\s+/iu, "");
|
|
4885
|
-
const listed = /^(foreign\s+key|primary\s+key|unique)\s*\(([^)]*)\)/iu.exec(part);
|
|
4887
|
+
const listed = /^(foreign\s+key|primary\s+key|unique(?:\s+nulls\s+(?:not\s+)?distinct)?)\s*\(([^)]*)\)/iu.exec(part);
|
|
4886
4888
|
if (listed !== null) {
|
|
4887
4889
|
const foreign = /^foreign/iu.test(group(listed, 1));
|
|
4888
4890
|
return {
|
|
@@ -4900,7 +4902,7 @@ function tablePart(raw) {
|
|
|
4900
4902
|
function firstColumn(list) {
|
|
4901
4903
|
return unquote(list.replace(/,[\s\S]*$/u, "").trim());
|
|
4902
4904
|
}
|
|
4903
|
-
const ADD_CONSTRAINT = new RegExp(String.raw`^alter\s+table\s+(?:if\s+exists\s+)?(?:only\s+)?${NAME}\s+add\s+(?:constraint\s+${IDENT}\s+)?(foreign\s+key|primary\s+key|unique)\s*\(([^)]*)\)`, "iu");
|
|
4905
|
+
const ADD_CONSTRAINT = new RegExp(String.raw`^alter\s+table\s+(?:if\s+exists\s+)?(?:only\s+)?${NAME}\s+add\s+(?:constraint\s+${IDENT}\s+)?(foreign\s+key|primary\s+key|unique(?:\s+nulls\s+(?:not\s+)?distinct)?)\s*\(([^)]*)\)`, "iu");
|
|
4904
4906
|
const CREATE_INDEX = new RegExp(String.raw`^create\s+(?:unique\s+)?index\s+(?:concurrently\s+)?(?:if\s+not\s+exists\s+)?(?:${IDENT}\s+)?on\s+(?:only\s+)?${NAME}\s*(?:using\s+\w+\s*)?\(\s*${IDENT}`, "iu");
|
|
4905
4907
|
/**
|
|
4906
4908
|
* PD053: a foreign key no index starts with, so joins and deletes on the
|
|
@@ -5326,8 +5328,18 @@ async function pd128(input) {
|
|
|
5326
5328
|
*/
|
|
5327
5329
|
async function pd137(input) {
|
|
5328
5330
|
const manifest = committedManifest(input.cwd);
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
+
if (manifest === void 0) return [];
|
|
5332
|
+
const twoArgument = (manifest.rls.permissionFilters ?? []).flatMap((filter) => {
|
|
5333
|
+
return (manifest.rls.tenantPureHelpers ?? []).some((helper) => helper.name === filter.name) ? [{
|
|
5334
|
+
code: "PD137",
|
|
5335
|
+
severity: "error",
|
|
5336
|
+
target: `${MANIFEST_FILE}:rls.permissionFilters:${filter.name}`,
|
|
5337
|
+
message: `${MANIFEST_FILE} lists ${filter.name} in rls.permissionFilters, but it takes a tenant argument, so the share key would not cover another tenant`,
|
|
5338
|
+
fix: "list the one-argument helper that reads the tenant from the token, or run permdock supabase inspect --out"
|
|
5339
|
+
}] : [];
|
|
5340
|
+
});
|
|
5341
|
+
const recorded = manifest.rls.sharedFunctions;
|
|
5342
|
+
if (recorded === void 0 || recorded.length === 0) return twoArgument;
|
|
5331
5343
|
const reads = await manifestTableReads(input.cwd, input.config, manifest);
|
|
5332
5344
|
const now = new Map(reads.map((read) => [read.table, read]));
|
|
5333
5345
|
const valid = new Set((await sharedFunctionsOf({
|
|
@@ -5336,7 +5348,7 @@ async function pd137(input) {
|
|
|
5336
5348
|
schema: manifest.rls.schema,
|
|
5337
5349
|
tableReads: reads
|
|
5338
5350
|
})).map((entry) => entry.function));
|
|
5339
|
-
return recorded.flatMap((entry) => {
|
|
5351
|
+
return [...twoArgument, ...recorded.flatMap((entry) => {
|
|
5340
5352
|
if (valid.has(entry.function)) return [];
|
|
5341
5353
|
const rows = entry.tables.filter((table) => now.get(table)?.share !== "tenant");
|
|
5342
5354
|
const why = rows.length > 0 ? `it reads ${rows.join(", ")}, which ${rows.length === 1 ? "is" : "are"} not a tenant table` : "the schema files no longer define it as a stable, security invoker SQL function that reads no caller";
|
|
@@ -5347,7 +5359,48 @@ async function pd137(input) {
|
|
|
5347
5359
|
message: `${MANIFEST_FILE} lists ${entry.function} in rls.sharedFunctions, but ${why}`,
|
|
5348
5360
|
fix: "run permdock supabase inspect --out to rewrite the list, or restore the function"
|
|
5349
5361
|
}];
|
|
5350
|
-
});
|
|
5362
|
+
})];
|
|
5363
|
+
}
|
|
5364
|
+
// src/cli/doctor/truncated-users.ts
|
|
5365
|
+
/** The most users PD138 mints a token for. */
|
|
5366
|
+
const TRUNCATED_USERS_SAMPLE = 5e3;
|
|
5367
|
+
/**
|
|
5368
|
+
* PD138: with a database URL, how many users the hook's budget truncates. It
|
|
5369
|
+
* runs the hook for up to {@link TRUNCATED_USERS_SAMPLE} users of `auth.users`
|
|
5370
|
+
* inside a transaction it rolls back, and counts the tokens that carry
|
|
5371
|
+
* `memberships_truncated`. Those users take the database path for every
|
|
5372
|
+
* request, which the shared cache cannot serve with a share key.
|
|
5373
|
+
*/
|
|
5374
|
+
async function pd138(project) {
|
|
5375
|
+
const { database } = project;
|
|
5376
|
+
const hook = project.config.supabase?.hook;
|
|
5377
|
+
if (database === void 0 || hook === void 0) return [];
|
|
5378
|
+
const schema = hook.schema ?? project.config.rls?.schema ?? "permdock";
|
|
5379
|
+
const fn = `${quoteIdent(schema)}.custom_access_token_hook`;
|
|
5380
|
+
const client = await database.connect(database.url);
|
|
5381
|
+
try {
|
|
5382
|
+
await client.query("begin", []);
|
|
5383
|
+
try {
|
|
5384
|
+
const result = await client.query(`select count(*)::int as users,
|
|
5385
|
+
count(*) filter (where ${fn}(jsonb_build_object('user_id', u.id, 'claims', '{}'::jsonb)) -> 'claims' ->> 'memberships_truncated' = 'true')::int as truncated
|
|
5386
|
+
from (select id from auth.users order by id limit $1) u`, [TRUNCATED_USERS_SAMPLE]);
|
|
5387
|
+
const users = Number(result.rows[0]?.["users"] ?? 0);
|
|
5388
|
+
const truncated = Number(result.rows[0]?.["truncated"] ?? 0);
|
|
5389
|
+
if (truncated === 0) return [];
|
|
5390
|
+
const budget = hook.budget ?? 1024;
|
|
5391
|
+
return [{
|
|
5392
|
+
code: "PD138",
|
|
5393
|
+
severity: "info",
|
|
5394
|
+
target: "supabase.hook.budget",
|
|
5395
|
+
message: `the ${String(budget)} byte budget truncates the memberships of ${String(truncated)} of ${String(users)} users${users === TRUNCATED_USERS_SAMPLE ? " sampled" : ""}; each of them reads the database on every request and gets a share key only for the active tenant`,
|
|
5396
|
+
fix: "raise supabase.hook.budget, or leave it: the token stays under the cookie limit and claimsFirst reads the sources for these users"
|
|
5397
|
+
}];
|
|
5398
|
+
} finally {
|
|
5399
|
+
await client.query("rollback", []);
|
|
5400
|
+
}
|
|
5401
|
+
} finally {
|
|
5402
|
+
await client.end();
|
|
5403
|
+
}
|
|
5351
5404
|
}
|
|
5352
5405
|
const DOCTOR_CHECKS = [
|
|
5353
5406
|
{
|
|
@@ -6014,6 +6067,13 @@ const DOCTOR_CHECKS = [
|
|
|
6014
6067
|
groups: ["supabase", "rls"],
|
|
6015
6068
|
run: pd124
|
|
6016
6069
|
},
|
|
6070
|
+
{
|
|
6071
|
+
code: "PD138",
|
|
6072
|
+
database: true,
|
|
6073
|
+
groups: ["supabase", "performance"],
|
|
6074
|
+
when: (config) => config.supabase?.hook !== void 0,
|
|
6075
|
+
run: pd138
|
|
6076
|
+
},
|
|
6017
6077
|
{
|
|
6018
6078
|
code: "PD120",
|
|
6019
6079
|
groups: ["project"],
|
|
@@ -11,7 +11,7 @@ const doctor = defineLeaf({
|
|
|
11
11
|
description: "Check codes or groups to run",
|
|
12
12
|
valueHint: "code",
|
|
13
13
|
async complete() {
|
|
14
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
14
|
+
const { DOCTOR_CHECKS } = await import("./doctor-GnMgqGO8.js");
|
|
15
15
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
16
16
|
}
|
|
17
17
|
},
|
|
@@ -46,7 +46,7 @@ const doctor = defineLeaf({
|
|
|
46
46
|
if (answer === void 0) return CANCELLED;
|
|
47
47
|
fix = answer;
|
|
48
48
|
}
|
|
49
|
-
return (await import("./doctor-
|
|
49
|
+
return (await import("./doctor-GnMgqGO8.js")).runDoctor({
|
|
50
50
|
cwd: ctx.cwd,
|
|
51
51
|
config: ctx.config,
|
|
52
52
|
only: flags.only,
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-C9F1sU1d.js";
|
|
3
|
-
import { p as WhereResult } from "../permdock-
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
3
|
+
import { p as WhereResult } from "../permdock-DkvkGVF0.js";
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-CoUadQXF.js";
|
|
5
5
|
import { r as RelationsMapping } from "../graph-sql-Ds3nbevr.js";
|
|
6
6
|
import { SQL, Table } from "drizzle-orm";
|
|
7
7
|
/**
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy,
|
|
4
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
5
5
|
import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-BnrOLyJq.js";
|
|
7
7
|
import { Elysia } from "elysia";
|
|
8
8
|
type ElysiaRequestContext = {
|
|
9
9
|
readonly request: Request;
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-
|
|
2
|
+
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-DPptdk31.js";
|
|
3
3
|
import { a as parsedBody, r as hasCredentials } from "../http-C9jDw_bZ.js";
|
|
4
4
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
5
5
|
import { a as onRevoked, n as closeReason, t as POLICY_VIOLATION } from "../stream-DdF94h7T.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as Subject, On as WireDenial, ir as Decision } from "./policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
type Disclosure = "hide" | "reveal";
|
|
4
4
|
/**
|
|
@@ -15,7 +15,7 @@ import { a as isRole, r as findRole } from "./vocabulary-CE2k7s1a.js";
|
|
|
15
15
|
import { a as interactiveOnlyRefuses, c as evaluateCondition, i as delegatedPermissions, n as coveredByDelegation, o as readOnlyActorRefuses, r as coversRequirements, s as requiresStandIn } from "./delegation-0DVVomzu.js";
|
|
16
16
|
import { n as resolveRelated } from "./relation-walk-BlWy9gBK.js";
|
|
17
17
|
import { n as isThenable, t as ignoreRejection } from "./thenable-BxMy2v8w.js";
|
|
18
|
-
import { d as soleRole, i as grantList, n as declaredRoleNames, s as levelCondition } from "./policy-
|
|
18
|
+
import { d as soleRole, i as grantList, n as declaredRoleNames, s as levelCondition } from "./policy-CZBJDcTx.js";
|
|
19
19
|
import { n as rowIdOf, r as rowValues, t as isRowPair } from "./row-pair-CxEhErJU.js";
|
|
20
20
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
21
21
|
import { i as readAppData } from "./app-data-DbSPSPIl.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as ApprovalStore } from "./types-
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
3
|
-
import { D as Policy } from "./policy-types-
|
|
1
|
+
import { m as ApprovalStore } from "./types-BGN3coSe.js";
|
|
2
|
+
import { a as PermDock } from "./permdock-DkvkGVF0.js";
|
|
3
|
+
import { D as Policy } from "./policy-types-DuM3k5Ao.js";
|
|
4
4
|
/** AuthZEN 1.0 section 7.1.2.1 `options.evaluations_semantic` values. */
|
|
5
5
|
declare const EVALUATIONS_SEMANTICS: readonly ["execute_all", "deny_on_first_deny", "permit_on_first_permit"];
|
|
6
6
|
type EvaluationsSemantic = (typeof EVALUATIONS_SEMANTICS)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as fromSnapshot } from "./from-snapshot-
|
|
1
|
+
import { t as fromSnapshot } from "./from-snapshot-DZ4D2sLa.js";
|
|
2
2
|
// src/client/evaluator-eager.ts
|
|
3
3
|
/** The evaluator in the entry itself, for adapters that render without Suspense. */
|
|
4
4
|
const eagerEvaluator = {
|
package/dist/eve/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
2
|
-
import { u as ApprovalRequest } from "../types-
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-T_NqxU31.js";
|
|
2
|
+
import { u as ApprovalRequest } from "../types-BGN3coSe.js";
|
|
3
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy,
|
|
5
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
6
6
|
/** Structural `SessionAuthContext` from `eve`. */
|
|
7
7
|
type EvePrincipal = {
|
|
8
8
|
readonly principalId: string;
|
package/dist/eve/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as agentRuntime } from "../create-
|
|
1
|
+
import { t as agentRuntime } from "../create-BRY0OtFV.js";
|
|
2
2
|
import { t as boundedMap } from "../lru-Cp-AEvpR.js";
|
|
3
3
|
import { c as isApprovalError } from "../types-DFZKovb3.js";
|
|
4
4
|
import { o as resolveApproval } from "../helpers-COh0lLc1.js";
|
|
5
|
-
import { u as withApp } from "../permdock-
|
|
5
|
+
import { u as withApp } from "../permdock-JM9TKevZ.js";
|
|
6
6
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
7
7
|
// src/eve/create.ts
|
|
8
8
|
const TOKENS_PER_PROCESS = 1e3;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as budgetBreaches, t as breachText } from "./budgets-
|
|
1
|
+
import { n as budgetBreaches, t as breachText } from "./budgets-hi-ecgEd.js";
|
|
2
2
|
import { a as suggestion } from "./args-BSpXxMnb.js";
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
|
-
import { r as runGen } from "./gen-
|
|
4
|
+
import { r as runGen } from "./gen-djPw1RS-.js";
|
|
5
5
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
6
|
-
import { t as projectContext } from "./context-
|
|
7
|
-
import { r as runGenerate } from "./pipeline-
|
|
6
|
+
import { t as projectContext } from "./context-rioF4fQl.js";
|
|
7
|
+
import { r as runGenerate } from "./pipeline-BAGSNnct.js";
|
|
8
8
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
9
9
|
import { relative, resolve } from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
@@ -19,7 +19,7 @@ const explain = defineLeaf({
|
|
|
19
19
|
},
|
|
20
20
|
async run(ctx, { flags, args }) {
|
|
21
21
|
try {
|
|
22
|
-
const { runExplain } = await import("./explain-
|
|
22
|
+
const { runExplain } = await import("./explain-DISCeeYS.js");
|
|
23
23
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
24
24
|
return await runExplain({
|
|
25
25
|
cwd: ctx.cwd,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as findPermission } from "./permission-registry-DstT40VS.js";
|
|
2
|
-
import { t as getPermDock } from "./permdock-
|
|
3
|
-
import {
|
|
2
|
+
import { t as getPermDock } from "./permdock-JM9TKevZ.js";
|
|
3
|
+
import { A as memoryCustomRoleSource } from "./src-BXDohWNO.js";
|
|
4
4
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
6
6
|
// src/cli/explain.ts
|
package/dist/express/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy,
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
4
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-BnrOLyJq.js";
|
|
6
6
|
import { i as toRequest, r as sendResponse } from "../http-BUIYu1Kc.js";
|
|
7
7
|
import { ErrorRequestHandler, Request, RequestHandler, Response, Router } from "express";
|
|
8
8
|
type ExpressPermDockOptions<TUser = unknown> = ServerAdapterOptions<Request, TUser>;
|
package/dist/express/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { i as decorate, r as bindKernel } from "../bind-
|
|
2
|
+
import { i as decorate, r as bindKernel } from "../bind-DPptdk31.js";
|
|
3
3
|
import { r as hasCredentials } from "../http-C9jDw_bZ.js";
|
|
4
4
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
5
5
|
import { n as sendResponse, r as toRequest } from "../http-dNltTpC8.js";
|
package/dist/fastify/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-FkdDSB9h.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy,
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
4
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-BnrOLyJq.js";
|
|
6
6
|
import { FastifyPluginAsync, FastifyReply, FastifyRequest, FastifySchema, FastifyTypeProvider, FastifyTypeProviderDefault, RawRequestDefaultExpression, RawServerDefault, RouteGenericInterface } from "fastify";
|
|
7
7
|
/** A Fastify-style reply: `code`, `header` and `send`. */
|
|
8
8
|
type ReplyLike = {
|
package/dist/fastify/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { i as decorate, r as bindKernel } from "../bind-
|
|
2
|
+
import { i as decorate, r as bindKernel } from "../bind-DPptdk31.js";
|
|
3
3
|
import { c as writeReply, i as headersFrom, n as firstHeader, r as hasCredentials, t as fetchRequest } from "../http-C9jDw_bZ.js";
|
|
4
4
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
5
5
|
// src/fastify/http.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { o as isPermission } from "./permission-registry-DstT40VS.js";
|
|
3
|
-
import { i as decorate, r as bindKernel } from "./bind-
|
|
3
|
+
import { i as decorate, r as bindKernel } from "./bind-DPptdk31.js";
|
|
4
4
|
import { r as hasCredentials } from "./http-C9jDw_bZ.js";
|
|
5
5
|
import { t as problemFromError } from "./map-error-DYQbf-3Q.js";
|
|
6
6
|
import { o as methodNotAllowed } from "./problem-BZB7zPC7.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as OperationInput, t as Operation } from "./operations-DaEoGpMV.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { n as RevocationFeed } from "./revocations-ku_f2d2y.js";
|
|
4
|
-
import { t as ServerAdapterOptions } from "./bind-
|
|
5
|
-
import { o as ProtectOptions } from "./server-types-
|
|
4
|
+
import { t as ServerAdapterOptions } from "./bind-BnrOLyJq.js";
|
|
5
|
+
import { o as ProtectOptions } from "./server-types-FkdDSB9h.js";
|
|
6
6
|
/**
|
|
7
7
|
* What `protect` checks: a permission, an operation from `defineOperations`, or
|
|
8
8
|
* `null` for a route that needs only OAuth scopes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as jsonSchemaOf } from "./catalog-doc-D4g3nyFB.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { a as quoteIdent, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-
|
|
4
|
-
import { s as signedIn } from "./shared-
|
|
3
|
+
import { a as quoteIdent, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
4
|
+
import { s as signedIn } from "./shared-DnVY767H.js";
|
|
5
5
|
import { a as sole } from "./compact-C4LFuqbW.js";
|
|
6
|
-
import { u as subjectClaimJsonSql } from "./subject-
|
|
6
|
+
import { u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
|
|
7
7
|
// src/cli/sql/clauses.ts
|
|
8
8
|
/**
|
|
9
9
|
* True when `sql` is one parenthesised expression, so AND / OR need not wrap it
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as decideAllWith, n as canAllWith } from "./checks-DSm45qH7.js";
|
|
2
2
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
3
|
-
import { a as permittedScopeIds, c as deniedFor, i as permittedIds, n as filterIds, r as mayUseOf } from "./may-use-
|
|
3
|
+
import { a as permittedScopeIds, c as deniedFor, i as permittedIds, n as filterIds, r as mayUseOf } from "./may-use-ikNCnNgZ.js";
|
|
4
4
|
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "./errors-DOSkVeTC.js";
|
|
5
5
|
import { n as pickVisible } from "./fields-C0L2FoZk.js";
|
|
6
6
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
7
7
|
import { c as listPermissions } from "./permission-registry-DstT40VS.js";
|
|
8
8
|
import { n as rowIdOf } from "./row-pair-CxEhErJU.js";
|
|
9
9
|
import { d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
|
|
10
|
-
import { i as expandSnapshot, n as compactSnapshot } from "./snapshot-compact-
|
|
11
|
-
import { n as whereFromSnapshot, r as subjectInTenant, t as evaluateSnapshot } from "./snapshot-evaluate-
|
|
12
|
-
import { t as snapshotReads } from "./snapshot-reads-
|
|
13
|
-
import { n as signSnapshot } from "./membership-filter-
|
|
14
|
-
import { n as parseSnapshot, s as subjectFromSnapshot } from "./snapshot-
|
|
10
|
+
import { i as expandSnapshot, n as compactSnapshot } from "./snapshot-compact-BWMLnIXK.js";
|
|
11
|
+
import { n as whereFromSnapshot, r as subjectInTenant, t as evaluateSnapshot } from "./snapshot-evaluate-C382Z1mQ.js";
|
|
12
|
+
import { t as snapshotReads } from "./snapshot-reads-JxcUSUfW.js";
|
|
13
|
+
import { n as signSnapshot } from "./membership-filter-Bz9QX6E9.js";
|
|
14
|
+
import { n as parseSnapshot, s as subjectFromSnapshot } from "./snapshot-Dzi4LR6n.js";
|
|
15
15
|
// src/core/from-snapshot.ts
|
|
16
16
|
function resourceRef(snapshot, permission, data) {
|
|
17
17
|
const id = permission.kind === "collection" ? void 0 : rowIdOf(data, snapshot.ids?.[permission.resource]);
|
|
@@ -22,7 +22,10 @@ function resourceRef(snapshot, permission, data) {
|
|
|
22
22
|
}
|
|
23
23
|
function fromSnapshot(input, options = {}) {
|
|
24
24
|
const wire = parseSnapshot(input);
|
|
25
|
-
const snapshot = expandSnapshot(wire, compact({
|
|
25
|
+
const snapshot = expandSnapshot(wire, compact({
|
|
26
|
+
bundle: options.bundle,
|
|
27
|
+
customRoles: options.customRoles
|
|
28
|
+
}));
|
|
26
29
|
const subject = subjectFromSnapshot(snapshot, options.tenant);
|
|
27
30
|
const team = options.team;
|
|
28
31
|
const run = (permission, data, decideOptions = {}) => evaluateSnapshot(snapshot, subject, permission, data, team, decideOptions);
|
|
@@ -129,14 +132,16 @@ function fromSnapshot(input, options = {}) {
|
|
|
129
132
|
return fromSnapshot(wire, compact({
|
|
130
133
|
tenant: id,
|
|
131
134
|
team,
|
|
132
|
-
bundle: options.bundle
|
|
135
|
+
bundle: options.bundle,
|
|
136
|
+
customRoles: options.customRoles
|
|
133
137
|
}));
|
|
134
138
|
},
|
|
135
139
|
team(id) {
|
|
136
140
|
return fromSnapshot(wire, compact({
|
|
137
141
|
tenant: options.tenant,
|
|
138
142
|
team: id,
|
|
139
|
-
bundle: options.bundle
|
|
143
|
+
bundle: options.bundle,
|
|
144
|
+
customRoles: options.customRoles
|
|
140
145
|
}));
|
|
141
146
|
},
|
|
142
147
|
grantedPermissions() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as renderKinds } from "./gen-djPw1RS-.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as clientBundle } from "./permdock-JM9TKevZ.js";
|
|
2
2
|
import { t as loadConfiguredOperations } from "./catalog-operations-BqSsByIE.js";
|
|
3
3
|
import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { n as fileSummary, r as planFiles } from "./files-DuV7wRim.js";
|
|
@@ -13,7 +13,7 @@ import { c as listPermissions } from "./permission-registry-DstT40VS.js";
|
|
|
13
13
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
14
14
|
import { o as listPlans, s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
15
15
|
import { c as jsonSchemaOf } from "./catalog-doc-D4g3nyFB.js";
|
|
16
|
-
import { t as resolveNames } from "./resolve-names-
|
|
16
|
+
import { t as resolveNames } from "./resolve-names-CuEhEQyB.js";
|
|
17
17
|
import { t as DESCRIBE_TITLES } from "./describe-B7EosIKA.js";
|
|
18
18
|
import { i as schemaExpression } from "./generate-5_kz2309.js";
|
|
19
19
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -401,7 +401,7 @@ function modelDigest(model) {
|
|
|
401
401
|
return createHash("sha256").update(canonicalJson(model)).digest("base64url");
|
|
402
402
|
}
|
|
403
403
|
/**
|
|
404
|
-
* `// @generated by permdock generate zod@0.
|
|
404
|
+
* `// @generated by permdock generate zod@0.35.0 from policy.ts sha-256:…; do
|
|
405
405
|
* not edit`.
|
|
406
406
|
*/
|
|
407
407
|
function generatedHeader(kind, info) {
|
|
@@ -47,7 +47,7 @@ function kindPlugin(kind, options = {}) {
|
|
|
47
47
|
}],
|
|
48
48
|
emit: async (_task, model, source) => {
|
|
49
49
|
if (source === void 0) return [];
|
|
50
|
-
const { renderKinds } = await import("./gen-
|
|
50
|
+
const { renderKinds } = await import("./gen-BPYFr_tZ.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|