permdock 0.35.1 → 0.36.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 +1 -1
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-B_jVJgMK.js → adoption-scan-FcbJOEo1.js} +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- 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/approvals/index.d.ts +1 -1
- package/dist/{arazzo-D-fDq8Dv.js → arazzo-BRWgVc8j.js} +1 -1
- package/dist/{arazzo-CKsNFj_5.js → arazzo-rYG2UY9k.js} +2 -2
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.d.ts +3 -3
- package/dist/authzen/index.js +1 -1
- package/dist/better-supabase/index.d.ts +13 -4
- package/dist/better-supabase/index.js +8 -8
- package/dist/{bind-DPptdk31.js → bind-2Cuy29LS.js} +2 -2
- package/dist/{bind-BnrOLyJq.d.ts → bind-Caffleoh.d.ts} +5 -5
- package/dist/{bsb-access-tags-1oVQZWKp.js → bsb-access-tags-Bfmhft2o.js} +1 -1
- package/dist/{bsb-action-keys-BfZAwg-9.js → bsb-action-keys-LgveZiHJ.js} +2 -2
- package/dist/{bsb-actions-BHiyBxQZ.js → bsb-actions-DcDxQ_Ku.js} +3 -3
- package/dist/{budgets-hi-ecgEd.js → budgets-B2hIDaz7.js} +2 -2
- package/dist/{build-instance-DZEWYO-A.js → build-instance-CZg_Bf45.js} +1 -1
- package/dist/{bundle-size-DbXV65Ix.js → bundle-size-BjdmlKWJ.js} +2 -2
- package/dist/bundle-size-BoG9Jm7c.js +1 -0
- package/dist/{casbin-CWfeuRmI.js → casbin-4FACZ5Ez.js} +1 -1
- package/dist/{casbin-DqiTIceJ.js → casbin-Cz8BGXHW.js} +1 -1
- package/dist/{catalog-CBPFyRv7.js → catalog-DYC6wfAj.js} +1 -1
- package/dist/{catalog-BExjL94D.js → catalog-SnaPhbZ1.js} +2 -2
- package/dist/{catalog-doc-D4g3nyFB.js → catalog-doc-BX97oFAn.js} +1 -1
- package/dist/catalog-e6QRd1JP.js +1 -0
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +1 -1
- package/dist/claude-agent/index.d.ts +2 -2
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-CvA_LeOt.js → cloud-BB67klb4.js} +2 -2
- package/dist/{codemod-DduTfuWM.js → codemod-BPcxGOlq.js} +5 -5
- package/dist/{codemod-CA0MQoG4.js → codemod-Lov9764v.js} +1 -1
- package/dist/collect-C2_CKZ09.js +1 -0
- package/dist/{collect-Ba7ccZ23.js → collect-CcE8QBtZ.js} +2 -2
- package/dist/{collect-CPimbkC5.js → collect-Co-w8Eg2.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-CoUadQXF.d.ts → compile-CyUn58lf.d.ts} +1 -1
- package/dist/{compile-D-BULiHE.js → compile-EtZv2wc0.js} +6 -6
- package/dist/{completion-DXdFnwLY.js → completion-5Y8toe1d.js} +1 -1
- package/dist/{config-BWYfHYvW.js → config-DfbiV554.js} +1 -1
- package/dist/{config-report-pg-66Bdr.js → config-report-Cs6iDebE.js} +2 -2
- package/dist/{context-rioF4fQl.js → context-CFPsmfPl.js} +1 -1
- package/dist/convex/index.d.ts +2 -2
- package/dist/convex/index.js +2 -2
- package/dist/{core-DCMIztx1.d.ts → core-_Lofwt2K.d.ts} +1 -1
- package/dist/{core-DIUrkFNL.js → core-s_TCdJ6G.js} +2 -2
- package/dist/{create-BYL8xCJB.d.ts → create-BfTbYrts.d.ts} +1 -1
- package/dist/{create-T_NqxU31.d.ts → create-D12I1Vkl.d.ts} +4 -4
- package/dist/{create-BMRnaZel.js → create-D6B06lb8.js} +3 -3
- package/dist/{create-iCwrnaFE.d.ts → create-EPbgV-LA.d.ts} +2 -2
- package/dist/{create-BRY0OtFV.js → create-bbjS7tCW.js} +2 -2
- package/dist/{credentials-DzNrCNZY.d.ts → credentials-DtSnydoD.d.ts} +1 -1
- package/dist/{custom-role-rebuild-wzN8pqDk.js → custom-role-rebuild-QFXiMHqJ.js} +1 -1
- package/dist/{define-permdock-CO7YNrOF.js → define-permdock-Dazve5lw.js} +1 -1
- package/dist/{define-permdock-Bhye7WSY.d.ts → define-permdock-ZR0w-Loy.d.ts} +3 -3
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-CkSZF7LO.js → diff-BABnQ-z0.js} +3 -3
- package/dist/{diff-CS8ks9h3.js → diff-C7zKA7ny.js} +1 -1
- package/dist/{doctor-Cs0Xl46A.js → doctor-Chio5Col.js} +101 -31
- package/dist/{doctor-B55XfWdG.js → doctor-Cm1HDI5s.js} +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/elysia/index.d.ts +3 -3
- package/dist/elysia/index.js +1 -1
- package/dist/{evaluations-CUkSKioS.d.ts → evaluations-BYoj5ci6.d.ts} +1 -1
- package/dist/eve/index.d.ts +2 -2
- package/dist/eve/index.js +2 -2
- package/dist/{execute-Vfo2CAhv.js → execute-B_yY9xWV.js} +4 -4
- package/dist/{explain-DISCeeYS.js → explain-Blkq60Ff.js} +2 -2
- package/dist/{explain-D4ipf8IH.js → explain-CKIqxXSe.js} +1 -1
- package/dist/express/index.d.ts +3 -3
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +3 -3
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-Ds2-fUUi.d.ts → fetch-adapter-CdaSVKrt.d.ts} +2 -2
- package/dist/{fetch-adapter-BXQc4NoV.js → fetch-adapter-DXgza6EM.js} +1 -1
- package/dist/{fields-CwFej4gp.js → fields-CKX-qjWb.js} +1 -1
- package/dist/gen-CYuPbpBZ.js +1 -0
- package/dist/{gen-M_5UU5Ck.js → gen-DlJK73v7.js} +4 -4
- package/dist/{gen-kind-DLz0P-TB.js → gen-kind-C4tERYMw.js} +1 -1
- package/dist/{generate-CNkkKAL-.js → generate-CFqcr3H6.js} +94 -15
- package/dist/{generate-GCDLA8vW.js → generate-CbLA2WW_.js} +3 -3
- package/dist/{generate-options-O3mVjjcG.js → generate-options-BFAvlJKQ.js} +9 -9
- package/dist/h3/index.d.ts +3 -3
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-B5MOl99d.js → helper-calls-DN1PJcNY.js} +53 -1
- package/dist/hono/index.d.ts +3 -3
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-y0CJBLJr.js → hook-sql-CSUFnRn0.js} +283 -13
- package/dist/{import-CQSJ6xcN.js → import-B-17dw3B.js} +1 -1
- package/dist/{import-Bz6IKoMM.js → import-wBO24zgo.js} +1 -1
- package/dist/{index-Cjr8Q-uq.d.ts → index-Bb2sZq1K.d.ts} +8 -7
- package/dist/{index-CWBCzwOp.d.ts → index-CT4VKXU-.d.ts} +1 -1
- package/dist/{index-ktQ7E4qB.d.ts → index-Cfg0ED9K.d.ts} +2 -2
- package/dist/{index-BOJPdIBk.d.ts → index-DY1aJ-K1.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{init-BucxAxRw.js → init-Bg0vS1LV.js} +1 -1
- package/dist/{init-Cfb0VX3T.js → init-DRbkPclr.js} +3 -3
- package/dist/{inspect-functions-CzrQtRDb.js → inspect-functions-DLP72IMA.js} +1 -1
- package/dist/{instance-options-DDERlopm.d.ts → instance-options-D-SLCp4I.d.ts} +1 -1
- package/dist/{interactive-only-Bbq9e61G.js → interactive-only-CylKSukS.js} +1 -1
- package/dist/{kernel-DSnWVZ0O.js → kernel-CzzmzwLg.js} +3 -3
- package/dist/{keys-BWhAnANj.js → keys-C-W0yrql.js} +1 -1
- package/dist/kysely/index.d.ts +2 -2
- package/dist/{lazy-provider-Clt2095H.d.ts → lazy-provider-BSHAIpMK.d.ts} +1 -1
- package/dist/{login-qYcM0hKh.js → login-D6IJk8k1.js} +1 -1
- package/dist/{login-CU89mk0U.js → login-yF-sDNm9.js} +3 -3
- package/dist/{manifest-Bu9gUrI0.js → manifest-DkHIGPoY.js} +63 -52
- package/dist/{manifest-schema-N3v2RVL-.js → manifest-schema-CkROwfT9.js} +1 -1
- package/dist/{manifest-CIWOmdlP.js → manifest-teSfgeqF.js} +1 -1
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +2 -2
- package/dist/{measure-C_Z0a7B8.js → measure-_VlSPfSY.js} +2 -2
- package/dist/{memberships-CNoAlsma.js → memberships-CDiSsFTu.js} +1 -1
- package/dist/{memberships-4e6qi8Uv.js → memberships-DiCbNRny.js} +1 -1
- package/dist/{model-BYCtXS_g.js → model-r7X_HXyS.js} +2 -2
- package/dist/{names-DBxKx2bz.js → names-DwGleRKB.js} +3 -3
- package/dist/nest/index.d.ts +3 -3
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +6 -6
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +2 -2
- package/dist/openai/index.js +3 -3
- package/dist/{openapi-DIhS8iHN.js → openapi-D156UqcM.js} +100 -5
- package/dist/{openapi-ZIlGKUwQ.js → openapi-Dcqqja0n.js} +1 -1
- package/dist/{openapi-document-D5IhoJo0.js → openapi-document-CTvHkCXz.js} +1 -1
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +2 -2
- package/dist/{output-DIjUJioq.js → output-DNbj0_Yi.js} +1 -1
- package/dist/{ownership-Bmt-z0rF.js → ownership-BvKT4DBj.js} +3 -3
- package/dist/pdp/index.d.ts +2 -2
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DkvkGVF0.d.ts → permdock-CHU1LZGq.d.ts} +5 -3
- package/dist/{permdock-JM9TKevZ.js → permdock-DZmr2kJw.js} +2 -1
- package/dist/{permissions-xPyAmuXi.js → permissions-DUmypTlO.js} +1 -1
- package/dist/{pipeline-BAGSNnct.js → pipeline-BMbLI2Sj.js} +2 -2
- package/dist/{policy-D8RxFeZO.js → policy-DekUQ-6v.js} +1 -1
- package/dist/{policy-bundle-DC_xq2R5.js → policy-bundle-JU4-AFJM.js} +3 -3
- package/dist/{powersync-CgCMKvaU.js → powersync-CpxkK_Lz.js} +1 -1
- package/dist/{powersync-BlfO3_jN.js → powersync-D9ZLDzyv.js} +1 -1
- package/dist/{powersync-CiQ97gzz.js → powersync-cG4lxrzQ.js} +8 -8
- package/dist/prisma/index.d.ts +1 -1
- package/dist/{protected-action-gBxeetqY.d.ts → protected-action-Dux5RJbA.d.ts} +3 -3
- package/dist/{provider-Clt2095H.d.ts → provider-BSHAIpMK.d.ts} +1 -1
- package/dist/{provider-BwqzED5h.js → provider-BfKUBNyV.js} +32 -5
- package/dist/{prune-config-CbhJ_XvD.js → prune-config-ByigsAkl.js} +4 -4
- package/dist/{pull-DLyCr-7L.js → pull-4Cyo0uTS.js} +3 -3
- package/dist/pull-_ic7Md2h.js +1 -0
- package/dist/{push-D5so0ptb.js → push-Br0Uz5pT.js} +2 -2
- package/dist/{rbac-DbyaaNLa.js → rbac-BOVyTCI6.js} +3 -3
- package/dist/react/index.d.ts +4 -4
- package/dist/react/lazy.d.ts +4 -4
- 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 +4 -4
- package/dist/{rename-CI6NIF9t.js → rename-Dp47Gs_j.js} +2 -2
- package/dist/{report-DF0zUNut.js → report-Dp-ApWVC.js} +1 -1
- package/dist/{report-XdCm1y_J.js → report-x9GeUvjx.js} +1 -1
- package/dist/{request-context-CqqdiVp4.js → request-context-LvIolknK.js} +1 -1
- package/dist/{resolve-names-BR6PiCrx.js → resolve-names-B_no27Dh.js} +4 -4
- package/dist/{resolver-D2c1CcoZ.js → resolver-CAmmdVAL.js} +22 -11
- package/dist/{rls-CdQW7v9D.js → rls-C816Uuvx.js} +5 -5
- package/dist/{rls-BfUIMNeV.js → rls-DB18scnl.js} +13 -12
- package/dist/{rls-files-68-nKfmG.js → rls-files-Cp-qzl61.js} +1 -1
- package/dist/{row-conditions-DwIJocfQ.js → row-conditions-BjARoFLU.js} +1 -1
- package/dist/{rpc-BYFB37KV.d.ts → rpc-CL8lrV5Y.d.ts} +1 -1
- package/dist/{rpc-BQPa7tLP.js → rpc-CoClxzcc.js} +1 -1
- package/dist/{run-B2Axta4z.js → run-CJhz8BHw.js} +2 -2
- package/dist/run-PpoUQXDc.js +1 -0
- package/dist/{run-ticket-CRldclc7.d.ts → run-ticket-CCRYQNj0.d.ts} +1 -1
- package/dist/{saas-DSeazNrN.js → saas-iXqf78G8.js} +2 -2
- package/dist/{scan-DNzOELYT.js → scan-DvM-_F8-.js} +1 -1
- package/dist/{schema-CJc23R4a.js → schema-uTRr3B9f.js} +1 -1
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +1 -1
- package/dist/{server-types-FkdDSB9h.d.ts → server-types-C_Lnc8Ec.d.ts} +5 -5
- package/dist/{size-CY6rK6l9.js → size-BO7J8M3B.js} +2 -2
- package/dist/{skills-DTpSMQRg.js → skills-B5exEJf5.js} +1 -1
- package/dist/{skills-TqrLrmuv.js → skills-DF_3nX9_.js} +1 -1
- package/dist/{snapshot-size-D6ixbYvH.js → snapshot-size-BzamcZrn.js} +1 -1
- package/dist/{snapshot-size-NklqBKcV.js → snapshot-size-CJ53OOen.js} +1 -1
- package/dist/solid/index.d.ts +2 -2
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +2 -2
- package/dist/{src-BXDohWNO.js → src-CYKqpYUM.js} +4 -4
- package/dist/{store-core-aluQ3R1M.d.ts → store-core-D5-cqb6z.d.ts} +1 -1
- package/dist/{stores-hHICuiQl.d.ts → stores-DPUPLu29.d.ts} +3 -3
- package/dist/supabase/index.d.ts +2 -2
- package/dist/supabase/index.js +3 -3
- package/dist/supabase/middleware.d.ts +4 -4
- package/dist/supabase/middleware.js +3 -3
- package/dist/{supabase-MitbozF6.js → supabase-Dpy2XE9v.js} +2 -2
- package/dist/{supabase-ByhSqBDB.js → supabase-NpHqrRXC.js} +2 -2
- package/dist/supabase-hook-DaK4Rirh.js +2 -0
- package/dist/{supabase-hook-RFLW2YPX.js → supabase-hook-VIpXUHKI.js} +5 -5
- package/dist/{supabase-schemas-CVhpyYB6.js → supabase-schemas-DA28GP4N.js} +1 -1
- package/dist/{supautils-C85NuESf.js → supautils-ym4X20ig.js} +2 -1
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/source.d.ts +3 -3
- package/dist/sveltekit/index.d.ts +3 -3
- package/dist/sveltekit/index.js +1 -1
- package/dist/{table-reads-Dso5UyeT.js → table-reads-4KzGXg9f.js} +1 -1
- package/dist/{table-reads-D0M_X-pj.js → table-reads-B5kunhny.js} +3 -3
- package/dist/{tables-DrrGtayG.js → tables-BwQvlpS4.js} +4 -4
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-D6fnfQBP.js → tenant-check-CsJkduIb.js} +3 -3
- package/dist/terminal/index.d.ts +2 -2
- package/dist/terminal/index.js +2 -2
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.js +1753 -162
- package/dist/testing/index.d.ts +7 -7
- package/dist/testing/index.js +6 -6
- package/dist/testing/saas/index.d.ts +1 -1
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +4 -4
- package/dist/trpc/index.js +2 -2
- package/dist/{types-DRMoZjJm.d.ts → types-B23A72BG.d.ts} +1 -1
- package/dist/{types-D417woMp.d.ts → types-BRaJxlqL.d.ts} +2 -2
- package/dist/{types-CBUYbPwl.d.ts → types-C8sDUhaF.d.ts} +1 -1
- package/dist/{types-dtDg4goh.d.ts → types-CM5GwxiJ.d.ts} +2 -2
- package/dist/{types-BzsplNgO.d.ts → types-iwSmOTcK.d.ts} +2 -2
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DBaJfCZB.js → usage-BD_z4pba.js} +1 -1
- package/dist/{usage-Cv4WDRWv.js → usage-_9h9jQo8.js} +4 -4
- package/dist/usage-wphGxzPQ.js +1 -0
- package/dist/{verify-DT9WS_Gm.js → verify-cw6SFoQE.js} +9 -9
- package/dist/vue/index.d.ts +2 -2
- package/dist/{warm-BZ0ZwSmO.js → warm-XyQ-2nUR.js} +1 -1
- package/dist/watch-5WP3ZCcR.js +1 -0
- package/dist/{watch-14vng0pg.js → watch-BFDMb5N4.js} +1 -1
- package/dist/{watch-DuIAsqFR.js → watch-Cvc7eUPk.js} +2 -2
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +2 -2
- package/dist/{wrap-C36-eV-C.d.ts → wrap-B4Ge6LOd.d.ts} +1 -1
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +1 -1
- package/dist/bundle-size-BRFeBvuv.js +0 -1
- package/dist/catalog-sR0m6x2g.js +0 -1
- package/dist/collect-CIdE3FGC.js +0 -1
- package/dist/gen-vr1udb1p.js +0 -1
- package/dist/pull-IQPhpX4y.js +0 -1
- package/dist/run-CfvcMtPK.js +0 -1
- package/dist/supabase-hook-DZk7PV7Z.js +0 -2
- package/dist/usage-DOcCnIdW.js +0 -1
- package/dist/watch-Be7ja4dL.js +0 -1
package/dist/react/lazy.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { i as describe } from "../describe-DEoWvk00.js";
|
|
|
2
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 useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-
|
|
5
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-Dux5RJbA.js";
|
|
6
6
|
import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
|
|
7
|
-
import { t as PermDockProvider } from "../lazy-provider-
|
|
8
|
-
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
9
|
-
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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-
|
|
7
|
+
import { t as PermDockProvider } from "../lazy-provider-BSHAIpMK.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-iwSmOTcK.js";
|
|
9
|
+
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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-D5-cqb6z.js";
|
|
10
10
|
export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../lazy-provider-
|
|
1
|
+
import { t as PermDockProvider } from "../lazy-provider-BSHAIpMK.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../provider-
|
|
1
|
+
import { t as PermDockProvider } from "../provider-BSHAIpMK.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -2,14 +2,14 @@ import { i as describe } from "../describe-DEoWvk00.js";
|
|
|
2
2
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
3
3
|
import { c as requiredPlans } from "../errors-BliKrfmP.js";
|
|
4
4
|
import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
5
|
-
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-
|
|
6
|
-
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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-
|
|
7
|
-
import { r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
5
|
+
import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-Dux5RJbA.js";
|
|
6
|
+
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, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-D5-cqb6z.js";
|
|
7
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-iwSmOTcK.js";
|
|
8
8
|
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-DoLQFkRb.js";
|
|
9
9
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
10
10
|
import { $t as LocalRowColumn, Dr as Membership, Qt as LocalMembershipRows, Sr as CustomRole, en as LocalRowValue, nn as LocalSnapshotRows, qt as Instant, rn as Snapshot, tn as LocalSnapshotManifest, ut as SnapshotSource } from "../policy-types-DuM3k5Ao.js";
|
|
11
11
|
import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-V95IvZsF.js";
|
|
12
|
-
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-
|
|
12
|
+
import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-CM5GwxiJ.js";
|
|
13
13
|
import { ReactElement } from "react";
|
|
14
14
|
/**
|
|
15
15
|
* `true` once the provider has a snapshot to answer from: storage was read or a
|
|
@@ -3,9 +3,9 @@ import "./sources-C6Id63F8.js";
|
|
|
3
3
|
import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { i as refuseDirty, n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
5
5
|
import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
|
|
6
|
-
import { a as resolveAuthorize } from "./rbac-
|
|
6
|
+
import { a as resolveAuthorize } from "./rbac-BOVyTCI6.js";
|
|
7
7
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
8
|
-
import { n as legacyKeySql } from "./custom-role-rebuild-
|
|
8
|
+
import { n as legacyKeySql } from "./custom-role-rebuild-QFXiMHqJ.js";
|
|
9
9
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
10
10
|
import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
11
11
|
import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-
|
|
1
|
+
export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-x9GeUvjx.js";
|
|
@@ -4,7 +4,7 @@ import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
|
|
|
4
4
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
5
5
|
import { a as parseSqlFile, c as readPolicy, d as sqlCalls, i as isPolicyCommand, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
6
6
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as callsHelper, o as helperCallKeys } from "./helper-calls-DN1PJcNY.js";
|
|
8
8
|
import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
|
|
9
9
|
import { readFileSync } from "node:fs";
|
|
10
10
|
import { deparse } from "pgsql-parser";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-DbSPSPIl.js";
|
|
2
|
-
import { t as buildInstance } from "./build-instance-
|
|
2
|
+
import { t as buildInstance } from "./build-instance-CZg_Bf45.js";
|
|
3
3
|
import { n as wrapPermDock } from "./wrap-CsfsaJhd.js";
|
|
4
4
|
// src/core/request-context.ts
|
|
5
5
|
/**
|
|
@@ -4,12 +4,12 @@ import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
|
4
4
|
import "./budget-BH81q2cj.js";
|
|
5
5
|
import "./sources-C6Id63F8.js";
|
|
6
6
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
8
|
-
import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-
|
|
7
|
+
import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
|
|
8
|
+
import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-BwQvlpS4.js";
|
|
9
9
|
import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
|
|
10
|
-
import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-
|
|
10
|
+
import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DwGleRKB.js";
|
|
11
11
|
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
12
|
-
import { D as globalRoleRows, m as holderBody } from "./interactive-only-
|
|
12
|
+
import { D as globalRoleRows, m as holderBody } from "./interactive-only-CylKSukS.js";
|
|
13
13
|
// src/cli/rls/permission-holders.ts
|
|
14
14
|
/**
|
|
15
15
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { f as nowMillis } from "./time-r0CKBm57.js";
|
|
3
|
-
import { l as appOf, u as withApp } from "./permdock-
|
|
3
|
+
import { l as appOf, u as withApp } from "./permdock-DZmr2kJw.js";
|
|
4
4
|
import { t as anonymousSubject } from "./subject-DkxY-AhF.js";
|
|
5
5
|
import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-Ccrfu2A4.js";
|
|
6
6
|
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
7
7
|
import { a as permissionStates } from "./checks-DSm45qH7.js";
|
|
8
8
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
9
|
-
import { n as versionSources } from "./define-permdock-
|
|
10
|
-
import { t as buildInstance } from "./build-instance-
|
|
9
|
+
import { n as versionSources } from "./define-permdock-Dazve5lw.js";
|
|
10
|
+
import { t as buildInstance } from "./build-instance-CZg_Bf45.js";
|
|
11
11
|
import { n as NO_GRANT } from "./decision-hHv4UZgy.js";
|
|
12
12
|
import { a as hookApiNames } from "./sources-C6Id63F8.js";
|
|
13
13
|
import { o as subjectFromSupabase } from "./definition-options-DLBlRrPO.js";
|
|
@@ -136,9 +136,15 @@ function postgrestSources(client, given = {}) {
|
|
|
136
136
|
const batch = wanted.get(memo);
|
|
137
137
|
wanted.delete(memo);
|
|
138
138
|
if (batch === void 0) return;
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
const [authz, ...otherAuthz] = batch.authz;
|
|
140
|
+
const pairIndex = authz === void 0 ? -1 : batch.roles.findIndex((want) => want.user === authz.user);
|
|
141
|
+
const roles = pairIndex === -1 ? void 0 : batch.roles[pairIndex];
|
|
142
|
+
const otherRoles = batch.roles.filter((_, index) => index !== pairIndex);
|
|
143
|
+
for (const want of otherAuthz) single(want, "authz");
|
|
144
|
+
for (const want of otherRoles) single(want, "roles");
|
|
145
|
+
if (authz === void 0) return;
|
|
146
|
+
if (roles === void 0 || versionsFn === void 0 || combinedMissing) {
|
|
147
|
+
single(authz, "authz");
|
|
142
148
|
if (roles !== void 0) single(roles, "roles");
|
|
143
149
|
return;
|
|
144
150
|
}
|
|
@@ -167,21 +173,26 @@ function postgrestSources(client, given = {}) {
|
|
|
167
173
|
});
|
|
168
174
|
};
|
|
169
175
|
/**
|
|
170
|
-
* A version read of one instance. The user's and the tenant
|
|
171
|
-
* start in the same tick leave as one `versionsFn` call
|
|
176
|
+
* A version read of one instance. The user's read and the first tenant read
|
|
177
|
+
* for that user that start in the same tick leave as one `versionsFn` call;
|
|
178
|
+
* every other read in that tick leaves on its own.
|
|
172
179
|
*/
|
|
173
180
|
const versionRpc = (memo, kind, user, tenant) => {
|
|
174
181
|
if (memo === void 0 || versionsFn === void 0 || combinedMissing) return kind === "authz" ? callRpc(client, schema, versionFn, { p_user: user }) : callRpc(client, schema, rolesVersionFn, { p_tenant: tenant });
|
|
175
182
|
return new Promise((settle, fail) => {
|
|
176
|
-
const batch = wanted.get(memo) ?? {
|
|
183
|
+
const batch = wanted.get(memo) ?? {
|
|
184
|
+
authz: [],
|
|
185
|
+
roles: [],
|
|
186
|
+
queued: false
|
|
187
|
+
};
|
|
177
188
|
const want = {
|
|
178
189
|
user,
|
|
179
190
|
...tenant === void 0 ? {} : { tenant },
|
|
180
191
|
settle,
|
|
181
192
|
fail
|
|
182
193
|
};
|
|
183
|
-
if (kind === "authz") batch.authz
|
|
184
|
-
else batch.roles
|
|
194
|
+
if (kind === "authz") batch.authz.push(want);
|
|
195
|
+
else batch.roles.push(want);
|
|
185
196
|
wanted.set(memo, batch);
|
|
186
197
|
if (!batch.queued) {
|
|
187
198
|
batch.queued = true;
|
|
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
async function runRls(input) {
|
|
197
|
-
return (await import("./rls-
|
|
197
|
+
return (await import("./rls-DB18scnl.js")).runRls(input);
|
|
198
198
|
}
|
|
199
199
|
({
|
|
200
200
|
...shapeFlags,
|
|
@@ -303,9 +303,9 @@ const report = defineLeaf({
|
|
|
303
303
|
async run(ctx, { flags }) {
|
|
304
304
|
const db = await dbUrl(ctx, flags);
|
|
305
305
|
const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
|
|
306
|
-
import("./report-
|
|
306
|
+
import("./report-Dp-ApWVC.js"),
|
|
307
307
|
import("./pg-DtiDogUp.js"),
|
|
308
|
-
import("./table-reads-
|
|
308
|
+
import("./table-reads-4KzGXg9f.js")
|
|
309
309
|
]);
|
|
310
310
|
return runRlsReport({
|
|
311
311
|
cwd: ctx.cwd,
|
|
@@ -349,9 +349,9 @@ const measure = defineLeaf({
|
|
|
349
349
|
if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
|
|
350
350
|
const tenant = given(flags.tenant);
|
|
351
351
|
const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
|
|
352
|
-
import("./measure-
|
|
352
|
+
import("./measure-_VlSPfSY.js"),
|
|
353
353
|
import("./pg-DtiDogUp.js"),
|
|
354
|
-
import("./memberships-
|
|
354
|
+
import("./memberships-DiCbNRny.js")
|
|
355
355
|
]);
|
|
356
356
|
return runRlsMeasure({
|
|
357
357
|
cwd: ctx.cwd,
|
|
@@ -2,19 +2,19 @@ import "./sources-C6Id63F8.js";
|
|
|
2
2
|
import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
4
4
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
5
|
-
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
6
|
-
import { o as nonEmptyOr } from "./output-
|
|
5
|
+
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-DA28GP4N.js";
|
|
6
|
+
import { o as nonEmptyOr } from "./output-DNbj0_Yi.js";
|
|
7
7
|
import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
|
|
8
|
-
import { n as describeExplain, t as runRlsGenerate } from "./generate-
|
|
9
|
-
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-
|
|
8
|
+
import { n as describeExplain, t as runRlsGenerate } from "./generate-CFqcr3H6.js";
|
|
9
|
+
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-EtZv2wc0.js";
|
|
10
10
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
|
-
import { a as
|
|
13
|
-
import { u as isPlatformSchema } from "./report-
|
|
14
|
-
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-
|
|
15
|
-
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-
|
|
16
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
17
|
-
import { n as configuredTableReads } from "./table-reads-
|
|
12
|
+
import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-DN1PJcNY.js";
|
|
13
|
+
import { u as isPlatformSchema } from "./report-x9GeUvjx.js";
|
|
14
|
+
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CKX-qjWb.js";
|
|
15
|
+
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-cw6SFoQE.js";
|
|
16
|
+
import { r as parseRbacAuthorize } from "./rbac-BOVyTCI6.js";
|
|
17
|
+
import { n as configuredTableReads } from "./table-reads-B5kunhny.js";
|
|
18
18
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
19
19
|
import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
|
|
20
20
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
@@ -582,7 +582,7 @@ function diffMixed(expected, actual) {
|
|
|
582
582
|
if (level !== void 0) {
|
|
583
583
|
if (level.conditioned) notes.push(rlsFinding("level-unconditioned", policy.table, `${policy.name}/${key}`, `${policy.table}: policy ${policy.name} passes ${key}, which skips the level's row condition, so holders of it are denied there; use ${level.rowHelper}(${policy.table.slice(policy.table.lastIndexOf(".") + 1)}, '${level.permission}')`, "info"));
|
|
584
584
|
} else if (!permissions.has(key)) drift.push(rlsFinding("undeclared-key", policy.table, `${policy.name}/${key}`, `${policy.table}: policy ${policy.name} passes ${key}, which the policy does not declare, so it always denies`));
|
|
585
|
-
else if (conditioned.has(key) && blind.has(key)) drift.push(rlsFinding("condition-blind", policy.table, `${policy.name}/${key}`, `${policy.table}: policy ${policy.name} passes ${key}, whose grants carry row conditions the helpers do not check: the policy grants more than the application does`));
|
|
585
|
+
else if (conditioned.has(key) && blind.has(key) && !conditionShown(policy.expression, key, expected.coverage?.[key])) drift.push(rlsFinding("condition-blind", policy.table, `${policy.name}/${key}`, `${policy.table}: policy ${policy.name} passes ${key}, whose grants carry row conditions the helpers do not check: the policy grants more than the application does`));
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
if (expected.readOnlyActors === true) drift.push(...unguardedWrites(actual.policies, ACTOR_MAY_WRITE));
|
|
@@ -944,6 +944,7 @@ async function introspectHelpersOnly(db, expected, generated, connect, readOnlyA
|
|
|
944
944
|
seeds: generated.seeds ?? [],
|
|
945
945
|
permissions: generated.keys?.permissions ?? [],
|
|
946
946
|
rowConditions: generated.keys?.rowConditions ?? [],
|
|
947
|
+
...generated.keys?.coverage === void 0 ? {} : { coverage: generated.keys.coverage },
|
|
947
948
|
levels: generated.keys?.levels ?? [],
|
|
948
949
|
readOnlyActors
|
|
949
950
|
}, await introspectMixed(db, schema, connect));
|
|
@@ -1073,7 +1074,7 @@ async function runRls(input) {
|
|
|
1073
1074
|
});
|
|
1074
1075
|
}
|
|
1075
1076
|
case "import": {
|
|
1076
|
-
const { runRlsImport } = await import("./import-
|
|
1077
|
+
const { runRlsImport } = await import("./import-wBO24zgo.js");
|
|
1077
1078
|
return runRlsImport({
|
|
1078
1079
|
cwd: input.cwd,
|
|
1079
1080
|
config: input.config,
|
|
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { m as seedsMigration, p as seedDeltaNote } from "./output-files-8lfALMSU.js";
|
|
5
5
|
import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
|
|
6
|
-
import { t as runRlsGenerate } from "./generate-
|
|
6
|
+
import { t as runRlsGenerate } from "./generate-CFqcr3H6.js";
|
|
7
7
|
import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
// src/cli/generate/plugins/rls-options.ts
|
|
9
9
|
function seedMode(seeds) {
|
|
@@ -24,4 +24,4 @@ function policyRowConditionKeys(policy) {
|
|
|
24
24
|
for (const grant of [...policy.grants, ...policy.roles.flatMap((binding) => binding.grants)]) if (grant.hosted === void 0 && grantHasRowConditions(grant)) keys.add(grant.permission.key);
|
|
25
25
|
return keys;
|
|
26
26
|
}
|
|
27
|
-
export { policyRowConditionKeys as t };
|
|
27
|
+
export { policyRowConditionKeys as n, grantHasRowConditions as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
2
|
-
import { o as ProtectOptions } from "./server-types-
|
|
2
|
+
import { o as ProtectOptions } from "./server-types-C_Lnc8Ec.js";
|
|
3
3
|
type StreamProtectOptions = ProtectOptions & {
|
|
4
4
|
/**
|
|
5
5
|
* For a procedure that returns an async iterable: each outbound item is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
|
-
import { t as adapterKernel } from "./bind-
|
|
2
|
+
import { t as adapterKernel } from "./bind-2Cuy29LS.js";
|
|
3
3
|
import { n as tenantScope } from "./adapter-context-lHq_i_77.js";
|
|
4
4
|
import { s as requestFromContext } from "./http-C9jDw_bZ.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-DdF94h7T.js";
|
|
@@ -3,9 +3,9 @@ import { a as readConfig, l as withPluginOutputs, s as resolveCwd } from "./conf
|
|
|
3
3
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
4
4
|
import { a as describeError, n as CliError, r as cliFailure, s as failureOf, u as kindOfCode } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { a as suggestion, i as parseLeaf, o as GLOBAL_FLAGS, r as parseFlags } from "./args-BSpXxMnb.js";
|
|
6
|
-
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-
|
|
6
|
+
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-DNbj0_Yi.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-6ZWbJ-Re.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-DkHIGPoY.js";
|
|
9
9
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
10
10
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
11
11
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-CJhz8BHw.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ar as Subject, Or as Principal, _t as TokenSigner, br as AuthorizationDetail, gn as AuthEvent, gt as TokenFailureCause, qt as Instant, vr as Actor, vt as TokenVerifier, wr as Delegation } from "./policy-types-DuM3k5Ao.js";
|
|
2
|
-
import { v as PrincipalSource } from "./permdock-
|
|
2
|
+
import { v as PrincipalSource } from "./permdock-CHU1LZGq.js";
|
|
3
3
|
/**
|
|
4
4
|
* What started the run: a saved automation, a background job, or a caller's own
|
|
5
5
|
* request.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
1
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-DUmypTlO.js";
|
|
2
2
|
import { a as deny, n as role, r as allow } from "./role-builder-BksM3Q9O.js";
|
|
3
3
|
import { l as relation, n as anyone } from "./grantee-BSCdpIF3.js";
|
|
4
4
|
import { r as definePolicy } from "./policy-CZBJDcTx.js";
|
|
5
5
|
import { i as principal } from "./refs-Cix9Zjis.js";
|
|
6
|
-
import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-
|
|
6
|
+
import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-CYKqpYUM.js";
|
|
7
7
|
import { s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
8
8
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
9
9
|
import { h as secondsAt } from "./time-r0CKBm57.js";
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-FcbJOEo1.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as require__2020 } from "./2020-DBXhfpuK.js";
|
|
2
2
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
|
|
4
|
-
import { o as nonEmptyOr } from "./output-
|
|
4
|
+
import { o as nonEmptyOr } from "./output-DNbj0_Yi.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-MZ7KLNHt.js";
|
|
2
2
|
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-BliKrfmP.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-E3-ps-H_.js";
|
|
4
|
-
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-
|
|
4
|
+
import { a as StoredCredential, c as generateFeedKey, d as parseApiKey, f as parseFeedKey, i as MemoryCredentialStore, l as hashApiKey, n as ApiKeyParts, o as apiKeyVerifier, p as subjectFromApiKey, r as ApiKeySubjectOptions, s as generateApiKey, t as ApiKeyFailureCause, u as memoryCredentialStore } from "../credentials-DtSnydoD.js";
|
|
5
5
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-ku_f2d2y.js";
|
|
6
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
7
|
-
import { i as evaluationsHandler } from "../evaluations-
|
|
8
|
-
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-
|
|
6
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-C_Lnc8Ec.js";
|
|
7
|
+
import { i as evaluationsHandler } from "../evaluations-BYoj5ci6.js";
|
|
8
|
+
import { a as SupportSessionContext, c as SupportSessionSubjectOptions, d as ProblemFromErrorOptions, f as problemFromError, i as wwwAuthenticate, l as signSupportSession, n as problemResponse, o as SupportSessionFailureCause, p as createPermDock, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession } from "../index-Cfg0ED9K.js";
|
|
9
9
|
import { l as ReplayStore } from "../types-Cvfe-G_N.js";
|
|
10
10
|
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-D2FwHtMX.js";
|
|
11
11
|
import { t as memoryReplayStore } from "../replay-B__gzUx3.js";
|
|
12
12
|
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-R1lJjYmI.js";
|
|
13
13
|
import { n as TenantSlugResolver, r as tenantFromPath, t as TenantFromPathOptions } from "../tenant-from-path-Dq3jkqjh.js";
|
|
14
|
-
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-
|
|
14
|
+
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-CCRYQNj0.js";
|
|
15
15
|
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantFromPathOptions, type TenantOption, type TenantScope, type TenantSlugResolver, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantFromPath, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
|
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-3jyzniOz.js";
|
|
4
4
|
import { n as tenantScope } from "../adapter-context-lHq_i_77.js";
|
|
5
5
|
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BZB7zPC7.js";
|
|
6
|
-
import { t as createPermDock } from "../create-
|
|
6
|
+
import { t as createPermDock } from "../create-D6B06lb8.js";
|
|
7
7
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, h as invalidSignatureResponse, m as invalidSignatureProblem, o as evaluationsHandler, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
8
8
|
import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-B-hsgB4W.js";
|
|
9
9
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { m as ApprovalStore } from "./types-BGN3coSe.js";
|
|
2
2
|
import { Ar as Subject, Er as JsonWebKeyLike, N as PolicyVocabulary, Q as Intent, ir as Decision, pn as SnapshotTenants, qt as Instant, rn as Snapshot, vr as Actor } from "./policy-types-DuM3k5Ao.js";
|
|
3
3
|
import { a as ProblemDetails, t as ApprovalHint } from "./errors-BliKrfmP.js";
|
|
4
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
5
|
-
import { a as PermDock, u as SnapshotOptions } from "./permdock-
|
|
4
|
+
import { t as InstanceOptions } from "./instance-options-D-SLCp4I.js";
|
|
5
|
+
import { a as PermDock, u as SnapshotOptions } from "./permdock-CHU1LZGq.js";
|
|
6
6
|
import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-E3-ps-H_.js";
|
|
8
8
|
import { n as RevocationFeed } from "./revocations-ku_f2d2y.js";
|
|
9
|
-
import { n as PermDockWrap } from "./wrap-
|
|
10
|
-
import { r as PdpFactory } from "./types-
|
|
11
|
-
import { i as evaluationsHandler } from "./evaluations-
|
|
9
|
+
import { n as PermDockWrap } from "./wrap-B4Ge6LOd.js";
|
|
10
|
+
import { r as PdpFactory } from "./types-C8sDUhaF.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-BYoj5ci6.js";
|
|
12
12
|
type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
|
|
13
13
|
type ConnectionOptions<T = unknown> = {
|
|
14
14
|
/**
|
|
@@ -38,7 +38,7 @@ const snapshotSize = defineLeaf({
|
|
|
38
38
|
},
|
|
39
39
|
async run(ctx, { flags }) {
|
|
40
40
|
try {
|
|
41
|
-
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-
|
|
41
|
+
const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-BzamcZrn.js");
|
|
42
42
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
43
43
|
return runSnapshotSize({
|
|
44
44
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -103,7 +103,7 @@ const bundleSize = defineLeaf({
|
|
|
103
103
|
},
|
|
104
104
|
async run(ctx, { flags }) {
|
|
105
105
|
try {
|
|
106
|
-
const { runBundleSize } = await import("./bundle-size-
|
|
106
|
+
const { runBundleSize } = await import("./bundle-size-BoG9Jm7c.js");
|
|
107
107
|
const path = given(flags.policy) ?? ctx.config.policy;
|
|
108
108
|
return runBundleSize({
|
|
109
109
|
policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
|
|
@@ -1,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-DNbj0_Yi.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-B5exEJf5.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-
|
|
1
|
+
export { t as SNAPSHOT_BUDGET_BYTES, i as runSnapshotSize } from "./snapshot-size-CJ53OOen.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
2
|
-
import { d as snapshotFor } from "./src-
|
|
2
|
+
import { d as snapshotFor } from "./src-CYKqpYUM.js";
|
|
3
3
|
import { gzipSync } from "node:zlib";
|
|
4
4
|
// src/cli/snapshot-size.ts
|
|
5
5
|
/** The default budget of the PD112 doctor rule, in bytes of JSON. */
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { i as describe, r as DescribeOptions, t as DecisionDescription } from ".
|
|
|
2
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-
|
|
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-D5-cqb6z.js";
|
|
6
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-
|
|
7
|
+
import { d as UncheckedData, s as RowData } from "../permdock-CHU1LZGq.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-C_Lnc8Ec.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-CHU1LZGq.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
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-
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-CdaSVKrt.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,6 +1,6 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { i as decorate } from "../bind-
|
|
3
|
-
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { i as decorate } from "../bind-2Cuy29LS.js";
|
|
3
|
+
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-DXgza6EM.js";
|
|
4
4
|
// src/solid-start/create.ts
|
|
5
5
|
/**
|
|
6
6
|
* `event.locals`. Its type, `App.RequestEventLocals`, is declared by
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-BksM3Q9O.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { _ as sameList, d as PROBE, f as canonOf, g as probeSnapshot, h as probeGroup, m as compactWithBundle, r as resolveSubject } from "./permdock-
|
|
3
|
+
import { _ as sameList, d as PROBE, f as canonOf, g as probeSnapshot, h as probeGroup, m as compactWithBundle, r as resolveSubject } from "./permdock-DZmr2kJw.js";
|
|
4
4
|
import { n as PermDockDeniedError } from "./errors-DOSkVeTC.js";
|
|
5
5
|
import { c as evaluateCondition } from "./delegation-0DVVomzu.js";
|
|
6
6
|
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-C6je8vWN.js";
|
|
@@ -1569,12 +1569,12 @@ function customRoleSource(reader, options = {}) {
|
|
|
1569
1569
|
return Object.freeze({
|
|
1570
1570
|
rolesFor(tenant, context) {
|
|
1571
1571
|
if (declared !== void 0 && context?.held.every((name) => declared.has(name)) === true) return [];
|
|
1572
|
-
const roles = reader.rolesFor(tenant);
|
|
1572
|
+
const roles = reader.rolesFor(tenant, context);
|
|
1573
1573
|
return isThenable(roles) ? roles.then((list) => ofTenant(tenant, list)) : ofTenant(tenant, roles);
|
|
1574
1574
|
},
|
|
1575
1575
|
...reader.assignable === void 0 ? {} : { assignable: (tenant) => reader.assignable?.(tenant) ?? [] },
|
|
1576
|
-
...reader.globalRoles === void 0 ? {} : { globalRoles: (context) => declared !== void 0 && context?.held.every((name) => declared.has(name)) === true ? [] : reader.globalRoles?.() ?? [] },
|
|
1577
|
-
...reader.sharedRoles === void 0 ? {} : { sharedRoles: (context) => declared !== void 0 && context?.held.every((name) => declared.has(name)) === true ? [] : reader.sharedRoles?.() ?? [] }
|
|
1576
|
+
...reader.globalRoles === void 0 ? {} : { globalRoles: (context) => declared !== void 0 && context?.held.every((name) => declared.has(name)) === true ? [] : reader.globalRoles?.(context) ?? [] },
|
|
1577
|
+
...reader.sharedRoles === void 0 ? {} : { sharedRoles: (context) => declared !== void 0 && context?.held.every((name) => declared.has(name)) === true ? [] : reader.sharedRoles?.(context) ?? [] }
|
|
1578
1578
|
});
|
|
1579
1579
|
}
|
|
1580
1580
|
// src/core/assignable-for.ts
|
|
@@ -3,7 +3,7 @@ import { w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
|
3
3
|
import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
|
|
4
4
|
import { a as ProblemDetails } from "./errors-BliKrfmP.js";
|
|
5
5
|
import { n as DescribeMessages, t as DecisionDescription } from "./describe-DEoWvk00.js";
|
|
6
|
-
import { a as PermDock } from "./permdock-
|
|
6
|
+
import { a as PermDock } from "./permdock-CHU1LZGq.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-
|
|
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-D5-cqb6z.js";
|
|
2
2
|
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-DuM3k5Ao.js";
|
|
3
3
|
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DEoWvk00.js";
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "./permdock-CHU1LZGq.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-BRaJxlqL.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>;
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q a
|
|
|
2
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
3
|
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BGN3coSe.js";
|
|
4
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-
|
|
5
|
+
import { F as PermissionState, P as PermissionCheck, a as PermDock, z as ApprovalPolicySource } from "../permdock-CHU1LZGq.js";
|
|
6
6
|
import { t as SqlQuery } from "../sql-BYYNi1lu.js";
|
|
7
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-ZR0w-Loy.js";
|
|
10
10
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-5LJ8kfZk.js";
|
|
11
11
|
import { n as subjectFromSupabaseClient, t as SupabaseClaimsClient } from "../client-subject-YAGMzRa-.js";
|
|
12
12
|
/**
|