permdock 0.36.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-FcbJOEo1.js → adoption-scan-sufK4R53.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/{approval-prompt-BKxaKtby.d.ts → approval-prompt-DCC4jp2s.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-rYG2UY9k.js → arazzo-BxtTsEK2.js} +2 -2
- package/dist/{arazzo-BRWgVc8j.js → arazzo-D0ctRNBU.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.d.ts +6 -6
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-C7WH5XcZ.d.ts → automation-DdarCGcn.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 +5 -5
- package/dist/{bind-2Cuy29LS.js → bind-BNYcJ1D9.js} +2 -2
- package/dist/{bind-Caffleoh.d.ts → bind-CLvD4iLc.d.ts} +7 -7
- package/dist/{bsb-access-tags-Bfmhft2o.js → bsb-access-tags-LCaE48SK.js} +1 -1
- package/dist/{budgets-B2hIDaz7.js → budgets-DFnMBpKz.js} +3 -3
- package/dist/{build-instance-CZg_Bf45.js → build-instance-BGpABVbM.js} +1 -1
- package/dist/bundle-size-CGd8wVIu.js +1 -0
- package/dist/{bundle-size-BjdmlKWJ.js → bundle-size-Pgm7BB5m.js} +2 -2
- package/dist/{capability-BW-vAxJi.d.ts → capability-CsiHf7K3.d.ts} +1 -1
- package/dist/{casbin-4FACZ5Ez.js → casbin-CMEY_GT4.js} +1 -1
- package/dist/{casbin-Cz8BGXHW.js → casbin-CkLvGuUb.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claims-size-B0OvYh9z.js +1 -0
- package/dist/{claims-size-BUhCWS88.js → claims-size-ZiUJBn0r.js} +42 -8
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +1 -1
- 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-YAGMzRa-.d.ts → client-subject-DSF0IYGW.d.ts} +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/{cloud-BB67klb4.js → cloud-N4IUVluH.js} +1 -1
- package/dist/{codemod-BPcxGOlq.js → codemod-C9SQqhNG.js} +4 -4
- package/dist/{codemod-Lov9764v.js → codemod-D5a5oDJX.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-EtZv2wc0.js → compile-BFV2WG67.js} +2 -2
- package/dist/{compile-CyUn58lf.d.ts → compile-CFV4wDo9.d.ts} +2 -2
- package/dist/{completion-5Y8toe1d.js → completion-BUWG1FGo.js} +1 -1
- package/dist/{config-DfbiV554.js → config-B3Bc6Tly.js} +1 -1
- package/dist/{config-report-Cs6iDebE.js → config-report-3IhYuH4v.js} +1 -1
- package/dist/{context-CFPsmfPl.js → context-CNI2jibq.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-s_TCdJ6G.js → core-BFR-V5CL.js} +2 -2
- package/dist/{core-_Lofwt2K.d.ts → core-BOWoKYve.d.ts} +2 -2
- package/dist/{create-bbjS7tCW.js → create-BICq9l-p.js} +2 -2
- package/dist/{create-D12I1Vkl.d.ts → create-BTthKNP0.d.ts} +7 -7
- package/dist/{create-EPbgV-LA.d.ts → create-BaKdh-D8.d.ts} +6 -6
- package/dist/{create-D6B06lb8.js → create-Dapy8DIK.js} +3 -3
- package/dist/{create-BfTbYrts.d.ts → create-Y6DnNpuP.d.ts} +4 -4
- package/dist/{credentials-DtSnydoD.d.ts → credentials-e872ACwg.d.ts} +2 -2
- package/dist/{define-permdock-ZR0w-Loy.d.ts → define-permdock-8YZPaa9x.d.ts} +6 -6
- package/dist/{define-permdock-Dazve5lw.js → define-permdock-B0q7Rg9b.js} +1 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/{denied-text-DgNqDAPH.d.ts → denied-text-u4OC-MYV.d.ts} +1 -1
- package/dist/{describe-DEoWvk00.d.ts → describe-DLGEciCs.d.ts} +1 -1
- package/dist/{diff-C7zKA7ny.js → diff-BebUlh4Z.js} +1 -1
- package/dist/{diff-BABnQ-z0.js → diff-Sxca4_5q.js} +2 -2
- package/dist/{doctor-Cm1HDI5s.js → doctor-DP7HwXw_.js} +2 -2
- package/dist/{doctor-Chio5Col.js → doctor-DhpDQ5C6.js} +21 -21
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-BliKrfmP.d.ts → errors-C35fh_2K.d.ts} +1 -1
- package/dist/{evaluations-BYoj5ci6.d.ts → evaluations-BiZYgET4.d.ts} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/{execute-B_yY9xWV.js → execute-g-nMgY4t.js} +4 -4
- package/dist/{explain-CKIqxXSe.js → explain-BrvY9cXX.js} +1 -1
- package/dist/{explain-Blkq60Ff.js → explain-CgKGadRa.js} +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-CdaSVKrt.d.ts → fetch-adapter-CQSxXotl.d.ts} +2 -2
- package/dist/{fetch-adapter-DXgza6EM.js → fetch-adapter-dmABnF7F.js} +1 -1
- package/dist/{gen-DlJK73v7.js → gen-CTRqv1H2.js} +3 -3
- package/dist/gen-D-orrO2e.js +1 -0
- package/dist/{gen-kind-C4tERYMw.js → gen-kind-DLnQ-vCe.js} +1 -1
- package/dist/{generate-CFqcr3H6.js → generate-DcPnvokU.js} +10 -10
- package/dist/{generate-CbLA2WW_.js → generate-dbQzpEqb.js} +3 -3
- package/dist/{generate-options-BFAvlJKQ.js → generate-options-4jvPn7w3.js} +5 -5
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-CSUFnRn0.js → hook-sql-3yPtwas6.js} +4 -4
- package/dist/{hosted-DZgmEG4b.d.ts → hosted-Cl7q35D-.d.ts} +1 -1
- package/dist/{import-B-17dw3B.js → import-DEUiWePf.js} +1 -1
- package/dist/{index-Bb2sZq1K.d.ts → index-B1hyWi7O.d.ts} +6 -6
- package/dist/{index-Cfg0ED9K.d.ts → index-BtPvYUww.d.ts} +4 -4
- package/dist/{index-CT4VKXU-.d.ts → index-D9DsY164.d.ts} +4 -4
- package/dist/{index-DBBRSw6r.d.ts → index-DYvFRQle.d.ts} +2 -2
- package/dist/{index-CAE_Z53Y.d.ts → index-L6lt50lg.d.ts} +1 -1
- package/dist/{index-DY1aJ-K1.d.ts → index-p5y3whIg.d.ts} +4 -4
- package/dist/index.d.ts +15 -15
- package/dist/index.js +3 -3
- package/dist/{init-DRbkPclr.js → init-CUviJnno.js} +3 -3
- package/dist/{init-Bg0vS1LV.js → init-DqOKr99S.js} +1 -1
- package/dist/{inspect-functions-DLP72IMA.js → inspect-functions-Uv3Ndkty.js} +1 -1
- package/dist/{instance-options-D-SLCp4I.d.ts → instance-options-CUNLusL6.d.ts} +1 -1
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-CzzmzwLg.js → kernel-yI0nUyuX.js} +3 -3
- package/dist/{keys-C-W0yrql.js → keys-CA3SdBHQ.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-BSHAIpMK.d.ts → lazy-provider-B22nfOsw.d.ts} +1 -1
- package/dist/{login-yF-sDNm9.js → login-BMONKzI_.js} +3 -3
- package/dist/{login-D6IJk8k1.js → login-mcxQxTAL.js} +1 -1
- package/dist/{manifest-DkHIGPoY.js → manifest-tO5SjSGH.js} +39 -39
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +2 -2
- package/dist/{measure-_VlSPfSY.js → measure-r811lN7F.js} +1 -1
- package/dist/{model-r7X_HXyS.js → model-wt3wihiH.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +11 -11
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-D156UqcM.js → openapi-BZHc6R7A.js} +2 -2
- package/dist/{openapi-Dcqqja0n.js → openapi-CNWuAQZi.js} +1 -1
- package/dist/{openapi-document-CTvHkCXz.js → openapi-document-CHJI74v_.js} +1 -1
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-DNbj0_Yi.js → output-Bfc3EpB2.js} +1 -1
- package/dist/{ownership-BvKT4DBj.js → ownership-BuQFLjZ5.js} +1 -1
- package/dist/{parse-local-manifest-DoLQFkRb.d.ts → parse-local-manifest-BE_R-Ish.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DZmr2kJw.js → permdock-CbavFN6u.js} +4 -1
- package/dist/{permdock-CHU1LZGq.d.ts → permdock-NJ4-pCZy.d.ts} +2 -2
- package/dist/{permissions-DUmypTlO.js → permissions-BPYOb5OB.js} +1 -1
- package/dist/{pipeline-BMbLI2Sj.js → pipeline-DW7cy40F.js} +2 -2
- package/dist/{plugin-DDPXES4k.d.ts → plugin-YAJ25tft.d.ts} +2 -2
- package/dist/{policy-BoUbJ2c0.d.ts → policy-BlOumPY5.d.ts} +1 -1
- package/dist/{policy-DekUQ-6v.js → policy-DTk6NZm-.js} +1 -1
- package/dist/{policy-bundle-JU4-AFJM.js → policy-bundle-C7Hz9Rrs.js} +3 -3
- package/dist/{policy-types-DuM3k5Ao.d.ts → policy-types-CRWqx8qf.d.ts} +7 -2
- package/dist/{postgrest-B1bTbVE4.d.ts → postgrest-BGYDQhG1.d.ts} +7 -6
- package/dist/{powersync-CpxkK_Lz.js → powersync-CeuhNT0R.js} +1 -1
- package/dist/{powersync-cG4lxrzQ.js → powersync-CoP_nlGj.js} +8 -8
- package/dist/{powersync-D9ZLDzyv.js → powersync-LpKFefiH.js} +1 -1
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-Dux5RJbA.d.ts → protected-action-BbQb5G_c.d.ts} +5 -5
- package/dist/{provider-BSHAIpMK.d.ts → provider-B22nfOsw.d.ts} +1 -1
- package/dist/{provider-BfKUBNyV.js → provider-hQFC3b98.js} +1 -1
- package/dist/{prune-config-ByigsAkl.js → prune-config-C0uSbf1I.js} +4 -4
- package/dist/{pull-4Cyo0uTS.js → pull-A1SkxAyb.js} +1 -1
- package/dist/pull-CNMED72E.js +1 -0
- package/dist/{pushed-policy-C65TbLtU.d.ts → pushed-policy-B2AXpqRr.d.ts} +1 -1
- package/dist/{rbac-BOVyTCI6.js → rbac-Dx88RLxH.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 +8 -8
- package/dist/{rename-Dp47Gs_j.js → rename-RnOp8vDq.js} +1 -1
- package/dist/replay-DjZ4I8QN.d.ts +3 -0
- package/dist/{request-context-LvIolknK.js → request-context-C9FFFpuH.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-B_no27Dh.js → resolve-names-Ch5Ve5l4.js} +1 -1
- package/dist/{resolver-CAmmdVAL.js → resolver-C9-dU-SZ.js} +11 -6
- package/dist/{rls-DB18scnl.js → rls-CHJbaZxj.js} +7 -7
- package/dist/{rls-C816Uuvx.js → rls-DgYAJpVW.js} +3 -3
- package/dist/{rls-files-Cp-qzl61.js → rls-files-RZ7PGrzg.js} +1 -1
- package/dist/{rls-options-DCLdZaTZ.d.ts → rls-options-BWWTZWjh.d.ts} +1 -1
- package/dist/{rpc-CL8lrV5Y.d.ts → rpc-CqKQCBPN.d.ts} +1 -1
- package/dist/{rpc-CoClxzcc.js → rpc-RDBrKR7N.js} +1 -1
- package/dist/{run-CJhz8BHw.js → run-CbJPONx5.js} +2 -2
- package/dist/run-iPVAxorh.js +1 -0
- package/dist/{run-ticket-CCRYQNj0.d.ts → run-ticket-BIRal-vH.d.ts} +2 -2
- package/dist/{saas-iXqf78G8.js → saas-CHviJgF2.js} +2 -2
- package/dist/{scan-DvM-_F8-.js → scan-DjTW-y6E.js} +1 -1
- package/dist/{schema-uTRr3B9f.js → schema-DVyxM9xS.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/seeds/index.d.ts +1 -1
- package/dist/{seeds-BZMPfWcC.d.ts → seeds-K00R0810.d.ts} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +1 -1
- package/dist/{server-types-C_Lnc8Ec.d.ts → server-types-CaKNUxdc.d.ts} +8 -8
- package/dist/{sink-CoMI_OVw.d.ts → sink-CCirKrLv.d.ts} +2 -2
- package/dist/{size-BO7J8M3B.js → size-Dm3777Ev.js} +3 -3
- package/dist/{skills-DF_3nX9_.js → skills-BYc8rmHF.js} +1 -1
- package/dist/{skills-B5exEJf5.js → skills-BdmjI4D2.js} +1 -1
- package/dist/{snapshot-cache-R1lJjYmI.d.ts → snapshot-cache-Dh_owfVu.d.ts} +1 -1
- package/dist/{snapshot-size-CJ53OOen.js → snapshot-size-CpdksnSr.js} +1 -1
- package/dist/{snapshot-size-BzamcZrn.js → snapshot-size-I_-fxGry.js} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-Dp6FQ8np.d.ts → sources-CD1OiqqK.d.ts} +1 -1
- package/dist/{src-CYKqpYUM.js → src-10d_jun2.js} +1 -1
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-D2FwHtMX.d.ts → standard-webhooks-CiV4_mv2.d.ts} +2 -2
- package/dist/{store-core-D5-cqb6z.d.ts → store-core-fRqdlrep.d.ts} +4 -4
- package/dist/{stores-DPUPLu29.d.ts → stores-BXPRg1Ot.d.ts} +5 -5
- package/dist/{subject-cache-Bn4oJY_R.d.ts → subject-cache-1EtpGx3y.d.ts} +9 -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 +3 -3
- package/dist/{supabase-Dpy2XE9v.js → supabase-BAuqWNj3.js} +2 -2
- package/dist/{supabase-NpHqrRXC.js → supabase-CeJAHqZp.js} +2 -2
- package/dist/{supabase-hook-VIpXUHKI.js → supabase-hook-BbwsceID.js} +5 -5
- package/dist/supabase-hook-CObLSH20.js +2 -0
- package/dist/{supabase-schemas-DA28GP4N.js → supabase-schemas-RG58AMTu.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/sveltekit/index.js +1 -1
- package/dist/{table-reads-B5kunhny.js → table-reads--NupdCFw.js} +1 -1
- package/dist/{table-reads-4KzGXg9f.js → table-reads-Glf0BHSE.js} +1 -1
- package/dist/{tables-BwQvlpS4.js → tables-Dyfviku5.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-CsJkduIb.js → tenant-check-Bfd4hotj.js} +3 -3
- package/dist/terminal/index.d.ts +5 -5
- 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.d.ts +3 -3
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/index.js +5 -5
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-CsWH9z8p.d.ts → type-helpers-DTlfU9zX.d.ts} +1 -1
- package/dist/{types-iwSmOTcK.d.ts → types-BGDafbIK.d.ts} +4 -4
- package/dist/{types-BGN3coSe.d.ts → types-BdghnYGo.d.ts} +1 -1
- package/dist/{types-Cvfe-G_N.d.ts → types-C1jxMZ4q.d.ts} +2 -2
- package/dist/{types-D3GI2B9O.d.ts → types-C2GmBHtC.d.ts} +3 -3
- package/dist/{types-CM5GwxiJ.d.ts → types-CAGo84uV.d.ts} +4 -4
- package/dist/{types-B23A72BG.d.ts → types-CN3Tk7bb.d.ts} +2 -2
- package/dist/{types-CKwI6AT4.d.ts → types-CzAFVtMz.d.ts} +1 -1
- package/dist/{types-C8sDUhaF.d.ts → types-Jxy_Ko7f.d.ts} +2 -2
- package/dist/{types-BwjOhlgx.d.ts → types-XhEnMpL6.d.ts} +4 -4
- package/dist/{types-BRaJxlqL.d.ts → types-ZjPv-GgQ.d.ts} +3 -3
- package/dist/{types-config-DYRoZ8Iw.d.ts → types-config-B3eAej9-.d.ts} +2 -2
- package/dist/{types-run-CeCrWO0v.d.ts → types-run-sP7yLp61.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/{usage-_9h9jQo8.js → usage-7Hwk_akY.js} +2 -2
- package/dist/usage-Bwl8YAmq.js +1 -0
- package/dist/{usage-BD_z4pba.js → usage-nZP7EeRj.js} +1 -1
- package/dist/{validation-error-MZ7KLNHt.d.ts → validation-error-OX59FaXR.d.ts} +1 -1
- package/dist/{verify-cw6SFoQE.js → verify-DOCJgGlw.js} +5 -5
- package/dist/{version-cache-Ccrfu2A4.js → version-cache-l9Zrfvhz.js} +8 -6
- package/dist/vue/index.d.ts +5 -5
- package/dist/{waiter-DdwtUSzB.d.ts → waiter-CyF-YowB.d.ts} +2 -2
- package/dist/{warm-XyQ-2nUR.js → warm-BOrs0-_j.js} +1 -1
- package/dist/{warm-znYuJoUZ.d.ts → warm-BYF-zxiy.d.ts} +1 -1
- package/dist/{watch-Cvc7eUPk.js → watch-DYsWhTvO.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-B4Ge6LOd.d.ts → wrap-CPvBX9lm.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/bundle-size-BoG9Jm7c.js +0 -1
- package/dist/claims-size-C6oKGuOM.js +0 -1
- package/dist/gen-CYuPbpBZ.js +0 -1
- package/dist/pull-_ic7Md2h.js +0 -1
- package/dist/replay-B__gzUx3.d.ts +0 -3
- package/dist/run-PpoUQXDc.js +0 -1
- package/dist/supabase-hook-DaK4Rirh.js +0 -2
- package/dist/usage-wphGxzPQ.js +0 -1
package/dist/pdp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as PermDockOptions } from "../permdock-
|
|
2
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-
|
|
3
|
-
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-
|
|
1
|
+
import { o as PermDockOptions } from "../permdock-NJ4-pCZy.js";
|
|
2
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-CRWqx8qf.js";
|
|
3
|
+
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-Jxy_Ko7f.js";
|
|
4
4
|
/**
|
|
5
5
|
* The PDP-aware instance, built synchronously like core `getPermDockSync`; use
|
|
6
6
|
* `getPermDock` for asynchronous inputs.
|
package/dist/pdp/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
|
|
|
4
4
|
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
|
|
5
5
|
import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
|
|
6
6
|
import { n as internalsOf, t as attachInternals } from "../internals-D58TnmDB.js";
|
|
7
|
-
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-
|
|
7
|
+
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-CbavFN6u.js";
|
|
8
8
|
import { a as getResource, c as listPermissions } from "../permission-registry-DstT40VS.js";
|
|
9
9
|
import { a as postJson, c as ttlMs, i as joinUrl, n as denied, o as resourceIdOf, r as granted, s as ttlCache, t as cacheKey } from "../shared-BOsJIQf4.js";
|
|
10
10
|
import { n as toWireDelegation } from "../wire-delegation-DC5Cyec4.js";
|
|
@@ -626,7 +626,10 @@ function assemblePrincipal(policy, user, options, auth, memo) {
|
|
|
626
626
|
}, () => read(source, principal), auth, source.globalRolesFor === void 0 ? void 0 : () => source.globalRolesFor?.(compact({
|
|
627
627
|
id: principal.id,
|
|
628
628
|
kind: principal.kind
|
|
629
|
-
}), {
|
|
629
|
+
}), compact({
|
|
630
|
+
memo,
|
|
631
|
+
tenant: options.tenant
|
|
632
|
+
})) ?? [], options.version?.known, forced, rolesCheck);
|
|
630
633
|
memberships = reread.memberships;
|
|
631
634
|
stale = reread.stale;
|
|
632
635
|
roles = reread.roles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-
|
|
1
|
+
import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { K as AppData, P as ResourceNode, V as RowOf, a as RoleTree, n as PlanTree, r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { i as OperationEffect, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-DaEoGpMV.js";
|
|
4
|
-
import { a as HostedPolicies } from "./hosted-
|
|
4
|
+
import { a as HostedPolicies } from "./hosted-Cl7q35D-.js";
|
|
5
5
|
/**
|
|
6
6
|
* One approval requirement kept as data, for a tenant or the whole platform. It
|
|
7
7
|
* adds to what the code requires and never removes a requirement.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as crud } from "./src-
|
|
1
|
+
import { c as crud } from "./src-10d_jun2.js";
|
|
2
2
|
import { t as definePermissions } from "./permissions-DJ_QV9L7.js";
|
|
3
3
|
import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
|
|
4
4
|
import { v as resource } from "./permission-registry-DstT40VS.js";
|
|
@@ -2,8 +2,8 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
|
2
2
|
import { r as planFiles, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-
|
|
6
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
5
|
+
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-wt3wihiH.js";
|
|
6
|
+
import { n as resolveSchemas } from "./supabase-schemas-RG58AMTu.js";
|
|
7
7
|
import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
9
9
|
import { join, relative, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-
|
|
2
|
-
import { a as PermDockConfig } from "./types-config-
|
|
1
|
+
import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-CRWqx8qf.js";
|
|
2
|
+
import { a as PermDockConfig } from "./types-config-B3eAej9-.js";
|
|
3
3
|
import { P as ResourceNode } from "./vocabulary-DHfKPIC5.js";
|
|
4
4
|
/** The settings of the Supabase project config doctor reads. */
|
|
5
5
|
type SupabaseConfig = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-
|
|
1
|
+
import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-UyQD5nRN.js";
|
|
3
3
|
/** Daily API-key quota per subject; the bucket should be per tenant too. */
|
|
4
4
|
declare const SAAS_API_KEY_LIMIT = 5;
|
|
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
|
|
|
18
18
|
},
|
|
19
19
|
async run(ctx, { flags }) {
|
|
20
20
|
try {
|
|
21
|
-
const { runPolicyBundle } = await import("./policy-bundle-
|
|
21
|
+
const { runPolicyBundle } = await import("./policy-bundle-C7Hz9Rrs.js");
|
|
22
22
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
23
23
|
return runPolicyBundle({
|
|
24
24
|
cwd: ctx.cwd,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
3
|
-
import { r as compileGrants } from "./compile-
|
|
4
|
-
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-4jvPn7w3.js";
|
|
3
|
+
import { r as compileGrants } from "./compile-BFV2WG67.js";
|
|
4
|
+
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-Dyfviku5.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -2125,12 +2125,17 @@ type MembershipSource = {
|
|
|
2125
2125
|
* The global roles the principal holds now. With `onStale: 'reread'`, a stale
|
|
2126
2126
|
* token's `principal.roles` is replaced by this answer, so a revoked platform
|
|
2127
2127
|
* role is lost with the memberships. A throw or rejection leaves no global
|
|
2128
|
-
* roles. Without it, a reread keeps the token's roles.
|
|
2128
|
+
* roles. Without it, a reread keeps the token's roles. The context carries
|
|
2129
|
+
* the instance's `tenant` when it has one: global roles are the user's in
|
|
2130
|
+
* every tenant, so a source that reads one tenant's record may answer from
|
|
2131
|
+
* it.
|
|
2129
2132
|
*/
|
|
2130
2133
|
globalRolesFor?: (principal: {
|
|
2131
2134
|
readonly id: string;
|
|
2132
2135
|
readonly kind?: string;
|
|
2133
|
-
}, context?: SourceContext
|
|
2136
|
+
}, context?: SourceContext & {
|
|
2137
|
+
readonly tenant?: string;
|
|
2138
|
+
}) => readonly string[] | Promise<readonly string[]>;
|
|
2134
2139
|
/**
|
|
2135
2140
|
* Keep the memberships the verified token carries and read this source only
|
|
2136
2141
|
* when the token says they were truncated (`claimsFirst`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-
|
|
2
|
-
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-
|
|
1
|
+
import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-CRWqx8qf.js";
|
|
2
|
+
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-1EtpGx3y.js";
|
|
3
3
|
/**
|
|
4
4
|
* What a supabase-js `rpc` call resolves to: `data` or an `error` with a
|
|
5
5
|
* message.
|
|
@@ -86,10 +86,11 @@ type PostgrestSourcesOptions = {
|
|
|
86
86
|
* option) through `subject_for(p_user, p_tenant)` instead of every tenant's
|
|
87
87
|
* through `subject_for(p_user)`, so a user in many organisations loads one.
|
|
88
88
|
* An instance with no `tenant`, or an empty one, reads no memberships here:
|
|
89
|
-
* the source never falls back to the all-tenants read.
|
|
90
|
-
* `
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* the source never falls back to the all-tenants read.
|
|
90
|
+
* `memberships.globalRolesFor` reads the instance's tenant too, since that
|
|
91
|
+
* record carries the user's global roles. `subject`, `refresh` and `record`
|
|
92
|
+
* still read the whole user. A custom role of another tenant than the
|
|
93
|
+
* instance's is not read. Default `false`.
|
|
93
94
|
*/
|
|
94
95
|
readonly tenantScoped?: boolean;
|
|
95
96
|
};
|
|
@@ -24,7 +24,7 @@ const verify = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
25
25
|
const fixtures = given(flags.fixtures);
|
|
26
26
|
const from = given(flags.policy);
|
|
27
|
-
const { runPowerSync } = await import("./powersync-
|
|
27
|
+
const { runPowerSync } = await import("./powersync-LpKFefiH.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-DstT40VS.js";
|
|
3
|
-
import { t as getPermDock } from "./permdock-
|
|
4
|
-
import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-
|
|
3
|
+
import { t as getPermDock } from "./permdock-CbavFN6u.js";
|
|
4
|
+
import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-10d_jun2.js";
|
|
5
5
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
7
7
|
import { i as fileDrift } from "./output-files-8lfALMSU.js";
|
|
8
8
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
9
9
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
11
|
-
import { t as canFixture } from "./verify-
|
|
12
|
-
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-
|
|
11
|
+
import { t as canFixture } from "./verify-DOCJgGlw.js";
|
|
12
|
+
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-Dx88RLxH.js";
|
|
13
13
|
import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
14
14
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
|
|
15
15
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
@@ -18,15 +18,15 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
|
|
|
18
18
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
19
19
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
20
20
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
21
|
-
import { t as ownershipRules } from "./ownership-
|
|
22
|
-
import { a as tableFor } from "./compile-
|
|
23
|
-
import { i as tableNames, r as tableNameOf } from "./tables-
|
|
21
|
+
import { t as ownershipRules } from "./ownership-BuQFLjZ5.js";
|
|
22
|
+
import { a as tableFor } from "./compile-BFV2WG67.js";
|
|
23
|
+
import { i as tableNames, r as tableNameOf } from "./tables-Dyfviku5.js";
|
|
24
24
|
import { l as policyLevels } from "./policy-CZBJDcTx.js";
|
|
25
25
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
26
26
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
27
27
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
28
28
|
import { o as parseSqlLenient } from "./ast-Dnm2TOHN.js";
|
|
29
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
29
|
+
import { n as resolveSchemas } from "./supabase-schemas-RG58AMTu.js";
|
|
30
30
|
import { existsSync, readFileSync } from "node:fs";
|
|
31
31
|
import { join, resolve } from "node:path";
|
|
32
32
|
// src/cli/powersync/claims.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-
|
|
1
|
+
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-CoP_nlGj.js";
|
package/dist/prisma/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-
|
|
1
|
+
import { Ar as Subject, Fr as Condition, qt as Instant } from "../policy-types-CRWqx8qf.js";
|
|
2
2
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-C9F1sU1d.js";
|
|
3
|
-
import { p as WhereResult } from "../permdock-
|
|
3
|
+
import { p as WhereResult } from "../permdock-NJ4-pCZy.js";
|
|
4
4
|
import { r as RelationsMapping } from "../graph-sql-Ds3nbevr.js";
|
|
5
5
|
/**
|
|
6
6
|
* A model's non-nullable scalar fields and its scalar list fields, by Prisma
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-
|
|
1
|
+
import { Dr as Membership, N as PolicyVocabulary, ir as Decision } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
4
|
-
import { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
5
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-
|
|
3
|
+
import { d as UncheckedData, s as RowData } from "./permdock-NJ4-pCZy.js";
|
|
4
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DLGEciCs.js";
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-fRqdlrep.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
|
|
7
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-BGDafbIK.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
/**
|
|
10
10
|
* The instance with every check. It loads the evaluator on first use and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-BGDafbIK.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
4
4
|
export { PermDockProvider as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { a as delegatedScopeMap } from "./permdock-
|
|
3
|
+
import { a as delegatedScopeMap } from "./permdock-CbavFN6u.js";
|
|
4
4
|
import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
5
5
|
import { n as parseSupabaseManifest, t as hasTokenHook } from "./manifest-teSfgeqF.js";
|
|
6
6
|
import { y as parseAnswer } from "./permission-registry-DstT40VS.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
2
2
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
4
|
-
import { t as genFiles } from "./gen-
|
|
5
|
-
import { t as projectContext } from "./context-
|
|
6
|
-
import { t as emitPluginFiles } from "./pipeline-
|
|
4
|
+
import { t as genFiles } from "./gen-CTRqv1H2.js";
|
|
5
|
+
import { t as projectContext } from "./context-CNI2jibq.js";
|
|
6
|
+
import { t as emitPluginFiles } from "./pipeline-DW7cy40F.js";
|
|
7
7
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-Dan6vcvj.js";
|
|
9
9
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
10
10
|
import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
|
|
11
11
|
import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
|
|
12
12
|
import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
|
|
13
|
-
import { n as commandFor } from "./compile-
|
|
13
|
+
import { n as commandFor } from "./compile-BFV2WG67.js";
|
|
14
14
|
import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
|
|
15
15
|
import { readFileSync } from "node:fs";
|
|
16
16
|
// src/cli/codemod/prune-config.ts
|
|
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
|
|
|
4
4
|
import { o as formatCatalogJson } from "./catalog-doc-BX97oFAn.js";
|
|
5
5
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
6
6
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { o as nonEmptyOr } from "./output-
|
|
7
|
+
import { o as nonEmptyOr } from "./output-Bfc3EpB2.js";
|
|
8
8
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
10
10
|
import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-A1SkxAyb.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy, Fr as Condition, Gn as Grantee, W as WireValidity, b as GrantMeta, dn as SnapshotScope, f as BreakGlassSpec, nr as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-
|
|
1
|
+
import { D as Policy, Fr as Condition, Gn as Grantee, W as WireValidity, b as GrantMeta, dn as SnapshotScope, f as BreakGlassSpec, nr as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
3
3
|
/**
|
|
4
4
|
* One code grant as `permdock cloud push` sends it. `portable: false` marks a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as authorizeSql } from "./supabase-
|
|
1
|
+
import { n as authorizeSql } from "./supabase-CeJAHqZp.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dob6QQAc.js";
|
|
4
4
|
import { c as rootScope, d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as describe } from "../describe-
|
|
2
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as describe } from "../describe-DLGEciCs.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-C35fh_2K.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-BbQb5G_c.js";
|
|
6
6
|
import { t as onlineRefresh } from "../refresh-online-vtUfV6dk.js";
|
|
7
|
-
import { t as PermDockProvider } from "../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 "../provider-B22nfOsw.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.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-fRqdlrep.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 };
|
package/dist/react/lazy.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as describe } from "../describe-
|
|
2
|
-
import { c as requiredPlans } from "../errors-
|
|
1
|
+
import { i as describe } from "../describe-DLGEciCs.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-C35fh_2K.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-BbQb5G_c.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-B22nfOsw.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.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-fRqdlrep.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-B22nfOsw.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../provider-
|
|
1
|
+
import { t as PermDockProvider } from "../provider-B22nfOsw.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { i as describe } from "../describe-DLGEciCs.js";
|
|
2
2
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
3
|
-
import { c as requiredPlans } from "../errors-
|
|
3
|
+
import { c as requiredPlans } from "../errors-C35fh_2K.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-
|
|
8
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
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-BbQb5G_c.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-fRqdlrep.js";
|
|
7
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-BGDafbIK.js";
|
|
8
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-BE_R-Ish.js";
|
|
9
9
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
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-
|
|
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-CRWqx8qf.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-CAGo84uV.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,7 +3,7 @@ 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-Dx88RLxH.js";
|
|
7
7
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
8
8
|
import { n as legacyKeySql } from "./custom-role-rebuild-QFXiMHqJ.js";
|
|
9
9
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
@@ -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-BGpABVbM.js";
|
|
3
3
|
import { n as wrapPermDock } from "./wrap-CsfsaJhd.js";
|
|
4
4
|
// src/core/request-context.ts
|
|
5
5
|
/**
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
2
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
3
|
-
import { X as DecisionSink } from "../policy-types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-DCC4jp2s.js";
|
|
2
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-C2GmBHtC.js";
|
|
3
|
+
import { X as DecisionSink } from "../policy-types-CRWqx8qf.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-C1jxMZ4q.js";
|
|
5
5
|
type ApprovalEmailOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* The app's approval page: a base the request id is appended to, or a
|
|
@@ -5,7 +5,7 @@ import "./budget-BH81q2cj.js";
|
|
|
5
5
|
import "./sources-C6Id63F8.js";
|
|
6
6
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
7
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-
|
|
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-Dyfviku5.js";
|
|
9
9
|
import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
|
|
10
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";
|
|
@@ -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-CbavFN6u.js";
|
|
4
4
|
import { t as anonymousSubject } from "./subject-DkxY-AhF.js";
|
|
5
|
-
import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-
|
|
5
|
+
import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-l9Zrfvhz.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-B0q7Rg9b.js";
|
|
10
|
+
import { t as buildInstance } from "./build-instance-BGpABVbM.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";
|
|
@@ -312,7 +312,8 @@ function postgrestSources(client, given = {}) {
|
|
|
312
312
|
},
|
|
313
313
|
list,
|
|
314
314
|
async globalRolesFor(principal, context) {
|
|
315
|
-
|
|
315
|
+
const scopeTo = tenantScoped && context?.tenant !== "" ? context?.tenant : void 0;
|
|
316
|
+
return [...(await live(principal.id, context?.memo, scopeTo))?.roles ?? []];
|
|
316
317
|
}
|
|
317
318
|
},
|
|
318
319
|
customRoles(principal) {
|
|
@@ -479,7 +480,11 @@ function createResolver(given) {
|
|
|
479
480
|
if (options.subjects !== void 0 && id !== void 0 && known !== void 0) try {
|
|
480
481
|
await options.subjects.record(id, known);
|
|
481
482
|
const record = result?.subject === void 0 ? void 0 : readSubjectRecord(result.subject);
|
|
482
|
-
|
|
483
|
+
const restrictedTo = result?.subjectTenant ?? null;
|
|
484
|
+
if (record?.active === true && (restrictedTo ?? tenant ?? null) === (tenant ?? null) && record.id === id && record.authzVersion === known) await options.subjects.seed(restrictedTo === null ? record : {
|
|
485
|
+
...record,
|
|
486
|
+
tenant: restrictedTo
|
|
487
|
+
});
|
|
483
488
|
} catch {}
|
|
484
489
|
const { permdock } = await buildInstance({
|
|
485
490
|
policy: options.policy,
|
|
@@ -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-RG58AMTu.js";
|
|
6
|
+
import { o as nonEmptyOr } from "./output-Bfc3EpB2.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-DcPnvokU.js";
|
|
9
|
+
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-BFV2WG67.js";
|
|
10
10
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
12
|
import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-DN1PJcNY.js";
|
|
13
13
|
import { u as isPlatformSchema } from "./report-x9GeUvjx.js";
|
|
14
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-
|
|
16
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
17
|
-
import { n as configuredTableReads } from "./table-reads
|
|
15
|
+
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-DOCJgGlw.js";
|
|
16
|
+
import { r as parseRbacAuthorize } from "./rbac-Dx88RLxH.js";
|
|
17
|
+
import { n as configuredTableReads } from "./table-reads--NupdCFw.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";
|
|
@@ -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-CHJbaZxj.js")).runRls(input);
|
|
198
198
|
}
|
|
199
199
|
({
|
|
200
200
|
...shapeFlags,
|
|
@@ -305,7 +305,7 @@ const report = defineLeaf({
|
|
|
305
305
|
const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
|
|
306
306
|
import("./report-Dp-ApWVC.js"),
|
|
307
307
|
import("./pg-DtiDogUp.js"),
|
|
308
|
-
import("./table-reads-
|
|
308
|
+
import("./table-reads-Glf0BHSE.js")
|
|
309
309
|
]);
|
|
310
310
|
return runRlsReport({
|
|
311
311
|
cwd: ctx.cwd,
|
|
@@ -349,7 +349,7 @@ 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-r811lN7F.js"),
|
|
353
353
|
import("./pg-DtiDogUp.js"),
|
|
354
354
|
import("./memberships-DiCbNRny.js")
|
|
355
355
|
]);
|
|
@@ -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-DcPnvokU.js";
|
|
7
7
|
import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
// src/cli/generate/plugins/rls-options.ts
|
|
9
9
|
function seedMode(seeds) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-
|
|
1
|
+
import { c as RlsConfig, g as RlsTarget, o as SupabaseSchemas } from "./types-config-B3eAej9-.js";
|
|
2
2
|
/**
|
|
3
3
|
* `rls.seeds` as a mode, or `false` to skip the rows, or where they are
|
|
4
4
|
* written.
|
|
@@ -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-CaKNUxdc.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-BNYcJ1D9.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-Bfc3EpB2.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-tO5SjSGH.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-CbJPONx5.js";
|