permdock 0.34.0 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/{adoption-scan-BPW1eWy5.js → adoption-scan-oaPsvHSN.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/app/index.d.ts +1 -1
- package/dist/{approval-prompt-CJvYBdja.d.ts → approval-prompt-BKxaKtby.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-DqzmZG-x.js → arazzo-1oDMApA_.js} +1 -1
- package/dist/{arazzo-BUXKjylF.js → arazzo-B2PszcDL.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/authzen/index.d.ts +6 -6
- package/dist/{automation-BqUmdFfe.d.ts → automation-C7WH5XcZ.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-supabase/index.d.ts +13 -13
- package/dist/better-supabase/index.js +2 -2
- package/dist/{bind-Bwk9tt1z.d.ts → bind-BnrOLyJq.d.ts} +7 -7
- package/dist/{bsb-access-tags-Nv4nDQ2U.js → bsb-access-tags-uDuwPUbT.js} +2 -2
- package/dist/{bsb-action-keys-CYEREFMg.js → bsb-action-keys-BfZAwg-9.js} +1 -1
- package/dist/{capability-qoD_jlcI.d.ts → capability-BW-vAxJi.d.ts} +1 -1
- package/dist/{casbin-qEW6RfXA.js → casbin-DrdS0vLy.js} +1 -1
- package/dist/{casbin-CM9mWO1V.js → casbin-vtIUd-6L.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- 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 +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-Dzo49nco.d.ts → client-subject-YAGMzRa-.d.ts} +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/{cloud-CNGblWX0.js → cloud-BQnIR-SS.js} +1 -1
- package/dist/{codemod-BtJFcsD7.js → codemod-C0OHCnaj.js} +6 -6
- package/dist/{codemod-Dlhxov9D.js → codemod-rv5XSBNw.js} +1 -1
- package/dist/{collect-CE5wK0AX.js → collect-Ba7ccZ23.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-nR1gQhXo.js → compile-BRDpja_Y.js} +2 -2
- package/dist/{compile-DNgpHgcK.d.ts → compile-CoUadQXF.d.ts} +2 -2
- package/dist/{completion-BIN9YXIe.js → completion-Dgjdte2-.js} +1 -1
- package/dist/{config-7QvEq57a.js → config-Dan6vcvj.js} +2 -2
- package/dist/{config-CoYhD6ur.js → config-anQ9E37F.js} +1 -1
- package/dist/{config-report-D_L1HXDb.js → config-report-C43BSFHY.js} +1 -1
- package/dist/{config-shape-BTojaD-H.js → config-shape-BODqM-rG.js} +1 -1
- package/dist/{context-D8tN3SZm.js → context-rioF4fQl.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/{core-DPuDmlbL.d.ts → core-DCMIztx1.d.ts} +2 -2
- package/dist/{create-BKrKxipb.d.ts → create-BYL8xCJB.d.ts} +4 -4
- package/dist/{create-CdB9FCZh.d.ts → create-T_NqxU31.d.ts} +7 -7
- package/dist/{create-CdbVXh5I.d.ts → create-iCwrnaFE.d.ts} +6 -6
- package/dist/{credentials-Dl0-R2aB.d.ts → credentials-DzNrCNZY.d.ts} +2 -2
- package/dist/{define-permdock-4IkoNaB3.d.ts → define-permdock-Bhye7WSY.d.ts} +6 -6
- package/dist/{definition-options-DO0kIrB9.js → definition-options-DLBlRrPO.js} +1 -8
- package/dist/delivery/index.d.ts +4 -4
- package/dist/{denied-text-CllTzVJM.d.ts → denied-text-DgNqDAPH.d.ts} +1 -1
- package/dist/{describe-FT1oVN_o.d.ts → describe-DEoWvk00.d.ts} +1 -1
- package/dist/{doctor-Bn5OPJMB.js → doctor-GnMgqGO8.js} +25 -24
- package/dist/{doctor-C9lLeLp2.js → doctor-sAqU02Fx.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/{errors-BGosrHl8.d.ts → errors-BliKrfmP.d.ts} +1 -1
- package/dist/{evaluations-CaXNkxTp.d.ts → evaluations-CUkSKioS.d.ts} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/{execute-DsHFIBuO.js → execute-xF5fwAel.js} +3 -3
- package/dist/express/index.d.ts +4 -4
- package/dist/fastify/index.d.ts +4 -4
- package/dist/{fetch-adapter-Dci9NnyZ.d.ts → fetch-adapter-Ds2-fUUi.d.ts} +2 -2
- package/dist/gen-BPYFr_tZ.js +1 -0
- package/dist/{gen-Fi4GcvIY.js → gen-djPw1RS-.js} +2 -2
- package/dist/{gen-kind-DR2-to9P.js → gen-kind-Vhq_ZIZm.js} +1 -1
- package/dist/{generate-BSD_eI61.js → generate-BcH-uL0z.js} +10 -10
- package/dist/{generate-QEHCJSyv.js → generate-CYHeuPq8.js} +3 -3
- package/dist/{generate-options-BZ2nqy28.js → generate-options-DDSeUTFU.js} +6 -6
- package/dist/h3/index.d.ts +4 -4
- package/dist/hono/index.d.ts +4 -4
- package/dist/{hook-sql-CbkH78FC.js → hook-sql-EksAnz-T.js} +7 -7
- package/dist/{hosted-BISipW6F.d.ts → hosted-DZgmEG4b.d.ts} +1 -1
- package/dist/identity-scopes-CRVAV0HU.js +11 -0
- package/dist/{import-DppjSugv.js → import-C45gc74U.js} +1 -1
- package/dist/{index-giCl-aQY.d.ts → index-BOJPdIBk.d.ts} +4 -4
- package/dist/{index-Co_e22iJ.d.ts → index-CAE_Z53Y.d.ts} +1 -1
- package/dist/{index-BF4IlvkT.d.ts → index-CWBCzwOp.d.ts} +4 -4
- package/dist/{index-BDJ2OZvV.d.ts → index-Cjr8Q-uq.d.ts} +6 -6
- package/dist/{index-CWwWkz10.d.ts → index-DBBRSw6r.d.ts} +2 -2
- package/dist/{index-BO5f180f.d.ts → index-ktQ7E4qB.d.ts} +4 -4
- package/dist/index.d.ts +15 -15
- package/dist/{init-DJYSpo-H.js → init-B6aZxzd7.js} +1 -1
- package/dist/{init-BOYIObRF.js → init-CCBVeyW8.js} +3 -3
- package/dist/{inspect-functions-CwEAQpVF.js → inspect-functions-BUACOlgS.js} +1 -1
- package/dist/{instance-options-hq5Cp2Ih.d.ts → instance-options-DDERlopm.d.ts} +1 -1
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{keys-U2V0maaq.js → keys-BWhAnANj.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-W8KwlWJU.d.ts → lazy-provider-Clt2095H.d.ts} +1 -1
- package/dist/{login-Dv8TFykx.js → login-BnE2iUUA.js} +1 -1
- package/dist/{login-xgjt0a5o.js → login-d631Tpa9.js} +3 -3
- package/dist/{manager-chain-FggG63qD.js → manager-chain-CFkceFls.js} +1 -1
- package/dist/{manifest-BUeAHWDT.js → manifest-1w67doim.js} +34 -34
- package/dist/mcp/index.d.ts +8 -8
- package/dist/{measure-DZtly0oE.js → measure-BKsYdwKd.js} +1 -1
- package/dist/{model-D0EKt-ED.js → model-BYCtXS_g.js} +1 -1
- package/dist/{module-values-B09BBJIj.js → module-values-D-AiNhBp.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/next/index.d.ts +11 -11
- 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/openai/index.d.ts +4 -4
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-g58VVrsc.js → openapi-BnKSxOrh.js} +1 -1
- package/dist/{openapi-Bfakk4cF.js → openapi-CN2Oq9zN.js} +1 -1
- package/dist/{openapi-document-ZWpur4f1.js → openapi-document-XnGRbWBb.js} +1 -1
- package/dist/orpc/index.d.ts +5 -5
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-D4FLF3_v.js → output-dO4bArCS.js} +1 -1
- package/dist/{ownership-DvmaGcup.js → ownership-CSdLGGfW.js} +1 -1
- package/dist/{parse-local-manifest-AJWs3pkW.d.ts → parse-local-manifest-DoLQFkRb.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/{permdock-V86uejcm.d.ts → permdock-DkvkGVF0.d.ts} +2 -2
- package/dist/{pipeline-DCERGTTY.js → pipeline-BAGSNnct.js} +2 -2
- package/dist/{plugin-BnvEp5tS.d.ts → plugin-DDPXES4k.d.ts} +2 -2
- package/dist/{policy-DZORR-Fw.d.ts → policy-BoUbJ2c0.d.ts} +1 -1
- package/dist/{policy-DoHkOOTQ.js → policy-CTn-9VQm.js} +1 -1
- package/dist/{policy-bundle-CsnNAo-n.js → policy-bundle-BHd1dqU9.js} +3 -3
- package/dist/{policy-types-BnBZvh7N.d.ts → policy-types-DuM3k5Ao.d.ts} +1 -1
- package/dist/{postgrest-BG0ipED3.d.ts → postgrest-B1bTbVE4.d.ts} +2 -2
- package/dist/{powersync-Dbpn-n0o.js → powersync-CZkZgVyi.js} +1 -1
- package/dist/{powersync-CTKfjnPT.js → powersync-DJ7dY-Vf.js} +6 -6
- package/dist/{powersync-Cz3MUw6R.js → powersync-Jj57J-X8.js} +1 -1
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-aGL_gT4j.d.ts → protected-action-gBxeetqY.d.ts} +5 -5
- package/dist/{provider-W8KwlWJU.d.ts → provider-Clt2095H.d.ts} +1 -1
- package/dist/{prune-config--x-cEF8G.js → prune-config-Bwz4wNQA.js} +5 -5
- package/dist/pull-BOC-0kJV.js +1 -0
- package/dist/{pull-BQELP7aV.js → pull-Cj_ngsuu.js} +1 -1
- package/dist/{pushed-policy-CQaXRDe3.d.ts → pushed-policy-C65TbLtU.d.ts} +1 -1
- package/dist/{rbac-BRMnQ9Rl.js → rbac-DbyaaNLa.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/lazy.d.ts +6 -6
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +15 -15
- package/dist/react-native/index.js +1 -1
- package/dist/{rename-BjP2CFUY.js → rename-CI6NIF9t.js} +1 -1
- package/dist/replay-B__gzUx3.d.ts +3 -0
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-xBg9s2IJ.js → resolve-names-CuEhEQyB.js} +1 -1
- package/dist/{resolver-C_a-bddD.js → resolver-D2c1CcoZ.js} +1 -1
- package/dist/{rls-rk-QH4fc.js → rls-BDtyip5c.js} +7 -7
- package/dist/{rls-BzCz7ZV0.js → rls-DcqSn7b2.js} +3 -3
- package/dist/{rls-files-Bu0O7cZ6.js → rls-files-CRRtjXxG.js} +1 -1
- package/dist/{rls-options-f1wRhXSG.d.ts → rls-options-DCLdZaTZ.d.ts} +1 -1
- package/dist/{rpc-DyCWVn6C.d.ts → rpc-BYFB37KV.d.ts} +1 -1
- package/dist/run-DOP1UKWw.js +1 -0
- package/dist/{run-DTz-e3Od.js → run-DvbrPkgt.js} +3 -3
- package/dist/{run-ticket-mVPqm6M6.d.ts → run-ticket-CRldclc7.d.ts} +2 -2
- package/dist/{scan-Cn79IAJs.js → scan-CmfWbAbz.js} +1 -1
- package/dist/{schema-CbzVUpWv.js → schema-CO3btX_O.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/seeds/index.d.ts +1 -1
- package/dist/{seeds-DLjPbhvM.d.ts → seeds-BZMPfWcC.d.ts} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/{server-types-BlMijUtb.d.ts → server-types-FkdDSB9h.d.ts} +8 -8
- package/dist/{sink-DhrVLPSJ.d.ts → sink-CoMI_OVw.d.ts} +2 -2
- package/dist/{skills-oZ8Ng2e7.js → skills-C28GUaJC.js} +1 -1
- package/dist/{skills-BKrN1qej.js → skills-CA8GfQxQ.js} +1 -1
- package/dist/{snapshot-cache-CVYqOThu.d.ts → snapshot-cache-R1lJjYmI.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/{sources-Bq7k7g34.d.ts → sources-Dp6FQ8np.d.ts} +1 -1
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-D6SPYjSQ.d.ts → standard-webhooks-D2FwHtMX.d.ts} +2 -2
- package/dist/{store-core-Bq7Qc9QM.d.ts → store-core-aluQ3R1M.d.ts} +4 -4
- package/dist/{stores-Dn7TpQFa.d.ts → stores-hHICuiQl.d.ts} +5 -5
- package/dist/{subject-cache-UKUgQCEX.d.ts → subject-cache-Bn4oJY_R.d.ts} +1 -1
- package/dist/supabase/index.d.ts +8 -8
- package/dist/supabase/index.js +3 -3
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +1 -1
- package/dist/{supabase-DrazwRER.js → supabase-ByhSqBDB.js} +2 -2
- package/dist/{supabase-BNPS-Gr1.js → supabase-DXEcFJGM.js} +2 -2
- package/dist/supabase-hook-C_ViYz3g.js +2 -0
- package/dist/{supabase-hook-t1HnQf8U.js → supabase-hook-D-ybV98H.js} +5 -5
- package/dist/{supabase-schemas-_ubYYw9i.js → supabase-schemas-CVhpyYB6.js} +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/source.d.ts +5 -5
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/{table-reads-Ci-ZVo5m.js → table-reads-BcceuV7h.js} +1 -1
- package/dist/{table-reads-B7z40Yu-.js → table-reads-BoF_58yh.js} +1 -1
- package/dist/{tables-Bxmf2beb.js → tables-BTXmioCH.js} +85 -12
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/{tenant-check-DW0kbH-a.js → tenant-check-DNbm8OiV.js} +3 -3
- package/dist/terminal/index.d.ts +5 -5
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/fixtures/index.d.ts +3 -3
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/trpc/index.d.ts +5 -5
- package/dist/{type-helpers-CVN-p62O.d.ts → type-helpers-CsWH9z8p.d.ts} +1 -1
- package/dist/{types-5cvjmHTG.d.ts → types-BGN3coSe.d.ts} +1 -1
- package/dist/{types-BmTW35E5.d.ts → types-BwjOhlgx.d.ts} +4 -4
- package/dist/{types-Dl2jRkyq.d.ts → types-BzsplNgO.d.ts} +4 -4
- package/dist/{types-CrUguLsE.d.ts → types-CBUYbPwl.d.ts} +2 -2
- package/dist/{types-CgaGxF5q.d.ts → types-CKwI6AT4.d.ts} +1 -1
- package/dist/{types-B_I8TBA9.d.ts → types-Cvfe-G_N.d.ts} +2 -2
- package/dist/{types-CDkJNA3a.d.ts → types-D3GI2B9O.d.ts} +3 -3
- package/dist/{types-DNOJRhyn.d.ts → types-D417woMp.d.ts} +3 -3
- package/dist/{types-BMKDvcXc.d.ts → types-DRMoZjJm.d.ts} +2 -2
- package/dist/{types-config-CyawIkMF.d.ts → types-config-DYRoZ8Iw.d.ts} +11 -5
- package/dist/{types-gp1w86cV.d.ts → types-dtDg4goh.d.ts} +4 -4
- package/dist/{types-run-ByHuYUen.d.ts → types-run-CeCrWO0v.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-B8ca_Nj_.js → usage-BGuSrwiW.js} +2 -2
- package/dist/usage-CW6PfRfC.js +1 -0
- package/dist/{usage-Do7LQ4i4.js → usage-D5QwWiNp.js} +1 -1
- package/dist/{validation-error-BKgVVMc1.d.ts → validation-error-MZ7KLNHt.d.ts} +1 -1
- package/dist/{verify-ZojGAC3f.js → verify-GWeopgxU.js} +3 -3
- package/dist/vue/index.d.ts +5 -5
- package/dist/{waiter-Bov7Cig6.d.ts → waiter-DdwtUSzB.d.ts} +2 -2
- package/dist/{warm-BKD3FN6k.d.ts → warm-znYuJoUZ.d.ts} +1 -1
- package/dist/{watch-D-5ztqN8.js → watch-14vng0pg.js} +1 -1
- package/dist/watch-Be7ja4dL.js +1 -0
- package/dist/{watch-EzX_aG73.js → watch-DuIAsqFR.js} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-CaAA3ubO.d.ts → wrap-C36-eV-C.d.ts} +2 -2
- package/package.json +1 -1
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/dist/gen-CpS9JkCb.js +0 -1
- package/dist/pull-C_ZiPZ5X.js +0 -1
- package/dist/replay-Dg5-l7xu.d.ts +0 -3
- package/dist/run-BvtApZDp.js +0 -1
- package/dist/supabase-hook-D0Yzbl19.js +0 -2
- package/dist/usage-CKTsomEq.js +0 -1
- package/dist/watch-J1PfGMfb.js +0 -1
|
@@ -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-dO4bArCS.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";
|
|
@@ -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-C28GUaJC.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
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-DEoWvk00.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-BliKrfmP.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 { 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-
|
|
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-aluQ3R1M.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-DuM3k5Ao.js";
|
|
7
|
+
import { d as UncheckedData, s as RowData } from "../permdock-DkvkGVF0.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";
|
|
@@ -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-FkdDSB9h.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-DkvkGVF0.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-
|
|
6
|
-
import { a as ProtectTarget, 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-DuM3k5Ao.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
|
|
7
7
|
import { APIEvent, FetchEvent } from "@solidjs/start/server";
|
|
8
8
|
/** The h3 event under every SolidStart request; `subject` and `scope` read it. */
|
|
9
9
|
type SolidStartNativeEvent = FetchEvent["nativeEvent"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Or as Principal, gn as AuthEvent, it as MembershipSource, q as CustomRoleSource } from "./policy-types-
|
|
1
|
+
import { Or as Principal, gn as AuthEvent, it as MembershipSource, q as CustomRoleSource } from "./policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { t as SqlQuery } from "./sql-BYYNi1lu.js";
|
|
3
3
|
import { c as SupabaseManifestMembership } from "./manifest-BwhZ1s5b.js";
|
|
4
4
|
import { t as ClaimsMap } from "./claims-map-CLKQWxJG.js";
|
package/dist/ssf/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-
|
|
2
|
-
import { t as memoryReplayStore } from "../replay-
|
|
3
|
-
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-
|
|
1
|
+
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-Cvfe-G_N.js";
|
|
2
|
+
import { t as memoryReplayStore } from "../replay-B__gzUx3.js";
|
|
3
|
+
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index-DBBRSw6r.js";
|
|
4
4
|
export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Er as JsonWebKeyLike, qt as Instant } from "./policy-types-
|
|
2
|
-
import { l as ReplayStore } from "./types-
|
|
1
|
+
import { Er as JsonWebKeyLike, qt as Instant } from "./policy-types-DuM3k5Ao.js";
|
|
2
|
+
import { l as ReplayStore } from "./types-Cvfe-G_N.js";
|
|
3
3
|
/** The three Standard Webhooks headers a delivery carries. */
|
|
4
4
|
type WebhookHeaders = {
|
|
5
5
|
readonly "webhook-id": string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Jt as ClientBundle, N as PolicyVocabulary, Or as Principal, ir as Decision, rn as Snapshot, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-
|
|
1
|
+
import { Jt as ClientBundle, N as PolicyVocabulary, Or as Principal, ir as Decision, rn as Snapshot, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-DuM3k5Ao.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
|
|
4
|
-
import { a as ProblemDetails } from "./errors-
|
|
5
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
6
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
+
import { a as ProblemDetails } from "./errors-BliKrfmP.js";
|
|
5
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-DEoWvk00.js";
|
|
6
|
+
import { a as PermDock } from "./permdock-DkvkGVF0.js";
|
|
7
7
|
/** What a `protectAction` action resolves to; both members cross to the client. */
|
|
8
8
|
type ActionResult<T> = {
|
|
9
9
|
readonly ok: true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, v as TenantView } from "./store-core-
|
|
2
|
-
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-
|
|
3
|
-
import { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
1
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, v as TenantView } from "./store-core-aluQ3R1M.js";
|
|
2
|
+
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-DuM3k5Ao.js";
|
|
3
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DEoWvk00.js";
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "./permdock-DkvkGVF0.js";
|
|
5
5
|
import { r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
6
|
-
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-
|
|
6
|
+
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-D417woMp.js";
|
|
7
7
|
import { Readable } from "svelte/store";
|
|
8
8
|
declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
|
|
9
9
|
declare function getPermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as Membership, Sr as CustomRole, St as VersionQuery, qt as Instant } from "./policy-types-
|
|
1
|
+
import { Dr as Membership, Sr as CustomRole, St as VersionQuery, qt as Instant } from "./policy-types-DuM3k5Ao.js";
|
|
2
2
|
type VersionCacheStats = {
|
|
3
3
|
/** Version reads the cache started. */
|
|
4
4
|
readonly reads: number;
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, qt as Instant } from "../policy-types-
|
|
2
|
-
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-
|
|
3
|
-
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-
|
|
4
|
-
import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-
|
|
5
|
-
import { F as PermissionState, P as PermissionCheck, a as PermDock, z as ApprovalPolicySource } from "../permdock-
|
|
1
|
+
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, qt as Instant } from "../policy-types-DuM3k5Ao.js";
|
|
2
|
+
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-Dp6FQ8np.js";
|
|
3
|
+
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BGN3coSe.js";
|
|
4
|
+
import { a as SupabaseRpcResult, i as SupabaseRpcClient, n as PostgrestSourcesOptions, o as postgrestSources, r as SupabaseRpcCaller, t as PostgrestSources } from "../postgrest-B1bTbVE4.js";
|
|
5
|
+
import { F as PermissionState, P as PermissionCheck, a as PermDock, z as ApprovalPolicySource } from "../permdock-DkvkGVF0.js";
|
|
6
6
|
import { t as SqlQuery } from "../sql-BYYNi1lu.js";
|
|
7
|
-
import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-
|
|
7
|
+
import { a as readSubjectRecord, r as SubjectRecord } from "../subject-cache-Bn4oJY_R.js";
|
|
8
8
|
import { _ as hasTokenHook, a as SupabaseManifestActiveRow, c as SupabaseManifestMembership, d as SupabaseManifestResourceNames, f as SupabaseManifestRls, g as SupabaseManifestValue, h as SupabaseManifestThrough, i as SupabaseManifest, l as SupabaseManifestNames, m as SupabaseManifestScopeNames, n as SupabaseHookClaim, o as SupabaseManifestColumn, p as SupabaseManifestRole, r as SupabaseHookManifest, s as SupabaseManifestHelper, t as SupabaseDatabaseManifest, u as SupabaseManifestRequires, v as parseSupabaseManifest } from "../manifest-BwhZ1s5b.js";
|
|
9
|
-
import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-
|
|
9
|
+
import { a as AppOptions, n as PermDockDefinition, r as PermDockQuery } from "../define-permdock-Bhye7WSY.js";
|
|
10
10
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-5LJ8kfZk.js";
|
|
11
|
-
import { n as subjectFromSupabaseClient, t as SupabaseClaimsClient } from "../client-subject-
|
|
11
|
+
import { n as subjectFromSupabaseClient, t as SupabaseClaimsClient } from "../client-subject-YAGMzRa-.js";
|
|
12
12
|
/**
|
|
13
13
|
* The server topic the generated version trigger broadcasts on without
|
|
14
14
|
* better-supabase; no user may join it. With better-supabase it is
|
package/dist/supabase/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { r as readSubjectRecord } from "../version-cache-Ccrfu2A4.js";
|
|
|
2
2
|
import { n as compactMemberships, r as expandMemberships } from "../read-memberships-DVBitJZG.js";
|
|
3
3
|
import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
|
|
4
4
|
import { n as supabaseMembershipsBudget, r as supabaseTenantClaim } from "../budget-BH81q2cj.js";
|
|
5
|
-
import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-
|
|
5
|
+
import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-ByhSqBDB.js";
|
|
6
6
|
import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C6Id63F8.js";
|
|
7
|
-
import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-
|
|
8
|
-
import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-
|
|
7
|
+
import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-D2c1CcoZ.js";
|
|
8
|
+
import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-DLBlRrPO.js";
|
|
9
9
|
import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-CIWOmdlP.js";
|
|
10
10
|
export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, compactMemberships, definePermDock, delegationOf, exchangeCapability, expandMemberships, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseClient, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as TenantSlugResolver, t as TenantFromPathOptions } from "../tenant-from-path-Dq3jkqjh.js";
|
|
2
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
2
|
+
import { t as InstanceOptions } from "../instance-options-DDERlopm.js";
|
|
3
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-
|
|
6
|
-
import { n as ServerAdapterServices } from "../bind-
|
|
5
|
+
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
|
|
6
|
+
import { n as ServerAdapterServices } from "../bind-BnrOLyJq.js";
|
|
7
7
|
import { t as RequestContext } from "../request-context-E3-ps-H_.js";
|
|
8
|
-
import { i as OpenApiHooks } from "../server-types-
|
|
8
|
+
import { i as OpenApiHooks } from "../server-types-FkdDSB9h.js";
|
|
9
9
|
import { FetchHandler, Middleware } from "@supabase/middleware";
|
|
10
10
|
/**
|
|
11
11
|
* The verified Supabase Auth access-token payload as `@supabase/server`
|
|
@@ -7,7 +7,7 @@ import { n as attached } from "../bind-DPptdk31.js";
|
|
|
7
7
|
import { t as createPermDock$1 } from "../create-BMRnaZel.js";
|
|
8
8
|
import { o as methodNotAllowed } from "../problem-BZB7zPC7.js";
|
|
9
9
|
import { n as tenantFromPath$1 } from "../tenant-from-path-AKTSY7uR.js";
|
|
10
|
-
import { n as supabaseOptionsOf, o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "../definition-options-
|
|
10
|
+
import { n as supabaseOptionsOf, o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "../definition-options-DLBlRrPO.js";
|
|
11
11
|
import { defineMiddleware } from "@supabase/middleware";
|
|
12
12
|
// src/supabase/middleware.ts
|
|
13
13
|
/**
|
|
@@ -8,11 +8,11 @@ import { t as CUSTOM_ROLES_VERSION_CLAIM } from "./budget-BH81q2cj.js";
|
|
|
8
8
|
import { s as ApprovalError } from "./types-DFZKovb3.js";
|
|
9
9
|
import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-n3yEN7dt.js";
|
|
10
10
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
11
|
-
import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-
|
|
11
|
+
import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-D2c1CcoZ.js";
|
|
12
12
|
import { d as keptKeys, l as roleColumn } from "./sources-C6Id63F8.js";
|
|
13
13
|
import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
14
14
|
import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
|
|
15
|
-
import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-
|
|
15
|
+
import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-DLBlRrPO.js";
|
|
16
16
|
import { t as definePermDock$1 } from "./define-permdock-CO7YNrOF.js";
|
|
17
17
|
import { r as isSubject } from "./subject-DkxY-AhF.js";
|
|
18
18
|
// src/supabase/capability.ts
|
|
@@ -20,7 +20,7 @@ const inspect = defineLeaf({
|
|
|
20
20
|
},
|
|
21
21
|
async run(ctx, { flags }) {
|
|
22
22
|
if (flags.functions !== void 0) {
|
|
23
|
-
const { inspectFunctions } = await import("./inspect-functions-
|
|
23
|
+
const { inspectFunctions } = await import("./inspect-functions-BUACOlgS.js");
|
|
24
24
|
return inspectFunctions({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
@@ -29,7 +29,7 @@ const inspect = defineLeaf({
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
32
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
32
|
+
const { runSupabase } = await import("./supabase-hook-C_ViYz3g.js");
|
|
33
33
|
return runSupabase({
|
|
34
34
|
cwd: ctx.cwd,
|
|
35
35
|
config: ctx.config,
|
|
@@ -5,13 +5,13 @@ import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serv
|
|
|
5
5
|
import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
6
6
|
import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
7
7
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
8
|
-
import { a as tryKeyReasons } from "./tenant-check-
|
|
9
|
-
import { n as hookUri } from "./rbac-
|
|
10
|
-
import { a as withTableReads } from "./table-reads-
|
|
11
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-
|
|
8
|
+
import { a as tryKeyReasons } from "./tenant-check-DNbm8OiV.js";
|
|
9
|
+
import { n as hookUri } from "./rbac-DbyaaNLa.js";
|
|
10
|
+
import { a as withTableReads } from "./table-reads-BoF_58yh.js";
|
|
11
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-EksAnz-T.js";
|
|
12
12
|
import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
|
|
13
13
|
import { i as withSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
|
|
14
|
-
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
14
|
+
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-CVhpyYB6.js";
|
|
15
15
|
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
16
16
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
17
17
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./sources-C6Id63F8.js";
|
|
2
2
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { n as hookUri } from "./rbac-
|
|
3
|
+
import { n as hookUri } from "./rbac-DbyaaNLa.js";
|
|
4
4
|
import { n as supabaseDir, t as supabaseConfigFile } from "./supabase-dir-0lxKbrYu.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join, posix } from "node:path";
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
|
|
2
|
+
import { i as describe } from "../describe-DEoWvk00.js";
|
|
3
|
+
import { c as requiredPlans } from "../errors-BliKrfmP.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
5
5
|
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";
|
|
6
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
6
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-hHICuiQl.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
8
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
8
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
|
11
11
|
export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
|
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
2
|
-
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
3
|
-
import { t as ClientStore } from "../store-core-
|
|
4
|
-
import { n as DescribeMessages } from "../describe-
|
|
2
|
+
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
|
|
3
|
+
import { t as ClientStore } from "../store-core-aluQ3R1M.js";
|
|
4
|
+
import { n as DescribeMessages } from "../describe-DEoWvk00.js";
|
|
5
5
|
/** The provider's `defaults` and `messages`. */
|
|
6
6
|
type PermDockUi = {
|
|
7
7
|
readonly defaults?: PermDockDefaults | undefined;
|
package/dist/svelte/source.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-D417woMp.js";
|
|
2
|
+
import { i as describe } from "../describe-DEoWvk00.js";
|
|
3
|
+
import { c as requiredPlans } from "../errors-BliKrfmP.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
5
5
|
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";
|
|
6
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
6
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-hHICuiQl.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
8
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
8
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-aluQ3R1M.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
|
11
11
|
export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
|
|
@@ -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-FkdDSB9h.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-DkvkGVF0.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-
|
|
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-DuM3k5Ao.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
|
|
7
7
|
import { RequestEvent } from "@sveltejs/kit";
|
|
8
8
|
/**
|
|
9
9
|
* A `handle` hook. SvelteKit 2 exports `Handle` from `@sveltejs/kit` and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-
|
|
1
|
+
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-BoF_58yh.js";
|
|
@@ -7,7 +7,7 @@ import { i as loadConfiguredPolicy } from "./load-m7jmit3y.js";
|
|
|
7
7
|
import { a as parseSqlFile, c as readPolicy, d as sqlCalls, f as stringValues, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
8
8
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
9
9
|
import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-XdCm1y_J.js";
|
|
10
|
-
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-
|
|
10
|
+
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DNbm8OiV.js";
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs";
|
|
12
12
|
import { join, relative } from "node:path";
|
|
13
13
|
// src/cli/rls/shared-functions.ts
|
|
@@ -11,6 +11,7 @@ import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-T
|
|
|
11
11
|
import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-BUKXrueE.js";
|
|
12
12
|
import { t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
|
|
13
13
|
import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
|
|
14
|
+
import { t as IDENTITY_SCOPES } from "./identity-scopes-CRVAV0HU.js";
|
|
14
15
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
15
16
|
import { C as tenantTypeOf, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, i as keyTenantSql, m as userIdHelperSql, s as memberVia, u as subjectClaimJsonSql, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
|
|
16
17
|
import { i as allowEntry, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
@@ -2174,19 +2175,60 @@ ${grants(active, "text")}`);
|
|
|
2174
2175
|
// src/cli/rls/token-scopes.ts
|
|
2175
2176
|
const TOKEN_SCOPE_ALLOWS = "permdock_token_scope_allows";
|
|
2176
2177
|
const TOKEN_SCOPE_MAP = "permdock_token_scope_map";
|
|
2178
|
+
const TOKEN_DELEGATION_MAP = "permdock_token_delegation_map";
|
|
2179
|
+
function isTokenScopesSetting(value) {
|
|
2180
|
+
if (value === void 0 || typeof value === "boolean") return true;
|
|
2181
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
2182
|
+
return Object.entries(value).every(([key, flag]) => key === "delegations" && (flag === void 0 || typeof flag === "boolean"));
|
|
2183
|
+
}
|
|
2184
|
+
/** Whether `rls.tokenScopes` turns the helpers' token narrowing on. */
|
|
2185
|
+
function tokenScopesOn(setting) {
|
|
2186
|
+
return setting === true || typeof setting === "object" && setting !== null;
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* Delegations Postgres can decide from the token alone: to `oauth-client`, from
|
|
2190
|
+
* `authenticated()` only, without a validity window. Others hand over nothing
|
|
2191
|
+
* in SQL, so the token stays capped by its scopes.
|
|
2192
|
+
*/
|
|
2193
|
+
function delegatedKeys(delegations) {
|
|
2194
|
+
const all = /* @__PURE__ */ new Set();
|
|
2195
|
+
const clients = /* @__PURE__ */ new Map();
|
|
2196
|
+
let everyClient = false;
|
|
2197
|
+
for (const delegation of delegations ?? []) {
|
|
2198
|
+
const from = Array.isArray(delegation.from) ? delegation.from : [delegation.from];
|
|
2199
|
+
if (delegation.to.kind !== "oauth-client" || delegation.to.client !== void 0 || delegation.validity !== void 0 || from.length === 0 || !from.every((grantee) => grantee.kind === "authenticated")) continue;
|
|
2200
|
+
const id = delegation.to.id;
|
|
2201
|
+
let target = all;
|
|
2202
|
+
if (id === void 0) everyClient = true;
|
|
2203
|
+
else {
|
|
2204
|
+
target = clients.get(id) ?? /* @__PURE__ */ new Set();
|
|
2205
|
+
clients.set(id, target);
|
|
2206
|
+
}
|
|
2207
|
+
for (const key of delegation.permissions) target.add(key);
|
|
2208
|
+
}
|
|
2209
|
+
return {
|
|
2210
|
+
...everyClient ? { all: [...all].toSorted() } : {},
|
|
2211
|
+
clients: Object.fromEntries([...clients].map(([id, set]) => [id, [...set].toSorted()]))
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2177
2214
|
/**
|
|
2178
2215
|
* `rls.tokenScopes` as the SQL generator needs it, or `undefined` when it is
|
|
2179
2216
|
* off.
|
|
2180
2217
|
*/
|
|
2181
2218
|
function tokenScopesPlan(setting, policy) {
|
|
2182
|
-
if (setting
|
|
2219
|
+
if (!tokenScopesOn(setting)) return;
|
|
2183
2220
|
const permissions = listPermissions(policy.permissions).map((leaf) => ({
|
|
2184
2221
|
key: leaf.key,
|
|
2185
2222
|
scope: leaf.scope,
|
|
2186
2223
|
renamedFrom: formerKeys(leaf),
|
|
2187
2224
|
meta: leaf.meta
|
|
2188
2225
|
}));
|
|
2189
|
-
|
|
2226
|
+
const scopes = delegatedScopeMap(permissions, policy.oauthScopes);
|
|
2227
|
+
if (typeof setting !== "object" || setting.delegations !== true) return { scopes };
|
|
2228
|
+
return {
|
|
2229
|
+
scopes,
|
|
2230
|
+
delegated: delegatedKeys(policy.delegations)
|
|
2231
|
+
};
|
|
2190
2232
|
}
|
|
2191
2233
|
function tokenScopeUnlimitedSql(ctx) {
|
|
2192
2234
|
const act = subjectClaimJsonSql(ctx, "act");
|
|
@@ -2224,6 +2266,43 @@ function tokenScopeAllowsSql(ctx, plan, anonExecute) {
|
|
|
2224
2266
|
const grants = anonExecute ? `revoke execute on function ${fn}(text) from public;
|
|
2225
2267
|
grant execute on function ${fn}(text) to anon, authenticated;` : `revoke execute on function ${fn}(text) from public, anon;
|
|
2226
2268
|
grant execute on function ${fn}(text) to authenticated;`;
|
|
2269
|
+
const delegationMap = qualified(ctx, TOKEN_DELEGATION_MAP);
|
|
2270
|
+
const client = subjectClaimSql(ctx, "client_id");
|
|
2271
|
+
const act = subjectClaimJsonSql(ctx, "act");
|
|
2272
|
+
const key = "split_part(split_part(p_grant, '#', 1), '@', 1)";
|
|
2273
|
+
const covered = `exists (
|
|
2274
|
+
select 1
|
|
2275
|
+
from ${tokenScopeRows(ctx)}
|
|
2276
|
+
where s.scope <> ''
|
|
2277
|
+
and coalesce(${map}() -> s.scope, '[]'::jsonb)
|
|
2278
|
+
? ${key}
|
|
2279
|
+
)`;
|
|
2280
|
+
const identity = [...IDENTITY_SCOPES].map(quoteLiteral).join(", ");
|
|
2281
|
+
const delegated = plan.delegated === void 0 ? "" : `
|
|
2282
|
+
when coalesce(${client}, '') <> ''
|
|
2283
|
+
and (${act} is null or ${act} = 'null'::jsonb)
|
|
2284
|
+
and (${delegationMap}() ? 'all'
|
|
2285
|
+
or ${delegationMap}() -> 'clients' ? ${client})
|
|
2286
|
+
then (coalesce(${delegationMap}() -> 'all', '[]'::jsonb)
|
|
2287
|
+
|| coalesce(${delegationMap}() -> 'clients' -> ${client}, '[]'::jsonb))
|
|
2288
|
+
? ${key}
|
|
2289
|
+
and (not exists (
|
|
2290
|
+
select 1
|
|
2291
|
+
from ${tokenScopeRows(ctx)}
|
|
2292
|
+
where s.scope <> '' and s.scope <> all (array[${identity}])
|
|
2293
|
+
)
|
|
2294
|
+
or ${covered})`;
|
|
2295
|
+
const delegationFunction = plan.delegated === void 0 ? "" : `
|
|
2296
|
+
create or replace function ${delegationMap}()
|
|
2297
|
+
returns jsonb
|
|
2298
|
+
language sql
|
|
2299
|
+
immutable
|
|
2300
|
+
set search_path = ''
|
|
2301
|
+
as $$
|
|
2302
|
+
select ${quoteLiteral(JSON.stringify(plan.delegated))}::jsonb
|
|
2303
|
+
$$;
|
|
2304
|
+
revoke execute on function ${delegationMap}() from public, anon, authenticated;
|
|
2305
|
+
`;
|
|
2227
2306
|
return `create or replace function ${map}()
|
|
2228
2307
|
returns jsonb
|
|
2229
2308
|
language sql
|
|
@@ -2233,7 +2312,7 @@ as $$
|
|
|
2233
2312
|
select ${quoteLiteral(JSON.stringify(plan.scopes))}::jsonb
|
|
2234
2313
|
$$;
|
|
2235
2314
|
revoke execute on function ${map}() from public, anon, authenticated;
|
|
2236
|
-
|
|
2315
|
+
${delegationFunction}
|
|
2237
2316
|
-- Token scopes: a delegated token holds only the permissions its scope claim maps to; denies always apply, and a token without client_id or an agent act is not limited
|
|
2238
2317
|
create or replace function ${fn}(p_grant text)
|
|
2239
2318
|
returns boolean
|
|
@@ -2249,14 +2328,8 @@ begin
|
|
|
2249
2328
|
when exists (
|
|
2250
2329
|
select 1 from ${qualified(ctx, "role_permissions")} rp
|
|
2251
2330
|
where rp.grant_key = p_grant and rp.effect = 'deny'
|
|
2252
|
-
) then true
|
|
2253
|
-
else
|
|
2254
|
-
select 1
|
|
2255
|
-
from ${tokenScopeRows(ctx)}
|
|
2256
|
-
where s.scope <> ''
|
|
2257
|
-
and coalesce(${map}() -> s.scope, '[]'::jsonb)
|
|
2258
|
-
? split_part(split_part(p_grant, '#', 1), '@', 1)
|
|
2259
|
-
)
|
|
2331
|
+
) then true${delegated}
|
|
2332
|
+
else ${covered}
|
|
2260
2333
|
end
|
|
2261
2334
|
);
|
|
2262
2335
|
end;
|
|
@@ -3446,4 +3519,4 @@ function resolveVias(tables, scopes, dialect) {
|
|
|
3446
3519
|
}
|
|
3447
3520
|
return Object.keys(out).length === 0 ? void 0 : out;
|
|
3448
3521
|
}
|
|
3449
|
-
export {
|
|
3522
|
+
export { graphIdsSql as $, tokenScopeAllowsCall as A, apiKeyClaimSql as B, forUserContext as C, seedSql as D, memoReadsSql as E, guardAuthAdminGrants as F, hookTeamReader as G, apiKeyUnlimitedSql as H, unguardAuthAdminGrants as I, POLICY_BUNDLE_TABLE as J, hookTeamsHelper as K, capabilityAccessSql as L, tokenScopesOn as M, tokenScopesPlan as N, TOKEN_SCOPE_ALLOWS as O, memoReadTriggersSql as P, closureDepths as Q, API_KEY_ALLOWS as R, accessSql as S, helpersSql as T, apiKeysPlan as U, apiKeyFields as V, HOOK_TEAM_READER as W, policyBundle as X, bundleLoaderSql as Y, closureBackfillSql as Z, sourceTransferTriggerSql as _, tablelessResources as a, ASSIGNMENTS as b, permissionHelpersSql as c, permittedByPermissionHelper as d, graphPlan as et, requiresSql as f, sourceRowsSql as g, sourceHoldersTriggerSql as h, tableNames as i, tokenScopeUnlimitedSql as j, isTokenScopesSetting as k, permissionKeysForHelper as l, pairsSql as m, resolveVias as n, PERMISSION_HELPERS as o, holderSources as p, POLICY_BUNDLE_FORMAT as q, tableNameOf as r, checkName as s, checkSharedTables as t, graphSql as tt, permissionKeysHelper as u, holdersTriggerSql as v, grantBodies as w, OWNERSHIP as x, transferTriggerSql as y, apiKeyAllowsCall as z };
|
|
@@ -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-FkdDSB9h.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-DkvkGVF0.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal, rn as Snapshot } from "../policy-types-
|
|
6
|
-
import { a as ProtectTarget, 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-DuM3k5Ao.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Ds2-fUUi.js";
|
|
7
7
|
import { RequestMiddleware, RequestMiddlewareAfterServer, createMiddleware } from "@tanstack/react-start";
|
|
8
8
|
type TanStackStartPermDockOptions<TUser = unknown> = FetchAdapterOptions<Request, TUser>;
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { i as tableNames } from "./tables-
|
|
4
|
-
import { r as compileGrants } from "./compile-
|
|
5
|
-
import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-
|
|
3
|
+
import { i as tableNames } from "./tables-BTXmioCH.js";
|
|
4
|
+
import { r as compileGrants } from "./compile-BRDpja_Y.js";
|
|
5
|
+
import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-DDSeUTFU.js";
|
|
6
6
|
// src/cli/rls/key-reasons.ts
|
|
7
7
|
/** A grant key written as a condition group (`k#1`) or a level (`k@own`). */
|
|
8
8
|
function isConditionKey(permission, grantKey) {
|
package/dist/terminal/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, qt as Instant } from "../policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { a as ProblemDetails, t as ApprovalHint } from "../errors-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
5
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, ir as Decision, qt as Instant } from "../policy-types-DuM3k5Ao.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-BGN3coSe.js";
|
|
3
|
+
import { a as ProblemDetails, t as ApprovalHint } from "../errors-BliKrfmP.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-DDERlopm.js";
|
|
5
|
+
import { a as PermDock } from "../permdock-DkvkGVF0.js";
|
|
6
6
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
7
7
|
type TokenSourceName = "device" | "keychain" | "env" | "ci-oidc";
|
|
8
8
|
type TokenSource = TokenSourceName | {
|
package/dist/testing/core.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-
|
|
1
|
+
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-DCMIztx1.js";
|
|
2
2
|
export { type DescribePolicyConfig, type MatrixCell, type MatrixOutcome, type OrmParityCase, type OrmParityOptions, type OrmParityReport, type OrmParityRunInput, type OrmParityScenario, type PolicyMatrixCell, type PolicyMatrixReport, type RlsDbOutcome, type RlsFieldsOutcome, type RlsParityCase, type RlsParityFixture, type RlsParityOptions, type RlsParityReport, type RlsParitySubject, type RlsQueryFn, type RlsQueryResult, policyMatrix, testOrmParity, testRlsParity };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as CatalogDocument } from "../../types-CbJ5mxXv.js";
|
|
2
2
|
import { i as SupabaseManifest } from "../../manifest-BwhZ1s5b.js";
|
|
3
|
-
import { rt as MemberEntry } from "../../policy-types-
|
|
4
|
-
import { r as SubjectRecord } from "../../subject-cache-
|
|
5
|
-
import { i as SupabaseRpcClient } from "../../postgrest-
|
|
3
|
+
import { rt as MemberEntry } from "../../policy-types-DuM3k5Ao.js";
|
|
4
|
+
import { r as SubjectRecord } from "../../subject-cache-Bn4oJY_R.js";
|
|
5
|
+
import { i as SupabaseRpcClient } from "../../postgrest-B1bTbVE4.js";
|
|
6
6
|
type PostgrestFixtureOptions = {
|
|
7
7
|
/** The users `subject_for` knows, by id. An unknown user answers `null`. */
|
|
8
8
|
readonly subjects: Readonly<Record<string, SubjectRecord>>;
|