permdock 0.18.1 → 0.19.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 +6 -6
- package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-C_VQ-J2f.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 +4 -4
- package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
- package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CYqdqAob.d.ts} +1 -1
- package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-BxYbwOAU.d.ts} +1 -1
- package/dist/approvals/index.d.ts +4 -4
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
- package/dist/{arazzo--riLuGY0.js → arazzo-4vfaXj0U.js} +2 -2
- package/dist/{arazzo-CEDbb-uM.js → arazzo-Dc969CA2.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-B4YR9UpV.js → audience-GCXRRAeZ.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-Bfa_wD1h.d.ts → automation-BJiJT_Xr.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +20 -17
- package/dist/better-supabase/index.js +9 -9
- package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
- package/dist/{bind-B4pMH9bm.js → bind-BnKPWRrE.js} +4 -4
- package/dist/{bind-DR6ku3A9.d.ts → bind-SpRxR213.d.ts} +7 -7
- package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
- package/dist/{build-instance-BFMFQdE_.js → build-instance-DrIbZVnm.js} +1 -1
- package/dist/{capability-BZ_veK9o.d.ts → capability-Ci2S8Cdu.d.ts} +1 -1
- package/dist/{casbin-bKC1FpEx.js → casbin-C1TQqWkK.js} +1 -1
- package/dist/{casbin-DCQHkkyj.js → casbin-ChbpgfNR.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-BTPySmbp.js +1 -0
- package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
- package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
- package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
- package/dist/{challenge-B2O2OLEk.js → challenge-D57I5G1k.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 +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +5 -5
- package/dist/cli/index.js +3 -3
- package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-C0vXBmLG.js → cloud-Dgj4FiEG.js} +2 -2
- package/dist/{codemod-C-L0w-u7.js → codemod-DN_fBt43.js} +2 -2
- package/dist/{codemod-eYI1FbeJ.js → codemod-WWxwgM77.js} +1 -1
- package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
- package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
- package/dist/collect-eSTXOZDC.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DBm0ub4p.d.ts → compile-RaRUQhmD.d.ts} +2 -2
- package/dist/{completion-Dauc6pVT.js → completion-DnmUvCw0.js} +1 -1
- package/dist/{config-DWp2PucY.js → config-CmuEoob8.js} +1 -1
- package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
- package/dist/{config-report-DKpFm5ID.js → config-report-BVm8Dhbj.js} +2 -2
- package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
- package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
- package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +3 -3
- package/dist/{core-D87h2kpR.d.ts → core-DNRWXyj4.d.ts} +2 -2
- package/dist/{core-B8sLve3z.js → core-ZIWZBi6-.js} +5 -5
- package/dist/{create-BzwjZuRS.d.ts → create-0B_bjJc-.d.ts} +7 -7
- package/dist/{create-BrQXL-Wt.d.ts → create-BECB6fns.d.ts} +6 -6
- package/dist/{create-C-tm3KIF.js → create-CAZyXZFC.js} +4 -4
- package/dist/{create-3A7J9KRR.js → create-CegYmYHu.js} +69 -29
- package/dist/{create-CtoT1lIQ.d.ts → create-DJ_5REgN.d.ts} +4 -4
- package/dist/decide-set-DXEPepY1.js +100 -0
- package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-CF-2h8Vz.d.ts} +1 -1
- package/dist/{describe-BKtC_8PG.d.ts → describe-DyN-HX6o.d.ts} +1 -1
- package/dist/{diff-BnNHqtHj.js → diff-BOU7sSnv.js} +4 -4
- package/dist/{diff-CBCzOTWM.js → diff-BrmvcPXk.js} +1 -1
- package/dist/{doctor-CkYKCuX7.js → doctor-BhhNMkU8.js} +242 -65
- package/dist/{doctor-xUpR5rXg.js → doctor-CL1OigyD.js} +15 -5
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +4 -4
- package/dist/{errors-TpzkEKgJ.d.ts → errors-POWcCXy7.d.ts} +1 -1
- package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
- package/dist/{evaluate-Czbj7thS.js → evaluate-CrKkjgXS.js} +2 -2
- package/dist/{evaluations-CisTTURl.d.ts → evaluations--rkKhMqY.d.ts} +3 -3
- package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-Bm1iZolz.js} +3 -3
- package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-Bq4AB3W2.d.ts} +2 -2
- package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
- package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
- package/dist/{gen-mf-MRwVr.js → gen-D0NqzeOP.js} +2 -2
- package/dist/{gen-BEIN-DRM.js → gen-DonXr9Hg.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +5 -5
- package/dist/{hosted-BFNXwcjd.d.ts → hosted-H1xp5Dfw.d.ts} +1 -1
- package/dist/{hosted-waouw2V-.js → hosted-iOGBI_ER.js} +4 -3
- package/dist/{import-C1XXpG_m.js → import-C8ffNykt.js} +2 -2
- package/dist/{import-DObwEota.js → import-DNaFHm53.js} +1 -1
- package/dist/{index-CVGio3cH.d.ts → index-B9-ZXNa-.d.ts} +4 -4
- package/dist/{index-BhnOOnp9.d.ts → index-C2pmTzFx.d.ts} +2 -2
- package/dist/{index-Dfv9Toct.d.ts → index-C5Tfpjex.d.ts} +1 -1
- package/dist/{index-CdUTE6qd.d.ts → index-Cm6mHTZ-.d.ts} +16 -10
- package/dist/{index-rFp6X_QP.d.ts → index-DLlWORcK.d.ts} +5 -5
- package/dist/{index-CdMOd-GY.d.ts → index-DZnpRB0q.d.ts} +24 -6
- package/dist/index.d.ts +17 -17
- package/dist/index.js +15 -15
- package/dist/{init-DS3PEsCG.js → init-4aRjat-S.js} +3 -3
- package/dist/{init-CNJ8lLjo.js → init-QfBfkrGu.js} +1 -1
- package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-D6hyIKJF.d.ts} +1 -1
- package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-DXxcizAb.js} +3 -3
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-30Z2zM_d.js → kernel-B2UCK36Z.js} +7 -7
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DUVzBLh7.js → login-Cg1la2yJ.js} +3 -3
- package/dist/{login-BgK5Jloo.js → login-lPtJIjbO.js} +1 -1
- package/dist/{manifest-wclLWBVH.js → manifest-CDhdXgf6.js} +38 -37
- package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
- package/dist/mcp/index.d.ts +57 -17
- package/dist/mcp/index.js +199 -53
- package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +5 -5
- package/dist/next/index.d.ts +12 -12
- package/dist/next/index.js +8 -8
- 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 +2 -2
- 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-C4gFqeRz.js → openapi-C3BIVLTd.js} +2 -2
- package/dist/{openapi-zMEB9qxn.js → openapi-Cr0B3p2h.js} +2 -2
- package/dist/orpc/index.d.ts +21 -17
- package/dist/orpc/index.js +18 -11
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-BFWLER4r.js → output-DYq_o2dM.js} +1 -1
- package/dist/{ownership-D-mIt-w0.js → ownership-CrmMERZv.js} +1 -1
- package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
- package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CQjRmzrw.d.ts} +1 -1
- package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +2 -2
- package/dist/{permdock-ffY4CMd9.d.ts → permdock-B45vPQb4.d.ts} +4 -4
- package/dist/{permdock-D-_WrdKu.js → permdock-DeOfonuG.js} +6 -6
- package/dist/{permissions-B3ggI88M.js → permissions-Rk9_Gm04.js} +1 -1
- package/dist/{policy-cV_wwPb8.js → policy-DTmkP72P.js} +2 -2
- package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-Cljh_B5H.js} +6 -6
- package/dist/{policy-BtKSApSt.d.ts → policy-re2Oag8s.d.ts} +1 -1
- package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-Ky7P23CP.d.ts} +24 -2
- package/dist/{postgrest-D84p5dbA.d.ts → postgrest-pwxeaeOW.d.ts} +1 -1
- package/dist/powersync-B96MUB_Q.js +1 -0
- package/dist/{powersync-9PYOE1wt.js → powersync-BoqBik-G.js} +77 -38
- package/dist/{powersync-DStC_g0B.js → powersync-PKC4yT62.js} +2 -2
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
- package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
- package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-DHPqBLhz.d.ts} +5 -5
- package/dist/{provider-OtnIiFWm.d.ts → provider-C-CbGEii.d.ts} +1 -1
- package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
- package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
- package/dist/pull-BjdsS9x1.js +1 -0
- package/dist/{pull-DLP4I1Kl.js → pull-FG0Tf8aF.js} +3 -3
- package/dist/{push-BSb8j1EW.js → push-CI5G7lRS.js} +3 -3
- package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-B94r9DlN.d.ts} +1 -1
- package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-DftSiyD3.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +28 -14
- package/dist/react-native/index.js +57 -37
- package/dist/{replay-E5X9E1lC.d.ts → replay-BqmXcP7x.d.ts} +1 -1
- package/dist/{request-context-DM6_jY1n.js → request-context-uvaevbBu.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-CBl4r4_r.js → resolve-names-Dg8560iu.js} +2 -2
- package/dist/{rls-DGBL-jDY.js → rls-CJbWbxXv.js} +19 -13
- package/dist/{rls-pAHGYgTb.js → rls-DJSczevJ.js} +1 -1
- package/dist/{role-builder-CMW4wWzn.js → role-builder-C_2kWB_x.js} +1 -1
- package/dist/rpc-D7cDHIVE.d.ts +22 -0
- package/dist/{rpc-KwX_Jcxz.js → rpc-m5hPklf-.js} +16 -6
- package/dist/run-4m-TyVTD.js +1 -0
- package/dist/{run-B7lv3NuK.js → run-BigMDvGR.js} +3 -3
- package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-DRA3POCY.d.ts} +2 -2
- package/dist/{saas-B8H1MsQ3.js → saas-BHeoBqbW.js} +4 -4
- package/dist/{scan-0r3OZqqK.js → scan-BKLwCSVV.js} +1 -1
- package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
- package/dist/{schema-B_9tXrbG.js → schema-CLuBlCCr.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +5 -5
- package/dist/{server-types-3OnXjZ2D.d.ts → server-types-CwpJe664.d.ts} +31 -13
- package/dist/{sink-ogbVkyeo.d.ts → sink-7Lrch8dn.d.ts} +2 -2
- package/dist/{skills-B4MPRxQd.js → skills-CyD_3eoi.js} +1 -1
- package/dist/{skills-C9sTD70r.js → skills-D42EyC8G.js} +1 -1
- package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
- package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-B9weL8NE.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +3 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-xdQShLDU.d.ts → sources-4d3fl7cq.d.ts} +1 -1
- package/dist/{src-Brzq_0in.js → src-HDDf9Eum.js} +28 -13
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-BGi8pUwo.d.ts} +2 -2
- package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
- package/dist/{store-DYeB-_U3.d.ts → store-CjJaZI_g.d.ts} +31 -4
- package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
- package/dist/{stores-EPul_8MN.d.ts → stores-Cam6GGAV.d.ts} +5 -5
- package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
- package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
- package/dist/supabase/client.d.ts +1 -1
- package/dist/supabase/client.js +32 -4
- package/dist/supabase/index.d.ts +10 -5
- package/dist/supabase/index.js +1 -1
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
- package/dist/{supabase-CogTyJH2.js → supabase-DBuZK2pP.js} +2 -2
- package/dist/supabase-hook-2M-EpoRp.js +1 -0
- package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-Btk56XD6.js} +151 -55
- package/dist/{supautils-BGf6zRvM.js → supautils-lwXmXPP_.js} +7 -7
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -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 +2 -2
- package/dist/{tables-BfOk0ymL.js → tables-B72q9UFD.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +4 -4
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +22 -22
- 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 +15 -8
- package/dist/trpc/index.js +23 -19
- package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-CDxxNswo.d.ts} +1 -1
- package/dist/{types-CqcsNCaN.d.ts → types--HfnkawU.d.ts} +13 -1
- package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
- package/dist/{types-B8qUkGja.d.ts → types-BVn1w_0o.d.ts} +2 -2
- package/dist/{types-DmbfLu2p.d.ts → types-BlYPxJDR.d.ts} +9 -4
- package/dist/{types-D19MK4t-.d.ts → types-Bwdumeos.d.ts} +3 -3
- package/dist/{types-3Y8UpFkF.d.ts → types-BwuNGQRm.d.ts} +68 -4
- package/dist/{types-D-JO7lh8.d.ts → types-CChFKY10.d.ts} +5 -5
- package/dist/{types-CDVXR6YD.d.ts → types-Do4yihST.d.ts} +1 -1
- package/dist/{types-CCEeSCMB.d.ts → types-Do8qBcRO.d.ts} +3 -3
- package/dist/{types-o1vu6Ks3.d.ts → types-OLSfBLa5.d.ts} +4 -4
- package/dist/{types-DGf_cpKF.d.ts → types-g0Vk9k2c.d.ts} +2 -2
- package/dist/{types-Ck1KOfug.d.ts → types-oaqeYKQu.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DYtRVkcN.js → usage-BLhhEPcZ.js} +1 -1
- package/dist/{usage-DC0UKe6C.js → usage-C-wta3rx.js} +4 -4
- package/dist/usage-Csc_ZRd0.js +1 -0
- package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-AhCHeeff.d.ts} +1 -1
- package/dist/{verify-Bpj0hauG.js → verify-CaaZlnP5.js} +78 -57
- package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-Ddvrfn1R.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-NK_UuZbb.d.ts → waiter-CROiWRIP.d.ts} +2 -2
- package/dist/watch-CS69ftMP.js +1 -0
- package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
- package/dist/{who-can-KhVWMxtf.js → who-can-jPfTABf-.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-BHGA-SMM.d.ts → wrap-C-4o-Dpy.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/catalog-v1.json +8 -0
- package/skills/permdock-agents/references/runtimes.md +2 -2
- package/skills/permdock-wire/references/adapters.md +1 -1
- package/dist/catalog-Caqhbdix.js +0 -1
- package/dist/collect-KCtOigxx.js +0 -1
- package/dist/powersync-xNRlC4jN.js +0 -1
- package/dist/pull-UBjDnf4b.js +0 -1
- package/dist/run-UPbacxPg.js +0 -1
- package/dist/stream-W2RuUYly.d.ts +0 -13
- package/dist/supabase-hook-BN46IrVI.js +0 -1
- package/dist/usage-Cl5eb-e1.js +0 -1
- package/dist/watch-OYwAPCzx.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { a as getResource, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
3
|
-
import { r as definePolicy } from "./policy-
|
|
3
|
+
import { r as definePolicy } from "./policy-DTmkP72P.js";
|
|
4
4
|
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
5
5
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
|
|
6
6
|
import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-BaEamml-.js";
|
|
7
7
|
import { t as shortDiff } from "./text-diff-BtfSmdUo.js";
|
|
8
8
|
import { c as openapiVersion, o as createPermDock } from "./openapi-BOsx0xn9.js";
|
|
9
9
|
import { i as fileDrift } from "./output-files-CM0BnH05.js";
|
|
10
|
-
import { n as validateOverlay, t as validateOpenapi } from "./schema-
|
|
10
|
+
import { n as validateOverlay, t as validateOpenapi } from "./schema-CLuBlCCr.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
13
13
|
//#region src/cli/openapi/openapi.ts
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
+
import { a as PermDock } from "../permdock-B45vPQb4.js";
|
|
5
5
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
6
|
-
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-
|
|
7
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
8
|
-
import { t as
|
|
6
|
+
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CwpJe664.js";
|
|
7
|
+
import { t as ServerAdapterOptions } from "../bind-SpRxR213.js";
|
|
8
|
+
import { t as RpcProtectOptions } from "../rpc-D7cDHIVE.js";
|
|
9
9
|
import { AnySchema, MetaPlugin, Middleware, Procedure, Schema } from "@orpc/server";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
11
11
|
//#region src/orpc/operations.d.ts
|
|
@@ -61,17 +61,21 @@ type OrpcPermDockOptions<TCtx extends object = object, TUser = unknown> = Server
|
|
|
61
61
|
/** Ends or revalidates open event iterators. */
|
|
62
62
|
readonly revocations?: RevocationFeed;
|
|
63
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* `protect`'s options: `anyOf` for a permission list, `rows` for the rows the
|
|
66
|
+
* procedure acts on, read from its opts.
|
|
67
|
+
*/
|
|
68
|
+
type OrpcProtectOptions<TCtx extends object = object> = RpcProtectOptions<OrpcMiddlewareOpts<TCtx>>;
|
|
64
69
|
type OrpcOpenApiHooks<TCtx extends object = object, V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
65
|
-
readonly protect: (permission: Permission | null, data?: (opts: OrpcMiddlewareOpts<TCtx>) => unknown, protectOptions?:
|
|
66
|
-
readonly security:
|
|
67
|
-
readonly security: readonly Record<string, readonly string[]>[];
|
|
68
|
-
readonly "x-permdock-permissions": readonly string[];
|
|
69
|
-
};
|
|
70
|
+
readonly protect: (permission: Permission | readonly Permission[] | null, data?: (opts: OrpcMiddlewareOpts<TCtx>) => unknown, protectOptions?: OrpcProtectOptions<TCtx>) => OrpcMiddleware<TCtx, unknown, V>;
|
|
71
|
+
readonly security: OpenApiHooks["security"];
|
|
70
72
|
/**
|
|
71
73
|
* `security` as the merge function oRPC 2's `openapi({ spec })` takes, with
|
|
72
74
|
* mutable arrays so it type-checks against oRPC's `OperationObject`.
|
|
73
75
|
*/
|
|
74
|
-
readonly spec: (permission: Permission
|
|
76
|
+
readonly spec: (permission: Permission | readonly Permission[], options?: {
|
|
77
|
+
readonly anyOf?: boolean;
|
|
78
|
+
}) => <TSpec extends object>(current: TSpec) => TSpec & OrpcSecuritySpec;
|
|
75
79
|
readonly securitySchemes: OpenApiHooks["securitySchemes"];
|
|
76
80
|
};
|
|
77
81
|
type OrpcSecuritySpec = {
|
|
@@ -85,7 +89,7 @@ type OrpcPermDock<TCtx extends object = object, V extends PolicyVocabulary = Pol
|
|
|
85
89
|
*/
|
|
86
90
|
readonly getPermDock: (opts: OrpcMiddlewareOpts<TCtx>) => Promise<PermDock<V>>;
|
|
87
91
|
readonly middleware: () => OrpcMiddleware<TCtx, unknown, V>;
|
|
88
|
-
readonly protect: (permission: Permission | null, data?: (opts: OrpcMiddlewareOpts<TCtx>) => unknown, protectOptions?:
|
|
92
|
+
readonly protect: (permission: Permission | readonly Permission[] | null, data?: (opts: OrpcMiddlewareOpts<TCtx>) => unknown, protectOptions?: OrpcProtectOptions<TCtx>) => OrpcMiddleware<TCtx, unknown, V>;
|
|
89
93
|
/** A long-lived connection for the request behind `context`. */
|
|
90
94
|
readonly connection: (opts: OrpcMiddlewareOpts<TCtx>, connectionOptions?: ConnectionOptions) => Promise<Connection>;
|
|
91
95
|
readonly permdockHandler: () => (request: Request) => Promise<Response>;
|
|
@@ -98,11 +102,11 @@ type OrpcPermDock<TCtx extends object = object, V extends PolicyVocabulary = Pol
|
|
|
98
102
|
readonly operationsRouter: OperationsRouterOf<TCtx, V>;
|
|
99
103
|
};
|
|
100
104
|
/**
|
|
101
|
-
* The permission the procedure's first `protect` decides, or
|
|
102
|
-
* no `protect` is attached. Reads the procedure definition
|
|
103
|
-
* decides.
|
|
105
|
+
* The permission, or the list, the procedure's first `protect` decides, or
|
|
106
|
+
* `undefined` when no `protect` is attached. Reads the procedure definition
|
|
107
|
+
* only and never decides.
|
|
104
108
|
*/
|
|
105
|
-
export declare function permissionOf(procedure: unknown): Permission | undefined;
|
|
109
|
+
export declare function permissionOf(procedure: unknown): Permission | readonly Permission[] | undefined;
|
|
106
110
|
export declare function createPermDock<TCtx extends object = object, TUser = unknown, TPrincipal extends Principal = Principal, V extends PolicyVocabulary = PolicyVocabulary>(policy: Policy<TUser, TPrincipal, V>, options: OrpcPermDockOptions<TCtx, TUser>): OrpcPermDock<TCtx, V>;
|
|
107
111
|
//#endregion
|
|
108
|
-
export type { OperationProcedureContext, OperationRoute, OperationRoutes, OperationsRouter, OperationsRouterOf, OperationsRouterOptions, OrpcMiddleware, OrpcMiddlewareOpts, OrpcOpenApiHooks, OrpcPermDock, OrpcPermDockOptions, OrpcSecuritySpec };
|
|
112
|
+
export type { OperationProcedureContext, OperationRoute, OperationRoutes, OperationsRouter, OperationsRouterOf, OperationsRouterOptions, OrpcMiddleware, OrpcMiddlewareOpts, OrpcOpenApiHooks, OrpcPermDock, OrpcPermDockOptions, OrpcProtectOptions, OrpcSecuritySpec };
|
package/dist/orpc/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { o as isPermission } from "../permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { o as problemMessage } from "../http-DKLXrFGk.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { i as
|
|
4
|
+
import { r as permissionList } from "../decide-set-DXEPepY1.js";
|
|
5
|
+
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
6
|
+
import { n as attached } from "../bind-BnKPWRrE.js";
|
|
7
|
+
import { i as isAsyncIterable, o as reloadAfter } from "../stream-DQ3rbO3J.js";
|
|
8
|
+
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-m5hPklf-.js";
|
|
8
9
|
import { ORPCError, os } from "@orpc/server";
|
|
9
10
|
//#region src/orpc/operations.ts
|
|
10
11
|
const root = os;
|
|
@@ -88,23 +89,29 @@ function mapDownstream(run, errors) {
|
|
|
88
89
|
/** Registered, so a second copy of `permdock` in the bundle reads the same tag. */
|
|
89
90
|
const PERMISSION = Symbol.for("permdock.orpc.permission");
|
|
90
91
|
function tagged(permission, middleware) {
|
|
91
|
-
if (permission !== null)
|
|
92
|
+
if (permission !== null) {
|
|
93
|
+
permissionList(permission);
|
|
94
|
+
Object.defineProperty(middleware, PERMISSION, { value: permission });
|
|
95
|
+
}
|
|
92
96
|
return middleware;
|
|
93
97
|
}
|
|
94
98
|
function readOwn(value, key) {
|
|
95
99
|
return (typeof value === "object" || typeof value === "function") && value !== null && Object.hasOwn(value, key) ? Reflect.get(value, key) : void 0;
|
|
96
100
|
}
|
|
101
|
+
function isPermissionList(value) {
|
|
102
|
+
return Array.isArray(value) && value.length > 0 && value.every(isPermission);
|
|
103
|
+
}
|
|
97
104
|
/**
|
|
98
|
-
* The permission the procedure's first `protect` decides, or
|
|
99
|
-
* no `protect` is attached. Reads the procedure definition
|
|
100
|
-
* decides.
|
|
105
|
+
* The permission, or the list, the procedure's first `protect` decides, or
|
|
106
|
+
* `undefined` when no `protect` is attached. Reads the procedure definition
|
|
107
|
+
* only and never decides.
|
|
101
108
|
*/
|
|
102
109
|
function permissionOf(procedure) {
|
|
103
110
|
const ordered = readOwn(readOwn(procedure, "~orpc"), "orderedMiddlewares");
|
|
104
111
|
if (!Array.isArray(ordered)) return;
|
|
105
112
|
for (const entry of ordered) {
|
|
106
113
|
const permission = readOwn(readOwn(entry, "middleware"), PERMISSION);
|
|
107
|
-
if (isPermission(permission)) return permission;
|
|
114
|
+
if (isPermission(permission) || isPermissionList(permission)) return permission;
|
|
108
115
|
}
|
|
109
116
|
}
|
|
110
117
|
function createPermDock(policy, options) {
|
|
@@ -177,8 +184,8 @@ function createPermDock(policy, options) {
|
|
|
177
184
|
openapi: {
|
|
178
185
|
protect,
|
|
179
186
|
security: kernelOpenApi.security,
|
|
180
|
-
spec: (permission) => {
|
|
181
|
-
const fragment = kernelOpenApi.security(permission);
|
|
187
|
+
spec: (permission, specOptions) => {
|
|
188
|
+
const fragment = kernelOpenApi.security(permission, specOptions);
|
|
182
189
|
return (current) => ({
|
|
183
190
|
...current,
|
|
184
191
|
security: fragment.security.map((requirement) => Object.fromEntries(Object.entries(requirement).map(([scheme, scopes]) => [scheme, [...scopes]]))),
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { a as OtelOptions, i as OtelApi, n as GEN_AI_TOOL_CALL_ID, o as OtelWrap, r as GEN_AI_TOOL_NAME, s as StructuralLogger, t as GENAI_SEMCONV_PIN } from "../types-
|
|
1
|
+
import { N as PolicyVocabulary } from "../policy-types-Ky7P23CP.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-B45vPQb4.js";
|
|
3
|
+
import { a as OtelOptions, i as OtelApi, n as GEN_AI_TOOL_CALL_ID, o as OtelWrap, r as GEN_AI_TOOL_NAME, s as StructuralLogger, t as GENAI_SEMCONV_PIN } from "../types-g0Vk9k2c.js";
|
|
4
4
|
//#region src/otel/instrument.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Listens on one instance. Spans carry no duration and no histogram is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
|
|
3
3
|
//#region src/cli/core/output.ts
|
|
4
4
|
const CLI_RESULT_SCHEMA = "https://permdock.com/schemas/cli-result-v1.json";
|
|
5
5
|
function envelope(input) {
|
|
@@ -11,7 +11,7 @@ import { i as qualifySqlTable } from "./sql-0WjxIp9g.js";
|
|
|
11
11
|
import { a as scopeMembershipTable, i as scopeColumn, s as relatedSql } from "./compile-B_oJqmIg.js";
|
|
12
12
|
import { l as roleColumn } from "./sources-C4vkzZJV.js";
|
|
13
13
|
import { A as quoteQualified, D as qualified, E as helperSchema, L as sqlType, M as textArrayLiteral, O as quoteIdent, R as tenantTypeOf, S as CLAIM, T as declaredArray, _ as subjectClaimJsonSql, b as tenantClaimSql, d as keyTenantSql, f as kindFilterSql, h as roleKindSql, j as quoteTable, k as quoteLiteral, m as memberVia, p as liveSessionSql, s as signedIn, t as CUSTOM_ROLES, u as globalKindFilterSql, v as subjectClaimSql, y as subjectIdSql } from "./shared-DyYVEjKC.js";
|
|
14
|
-
import { $ as graphSqlText, A as claimKeptLines, B as hasCustomRoleChecksFor, F as globalRoleRows, I as membershipRows, L as roleRows, M as memberColumn, N as sourceFilters, P as sourcesKeep, U as storedTenant, X as CLOSURE, Z as graphHelper, _t as activeMembershipSql, c as holderSources, ct as memberIdsHelper, d as sourceRowsSql, f as sourceTransferTriggerSql, g as OWNERSHIP, gt as activeInstancesSql, h as ASSIGNMENTS, ht as scopeTable, it as linkHelper, j as disabledColumn, l as pairsSql, m as transferTriggerSql, mt as scopeSources, nt as inheritedRowsHelper, p as holdersTriggerSql, pt as restrictedHelper, st as memberForTable, u as sourceHoldersTriggerSql, ut as memberRoleOf, yt as activeUserSql } from "./tables-
|
|
14
|
+
import { $ as graphSqlText, A as claimKeptLines, B as hasCustomRoleChecksFor, F as globalRoleRows, I as membershipRows, L as roleRows, M as memberColumn, N as sourceFilters, P as sourcesKeep, U as storedTenant, X as CLOSURE, Z as graphHelper, _t as activeMembershipSql, c as holderSources, ct as memberIdsHelper, d as sourceRowsSql, f as sourceTransferTriggerSql, g as OWNERSHIP, gt as activeInstancesSql, h as ASSIGNMENTS, ht as scopeTable, it as linkHelper, j as disabledColumn, l as pairsSql, m as transferTriggerSql, mt as scopeSources, nt as inheritedRowsHelper, p as holdersTriggerSql, pt as restrictedHelper, st as memberForTable, u as sourceHoldersTriggerSql, ut as memberRoleOf, yt as activeUserSql } from "./tables-B72q9UFD.js";
|
|
15
15
|
//#region src/cli/sql/conditions.ts
|
|
16
16
|
const MAX_CLAIM_DEPTH = 8;
|
|
17
17
|
/**
|
|
@@ -3,7 +3,7 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
4
4
|
import { d as scopeList, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
5
5
|
import { n as copyJson, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
6
|
-
import { t as catalogSchema } from "./schema-
|
|
6
|
+
import { t as catalogSchema } from "./schema-BlnU_TzE.js";
|
|
7
7
|
//#region src/catalog/references.ts
|
|
8
8
|
function duplicates(issues, list, name, field) {
|
|
9
9
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Qt as LocalSnapshotManifest } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
//#region src/core/parse-local-manifest.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Whether `value` has the shape `localSnapshotManifest(policy)` writes, with no
|
|
@@ -45,7 +45,7 @@ function isColumn(value) {
|
|
|
45
45
|
const through = value["through"];
|
|
46
46
|
const map = value["map"];
|
|
47
47
|
if (through !== void 0 && map !== void 0) return false;
|
|
48
|
-
return (through === void 0 || isRecord(through) && isText(through["table"]) && isText(through["id"]) && isText(through["column"])) && (map === void 0 || isRecord(map) && Object.values(map).every((key) => key === null || isText(key)));
|
|
48
|
+
return (through === void 0 || isRecord(through) && isText(through["table"]) && isText(through["id"]) && isText(through["column"]) && (through["on"] === void 0 || isRecord(through["on"]) && Object.keys(through["on"]).length > 0 && Object.entries(through["on"]).every(([key, id]) => isText(key) && isText(id)))) && (map === void 0 || isRecord(map) && Object.values(map).every((key) => key === null || isText(key)));
|
|
49
49
|
}
|
|
50
50
|
function isMembershipRows(value) {
|
|
51
51
|
if (!isRecord(value)) return false;
|
package/dist/pdp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as PermDockOptions } from "../permdock-
|
|
3
|
-
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Y as DecisionProvider, yr as Principal } from "../policy-types-Ky7P23CP.js";
|
|
2
|
+
import { o as PermDockOptions } from "../permdock-B45vPQb4.js";
|
|
3
|
+
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-BVn1w_0o.js";
|
|
4
4
|
//#region src/pdp/create.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* The PDP-aware instance, built synchronously like core `getPermDockSync`; use
|
package/dist/pdp/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
4
|
-
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-
|
|
4
|
+
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
5
5
|
import { n as internalsOf, t as attachInternals } from "../internals-B3IgHrvo.js";
|
|
6
6
|
import { a as getResource, c as listPermissions } from "../permission-registry-B8tYxPIt.js";
|
|
7
7
|
import { n as toWireDelegation } from "../wire-delegation-Cv3W2eaM.js";
|
|
8
8
|
import { r as decideAllAsync, t as canAllAsync } from "../checks-fyDOhcz0.js";
|
|
9
|
-
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-
|
|
9
|
+
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-DeOfonuG.js";
|
|
10
10
|
import { a as postJson, c as ttlMs, i as joinUrl, n as denied, o as resourceIdOf, r as granted, s as ttlCache, t as cacheKey } from "../shared-BRmCJxDK.js";
|
|
11
11
|
//#region src/pdp/create.ts
|
|
12
12
|
function withoutProviders(policy) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, Er as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Q as Intent, Sn as Scope, X as DecisionSink, Yn as Decision, Z as EntitlementSource, _t as TokenSigner, an as SnapshotTenants, ar as Quota, ct as RelationSource, en as Snapshot, er as ExplainedDecision, hr as Delegation, ir as Obligation, it as MembershipSource, lr as Actor, lt as SettingsSource, nr as LimitDetail, nt as LimitStore, q as CustomRoleSource, qt as Instant, un as DecisionEvent, vr as Membership, wr as AdapterId, xr as Subject, y as GrantLimit, yr as Principal } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
import { D as RowOf, M as AppData, b as ResourceNode, u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as RoleTree, n as PlanTree, r as Role } from "./vocabulary-DEJ5j4mR.js";
|
|
4
4
|
import { t as Operation } from "./operations-Ci_rT6Uo.js";
|
|
5
|
-
import { t as ApprovalPolicies } from "./approval-policies-
|
|
6
|
-
import { a as HostedPolicies } from "./hosted-
|
|
5
|
+
import { t as ApprovalPolicies } from "./approval-policies-CYqdqAob.js";
|
|
6
|
+
import { a as HostedPolicies } from "./hosted-H1xp5Dfw.js";
|
|
7
7
|
//#region src/core/checks.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* One check of `canAll` or `decideAll`: a permission alone, or with the row it
|
|
@@ -331,7 +331,7 @@ type SnapshotOptions = {
|
|
|
331
331
|
readonly include?: readonly (Permission | {
|
|
332
332
|
readonly [key: string]: unknown;
|
|
333
333
|
})[];
|
|
334
|
-
readonly tenants?:
|
|
334
|
+
readonly tenants?: SnapshotTenants;
|
|
335
335
|
readonly signer?: TokenSigner;
|
|
336
336
|
readonly audience?: string | readonly string[];
|
|
337
337
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep, t as freezeCopy } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
4
|
-
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "./errors-
|
|
4
|
+
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "./errors-ynga1EQy.js";
|
|
5
5
|
import { t as attachInternals } from "./internals-B3IgHrvo.js";
|
|
6
6
|
import { _ as keyToScope, a as getResource, c as listPermissions, g as formerScopes } from "./permission-registry-B8tYxPIt.js";
|
|
7
7
|
import { n as isThenable } from "./thenable-BNSM1U2R.js";
|
|
@@ -10,13 +10,13 @@ import { d as scopeList, o as normalizeMemberships, p as tenantOf } from "./scop
|
|
|
10
10
|
import { o as pickVisible, s as sanitizeContext } from "./validity-Buc7w8E9.js";
|
|
11
11
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
12
12
|
import { c as nowSeconds, d as resolveActiveTenant, m as tenantsOf, p as scopeField, t as heldRoleNamesIn, u as relatesTo } from "./tenancy-DvOHHk3-.js";
|
|
13
|
-
import { d as policyX } from "./policy-
|
|
13
|
+
import { d as policyX } from "./policy-DTmkP72P.js";
|
|
14
14
|
import { r as isSubject, t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
15
|
-
import { D as emptyListeners, E as emitSafe, N as contactMemberships, O as finish, P as isContact, i as customRolesFor, o as roleSourceFor, r as assignableNamesFor, s as sourceName, t as evaluate, u as customGrantsFor, w as unknownLevelsFor } from "./evaluate-
|
|
16
|
-
import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-
|
|
15
|
+
import { D as emptyListeners, E as emitSafe, N as contactMemberships, O as finish, P as isContact, i as customRolesFor, o as roleSourceFor, r as assignableNamesFor, s as sourceName, t as evaluate, u as customGrantsFor, w as unknownLevelsFor } from "./evaluate-CrKkjgXS.js";
|
|
16
|
+
import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-DXxcizAb.js";
|
|
17
17
|
import { r as relationReader, t as pendingRelations } from "./relations-BxvRvDHK.js";
|
|
18
|
-
import { i as snapshotGrant } from "./snapshot-
|
|
19
|
-
import { a as decideForTarget, i as permittedIds, o as deniedFor, r as mayUse, s as signSnapshot, t as whereFromGrants } from "./where-scope-
|
|
18
|
+
import { i as snapshotGrant } from "./snapshot-DHPih65J.js";
|
|
19
|
+
import { a as decideForTarget, i as permittedIds, o as deniedFor, r as mayUse, s as signSnapshot, t as whereFromGrants } from "./where-scope-BAyOsPQW.js";
|
|
20
20
|
import { i as decideAllWith, n as canAllWith } from "./checks-fyDOhcz0.js";
|
|
21
21
|
//#region src/core/app.ts
|
|
22
22
|
const APP = Symbol.for("permdock.app");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as crud } from "./src-
|
|
1
|
+
import { c as crud } from "./src-HDDf9Eum.js";
|
|
2
2
|
import { v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { f as definePlans, p as defineRoles } from "./grantee-Dke-9rd1.js";
|
|
4
4
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import { c as withGrantSchema, i as completeGrant, l as normalizeWhere, o as flattenGrants, s as flattenPermissions } from "./role-builder-
|
|
3
|
+
import { c as withGrantSchema, i as completeGrant, l as normalizeWhere, o as flattenGrants, s as flattenPermissions } from "./role-builder-C_2kWB_x.js";
|
|
4
4
|
import { c as listPermissions, i as getRegistry, m as annotationsFor, n as findPermission, s as isRegistryTree } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { d as isSelfParented, l as isFieldRelation } from "./resource-relations-8-pCScBO.js";
|
|
6
6
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
7
7
|
import { r as sha256Digest } from "./sha256-C-4WXKIu.js";
|
|
8
8
|
import { n as defineScopes, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
9
9
|
import { o as flattenGrantee, r as asGrantee, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
10
|
-
import { i as assertApprovalVersions, r as assertApprovalRelations } from "./approval-normalize-
|
|
10
|
+
import { i as assertApprovalVersions, r as assertApprovalRelations } from "./approval-normalize-hlfO9BJv.js";
|
|
11
11
|
import { n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
12
12
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
13
13
|
import { a as relationStart, i as relationHops, n as isGraphRelation, t as inheritCondition } from "./grantee-conditions-DX4K_gGI.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
|
-
import { l as normalizeWhere } from "./role-builder-
|
|
3
|
+
import { l as normalizeWhere } from "./role-builder-C_2kWB_x.js";
|
|
4
4
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
5
5
|
import { i as getRegistry, n as findPermission, v as resource } from "./permission-registry-B8tYxPIt.js";
|
|
6
6
|
import { n as defineScopes } from "./scopes-BSdYaGHs.js";
|
|
7
7
|
import { f as definePlans, p as defineRoles } from "./grantee-Dke-9rd1.js";
|
|
8
|
-
import { o as readWireApproval } from "./approval-normalize-
|
|
8
|
+
import { o as readWireApproval } from "./approval-normalize-hlfO9BJv.js";
|
|
9
9
|
import { r as readWireValidity } from "./validity-Buc7w8E9.js";
|
|
10
|
-
import { a as indexPolicy, f as normalizeDelegation } from "./policy-
|
|
11
|
-
import { o as isPortableCondition } from "./hosted-
|
|
10
|
+
import { a as indexPolicy, f as normalizeDelegation } from "./policy-DTmkP72P.js";
|
|
11
|
+
import { o as isPortableCondition } from "./hosted-iOGBI_ER.js";
|
|
12
12
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
13
13
|
import { n as copyJson, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
|
|
14
|
-
import { t as parseCatalog } from "./parse-
|
|
15
|
-
import { n as parsePushedPolicy } from "./pushed-policy-
|
|
14
|
+
import { t as parseCatalog } from "./parse-CXTT7hBq.js";
|
|
15
|
+
import { n as parsePushedPolicy } from "./pushed-policy-DftSiyD3.js";
|
|
16
16
|
//#region src/catalog/json-schema-validator.ts
|
|
17
17
|
const ANNOTATIONS = /* @__PURE__ */ new Set([
|
|
18
18
|
"$schema",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-Bx6UI8n1.js";
|
|
3
3
|
//#region src/testing/saas/policy.d.ts
|
|
4
4
|
/** Daily API-key quota per subject; the bucket should be per tenant too. */
|
|
@@ -1135,6 +1135,11 @@ type AuthEvent = {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
//#endregion
|
|
1137
1137
|
//#region src/core/snapshot-types.d.ts
|
|
1138
|
+
/**
|
|
1139
|
+
* The tenants a snapshot lists: `'all'` for every tenant the subject belongs
|
|
1140
|
+
* to, or the named tenants among them. A name with no membership is dropped.
|
|
1141
|
+
*/
|
|
1142
|
+
type SnapshotTenants = "all" | readonly string[];
|
|
1138
1143
|
type Snapshot = {
|
|
1139
1144
|
readonly v: 1;
|
|
1140
1145
|
/**
|
|
@@ -1346,7 +1351,9 @@ type LocalRowValue = {
|
|
|
1346
1351
|
/**
|
|
1347
1352
|
* A column that holds a role key or user id: the value itself, the `column` of
|
|
1348
1353
|
* the synced `through` table whose `id` it references, or a value each maps to
|
|
1349
|
-
* a role key (`null` for no role).
|
|
1354
|
+
* a role key (`null` for no role). A composite reference lists every pair in
|
|
1355
|
+
* `on` (row column to `through` column); a `through` row matches only when all
|
|
1356
|
+
* of them do, and the row holds the value of every match.
|
|
1350
1357
|
*/
|
|
1351
1358
|
type LocalRowColumn = {
|
|
1352
1359
|
readonly column: string;
|
|
@@ -1356,6 +1363,7 @@ type LocalRowColumn = {
|
|
|
1356
1363
|
readonly table: string;
|
|
1357
1364
|
readonly id: string;
|
|
1358
1365
|
readonly column: string;
|
|
1366
|
+
readonly on?: Readonly<Record<string, string>>;
|
|
1359
1367
|
};
|
|
1360
1368
|
} | {
|
|
1361
1369
|
readonly column: string;
|
|
@@ -2140,6 +2148,13 @@ type ApprovalCombine = "any" | "all" | "sequential";
|
|
|
2140
2148
|
* is met by an approver acting through an agent or a delegated token.
|
|
2141
2149
|
*/
|
|
2142
2150
|
type ApprovalMode = "confirm" | "authorize";
|
|
2151
|
+
/**
|
|
2152
|
+
* What an `'authorize'` approval does when nobody else can approve: `'confirm'`
|
|
2153
|
+
* lets the request's principal approve it, but only while the handler's
|
|
2154
|
+
* `approverDirectory` lists no other eligible approver. Without a directory, or
|
|
2155
|
+
* when it answers `null`, the principal stays refused.
|
|
2156
|
+
*/
|
|
2157
|
+
type ApprovalFallback = "confirm";
|
|
2143
2158
|
type ApprovalRequirement = {
|
|
2144
2159
|
/** Set when `combine` is `'any'` (the default); absent under `stages`. */
|
|
2145
2160
|
readonly by?: Approver | readonly Approver[];
|
|
@@ -2149,6 +2164,8 @@ type ApprovalRequirement = {
|
|
|
2149
2164
|
readonly stages?: readonly ApprovalStage[];
|
|
2150
2165
|
/** Absent means `'authorize'`. */
|
|
2151
2166
|
readonly mode?: ApprovalMode;
|
|
2167
|
+
/** Absent means no fallback; see `ApprovalFallback`. */
|
|
2168
|
+
readonly fallback?: ApprovalFallback;
|
|
2152
2169
|
/** `'resource-change'` binds the approval to the row's `version` field. */
|
|
2153
2170
|
readonly staleOn?: "resource-change";
|
|
2154
2171
|
/**
|
|
@@ -2184,6 +2201,11 @@ type ApprovalOption = "human" | {
|
|
|
2184
2201
|
* `'authorize'`.
|
|
2185
2202
|
*/
|
|
2186
2203
|
readonly mode?: ApprovalMode;
|
|
2204
|
+
/**
|
|
2205
|
+
* `'confirm'` lets the request's principal approve it when no other
|
|
2206
|
+
* eligible approver exists; see `ApprovalFallback`.
|
|
2207
|
+
*/
|
|
2208
|
+
readonly fallback?: ApprovalFallback;
|
|
2187
2209
|
/**
|
|
2188
2210
|
* `'resource-change'`: the approval covers the row as it was when it was
|
|
2189
2211
|
* requested. The resource must declare `version`; once that field
|
|
@@ -2729,4 +2751,4 @@ type SubjectOf<P> = {
|
|
|
2729
2751
|
readonly expiresAt?: number;
|
|
2730
2752
|
};
|
|
2731
2753
|
//#endregion
|
|
2732
|
-
export {
|
|
2754
|
+
export { JwtClaims as $, DeniedDecision as $n, LocalSnapshotRows as $t, PolicyOAuthScope as A, UserApprover as An, MemberOfParent as Ar, parseSupportSession as At, SupportAccessOptions as B, actor as Bn, isConditionRef as Br, DecideCredentialOptions as Bt, GrantValidity as C, ScopeDeclaration as Cn, ActorKind as Cr, WhereCompiler as Ct, Policy as D, ApproverInput as Dn, ConditionRef as Dr, SupportSessionPolicy as Dt, ObligationInput as E, Approver as En, Condition as Er, SupportSessionDecision as Et, RoleBinding as F, user as Fn, SqlFunctionArg as Fr, CredentialPermission as Ft, CredentialVerifier as G, plan as Gn, parseCredential as Gt, ValidateMode as H, assurance as Hn, credentialPolicyViolation as Ht, RoleOptions as I, Grantee as In, SqlFunctionCondition as Ir, CredentialPermissionInput as It, CustomRoleSourceFactory as J, ApprovalRequiredDecision as Jn, LocalCustomRoleTable as Jt, CustomRoleContext as K, relation as Kn, InstanceHandle as Kt, RoleScope as L, GranteeInput as Ln, hasConditionOp as Lr, CredentialPolicy as Lt, PolicyScopes as M, anyOf as Mn, RelatedCondition as Mr, Credential as Mt, PolicyVocabulary as N, holder as Nn, RelatedHop as Nr, CredentialDecision as Nt, PolicyAppDataSchemas as O, ManagerApprover as On, ConditionValue as Or, SupportSessionRequest as Ot, PrincipalOf as P, manager as Pn, RestrictedAncestors as Pr, CredentialKind as Pt, Intent as Q, DenialReason as Qn, LocalSnapshotManifest as Qt, SeparationConflict as R, InheritGrantee as Rn, isCondition as Rr, CredentialPolicyViolation as Rt, GrantScope as S, Scope as Sn, VerifiedClaims as Sr, VersionQuery as St, MembershipFixture as T, AnyOfApprover as Tn, MembershipVia as Tr, SupportSession as Tt, VocabularyFromInput as U, authenticated as Un, decideCredential as Ut, SupportConsent as V, anyone as Vn, isSqlFunctionField as Vr, credentialDelegation as Vt, WireValidity as W, inherit as Wn, isFeedId as Wt, DecisionSink as X, Denial as Xn, LocalRowColumn as Xt, DecisionProvider as Y, Decision as Yn, LocalMembershipRows as Yt, EntitlementSource as Z, DenialDetails as Zn, LocalRowValue as Zt, Grant as _, SinkEvent as _n, JsonWebKeyLike as _r, TokenSigner as _t, ApprovalMode as a, SnapshotTenants as an, Quota as ar, RelationChain as at, GrantMeta as b, WireDelegation as bn, SharedCustomRole as br, VerifiedToken as bt, ApprovalStage as c, AutomationEvent as cn, TraceSkipReason as cr, RelationSource as ct, BreakGlassRequirements as d, DeliveryChannel as dn, AuthorizationDetail as dr, SourceCall as dt, Snapshot as en, ExplainedDecision as er, LimitConsumeInput as et, BreakGlassSpec as f, DeliveryEvent as fn, Binding as fr, SourceContext as ft, DelegationTarget as g, MembershipEvent as gn, GnapAccess as gr, TokenFailureCause as gt, DelegationInput as h, EmailCategory as hn, Delegation as hr, TenantSettings as ht, ApprovalFallback as i, SnapshotScope as in, Obligation as ir, MembershipSource as it, PolicyOptions as j, allOf as jn, OpaqueCondition as jr, ApiKeyPrincipal as jt, PolicyDelegation as k, PermissionApprover as kn, MemberOfCondition as kr, decideSupportSession as kt, AssuranceRequirement as l, CredentialEvent as ln, Actor as lr, SettingsSource as lt, ClosureGrantFn as m, DirectoryEvent as mn, CustomRoleGrant as mr, SubjectResolver as mt, ApprovalCombine as n, SnapshotGrant as nn, LimitDetail as nr, LimitStore as nt, ApprovalOption as o, AccessEvent as on, Trace as or, RelationGroup as ot, ClosureContext as p, DeliveryFailureCause as pn, CustomRole as pr, SourceMemo as pt, CustomRoleSource as q, AppObligation as qn, Instant as qt, ApprovalEscalation as r, SnapshotNotEntitled as rn, MatchedGrant as rr, MemberEntry as rt, ApprovalRequirement as s, AuthEvent as sn, TraceSkip as sr, RelationHolder as st, ActivationOption as t, SnapshotAssignable as tn, GrantedDecision as tr, LimitRemaining as tt, BreakGlassOptions as u, DecisionEvent as un, Assurance as ur, SnapshotSource as ut, GrantCondition as v, WireDecision as vn, Membership as vr, TokenVerifier as vt, HostedGrantRef as w, ScopeNames as wn, AdapterId as wr, DecideSupportSessionOptions as wt, GrantOptions as x, PolicyScopesInput as xn, Subject as xr, VersionContext as xt, GrantLimit as y, WireDenial as yn, Principal as yr, VerificationFailure as yt, SubjectOf as z, RelationGrantee as zn, isConditionDate as zr, CredentialRequest as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, dt as SourceCall, it as MembershipSource, pr as CustomRole, q as CustomRoleSource, rt as MemberEntry, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
|
|
2
2
|
//#region src/supabase/postgrest.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* What a supabase-js `rpc` call resolves to: `data` or an `error` with a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runPowerSync } from "./powersync-BoqBik-G.js";
|