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
|
@@ -30,20 +30,20 @@ const SECTIONS = [
|
|
|
30
30
|
docs: "init",
|
|
31
31
|
effects: ["files"],
|
|
32
32
|
config: false,
|
|
33
|
-
load: async () => (await import("./init-
|
|
33
|
+
load: async () => (await import("./init-BOYIObRF.js")).init
|
|
34
34
|
}),
|
|
35
35
|
group("preset", "Decode a preset code, or print its permdock.com/create link", "preset", [leaf("decode", "Print what a preset code holds", {
|
|
36
36
|
examples: ["permdock preset decode p1AQIDBAc"],
|
|
37
37
|
docs: "preset",
|
|
38
38
|
effects: [],
|
|
39
39
|
config: false,
|
|
40
|
-
load: async () => (await import("./init-
|
|
40
|
+
load: async () => (await import("./init-BOYIObRF.js")).presetDecode
|
|
41
41
|
}), leaf("url", "Print the permdock.com/create link that opens a code", {
|
|
42
42
|
examples: ["permdock preset url p1AQIDBAc"],
|
|
43
43
|
docs: "preset",
|
|
44
44
|
effects: [],
|
|
45
45
|
config: false,
|
|
46
|
-
load: async () => (await import("./init-
|
|
46
|
+
load: async () => (await import("./init-BOYIObRF.js")).presetUrl
|
|
47
47
|
})]),
|
|
48
48
|
group("skills", "Install, update or list the PermDock Agent Skills", "skills", [
|
|
49
49
|
leaf("install", "Copy the Agent Skills into the agent folders", {
|
|
@@ -55,21 +55,21 @@ const SECTIONS = [
|
|
|
55
55
|
docs: "skills",
|
|
56
56
|
effects: ["files"],
|
|
57
57
|
config: false,
|
|
58
|
-
load: async () => (await import("./skills-
|
|
58
|
+
load: async () => (await import("./skills-BKrN1qej.js")).install
|
|
59
59
|
}),
|
|
60
60
|
leaf("update", "Replace installed skills with this version's", {
|
|
61
61
|
examples: ["permdock skills update"],
|
|
62
62
|
docs: "skills",
|
|
63
63
|
effects: ["files"],
|
|
64
64
|
config: false,
|
|
65
|
-
load: async () => (await import("./skills-
|
|
65
|
+
load: async () => (await import("./skills-BKrN1qej.js")).update
|
|
66
66
|
}),
|
|
67
67
|
leaf("list", "List the skills and where each is installed", {
|
|
68
68
|
examples: ["permdock skills list"],
|
|
69
69
|
docs: "skills",
|
|
70
70
|
effects: [],
|
|
71
71
|
config: false,
|
|
72
|
-
load: async () => (await import("./skills-
|
|
72
|
+
load: async () => (await import("./skills-BKrN1qej.js")).list
|
|
73
73
|
})
|
|
74
74
|
]),
|
|
75
75
|
leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
|
|
@@ -83,7 +83,7 @@ const SECTIONS = [
|
|
|
83
83
|
effects: ["files", "database:read"],
|
|
84
84
|
config: true,
|
|
85
85
|
findings: true,
|
|
86
|
-
load: async () => (await import("./doctor-
|
|
86
|
+
load: async () => (await import("./doctor-C9lLeLp2.js")).doctor
|
|
87
87
|
}),
|
|
88
88
|
leaf("completion", "Print the shell completion script for bash, zsh or fish", {
|
|
89
89
|
examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
|
|
@@ -91,7 +91,7 @@ const SECTIONS = [
|
|
|
91
91
|
effects: [],
|
|
92
92
|
config: false,
|
|
93
93
|
shellOutput: true,
|
|
94
|
-
load: async () => (await import("./completion-
|
|
94
|
+
load: async () => (await import("./completion-BIN9YXIe.js")).completion
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
},
|
|
@@ -125,7 +125,7 @@ const SECTIONS = [
|
|
|
125
125
|
docs: "generate",
|
|
126
126
|
effects: ["files"],
|
|
127
127
|
config: true,
|
|
128
|
-
load: async () => (await import("./generate-
|
|
128
|
+
load: async () => (await import("./generate-QEHCJSyv.js")).generate
|
|
129
129
|
}),
|
|
130
130
|
leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
|
|
131
131
|
examples: ["permdock usage", "permdock usage --fail-on warning"],
|
|
@@ -133,35 +133,35 @@ const SECTIONS = [
|
|
|
133
133
|
effects: [],
|
|
134
134
|
config: true,
|
|
135
135
|
findings: true,
|
|
136
|
-
load: async () => (await import("./usage-
|
|
136
|
+
load: async () => (await import("./usage-Do7LQ4i4.js")).usage
|
|
137
137
|
}),
|
|
138
138
|
leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
|
|
139
139
|
examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
|
|
140
140
|
docs: "diff",
|
|
141
141
|
effects: [],
|
|
142
142
|
config: true,
|
|
143
|
-
load: async () => (await import("./diff-
|
|
143
|
+
load: async () => (await import("./diff-CS8ks9h3.js")).diff
|
|
144
144
|
}),
|
|
145
145
|
leaf("explain", "Show which grants decide an action for each fixture subject", {
|
|
146
146
|
examples: ["permdock explain post.update", "permdock explain invoice.send --fixtures ./fixtures.ts --json"],
|
|
147
147
|
docs: "explain",
|
|
148
148
|
effects: [],
|
|
149
149
|
config: true,
|
|
150
|
-
load: async () => (await import("./explain-
|
|
150
|
+
load: async () => (await import("./explain-D4ipf8IH.js")).explain
|
|
151
151
|
}),
|
|
152
152
|
group("snapshot", "Measure the snapshot a role sends to the client", "snapshot", [leaf("size", "Report snapshot bytes by part, raw and gzip", {
|
|
153
153
|
examples: ["permdock snapshot size", "permdock snapshot size --role admin --tenants 40 --json"],
|
|
154
154
|
docs: "snapshot",
|
|
155
155
|
effects: [],
|
|
156
156
|
config: true,
|
|
157
|
-
load: async () => (await import("./size-
|
|
157
|
+
load: async () => (await import("./size-CY6rK6l9.js")).snapshotSize
|
|
158
158
|
})]),
|
|
159
159
|
group("bundle", "Measure the client bundle the generated bundle module ships", "bundle", [leaf("size", "Report bundle bytes per role and shared part, raw and gzip", {
|
|
160
160
|
examples: ["permdock bundle size", "permdock bundle size --budget 32768 --json"],
|
|
161
161
|
docs: "bundle",
|
|
162
162
|
effects: [],
|
|
163
163
|
config: true,
|
|
164
|
-
load: async () => (await import("./size-
|
|
164
|
+
load: async () => (await import("./size-CY6rK6l9.js")).bundleSize
|
|
165
165
|
})]),
|
|
166
166
|
group("roles", "List what each role holds", "roles", [leaf("grants", "List the grants of each role, expanded per permission", {
|
|
167
167
|
examples: ["permdock roles grants", "permdock roles grants --role admin --json"],
|
|
@@ -175,7 +175,7 @@ const SECTIONS = [
|
|
|
175
175
|
docs: "keys",
|
|
176
176
|
effects: ["rewrite", "files"],
|
|
177
177
|
config: true,
|
|
178
|
-
load: async () => (await import("./keys-
|
|
178
|
+
load: async () => (await import("./keys-U2V0maaq.js")).keysRename
|
|
179
179
|
})]),
|
|
180
180
|
group("policy", "Write the static grants of a policy as a content-addressed bundle", "policy", [leaf("bundle", "Write the policy bundle that rls.staticGrants 'ref' pins by hash", {
|
|
181
181
|
examples: [
|
|
@@ -186,14 +186,14 @@ const SECTIONS = [
|
|
|
186
186
|
docs: "policy",
|
|
187
187
|
effects: ["files"],
|
|
188
188
|
config: true,
|
|
189
|
-
load: async () => (await import("./policy-
|
|
189
|
+
load: async () => (await import("./policy-DoHkOOTQ.js")).policyBundle
|
|
190
190
|
})]),
|
|
191
191
|
group("claims", "Measure the memberships claim of an access token", "claims", [leaf("size", "Report claim bytes, token characters and the budget cut", {
|
|
192
192
|
examples: ["permdock claims size --memberships 60", "permdock claims size --memberships 11 --roles 3 --json"],
|
|
193
193
|
docs: "claims",
|
|
194
194
|
effects: [],
|
|
195
195
|
config: false,
|
|
196
|
-
load: async () => (await import("./size-
|
|
196
|
+
load: async () => (await import("./size-CY6rK6l9.js")).claimsSize
|
|
197
197
|
})]),
|
|
198
198
|
leaf("config", "Check permdock.config.ts for unknown keys, or print the effective config", {
|
|
199
199
|
examples: ["permdock config", "permdock config --print"],
|
|
@@ -201,7 +201,7 @@ const SECTIONS = [
|
|
|
201
201
|
effects: [],
|
|
202
202
|
config: true,
|
|
203
203
|
findings: true,
|
|
204
|
-
load: async () => (await import("./config-
|
|
204
|
+
load: async () => (await import("./config-CoYhD6ur.js")).config
|
|
205
205
|
})
|
|
206
206
|
]
|
|
207
207
|
},
|
|
@@ -214,7 +214,7 @@ const SECTIONS = [
|
|
|
214
214
|
docs: "rls",
|
|
215
215
|
effects: ["files", "database:read"],
|
|
216
216
|
config: true,
|
|
217
|
-
load: async () => (await import("./rls-
|
|
217
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).importPolicies
|
|
218
218
|
}),
|
|
219
219
|
leaf("verify", "Run the fixtures against the policies, or compare a live database", {
|
|
220
220
|
examples: [
|
|
@@ -226,28 +226,35 @@ const SECTIONS = [
|
|
|
226
226
|
effects: ["files", "database:read"],
|
|
227
227
|
config: true,
|
|
228
228
|
findings: true,
|
|
229
|
-
load: async () => (await import("./rls-
|
|
229
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).verify
|
|
230
230
|
}),
|
|
231
231
|
leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
|
|
232
232
|
examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
|
|
233
233
|
docs: "rls",
|
|
234
234
|
effects: ["rewrite", "files"],
|
|
235
235
|
config: true,
|
|
236
|
-
load: async () => (await import("./rls-
|
|
236
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).migrate
|
|
237
237
|
}),
|
|
238
238
|
leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
|
|
239
239
|
examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
|
|
240
240
|
docs: "rls",
|
|
241
241
|
effects: ["database:read"],
|
|
242
242
|
config: true,
|
|
243
|
-
load: async () => (await import("./rls-
|
|
243
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).explain
|
|
244
|
+
}),
|
|
245
|
+
leaf("measure", "Run requests as a user and count version reads, helper times and share keys", {
|
|
246
|
+
examples: ["permdock rls measure --as <user-id> --local", "permdock rls measure --as <user-id>,<user-id> --tenant <tenant-id> --requests 50 --db-url-stdin"],
|
|
247
|
+
docs: "rls",
|
|
248
|
+
effects: ["database:read"],
|
|
249
|
+
config: true,
|
|
250
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).measure
|
|
244
251
|
}),
|
|
245
252
|
leaf("report", "List each table's policies by command, role, origin and helper calls", {
|
|
246
253
|
examples: ["permdock rls report", "permdock rls report --local --json"],
|
|
247
254
|
docs: "rls",
|
|
248
255
|
effects: ["database:read"],
|
|
249
256
|
config: true,
|
|
250
|
-
load: async () => (await import("./rls-
|
|
257
|
+
load: async () => (await import("./rls-BzCz7ZV0.js")).report
|
|
251
258
|
})
|
|
252
259
|
]),
|
|
253
260
|
group("supabase", "Generate the Supabase Custom Access Token Hook, or inspect its manifest", "supabase", [leaf("inspect", "Print or write the hook and helper manifest", {
|
|
@@ -255,14 +262,14 @@ const SECTIONS = [
|
|
|
255
262
|
docs: "supabase",
|
|
256
263
|
effects: ["files"],
|
|
257
264
|
config: true,
|
|
258
|
-
load: async () => (await import("./supabase-
|
|
265
|
+
load: async () => (await import("./supabase-BNPS-Gr1.js")).inspect
|
|
259
266
|
})]),
|
|
260
267
|
group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
|
|
261
268
|
examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
|
|
262
269
|
docs: "powersync",
|
|
263
270
|
effects: ["database:read"],
|
|
264
271
|
config: true,
|
|
265
|
-
load: async () => (await import("./powersync-
|
|
272
|
+
load: async () => (await import("./powersync-Cz3MUw6R.js")).verify
|
|
266
273
|
})])
|
|
267
274
|
]
|
|
268
275
|
},
|
|
@@ -275,13 +282,13 @@ const SECTIONS = [
|
|
|
275
282
|
effects: ["files"],
|
|
276
283
|
config: true,
|
|
277
284
|
findings: true,
|
|
278
|
-
load: async () => (await import("./openapi-
|
|
285
|
+
load: async () => (await import("./openapi-Bfakk4cF.js")).annotateRoutes
|
|
279
286
|
}), leaf("import", "Turn an OpenAPI document into a generated definition", {
|
|
280
287
|
examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
|
|
281
288
|
docs: "openapi",
|
|
282
289
|
effects: ["files", "network"],
|
|
283
290
|
config: false,
|
|
284
|
-
load: async () => (await import("./openapi-
|
|
291
|
+
load: async () => (await import("./openapi-Bfakk4cF.js")).importDocument
|
|
285
292
|
})]),
|
|
286
293
|
group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
|
|
287
294
|
examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
|
|
@@ -289,7 +296,7 @@ const SECTIONS = [
|
|
|
289
296
|
effects: [],
|
|
290
297
|
config: true,
|
|
291
298
|
findings: true,
|
|
292
|
-
load: async () => (await import("./arazzo-
|
|
299
|
+
load: async () => (await import("./arazzo-BUXKjylF.js")).check
|
|
293
300
|
})]),
|
|
294
301
|
leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
|
|
295
302
|
examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
|
|
@@ -297,7 +304,7 @@ const SECTIONS = [
|
|
|
297
304
|
effects: [],
|
|
298
305
|
config: true,
|
|
299
306
|
findings: true,
|
|
300
|
-
load: async () => (await import("./scan-
|
|
307
|
+
load: async () => (await import("./scan-Cn79IAJs.js")).scan
|
|
301
308
|
}),
|
|
302
309
|
group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
|
|
303
310
|
examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
|
|
@@ -311,7 +318,7 @@ const SECTIONS = [
|
|
|
311
318
|
docs: "casbin",
|
|
312
319
|
effects: ["files"],
|
|
313
320
|
config: false,
|
|
314
|
-
load: async () => (await import("./casbin-
|
|
321
|
+
load: async () => (await import("./casbin-CM9mWO1V.js")).casbinImport
|
|
315
322
|
})])
|
|
316
323
|
]
|
|
317
324
|
},
|
|
@@ -323,34 +330,34 @@ const SECTIONS = [
|
|
|
323
330
|
docs: "login",
|
|
324
331
|
effects: ["network", "files"],
|
|
325
332
|
config: false,
|
|
326
|
-
load: async () => (await import("./login-
|
|
333
|
+
load: async () => (await import("./login-xgjt0a5o.js")).login
|
|
327
334
|
}),
|
|
328
335
|
leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
|
|
329
336
|
examples: ["permdock logout"],
|
|
330
337
|
docs: "login",
|
|
331
338
|
effects: ["network", "files"],
|
|
332
339
|
config: false,
|
|
333
|
-
load: async () => (await import("./login-
|
|
340
|
+
load: async () => (await import("./login-xgjt0a5o.js")).logout
|
|
334
341
|
}),
|
|
335
342
|
leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
|
|
336
343
|
examples: ["permdock whoami", "permdock whoami --json"],
|
|
337
344
|
docs: "login",
|
|
338
345
|
effects: [],
|
|
339
346
|
config: false,
|
|
340
|
-
load: async () => (await import("./login-
|
|
347
|
+
load: async () => (await import("./login-xgjt0a5o.js")).whoami
|
|
341
348
|
}),
|
|
342
349
|
group("cloud", "Publish to or pull from a PermDock Cloud project", "cloud", [leaf("push", "Publish the catalog, policy and manifest to a Cloud project", {
|
|
343
350
|
examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
|
|
344
351
|
docs: "cloud",
|
|
345
352
|
effects: ["network", "cloud:write"],
|
|
346
353
|
config: true,
|
|
347
|
-
load: async () => (await import("./cloud-
|
|
354
|
+
load: async () => (await import("./cloud-CNGblWX0.js")).push
|
|
348
355
|
}), leaf("pull", "Write a Cloud project's published catalog and manifest", {
|
|
349
356
|
examples: ["permdock cloud pull --project prj_123"],
|
|
350
357
|
docs: "cloud",
|
|
351
358
|
effects: ["network", "files"],
|
|
352
359
|
config: true,
|
|
353
|
-
load: async () => (await import("./cloud-
|
|
360
|
+
load: async () => (await import("./cloud-CNGblWX0.js")).pull
|
|
354
361
|
})])
|
|
355
362
|
]
|
|
356
363
|
},
|
|
@@ -365,7 +372,7 @@ const SECTIONS = [
|
|
|
365
372
|
docs: "codemod",
|
|
366
373
|
effects: ["rewrite"],
|
|
367
374
|
config: false,
|
|
368
|
-
load: async () => (await import("./codemod-
|
|
375
|
+
load: async () => (await import("./codemod-BtJFcsD7.js")).codemod
|
|
369
376
|
})]
|
|
370
377
|
}
|
|
371
378
|
];
|
|
@@ -377,7 +384,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
|
|
|
377
384
|
config: false,
|
|
378
385
|
shellOutput: true,
|
|
379
386
|
hidden: true,
|
|
380
|
-
load: async () => (await import("./completion-
|
|
387
|
+
load: async () => (await import("./completion-BIN9YXIe.js")).complete
|
|
381
388
|
});
|
|
382
389
|
const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
|
|
383
390
|
/** Each leaf with its path from the root, in manifest order. */
|
|
@@ -368,6 +368,13 @@ type SupabaseManifestRls = {
|
|
|
368
368
|
* manifest written before 0.31.
|
|
369
369
|
*/
|
|
370
370
|
readonly tenantPureHelpers?: readonly SupabaseManifestTenantHelper[];
|
|
371
|
+
/**
|
|
372
|
+
* The one-argument helpers a shared function may call with a literal key.
|
|
373
|
+
* Each reads the tenant from the token, so better-supabase's
|
|
374
|
+
* `permissionFilters` (which checks the key argument only) can list them.
|
|
375
|
+
* Absent from a manifest written before 0.34.
|
|
376
|
+
*/
|
|
377
|
+
readonly permissionFilters?: readonly SupabaseManifestPermissionFilter[];
|
|
371
378
|
readonly apiKeys?: {
|
|
372
379
|
readonly claim: string;
|
|
373
380
|
readonly scopes: string;
|
|
@@ -391,9 +398,21 @@ type SupabaseManifestTenantHelper = {
|
|
|
391
398
|
readonly name: string;
|
|
392
399
|
/** The argument that holds the permission or grant key (`text` or `text[]`). */
|
|
393
400
|
readonly keyArgument: string;
|
|
401
|
+
/**
|
|
402
|
+
* The zero-based position of `keyArgument`, which better-supabase's
|
|
403
|
+
* `permissionFilters` names. Absent from a manifest written before 0.33.
|
|
404
|
+
*/
|
|
405
|
+
readonly keyPosition?: number;
|
|
394
406
|
/** The argument that holds the tenant id; it must be the entry's tenant. */
|
|
395
407
|
readonly tenantArgument: string;
|
|
396
408
|
};
|
|
409
|
+
/** One entry of `rls.permissionFilters`. */
|
|
410
|
+
type SupabaseManifestPermissionFilter = {
|
|
411
|
+
/** `schema.name`. */
|
|
412
|
+
readonly name: string;
|
|
413
|
+
/** The zero-based position of the argument that holds the permission key. */
|
|
414
|
+
readonly keyPosition: number;
|
|
415
|
+
};
|
|
397
416
|
/** One entry of `rls.tableReads`. */
|
|
398
417
|
type SupabaseManifestTableRead = {
|
|
399
418
|
/** `schema.table`. */
|
|
@@ -403,15 +422,28 @@ type SupabaseManifestTableRead = {
|
|
|
403
422
|
* `permitted_<root>_ids_by_permission` alone; `row` otherwise.
|
|
404
423
|
*/
|
|
405
424
|
readonly share: "tenant" | "row";
|
|
406
|
-
/** The tenant column, for a `tenant` table
|
|
425
|
+
/** The tenant column, for a `tenant` table or one with `tenantFor`. */
|
|
407
426
|
readonly column?: string;
|
|
408
427
|
/** The keys the select policies pass to `permitted_<root>_ids_by_permission`. */
|
|
409
428
|
readonly permissions?: readonly string[];
|
|
410
429
|
/** Why the table is `row`. */
|
|
411
430
|
readonly rules?: readonly ("follows" | "via" | "walk" | "owner" | "condition" | "restrictive" | "fields" | "form" | "unknown")[];
|
|
412
431
|
/**
|
|
413
|
-
* For a `
|
|
414
|
-
*
|
|
432
|
+
* For a `row` table, the keys under which it reads as `tenant`: a permissive
|
|
433
|
+
* select policy checks `<column> in (select
|
|
434
|
+
* permitted_<root>_ids_by_permission('<key>'))` on one column, alone or as an
|
|
435
|
+
* `or` branch, so a caller who holds one of them reads every row of the
|
|
436
|
+
* tenant, whatever the other policies add. No restrictive select policy reads
|
|
437
|
+
* a column, and the table has no field view. A caller who holds none of them
|
|
438
|
+
* reads rows that differ per user.
|
|
439
|
+
*/
|
|
440
|
+
readonly tenantFor?: readonly string[];
|
|
441
|
+
/**
|
|
442
|
+
* Why the table is `row`: for each policy that makes it so, the policy, the
|
|
443
|
+
* file and the rule it breaks; for a `form` table, what keeps `codemod
|
|
444
|
+
* bsb-access-tags` from moving it, or the grant of each key its policies pass
|
|
445
|
+
* that keeps `permitted_<root>_ids_by_permission` from answering as the plain
|
|
446
|
+
* helper.
|
|
415
447
|
*/
|
|
416
448
|
readonly reason?: string;
|
|
417
449
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
2
2
|
import { n as copyJson, t as checkSchema } from "./json-schema-jtX26ydD.js";
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
4
|
-
import { t as supabaseManifestSchema } from "./manifest-schema-
|
|
4
|
+
import { t as supabaseManifestSchema } from "./manifest-schema-N3v2RVL-.js";
|
|
5
5
|
// src/supabase/manifest.ts
|
|
6
6
|
/** Whether the manifest describes a token hook. */
|
|
7
7
|
function hasTokenHook(manifest) {
|
|
@@ -305,6 +305,10 @@ const supabaseManifestSchema = freezeDeep({
|
|
|
305
305
|
"unknown"
|
|
306
306
|
] }
|
|
307
307
|
},
|
|
308
|
+
tenantFor: {
|
|
309
|
+
type: "array",
|
|
310
|
+
items: { type: "string" }
|
|
311
|
+
},
|
|
308
312
|
reason: { type: "string" }
|
|
309
313
|
}
|
|
310
314
|
}
|
|
@@ -333,6 +337,22 @@ const supabaseManifestSchema = freezeDeep({
|
|
|
333
337
|
}
|
|
334
338
|
}
|
|
335
339
|
},
|
|
340
|
+
permissionFilters: {
|
|
341
|
+
description: "One-argument helpers a shared function may call with a literal key. Each reads the tenant from the token. Absent from a manifest written before 0.34.",
|
|
342
|
+
type: "array",
|
|
343
|
+
items: {
|
|
344
|
+
type: "object",
|
|
345
|
+
required: ["name", "keyPosition"],
|
|
346
|
+
additionalProperties: false,
|
|
347
|
+
properties: {
|
|
348
|
+
name: { type: "string" },
|
|
349
|
+
keyPosition: {
|
|
350
|
+
type: "integer",
|
|
351
|
+
minimum: 0
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
336
356
|
tenantPureHelpers: {
|
|
337
357
|
description: "Generated helpers whose answer for one tenant and key depends only on the caller's grants of that key in the tenant. Absent from a manifest written before 0.31.",
|
|
338
358
|
type: "array",
|
|
@@ -347,6 +367,10 @@ const supabaseManifestSchema = freezeDeep({
|
|
|
347
367
|
properties: {
|
|
348
368
|
name: { type: "string" },
|
|
349
369
|
keyArgument: { type: "string" },
|
|
370
|
+
keyPosition: {
|
|
371
|
+
type: "integer",
|
|
372
|
+
minimum: 0
|
|
373
|
+
},
|
|
350
374
|
tenantArgument: { type: "string" }
|
|
351
375
|
}
|
|
352
376
|
}
|
|
@@ -2,7 +2,7 @@ import { t as compact } from "./compact-C4LFuqbW.js";
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
3
|
import { a as getResource } from "./permission-registry-DstT40VS.js";
|
|
4
4
|
import { d as scopeList, p as tenantOf, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
5
|
-
import { i as expandSnapshot } from "./snapshot-compact-
|
|
5
|
+
import { i as expandSnapshot } from "./snapshot-compact-BWMLnIXK.js";
|
|
6
6
|
import { a as interactiveOnlyRefuses, n as coveredByDelegation, o as readOnlyActorRefuses } from "./delegation-0DVVomzu.js";
|
|
7
7
|
import { r as readWireValidity, t as isActive } from "./validity-YNEEm2MZ.js";
|
|
8
8
|
import { c as nowSeconds, l as partitionsOf, p as scopeField, r as isMembershipExpired, u as relatesTo } from "./tenancy-B5Xxt9Sc.js";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as JwtClaims,
|
|
2
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
3
|
-
import { m as ApprovalStore } from "../types-
|
|
1
|
+
import { $ as JwtClaims, Ar as Subject, D as Policy, Or as Principal, vt as TokenVerifier, wr as Delegation } from "../policy-types-BnBZvh7N.js";
|
|
2
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CllTzVJM.js";
|
|
3
|
+
import { m as ApprovalStore } from "../types-5cvjmHTG.js";
|
|
4
4
|
import { t as ClientNames } from "../clients-DGcyFDCc.js";
|
|
5
|
-
import { t as ApprovalHint } from "../errors-
|
|
6
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
+
import { t as ApprovalHint } from "../errors-BGosrHl8.js";
|
|
6
|
+
import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
|
|
7
7
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
8
8
|
import { t as RequestContext } from "../request-context-E3-ps-H_.js";
|
|
9
|
-
import { n as PermDockWrap } from "../wrap-
|
|
10
|
-
import { o as OtelWrap } from "../types-
|
|
11
|
-
import { W as JwtSubjectOptions } from "../types-
|
|
9
|
+
import { n as PermDockWrap } from "../wrap-CaAA3ubO.js";
|
|
10
|
+
import { o as OtelWrap } from "../types-BMKDvcXc.js";
|
|
11
|
+
import { W as JwtSubjectOptions } from "../types-B_I8TBA9.js";
|
|
12
12
|
import { CacheHint, Icon, McpServer, PromptCallback, ReadResourceCallback, ReadResourceTemplateCallback, RegisteredPrompt, RegisteredResource, RegisteredResourceTemplate, RegisteredTool, ResourceMetadata, ResourceTemplate, ScopeChallengeHandler, StandardSchemaWithJSON, ToolAnnotations, ToolCallback, Variables } from "@modelcontextprotocol/server";
|
|
13
13
|
/**
|
|
14
14
|
* The verified `AuthInfo` the MCP SDK's bearer auth puts on
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as refusalText, n as createAgentKernel } from "../kernel-
|
|
2
|
-
import { i as challengeScope, o as hasScope, s as scopesReaching, u as withApp } from "../permdock-
|
|
1
|
+
import { i as refusalText, n as createAgentKernel } from "../kernel-DSnWVZ0O.js";
|
|
2
|
+
import { i as challengeScope, o as hasScope, s as scopesReaching, u as withApp } from "../permdock-JM9TKevZ.js";
|
|
3
3
|
import { t as clientNameOf } from "../clients-Bb_33pRE.js";
|
|
4
4
|
import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
5
5
|
import { n as delegationFrom, t as authorizationDetailsOf } from "../delegation-input-7Y5Rlja7.js";
|