permdock 0.31.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-9brJ_mUG.js → adoption-scan-BPW1eWy5.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/{approval-chain-D97rgMoA.js → approval-chain-BEeExHpb.js} +15 -10
- package/dist/{approval-prompt-yNyhQqn8.d.ts → approval-prompt-CJvYBdja.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-C0bltfjv.js → arazzo-BUXKjylF.js} +1 -1
- package/dist/{arazzo-Cs-3yoxR.js → arazzo-DqzmZG-x.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/{audience-CARf-b-R.js → audience-B6DQ5wQu.js} +1 -1
- package/dist/authzen/index.d.ts +6 -6
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-0VF1xe4o.d.ts → automation-BqUmdFfe.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-supabase/index.d.ts +57 -14
- package/dist/better-supabase/index.js +29 -20
- package/dist/{bind-zQacwAOg.d.ts → bind-Bwk9tt1z.d.ts} +7 -7
- package/dist/{bind-BYeoLJgN.js → bind-DPptdk31.js} +2 -2
- package/dist/{bsb-access-tags-B1TBUQLj.js → bsb-access-tags-Nv4nDQ2U.js} +20 -44
- package/dist/{bsb-action-keys-iKmZChtQ.js → bsb-action-keys-CYEREFMg.js} +1 -1
- package/dist/{budgets-Dpumu_Dt.js → budgets-hi-ecgEd.js} +3 -3
- package/dist/{build-instance-CFiegi_w.js → build-instance-DZEWYO-A.js} +1 -1
- package/dist/bundle-size-BRFeBvuv.js +1 -0
- package/dist/{bundle-size-Ddhv_H_v.js → bundle-size-DbXV65Ix.js} +2 -2
- package/dist/{capability-BPzseilU.d.ts → capability-qoD_jlcI.d.ts} +1 -1
- package/dist/{casbin-s6_zDJi1.js → casbin-CM9mWO1V.js} +1 -1
- package/dist/{casbin-DGsO-QmR.js → casbin-qEW6RfXA.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +4 -4
- package/dist/{challenge-CRB1X3Ry.js → challenge-E9sicsCA.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/{claims-size-BsSDVD5u.js → claims-size-BUhCWS88.js} +18 -3
- package/dist/claims-size-C6oKGuOM.js +1 -0
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +2 -2
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +3 -3
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{client-subject-BOPbpwgm.d.ts → client-subject-Dzo49nco.d.ts} +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-fRv3j6sq.js → cloud-CNGblWX0.js} +2 -2
- package/dist/{codemod-DT0dMVdd.js → codemod-BtJFcsD7.js} +8 -7
- package/dist/{codemod-DsqEKP6A.js → codemod-Dlhxov9D.js} +14 -11
- package/dist/{collect-CCgmm5xN.js → collect-CE5wK0AX.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-tG1zkSgX.d.ts → compile-DNgpHgcK.d.ts} +2 -2
- package/dist/{compile-DNVVdVWs.js → compile-nR1gQhXo.js} +10 -9
- package/dist/{completion-DrJkWgZa.js → completion-BIN9YXIe.js} +1 -1
- package/dist/{config-D8iWeV9k.js → config-7QvEq57a.js} +2 -2
- package/dist/{config-BaKkd6HB.js → config-CoYhD6ur.js} +1 -1
- package/dist/{config-report-uuD5eVEn.js → config-report-D_L1HXDb.js} +3 -3
- package/dist/{context-Ne0EdD45.js → context-D8tN3SZm.js} +1 -1
- package/dist/{context-BQHKgT1m.js → context-Nr3nknZX.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-C5yCD-Ls.js → core-DIUrkFNL.js} +5 -5
- package/dist/{core-bf8qgaZf.d.ts → core-DPuDmlbL.d.ts} +2 -2
- package/dist/{create-Cn5EpEez.d.ts → create-BKrKxipb.d.ts} +4 -4
- package/dist/{create-COQVXK6C.js → create-BMRnaZel.js} +3 -3
- package/dist/{create-nOWD3Joc.js → create-BRY0OtFV.js} +3 -3
- package/dist/{create-B7Xa4jSQ.d.ts → create-CdB9FCZh.d.ts} +7 -7
- package/dist/{create-DHA0fhmi.d.ts → create-CdbVXh5I.d.ts} +6 -6
- package/dist/{credentials-COT-cjnP.d.ts → credentials-Dl0-R2aB.d.ts} +2 -2
- package/dist/{custom-role-rebuild-BBKC7Bt1.js → custom-role-rebuild-wzN8pqDk.js} +5 -5
- package/dist/{define-permdock-DBgwTFi1.d.ts → define-permdock-4IkoNaB3.d.ts} +6 -6
- package/dist/{define-permdock-D7aKxIax.js → define-permdock-CO7YNrOF.js} +2 -2
- package/dist/{definition-options-9o8Hdww3.js → definition-options-DO0kIrB9.js} +7 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-C_AWc0f0.d.ts → denied-text-CllTzVJM.d.ts} +1 -1
- package/dist/{describe-AdETpWsn.d.ts → describe-FT1oVN_o.d.ts} +1 -1
- package/dist/{diff-CW9eZy9X.js → diff-CS8ks9h3.js} +1 -1
- package/dist/{diff-COdwpP31.js → diff-CkSZF7LO.js} +2 -2
- package/dist/{doctor-C1T2G2mn.js → doctor-Bn5OPJMB.js} +131 -44
- package/dist/{doctor-Ch4VGl2q.js → doctor-C9lLeLp2.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-COoiWqIs.d.ts → errors-BGosrHl8.d.ts} +1 -1
- package/dist/{evaluate-Dmd0bShm.js → evaluate-DNz6wMYv.js} +1 -1
- package/dist/{evaluations-GW9j_ARq.d.ts → evaluations-CaXNkxTp.d.ts} +3 -3
- package/dist/{evaluator-eager-CpVYslzY.js → evaluator-eager-BLNVbEAC.js} +1 -1
- package/dist/evaluator-zpeC7zel.js +2 -0
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/{execute-BhWXiQAy.js → execute-DsHFIBuO.js} +4 -4
- package/dist/{explain-DRC9V5Qb.js → explain-D4ipf8IH.js} +1 -1
- package/dist/{explain-jg0KLCVt.js → explain-DISCeeYS.js} +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-CU1DIkXu.js → fetch-adapter-BXQc4NoV.js} +1 -1
- package/dist/{fetch-adapter-CJncmsPg.d.ts → fetch-adapter-Dci9NnyZ.d.ts} +2 -2
- package/dist/{fields-y_PSRCyJ.js → fields-CwFej4gp.js} +3 -3
- package/dist/{from-snapshot-DGc9W4QU.js → from-snapshot-DZ4D2sLa.js} +14 -9
- package/dist/gen-CpS9JkCb.js +1 -0
- package/dist/{gen-CGjbD8I_.js → gen-Fi4GcvIY.js} +3 -3
- package/dist/{gen-kind-thoT0NYV.js → gen-kind-DR2-to9P.js} +1 -1
- package/dist/{generate-eor7vXGN.js → generate-BSD_eI61.js} +22 -17
- package/dist/{generate-vEW8Brg8.js → generate-QEHCJSyv.js} +3 -3
- package/dist/{generate-options-MJgn0dgl.js → generate-options-BZ2nqy28.js} +14 -13
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-DHvgN9tr.js → helper-calls-B5MOl99d.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-DJQ_yOEC.js → hook-sql-CbkH78FC.js} +267 -223
- package/dist/{hosted-Bkw3Oyh-.d.ts → hosted-BISipW6F.d.ts} +1 -1
- package/dist/{hosted-DZwCFrcy.js → hosted-D3USbpS6.js} +1 -1
- package/dist/{import-D_8tLF9g.js → import-Bz6IKoMM.js} +3 -3
- package/dist/{import-CGQIK3iN.js → import-DppjSugv.js} +1 -1
- package/dist/{index-DT3hOxA7.d.ts → index-BDJ2OZvV.d.ts} +34 -11
- package/dist/{index-Kj5S3IWE.d.ts → index-BF4IlvkT.d.ts} +4 -4
- package/dist/{index-DWmIuQLz.d.ts → index-BO5f180f.d.ts} +4 -4
- package/dist/{index-WOx7TBbj.d.ts → index-CWwWkz10.d.ts} +2 -2
- package/dist/{index-xShPsK8G.d.ts → index-Co_e22iJ.d.ts} +1 -1
- package/dist/{index-DPVeDtAO.d.ts → index-giCl-aQY.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +13 -13
- package/dist/{init-C6te_dSg.js → init-BOYIObRF.js} +3 -3
- package/dist/{init-DN19mlwE.js → init-DJYSpo-H.js} +1 -1
- package/dist/inspect-functions-CwEAQpVF.js +34 -0
- package/dist/{instance-options-DQCiBBuz.d.ts → instance-options-hq5Cp2Ih.d.ts} +1 -1
- package/dist/{instance-snapshot-D9kjL37B.js → instance-snapshot-D03srwnf.js} +9 -8
- package/dist/{interactive-only-BjYwp9mm.js → interactive-only-Bbq9e61G.js} +27 -182
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-C5akxw5n.js → kernel-DSnWVZ0O.js} +5 -5
- package/dist/{keys-qFqDoYeF.js → keys-U2V0maaq.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-CMgFAGf8.d.ts → lazy-provider-W8KwlWJU.d.ts} +1 -1
- package/dist/{lazy-provider-DNVjY4n3.js → lazy-provider-b8UHGi8P.js} +2 -2
- package/dist/{login-BYXaH_yT.js → login-Dv8TFykx.js} +1 -1
- package/dist/{login-CMzfsdm8.js → login-xgjt0a5o.js} +3 -3
- package/dist/{manager-chain-CStuYb7A.js → manager-chain-FggG63qD.js} +2 -2
- package/dist/{manifest-CowZuywo.js → manifest-BUeAHWDT.js} +45 -38
- package/dist/{manifest-CA3E0KP8.d.ts → manifest-BwhZ1s5b.d.ts} +71 -2
- package/dist/{manifest-DdNYR_pl.js → manifest-CIWOmdlP.js} +1 -1
- package/dist/{manifest-schema-CLbcbDz7.js → manifest-schema-N3v2RVL-.js} +68 -1
- package/dist/{may-use-4HzzgYJ3.js → may-use-ikNCnNgZ.js} +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +2 -2
- package/dist/measure-DZtly0oE.js +272 -0
- package/dist/membership-claim-sql-DGfhIn__.js +33 -0
- package/dist/{membership-filter-C7ZuhAqJ.js → membership-filter-Bz9QX6E9.js} +1 -1
- package/dist/memberships-4e6qi8Uv.js +1 -0
- package/dist/memberships-CNoAlsma.js +180 -0
- package/dist/{migrate-pg-lkbDu.js → migrate-BXk_rUmb.js} +2 -2
- package/dist/{model-BqHWwfcg.js → model-D0EKt-ED.js} +3 -3
- package/dist/names-DBxKx2bz.js +182 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +12 -11
- package/dist/next/index.js +4 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-BP7YpJeF.js → openapi-Bfakk4cF.js} +1 -1
- package/dist/{openapi-document-_QSOtSKS.js → openapi-document-ZWpur4f1.js} +1 -1
- package/dist/{openapi-Dsh0MDSZ.js → openapi-g58VVrsc.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-Didy9Ys4.js → output-D4FLF3_v.js} +1 -1
- package/dist/{ownership-CG5_N8b5.js → ownership-DvmaGcup.js} +13 -9
- package/dist/{parse-local-manifest-B92rFWnk.d.ts → parse-local-manifest-AJWs3pkW.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-CJPIwU1T.js → permdock-JM9TKevZ.js} +14 -14
- package/dist/{permdock-BShHM8OJ.d.ts → permdock-V86uejcm.d.ts} +2 -2
- package/dist/{permissions-wEkTVr_I.js → permissions-xPyAmuXi.js} +1 -1
- package/dist/{pipeline-B4iyaOK7.js → pipeline-DCERGTTY.js} +2 -2
- package/dist/{plugin-DQJuZVl1.d.ts → plugin-BnvEp5tS.d.ts} +2 -2
- package/dist/{policy-BBvhhH9X.js → policy-CZBJDcTx.js} +2 -1
- package/dist/{policy-BUtwixSN.d.ts → policy-DZORR-Fw.d.ts} +1 -1
- package/dist/{policy-hnVT4MC4.js → policy-DoHkOOTQ.js} +1 -1
- package/dist/{policy-bundle-BIDV0DZF.js → policy-bundle-CsnNAo-n.js} +3 -3
- package/dist/{policy-from-catalog-_zwn1sNj.js → policy-from-catalog-BohzTN3J.js} +3 -3
- package/dist/{policy-types-CfW4X_yX.d.ts → policy-types-BnBZvh7N.d.ts} +50 -1
- package/dist/{postgrest-PQ3zAOD2.d.ts → postgrest-BG0ipED3.d.ts} +9 -2
- package/dist/{powersync-_2ElzOhQ.js → powersync-CTKfjnPT.js} +12 -12
- package/dist/{powersync-D7YfMHke.js → powersync-Cz3MUw6R.js} +1 -1
- package/dist/{powersync-DUvN9v5a.js → powersync-Dbpn-n0o.js} +1 -1
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-BPN0NaRb.js → protected-action-DDYvU-9Z.js} +1 -1
- package/dist/{protected-action-DhCQ4bSe.d.ts → protected-action-aGL_gT4j.d.ts} +5 -5
- package/dist/{provider-D1vlNPWo.js → provider-BwqzED5h.js} +100 -52
- package/dist/{provider-1xqxLVEz.js → provider-NQwLSlgb.js} +2 -2
- package/dist/{provider-CMgFAGf8.d.ts → provider-W8KwlWJU.d.ts} +1 -1
- package/dist/{provider-store-Cf8HRNtb.js → provider-store-BizF6jyu.js} +2 -2
- package/dist/{provider-with-cpL9vRjC.js → provider-with-DtBgCCV_.js} +1 -1
- package/dist/{prune-config-5vtQpiLk.js → prune-config--x-cEF8G.js} +6 -6
- package/dist/{pull-BnxZmo3f.js → pull-BQELP7aV.js} +2 -2
- package/dist/pull-C_ZiPZ5X.js +1 -0
- package/dist/{push-Bu0uCkJg.js → push-D5so0ptb.js} +2 -2
- package/dist/{pushed-policy-DcvO8NXy.d.ts → pushed-policy-CQaXRDe3.d.ts} +1 -1
- package/dist/{pushed-policy-DSjSWEAl.js → pushed-policy-dm_hFstN.js} +1 -1
- package/dist/{quote-BKrTBbcH.js → quote-LNaBdCGA.js} +1 -1
- package/dist/{rbac-CwcucZPx.js → rbac-BRMnQ9Rl.js} +5 -4
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +6 -6
- package/dist/react/lazy.js +3 -3
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +5 -5
- package/dist/read-memberships-DVBitJZG.js +164 -0
- package/dist/{rename-CLoDRrbc.js → rename-BjP2CFUY.js} +5 -5
- package/dist/replay-Dg5-l7xu.d.ts +3 -0
- package/dist/report-DF0zUNut.js +1 -0
- package/dist/{report-BI_hek_d.js → report-XdCm1y_J.js} +76 -6
- package/dist/{request-context-BNVY3kZ1.js → request-context-CqqdiVp4.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-config-9NYYVc30.js → resolve-config-Cu_mE2wt.js} +1 -1
- package/dist/{resolve-names-CTji5IPe.js → resolve-names-xBg9s2IJ.js} +7 -6
- package/dist/{resolver-CuIY8aFD.js → resolver-C_a-bddD.js} +99 -15
- package/dist/{rls-UY6p6ztg.js → rls-BzCz7ZV0.js} +55 -3
- package/dist/{rls-files-CDZdTh8v.js → rls-files-Bu0O7cZ6.js} +1 -1
- package/dist/{rls-options-BgD-KZkm.d.ts → rls-options-f1wRhXSG.d.ts} +1 -1
- package/dist/{rls-BPHCyA5v.js → rls-rk-QH4fc.js} +22 -12
- package/dist/{rpc-D7G7IJDa.js → rpc-BQPa7tLP.js} +1 -1
- package/dist/{rpc-COnquydd.d.ts → rpc-DyCWVn6C.d.ts} +1 -1
- package/dist/run-BvtApZDp.js +1 -0
- package/dist/{run-C3ztA88m.js → run-DTz-e3Od.js} +3 -3
- package/dist/{run-ticket-Mmor5sYW.d.ts → run-ticket-mVPqm6M6.d.ts} +2 -2
- package/dist/{saas-DcqUkynn.js → saas-DSeazNrN.js} +3 -3
- package/dist/{scan-m5m1M6Qn.js → scan-Cn79IAJs.js} +1 -1
- package/dist/{schema-BpGuLrwk.js → schema-CbzVUpWv.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/seeds/index.d.ts +1 -1
- package/dist/{seeds-Cih1ztkf.d.ts → seeds-DLjPbhvM.d.ts} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +1 -1
- package/dist/{server-types-C2XX60aF.d.ts → server-types-BlMijUtb.d.ts} +8 -8
- package/dist/share-key-claims-CZGAeVqa.js +28 -0
- package/dist/{shared-C6_T7QUo.js → shared-DnVY767H.js} +2 -1
- package/dist/{sink-BQ_6K81r.d.ts → sink-DhrVLPSJ.d.ts} +2 -2
- package/dist/{size-l1pDHE2z.js → size-CY6rK6l9.js} +3 -3
- package/dist/{skills-BytzDi34.js → skills-BKrN1qej.js} +1 -1
- package/dist/{skills-CzhnDo-C.js → skills-oZ8Ng2e7.js} +1 -1
- package/dist/{snapshot-Ty0uk9wZ.js → snapshot-Dzi4LR6n.js} +8 -1
- package/dist/{snapshot-cache-DGvLQW0-.d.ts → snapshot-cache-CVYqOThu.d.ts} +1 -1
- package/dist/{snapshot-compact-yXFxZLPo.js → snapshot-compact-BWMLnIXK.js} +35 -4
- package/dist/{snapshot-evaluate-DSNj2rhV.js → snapshot-evaluate-C382Z1mQ.js} +1 -1
- package/dist/{snapshot-reads-BnAHiuoa.js → snapshot-reads-JxcUSUfW.js} +2 -2
- package/dist/{snapshot-size-DNY1MTsV.js → snapshot-size-D6ixbYvH.js} +1 -1
- package/dist/{snapshot-size-2fkXbCkP.js → snapshot-size-NklqBKcV.js} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-D5n28164.d.ts → sources-Bq7k7g34.d.ts} +7 -2
- package/dist/{sources-DnjJPGfb.js → sources-C6Id63F8.js} +2 -1
- package/dist/{src-HRYn4UFj.js → src-BXDohWNO.js} +154 -11
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-Bnnrqa6d.d.ts → standard-webhooks-D6SPYjSQ.d.ts} +2 -2
- package/dist/{store-core-BdFcruPm.d.ts → store-core-Bq7Qc9QM.d.ts} +4 -4
- package/dist/{store-options-DpCQo0vB.js → store-options-DgOuhUSn.js} +4 -4
- package/dist/{stores-D6MIjN_-.d.ts → stores-Dn7TpQFa.d.ts} +5 -5
- package/dist/{stores-KpBCaY6c.js → stores-jgDndNHa.js} +1 -1
- package/dist/{subject-CrldGifz.js → subject-B7p94Y0s.js} +1 -1
- package/dist/{subject-cache-CnJcz2K_.d.ts → subject-cache-UKUgQCEX.d.ts} +3 -1
- package/dist/supabase/index.d.ts +36 -9
- package/dist/supabase/index.js +8 -7
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-CAswAUeb.js → supabase-BNPS-Gr1.js} +15 -1
- package/dist/{supabase-kWQlkrHw.js → supabase-DrazwRER.js} +14 -7
- package/dist/supabase-hook-D0Yzbl19.js +2 -0
- package/dist/{supabase-hook-C0LIaT7b.js → supabase-hook-t1HnQf8U.js} +11 -185
- package/dist/{supabase-schemas-BUFeyErz.js → supabase-schemas-_ubYYw9i.js} +10 -9
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +5 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +1 -1
- package/dist/table-reads-B7z40Yu-.js +766 -0
- package/dist/table-reads-Ci-ZVo5m.js +1 -0
- package/dist/{tables-sLA1CpuN.js → tables-Bxmf2beb.js} +108 -11
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/tenant-check-DW0kbH-a.js +105 -0
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +4 -4
- package/dist/testing/fixtures/index.js +41 -17
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +13 -13
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-CUmJFGV6.d.ts → type-helpers-CVN-p62O.d.ts} +1 -1
- package/dist/{types-vKKndyxx.d.ts → types-5cvjmHTG.d.ts} +1 -1
- package/dist/{types-DwoRXDvN.d.ts → types-BMKDvcXc.d.ts} +2 -2
- package/dist/{types-CIzXPPV-.d.ts → types-B_I8TBA9.d.ts} +2 -2
- package/dist/{types-h9W3CNC_.d.ts → types-BmTW35E5.d.ts} +4 -4
- package/dist/{types-BhBfMdQ5.d.ts → types-CDkJNA3a.d.ts} +3 -3
- package/dist/{types-euUv1wsO.d.ts → types-CgaGxF5q.d.ts} +1 -1
- package/dist/{types-BsRf5rKk.d.ts → types-CrUguLsE.d.ts} +2 -2
- package/dist/{types-BRECeQ2n.d.ts → types-DNOJRhyn.d.ts} +3 -3
- package/dist/{types-BKnUwgvx.d.ts → types-Dl2jRkyq.d.ts} +4 -4
- package/dist/{types-config-BiMM_zJ-.d.ts → types-config-CyawIkMF.d.ts} +2 -2
- package/dist/{types-CjZscT16.d.ts → types-gp1w86cV.d.ts} +4 -4
- package/dist/{types-run-N2ffLN_Z.d.ts → types-run-ByHuYUen.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DT6QK86a.js → usage-B8ca_Nj_.js} +2 -2
- package/dist/usage-CKTsomEq.js +1 -0
- package/dist/{usage-Dcbg6zu6.js → usage-Do7LQ4i4.js} +1 -1
- package/dist/{validation-error-P4Z9HUuP.d.ts → validation-error-BKgVVMc1.d.ts} +1 -1
- package/dist/{verify-DNERav8K.js → verify-ZojGAC3f.js} +12 -12
- package/dist/{version-cache-BzK8dwJy.js → version-cache-Ccrfu2A4.js} +6 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BqUxSRxq.d.ts → waiter-Bov7Cig6.d.ts} +2 -2
- package/dist/warm-BKD3FN6k.d.ts +16 -0
- package/dist/warm-BZ0ZwSmO.js +32 -0
- package/dist/{watch-fldErlRf.js → watch-D-5ztqN8.js} +1 -1
- package/dist/{watch-BsQ4n3NV.js → watch-EzX_aG73.js} +2 -2
- package/dist/watch-J1PfGMfb.js +1 -0
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/{who-can-CGVpM3fZ.js → who-can-CIgYpEvy.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-D8WtzrB7.d.ts → wrap-CaAA3ubO.d.ts} +2 -2
- package/package.json +11 -11
- package/schemas/snapshot-v2.json +20 -0
- package/schemas/supabase-claims-v1.json +48 -2
- package/schemas/supabase-manifest-v1.json +137 -19
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/dist/bundle-size-DwZ4e1gu.js +0 -1
- package/dist/claims-size-B6j0Ff4Q.js +0 -1
- package/dist/evaluator-COmATWCr.js +0 -2
- package/dist/gen-CkUEZ5Z6.js +0 -1
- package/dist/platform-CSxTsLsr.js +0 -35
- package/dist/pull-CGncYZNZ.js +0 -1
- package/dist/read-memberships-BkePIa1F.js +0 -63
- package/dist/replay-BCOZifwx.d.ts +0 -3
- package/dist/report-BevPHMy6.js +0 -1
- package/dist/run-3ySqmufy.js +0 -1
- package/dist/supabase-hook-DXGg5bNn.js +0 -2
- package/dist/tenant-check-gL2miiaS.js +0 -31
- package/dist/usage-DdOFc5xq.js +0 -1
- package/dist/watch-eay1PztJ.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
|
|
2
|
-
import { r as pushedPolicy } from "./pushed-policy-
|
|
2
|
+
import { r as pushedPolicy } from "./pushed-policy-dm_hFstN.js";
|
|
3
3
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
4
4
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
5
5
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
6
|
-
import { n as parseSupabaseManifest } from "./manifest-
|
|
6
|
+
import { n as parseSupabaseManifest } from "./manifest-CIWOmdlP.js";
|
|
7
7
|
import { n as runCatalog } from "./catalog-BExjL94D.js";
|
|
8
8
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
9
9
|
import { n as httpRequest, t as authFailure } from "./http-BbX_Ou3_.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Policy,
|
|
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-BnBZvh7N.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,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
|
-
import { n as snapshotScopes } from "./instance-snapshot-
|
|
3
|
+
import { n as snapshotScopes } from "./instance-snapshot-D03srwnf.js";
|
|
4
4
|
import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-jtX26ydD.js";
|
|
5
5
|
import { n as RFC3339_PATTERN } from "./time-r0CKBm57.js";
|
|
6
6
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as quoteQualifiedTable, c as quoteSqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
2
|
-
import "./sources-
|
|
2
|
+
import "./sources-C6Id63F8.js";
|
|
3
3
|
// src/cli/sql/quote.ts
|
|
4
4
|
function quoteIdent(name) {
|
|
5
5
|
return quoteSqlIdent(name, CLI);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as authorizeSql } from "./supabase-
|
|
1
|
+
import { n as authorizeSql } from "./supabase-DrazwRER.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";
|
|
@@ -10,9 +10,10 @@ import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
|
|
|
10
10
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { u as isoAt } from "./time-r0CKBm57.js";
|
|
12
12
|
import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
|
|
13
|
-
import {
|
|
14
|
-
import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-
|
|
15
|
-
import { a as
|
|
13
|
+
import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-Bbq9e61G.js";
|
|
14
|
+
import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
|
|
15
|
+
import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-DBxKx2bz.js";
|
|
16
|
+
import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
16
17
|
// src/cli/sql/conditions.ts
|
|
17
18
|
const MAX_CLAIM_DEPTH = 8;
|
|
18
19
|
/**
|
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-FT1oVN_o.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-BGosrHl8.js";
|
|
3
3
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
4
4
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
5
|
-
import { _ as 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-aGL_gT4j.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-W8KwlWJU.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-Dl2jRkyq.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-Bq7Qc9QM.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/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
3
3
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
5
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
6
|
-
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 { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
6
|
+
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-DDYvU-9Z.js";
|
|
7
7
|
import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
|
|
8
|
-
import { t as PermDockProvider } from "../provider-
|
|
8
|
+
import { t as PermDockProvider } from "../provider-NQwLSlgb.js";
|
|
9
9
|
export { PermDockProvider, Protected, 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-FT1oVN_o.js";
|
|
2
|
+
import { c as requiredPlans } from "../errors-BGosrHl8.js";
|
|
3
3
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
4
4
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
5
|
-
import { _ as 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-aGL_gT4j.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-W8KwlWJU.js";
|
|
8
|
+
import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-Dl2jRkyq.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-Bq7Qc9QM.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.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
3
3
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
5
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
6
|
-
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 { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
|
|
6
|
+
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-DDYvU-9Z.js";
|
|
7
7
|
import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
|
|
8
|
-
import { t as PermDockProvider } from "../lazy-provider-
|
|
8
|
+
import { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
|
|
9
9
|
export { PermDockProvider, Protected, 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-W8KwlWJU.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { t as PermDockProvider } from "../lazy-provider-
|
|
2
|
+
export { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PermDockProvider } from "../provider-
|
|
1
|
+
import { t as PermDockProvider } from "../provider-W8KwlWJU.js";
|
|
2
2
|
export { PermDockProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { t as PermDockProvider } from "../provider-
|
|
2
|
+
export { t as PermDockProvider } from "../provider-NQwLSlgb.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { i as describe } from "../describe-FT1oVN_o.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-BGosrHl8.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-aGL_gT4j.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-Bq7Qc9QM.js";
|
|
7
|
+
import { r as ProtectedProps, t as PermDockDefaults } from "../types-Dl2jRkyq.js";
|
|
8
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-AJWs3pkW.js";
|
|
9
9
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
10
|
-
import { $t as
|
|
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-BnBZvh7N.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-gp1w86cV.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
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
3
3
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
4
4
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
5
|
-
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-
|
|
6
|
-
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-
|
|
5
|
+
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-DgOuhUSn.js";
|
|
6
|
+
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-DDYvU-9Z.js";
|
|
7
7
|
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-CfMjZAFi.js";
|
|
8
|
-
import { c as bindConditionRefs, n as parseSnapshot, o as heldRoleNames } from "../snapshot-
|
|
8
|
+
import { c as bindConditionRefs, n as parseSnapshot, o as heldRoleNames } from "../snapshot-Dzi4LR6n.js";
|
|
9
9
|
import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
10
10
|
import { o as flattenGrantee } from "../grantee-BSCdpIF3.js";
|
|
11
11
|
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-B-KX9EI8.js";
|
|
12
|
-
import { n as compactSnapshot } from "../snapshot-compact-
|
|
12
|
+
import { n as compactSnapshot } from "../snapshot-compact-BWMLnIXK.js";
|
|
13
13
|
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-B5Xxt9Sc.js";
|
|
14
14
|
import { h as secondsAt, m as rfc3339 } from "../time-r0CKBm57.js";
|
|
15
15
|
import { t as byCodePoint } from "../compare-dfHDj8kT.js";
|
|
16
16
|
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
|
|
17
17
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-CIUmc-YQ.js";
|
|
18
|
-
import { t as eagerEvaluator } from "../evaluator-eager-
|
|
18
|
+
import { t as eagerEvaluator } from "../evaluator-eager-BLNVbEAC.js";
|
|
19
19
|
import { t as emptySnapshot } from "../snapshot-empty-pKgPDcLd.js";
|
|
20
20
|
import { n as isThenable } from "../thenable-BxMy2v8w.js";
|
|
21
21
|
import { useEffect, useMemo, useRef } from "react";
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
2
|
+
// src/core/membership-claim.ts
|
|
3
|
+
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u;
|
|
4
|
+
const SHORT_UUID = /^[A-Za-z0-9_-]{22}$/u;
|
|
5
|
+
/**
|
|
6
|
+
* The keys of an entry the compact form can carry; anything else stays an
|
|
7
|
+
* object.
|
|
8
|
+
*/
|
|
9
|
+
const COMPACT_KEYS = /* @__PURE__ */ new Set([
|
|
10
|
+
"scope",
|
|
11
|
+
"id",
|
|
12
|
+
"roles",
|
|
13
|
+
"via"
|
|
14
|
+
]);
|
|
15
|
+
function shortId(id) {
|
|
16
|
+
if (!UUID.test(id)) return `=${id}`;
|
|
17
|
+
const hex = id.replaceAll("-", "");
|
|
18
|
+
let binary = "";
|
|
19
|
+
for (let at = 0; at < hex.length; at += 2) binary += String.fromCodePoint(Number.parseInt(hex.slice(at, at + 2), 16));
|
|
20
|
+
return btoa(binary).replaceAll("+", "-").replaceAll("/", "_").slice(0, 22);
|
|
21
|
+
}
|
|
22
|
+
function longId(short) {
|
|
23
|
+
if (short.startsWith("=")) return short.slice(1);
|
|
24
|
+
if (!SHORT_UUID.test(short)) return;
|
|
25
|
+
const binary = atob(`${short.replaceAll("-", "+").replaceAll("_", "/")}==`);
|
|
26
|
+
let hex = "";
|
|
27
|
+
for (const char of binary) hex += (char.codePointAt(0) ?? 0).toString(16).padStart(2, "0");
|
|
28
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
29
|
+
}
|
|
30
|
+
function plain(entry) {
|
|
31
|
+
return isRecord(entry) && Object.keys(entry).every((key) => COMPACT_KEYS.has(key)) && typeof entry["scope"] === "string" && typeof entry["id"] === "string" && (entry["via"] === void 0 || typeof entry["via"] === "string") && Array.isArray(entry["roles"]) && entry["roles"].every((role) => typeof role === "string");
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The compact claim for `entries`: the shape the generated hook writes. The
|
|
35
|
+
* claims-size report and the tests use it to measure the claim without a
|
|
36
|
+
* database.
|
|
37
|
+
*/
|
|
38
|
+
function compactMemberships(entries) {
|
|
39
|
+
if (entries.length === 0) return [];
|
|
40
|
+
const scopes = /* @__PURE__ */ new Set();
|
|
41
|
+
const roles = /* @__PURE__ */ new Set();
|
|
42
|
+
const vias = /* @__PURE__ */ new Set();
|
|
43
|
+
for (const entry of entries) if (plain(entry)) {
|
|
44
|
+
scopes.add(entry.scope);
|
|
45
|
+
if (entry.via !== void 0) vias.add(entry.via);
|
|
46
|
+
for (const role of entry.roles) roles.add(role);
|
|
47
|
+
}
|
|
48
|
+
const s = [...scopes].toSorted();
|
|
49
|
+
const r = [...roles].toSorted();
|
|
50
|
+
const v = [...vias].toSorted();
|
|
51
|
+
const e = [];
|
|
52
|
+
const o = [];
|
|
53
|
+
for (const entry of entries) if (plain(entry)) e.push([
|
|
54
|
+
s.indexOf(entry.scope),
|
|
55
|
+
shortId(entry.id),
|
|
56
|
+
entry.via === void 0 ? -1 : v.indexOf(entry.via),
|
|
57
|
+
...entry.roles.map((role) => r.indexOf(role))
|
|
58
|
+
]);
|
|
59
|
+
else o.push(entry);
|
|
60
|
+
return {
|
|
61
|
+
...s.length === 0 ? {} : { s },
|
|
62
|
+
...r.length === 0 ? {} : { r },
|
|
63
|
+
...v.length === 0 ? {} : { v },
|
|
64
|
+
...e.length === 0 ? {} : { e },
|
|
65
|
+
...o.length === 0 ? {} : { o }
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function list(item) {
|
|
69
|
+
return Array.isArray(item) ? item : [];
|
|
70
|
+
}
|
|
71
|
+
function expandRow(row, scopes, roles, vias) {
|
|
72
|
+
if (!Array.isArray(row) || typeof row[1] !== "string") return;
|
|
73
|
+
const scope = scopes[Number(row[0])];
|
|
74
|
+
const id = longId(row[1]);
|
|
75
|
+
const via = vias[Number(row[2])];
|
|
76
|
+
const held = row.slice(3).map((index) => roles[Number(index)]).filter((role) => typeof role === "string");
|
|
77
|
+
return typeof scope === "string" && id !== void 0 ? {
|
|
78
|
+
scope,
|
|
79
|
+
id,
|
|
80
|
+
roles: held,
|
|
81
|
+
...typeof via === "string" ? { via } : {}
|
|
82
|
+
} : void 0;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The entry array of a `memberships` claim: an array stays as it is and the
|
|
86
|
+
* compact object expands to the entries it stands for. A row that does not
|
|
87
|
+
* resolve becomes `null`, which `readMemberships` drops and reports.
|
|
88
|
+
*/
|
|
89
|
+
function expandMemberships(value) {
|
|
90
|
+
if (!isRecord(value)) return value;
|
|
91
|
+
const { s, r, v, e, o } = value;
|
|
92
|
+
if (![
|
|
93
|
+
"s",
|
|
94
|
+
"r",
|
|
95
|
+
"v",
|
|
96
|
+
"e",
|
|
97
|
+
"o"
|
|
98
|
+
].some((key) => Array.isArray(value[key]))) return value;
|
|
99
|
+
return [...list(e).map((row) => expandRow(row, list(s), list(r), list(v)) ?? null), ...list(o)];
|
|
100
|
+
}
|
|
101
|
+
// src/core/read-memberships.ts
|
|
102
|
+
function asStrings(value) {
|
|
103
|
+
return Array.isArray(value) ? value.filter((item) => typeof item === "string") : [];
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Reads the `memberships` claim, an array or the compact object
|
|
107
|
+
* (`core/membership-claim.ts`); an entry it cannot read is dropped and its
|
|
108
|
+
* index reported.
|
|
109
|
+
*/
|
|
110
|
+
function readMemberships(claim) {
|
|
111
|
+
const value = expandMemberships(claim);
|
|
112
|
+
if (!Array.isArray(value)) return {
|
|
113
|
+
memberships: [],
|
|
114
|
+
dropped: []
|
|
115
|
+
};
|
|
116
|
+
const out = [];
|
|
117
|
+
const dropped = [];
|
|
118
|
+
for (const [index, item] of value.entries()) {
|
|
119
|
+
const membership = asMembership(item);
|
|
120
|
+
if (membership === void 0) dropped.push(index);
|
|
121
|
+
else out.push(membership);
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
memberships: out,
|
|
125
|
+
dropped
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function asMembership(item) {
|
|
129
|
+
if (!isRecord(item) || !Array.isArray(item["roles"])) return;
|
|
130
|
+
const roles = item["roles"].filter((role) => typeof role === "string");
|
|
131
|
+
if (roles.length === 0) return;
|
|
132
|
+
const scope = typeof item["scope"] === "string" ? item["scope"] : void 0;
|
|
133
|
+
const id = typeof item["id"] === "string" ? item["id"] : void 0;
|
|
134
|
+
const within = isRecord(item["within"]) ? Object.fromEntries(Object.entries(item["within"]).filter((entry) => typeof entry[1] === "string")) : void 0;
|
|
135
|
+
const onRecord = isRecord(item["on"]) ? item["on"] : void 0;
|
|
136
|
+
const on = onRecord !== void 0 && typeof onRecord["resource"] === "string" && typeof onRecord["id"] === "string" ? {
|
|
137
|
+
resource: onRecord["resource"],
|
|
138
|
+
id: onRecord["id"]
|
|
139
|
+
} : void 0;
|
|
140
|
+
if ((scope === void 0 || id === void 0) && on === void 0) return;
|
|
141
|
+
const keep = item["keep"];
|
|
142
|
+
if (keep !== void 0 && (!Array.isArray(keep) || !keep.every((key) => typeof key === "string" && key !== ""))) return;
|
|
143
|
+
return compact({
|
|
144
|
+
roles,
|
|
145
|
+
scope,
|
|
146
|
+
id,
|
|
147
|
+
within,
|
|
148
|
+
on,
|
|
149
|
+
via: typeof item["via"] === "string" ? item["via"] : void 0,
|
|
150
|
+
expiresAt: typeof item["expires_at"] === "number" ? item["expires_at"] : void 0,
|
|
151
|
+
grantedBy: typeof item["granted_by"] === "string" ? item["granted_by"] : void 0,
|
|
152
|
+
reason: typeof item["reason"] === "string" ? item["reason"] : void 0,
|
|
153
|
+
member: memberOf(item["member"]),
|
|
154
|
+
managedBy: item["managed_by"] === "idp" ? "idp" : void 0,
|
|
155
|
+
entitlements: Array.isArray(item["entitlements"]) ? item["entitlements"].filter((seat) => typeof seat === "string") : void 0,
|
|
156
|
+
keep: keep === void 0 ? void 0 : asStrings(keep)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function memberOf(value) {
|
|
160
|
+
if (value === null || typeof value !== "object" || !Object.hasOwn(value, "group")) return;
|
|
161
|
+
const group = value.group;
|
|
162
|
+
return typeof group === "string" && group !== "" ? { group } : void 0;
|
|
163
|
+
}
|
|
164
|
+
export { compactMemberships as n, expandMemberships as r, readMemberships as t };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { u as renamedKeys } from "./permission-registry-DstT40VS.js";
|
|
2
|
-
import "./sources-
|
|
2
|
+
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-
|
|
7
|
-
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-
|
|
8
|
-
import { n as legacyKeySql } from "./custom-role-rebuild-
|
|
6
|
+
import { a as resolveAuthorize } from "./rbac-BRMnQ9Rl.js";
|
|
7
|
+
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
8
|
+
import { n as legacyKeySql } from "./custom-role-rebuild-wzN8pqDk.js";
|
|
9
9
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
10
|
-
import { a as quoteIdent, o as quoteLiteral } from "./quote-
|
|
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";
|
|
12
12
|
import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
|
|
13
13
|
import { t as parseProgram } from "./program-CvarkLMS.js";
|
|
@@ -0,0 +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-XdCm1y_J.js";
|
|
@@ -4,12 +4,67 @@ 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 { a as helperCallKeys, i as callsHelper } from "./helper-calls-
|
|
8
|
-
import { n as isStripeDataPipelineSchema } from "./platform-CSxTsLsr.js";
|
|
7
|
+
import { a as helperCallKeys, i as callsHelper } from "./helper-calls-B5MOl99d.js";
|
|
9
8
|
import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
|
|
10
9
|
import { readFileSync } from "node:fs";
|
|
11
10
|
import { deparse } from "pgsql-parser";
|
|
11
|
+
// src/cli/sql/platform.ts
|
|
12
|
+
/** Schemas Postgres, Supabase and its extensions own. */
|
|
13
|
+
const SYSTEM_SCHEMAS = /* @__PURE__ */ new Set([
|
|
14
|
+
"pg_catalog",
|
|
15
|
+
"information_schema",
|
|
16
|
+
"pg_toast",
|
|
17
|
+
"auth",
|
|
18
|
+
"storage",
|
|
19
|
+
"realtime",
|
|
20
|
+
"extensions",
|
|
21
|
+
"graphql",
|
|
22
|
+
"graphql_public",
|
|
23
|
+
"vault",
|
|
24
|
+
"pgsodium",
|
|
25
|
+
"pgsodium_masks",
|
|
26
|
+
"net",
|
|
27
|
+
"cron",
|
|
28
|
+
"supabase_functions",
|
|
29
|
+
"supabase_migrations"
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* Stripe Data Pipeline's schemas. Supabase creates the `stripe_sdp` role, and
|
|
33
|
+
* Stripe creates a schema with that prefix and writes its tables as that role;
|
|
34
|
+
* an app reads them but never writes or grants on them.
|
|
35
|
+
*/
|
|
36
|
+
const STRIPE_SDP = "stripe_sdp";
|
|
37
|
+
/** Whether a platform owns `schema`, so no PermDock check or grant reaches it. */
|
|
38
|
+
function isPlatformSchema(schema) {
|
|
39
|
+
return SYSTEM_SCHEMAS.has(schema) || schema.startsWith("pg_") || schema.startsWith(STRIPE_SDP);
|
|
40
|
+
}
|
|
41
|
+
/** Whether `schema` belongs to Stripe Data Pipeline. */
|
|
42
|
+
function isStripeDataPipelineSchema(schema) {
|
|
43
|
+
return schema.startsWith(STRIPE_SDP);
|
|
44
|
+
}
|
|
12
45
|
// src/cli/rls/report.ts
|
|
46
|
+
/** The rules a `row` table can break, in the order the report lists them. */
|
|
47
|
+
const TABLE_READ_RULES = [
|
|
48
|
+
"form",
|
|
49
|
+
"follows",
|
|
50
|
+
"via",
|
|
51
|
+
"walk",
|
|
52
|
+
"owner",
|
|
53
|
+
"condition",
|
|
54
|
+
"restrictive",
|
|
55
|
+
"fields",
|
|
56
|
+
"unknown"
|
|
57
|
+
];
|
|
58
|
+
/** The counts of `reads` per share and per rule. */
|
|
59
|
+
function summariseTableReads(reads) {
|
|
60
|
+
const byRule = Object.fromEntries(TABLE_READ_RULES.map((rule) => [rule, reads.filter((read) => read.rules?.includes(rule) === true).length]));
|
|
61
|
+
return {
|
|
62
|
+
tenant: reads.filter((read) => read.share === "tenant").length,
|
|
63
|
+
row: reads.filter((read) => read.share === "row").length,
|
|
64
|
+
byRule,
|
|
65
|
+
tables: reads
|
|
66
|
+
};
|
|
67
|
+
}
|
|
13
68
|
const COMMANDS = [
|
|
14
69
|
"select",
|
|
15
70
|
"insert",
|
|
@@ -256,11 +311,18 @@ function policiesFor(table, command) {
|
|
|
256
311
|
return table.policies.filter((policy) => appliesTo(policy, command));
|
|
257
312
|
}
|
|
258
313
|
async function rlsReport(input) {
|
|
314
|
+
const reads = input.tableReads === void 0 || input.tableReads.length === 0 ? {} : { tableReads: summariseTableReads(input.tableReads) };
|
|
259
315
|
if (input.db !== void 0 && input.connect !== void 0) {
|
|
260
316
|
const { policies, leaky } = await fromDatabase(input.db, input.connect);
|
|
261
|
-
return
|
|
317
|
+
return {
|
|
318
|
+
...reportOf("database", policies, leaky),
|
|
319
|
+
...reads
|
|
320
|
+
};
|
|
262
321
|
}
|
|
263
|
-
return
|
|
322
|
+
return {
|
|
323
|
+
...reportOf("files", await policiesFromFiles(input.cwd, input.config), void 0),
|
|
324
|
+
...reads
|
|
325
|
+
};
|
|
264
326
|
}
|
|
265
327
|
function renderTable(table) {
|
|
266
328
|
const calls = COMMANDS.map((command) => `${command} ${String(table.helperCallsPerStatement[command])}`).join(", ");
|
|
@@ -274,9 +336,17 @@ function renderTable(table) {
|
|
|
274
336
|
for (const column of table.nonLeakproofIndexed ?? []) lines.push(` index on ${column.column} (${column.type}): = is not leakproof, so a filter on it does not use the index under RLS`);
|
|
275
337
|
return lines;
|
|
276
338
|
}
|
|
339
|
+
function renderTableReads(reads) {
|
|
340
|
+
const rules = TABLE_READ_RULES.map((rule) => `${rule} ${String(reads.byRule[rule])}`).join(", ");
|
|
341
|
+
return [`table reads: ${String(reads.tenant)} tenant, ${String(reads.row)} row (${rules})`, ...reads.tables.filter((read) => read.share === "row").map((read) => ` ${read.table}: ${(read.rules ?? []).join(", ")}${read.reason === void 0 ? "" : `; ${read.reason}`}`)];
|
|
342
|
+
}
|
|
277
343
|
function renderRlsReport(report) {
|
|
278
344
|
const { totals } = report;
|
|
279
|
-
return [
|
|
345
|
+
return [
|
|
346
|
+
...report.tables.flatMap(renderTable),
|
|
347
|
+
...report.tableReads === void 0 ? [] : renderTableReads(report.tableReads),
|
|
348
|
+
`${String(totals.policies)} policies on ${String(report.tables.length)} tables: ${String(totals.library)} library, ${String(totals.provider)} provider, ${String(totals.app)} app (from ${report.source === "files" ? "the schema files and migrations" : "pg_policies"})`
|
|
349
|
+
].join("\n");
|
|
280
350
|
}
|
|
281
351
|
async function runRlsReport(input) {
|
|
282
352
|
try {
|
|
@@ -295,4 +365,4 @@ async function runRlsReport(input) {
|
|
|
295
365
|
throw error;
|
|
296
366
|
}
|
|
297
367
|
}
|
|
298
|
-
export {
|
|
368
|
+
export { droppedPolicy as a, rlsReport as c, TABLE_READ_RULES as i, runRlsReport as l, POLICIES_MAX as n, policiesFor as o, REPORT_POLICIES_SQL as r, reportFiles as s, NON_LEAKPROOF_INDEXED_SQL as t, isPlatformSchema as u };
|
|
@@ -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-DZEWYO-A.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-CJvYBdja.js";
|
|
2
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-CDkJNA3a.js";
|
|
3
|
+
import { X as DecisionSink } from "../policy-types-BnBZvh7N.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-B_I8TBA9.js";
|
|
5
5
|
type ApprovalEmailOptions = {
|
|
6
6
|
/**
|
|
7
7
|
* The app's approval page: a base the request id is appended to, or a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as supabaseMembershipsBudget } from "./budget-BH81q2cj.js";
|
|
2
|
-
import { r as PERMDOCK_SCHEMA } from "./sources-
|
|
2
|
+
import { r as PERMDOCK_SCHEMA } from "./sources-C6Id63F8.js";
|
|
3
3
|
import { t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
4
4
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
5
5
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -2,13 +2,14 @@ import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
|
2
2
|
import { c as listPermissions } from "./permission-registry-DstT40VS.js";
|
|
3
3
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
4
4
|
import "./budget-BH81q2cj.js";
|
|
5
|
-
import "./sources-
|
|
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, Q as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-
|
|
9
|
-
import { b as idTypeOf, x as scopeTypeOf } from "./subject-
|
|
10
|
-
import {
|
|
11
|
-
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-
|
|
7
|
+
import { t as FIELD_VIEWS } from "./fields-CwFej4gp.js";
|
|
8
|
+
import { C as forUserContext, Q as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-Bxmf2beb.js";
|
|
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-DBxKx2bz.js";
|
|
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-Bbq9e61G.js";
|
|
12
13
|
// src/cli/rls/permission-holders.ts
|
|
13
14
|
/**
|
|
14
15
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|