permdock 0.31.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-9brJ_mUG.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-C0bltfjv.js → arazzo-BUXKjylF.js} +1 -1
- package/dist/{arazzo-Cs-3yoxR.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 +57 -14
- package/dist/better-supabase/index.js +29 -20
- 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-B1TBUQLj.js → bsb-access-tags-Nv4nDQ2U.js} +20 -44
- package/dist/{bsb-action-keys-iKmZChtQ.js → bsb-action-keys-CYEREFMg.js} +1 -1
- package/dist/{budgets-Dpumu_Dt.js → budgets-hi-ecgEd.js} +3 -3
- package/dist/{build-instance-CFiegi_w.js → build-instance-DZEWYO-A.js} +1 -1
- package/dist/bundle-size-BRFeBvuv.js +1 -0
- package/dist/{bundle-size-Ddhv_H_v.js → bundle-size-DbXV65Ix.js} +2 -2
- package/dist/{capability-BPzseilU.d.ts → capability-qoD_jlcI.d.ts} +1 -1
- package/dist/{casbin-s6_zDJi1.js → casbin-CM9mWO1V.js} +1 -1
- package/dist/{casbin-DGsO-QmR.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 +2 -2
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +3 -3
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{client-subject-BOPbpwgm.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-fRv3j6sq.js → cloud-CNGblWX0.js} +2 -2
- package/dist/{codemod-DT0dMVdd.js → codemod-BtJFcsD7.js} +8 -7
- package/dist/{codemod-DsqEKP6A.js → codemod-Dlhxov9D.js} +14 -11
- package/dist/{collect-CCgmm5xN.js → collect-CE5wK0AX.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-DNVVdVWs.js → compile-nR1gQhXo.js} +10 -9
- package/dist/{completion-DrJkWgZa.js → completion-BIN9YXIe.js} +1 -1
- package/dist/{config-D8iWeV9k.js → config-7QvEq57a.js} +2 -2
- package/dist/{config-BaKkd6HB.js → config-CoYhD6ur.js} +1 -1
- package/dist/{config-report-uuD5eVEn.js → config-report-D_L1HXDb.js} +3 -3
- package/dist/{context-Ne0EdD45.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-BBKC7Bt1.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-C1T2G2mn.js → doctor-Bn5OPJMB.js} +131 -44
- package/dist/{doctor-Ch4VGl2q.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-BhWXiQAy.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-CGjbD8I_.js → gen-Fi4GcvIY.js} +3 -3
- package/dist/{gen-kind-thoT0NYV.js → gen-kind-DR2-to9P.js} +1 -1
- package/dist/{generate-eor7vXGN.js → generate-BSD_eI61.js} +22 -17
- package/dist/{generate-vEW8Brg8.js → generate-QEHCJSyv.js} +3 -3
- package/dist/{generate-options-MJgn0dgl.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-DJQ_yOEC.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-CGQIK3iN.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-C6te_dSg.js → init-BOYIObRF.js} +3 -3
- package/dist/{init-DN19mlwE.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-BjYwp9mm.js → interactive-only-Bbq9e61G.js} +27 -182
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-C5akxw5n.js → kernel-DSnWVZ0O.js} +5 -5
- package/dist/{keys-qFqDoYeF.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-BYXaH_yT.js → login-Dv8TFykx.js} +1 -1
- package/dist/{login-CMzfsdm8.js → login-xgjt0a5o.js} +3 -3
- package/dist/{manager-chain-CStuYb7A.js → manager-chain-FggG63qD.js} +2 -2
- package/dist/{manifest-CowZuywo.js → manifest-BUeAHWDT.js} +45 -38
- package/dist/{manifest-CA3E0KP8.d.ts → manifest-BwhZ1s5b.d.ts} +71 -2
- package/dist/{manifest-DdNYR_pl.js → manifest-CIWOmdlP.js} +1 -1
- package/dist/{manifest-schema-CLbcbDz7.js → manifest-schema-N3v2RVL-.js} +68 -1
- 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-BqHWwfcg.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 +12 -11
- package/dist/next/index.js +4 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-BP7YpJeF.js → openapi-Bfakk4cF.js} +1 -1
- package/dist/{openapi-document-_QSOtSKS.js → openapi-document-ZWpur4f1.js} +1 -1
- package/dist/{openapi-Dsh0MDSZ.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-Didy9Ys4.js → output-D4FLF3_v.js} +1 -1
- package/dist/{ownership-CG5_N8b5.js → ownership-DvmaGcup.js} +13 -9
- 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-B4iyaOK7.js → pipeline-DCERGTTY.js} +2 -2
- package/dist/{plugin-DQJuZVl1.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-hnVT4MC4.js → policy-DoHkOOTQ.js} +1 -1
- package/dist/{policy-bundle-BIDV0DZF.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-_2ElzOhQ.js → powersync-CTKfjnPT.js} +12 -12
- package/dist/{powersync-D7YfMHke.js → powersync-Cz3MUw6R.js} +1 -1
- package/dist/{powersync-DUvN9v5a.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-D1vlNPWo.js → provider-BwqzED5h.js} +100 -52
- 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-5vtQpiLk.js → prune-config--x-cEF8G.js} +6 -6
- package/dist/{pull-BnxZmo3f.js → pull-BQELP7aV.js} +2 -2
- package/dist/pull-C_ZiPZ5X.js +1 -0
- package/dist/{push-Bu0uCkJg.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-CwcucZPx.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-CLoDRrbc.js → rename-BjP2CFUY.js} +5 -5
- package/dist/replay-Dg5-l7xu.d.ts +3 -0
- package/dist/report-DF0zUNut.js +1 -0
- package/dist/{report-BI_hek_d.js → report-XdCm1y_J.js} +76 -6
- 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-CTji5IPe.js → resolve-names-xBg9s2IJ.js} +7 -6
- package/dist/{resolver-CuIY8aFD.js → resolver-C_a-bddD.js} +99 -15
- package/dist/{rls-UY6p6ztg.js → rls-BzCz7ZV0.js} +55 -3
- package/dist/{rls-files-CDZdTh8v.js → rls-files-Bu0O7cZ6.js} +1 -1
- package/dist/{rls-options-BgD-KZkm.d.ts → rls-options-f1wRhXSG.d.ts} +1 -1
- package/dist/{rls-BPHCyA5v.js → rls-rk-QH4fc.js} +22 -12
- 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-C3ztA88m.js → run-DTz-e3Od.js} +3 -3
- 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-m5m1M6Qn.js → scan-Cn79IAJs.js} +1 -1
- package/dist/{schema-BpGuLrwk.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-BytzDi34.js → skills-BKrN1qej.js} +1 -1
- package/dist/{skills-CzhnDo-C.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-D5n28164.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-CAswAUeb.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-C0LIaT7b.js → supabase-hook-t1HnQf8U.js} +11 -185
- package/dist/{supabase-schemas-BUFeyErz.js → supabase-schemas-_ubYYw9i.js} +10 -9
- 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-B7z40Yu-.js +766 -0
- package/dist/table-reads-Ci-ZVo5m.js +1 -0
- package/dist/{tables-sLA1CpuN.js → tables-Bxmf2beb.js} +108 -11
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/tenant-check-DW0kbH-a.js +105 -0
- 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 +41 -17
- 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-BiMM_zJ-.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-N2ffLN_Z.d.ts → types-run-ByHuYUen.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DT6QK86a.js → usage-B8ca_Nj_.js} +2 -2
- package/dist/usage-CKTsomEq.js +1 -0
- package/dist/{usage-Dcbg6zu6.js → usage-Do7LQ4i4.js} +1 -1
- package/dist/{validation-error-P4Z9HUuP.d.ts → validation-error-BKgVVMc1.d.ts} +1 -1
- package/dist/{verify-DNERav8K.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-BKD3FN6k.d.ts +16 -0
- package/dist/warm-BZ0ZwSmO.js +32 -0
- package/dist/{watch-fldErlRf.js → watch-D-5ztqN8.js} +1 -1
- package/dist/{watch-BsQ4n3NV.js → watch-EzX_aG73.js} +2 -2
- package/dist/watch-J1PfGMfb.js +1 -0
- 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 +137 -19
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/dist/bundle-size-DwZ4e1gu.js +0 -1
- package/dist/claims-size-B6j0Ff4Q.js +0 -1
- package/dist/evaluator-COmATWCr.js +0 -2
- package/dist/gen-CkUEZ5Z6.js +0 -1
- package/dist/platform-CSxTsLsr.js +0 -35
- package/dist/pull-CGncYZNZ.js +0 -1
- package/dist/read-memberships-BkePIa1F.js +0 -63
- package/dist/replay-BCOZifwx.d.ts +0 -3
- package/dist/report-BevPHMy6.js +0 -1
- package/dist/run-3ySqmufy.js +0 -1
- package/dist/supabase-hook-DXGg5bNn.js +0 -2
- package/dist/tenant-check-gL2miiaS.js +0 -31
- package/dist/usage-DdOFc5xq.js +0 -1
- package/dist/watch-eay1PztJ.js +0 -1
package/dist/a2a/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as Policy,
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
1
|
+
import { D as Policy, Or as Principal, br as AuthorizationDetail } from "../policy-types-BnBZvh7N.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-5cvjmHTG.js";
|
|
3
|
+
import { a as ProblemDetails } from "../errors-BGosrHl8.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
|
|
5
5
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
6
6
|
type A2aAuth = {
|
|
7
7
|
readonly clientId?: string;
|
package/dist/a2a/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as createAgentKernel } from "../kernel-
|
|
2
|
-
import { i as challengeScope, o as hasScope, s as scopesReaching, u as withApp } from "../permdock-
|
|
1
|
+
import { 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 canonicalJson } from "../canonical-json-BibZkXtE.js";
|
|
4
4
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
5
5
|
import { n as delegationFrom } from "../delegation-input-7Y5Rlja7.js";
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-
|
|
2
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
1
|
+
import { a as createPermDock, c as ModelMap, d as StepUp, i as OperationVerdict, l as ToolBinding, n as AgentPermDockOptions, o as AgentAdapterOptions, r as GatewayOptions, s as DecideToolOptions, t as AgentPermDock, u as ToolMap } from "../create-CdB9FCZh.js";
|
|
2
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CllTzVJM.js";
|
|
3
3
|
export { type AgentAdapterOptions, type AgentPermDock, type AgentPermDockOptions, type DecideToolOptions, type DeniedText, type DeniedTextEvent, type GatewayOptions, type ModelMap, type OperationVerdict, type StepUp, type ToolBinding, type ToolMap, createPermDock };
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as createPermDock } from "../create-
|
|
1
|
+
export { n as createPermDock } from "../create-BRY0OtFV.js";
|
package/dist/ai-sdk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
1
|
+
import { d as StepUp, o as AgentAdapterOptions, t as AgentPermDock } from "../create-CdB9FCZh.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
3
|
-
import { D as Policy,
|
|
4
|
-
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-
|
|
3
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-BnBZvh7N.js";
|
|
4
|
+
import { n as DeniedTextEvent, t as DeniedText } from "../denied-text-CllTzVJM.js";
|
|
5
5
|
type AiSdkContext = {
|
|
6
6
|
readonly runtimeContext?: unknown;
|
|
7
7
|
readonly permdockApproval?: string;
|
package/dist/ai-sdk/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
-
import { r as stepUpText, t as approvalTokenOf } from "../kernel-
|
|
3
|
-
import { u as withApp } from "../permdock-
|
|
1
|
+
import { t as agentRuntime } from "../create-BRY0OtFV.js";
|
|
2
|
+
import { r as stepUpText, t as approvalTokenOf } from "../kernel-DSnWVZ0O.js";
|
|
3
|
+
import { u as withApp } from "../permdock-JM9TKevZ.js";
|
|
4
4
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
5
5
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
|
|
6
6
|
// src/ai-sdk/create.ts
|
package/dist/app/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AppOptions, i as definePermDock, n as PermDockDefinition, o as AppProfile, r as PermDockQuery, t as PermDockApp } from "../define-permdock-
|
|
1
|
+
import { a as AppOptions, i as definePermDock, n as PermDockDefinition, o as AppProfile, r as PermDockQuery, t as PermDockApp } from "../define-permdock-4IkoNaB3.js";
|
|
2
2
|
export { type AppOptions, type AppProfile, type PermDockApp, type PermDockDefinition, type PermDockQuery, definePermDock };
|
package/dist/app/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as definePermDock } from "../define-permdock-
|
|
1
|
+
export { t as definePermDock } from "../define-permdock-CO7YNrOF.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as tenantTypeOf, f as subjectIdSql, w as userTypeOf } from "./subject-
|
|
2
|
-
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-
|
|
1
|
+
import { C as tenantTypeOf, f as subjectIdSql, w as userTypeOf } from "./subject-B7p94Y0s.js";
|
|
2
|
+
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
3
3
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
// src/cli/rls/approval-managers.ts
|
|
5
5
|
/** Whether the signed-in user manages a requester; better-supabase reads it. */
|
|
@@ -248,19 +248,24 @@ const MANAGED_ROW_IDS_IN = "permdock_managed_row_ids_in";
|
|
|
248
248
|
const MANAGED_ROW_IDS = "permdock_managed_row_ids";
|
|
249
249
|
const ACCESSIBLE_ROW_IDS = "permdock_accessible_row_ids";
|
|
250
250
|
/**
|
|
251
|
-
* `permdock_request_approver_ids(p_requester, p_tenant)`: the
|
|
252
|
-
* managers up the chain, at most `MAX_MANAGER_LEVELS` steps, plus
|
|
253
|
-
* inside an active cover of one of them
|
|
254
|
-
* With a self-referencing manager
|
|
251
|
+
* `permdock_request_approver_ids(p_requester, p_tenant, p_resource)`: the
|
|
252
|
+
* requester's managers up the chain, at most `MAX_MANAGER_LEVELS` steps, plus
|
|
253
|
+
* each delegate inside an active cover of one of them for that tenant and
|
|
254
|
+
* resource. The requester is never in the set. With a self-referencing manager
|
|
255
|
+
* table the row helpers follow.
|
|
255
256
|
*/
|
|
256
257
|
function approvalChainSql(ctx, managers, delegations) {
|
|
257
258
|
const edges = managerEdges(managers);
|
|
258
259
|
const user = userTypeOf(ctx);
|
|
259
260
|
const tenantType = tenantTypeOf(ctx);
|
|
260
261
|
const fn = qualified(ctx, REQUEST_APPROVER_IDS);
|
|
261
|
-
const
|
|
262
|
-
const
|
|
262
|
+
const oldArgTypes = edges.tenant === void 0 ? user : `${user}, ${tenantType}`;
|
|
263
|
+
const argTypes = delegations ? `${oldArgTypes}, text` : oldArgTypes;
|
|
264
|
+
const args = `${edges.tenant === void 0 ? `p_requester ${user}` : `p_requester ${user}, p_tenant ${tenantType}`}${delegations ? ", p_resource text default null" : ""}`;
|
|
263
265
|
const edgeTenant = (alias) => edges.tenant === void 0 ? "" : `\n and ${alias}.${edges.tenant} = p_tenant`;
|
|
266
|
+
const coverScope = `${edges.tenant === void 0 ? "\n and d.tenant is null" : "\n and (d.tenant is null or d.tenant::text = p_tenant::text)"}
|
|
267
|
+
and d.permissions is null
|
|
268
|
+
and (d.resources is null or p_resource = any (d.resources))`;
|
|
264
269
|
const covers = delegations ? `
|
|
265
270
|
union
|
|
266
271
|
select d.delegate
|
|
@@ -268,10 +273,10 @@ function approvalChainSql(ctx, managers, delegations) {
|
|
|
268
273
|
join up u on u.id = d.delegator
|
|
269
274
|
where d."from" <= now()
|
|
270
275
|
and d."until" > now()
|
|
271
|
-
and d.delegate <> p_requester` : "";
|
|
276
|
+
and d.delegate <> p_requester${coverScope}` : "";
|
|
272
277
|
const chain = `
|
|
273
278
|
-- approval managers: who may decide a request of p_requester, the managers up the chain and their active covers
|
|
274
|
-
create or replace function ${fn}(${args})
|
|
279
|
+
${delegations ? `drop function if exists ${fn}(${oldArgTypes});\n` : ""}create or replace function ${fn}(${args})
|
|
275
280
|
returns setof ${user}
|
|
276
281
|
language sql
|
|
277
282
|
stable
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as ApprovalRequest } from "./types-
|
|
1
|
+
import { u as ApprovalRequest } from "./types-5cvjmHTG.js";
|
|
2
2
|
import { s as OperationMeta, t as Operation } from "./operations-DaEoGpMV.js";
|
|
3
3
|
/**
|
|
4
4
|
* What an email or chat prompt shows an approver, wire format v1. It carries no
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-
|
|
1
|
+
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-5cvjmHTG.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-KngVdJT9.js";
|
|
3
|
-
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-
|
|
4
|
-
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-
|
|
3
|
+
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-CgaGxF5q.js";
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-giCl-aQY.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-BgswTQzt.js";
|
|
6
6
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-DqzmZG-x.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as arazzoFindings } from "./src-BXDohWNO.js";
|
|
2
2
|
import { d as missingInput } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
3
|
+
import { t as DOCS_BASE } from "./manifest-BUeAHWDT.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
5
5
|
import { i as readJsonFile } from "./files-DAR51W3J.js";
|
|
6
6
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
|
package/dist/astro/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
1
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-BlMijUtb.js";
|
|
2
2
|
import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
+
import { a as PermDock } from "../permdock-V86uejcm.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy,
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
5
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-BnBZvh7N.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dci9NnyZ.js";
|
|
7
7
|
import { APIContext, MiddlewareHandler } from "astro";
|
|
8
8
|
type AstroPermDockOptions<TUser = unknown> = FetchAdapterOptions<APIContext, TUser>;
|
|
9
9
|
/** What the adapter sets on `context.locals`. */
|
package/dist/astro/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-BXQc4NoV.js";
|
|
3
3
|
// src/astro/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (context) => context,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as whoCan } from "./who-can-
|
|
1
|
+
import { t as whoCan } from "./who-can-CIgYpEvy.js";
|
|
2
2
|
// src/delivery/audience.ts
|
|
3
3
|
async function granted(permdock, ids, permission, row) {
|
|
4
4
|
const unique = [...new Set(ids.filter((id) => typeof id === "string" && id !== ""))];
|
package/dist/authzen/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as ApprovalStore } from "../types-
|
|
2
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
-
import { p as WhereResult } from "../permdock-
|
|
4
|
-
import { D as Policy,
|
|
5
|
-
import { a as ProblemDetails } from "../errors-
|
|
6
|
-
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-
|
|
1
|
+
import { m as ApprovalStore } from "../types-5cvjmHTG.js";
|
|
2
|
+
import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
|
|
3
|
+
import { p as WhereResult } from "../permdock-V86uejcm.js";
|
|
4
|
+
import { D as Policy, Or as Principal, vr as Actor, wr as Delegation } from "../policy-types-BnBZvh7N.js";
|
|
5
|
+
import { a as ProblemDetails } from "../errors-BGosrHl8.js";
|
|
6
|
+
import { a as evaluationsSemantic, n as EvaluationsSemantic, r as evaluateBatch, t as EVALUATIONS_SEMANTICS } from "../evaluations-CaXNkxTp.js";
|
|
7
7
|
type AuthzenEntity = {
|
|
8
8
|
readonly type?: unknown;
|
|
9
9
|
readonly id?: unknown;
|
package/dist/authzen/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
1
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-DZEWYO-A.js";
|
|
2
2
|
import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
3
3
|
import { r as ownGet } from "../paths-CeS_gpHf.js";
|
|
4
4
|
import { a as getResource, c as listPermissions } from "../permission-registry-DstT40VS.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kt as InstanceHandle,
|
|
1
|
+
import { Kt as InstanceHandle, ar as Denial, qt as Instant } from "./policy-types-BnBZvh7N.js";
|
|
2
2
|
import { t as Operation } from "./operations-DaEoGpMV.js";
|
|
3
3
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as Subject, F as RoleBinding, Or as Principal, X as DecisionSink, q as CustomRoleSource } from "../policy-types-BnBZvh7N.js";
|
|
2
2
|
import { E as PermissionTree } from "../vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
type BetterAuthPrincipal = Principal & {
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { c as AccessReviewStore } from "../types-
|
|
2
|
-
import { D as InstanceCache, F as PermissionState, P as PermissionCheck, a as PermDock, g as PrincipalIdentity, o as PermDockOptions, u as SnapshotOptions, v as PrincipalSource, z as ApprovalPolicySource } from "../permdock-
|
|
3
|
-
import {
|
|
4
|
-
import { n as PostgrestSourcesOptions, r as SupabaseRpcCaller } from "../postgrest-
|
|
5
|
-
import { m as ApprovalStore } from "../types-
|
|
1
|
+
import { c as AccessReviewStore } from "../types-CgaGxF5q.js";
|
|
2
|
+
import { D as InstanceCache, F as PermissionState, P as PermissionCheck, a as PermDock, g as PrincipalIdentity, o as PermDockOptions, u as SnapshotOptions, v as PrincipalSource, z as ApprovalPolicySource } from "../permdock-V86uejcm.js";
|
|
3
|
+
import { Ar as Subject, D as Policy, G as CredentialVerifier, In as ApproverInput, N as PolicyVocabulary, Or as Principal, Q as Intent, Tt as SupportSession, cr as DeniedDecision, gn as AuthEvent, it as MembershipSource, jt as ApiKeyPrincipal, qt as Instant, rn as Snapshot } from "../policy-types-BnBZvh7N.js";
|
|
4
|
+
import { n as PostgrestSourcesOptions, r as SupabaseRpcCaller } from "../postgrest-BG0ipED3.js";
|
|
5
|
+
import { m as ApprovalStore } from "../types-5cvjmHTG.js";
|
|
6
6
|
import { i as OperationEffect } from "../operations-DaEoGpMV.js";
|
|
7
7
|
import { E as PermissionTree, w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { n as Warmable } from "../warm-BKD3FN6k.js";
|
|
9
|
+
import { t as InstanceOptions } from "../instance-options-hq5Cp2Ih.js";
|
|
10
|
+
import { n as SubjectCache, s as VersionCache } from "../subject-cache-UKUgQCEX.js";
|
|
11
|
+
import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-Bq7k7g34.js";
|
|
12
|
+
import { i as SupabaseManifest } from "../manifest-BwhZ1s5b.js";
|
|
13
|
+
import { r as PermissionKeyOf } from "../type-helpers-CVN-p62O.js";
|
|
12
14
|
import { t as SqlQuery } from "../sql-BYYNi1lu.js";
|
|
13
|
-
import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-
|
|
14
|
-
import { t as SupabaseClaimsClient } from "../client-subject-
|
|
15
|
+
import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-4IkoNaB3.js";
|
|
16
|
+
import { t as SupabaseClaimsClient } from "../client-subject-Dzo49nco.js";
|
|
15
17
|
import { a as CatalogDocument } from "../types-CbJ5mxXv.js";
|
|
16
|
-
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-
|
|
18
|
+
import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-qoD_jlcI.js";
|
|
17
19
|
import { AccessBucketPolicy, AccessTopicPolicy, AuthorizationHooks, AuthorizationProvider, AuthorizationRequest, Authorizer, BlockTables, CredentialProvider, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef } from "better-supabase/contract";
|
|
18
20
|
import { AuthSession, DelegationRef } from "better-supabase/server";
|
|
19
21
|
import { EntitlementClaimOptions } from "better-supabase/blocks/entitlements";
|
|
@@ -585,6 +587,13 @@ type AuthorizationHooksBase<V extends PolicyVocabulary> = {
|
|
|
585
587
|
* `subjectFromBetterSupabase`.
|
|
586
588
|
*/
|
|
587
589
|
readonly subject?: Omit<BetterSupabaseSubjectOptions, "apiKeys">;
|
|
590
|
+
/**
|
|
591
|
+
* The keys under which a `row` table reads as `tenant` (`widenedKeys` of the
|
|
592
|
+
* manifest). `shareKey` answers `null` when the loader's keys include one the
|
|
593
|
+
* caller does not hold: such a caller reads rows that differ per user, while
|
|
594
|
+
* every holder reads the whole tenant.
|
|
595
|
+
*/
|
|
596
|
+
readonly widened?: readonly string[];
|
|
588
597
|
/**
|
|
589
598
|
* The process-wide instance cache: an instance is reused while the subject's
|
|
590
599
|
* authorization version is unchanged.
|
|
@@ -663,7 +672,7 @@ type AuthorizationHooksOptions<V extends PolicyVocabulary = PolicyVocabulary> =
|
|
|
663
672
|
* was renamed from, or that a policy `oauthScopes` entry covers, and reads no
|
|
664
673
|
* `authorization_details`.
|
|
665
674
|
*/
|
|
666
|
-
export declare function authorizationHooks<V extends PolicyVocabulary = PolicyVocabulary>(options: AuthorizationHooksOptions<V>): AuthorizationHooks;
|
|
675
|
+
export declare function authorizationHooks<V extends PolicyVocabulary = PolicyVocabulary>(options: AuthorizationHooksOptions<V>): AuthorizationHooks & Warmable;
|
|
667
676
|
/**
|
|
668
677
|
* A digest of what `permdock` grants for `permissions` in its tenant, or `null`
|
|
669
678
|
* when two callers with the same digest could still be decided differently or
|
|
@@ -676,6 +685,11 @@ export declare function authorizationHooks<V extends PolicyVocabulary = PolicyVo
|
|
|
676
685
|
* `portable`: those depend on state the digest cannot name.
|
|
677
686
|
*/
|
|
678
687
|
export declare function grantFingerprint(permdock: PermDock, permissions: readonly (Permission | string)[]): string | null;
|
|
688
|
+
/**
|
|
689
|
+
* The keys under which some `row` table of the manifest reads as `tenant`
|
|
690
|
+
* (`tableReads[].tenantFor`). Pass them to `authorizationHooks({ widened })`.
|
|
691
|
+
*/
|
|
692
|
+
export declare function widenedKeys(manifest: SupabaseManifest): readonly string[];
|
|
679
693
|
/**
|
|
680
694
|
* better-supabase's `blocks.permissions.activeTenant`: where its
|
|
681
695
|
* `switch_organization` writes the active tenant and `current_tenant_id()`
|
|
@@ -740,6 +754,22 @@ type AuthorizationProviderOptions<P = undefined> = {
|
|
|
740
754
|
* BS428 checks each entry against the generated policies.
|
|
741
755
|
*/
|
|
742
756
|
readonly tables?: boolean;
|
|
757
|
+
/**
|
|
758
|
+
* With `tables`, list a `row` table that has `tableReads[].tenantFor` as
|
|
759
|
+
* `tenant` under those keys. Sound only with `authorizationHooks({ widened:
|
|
760
|
+
* widenedKeys(manifest) })`, whose `shareKey` keeps a caller who holds none
|
|
761
|
+
* of the keys per user; without it two such callers would share rows that
|
|
762
|
+
* differ.
|
|
763
|
+
*/
|
|
764
|
+
readonly widened?: boolean;
|
|
765
|
+
/**
|
|
766
|
+
* Fill better-supabase's `sharedFunctions` from the manifest's
|
|
767
|
+
* `rls.sharedFunctions`, which `permdock supabase inspect` writes: the
|
|
768
|
+
* functions that pass BS430 and read only `tenant` tables. Needs `tables:
|
|
769
|
+
* true` and a manifest from `inspect` 0.31 or later; each entry's tables are
|
|
770
|
+
* `tenant` entries of `tables`, and doctor BS430 checks the functions.
|
|
771
|
+
*/
|
|
772
|
+
readonly sharedFunctions?: boolean;
|
|
743
773
|
/**
|
|
744
774
|
* Fill better-supabase's `roleIn` with `permdock_role_in`, which the manifest
|
|
745
775
|
* lists with `rls.customRoles` in `database` mode, so the `membership_roles`
|
|
@@ -747,6 +777,19 @@ type AuthorizationProviderOptions<P = undefined> = {
|
|
|
747
777
|
* or later.
|
|
748
778
|
*/
|
|
749
779
|
readonly roleIn?: boolean;
|
|
780
|
+
/**
|
|
781
|
+
* Fill better-supabase's `portalSubjects` from the `<scope>.<action>` grants
|
|
782
|
+
* of a portal scope. Off by default: better-supabase reads it for every
|
|
783
|
+
* record-attached comment, note and attachment, so a contact's `<scope>.read`
|
|
784
|
+
* would read internal notes on their own record unless the `inbox` block
|
|
785
|
+
* hides them.
|
|
786
|
+
*/
|
|
787
|
+
readonly portalSubjects?: boolean;
|
|
788
|
+
/**
|
|
789
|
+
* Fill better-supabase's `portalParties` from a portal scope. Default on;
|
|
790
|
+
* `false` leaves it out.
|
|
791
|
+
*/
|
|
792
|
+
readonly portalParties?: boolean;
|
|
750
793
|
/**
|
|
751
794
|
* Users better-supabase's access matrix signs in as, one pgTAP file each
|
|
752
795
|
* (`providerPersonaTests`). `setup` creates the memberships and roles with
|
|
@@ -900,7 +943,7 @@ type AuthorizerOptions<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
900
943
|
* throw denies. With better-supabase's runtime `memo`, the checks of one
|
|
901
944
|
* request scope share an instance per claims, tenant and intent.
|
|
902
945
|
*/
|
|
903
|
-
export declare function authorizer<V extends PolicyVocabulary = PolicyVocabulary>(options: AuthorizerOptions<V>): Authorizer<Permission, AnyVersionCache
|
|
946
|
+
export declare function authorizer<V extends PolicyVocabulary = PolicyVocabulary>(options: AuthorizerOptions<V>): Authorizer<Permission, AnyVersionCache> & Warmable;
|
|
904
947
|
/**
|
|
905
948
|
* A roles table the membership's role column references, in better-supabase's
|
|
906
949
|
* `blocks.memberships.options.roleThrough` shape: the role column holds
|
|
@@ -3,11 +3,11 @@ import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
|
3
3
|
import { o as flattenGrantee } from "../grantee-BSCdpIF3.js";
|
|
4
4
|
import { c as listPermissions, n as findPermission, o as isPermission } from "../permission-registry-DstT40VS.js";
|
|
5
5
|
import { i as dateAt, m as rfc3339, p as nowSeconds, u as isoAt } from "../time-r0CKBm57.js";
|
|
6
|
-
import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-
|
|
6
|
+
import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-C_a-bddD.js";
|
|
7
7
|
import { s as ApprovalError } from "../types-DFZKovb3.js";
|
|
8
8
|
import { t as parseApprovalRequest } from "../parse-request-IEEzVFM8.js";
|
|
9
9
|
import { t as applyApprovalVerdict } from "../store-n3yEN7dt.js";
|
|
10
|
-
import { z as decisionTenant } from "../evaluate-
|
|
10
|
+
import { z as decisionTenant } from "../evaluate-DNz6wMYv.js";
|
|
11
11
|
import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
|
|
12
12
|
import { n as isOperationEffect } from "../operations-dJxcshJZ.js";
|
|
13
13
|
import { h as managerKeys, s as resumeDecision } from "../helpers-COh0lLc1.js";
|
|
@@ -15,24 +15,26 @@ import { n as asApprover } from "../approval-normalize-C6je8vWN.js";
|
|
|
15
15
|
import { a as flattenApprovers, i as approverManagerKey, r as approverLeaves } from "../approvers-BkY_ZfWl.js";
|
|
16
16
|
import { t as canonicalJson } from "../canonical-json-BibZkXtE.js";
|
|
17
17
|
import { r as sha256Digest } from "../sha256-DFsnyVPo.js";
|
|
18
|
-
import { r as expandGrants } from "../snapshot-compact-
|
|
19
|
-
import { s as scopesReaching, t as getPermDock } from "../permdock-
|
|
18
|
+
import { r as expandGrants } from "../snapshot-compact-BWMLnIXK.js";
|
|
19
|
+
import { s as scopesReaching, t as getPermDock } from "../permdock-JM9TKevZ.js";
|
|
20
|
+
import { d as scopeList } from "../scopes-B-KX9EI8.js";
|
|
21
|
+
import { n as holdsActiveTenant, t as OTHER_TRUNCATED_CLAIMS } from "../share-key-claims-CZGAeVqa.js";
|
|
20
22
|
import { i as snapshotTag } from "../snapshot-cache-DTTEfmxv.js";
|
|
23
|
+
import { n as warmUp } from "../warm-BZ0ZwSmO.js";
|
|
21
24
|
import { r as isSubject, t as anonymousSubject } from "../subject-DkxY-AhF.js";
|
|
22
25
|
import { r as credentialSubject, s as parseCredential } from "../credential-D9in5keC.js";
|
|
23
|
-
import { s as subjectFromSupabaseSession, t as SUPABASE_OPTIONS } from "../definition-options-
|
|
24
|
-
import { n as parseSupabaseManifest } from "../manifest-
|
|
26
|
+
import { s as subjectFromSupabaseSession, t as SUPABASE_OPTIONS } from "../definition-options-DO0kIrB9.js";
|
|
27
|
+
import { n as parseSupabaseManifest } from "../manifest-CIWOmdlP.js";
|
|
25
28
|
import { t as loadPrincipal } from "../principal-source-BIcukkB3.js";
|
|
26
|
-
import { n as subscribersFor } from "../audience-
|
|
29
|
+
import { n as subscribersFor } from "../audience-B6DQ5wQu.js";
|
|
27
30
|
import { t as decideSupportSession } from "../support-session-DpzcGTuV.js";
|
|
28
|
-
import { t as authorizationProvider } from "../provider-
|
|
31
|
+
import { r as widenedKeys, t as authorizationProvider } from "../provider-BwqzED5h.js";
|
|
29
32
|
import { n as parseApprovalHeader } from "../approval-header-BvszJE3l.js";
|
|
30
33
|
import { i as qualifySqlTable, l as sqlIdent } from "../sql-T4GaBh9X.js";
|
|
31
|
-
import { o as junctionMembershipSource } from "../sources-
|
|
34
|
+
import { o as junctionMembershipSource } from "../sources-C6Id63F8.js";
|
|
32
35
|
import { t as parseCatalog } from "../parse-CUqZ_lLC.js";
|
|
33
36
|
import { t as policyRowConditionKeys } from "../row-conditions-DwIJocfQ.js";
|
|
34
|
-
import {
|
|
35
|
-
import { t as definePermDock$1 } from "../define-permdock-D7aKxIax.js";
|
|
37
|
+
import { t as definePermDock$1 } from "../define-permdock-CO7YNrOF.js";
|
|
36
38
|
import { i as linkPolicyViolation, n as capabilityOf, r as capabilitySubject } from "../capability-oxfxybFR.js";
|
|
37
39
|
import { r as isId, t as idList } from "../ids-0QDIxtxL.js";
|
|
38
40
|
import { AsyncResult, dbError } from "better-supabase";
|
|
@@ -1153,12 +1155,8 @@ function supportPolicy(options) {
|
|
|
1153
1155
|
const PERMISSION_CAP_CLAIM = "bsb_permission_cap";
|
|
1154
1156
|
/** The token's authorization version claim. */
|
|
1155
1157
|
const AUTHZ_VERSION_CLAIM = "authz_ver";
|
|
1156
|
-
/**
|
|
1157
|
-
const
|
|
1158
|
-
"memberships_truncated",
|
|
1159
|
-
"team_ids_truncated",
|
|
1160
|
-
"permissions_truncated"
|
|
1161
|
-
];
|
|
1158
|
+
/** The marker of a token whose `memberships` the size budget cut. */
|
|
1159
|
+
const MEMBERSHIPS_TRUNCATED = "memberships_truncated";
|
|
1162
1160
|
function readsVersions(value) {
|
|
1163
1161
|
return isRecord(value) && typeof value["get"] === "function";
|
|
1164
1162
|
}
|
|
@@ -1225,11 +1223,12 @@ function authorizationHooks(options) {
|
|
|
1225
1223
|
const claims = await loadClaims(userId, tenant === null || tenant === void 0 ? {} : { tenant });
|
|
1226
1224
|
return isRecord(claims) && claims["sub"] === userId ? claims : null;
|
|
1227
1225
|
};
|
|
1226
|
+
const widened = new Set(options.widened);
|
|
1228
1227
|
const shareKey = async (_authorizer, keys, { subject, context, runtime }) => {
|
|
1229
1228
|
try {
|
|
1230
1229
|
const claims = subject.properties?.["claims"];
|
|
1231
1230
|
const tenant = context.tenant;
|
|
1232
|
-
if (typeof tenant !== "string" || subject.type !== "user" || !isRecord(claims) || claims["sub"] !== subject.id ||
|
|
1231
|
+
if (typeof tenant !== "string" || subject.type !== "user" || !isRecord(claims) || claims["sub"] !== subject.id || OTHER_TRUNCATED_CLAIMS.some((name) => claims[name] === true)) return null;
|
|
1233
1232
|
const versions = runtime?.versions;
|
|
1234
1233
|
if (readsVersions(versions)) {
|
|
1235
1234
|
const live = await versions.get(subject.id);
|
|
@@ -1237,7 +1236,9 @@ function authorizationHooks(options) {
|
|
|
1237
1236
|
if (typeof live === "number" && (typeof token !== "number" || token < live)) return null;
|
|
1238
1237
|
}
|
|
1239
1238
|
const permdock = await instance(claims, tenant);
|
|
1240
|
-
|
|
1239
|
+
if (permdock === null) return null;
|
|
1240
|
+
if (claims[MEMBERSHIPS_TRUNCATED] === true && !holdsActiveTenant(claims, tenant, scopeList(policy.scopes))) return null;
|
|
1241
|
+
return keys.some((key) => widened.has(key) && !grants$1(permdock, key)) ? null : grantFingerprint(permdock, keys);
|
|
1241
1242
|
} catch {
|
|
1242
1243
|
return null;
|
|
1243
1244
|
}
|
|
@@ -1317,6 +1318,10 @@ function authorizationHooks(options) {
|
|
|
1317
1318
|
return Object.freeze({
|
|
1318
1319
|
apiVersion: 1,
|
|
1319
1320
|
name: "PermDock",
|
|
1321
|
+
warm: () => warmUp(policy, () => resolve(null, {
|
|
1322
|
+
tenant: null,
|
|
1323
|
+
intent: "read"
|
|
1324
|
+
})),
|
|
1320
1325
|
sessionTags: (userId) => [snapshotTag(userId)],
|
|
1321
1326
|
shareKey,
|
|
1322
1327
|
...loadClaims === void 0 ? {} : { automation: Object.freeze(automation) },
|
|
@@ -1544,6 +1549,10 @@ function authorizer(options) {
|
|
|
1544
1549
|
return Object.freeze({
|
|
1545
1550
|
apiVersion: 1,
|
|
1546
1551
|
name: "PermDock",
|
|
1552
|
+
warm: () => warmUp(options.policy, () => resolve(null, {
|
|
1553
|
+
tenant: null,
|
|
1554
|
+
intent: "read"
|
|
1555
|
+
})),
|
|
1547
1556
|
key(ref) {
|
|
1548
1557
|
if (!isPermission(ref)) throw new TypeError("Not a PermDock permission");
|
|
1549
1558
|
return ref.key;
|
|
@@ -2216,4 +2225,4 @@ function workflowResource(subject, types) {
|
|
|
2216
2225
|
}
|
|
2217
2226
|
});
|
|
2218
2227
|
}
|
|
2219
|
-
export { accessReviewApplier, apiKeyClaimOptions, apiKeyVerifier, authorizationHooks, authorizationProvider, authorizer, betterSupabaseVersionCache, blockApprovalPolicySource, blockApprovalStore, blockMembershipSource, bucketPolicy, credentialGuard, defineBlocksConfig, definePermDock, getPermissions, grantFingerprint, handlerCan, hookCan, isBetterSupabaseVersionCache, permdockFor, principalFromMemberships, principalSource, roleOrderFromCatalog, subjectFromBetterSupabase, subjectFromShareLink, subscriberPolicy, supportPolicy, toolPolicy, topicPolicy, workflowResource };
|
|
2228
|
+
export { accessReviewApplier, apiKeyClaimOptions, apiKeyVerifier, authorizationHooks, authorizationProvider, authorizer, betterSupabaseVersionCache, blockApprovalPolicySource, blockApprovalStore, blockMembershipSource, bucketPolicy, credentialGuard, defineBlocksConfig, definePermDock, getPermissions, grantFingerprint, handlerCan, hookCan, isBetterSupabaseVersionCache, permdockFor, principalFromMemberships, principalSource, roleOrderFromCatalog, subjectFromBetterSupabase, subjectFromShareLink, subscriberPolicy, supportPolicy, toolPolicy, topicPolicy, widenedKeys, workflowResource };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { m as ApprovalStore } from "./types-
|
|
2
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
3
|
-
import {
|
|
4
|
-
import { n as PermDockWrap } from "./wrap-
|
|
5
|
-
import { o as OtelWrap } from "./types-
|
|
6
|
-
import { r as PdpFactory } from "./types-
|
|
1
|
+
import { m as ApprovalStore } from "./types-5cvjmHTG.js";
|
|
2
|
+
import { t as InstanceOptions } from "./instance-options-hq5Cp2Ih.js";
|
|
3
|
+
import { Ar as Subject, Q as Intent } from "./policy-types-BnBZvh7N.js";
|
|
4
|
+
import { n as PermDockWrap } from "./wrap-CaAA3ubO.js";
|
|
5
|
+
import { o as OtelWrap } from "./types-BMKDvcXc.js";
|
|
6
|
+
import { r as PdpFactory } from "./types-CrUguLsE.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-E3-ps-H_.js";
|
|
8
|
-
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-BlMijUtb.js";
|
|
9
9
|
/**
|
|
10
10
|
* The options of every framework adapter; `TContext` is what its callbacks
|
|
11
11
|
* receive.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as withApp } from "./permdock-
|
|
1
|
+
import { u as withApp } from "./permdock-JM9TKevZ.js";
|
|
2
2
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
4
4
|
import { t as composeWraps } from "./wrap-CsfsaJhd.js";
|
|
5
5
|
import { n as tenantScope } from "./adapter-context-lHq_i_77.js";
|
|
6
|
-
import { t as createPermDock } from "./create-
|
|
6
|
+
import { t as createPermDock } from "./create-BMRnaZel.js";
|
|
7
7
|
import { h as invalidSignatureResponse } from "./evaluations-DPEAu_jM.js";
|
|
8
8
|
// src/server/bind.ts
|
|
9
9
|
/**
|