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
|
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
async function runRls(input) {
|
|
197
|
-
return (await import("./rls-
|
|
197
|
+
return (await import("./rls-rk-QH4fc.js")).runRls(input);
|
|
198
198
|
}
|
|
199
199
|
({
|
|
200
200
|
...shapeFlags,
|
|
@@ -303,9 +303,9 @@ const report = defineLeaf({
|
|
|
303
303
|
async run(ctx, { flags }) {
|
|
304
304
|
const db = await dbUrl(ctx, flags);
|
|
305
305
|
const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
|
|
306
|
-
import("./report-
|
|
306
|
+
import("./report-DF0zUNut.js"),
|
|
307
307
|
import("./pg-DtiDogUp.js"),
|
|
308
|
-
import("./table-reads-
|
|
308
|
+
import("./table-reads-Ci-ZVo5m.js")
|
|
309
309
|
]);
|
|
310
310
|
return runRlsReport({
|
|
311
311
|
cwd: ctx.cwd,
|
|
@@ -318,6 +318,53 @@ const report = defineLeaf({
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
|
+
const measure = defineLeaf({
|
|
322
|
+
flags: {
|
|
323
|
+
...dbUrlFlags,
|
|
324
|
+
as: {
|
|
325
|
+
type: "string",
|
|
326
|
+
description: "Auth user id to run requests as; a comma separates several",
|
|
327
|
+
valueHint: "user"
|
|
328
|
+
},
|
|
329
|
+
tenant: {
|
|
330
|
+
type: "string",
|
|
331
|
+
description: "Measure one tenant instead of each tenant of the user",
|
|
332
|
+
valueHint: "id"
|
|
333
|
+
},
|
|
334
|
+
requests: {
|
|
335
|
+
type: "string",
|
|
336
|
+
description: "Requests per user",
|
|
337
|
+
valueHint: "count"
|
|
338
|
+
},
|
|
339
|
+
tables: {
|
|
340
|
+
type: "string",
|
|
341
|
+
description: "Tables of rls.tableReads one request reads",
|
|
342
|
+
valueHint: "count"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
async run(ctx, { flags }) {
|
|
346
|
+
const users = (given(flags.as) ?? "").split(",").map((user) => user.trim()).filter((user) => user !== "");
|
|
347
|
+
if (users.length === 0) throw missingInput("rls measure", ["--as"], "the auth user id to run as");
|
|
348
|
+
const db = await dbUrl(ctx, flags, { required: true });
|
|
349
|
+
if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
|
|
350
|
+
const tenant = given(flags.tenant);
|
|
351
|
+
const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
|
|
352
|
+
import("./measure-DZtly0oE.js"),
|
|
353
|
+
import("./pg-DtiDogUp.js"),
|
|
354
|
+
import("./memberships-4e6qi8Uv.js")
|
|
355
|
+
]);
|
|
356
|
+
return runRlsMeasure({
|
|
357
|
+
cwd: ctx.cwd,
|
|
358
|
+
config: ctx.config,
|
|
359
|
+
db,
|
|
360
|
+
connect: pgConnector("permdock rls measure", ctx.cwd),
|
|
361
|
+
users,
|
|
362
|
+
...tenant === void 0 ? {} : { tenant },
|
|
363
|
+
requests: positiveInteger(given(flags.requests) ?? DEFAULT_REQUESTS, "--requests"),
|
|
364
|
+
tables: positiveInteger(given(flags.tables) ?? DEFAULT_TABLES, "--tables")
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
});
|
|
321
368
|
const migrate = defineLeaf({
|
|
322
369
|
flags: {
|
|
323
370
|
...shapeFlags,
|
|
@@ -346,4 +393,4 @@ const migrate = defineLeaf({
|
|
|
346
393
|
});
|
|
347
394
|
}
|
|
348
395
|
});
|
|
349
|
-
export { explain, importPolicies, migrate, report, verify };
|
|
396
|
+
export { explain, importPolicies, measure, migrate, report, verify };
|
|
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { m as seedsMigration, p as seedDeltaNote } from "./output-files-8lfALMSU.js";
|
|
5
5
|
import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
|
|
6
|
-
import { t as runRlsGenerate } from "./generate-
|
|
6
|
+
import { t as runRlsGenerate } from "./generate-BSD_eI61.js";
|
|
7
7
|
import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
// src/cli/generate/plugins/rls-options.ts
|
|
9
9
|
function seedMode(seeds) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-
|
|
1
|
+
import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-CyawIkMF.js";
|
|
2
2
|
/**
|
|
3
3
|
* `rls.seeds` as a mode, or `false` to skip the rows, or where they are
|
|
4
4
|
* written.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "./sources-
|
|
1
|
+
import "./sources-C6Id63F8.js";
|
|
2
2
|
import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
4
4
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
5
|
-
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
6
|
-
import { o as nonEmptyOr } from "./output-
|
|
5
|
+
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-_ubYYw9i.js";
|
|
6
|
+
import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
|
|
7
7
|
import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
|
|
8
|
-
import { n as describeExplain, t as runRlsGenerate } from "./generate-
|
|
9
|
-
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-
|
|
8
|
+
import { n as describeExplain, t as runRlsGenerate } from "./generate-BSD_eI61.js";
|
|
9
|
+
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-nR1gQhXo.js";
|
|
10
10
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
|
-
import { a as helperCallKeys, i as callsHelper, t as HELPER_TABLES } from "./helper-calls-
|
|
13
|
-
import { u as isPlatformSchema } from "./report-
|
|
14
|
-
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-
|
|
15
|
-
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-
|
|
16
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
17
|
-
import { n as configuredTableReads } from "./table-reads-
|
|
12
|
+
import { a as helperCallKeys, i as callsHelper, t as HELPER_TABLES } from "./helper-calls-B5MOl99d.js";
|
|
13
|
+
import { u as isPlatformSchema } from "./report-XdCm1y_J.js";
|
|
14
|
+
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CwFej4gp.js";
|
|
15
|
+
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-ZojGAC3f.js";
|
|
16
|
+
import { r as parseRbacAuthorize } from "./rbac-BRMnQ9Rl.js";
|
|
17
|
+
import { n as configuredTableReads } from "./table-reads-B7z40Yu-.js";
|
|
18
18
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
19
19
|
import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
|
|
20
20
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
@@ -913,7 +913,7 @@ async function migrate(input) {
|
|
|
913
913
|
code: 2,
|
|
914
914
|
output: generated.output
|
|
915
915
|
};
|
|
916
|
-
const { migrateTarget, runRlsMigrate } = await import("./migrate-
|
|
916
|
+
const { migrateTarget, runRlsMigrate } = await import("./migrate-BXk_rUmb.js");
|
|
917
917
|
return runRlsMigrate({
|
|
918
918
|
cwd: input.cwd,
|
|
919
919
|
sql: input.sql,
|
|
@@ -1073,7 +1073,7 @@ async function runRls(input) {
|
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
case "import": {
|
|
1076
|
-
const { runRlsImport } = await import("./import-
|
|
1076
|
+
const { runRlsImport } = await import("./import-Bz6IKoMM.js");
|
|
1077
1077
|
return runRlsImport({
|
|
1078
1078
|
cwd: input.cwd,
|
|
1079
1079
|
config: input.config,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
|
-
import { t as adapterKernel } from "./bind-
|
|
2
|
+
import { t as adapterKernel } from "./bind-DPptdk31.js";
|
|
3
3
|
import { n as tenantScope } from "./adapter-context-lHq_i_77.js";
|
|
4
4
|
import { s as requestFromContext } from "./http-C9jDw_bZ.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-DdF94h7T.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
2
|
-
import { o as ProtectOptions } from "./server-types-
|
|
2
|
+
import { o as ProtectOptions } from "./server-types-BlMijUtb.js";
|
|
3
3
|
type StreamProtectOptions = ProtectOptions & {
|
|
4
4
|
/**
|
|
5
5
|
* For a procedure that returns an async iterable: each outbound item is
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-DTz-e3Od.js";
|
|
@@ -3,9 +3,9 @@ import { a as readConfig, l as withPluginOutputs, s as resolveCwd } from "./conf
|
|
|
3
3
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
4
4
|
import { a as describeError, n as CliError, r as cliFailure, s as failureOf, u as kindOfCode } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { a as suggestion, i as parseLeaf, o as GLOBAL_FLAGS, r as parseFlags } from "./args-BSpXxMnb.js";
|
|
6
|
-
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-
|
|
6
|
+
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-D4FLF3_v.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-6ZWbJ-Re.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-BUeAHWDT.js";
|
|
9
9
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
10
10
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
11
11
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { v as PrincipalSource } from "./permdock-
|
|
1
|
+
import { Ar as Subject, Or as Principal, _t as TokenSigner, br as AuthorizationDetail, gn as AuthEvent, gt as TokenFailureCause, qt as Instant, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-BnBZvh7N.js";
|
|
2
|
+
import { v as PrincipalSource } from "./permdock-V86uejcm.js";
|
|
3
3
|
/**
|
|
4
4
|
* What started the run: a saved automation, a background job, or a caller's own
|
|
5
5
|
* request.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
1
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-xPyAmuXi.js";
|
|
2
2
|
import { a as deny, n as role, r as allow } from "./role-builder-BksM3Q9O.js";
|
|
3
3
|
import { l as relation, n as anyone } from "./grantee-BSCdpIF3.js";
|
|
4
|
-
import { r as definePolicy } from "./policy-
|
|
4
|
+
import { r as definePolicy } from "./policy-CZBJDcTx.js";
|
|
5
5
|
import { i as principal } from "./refs-Cix9Zjis.js";
|
|
6
|
-
import {
|
|
6
|
+
import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-BXDohWNO.js";
|
|
7
7
|
import { s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
8
8
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
9
9
|
import { h as secondsAt } from "./time-r0CKBm57.js";
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-BPW1eWy5.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as require__2020 } from "./2020-DBXhfpuK.js";
|
|
2
2
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
|
|
4
|
-
import { o as nonEmptyOr } from "./output-
|
|
4
|
+
import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
package/dist/scim/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as SqlQuery } from "../sql-BYYNi1lu.js";
|
|
2
|
-
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-
|
|
2
|
+
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-Co_e22iJ.js";
|
|
3
3
|
export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|
package/dist/seeds/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as defineSeeds, i as Seeds, n as SeedInput, r as SeedRole, t as SeedFixtures } from "../seeds-
|
|
1
|
+
import { a as defineSeeds, i as Seeds, n as SeedInput, r as SeedRole, t as SeedFixtures } from "../seeds-DLjPbhvM.js";
|
|
2
2
|
export { type SeedFixtures, type SeedInput, type SeedRole, type Seeds, defineSeeds };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-
|
|
2
|
-
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-
|
|
1
|
+
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-BKgVVMc1.js";
|
|
2
|
+
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-BGosrHl8.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-E3-ps-H_.js";
|
|
4
|
-
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-
|
|
4
|
+
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-Dl0-R2aB.js";
|
|
5
5
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-ku_f2d2y.js";
|
|
6
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
7
|
-
import { i as evaluationsHandler } from "../evaluations-
|
|
8
|
-
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-
|
|
9
|
-
import { l as ReplayStore } from "../types-
|
|
10
|
-
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-
|
|
11
|
-
import { t as memoryReplayStore } from "../replay-
|
|
12
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
6
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-BlMijUtb.js";
|
|
7
|
+
import { i as evaluationsHandler } from "../evaluations-CaXNkxTp.js";
|
|
8
|
+
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-BO5f180f.js";
|
|
9
|
+
import { l as ReplayStore } from "../types-B_I8TBA9.js";
|
|
10
|
+
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-D6SPYjSQ.js";
|
|
11
|
+
import { t as memoryReplayStore } from "../replay-Dg5-l7xu.js";
|
|
12
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-CVYqOThu.js";
|
|
13
13
|
import { n as TenantSlugResolver, r as tenantFromPath, t as TenantFromPathOptions } from "../tenant-from-path-Dq3jkqjh.js";
|
|
14
|
-
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-
|
|
14
|
+
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-mVPqm6M6.js";
|
|
15
15
|
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantFromPathOptions, type TenantOption, type TenantScope, type TenantSlugResolver, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantFromPath, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
|
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-3jyzniOz.js";
|
|
4
4
|
import { n as tenantScope } from "../adapter-context-lHq_i_77.js";
|
|
5
5
|
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BZB7zPC7.js";
|
|
6
|
-
import { t as createPermDock } from "../create-
|
|
6
|
+
import { t as createPermDock } from "../create-BMRnaZel.js";
|
|
7
7
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, h as invalidSignatureResponse, m as invalidSignatureProblem, o as evaluationsHandler, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
8
8
|
import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-B-hsgB4W.js";
|
|
9
9
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { m as ApprovalStore } from "./types-
|
|
2
|
-
import {
|
|
3
|
-
import { a as ProblemDetails, t as ApprovalHint } from "./errors-
|
|
4
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
5
|
-
import { a as PermDock, u as SnapshotOptions } from "./permdock-
|
|
1
|
+
import { m as ApprovalStore } from "./types-5cvjmHTG.js";
|
|
2
|
+
import { Ar as Subject, Er as JsonWebKeyLike, N as PolicyVocabulary, Q as Intent, ir as Decision, pn as SnapshotTenants, qt as Instant, rn as Snapshot, vr as Actor } from "./policy-types-BnBZvh7N.js";
|
|
3
|
+
import { a as ProblemDetails, t as ApprovalHint } from "./errors-BGosrHl8.js";
|
|
4
|
+
import { t as InstanceOptions } from "./instance-options-hq5Cp2Ih.js";
|
|
5
|
+
import { a as PermDock, u as SnapshotOptions } from "./permdock-V86uejcm.js";
|
|
6
6
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-E3-ps-H_.js";
|
|
8
8
|
import { n as RevocationFeed } from "./revocations-ku_f2d2y.js";
|
|
9
|
-
import { n as PermDockWrap } from "./wrap-
|
|
10
|
-
import { r as PdpFactory } from "./types-
|
|
11
|
-
import { i as evaluationsHandler } from "./evaluations-
|
|
9
|
+
import { n as PermDockWrap } from "./wrap-CaAA3ubO.js";
|
|
10
|
+
import { r as PdpFactory } from "./types-CrUguLsE.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-CaXNkxTp.js";
|
|
12
12
|
type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
|
|
13
13
|
type ConnectionOptions<T = unknown> = {
|
|
14
14
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
2
|
+
import { p as tenantOf } from "./scopes-B-KX9EI8.js";
|
|
3
|
+
// src/core/share-key-claims.ts
|
|
4
|
+
/**
|
|
5
|
+
* Claims that mark a token's other lists as cut. A share key exists for no
|
|
6
|
+
* token that carries one.
|
|
7
|
+
*/
|
|
8
|
+
const OTHER_TRUNCATED_CLAIMS = ["team_ids_truncated", "permissions_truncated"];
|
|
9
|
+
/**
|
|
10
|
+
* Whether a token whose `memberships` the budget cut still holds every
|
|
11
|
+
* membership of `tenant`. The hook ranks the active tenant's entries first and
|
|
12
|
+
* keeps a prefix, so a kept entry outside `tenant` means the prefix passed all
|
|
13
|
+
* of them. With only `tenant` entries, or none, the cut may have fallen inside
|
|
14
|
+
* them and the answer is no.
|
|
15
|
+
*/
|
|
16
|
+
function holdsActiveTenant(claims, tenant, scopes) {
|
|
17
|
+
return readMemberships(claims["memberships"]).memberships.some((membership) => tenantOf(membership, scopes) !== tenant);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* What the claims alone decide about a share key for `tenant`: no other list is
|
|
21
|
+
* cut, and the memberships are whole or provably whole for the tenant. The live
|
|
22
|
+
* version check and `widened` keys can still refuse it.
|
|
23
|
+
*/
|
|
24
|
+
function shareKeyClaimsEligible(claims, tenant, scopes) {
|
|
25
|
+
if (OTHER_TRUNCATED_CLAIMS.some((name) => claims[name] === true)) return false;
|
|
26
|
+
return claims["memberships_truncated"] !== true || holdsActiveTenant(claims, tenant, scopes);
|
|
27
|
+
}
|
|
28
|
+
export { holdsActiveTenant as n, shareKeyClaimsEligible as r, OTHER_TRUNCATED_CLAIMS as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as subjectIdSql } from "./subject-
|
|
1
|
+
import { f as subjectIdSql } from "./subject-B7p94Y0s.js";
|
|
2
2
|
// src/cli/sql/shared.ts
|
|
3
3
|
/** `rls.customRoles` turns custom roles on as `true` or as an object. */
|
|
4
4
|
function customRolesOn(rls) {
|
|
@@ -44,6 +44,7 @@ const CUSTOM_ROLES = {
|
|
|
44
44
|
trustedReadById: "permdock_trusted_role_permissions_by_id",
|
|
45
45
|
cascade: "permdock_cascade_custom_role",
|
|
46
46
|
nameGuard: "permdock_custom_role_name_guard",
|
|
47
|
+
systemGuard: "permdock_custom_role_system_guard",
|
|
47
48
|
sync: "permdock_sync_custom_role",
|
|
48
49
|
shared: "permdock_is_shared_role",
|
|
49
50
|
compiled: "custom_role_compiled",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { K as AppData } from "./vocabulary-DHfKPIC5.js";
|
|
2
|
-
import { t as Automation } from "./automation-
|
|
3
|
-
import {
|
|
2
|
+
import { t as Automation } from "./automation-BqUmdFfe.js";
|
|
3
|
+
import { En as SinkEvent, Mt as Credential, Tn as MembershipEvent, Tt as SupportSession, X as DecisionSink, _n as AutomationEvent, _t as TokenSigner, hn as AccessEvent, vn as CredentialEvent } from "./policy-types-BnBZvh7N.js";
|
|
4
4
|
import { u as OperationRisk } from "./operations-DaEoGpMV.js";
|
|
5
5
|
/**
|
|
6
6
|
* The closed list of CloudEvents `type` values, `com.permdock.<family>` or
|
|
@@ -38,7 +38,7 @@ const snapshotSize = defineLeaf({
|
|
|
38
38
|
},
|
|
39
39
|
async run(ctx, { flags }) {
|
|
40
40
|
try {
|
|
41
|
-
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-
|
|
41
|
+
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-D6ixbYvH.js");
|
|
42
42
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
43
43
|
return runSnapshotSize({
|
|
44
44
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -79,7 +79,7 @@ const claimsSize = defineLeaf({
|
|
|
79
79
|
},
|
|
80
80
|
async run(ctx, { flags }) {
|
|
81
81
|
try {
|
|
82
|
-
const { runClaimsSize } = await import("./claims-size-
|
|
82
|
+
const { runClaimsSize } = await import("./claims-size-C6oKGuOM.js");
|
|
83
83
|
return runClaimsSize({
|
|
84
84
|
memberships: count(flags.memberships, 11),
|
|
85
85
|
roles: count(flags.roles, 1),
|
|
@@ -103,7 +103,7 @@ const bundleSize = defineLeaf({
|
|
|
103
103
|
},
|
|
104
104
|
async run(ctx, { flags }) {
|
|
105
105
|
try {
|
|
106
|
-
const { runBundleSize } = await import("./bundle-size-
|
|
106
|
+
const { runBundleSize } = await import("./bundle-size-BRFeBvuv.js");
|
|
107
107
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
108
108
|
return runBundleSize({
|
|
109
109
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-DQzNPxg1.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-CPlJn_4-.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-oZ8Ng2e7.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as byCodePoint } from "./compare-dfHDj8kT.js";
|
|
2
2
|
import { t as didYouMean } from "./args-BSpXxMnb.js";
|
|
3
|
-
import { o as nonEmptyOr } from "./output-
|
|
3
|
+
import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
|
|
4
4
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync } from "node:fs";
|
|
@@ -6,7 +6,7 @@ import { o as listPlans, s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
|
6
6
|
import { g as secondsOf, l as isRfc3339, m as rfc3339, p as nowSeconds } from "./time-r0CKBm57.js";
|
|
7
7
|
import { i as sameId } from "./ids-0QDIxtxL.js";
|
|
8
8
|
import { d as scopeList, p as tenantOf, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
9
|
-
import { r as expandGrants, t as checkHeader } from "./snapshot-compact-
|
|
9
|
+
import { r as expandGrants, t as checkHeader } from "./snapshot-compact-BWMLnIXK.js";
|
|
10
10
|
import { r as requiresTable } from "./snapshot-requires-DfUqCLEb.js";
|
|
11
11
|
import { i as wireValidity } from "./validity-YNEEm2MZ.js";
|
|
12
12
|
import { d as resolveActiveTenant, m as tenantsOf, r as isMembershipExpired } from "./tenancy-B5Xxt9Sc.js";
|
|
@@ -357,6 +357,12 @@ function validStatic(value, memberships) {
|
|
|
357
357
|
if (!Array.isArray(held) || digests === null || typeof digests !== "object" || Array.isArray(digests)) return false;
|
|
358
358
|
return held.every((item) => Array.isArray(item) && item.length === 2 && typeof item[0] === "string" && (item[1] === null || Number.isInteger(item[1]) && item[1] >= 0 && item[1] < memberships)) && Object.values(digests).every(isDigest) && (record["shared"] === void 0 || isDigest(record["shared"]));
|
|
359
359
|
}
|
|
360
|
+
function validCustom(value, memberships) {
|
|
361
|
+
if (value === void 0) return true;
|
|
362
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
363
|
+
const held = Reflect.get(value, "held");
|
|
364
|
+
return Array.isArray(held) && held.every((item) => Array.isArray(item) && item.length === 3 && typeof item[0] === "string" && (item[1] === null || Number.isInteger(item[1]) && item[1] >= 0 && item[1] < memberships) && isDigest(item[2]));
|
|
365
|
+
}
|
|
360
366
|
/**
|
|
361
367
|
* Validates a snapshot document, from JSON text or a value, and returns it
|
|
362
368
|
* frozen. Throws on an unsupported `v`, a malformed time, `typeLevel` or grant
|
|
@@ -379,6 +385,7 @@ function parseSnapshot(json) {
|
|
|
379
385
|
const principal = subject !== null && typeof subject === "object" ? Reflect.get(subject, "principal") : void 0;
|
|
380
386
|
const memberships = principal !== null && typeof principal === "object" ? Reflect.get(principal, "memberships") : void 0;
|
|
381
387
|
if (!validStatic(record["static"], Array.isArray(memberships) ? memberships.length : 0)) throw new Error("PermDock: snapshot static must list [role, membership index] pairs and sha-256 digests");
|
|
388
|
+
if (!validCustom(record["custom"], Array.isArray(memberships) ? memberships.length : 0)) throw new Error("PermDock: snapshot custom must list [role, membership index, digest] triples with sha-256 digests");
|
|
382
389
|
expandGrants(record);
|
|
383
390
|
checkHeader(record);
|
|
384
391
|
return freezeDeep(value);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
2
2
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
4
|
+
import { d as scopeList, p as tenantOf } from "./scopes-B-KX9EI8.js";
|
|
4
5
|
import { i as withoutRequirement, n as requirementPlacer } from "./snapshot-requires-DfUqCLEb.js";
|
|
5
6
|
// src/core/snapshot-bits.ts
|
|
6
7
|
/**
|
|
@@ -252,7 +253,7 @@ function wireTypeLevel(table, bundle) {
|
|
|
252
253
|
* `ClientBundle`; with `bundle`, the vocabulary, scopes and key table the
|
|
253
254
|
* bundle carries are left out and `bundle` names its digest.
|
|
254
255
|
*/
|
|
255
|
-
function compactSnapshot(snapshot, held, bundle) {
|
|
256
|
+
function compactSnapshot(snapshot, held, bundle, custom) {
|
|
256
257
|
const { grants, assignable, requires, typeLevel, subject, v: _v, ...rest } = snapshot;
|
|
257
258
|
const memberships = subject.principal?.memberships ?? [];
|
|
258
259
|
const memberAt = /* @__PURE__ */ new Map();
|
|
@@ -334,7 +335,8 @@ function compactSnapshot(snapshot, held, bundle) {
|
|
|
334
335
|
cond: refs.length === 1 && typeof only === "number" ? only : refs
|
|
335
336
|
};
|
|
336
337
|
}),
|
|
337
|
-
...held === void 0 ? {} : { static: held }
|
|
338
|
+
...held === void 0 ? {} : { static: held },
|
|
339
|
+
...custom === void 0 ? {} : { custom }
|
|
338
340
|
});
|
|
339
341
|
}
|
|
340
342
|
function bad(detail) {
|
|
@@ -521,8 +523,37 @@ function staticGrants(snapshot, header, bundle) {
|
|
|
521
523
|
}
|
|
522
524
|
return out;
|
|
523
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* The grants `custom` names, from the record of each tenant. A role a record
|
|
528
|
+
* lacks, or holds under another digest, resolves to nothing, so a stale record
|
|
529
|
+
* denies.
|
|
530
|
+
*/
|
|
531
|
+
function customGrants(snapshot, header, records) {
|
|
532
|
+
const held = snapshot.custom;
|
|
533
|
+
if (held === void 0 || records.length === 0) return [];
|
|
534
|
+
const memberships = header.subject.principal?.memberships ?? [];
|
|
535
|
+
const scopes = scopeList(header.scopes);
|
|
536
|
+
const place = requirementPlacer(header.requires, memberships);
|
|
537
|
+
const out = [];
|
|
538
|
+
for (const [role, index, digest] of held.held) {
|
|
539
|
+
const membership = index === null ? void 0 : memberships[index];
|
|
540
|
+
if (index !== null && membership === void 0) continue;
|
|
541
|
+
const tenant = membership === void 0 ? null : tenantOf(membership, scopes) ?? null;
|
|
542
|
+
const entry = records.find((record) => record.tenant === tenant)?.roles[role];
|
|
543
|
+
if (entry === void 0 || entry.digest !== digest) continue;
|
|
544
|
+
for (const { permission, ...terms } of entry.grants) out.push(membership === void 0 ? {
|
|
545
|
+
permission,
|
|
546
|
+
...place(terms)
|
|
547
|
+
} : {
|
|
548
|
+
permission,
|
|
549
|
+
...place(terms),
|
|
550
|
+
membership
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
return out;
|
|
554
|
+
}
|
|
524
555
|
function readHeader(snapshot, bundle) {
|
|
525
|
-
const { conditions: _conditions, lists: _lists, grants: _grants, static: _static, permissions: _permissions, assignable: _assignable, shapes: _shapes, requires: _requires, bundle: _bundle, typeLevel: wireTable, subject, ...rest } = snapshot;
|
|
556
|
+
const { conditions: _conditions, lists: _lists, grants: _grants, static: _static, custom: _custom, permissions: _permissions, assignable: _assignable, shapes: _shapes, requires: _requires, bundle: _bundle, typeLevel: wireTable, subject, ...rest } = snapshot;
|
|
526
557
|
const memberships = membershipsOf(snapshot);
|
|
527
558
|
const requires = requiresOf(snapshot, memberships.length);
|
|
528
559
|
const vocabulary = rest.vocabulary ?? bundle?.vocabulary;
|
|
@@ -580,7 +611,7 @@ function expandSnapshot(snapshot, options = {}) {
|
|
|
580
611
|
});
|
|
581
612
|
const header = readHeader(snapshot, bundle);
|
|
582
613
|
const inline = expandGrants(snapshot).grants;
|
|
583
|
-
const held = staticGrants(snapshot, header, bundle);
|
|
614
|
+
const held = [...staticGrants(snapshot, header, bundle), ...customGrants(snapshot, header, options.customRoles ?? [])];
|
|
584
615
|
return freezeDeep({
|
|
585
616
|
...header,
|
|
586
617
|
grants: held.length === 0 ? inline : [...inline, ...held]
|
|
@@ -11,7 +11,7 @@ import { c as nowSeconds, f as rowInScope, n as inTeam, o as membershipField, r
|
|
|
11
11
|
import { o as epochSeconds, t as INVALID_NOW } from "./time-r0CKBm57.js";
|
|
12
12
|
import { i as tokenPayload, n as decisionToken } from "./token-CSljQqzA.js";
|
|
13
13
|
import { r as readWireValidity, t as isActive } from "./validity-YNEEm2MZ.js";
|
|
14
|
-
import { c as bindConditionRefs } from "./snapshot-
|
|
14
|
+
import { c as bindConditionRefs } from "./snapshot-Dzi4LR6n.js";
|
|
15
15
|
import { o as resourceRoleCondition } from "./grantee-conditions-Dob6QQAc.js";
|
|
16
16
|
// src/core/where-scope.ts
|
|
17
17
|
const ALWAYS = freezeDeep({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
|
-
import { t as filterMemberships } from "./membership-filter-
|
|
2
|
+
import { t as filterMemberships } from "./membership-filter-Bz9QX6E9.js";
|
|
3
3
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
4
|
-
import { o as heldRoleNames } from "./snapshot-
|
|
4
|
+
import { o as heldRoleNames } from "./snapshot-Dzi4LR6n.js";
|
|
5
5
|
import { l as synthesiseRole, r as findRole, s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
6
6
|
// src/core/snapshot-reads.ts
|
|
7
7
|
function assignableEntry(snapshot, tenant) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-
|
|
1
|
+
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-NklqBKcV.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
2
|
-
import { d as snapshotFor } from "./src-
|
|
2
|
+
import { d as snapshotFor } from "./src-BXDohWNO.js";
|
|
3
3
|
import { gzipSync } from "node:zlib";
|
|
4
4
|
// src/cli/snapshot-size.ts
|
|
5
5
|
/** The default budget of the PD112 doctor rule, in bytes of JSON. */
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
2
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-FT1oVN_o.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-BGosrHl8.js";
|
|
3
3
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
4
4
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
5
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
6
|
-
import {
|
|
7
|
-
import { d as UncheckedData, s as RowData } from "../permdock-
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-Bq7Qc9QM.js";
|
|
6
|
+
import { Dr as Membership, Jt as ClientBundle, N as PolicyVocabulary, ir as Decision, rn as Snapshot, rr as ApprovalRequiredDecision, ur as GrantedDecision, vt as TokenVerifier } from "../policy-types-BnBZvh7N.js";
|
|
7
|
+
import { d as UncheckedData, s as RowData } from "../permdock-V86uejcm.js";
|
|
8
8
|
import { r as Role, w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
9
9
|
import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
10
10
|
import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
|
package/dist/solid/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
3
3
|
import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-DiXulRVj.js";
|
|
4
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
4
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
5
5
|
import { a as gateView, c as protectedView, d as slotContent, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, o as livePermDock, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle, u as scopedTenant } from "../views-Dpr1uB16.js";
|
|
6
6
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
7
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
7
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-BizF6jyu.js";
|
|
8
8
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
9
9
|
import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
|
|
10
10
|
// src/solid/context.ts
|