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
|
@@ -3,14 +3,11 @@ import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
5
5
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
6
|
-
import { a as readConfig } from "./config-
|
|
6
|
+
import { a as readConfig } from "./config-7QvEq57a.js";
|
|
7
7
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
8
|
-
import { i as
|
|
8
|
+
import { i as keyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DW0kbH-a.js";
|
|
9
9
|
import { a as parseSqlFile, u as removeStatements } from "./ast-Dnm2TOHN.js";
|
|
10
10
|
import { n as loadBsbSql, r as schemaSqlFiles, t as bsbSqlMissing } from "./bsb-access-Bcw6GrQm.js";
|
|
11
|
-
import { r as compileGrants } from "./compile-DNVVdVWs.js";
|
|
12
|
-
import { i as tableNames } from "./tables-sLA1CpuN.js";
|
|
13
|
-
import { n as tenantCheck, t as svals } from "./tenant-check-gL2miiaS.js";
|
|
14
11
|
import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
|
|
15
12
|
import { readFileSync } from "node:fs";
|
|
16
13
|
import { join } from "node:path";
|
|
@@ -118,38 +115,6 @@ function plainPolicy(file, node, helper) {
|
|
|
118
115
|
guard: read.guard
|
|
119
116
|
};
|
|
120
117
|
}
|
|
121
|
-
/**
|
|
122
|
-
* The keys whose `permitted_<scope>_ids_by_permission(k)` answers what
|
|
123
|
-
* `permitted_<scope>_ids(k)` answers: every grant of `k` is an allow under the
|
|
124
|
-
* grant key `k`, so one condition group, no row condition and no deny.
|
|
125
|
-
*/
|
|
126
|
-
function swappableKeys(config, policy, cwd) {
|
|
127
|
-
const generate = {
|
|
128
|
-
cwd,
|
|
129
|
-
config,
|
|
130
|
-
target: "sql",
|
|
131
|
-
dialect: config.rls?.dialect ?? "supabase",
|
|
132
|
-
rbac: false,
|
|
133
|
-
check: false,
|
|
134
|
-
skipClosures: true,
|
|
135
|
-
inlineFunctions: false,
|
|
136
|
-
io: {
|
|
137
|
-
stdout: () => void 0,
|
|
138
|
-
stderr: () => void 0
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const options = generateOptions(generate);
|
|
142
|
-
if (isRefusal(options)) throw new CliError("usage", options.refusal, { code: "invalid_value" });
|
|
143
|
-
const built = buildContext(generate, policy, options);
|
|
144
|
-
if (isRefusal(built)) throw new CliError("usage", built.refusal, { code: "invalid_value" });
|
|
145
|
-
const compiled = compileGrants(policy, built.ctx, tableNames(config.rls?.tables), [], true);
|
|
146
|
-
const byKey = /* @__PURE__ */ new Map();
|
|
147
|
-
for (const row of compiled.rolePermissions) {
|
|
148
|
-
const plain = row.effect === "allow" && row.grantKey === row.permission && !compiled.conditionedKeys.has(row.grantKey);
|
|
149
|
-
byKey.set(row.permission, (byKey.get(row.permission) ?? true) && plain);
|
|
150
|
-
}
|
|
151
|
-
return new Set([...byKey].filter(([, plain]) => plain).map(([key]) => key));
|
|
152
|
-
}
|
|
153
118
|
function quoted(table) {
|
|
154
119
|
return table.split(".").map((part) => `"${part.replaceAll("\"", "\"\"")}"`).join(".");
|
|
155
120
|
}
|
|
@@ -174,13 +139,14 @@ function tableComment(nodes, table) {
|
|
|
174
139
|
* is listed.
|
|
175
140
|
*/
|
|
176
141
|
async function runAccessTags(options) {
|
|
142
|
+
const dryRun = options.dryRun || options.check === true;
|
|
177
143
|
const { config } = await readConfig(options.cwd);
|
|
178
144
|
const policy = await requirePolicy(options.cwd, config.policy, "codemod bsb-access-tags needs `policy` in permdock.config");
|
|
179
145
|
const root = scopeList(policy.scopes)[0]?.name;
|
|
180
146
|
if (root === void 0) throw new CliError("usage", "codemod bsb-access-tags needs a policy with a tenant scope", { code: "invalid_value" });
|
|
181
147
|
const schema = config.rls?.schema ?? "permdock";
|
|
182
148
|
const helper = `${schema}.permitted_${root}_ids`;
|
|
183
|
-
const keys =
|
|
149
|
+
const keys = keyReasons(config, policy, options.cwd);
|
|
184
150
|
const bsb = await bsbSql(options.cwd);
|
|
185
151
|
const canIn = `{tenant} in (select ${schema}.permitted_${root}_ids_by_permission({permission}))`;
|
|
186
152
|
const kept = [];
|
|
@@ -219,7 +185,7 @@ async function runAccessTags(options) {
|
|
|
219
185
|
for (const item of policies) counts.set(item.operation, (counts.get(item.operation) ?? 0) + 1);
|
|
220
186
|
for (const item of policies) {
|
|
221
187
|
const shared = counts.get(item.operation) !== 1 || others.get(table)?.has(item.operation) === true;
|
|
222
|
-
const reason = keys.has(item.key) ? shared ? `${table} has another policy for ${item.operation}` : item.column === policies[0]?.column ? void 0 : "a tenant column that differs from the table's other policies" : `key ${item.key}
|
|
188
|
+
const reason = keys.swappable.has(item.key) ? shared ? `${table} has another policy for ${item.operation}` : item.column === policies[0]?.column ? void 0 : "a tenant column that differs from the table's other policies" : `key ${item.key}: ${keyReason(keys, item.key)}, so permitted_${root}_ids_by_permission answers differently`;
|
|
223
189
|
if (reason === void 0) {
|
|
224
190
|
operations[item.operation] = item.key;
|
|
225
191
|
chosen.push(item);
|
|
@@ -273,7 +239,7 @@ async function runAccessTags(options) {
|
|
|
273
239
|
});
|
|
274
240
|
}
|
|
275
241
|
}
|
|
276
|
-
if (!
|
|
242
|
+
if (!dryRun) {
|
|
277
243
|
refuseDirty({
|
|
278
244
|
command: "codemod",
|
|
279
245
|
invocation: "codemod bsb-access-tags",
|
|
@@ -283,20 +249,30 @@ async function runAccessTags(options) {
|
|
|
283
249
|
});
|
|
284
250
|
applyFiles(options.cwd, planned);
|
|
285
251
|
}
|
|
252
|
+
const movedTables = new Set(moved.map((entry) => entry.table));
|
|
253
|
+
const keptTables = new Set(kept.map((entry) => entry.table).filter((table) => !movedTables.has(table)));
|
|
254
|
+
const summary = {
|
|
255
|
+
tables: movedTables.size + keptTables.size,
|
|
256
|
+
moved: movedTables.size,
|
|
257
|
+
kept: keptTables.size
|
|
258
|
+
};
|
|
286
259
|
const report = {
|
|
287
260
|
moved,
|
|
288
261
|
kept,
|
|
289
|
-
files: planned.map((file) => rel(options.cwd, file.path))
|
|
262
|
+
files: planned.map((file) => rel(options.cwd, file.path)),
|
|
263
|
+
summary
|
|
290
264
|
};
|
|
265
|
+
const code = options.check === true && moved.length > 0 ? 1 : 0;
|
|
291
266
|
if (options.json) return {
|
|
292
|
-
code
|
|
267
|
+
code,
|
|
293
268
|
output: JSON.stringify(report, null, 2),
|
|
294
269
|
data: report
|
|
295
270
|
};
|
|
296
271
|
return {
|
|
297
|
-
code
|
|
272
|
+
code,
|
|
298
273
|
output: [
|
|
299
|
-
`permdock codemod bsb-access-tags: ${
|
|
274
|
+
`permdock codemod bsb-access-tags: ${dryRun ? "would move" : "moved"} ${String(moved.length)} ${moved.length === 1 ? "table" : "tables"} to @bsb access tags`,
|
|
275
|
+
` ${dryRun ? "would move" : "moved"} ${String(summary.moved)} of ${String(summary.tables)} ${summary.tables === 1 ? "table" : "tables"} with a plain tenant policy; ${String(summary.kept)} stay${summary.kept === 1 ? "s" : ""} with the blocker below`,
|
|
300
276
|
...moved.map((entry) => ` ${entry.table}: ${Object.entries(entry.operations).map(([op, key]) => `${op}=${key}`).join(" ")}`),
|
|
301
277
|
...kept.map((entry) => ` kept ${entry.table} ${entry.policy}: ${entry.reason}`)
|
|
302
278
|
].join("\n")
|
|
@@ -2,7 +2,7 @@ import { n as guessPermissions } from "./collect-CPimbkC5.js";
|
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
4
4
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
5
|
-
import { a as readConfig, p as betterSupabaseConfigPath } from "./config-
|
|
5
|
+
import { a as readConfig, p as betterSupabaseConfigPath } from "./config-7QvEq57a.js";
|
|
6
6
|
import { n as bsbActions, t as answerOf } from "./bsb-actions-BHiyBxQZ.js";
|
|
7
7
|
import { r as parseSync } from "./optional-CaQWp9HA.js";
|
|
8
8
|
import { a as nameOf, o as nodes, r as child, t as applyEdits, u as walk } from "./ast-CAOxvn9t.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
2
2
|
import { n as supabaseMembershipsBudget } from "./budget-BH81q2cj.js";
|
|
3
|
-
import { t as claimsSize } from "./claims-size-
|
|
4
|
-
import { a as snapshotSize, r as mostPrivilegedRole } from "./snapshot-size-
|
|
5
|
-
import { t as bundleSize } from "./bundle-size-
|
|
3
|
+
import { t as claimsSize } from "./claims-size-BUhCWS88.js";
|
|
4
|
+
import { a as snapshotSize, r as mostPrivilegedRole } from "./snapshot-size-NklqBKcV.js";
|
|
5
|
+
import { t as bundleSize } from "./bundle-size-DbXV65Ix.js";
|
|
6
6
|
// src/cli/budgets/budgets.ts
|
|
7
7
|
/**
|
|
8
8
|
* Memberships of the probe subject when `budgets.snapshot.memberships` is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { t as instanceOptions } from "./instance-options-CLErhA76.js";
|
|
3
|
-
import { t as getPermDock } from "./permdock-
|
|
3
|
+
import { t as getPermDock } from "./permdock-JM9TKevZ.js";
|
|
4
4
|
// src/core/build-instance.ts
|
|
5
5
|
/**
|
|
6
6
|
* `resolve()`, or `null` when it throws: a subject or delegation that cannot be
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runBundleSize } from "./bundle-size-DbXV65Ix.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as measurePart } from "./snapshot-size-
|
|
1
|
+
import { p as clientBundle } from "./permdock-JM9TKevZ.js";
|
|
2
|
+
import { n as measurePart } from "./snapshot-size-NklqBKcV.js";
|
|
3
3
|
// src/cli/budgets/bundle-size.ts
|
|
4
4
|
/**
|
|
5
5
|
* The size of `clientBundle(policy)` as JSON, per role and per shared part. The
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Or as Principal, _t as TokenSigner, qt as Instant } from "./policy-types-BnBZvh7N.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
/**
|
|
4
4
|
* Who may redeem a capability: anyone holding it, any signed-in principal, one
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-qEW6RfXA.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { o as nonEmptyOr } from "./output-
|
|
2
|
+
import { o as nonEmptyOr } from "./output-D4FLF3_v.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-Bp4HvsRg.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-
|
|
2
|
-
import { D as Policy,
|
|
3
|
-
import { a as CatalogFinding, i as CatalogEventData } from "../sink-
|
|
1
|
+
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-BISipW6F.js";
|
|
2
|
+
import { D as Policy, Or as Principal, s as ApprovalRequirement } from "../policy-types-BnBZvh7N.js";
|
|
3
|
+
import { a as CatalogFinding, i as CatalogEventData } from "../sink-DhrVLPSJ.js";
|
|
4
4
|
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-CbJ5mxXv.js";
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-CQaXRDe3.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
/**
|
|
8
8
|
* The hosted grants of `document` that `policy` no longer accepts, as drift
|
package/dist/catalog/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
|
|
2
|
-
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-
|
|
2
|
+
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-D3USbpS6.js";
|
|
3
3
|
import { t as operationFindings } from "../operation-findings-D5Uo-dcm.js";
|
|
4
4
|
import { r as isRecord } from "../compact-C4LFuqbW.js";
|
|
5
5
|
import { a as getResource, n as findPermission } from "../permission-registry-DstT40VS.js";
|
|
6
|
-
import { n as declaredRoleNames } from "../policy-
|
|
6
|
+
import { n as declaredRoleNames } from "../policy-CZBJDcTx.js";
|
|
7
7
|
import { d as isSelfParented } from "../resource-relations-Ck5sjYQR.js";
|
|
8
8
|
import { o as listPlans, r as findRole } from "../vocabulary-CE2k7s1a.js";
|
|
9
|
-
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-
|
|
9
|
+
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-BohzTN3J.js";
|
|
10
10
|
import { n as rowConditionKeys, t as parseCatalog } from "../parse-CUqZ_lLC.js";
|
|
11
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
11
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-dm_hFstN.js";
|
|
12
12
|
// src/catalog/drift.ts
|
|
13
13
|
/**
|
|
14
14
|
* The finding a drop reason becomes; `null` for a reason the catalog did not
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
|
|
3
3
|
import { i as dateAt, p as nowSeconds } from "./time-r0CKBm57.js";
|
|
4
|
-
import { u as policyDocumentFromClaims } from "./hosted-
|
|
4
|
+
import { u as policyDocumentFromClaims } from "./hosted-D3USbpS6.js";
|
|
5
5
|
import { h as toCloudEvent, l as isAbsoluteUri } from "./sink-Bgvf9lIz.js";
|
|
6
6
|
import { t as parseCatalogEventData } from "./parse-sink-events-B6nZx41L.js";
|
|
7
7
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-
|
|
1
|
+
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-BKrKxipb.js";
|
|
2
2
|
export { type ChatAction, type ChatActionResult, type ChatAuthor, type ChatCommand, type ChatCommandContext, type ChatCommandResult, type ChatPermDock, type ChatPermDockOptions, type ChatPrincipal, type SubjectFromChatOptions, createPermDock, isChatAuthor, subjectFromChat };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as isApprovalError } from "../types-DFZKovb3.js";
|
|
2
2
|
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-COh0lLc1.js";
|
|
3
|
-
import { t as getPermDock, u as withApp } from "../permdock-
|
|
3
|
+
import { t as getPermDock, u as withApp } from "../permdock-JM9TKevZ.js";
|
|
4
4
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
5
5
|
import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
|
|
6
6
|
import { f as nowMillis } from "../time-r0CKBm57.js";
|
package/dist/chat-sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { n as ChatTransport } from "../types-
|
|
1
|
+
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-BKrKxipb.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-CJvYBdja.js";
|
|
3
|
+
import { n as ChatTransport } from "../types-CDkJNA3a.js";
|
|
4
4
|
import { ActionEvent, Author, CardElement } from "chat";
|
|
5
5
|
type ChatSdkAuthorOptions = {
|
|
6
6
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { n as compactMemberships, t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
1
2
|
import "./budget-BH81q2cj.js";
|
|
2
3
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
|
-
import "./sources-
|
|
4
|
+
import "./sources-C6Id63F8.js";
|
|
4
5
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { a as quoteIdent } from "./quote-
|
|
6
|
+
import { a as quoteIdent } from "./quote-LNaBdCGA.js";
|
|
6
7
|
// src/cli/doctor/perf-token.ts
|
|
7
8
|
/**
|
|
8
9
|
* The longest access token, in characters, PD110 accepts. The token travels in
|
|
@@ -129,7 +130,7 @@ async function pd110(project, events) {
|
|
|
129
130
|
message: `the token for ${label} is truncated and rls.authorize is 'jwt': the helpers miss every organisation the budget cut`,
|
|
130
131
|
fix: "set rls.authorize to 'database', which falls back to the tables, or raise supabase.hook.budget until the token holds every membership"
|
|
131
132
|
});
|
|
132
|
-
if (project.config.rls?.authorize !== "jwt" && isRecord(minted) && minted["memberships_truncated"] === true &&
|
|
133
|
+
if (project.config.rls?.authorize !== "jwt" && isRecord(minted) && minted["memberships_truncated"] === true && readMemberships(minted["memberships"]).memberships.length > 0) overBudget.push(label);
|
|
133
134
|
const length = tokenChars(minted);
|
|
134
135
|
if (length > 4096) findings.push({
|
|
135
136
|
code: "PD110",
|
|
@@ -177,6 +178,17 @@ function fitting(entryBytes, budget) {
|
|
|
177
178
|
if (entryBytes <= 0) return 0;
|
|
178
179
|
return Math.max(Math.floor((budget - 1) / (entryBytes + 1)), 0);
|
|
179
180
|
}
|
|
181
|
+
function compactBytes(entries) {
|
|
182
|
+
return Buffer.byteLength(JSON.stringify(compactMemberships(entries.map((text) => {
|
|
183
|
+
return JSON.parse(text);
|
|
184
|
+
}))));
|
|
185
|
+
}
|
|
186
|
+
/** The most entries of `entries` whose compact claim fits `budget` bytes. */
|
|
187
|
+
function compactFitting(entries, budget) {
|
|
188
|
+
let fits = 0;
|
|
189
|
+
while (fits < entries.length && compactBytes(entries.slice(0, fits + 1)) <= budget) fits += 1;
|
|
190
|
+
return fits;
|
|
191
|
+
}
|
|
180
192
|
function claimsSize(input) {
|
|
181
193
|
const entries = Array.from({ length: input.memberships }, (_, index) => entry(input.scope, index, input.roles));
|
|
182
194
|
const entryBytes = entries[0] === void 0 ? 0 : Buffer.byteLength(entries[0]);
|
|
@@ -195,6 +207,8 @@ function claimsSize(input) {
|
|
|
195
207
|
kept,
|
|
196
208
|
truncated: kept < input.memberships,
|
|
197
209
|
fits,
|
|
210
|
+
compactClaimBytes: compactBytes(entries),
|
|
211
|
+
compactFits: compactFitting(entries, input.budget),
|
|
198
212
|
tokenChars: tokenChars({
|
|
199
213
|
memberships: keptClaims,
|
|
200
214
|
...kept < input.memberships ? { memberships_truncated: true } : {}
|
|
@@ -209,6 +223,7 @@ function runClaimsSize(input) {
|
|
|
209
223
|
const lines = [
|
|
210
224
|
`${String(report.memberships)} memberships of ${String(report.rolesPerMembership)} role(s): ${String(report.entryBytes)} bytes per entry, ${String(report.claimBytes)} bytes in all`,
|
|
211
225
|
report.truncated ? `the ${String(report.budget)} byte budget keeps ${String(report.kept)} and sets memberships_truncated; at most ${String(report.fits)} fit` : `all fit the ${String(report.budget)} byte budget (at most ${String(report.fits)})`,
|
|
226
|
+
`compact claim: ${String(report.compactClaimBytes)} bytes in all; at most ${String(report.compactFits)} fit`,
|
|
212
227
|
`compact token with the Supabase base claims: ${String(report.tokenChars)} characters`
|
|
213
228
|
];
|
|
214
229
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runClaimsSize } from "./claims-size-BUhCWS88.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { D as Policy,
|
|
1
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-CdB9FCZh.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-V86uejcm.js";
|
|
3
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-BnBZvh7N.js";
|
|
4
4
|
/** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
|
|
5
5
|
type ClaudeMcpServer = {
|
|
6
6
|
readonly name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
-
import { u as withApp } from "../permdock-
|
|
1
|
+
import { t as agentRuntime } from "../create-BRY0OtFV.js";
|
|
2
|
+
import { u as withApp } from "../permdock-JM9TKevZ.js";
|
|
3
3
|
import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
4
4
|
// src/claude-agent/create.ts
|
|
5
5
|
const MCP_PREFIX = "mcp__";
|
package/dist/clerk/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as Subject, Or as Principal, q as CustomRoleSource } from "../policy-types-BnBZvh7N.js";
|
|
2
2
|
import { t as ClaimsMap } from "../claims-map-CLKQWxJG.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { s as RemotePdpCache } from "../types-
|
|
4
|
+
import { s as RemotePdpCache } from "../types-CrUguLsE.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
type ClerkPrincipal = Principal & {
|
|
7
7
|
readonly clerkPermissions?: readonly string[];
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-hbYumkRp.js"),
|
|
13
13
|
import("../signals-a1NxAP0X.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-BvtApZDp.js"),
|
|
15
15
|
import("../style-Crf-90o6.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "../../compact-C4LFuqbW.js";
|
|
2
2
|
import { a as describeError } from "../../errors-DgLOqc6j.js";
|
|
3
|
-
import { a as readConfig } from "../../config-
|
|
4
|
-
import { t as executeGenerate } from "../../execute-
|
|
3
|
+
import { a as readConfig } from "../../config-7QvEq57a.js";
|
|
4
|
+
import { t as executeGenerate } from "../../execute-DsHFIBuO.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
// src/cli/generate/watch-worker.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as RlsApiKeys, a as PermDockConfig, c as RlsConfig, d as RlsMembershipTable, f as RlsMemberships, g as RlsTarget, h as RlsSuspension, i as GenKind, l as RlsDialect, m as RlsSuspendedScope, n as CollectConfig, p as RlsSuspendedMembership, r as GenConfig, s as RlsActiveRow, t as CatalogConfig, u as RlsFunctionMapping } from "../types-config-
|
|
1
|
+
import { _ as RlsApiKeys, a as PermDockConfig, c as RlsConfig, d as RlsMembershipTable, f as RlsMemberships, g as RlsTarget, h as RlsSuspension, i as GenKind, l as RlsDialect, m as RlsSuspendedScope, n as CollectConfig, p as RlsSuspendedMembership, r as GenConfig, s as RlsActiveRow, t as CatalogConfig, u as RlsFunctionMapping } from "../types-config-CyawIkMF.js";
|
|
2
2
|
import { o as OperationMap } from "../operations-DaEoGpMV.js";
|
|
3
3
|
import { E as PermissionTree } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy } from "../policy-types-
|
|
5
|
-
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-
|
|
6
|
-
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-
|
|
7
|
-
import { r as RunResult, t as CliIo } from "../types-run-
|
|
8
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
4
|
+
import { D as Policy } from "../policy-types-BnBZvh7N.js";
|
|
5
|
+
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-CVN-p62O.js";
|
|
6
|
+
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-BnvEp5tS.js";
|
|
7
|
+
import { r as RunResult, t as CliIo } from "../types-run-ByHuYUen.js";
|
|
8
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-CQaXRDe3.js";
|
|
9
9
|
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-CbJ5mxXv.js";
|
|
10
10
|
/**
|
|
11
11
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
package/dist/cli/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
|
|
2
|
-
import { n as defineConfig } from "../config-
|
|
2
|
+
import { n as defineConfig } from "../config-7QvEq57a.js";
|
|
3
3
|
import { t as definePlugin } from "../plugin-MQVfUBUS.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-C-kThnKN.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
6
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
5
|
+
import { t as run } from "../run-DTz-e3Od.js";
|
|
6
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-dm_hFstN.js";
|
|
7
7
|
// src/cli/token-schemas.ts
|
|
8
8
|
const ID = {
|
|
9
9
|
type: "string",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
2
2
|
import { n as GenKindPluginOptions, t as ConstantsPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/**
|
|
4
4
|
* Scope, role, permission and operation names and topic and path builders:
|
package/dist/cli/plugins/app.js
CHANGED
|
@@ -32,7 +32,7 @@ function openapi(options = {}) {
|
|
|
32
32
|
return operationsFile(source.cwd, options.routes, task.out);
|
|
33
33
|
}
|
|
34
34
|
if (options.doc === void 0) return [];
|
|
35
|
-
const { openapiDocument } = await import("../../openapi-document-
|
|
35
|
+
const { openapiDocument } = await import("../../openapi-document-ZWpur4f1.js");
|
|
36
36
|
return openapiDocument(task, options, source);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -18,7 +18,7 @@ function powersync(options = {}) {
|
|
|
18
18
|
}],
|
|
19
19
|
emit: async (task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { powersyncFiles, publicationPath } = await import("../../powersync-
|
|
21
|
+
const { powersyncFiles, publicationPath } = await import("../../powersync-Dbpn-n0o.js");
|
|
22
22
|
return powersyncFiles(source.policy, source.config, task.out, await publicationPath(source.cwd, source.config)).files.map((file) => ({
|
|
23
23
|
path: file.path,
|
|
24
24
|
contents: file.text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
2
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
2
|
+
import { t as RlsPluginOptions } from "../../rls-options-f1wRhXSG.js";
|
|
3
3
|
/**
|
|
4
4
|
* The RLS plugin. The factory records options; the SQL generator loads on emit,
|
|
5
5
|
* so importing `rls` does not load it.
|
package/dist/cli/plugins/rls.js
CHANGED
|
@@ -19,7 +19,7 @@ function rls(options = {}) {
|
|
|
19
19
|
}],
|
|
20
20
|
config: (config) => withRlsOutputs(config, options),
|
|
21
21
|
emit: async (task, _model, source) => {
|
|
22
|
-
const { filesForRls } = await import("../../rls-files-
|
|
22
|
+
const { filesForRls } = await import("../../rls-files-Bu0O7cZ6.js");
|
|
23
23
|
return filesForRls(task, options, source);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
2
2
|
import { n as GenKindPluginOptions, r as ZodPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** Row validators as Zod schemas, from the model's JSON Schema. */
|
|
4
4
|
export declare function zod(options?: ZodPluginOptions): PermDockPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as RlsDialect } from "../../types-config-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { l as RlsDialect } from "../../types-config-CyawIkMF.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
3
3
|
type ScimPluginOptions = {
|
|
4
4
|
readonly schema?: string;
|
|
5
5
|
readonly dialect?: RlsDialect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as SupabaseSchemas } from "../../types-config-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { o as SupabaseSchemas } from "../../types-config-CyawIkMF.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
3
3
|
type SupabaseHookPluginOptions = {
|
|
4
4
|
readonly out?: string;
|
|
5
5
|
readonly schemas?: SupabaseSchemas;
|
|
@@ -18,7 +18,7 @@ function supabaseHook(options = {}) {
|
|
|
18
18
|
config: (config) => withHookOut(config, options.out),
|
|
19
19
|
emit: async (_task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
21
|
+
const { runSupabase } = await import("../../supabase-hook-D0Yzbl19.js");
|
|
22
22
|
const outcome = await runSupabase({
|
|
23
23
|
cwd: source.cwd,
|
|
24
24
|
config: source.config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as SupabaseSchemas } from "../../types-config-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
3
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { o as SupabaseSchemas } from "../../types-config-CyawIkMF.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
3
|
+
import { t as RlsPluginOptions } from "../../rls-options-f1wRhXSG.js";
|
|
4
4
|
/** The Custom Access Token hook the plugin writes; `false` skips it. */
|
|
5
5
|
type SupabaseHookOption = false | {
|
|
6
6
|
readonly out?: string;
|
|
@@ -37,14 +37,14 @@ function supabase(options = {}) {
|
|
|
37
37
|
config: (config) => withHookOut(withRlsOutputs(config, options), hookOut),
|
|
38
38
|
emit: async (task, _model, source) => {
|
|
39
39
|
if (task.id === "sql") {
|
|
40
|
-
const { filesForRls } = await import("../../rls-files-
|
|
40
|
+
const { filesForRls } = await import("../../rls-files-Bu0O7cZ6.js");
|
|
41
41
|
return filesForRls(task, {
|
|
42
42
|
...rlsOptions,
|
|
43
43
|
dialect: "supabase"
|
|
44
44
|
}, source);
|
|
45
45
|
}
|
|
46
46
|
if (source === void 0) return [];
|
|
47
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
47
|
+
const { runSupabase } = await import("../../supabase-hook-D0Yzbl19.js");
|
|
48
48
|
const hookOptions = hook === false || hook === void 0 ? {} : hook;
|
|
49
49
|
const outcome = await runSupabase({
|
|
50
50
|
cwd: source.cwd,
|
package/dist/cli/plugins/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-BnvEp5tS.js";
|
|
2
2
|
import { n as GenKindPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
export declare function reactHooks(options?: GenKindPluginOptions): PermDockPlugin;
|
package/dist/cli/plugins/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as kindPlugin } from "../../gen-kind-
|
|
1
|
+
import { t as kindPlugin } from "../../gen-kind-DR2-to9P.js";
|
|
2
2
|
// src/cli/plugins/ui.ts
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
function reactHooks(options = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as SupabaseSubjectOptions, C as SupabasePrincipal } from "./sources-
|
|
1
|
+
import { Ar as Subject } from "./policy-types-BnBZvh7N.js";
|
|
2
|
+
import { A as SupabaseSubjectOptions, C as SupabasePrincipal } from "./sources-Bq7k7g34.js";
|
|
3
3
|
/**
|
|
4
4
|
* The part of a supabase-js (or `@supabase/ssr`) client the subject reads:
|
|
5
5
|
* `auth.getClaims()`, which verifies the token against the project's JWKS or
|
package/dist/cloud/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-
|
|
2
|
-
import { Cn as MembershipEvent, _n as
|
|
3
|
-
import { c as DeliveryTransport } from "../types-
|
|
4
|
-
import { m as ApprovalStore } from "../types-
|
|
5
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
6
|
-
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-
|
|
7
|
-
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-
|
|
8
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-BmTW35E5.js";
|
|
2
|
+
import { Cn as DirectoryEvent, Tn as MembershipEvent, _n as AutomationEvent, _t as TokenSigner, bn as DeliveryChannel, hn as AccessEvent, qt as Instant, vn as CredentialEvent, xn as DeliveryEvent, yn as DecisionEvent } from "../policy-types-BnBZvh7N.js";
|
|
3
|
+
import { c as DeliveryTransport } from "../types-CDkJNA3a.js";
|
|
4
|
+
import { m as ApprovalStore } from "../types-5cvjmHTG.js";
|
|
5
|
+
import { n as ApprovalWaiter } from "../waiter-Bov7Cig6.js";
|
|
6
|
+
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-DhrVLPSJ.js";
|
|
7
|
+
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-D6SPYjSQ.js";
|
|
8
|
+
import { l as ReplayStore } from "../types-B_I8TBA9.js";
|
|
9
9
|
/**
|
|
10
10
|
* The one base URL of PermDock Cloud. The platform issuer is this URL; its
|
|
11
11
|
* OAuth routes, `/.well-known/oauth-authorization-server` and `/openapi.json`
|