permdock 0.5.0 → 0.6.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 +5 -5
- package/dist/a2a/index.js +3 -3
- package/dist/{adoption-scan-B4R5fnMU.js → adoption-scan-DCYe60Pi.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 +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/{approval-prompt-Djo_PyZc.d.ts → approval-prompt-DvSSPQJX.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DJ6Yd5z1.js → approvals-p1PGoVjb.js} +3 -3
- package/dist/{arazzo-B6lebmiQ.js → arazzo-41WuzHou.js} +1 -1
- package/dist/{arazzo-BWhNF-k0.js → arazzo-CaUVBn7D.js} +2 -2
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-Dg8XsRaO.js → audience-DabClFLQ.js} +1 -1
- package/dist/authzen/index.d.ts +4 -4
- package/dist/authzen/index.js +2 -2
- package/dist/{automation-BMZPIVUM.d.ts → automation-BNM3TtDo.d.ts} +3 -3
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +7 -7
- package/dist/better-supabase/index.js +6 -6
- package/dist/{bind-CZzhx-Vj.js → bind-CAvgUuKs.js} +4 -4
- package/dist/{bind--9EFVYWF.d.ts → bind-DOyrv6zi.d.ts} +7 -7
- package/dist/{build-instance-BMnAudHn.js → build-instance-Bu_eDqYw.js} +1 -1
- package/dist/{capability-BSslw1QV.d.ts → capability-Drg-1YhL.d.ts} +2 -2
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +3 -3
- package/dist/catalog-BoWglDPI.js +1 -0
- package/dist/{catalog-R_A__RsH.js → catalog-DZVbrF-z.js} +1 -1
- package/dist/{catalog-BECMPrwc.js → catalog-HD2gf5mY.js} +2 -2
- package/dist/{catalog-doc-C9wjsfNY.js → catalog-doc-Cdn7-0pQ.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-CIoHNevm.js → cloud-ytQ3uviA.js} +2 -2
- package/dist/{codemod-Bmj9dWMH.js → codemod-5mpSpnUY.js} +2 -2
- package/dist/{codemod-Cxvvc70T.js → codemod-ua2hHy7w.js} +1 -1
- package/dist/{collect-DloHbDVa.js → collect-Ci6akVwH.js} +2 -2
- package/dist/collect-D7eQDffE.js +1 -0
- package/dist/{collect-CrZJJnEF.js → collect-mLTY4nwb.js} +2 -2
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-Ckm2HqBZ.d.ts → compile-1bsAezL0.d.ts} +3 -3
- package/dist/{completion-BqhRBJD8.js → completion-BTFrHZhX.js} +1 -1
- package/dist/{config-B46rm9sc.js → config-Bj2Ixq3d.js} +1 -1
- package/dist/{config-report-DUgj62Ai.js → config-report-DSpsLpCE.js} +2 -2
- package/dist/{context-bbFHR-0D.js → context-B_u3_bDJ.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{create-0VZ7Pdiu.d.ts → create-B30OMUOJ.d.ts} +5 -5
- package/dist/{create-BDS7wc3y.d.ts → create-CBMmFie-.d.ts} +9 -9
- package/dist/{create-C3b4B5eF.js → create-CGm28gyI.js} +4 -4
- package/dist/{create-BWRSXgOF.js → create-CQWIpUG-.js} +1 -1
- package/dist/{create-DnrmLnLW.js → create-DCF2SvoT.js} +4 -4
- package/dist/{create-BFfm17UA.d.ts → create-D_NmPOdH.d.ts} +7 -7
- package/dist/{credential-DM2um3ha.js → credential-BcoiejpY.js} +2 -2
- package/dist/{delegation-DaXVdDhM.js → delegation-j6-rc37o.js} +2 -2
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-D8jDHgsl.d.ts → denied-text-CiFQNuMV.d.ts} +2 -2
- package/dist/{describe-BZUsixiL.d.ts → describe-B5qgDvEW.d.ts} +2 -2
- package/dist/{diff-DCePiN6M.js → diff-3jbx6Rm4.js} +3 -3
- package/dist/{diff-CxZo9pTq.js → diff-CmuSD3vc.js} +1 -1
- package/dist/{doctor-CxiwSfqH.js → doctor-3ZqNHX_G.js} +2 -2
- package/dist/{doctor-DFjUxf2f.js → doctor-BdZw53-k.js} +14 -14
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-C2PXIv4c.d.ts → errors-DH5QEGXh.d.ts} +2 -2
- package/dist/{evaluate-_R8QkWaf.js → evaluate-CNClBvcj.js} +81 -28
- package/dist/{evaluations-16UqqQ6W.d.ts → evaluations-C_1vdSZc.d.ts} +3 -3
- package/dist/{evaluations-DZ2CbV5k.js → evaluations-beAooV0n.js} +1 -1
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-g0ypLkID.js → fetch-adapter-DD_gfmrC.js} +2 -2
- package/dist/{fetch-adapter-qKJBuRqy.d.ts → fetch-adapter-Dw0MTS3D.d.ts} +4 -4
- package/dist/{fields-D9tPVUUS.js → fields-OYG_JR78.js} +3 -3
- package/dist/{from-snapshot-D2lZt4Dd.js → from-snapshot-CTCMsFZk.js} +4 -4
- package/dist/{grantee-Cn1HyUsI.js → grantee-hxrUsbpM.js} +13 -3
- package/dist/{grantee-match-DHArqY82.js → grantee-match-DbENBHLB.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DTcZOzhF.js → helpers-CBYVMjwh.js} +1 -1
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-BZIAYvon.js → hosted-B46-5LYE.js} +3 -3
- package/dist/{hosted-DBDX0M-P.d.ts → hosted-BPk51-kX.d.ts} +1 -1
- package/dist/{import-DMmOG27O.js → import-wyqXUyjm.js} +3 -3
- package/dist/{index-Chrs5fQ-.d.ts → index-B8YjkEZ4.d.ts} +6 -6
- package/dist/{index-CxGUswIC.d.ts → index-C-6Letxg.d.ts} +5 -5
- package/dist/{index-SGdIQyzc.d.ts → index-Ch8LpNDp.d.ts} +2 -2
- package/dist/{index-D8EovfsP.d.ts → index-Cp_ilKi1.d.ts} +2 -2
- package/dist/{index-BcHcPyIo.d.ts → index-CueFnxQc.d.ts} +6 -6
- package/dist/{index-DOVf7RJv.d.ts → index-DuWxc5dt.d.ts} +21 -12
- package/dist/index.d.ts +17 -17
- package/dist/index.js +14 -14
- package/dist/{instance-options-Omfd793B.d.ts → instance-options-BsVpyGIk.d.ts} +1 -1
- package/dist/{instance-snapshot-Cxq4ygFc.js → instance-snapshot-BOEhcqIF.js} +10 -9
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-5JatXyND.js → kernel-D0NVb1cK.js} +5 -5
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{manifest-CtKR3GXL.js → manifest-dvL2XEe1.js} +23 -23
- package/dist/{map-error-TCAdw-eW.js → map-error-Dr70oA_3.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +4 -4
- package/dist/{migrate-BShP7Vf4.js → migrate-CIq4-E9F.js} +1 -1
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +9 -9
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +3 -3
- package/dist/{openapi-ahr8rHu3.js → openapi-C4dDTVEd.js} +1 -1
- package/dist/{openapi-DTaEmTSW.js → openapi-DD1SV-5-.js} +1 -1
- package/dist/{operations-CxybZErY.d.ts → operations-X0VM7F3m.d.ts} +1 -1
- package/dist/orpc/index.d.ts +6 -6
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-Dyw8fyPF.js → output-1im__-08.js} +1 -1
- package/dist/{ownership-BatFgAA4.js → ownership-DqaJNJPn.js} +921 -858
- package/dist/{parse-local-manifest-DgqtruPn.d.ts → parse-local-manifest-5ODwqu8b.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-B9JxkBwC.js → permdock-BrAscV28.js} +5 -5
- package/dist/{permdock-D7eeLJER.d.ts → permdock-SV8ZINYT.d.ts} +4 -4
- package/dist/{permissions-CZKiUfFM.js → permissions-BPxlwVhN.js} +2 -2
- package/dist/{permissions-oEWfl-kl.d.ts → permissions-u_KHg-sN.d.ts} +1 -1
- package/dist/{policies-CO1oOymN.js → policies-DP2nqRoF.js} +1 -1
- package/dist/{policy-Czo4n3Hs.d.ts → policy-77FSAq_V.d.ts} +2 -2
- package/dist/{policy-DLZJ5gAp.js → policy-DbM5YYtV.js} +2 -2
- package/dist/{policy-from-catalog-DzhEc3Y9.js → policy-from-catalog-C2gMa2Dj.js} +5 -5
- package/dist/{policy-types-DzwivBgR.d.ts → policy-types-n0uRTsW8.d.ts} +28 -3
- package/dist/{postgrest-NUqZT-RB.d.ts → postgrest-CEgRbefE.d.ts} +1 -1
- package/dist/{postgrest-CW0IqC-U.js → postgrest-DAjUkF9w.js} +10 -1
- package/dist/{powersync-bYUDLOAO.js → powersync-BkWWCS1K.js} +6 -6
- package/dist/{powersync-BHfuehf3.js → powersync-DISt6SUe.js} +2 -2
- package/dist/powersync-MMJ2mI2q.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{problem-details-DXlt-vks.d.ts → problem-details-B45V5d2b.d.ts} +1 -1
- package/dist/{protected-DfjY5mLA.js → protected-BlF0F6wL.js} +1 -1
- package/dist/{protected-DEPHc2xV.d.ts → protected-RFGpakN9.d.ts} +5 -5
- package/dist/{provider-CC-u3bYP.js → provider-B1al-AZz.js} +2 -2
- package/dist/{provider-DMVt6yYn.d.ts → provider-DILL9oPK.d.ts} +1 -1
- package/dist/{provider-store-B5Yrkhzr.js → provider-store-DM6DNcta.js} +2 -2
- package/dist/pull-CvpINcMK.js +1 -0
- package/dist/{pull-BgIfno6w.js → pull-jEwbf80J.js} +1 -1
- package/dist/{push-CmFVBOeI.js → push-BD4f15co.js} +2 -2
- package/dist/{pushed-policy-DobP7AHI.js → pushed-policy-CqtxkV4G.js} +1 -1
- package/dist/{pushed-policy-BImMTTIM.d.ts → pushed-policy-DCW91KQU.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +2 -2
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +9 -9
- package/dist/react-native/index.js +10 -8
- package/dist/{replay-D7iKcLFe.d.ts → replay-Bkm-Ne4l.d.ts} +1 -1
- package/dist/{request-context-BTRTG7OT.js → request-context-C81Pip9n.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{rls-BA8an5Ap.js → rls-BAqP4q66.js} +1 -1
- package/dist/{rls-j6t43t7n.js → rls-DTvYd-lI.js} +12 -12
- package/dist/{role-builder-CXbis5-X.js → role-builder-uWQZ4v84.js} +1 -1
- package/dist/{rpc-aPyNi6tA.js → rpc-VSl5ylaQ.js} +1 -1
- package/dist/{run-DOfMtc9V.js → run-CUKuz0A8.js} +2 -2
- package/dist/run-DDwUaJDU.js +1 -0
- package/dist/{run-ticket-BjhTOi6u.d.ts → run-ticket-DocwaTKn.d.ts} +2 -2
- package/dist/{saas-FO-Q8oj0.js → saas-BCXRuXca.js} +5 -5
- package/dist/{scan-BOI5tJ-6.js → scan-qvOe0hS3.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +4 -4
- package/dist/{server-DqCT4CgZ.js → server-C3WXAHZj.js} +1 -1
- package/dist/{server-types-BLd4MnBX.d.ts → server-types-CKQiCnON.d.ts} +9 -9
- package/dist/{shared-CD11nBbC.js → shared-BAK8t4Uo.js} +2 -1
- package/dist/{sink-Bj_lDUDq.d.ts → sink-4-eQIRWf.d.ts} +4 -4
- package/dist/{snapshot-CXUWfsNy.js → snapshot-B7DkYg6g.js} +1 -1
- package/dist/{snapshot-cache-DqK9eDmM.d.ts → snapshot-cache-PXI-vGpY.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-BV9j0DeZ.d.ts → sources-Xc4zkszI.d.ts} +2 -2
- package/dist/{src-DLfUWFAI.js → src-Cu2m75uo.js} +24 -15
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +1 -1
- package/dist/{standard-webhooks-6lg8v_is.d.ts → standard-webhooks-rbD7LS6h.d.ts} +2 -2
- package/dist/{store-4u_hxjWa.js → store-BDutJkDL.js} +1 -1
- package/dist/{store-options-BqEakYRa.js → store-options-u0ycEe8s.js} +4 -4
- package/dist/{stores-ClZUgeoP.d.ts → stores-BUGNbJTt.d.ts} +5 -5
- package/dist/{stores-BbsD4fAR.js → stores-CGhM8BN_.js} +1 -1
- package/dist/{stream-7-xmnf3U.d.ts → stream-CeCMJmBB.d.ts} +2 -2
- package/dist/supabase/index.d.ts +5 -5
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-9pqI57pW.js → supabase-By_frk3U.js} +2 -2
- package/dist/{supabase-hook-DdDQhMlw.js → supabase-hook-BMoEhZir.js} +14 -9
- package/dist/supabase-hook-CCw5m35C.js +1 -0
- package/dist/{supabase-Dxlp8A94.js → supabase-x5JtR2tc.js} +3 -3
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +2 -2
- 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 +1 -1
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +3 -3
- package/dist/testing/index.d.ts +20 -20
- package/dist/testing/index.js +18 -18
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +3 -3
- package/dist/{types-C8-KNsFf.d.ts → types-8RnwUAvE.d.ts} +5 -5
- package/dist/{types-BNORmDM8.d.ts → types-B3_ooZgZ.d.ts} +4 -4
- package/dist/{types-CCpc2Dcv.d.ts → types-BdtSDbBO.d.ts} +2 -2
- package/dist/{types-DX0LaKTb.d.ts → types-BtHtcKMr.d.ts} +3 -3
- package/dist/{types-CdlxsYQh.d.ts → types-BzzaHxt3.d.ts} +1 -1
- package/dist/{types-DiQjupG2.d.ts → types-C791HFu9.d.ts} +2 -2
- package/dist/{types-BjV-fqcA.d.ts → types-C863OQiR.d.ts} +4 -4
- package/dist/{types-fbZ7JEXr.d.ts → types-CVZSNocA.d.ts} +4 -4
- package/dist/{types-tIgIeIKJ.d.ts → types-CX7AvRqP.d.ts} +4 -4
- package/dist/{types-_sHy8BQf.d.ts → types-C_IiEs64.d.ts} +1 -1
- package/dist/{types-5Ut_pbKy.d.ts → types-Dfv0aTER.d.ts} +4 -2
- package/dist/{types-CZTnPFzM.d.ts → types-Druu9wLM.d.ts} +2 -2
- package/dist/{types-ClZaWzfb.d.ts → types-_WhUP7ud.d.ts} +3 -3
- package/dist/{types-BqAKcRNW.d.ts → types-lUlG3TVd.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DHtE8j4E.js → usage-CRVl9V3t.js} +1 -1
- package/dist/usage-CZpSQP6L.js +1 -0
- package/dist/{usage-T5mXq98v.js → usage-SveTRTyr.js} +4 -4
- package/dist/{validation-error-Bg5Tpluk.d.ts → validation-error-DHUrAkku.d.ts} +1 -1
- package/dist/{verify-DbCL9bnB.js → verify-BaAKx7t6.js} +11 -11
- package/dist/{vocabulary-D6lPdb4Z.d.ts → vocabulary-CN8H_9UF.d.ts} +2 -0
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-CKy4MQSY.d.ts → waiter-B986w1oK.d.ts} +2 -2
- package/dist/watch--ovlPOc0.js +1 -0
- package/dist/{watch-CszoTJMq.js → watch-vea54PRw.js} +1 -1
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{where-scope-Dv-WTP-w.js → where-scope-C9vfEphl.js} +2 -2
- package/dist/{who-can-D0QoYbEb.js → who-can-DWBAcaCQ.js} +2 -2
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-Bd1Tejur.d.ts → wrap-C5jC6sKI.d.ts} +2 -2
- package/package.json +2 -2
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/skills/permdock-tenancy/references/ownership-and-custom-roles.md +1 -0
- package/dist/catalog-DjhMYYCq.js +0 -1
- package/dist/collect-FlXJlhus.js +0 -1
- package/dist/powersync-CbzkqL_M.js +0 -1
- package/dist/pull-ByOks_Tg.js +0 -1
- package/dist/run-CNsApDpd.js +0 -1
- package/dist/supabase-hook-CXcGpHqq.js +0 -1
- package/dist/usage-CHOtwL19.js +0 -1
- package/dist/watch-Cb-NcaUw.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vt as Snapshot, dt as TokenVerifier, ot as SnapshotSource } from "./policy-types-
|
|
2
|
-
import { n as DescribeMessages } from "./describe-
|
|
3
|
-
import { h as ClientStoreOptions } from "./types-
|
|
4
|
-
import { t as PermDockDefaults } from "./types-
|
|
1
|
+
import { Vt as Snapshot, dt as TokenVerifier, ot as SnapshotSource } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { n as DescribeMessages } from "./describe-B5qgDvEW.js";
|
|
3
|
+
import { h as ClientStoreOptions } from "./types-B3_ooZgZ.js";
|
|
4
|
+
import { t as PermDockDefaults } from "./types-CX7AvRqP.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
//#region src/react-native/types.d.ts
|
|
7
7
|
type SnapshotStorage = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, zn as GrantedDecision } from "./policy-types-
|
|
2
|
-
import { w as Permission } from "./vocabulary-
|
|
3
|
-
import { r as PermDock } from "./permdock-
|
|
1
|
+
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, zn as GrantedDecision } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "./permdock-SV8ZINYT.js";
|
|
4
4
|
import { t as PermissionBoundaryState } from "./boundary-BmHxVH1J.js";
|
|
5
|
-
import { l as PermissionState, m as ClientStore, u as ProviderOptionsBase } from "./types-
|
|
5
|
+
import { l as PermissionState, m as ClientStore, u as ProviderOptionsBase } from "./types-B3_ooZgZ.js";
|
|
6
6
|
import { Snippet } from "svelte";
|
|
7
7
|
import { Readable } from "svelte/store";
|
|
8
8
|
//#region src/client/views.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, zn as GrantedDecision } from "./policy-types-
|
|
2
|
-
import { w as Permission } from "./vocabulary-
|
|
3
|
-
import { n as DescribeMessages } from "./describe-
|
|
4
|
-
import { h as ClientStoreOptions } from "./types-
|
|
1
|
+
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, zn as GrantedDecision } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { n as DescribeMessages } from "./describe-B5qgDvEW.js";
|
|
4
|
+
import { h as ClientStoreOptions } from "./types-B3_ooZgZ.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
//#region src/react/types.d.ts
|
|
7
7
|
type PermDockProviderProps = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fn as Approver } from "./policy-types-
|
|
1
|
+
import { fn as Approver } from "./policy-types-n0uRTsW8.js";
|
|
2
2
|
//#region src/approvals/access-reviews/types.d.ts
|
|
3
3
|
type AccessReviewStatus = "open" | "closed";
|
|
4
4
|
type AccessReviewItemStatus = "pending" | "kept" | "revoked";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as RoleThrough } from "./types-
|
|
2
|
-
import { o as SqlMembershipSource } from "./sources-
|
|
1
|
+
import { n as RoleThrough } from "./types-BzzaHxt3.js";
|
|
2
|
+
import { o as SqlMembershipSource } from "./sources-Xc4zkszI.js";
|
|
3
3
|
//#region src/cli/core/errors.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* 0 success, 1 failure, 2 usage, 3 action required, 130 interrupted (SIGINT
|
|
@@ -381,6 +381,8 @@ type RlsCustomRoleTable = {
|
|
|
381
381
|
readonly id?: string;
|
|
382
382
|
/** A boolean column marking rows that are not custom roles (declared or system roles); those rows are skipped. */
|
|
383
383
|
readonly skip?: string;
|
|
384
|
+
/** A boolean column marking a row with no tenant as a shared custom role, held at `scope` (default the first scope) in every tenant. Without it a row with no tenant is a platform role. */
|
|
385
|
+
readonly shared?: string;
|
|
384
386
|
};
|
|
385
387
|
/** `rls.customRoles` as an object: custom roles on, plus where existing ones live. */
|
|
386
388
|
type RlsCustomRolesConfig = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ResourceRelation } from "./vocabulary-
|
|
2
|
-
import { s as OperationMeta } from "./operations-
|
|
1
|
+
import { I as ResourceRelation } from "./vocabulary-CN8H_9UF.js";
|
|
2
|
+
import { s as OperationMeta } from "./operations-X0VM7F3m.js";
|
|
3
3
|
//#region src/catalog/types.d.ts
|
|
4
4
|
type CatalogUsage = {
|
|
5
5
|
readonly file: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Nn as Decision, Rn as ExplainedDecision, T as Policy,
|
|
2
|
-
import { E as PermissionTree, w as Permission } from "./vocabulary-
|
|
3
|
-
import { c as WhereResult, i as PermDockOptions, n as DeriveOptions, o as SimulateOptions, r as PermDock, t as DecideOptions } from "./permdock-
|
|
1
|
+
import { Nn as Decision, Rn as ExplainedDecision, T as Policy, ar as Subject, j as PolicyVocabulary, nr as Membership, rr as Principal } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { E as PermissionTree, w as Permission } from "./vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { c as WhereResult, i as PermDockOptions, n as DeriveOptions, o as SimulateOptions, r as PermDock, t as DecideOptions } from "./permdock-SV8ZINYT.js";
|
|
4
4
|
//#region src/pdp/types.d.ts
|
|
5
5
|
type RemotePdpAuth = {
|
|
6
6
|
readonly bearer: string | (() => string | Promise<string>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Xt as DecisionEvent, j as PolicyVocabulary } from "./policy-types-
|
|
2
|
-
import { r as PermDock } from "./permdock-
|
|
1
|
+
import { Xt as DecisionEvent, j as PolicyVocabulary } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { r as PermDock } from "./permdock-SV8ZINYT.js";
|
|
3
3
|
//#region src/otel/types.d.ts
|
|
4
4
|
declare const GENAI_SEMCONV_PIN = "1.37.0";
|
|
5
5
|
declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
|
package/dist/unplugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PermDockPluginOptions } from "../types-
|
|
1
|
+
import { a as PermDockPluginOptions } from "../types-Dfv0aTER.js";
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
//#region src/unplugin/index.d.ts
|
|
4
4
|
type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
|
package/dist/unplugin/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createCollectScheduler, r as report } from "../watch-
|
|
1
|
+
import { n as createCollectScheduler, r as report } from "../watch-vea54PRw.js";
|
|
2
2
|
import { r as peerHint } from "../peer-C8swJ2GH.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
//#region src/unplugin/index.ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as runUsage } from "./usage-SveTRTyr.js";
|
|
@@ -2,12 +2,12 @@ import { a as getResource } from "./permission-registry-Br4jSNVi.js";
|
|
|
2
2
|
import { u as usageResult } from "./errors-CWTY6uih.js";
|
|
3
3
|
import { a as rel, r as listSourceFiles } from "./files-D_JIzUrP.js";
|
|
4
4
|
import { o as USAGE_REPORT_SCHEMA } from "./version-CEbQ5UeM.js";
|
|
5
|
-
import { s as jsonSchemaOf } from "./catalog-doc-
|
|
5
|
+
import { s as jsonSchemaOf } from "./catalog-doc-Cdn7-0pQ.js";
|
|
6
6
|
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-DFS_ry0W.js";
|
|
7
|
-
import { r as runCollect } from "./collect-
|
|
7
|
+
import { r as runCollect } from "./collect-mLTY4nwb.js";
|
|
8
8
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
9
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
10
|
-
import { r as findingOf } from "./output-
|
|
9
|
+
import { t as DOCS_BASE } from "./manifest-dvL2XEe1.js";
|
|
10
|
+
import { r as findingOf } from "./output-1im__-08.js";
|
|
11
11
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
12
12
|
import { dirname, resolve } from "node:path";
|
|
13
13
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ProblemDetails } from "./errors-
|
|
1
|
+
import { a as ProblemDetails } from "./errors-DH5QEGXh.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/core/validation-error.d.ts
|
|
4
4
|
/** The base of every Problem Details `type` URI; defined here so a validation error does not pull in the Problem Details builders. */
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as sole, r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { a as hasConditionOp, c as isConditionRef } from "./refs-K6eWUJ0H.js";
|
|
3
|
-
import { E as memoryCustomRoleSource, g as memoryRelationSource } from "./src-
|
|
3
|
+
import { E as memoryCustomRoleSource, g as memoryRelationSource } from "./src-Cu2m75uo.js";
|
|
4
4
|
import { c as listPermissions, h as formerKeys, n as findPermission } from "./permission-registry-Br4jSNVi.js";
|
|
5
5
|
import { a as expandRelation, c as isEdgeRelation, d as isSelfParented, l as isFieldRelation, o as groupEntries, p as restrictedFor, u as isPrincipalRelation } from "./resource-relations-D_jw0BFx.js";
|
|
6
6
|
import { f as nowMillis, u as isoAt } from "./time-DkWjdL98.js";
|
|
7
7
|
import { t as canonicalJson } from "./canonical-json-BC8_nMTw.js";
|
|
8
8
|
import { d as scopeList } from "./scopes-CUPSjo9q.js";
|
|
9
|
-
import { o as requiresStandIn } from "./delegation-
|
|
10
|
-
import { o as flattenGrantee } from "./grantee-
|
|
9
|
+
import { o as requiresStandIn } from "./delegation-j6-rc37o.js";
|
|
10
|
+
import { o as flattenGrantee } from "./grantee-hxrUsbpM.js";
|
|
11
11
|
import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-CcXf8hMM.js";
|
|
12
12
|
import { p as scopeField } from "./tenancy-DN2QAx9z.js";
|
|
13
|
-
import { s as policyLevels } from "./policy-
|
|
13
|
+
import { s as policyLevels } from "./policy-DbM5YYtV.js";
|
|
14
14
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as getPermDock } from "./permdock-
|
|
15
|
+
import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-CNClBvcj.js";
|
|
16
|
+
import { t as getPermDock } from "./permdock-BrAscV28.js";
|
|
17
17
|
import { a as describeError, i as configError, u as usageResult } from "./errors-CWTY6uih.js";
|
|
18
18
|
import { t as policyRowConditionKeys } from "./row-conditions-h2HythXQ.js";
|
|
19
|
-
import { s as jsonSchemaOf } from "./catalog-doc-
|
|
19
|
+
import { s as jsonSchemaOf } from "./catalog-doc-Cdn7-0pQ.js";
|
|
20
20
|
import { o as loadPolicyAt } from "./load-DFS_ry0W.js";
|
|
21
21
|
import { c as relationArmSql, u as restrictedRowsSql } from "./compile-CMqMx_IN.js";
|
|
22
22
|
import "./budget-NbEtbJC_.js";
|
|
@@ -24,10 +24,10 @@ import { i as qualifySqlTable, n as defaultSqlCommand } from "./sql-B5T1IL83.js"
|
|
|
24
24
|
import "./sources-vs5dGOsS.js";
|
|
25
25
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
26
26
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-B7XrLeY7.js";
|
|
27
|
-
import { F as quoteQualified, I as quoteTable, M as qualified, N as quoteIdent, P as quoteLiteral, T as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as helperSchema, r as HELPERS, v as subjectClaimSql, w as arrayColumnsOf } from "./shared-
|
|
28
|
-
import { d as connectPgPool, f as pgConnector, l as validitySql, s as andSql, u as wrapSql } from "./policies-
|
|
29
|
-
import {
|
|
30
|
-
import { s as viewName, t as FIELD_VIEWS } from "./fields-
|
|
27
|
+
import { F as quoteQualified, I as quoteTable, M as qualified, N as quoteIdent, P as quoteLiteral, T as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as helperSchema, r as HELPERS, v as subjectClaimSql, w as arrayColumnsOf } from "./shared-BAK8t4Uo.js";
|
|
28
|
+
import { d as connectPgPool, f as pgConnector, l as validitySql, s as andSql, u as wrapSql } from "./policies-DP2nqRoF.js";
|
|
29
|
+
import { $ as activeUserSql, A as collectGrants, F as CLOSURE, I as graphHelper, L as graphSqlName, M as compileConditionSql, N as contextRefs, O as breakGlassHolder, P as sqlFunctionNames, R as graphSqlText, T as apiKeyAllowsCall, V as linkHelper, Y as restrictedHelper, Z as scopeTable, _ as capabilityAccessSql, k as breakGlassKey, m as accessSql, p as requiresSql } from "./ownership-DqaJNJPn.js";
|
|
30
|
+
import { s as viewName, t as FIELD_VIEWS } from "./fields-OYG_JR78.js";
|
|
31
31
|
import { createHash, randomUUID } from "node:crypto";
|
|
32
32
|
//#region src/cli/rls/indexes.ts
|
|
33
33
|
/** Postgres truncates identifiers longer than this, in bytes. */
|
|
@@ -265,6 +265,8 @@ type Role<K extends string = string> = {
|
|
|
265
265
|
readonly on?: string;
|
|
266
266
|
readonly assignable: boolean;
|
|
267
267
|
readonly meta: RoleMeta;
|
|
268
|
+
/** A shared custom role: the platform defines it for every tenant, and a tenant admin cannot edit it. */
|
|
269
|
+
readonly shared?: true;
|
|
268
270
|
readonly kind: typeof ROLE_KIND;
|
|
269
271
|
};
|
|
270
272
|
type Plan<K extends string = string> = {
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, nr as Membership } from "../policy-types-
|
|
2
|
-
import { r as Role, w as Permission } from "../vocabulary-
|
|
3
|
-
import { n as requiredPlans } from "../problem-details-
|
|
4
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
1
|
+
import { Mn as ApprovalRequiredDecision, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, nr as Membership } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { r as Role, w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { n as requiredPlans } from "../problem-details-B45V5d2b.js";
|
|
4
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-B5qgDvEW.js";
|
|
5
5
|
import { t as PermissionBoundaryState } from "../boundary-BmHxVH1J.js";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-CIbDTUTK.js";
|
|
7
|
-
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle, u as ProviderOptionsBase } from "../types-
|
|
7
|
+
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle, u as ProviderOptionsBase } from "../types-B3_ooZgZ.js";
|
|
8
8
|
import { ComputedRef, DefineComponent, MaybeRefOrGetter, Plugin, VNode } from "vue";
|
|
9
9
|
//#region src/vue/types.d.ts
|
|
10
10
|
type PermDockPluginOptions = ProviderOptionsBase & {
|
package/dist/vue/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { r as requiredPlans } from "../problem-details-cn5X30gZ.js";
|
|
|
2
2
|
import { t as describe } from "../describe-BybMRY7A.js";
|
|
3
3
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BM8a_P6E.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-BIjfMaoC.js";
|
|
5
|
-
import { i as isPromiseLike } from "../store-options-
|
|
6
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
5
|
+
import { i as isPromiseLike } from "../store-options-u0ycEe8s.js";
|
|
6
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-DM6DNcta.js";
|
|
7
7
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "../views-DTIIO-oQ.js";
|
|
8
8
|
import { computed, defineComponent, effectScope, getCurrentScope, inject, isRef, onErrorCaptured, onScopeDispose, provide, shallowRef, toValue, watch } from "vue";
|
|
9
9
|
//#region src/vue/context.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Rt as Instant } from "./policy-types-
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
1
|
+
import { Rt as Instant } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-BdtSDbBO.js";
|
|
3
3
|
//#region src/workflow/waiter.d.ts
|
|
4
4
|
type ApprovalWaitOptions = {
|
|
5
5
|
/** When the approval request expires; the wait ends then whatever the store says. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as watchCollect } from "./watch-vea54PRw.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-DkWjdL98.js";
|
|
2
2
|
import { a as describeError } from "./errors-CWTY6uih.js";
|
|
3
3
|
import { t as defaultSrcPath } from "./files-D_JIzUrP.js";
|
|
4
|
-
import { r as runCollect } from "./collect-
|
|
4
|
+
import { r as runCollect } from "./collect-mLTY4nwb.js";
|
|
5
5
|
import { n as isConfigFile, r as loadConfig } from "./config-bs_kZeYq.js";
|
|
6
6
|
import { watch } from "node:fs";
|
|
7
7
|
import { basename, dirname, relative, resolve, sep } from "node:path";
|
package/dist/webmcp/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Nn as Decision, Vt as Snapshot } from "../policy-types-
|
|
2
|
-
import { E as PermissionTree, w as Permission } from "../vocabulary-
|
|
1
|
+
import { Nn as Decision, Vt as Snapshot } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { E as PermissionTree, w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
3
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
4
4
|
//#region src/webmcp/types.d.ts
|
|
5
5
|
type WebMcpClientStatus = "ready" | "pending" | "stale" | "server-only";
|
|
@@ -3,11 +3,11 @@ import { n as freezeDeep } from "./freeze-CrU8nQeX.js";
|
|
|
3
3
|
import { t as loadPrincipal } from "./principal-source-pHneukrx.js";
|
|
4
4
|
import { g as secondsOf, m as rfc3339 } from "./time-DkWjdL98.js";
|
|
5
5
|
import { d as scopeList, l as scopeChain, m as tenantOf, o as resolveScope, r as findScope, t as activeFor, u as scopeIdOf } from "./scopes-CUPSjo9q.js";
|
|
6
|
-
import { a as readOnlyActorRefuses, n as coveredByDelegation } from "./delegation-
|
|
6
|
+
import { a as readOnlyActorRefuses, n as coveredByDelegation } from "./delegation-j6-rc37o.js";
|
|
7
7
|
import { r as readWireValidity, t as isActive } from "./validity-CZ7-y0Cj.js";
|
|
8
8
|
import { o as resourceRoleCondition } from "./grantee-conditions-CcXf8hMM.js";
|
|
9
9
|
import { c as nowSeconds, n as inTeam, o as membershipField, r as isMembershipExpired } from "./tenancy-DN2QAx9z.js";
|
|
10
|
-
import { i as bindConditionRefs, n as parseSnapshot } from "./snapshot-
|
|
10
|
+
import { i as bindConditionRefs, n as parseSnapshot } from "./snapshot-B7DkYg6g.js";
|
|
11
11
|
//#region src/core/snapshot-sign.ts
|
|
12
12
|
/**
|
|
13
13
|
* Signs `snapshot` as a `vnd.permdock.snapshot+jwt`. `issuedAt` and
|
|
@@ -6,11 +6,11 @@ import { a as getResource } from "./permission-registry-Br4jSNVi.js";
|
|
|
6
6
|
import { a as expandRelation, c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-D_jw0BFx.js";
|
|
7
7
|
import { s as instantAt } from "./time-DkWjdL98.js";
|
|
8
8
|
import { a as normalizeMemberships, c as rootScope, d as scopeList, o as resolveScope } from "./scopes-CUPSjo9q.js";
|
|
9
|
-
import { o as flattenGrantee } from "./grantee-
|
|
9
|
+
import { o as flattenGrantee } from "./grantee-hxrUsbpM.js";
|
|
10
10
|
import { r as relationCondition } from "./grantee-conditions-CcXf8hMM.js";
|
|
11
11
|
import { c as nowSeconds, p as scopeField } from "./tenancy-DN2QAx9z.js";
|
|
12
12
|
import { t as byCodePoint } from "./compare-pfyVnBjE.js";
|
|
13
|
-
import {
|
|
13
|
+
import { T as emptyListeners, t as evaluate } from "./evaluate-CNClBvcj.js";
|
|
14
14
|
import { n as relationId, t as pendingRelations } from "./relations-BnCWnJGI.js";
|
|
15
15
|
import { t as relationWalk } from "./relation-walk-3OyDBF0S.js";
|
|
16
16
|
//#region src/core/who-can.ts
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-
|
|
2
|
-
import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-
|
|
3
|
-
import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-
|
|
1
|
+
import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-BNM3TtDo.js";
|
|
2
|
+
import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-B986w1oK.js";
|
|
3
|
+
import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-D_NmPOdH.js";
|
|
4
4
|
import "../index-CaxrMD1A.js";
|
|
5
5
|
export { type ApprovalWaitOptions, type ApprovalWaiter, type Automation, type AutomationDecision, type AutomationMode, type AutomationOptions, type AutomationRequest, type AutomationSource, type AwaitApprovalOptions, type MemoryAutomationSource, type PollingApprovalWaiterOptions, type StartAutomationResult, type WorkflowPermDock, type WorkflowPermDockOptions, createPermDock, memoryAutomationSource, parseAutomation, pollingApprovalWaiter };
|
package/dist/workflow/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { n as freezeDeep } from "../freeze-CrU8nQeX.js";
|
|
|
3
3
|
import { n as findPermission } from "../permission-registry-Br4jSNVi.js";
|
|
4
4
|
import { n as isThenable } from "../thenable-yD7SabqG.js";
|
|
5
5
|
import { n as memoryAutomationSource, r as parseAutomation } from "../automation-DVjOckjV.js";
|
|
6
|
-
import { c as withApp, t as getPermDock } from "../permdock-
|
|
6
|
+
import { c as withApp, t as getPermDock } from "../permdock-BrAscV28.js";
|
|
7
7
|
import { o as automationEvent } from "../sink-BEZSlMS_.js";
|
|
8
|
-
import { a as requestApproval, s as resumeDecision } from "../helpers-
|
|
8
|
+
import { a as requestApproval, s as resumeDecision } from "../helpers-CBYVMjwh.js";
|
|
9
9
|
import { n as signRunTicket, r as subjectFromRunTicket } from "../run-ticket-sxFI6LAk.js";
|
|
10
10
|
import { t as pollingApprovalWaiter } from "../waiter-BGUtGYoU.js";
|
|
11
11
|
//#region src/workflow/create.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Nn as Decision } from "../policy-types-
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { r as PermDock } from "../permdock-
|
|
4
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
5
|
-
import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-
|
|
1
|
+
import { Nn as Decision } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.js";
|
|
4
|
+
import { n as ApprovalWaiter } from "../waiter-B986w1oK.js";
|
|
5
|
+
import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-D_NmPOdH.js";
|
|
6
6
|
//#region src/workflow-sdk/index.d.ts
|
|
7
7
|
/** The part of a Workflow SDK `Hook` the waiter reads: awaiting it suspends the run. */
|
|
8
8
|
export type WorkflowSdkHook = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as PolicyVocabulary } from "./policy-types-
|
|
2
|
-
import { r as PermDock } from "./permdock-
|
|
1
|
+
import { j as PolicyVocabulary } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { r as PermDock } from "./permdock-SV8ZINYT.js";
|
|
3
3
|
//#region src/core/wrap.d.ts
|
|
4
4
|
/** A wrapper an adapter applies to each instance it builds, as `withOtel` does. */
|
|
5
5
|
type PermDockWrap = <V extends PolicyVocabulary>(permdock: PermDock<V>) => PermDock<V>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "permdock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -402,7 +402,7 @@
|
|
|
402
402
|
"@trpc/server": ">=11",
|
|
403
403
|
"ai": ">=5",
|
|
404
404
|
"astro": ">=5",
|
|
405
|
-
"better-supabase": ">=0.9.0
|
|
405
|
+
"better-supabase": ">=0.9.0",
|
|
406
406
|
"chat": ">=4",
|
|
407
407
|
"drizzle-orm": ">=0.40 || >=1.0.0-rc.0",
|
|
408
408
|
"elysia": ">=1",
|
|
@@ -39,7 +39,7 @@ pnpm exec permdock rls verify --introspect
|
|
|
39
39
|
- Generated policies call `permdock_has('<key>')` and one `permitted_<scope>_ids('<key>')` per declared scope, which Postgres runs once per statement. Hand-written policies that only need membership (an organization switcher) call `member_<scope>_ids()` instead of inventing a permission key. Trusted SQL that acts for a stored user (a job, a trigger, a deferred approval) calls `permdock_has_for(p_user, '<key>')` and `permitted_<scope>_ids_for(p_user, '<key>')` in `database` mode, or the generated `permitted_<resource>_rows_for`, never a hand-written function that rewrites `request.jwt.claims`. With `rls.rowHelpers`, a hand-written policy or function that needs the rows a permission reaches through the graph calls `permitted_<resource>_rows('<permission key>')` instead of restating closure walks, link hops and `includes`. A table's own `select` or `insert` policy calls the row-valued `permitted_<resource>_row(<table>, '<permission key>')` instead, so `insert ... returning` sees the new row. Hand-written policies and functions that apply no row condition call `permitted_<scope>_ids_by_permission('<permission key>')` or `permdock_has_permission('<permission key>')` instead of spelling a positional `#n` grant key. A screen or RPC that checks many permissions on one organization calls `permitted_<scope>_permission_keys(<id>)` once (or `(<id>, array['<key>', ...])` for a few keys) instead of one helper call per key. A role editor or admin screen lists a role's keys with `permdock_role_permissions(p_role, p_scope, p_tenant, p_scope_id)` (declared roles, and custom roles of the caller's tenant in `database` mode) and the catalog with `permdock_permission_keys()` (`permdock_permission_keys('<scope>')` for the keys a role on that scope can hold), instead of joining `role_permissions` and the custom-role tables by hand; server code reads any tenant's roles with `permdock_trusted_role_permissions`, granted through `rls.trustedReaders`. Set `--tenant-type` (or `rls.tenantType`, `rls.scopeTypes`) to the scope columns' types.
|
|
40
40
|
- `--authorize database` (default) reads the membership tables per statement; map each under `rls.memberships.scopes.<scope>` with `columns` for its id and its ancestors', and `via` so roles with `for` apply: a column name, or `{ value: 'staff' }` when every row has that kind (never add a generated column for it). `--authorize jwt` reads token claims and stays stale until the token refreshes; keep the token lifetime at 3600 seconds or less (PD019).
|
|
41
41
|
- The helpers narrow to the tenant claim (`rls.tenantClaim`) whenever the token carries one; the Supabase hook writes it from `activeFrom`. When the app takes the tenant from the URL and one session spans tenants, set `rls.tenants: 'all'` so the database admits every member tenant, and keep filtering each query by the URL's tenant.
|
|
42
|
-
- `--policy-per-role` keeps one policy per role for review. `--custom-roles` (or `rls.customRoles: true`) resolves tenant-defined roles inside the `permdock_ceiling` view. In `database` mode, save a custom role with `permdock_replace_custom_role_grants(tenant, scope, scope_id, role, allow, deny, include)` and rename or delete it with `permdock_rename_custom_role_grants` and `permdock_delete_custom_role_grants`, never with hand-written `security definer` functions or direct writes; failures raise `22023` or `42501` with the reason as the `hint`. A platform custom role passes a null tenant and scope `global
|
|
42
|
+
- `--policy-per-role` keeps one policy per role for review. `--custom-roles` (or `rls.customRoles: true`) resolves tenant-defined roles inside the `permdock_ceiling` view. In `database` mode, save a custom role with `permdock_replace_custom_role_grants(tenant, scope, scope_id, role, allow, deny, include)` and rename or delete it with `permdock_rename_custom_role_grants` and `permdock_delete_custom_role_grants`, never with hand-written `security definer` functions or direct writes; failures raise `22023` or `42501` with the reason as the `hint`. A platform custom role passes a null tenant and scope `global`; a shared custom role passes a null tenant and scope id at its scope. Seeds, jobs and backends with no member caller use the `permdock_trusted_*` variants, which keep the definition checks; grant `execute` on them to a backend role in a migration of your own, never to `authenticated`. Set `rls.customRoleWrites.requires` to the permission your role editor asserts (or `'manageRoles'`) so the database refuses members who may not manage roles (`manage-roles`).
|
|
43
43
|
- `--force` (or `rls.force: true`) only when the app connects as the table owner. Create views over RLS tables `with (security_invoker = true)` (PD022).
|
|
44
44
|
- When read grants set `fields` and clients read tables directly, add `--fields views --revoke-columns`: clients read `<table>_visible`, whose restricted columns are null unless a grant covers them. PD030 names columns still readable.
|
|
45
45
|
- `rls.suspension` drops suspended users' roles and memberships of suspended scope instances, live in both modes. `scopes.<scope>.keep: [permissions.org.restore]` lets members of a suspended instance still hold those permissions (restore, cancel deletion, export) in the helpers, `authorize()`, the token hook and in process, where the membership carries `keep`; `doctor` PD061 lists them.
|
|
@@ -86,6 +86,7 @@ type CustomRole = {
|
|
|
86
86
|
- `permdock.assignablePermissions({ tenant })` is the ceiling intersected with what the subject holds. `useAssignablePermissions()` in `permdock/react` builds the editor from it.
|
|
87
87
|
- The save action runs `validateCustomRole(policy, role)` and refuses the role when `ok` is false or `permissions` contains a key outside `assignablePermissions()`. `dropped` names each entry left out (`unknown-permission`, `outside-ceiling`, `condition-not-allowed`, `unknown-level`, `unknown-role`).
|
|
88
88
|
- A platform custom role (`scope: 'global'`, no `tenant`, `team` or `id`) is held through `principal.roles` and capped by the allows of declared global roles marked `assignable`. `CustomRoleSource.globalRoles({ held })` returns them; `customRoleSource(reader, { read: 'held', policy })` skips that read while every held global role is declared.
|
|
89
|
+
- A shared custom role (`shared: true`, no `tenant`, `team` or `id`; `scope` below global, default the first) is defined once by the platform and held by name on a membership of its scope in any tenant. `CustomRoleSource.sharedRoles({ held })` returns them. Its name wins over a tenant custom role's: pass the shared roles to `validateCustomRole(policy, role, { shared })` in the save action, which refuses a clash with `name-taken`. Require a `meta.manageRoles` permission held through a global role before saving one.
|
|
89
90
|
- A stored grant under a key renamed with `definePermissions(..., { renamed })` still resolves; `validateCustomRole` lists it in `renamed` as `{ from, to }`, and `permdock doctor` PD055 prints the `update` that rewrites it.
|
|
90
91
|
- For generated RLS, add `--custom-roles` (or `rls.customRoles: true`) to `permdock rls generate`. Platform roles are rows with `scope = 'global'` and a null `tenant_id`, or the top-level `role_grants` claim in `jwt` mode. With levels, `custom_role_permissions` gains a `level` column and the claim writes `key@level`.
|
|
91
92
|
- To adopt custom roles the app already stores in its own tables, set `rls.customRoles.from` and `rls.customRoleWrites.roles`, then run `permdock rls generate --backfill-out <migrations dir>/`. The migration saves each role through the trusted replace function, drops entries outside the ceiling with a warning, and skips roles that already have rows; never write the copy by hand ([backfill](https://permdock.com/docs/cli/rls#backfill-from-existing-tables)).
|
package/dist/catalog-DjhMYYCq.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as catalogFile, n as runCatalog } from "./catalog-BECMPrwc.js";
|
package/dist/collect-FlXJlhus.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runCollect } from "./collect-CrZJJnEF.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runPowerSync } from "./powersync-bYUDLOAO.js";
|
package/dist/pull-ByOks_Tg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runCloudPull } from "./pull-BgIfno6w.js";
|
package/dist/run-CNsApDpd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as run } from "./run-DOfMtc9V.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i as runSupabase } from "./supabase-hook-DdDQhMlw.js";
|
package/dist/usage-CHOtwL19.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as runUsage } from "./usage-T5mXq98v.js";
|
package/dist/watch-Cb-NcaUw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i as watchCollect } from "./watch-CszoTJMq.js";
|