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
|
@@ -9,13 +9,13 @@ import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolv
|
|
|
9
9
|
import { o as flattenGrantee } from "../grantee-Dke-9rd1.js";
|
|
10
10
|
import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
11
11
|
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-DvOHHk3-.js";
|
|
12
|
-
import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-
|
|
13
|
-
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-
|
|
14
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
12
|
+
import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-DHPih65J.js";
|
|
13
|
+
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-DHnb8Fh4.js";
|
|
14
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
|
|
15
15
|
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
16
|
-
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options
|
|
16
|
+
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-CDvoX52-.js";
|
|
17
17
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
|
|
18
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
18
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-CD1HXwQK.js";
|
|
19
19
|
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
20
20
|
import { useEffect, useMemo, useRef } from "react";
|
|
21
21
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -380,31 +380,40 @@ function rowsOf(tables, table) {
|
|
|
380
380
|
return (tables[table] ?? []).filter(isRecord);
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
|
-
* The
|
|
384
|
-
* `
|
|
383
|
+
* The values a column holds, read through its referenced table or map: one per
|
|
384
|
+
* `through` row that matches every pair of the reference.
|
|
385
385
|
*/
|
|
386
|
-
function
|
|
386
|
+
function columnValues(row, column, tables) {
|
|
387
387
|
const raw = text(row[column.column]);
|
|
388
|
-
if (raw === void 0) return;
|
|
388
|
+
if (raw === void 0) return [];
|
|
389
389
|
if ("through" in column) {
|
|
390
390
|
const { through } = column;
|
|
391
|
-
const
|
|
392
|
-
|
|
391
|
+
const wanted = Object.entries(through.on ?? { [column.column]: through.id }).map(([ref, id]) => [id, text(row[ref])]);
|
|
392
|
+
if (wanted.some(([, value]) => value === void 0)) return [];
|
|
393
|
+
return rowsOf(tables, through.table).flatMap((item) => {
|
|
394
|
+
const value = wanted.every(([id, key]) => text(item[id]) === key) ? text(item[through.column]) : void 0;
|
|
395
|
+
return value === void 0 ? [] : [value];
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
if ("map" in column) {
|
|
399
|
+
const key = Object.hasOwn(column.map, raw) ? column.map[raw] : void 0;
|
|
400
|
+
return key === void 0 || key === null ? [] : [key];
|
|
393
401
|
}
|
|
394
|
-
|
|
395
|
-
|
|
402
|
+
return [raw];
|
|
403
|
+
}
|
|
404
|
+
/** The one user a user column holds; matches naming two users are none. */
|
|
405
|
+
function userOf(row, column, tables) {
|
|
406
|
+
const [user, ...others] = new Set(columnValues(row, column, tables));
|
|
407
|
+
return others.length === 0 ? user : void 0;
|
|
396
408
|
}
|
|
397
409
|
function membershipsOf(source, tables, user) {
|
|
398
410
|
const byInstance = /* @__PURE__ */ new Map();
|
|
399
411
|
for (const row of rowsOf(tables, source.table)) {
|
|
400
|
-
if (
|
|
412
|
+
if (userOf(row, source.user, tables) !== user || isSet(row, source.expiresAt) || isSet(row, source.disabledAt)) continue;
|
|
401
413
|
const scope = "value" in source.scope ? source.scope.value : text(row[source.scope.column]);
|
|
402
414
|
const id = text(row[source.id]);
|
|
403
415
|
const via = source.via === void 0 ? void 0 : "value" in source.via ? source.via.value : text(row[source.via.column]);
|
|
404
|
-
const roles = isColumns(source.roles) ? source.roles.flatMap((column) =>
|
|
405
|
-
const key = columnValue(row, column, tables);
|
|
406
|
-
return key === void 0 ? [] : [key];
|
|
407
|
-
}) : source.roles.value;
|
|
416
|
+
const roles = isColumns(source.roles) ? source.roles.flatMap((column) => columnValues(row, column, tables)) : source.roles.value;
|
|
408
417
|
if (scope === void 0 || id === void 0 || roles.length === 0) continue;
|
|
409
418
|
const key = JSON.stringify([
|
|
410
419
|
scope,
|
|
@@ -519,10 +528,7 @@ function readRows(rows, tables, principal) {
|
|
|
519
528
|
const { id: user, tenant, attributes } = principal;
|
|
520
529
|
const memberships = rows.memberships.flatMap((source) => membershipsOf(source, tables, user));
|
|
521
530
|
const global = rows.roles;
|
|
522
|
-
const roles = global === void 0 ? [] : rowsOf(tables, global.table).flatMap((row) => text(row[global.user]) === user ? global.roles.flatMap((column) =>
|
|
523
|
-
const key = columnValue(row, column, tables);
|
|
524
|
-
return key === void 0 ? [] : [key];
|
|
525
|
-
}) : []);
|
|
531
|
+
const roles = global === void 0 ? [] : rowsOf(tables, global.table).flatMap((row) => text(row[global.user]) === user ? global.roles.flatMap((column) => columnValues(row, column, tables)) : []);
|
|
526
532
|
const custom = rows.customRoles;
|
|
527
533
|
const authzVersion = versionOf(rows.version, tables, user);
|
|
528
534
|
return {
|
|
@@ -539,6 +545,19 @@ function readRows(rows, tables, principal) {
|
|
|
539
545
|
}
|
|
540
546
|
//#endregion
|
|
541
547
|
//#region src/react-native/powersync.ts
|
|
548
|
+
/** The query over `permdock_authz_version` the manifest names, by user id. */
|
|
549
|
+
function authzVersionQuery(version) {
|
|
550
|
+
return `SELECT ${quoted(version.version)} AS version FROM ${quoted(version.table)} WHERE ${quoted(version.user)} = ?`;
|
|
551
|
+
}
|
|
552
|
+
/** The highest non-negative integer `version` among `rows`. */
|
|
553
|
+
function highestVersion(rows) {
|
|
554
|
+
let found;
|
|
555
|
+
for (const row of rows) {
|
|
556
|
+
const value = Number(isRecord(row) ? row["version"] : void 0);
|
|
557
|
+
if (Number.isSafeInteger(value) && value >= 0 && (found === void 0 || value > found)) found = value;
|
|
558
|
+
}
|
|
559
|
+
return found;
|
|
560
|
+
}
|
|
542
561
|
function planOf(options) {
|
|
543
562
|
if (!("user" in options)) return options;
|
|
544
563
|
const { rows } = options.manifest;
|
|
@@ -564,6 +583,8 @@ function planOf(options) {
|
|
|
564
583
|
*/
|
|
565
584
|
function powerSyncSource(db, options) {
|
|
566
585
|
const plan = planOf(options);
|
|
586
|
+
const version = options.manifest.rows?.version;
|
|
587
|
+
const user = "user" in options ? options.user : void 0;
|
|
567
588
|
const queries = Object.entries(plan.queries);
|
|
568
589
|
const rows = /* @__PURE__ */ new Map();
|
|
569
590
|
const dirty = /* @__PURE__ */ new Set();
|
|
@@ -603,6 +624,7 @@ function powerSyncSource(db, options) {
|
|
|
603
624
|
return snapshot;
|
|
604
625
|
};
|
|
605
626
|
return {
|
|
627
|
+
authzVersion: async () => version === void 0 || user === void 0 ? void 0 : highestVersion(await db.getAll(authzVersionQuery(version), [user])),
|
|
606
628
|
get: () => {
|
|
607
629
|
pending ??= read().finally(() => {
|
|
608
630
|
pending = void 0;
|
|
@@ -709,14 +731,6 @@ function tokenVersion(token) {
|
|
|
709
731
|
return;
|
|
710
732
|
}
|
|
711
733
|
}
|
|
712
|
-
function highest(rows) {
|
|
713
|
-
let found;
|
|
714
|
-
for (const row of rows) {
|
|
715
|
-
const value = Number(isRecord(row) ? row["version"] : void 0);
|
|
716
|
-
if (Number.isSafeInteger(value) && value >= 0 && (found === void 0 || value > found)) found = value;
|
|
717
|
-
}
|
|
718
|
-
return found;
|
|
719
|
-
}
|
|
720
734
|
async function currentSession(supabase) {
|
|
721
735
|
try {
|
|
722
736
|
return (await supabase.auth.getSession()).data.session;
|
|
@@ -731,12 +745,13 @@ async function currentSession(supabase) {
|
|
|
731
745
|
* refreshes the snapshot. Passes run one at a time; signals during a pass fold
|
|
732
746
|
* into one more. The channel closes in the background and rejoins on
|
|
733
747
|
* foreground, where one catch-up pass runs: a version check with
|
|
734
|
-
* `powersync.manifest`, else a full pass. It never
|
|
735
|
-
* `@powersync/*`.
|
|
748
|
+
* `powersync.source` or `powersync.manifest`, else a full pass. It never
|
|
749
|
+
* imports `@supabase/*` or `@powersync/*`.
|
|
736
750
|
*/
|
|
737
751
|
function nativeRefresh(options) {
|
|
738
752
|
const { supabase, powersync } = options;
|
|
739
753
|
const versionRows = powersync?.manifest?.rows?.version;
|
|
754
|
+
const source = powersync?.source;
|
|
740
755
|
return (refresh) => {
|
|
741
756
|
let closed = false;
|
|
742
757
|
let online = true;
|
|
@@ -775,14 +790,19 @@ function nativeRefresh(options) {
|
|
|
775
790
|
}
|
|
776
791
|
});
|
|
777
792
|
};
|
|
778
|
-
const versionSql = versionRows === void 0 ? void 0 :
|
|
793
|
+
const versionSql = versionRows === void 0 ? void 0 : authzVersionQuery(versionRows);
|
|
794
|
+
const catchUp = source !== void 0 || versionSql !== void 0;
|
|
795
|
+
const syncedVersion = async (user) => {
|
|
796
|
+
if (source !== void 0) return source.authzVersion();
|
|
797
|
+
return versionSql === void 0 || powersync === void 0 ? void 0 : highestVersion(await powersync.db.getAll(versionSql, [user]));
|
|
798
|
+
};
|
|
779
799
|
const checkVersion = async () => {
|
|
780
|
-
if (
|
|
800
|
+
if (!catchUp) return;
|
|
781
801
|
const current = await currentSession(supabase);
|
|
782
802
|
if (current === null || closed) return;
|
|
783
803
|
const token = tokenVersion(current.access_token);
|
|
784
804
|
try {
|
|
785
|
-
const synced =
|
|
805
|
+
const synced = await syncedVersion(current.user.id);
|
|
786
806
|
if (token !== void 0 && synced !== void 0 && synced > token) signal();
|
|
787
807
|
} catch {}
|
|
788
808
|
};
|
|
@@ -815,8 +835,8 @@ function nativeRefresh(options) {
|
|
|
815
835
|
leave();
|
|
816
836
|
if (active === false) return;
|
|
817
837
|
join();
|
|
818
|
-
if (
|
|
819
|
-
else
|
|
838
|
+
if (catchUp) checkVersion();
|
|
839
|
+
else signal();
|
|
820
840
|
});
|
|
821
841
|
const offOnline = options.netInfo === void 0 ? void 0 : netInfoOnline(options.netInfo)((next) => {
|
|
822
842
|
online = next;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
2
2
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
3
|
-
import { t as buildInstance } from "./build-instance-
|
|
3
|
+
import { t as buildInstance } from "./build-instance-DrIbZVnm.js";
|
|
4
4
|
//#region src/core/request-context.ts
|
|
5
5
|
/**
|
|
6
6
|
* Errors an adapter raises around one instance (a `context` hook that threw, an
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { X as DecisionSink } from "../policy-types-Ky7P23CP.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-BxYbwOAU.js";
|
|
3
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-Do8qBcRO.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-oaqeYKQu.js";
|
|
5
5
|
//#region src/resend/approval-email.d.ts
|
|
6
6
|
type ApprovalEmailOptions = {
|
|
7
7
|
/**
|
package/dist/resend/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { l as isRfc3339, p as nowSeconds } from "../time-nR1JesoH.js";
|
|
|
5
5
|
import { n as sha256, t as bytesToBase64Url } from "../sha256-C-4WXKIu.js";
|
|
6
6
|
import { t as deliveryEvent } from "../delivery-event-JioK5YbS.js";
|
|
7
7
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
8
|
-
import { l as problemResponse, o as methodNotAllowed } from "../problem-
|
|
9
|
-
import { t as bodyTooLarge } from "../body-
|
|
8
|
+
import { l as problemResponse, o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
9
|
+
import { t as bodyTooLarge } from "../body-C9JbIoqb.js";
|
|
10
10
|
import { n as approvalUrlFor } from "../approval-prompt-B8hQY69x.js";
|
|
11
11
|
import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
|
|
12
12
|
//#region src/resend/approval-email.ts
|
|
@@ -5,8 +5,8 @@ import { i as configError } from "./errors-BhRkoNS7.js";
|
|
|
5
5
|
import "./budget-BBCPDOGP.js";
|
|
6
6
|
import "./sources-C4vkzZJV.js";
|
|
7
7
|
import { A as quoteQualified, D as qualified, I as scopeTypeOf, O as quoteIdent } from "./shared-DyYVEjKC.js";
|
|
8
|
-
import { F as globalRoleRows, Q as graphSqlName, Z as graphHelper, _ as PERMISSION_HELPERS, at as memberForHelper, c as holderSources, ct as memberIdsHelper, dt as permittedForHelper, ft as permittedIdsHelper, ht as scopeTable, lt as memberOfHelper, nt as inheritedRowsHelper, o as graphPlan, pt as restrictedHelper, r as tableNames, rt as isTeamScope, tt as hasPermittedUsers, v as checkName, x as permittedByPermissionHelper } from "./tables-
|
|
9
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
8
|
+
import { F as globalRoleRows, Q as graphSqlName, Z as graphHelper, _ as PERMISSION_HELPERS, at as memberForHelper, c as holderSources, ct as memberIdsHelper, dt as permittedForHelper, ft as permittedIdsHelper, ht as scopeTable, lt as memberOfHelper, nt as inheritedRowsHelper, o as graphPlan, pt as restrictedHelper, r as tableNames, rt as isTeamScope, tt as hasPermittedUsers, v as checkName, x as permittedByPermissionHelper } from "./tables-B72q9UFD.js";
|
|
9
|
+
import { t as FIELD_VIEWS } from "./fields-COvJbUva.js";
|
|
10
10
|
//#region src/cli/rls/permission-holders.ts
|
|
11
11
|
/**
|
|
12
12
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -8,25 +8,25 @@ import { o as sqlFiles } from "./files-BSjrtIHw.js";
|
|
|
8
8
|
import { c as requirePolicy } from "./load-BaEamml-.js";
|
|
9
9
|
import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
|
|
10
10
|
import "./sources-C4vkzZJV.js";
|
|
11
|
-
import { t as policyFromCatalog } from "./policy-from-catalog-
|
|
11
|
+
import { t as policyFromCatalog } from "./policy-from-catalog-Cljh_B5H.js";
|
|
12
12
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
13
13
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
|
|
14
|
-
import { a as nonEmptyOr } from "./output-
|
|
14
|
+
import { a as nonEmptyOr } from "./output-DYq_o2dM.js";
|
|
15
15
|
import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
|
|
16
16
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
17
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
17
|
+
import { t as fetchProjectPolicy } from "./pull-FG0Tf8aF.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
20
|
-
import {
|
|
20
|
+
import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
21
|
+
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-Btk56XD6.js";
|
|
21
22
|
import { A as quoteQualified, D as qualified$1, I as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DyYVEjKC.js";
|
|
22
|
-
import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-
|
|
23
|
-
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-
|
|
23
|
+
import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-B72q9UFD.js";
|
|
24
|
+
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-CrmMERZv.js";
|
|
24
25
|
import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { n as
|
|
28
|
-
import {
|
|
29
|
-
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-BGf6zRvM.js";
|
|
26
|
+
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-COvJbUva.js";
|
|
27
|
+
import { n as permissionHoldersSql } from "./resolve-names-Dg8560iu.js";
|
|
28
|
+
import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-CaaZlnP5.js";
|
|
29
|
+
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-lwXmXPP_.js";
|
|
30
30
|
import { readFileSync } from "node:fs";
|
|
31
31
|
import { basename, delimiter, join } from "node:path";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
@@ -2397,6 +2397,12 @@ function asTarget(value) {
|
|
|
2397
2397
|
function asDialect(value) {
|
|
2398
2398
|
if (value === void 0 || value === "supabase" || value === "neon" || value === "guc") return value ?? "supabase";
|
|
2399
2399
|
}
|
|
2400
|
+
/** `--split`, else `rls.split` for the SQL target. */
|
|
2401
|
+
function splitOf(input, target) {
|
|
2402
|
+
if (input.split !== void 0) return { split: input.split };
|
|
2403
|
+
const configured = input.config.rls?.split;
|
|
2404
|
+
return configured === void 0 || target !== "sql" ? {} : { split: configured.join(",") };
|
|
2405
|
+
}
|
|
2400
2406
|
function generateInput(input, target, dialect) {
|
|
2401
2407
|
return {
|
|
2402
2408
|
cwd: input.cwd,
|
|
@@ -2425,7 +2431,7 @@ function generateInput(input, target, dialect) {
|
|
|
2425
2431
|
capabilities: input.capabilities,
|
|
2426
2432
|
...input.fields === void 0 ? {} : { fields: input.fields },
|
|
2427
2433
|
revokeColumns: input.revokeColumns,
|
|
2428
|
-
...input
|
|
2434
|
+
...splitOf(input, target),
|
|
2429
2435
|
...isSupabaseSchemas(input.schemas) ? { schemas: input.schemas } : {},
|
|
2430
2436
|
...input.grantsOut === void 0 ? {} : { grantsOut: input.grantsOut },
|
|
2431
2437
|
...input.seedsOut === void 0 ? {} : { seedsOut: input.seedsOut },
|
|
@@ -2612,7 +2618,7 @@ async function runRls(input) {
|
|
|
2612
2618
|
}
|
|
2613
2619
|
case "import": {
|
|
2614
2620
|
await requirePeer(() => import("pgsql-parser"), "pgsql-parser", "permdock rls import", input.cwd, PGSQL_PARSER_MAJOR);
|
|
2615
|
-
const { runRlsImport } = await import("./import-
|
|
2621
|
+
const { runRlsImport } = await import("./import-C8ffNykt.js");
|
|
2616
2622
|
return runRlsImport({
|
|
2617
2623
|
cwd: input.cwd,
|
|
2618
2624
|
config: input.config,
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-CJbWbxXv.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
const generate = defineLeaf({
|
|
198
198
|
flags: {
|
|
@@ -6,7 +6,7 @@ import { c as listPermissions, o as isPermission } from "./permission-registry-B
|
|
|
6
6
|
import { n as assertMetaValue, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
7
7
|
import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
|
|
8
8
|
import { d as roleScopeOf, g as isRole, o as flattenGrantee, r as asGrantee, u as roleNameOf } from "./grantee-Dke-9rd1.js";
|
|
9
|
-
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-
|
|
9
|
+
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-hlfO9BJv.js";
|
|
10
10
|
import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
11
11
|
//#region src/conditions/opaque.ts
|
|
12
12
|
function opaque(input) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
2
|
+
import { o as ProtectOptions } from "./server-types-CwpJe664.js";
|
|
3
|
+
//#region src/server/stream.d.ts
|
|
4
|
+
type StreamProtectOptions = ProtectOptions & {
|
|
5
|
+
/**
|
|
6
|
+
* For a procedure that returns an async iterable: each outbound item is
|
|
7
|
+
* checked against this permission and dropped when the subscriber cannot read
|
|
8
|
+
* it.
|
|
9
|
+
*/
|
|
10
|
+
readonly items?: Permission<string, unknown, "instance">;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/server/rpc.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* `protect`'s options in an RPC adapter: `rows` reads the procedure's opts
|
|
16
|
+
* instead of the request.
|
|
17
|
+
*/
|
|
18
|
+
type RpcProtectOptions<TOpts> = Omit<StreamProtectOptions, "rows"> & {
|
|
19
|
+
readonly rows?: (opts: TOpts) => readonly unknown[] | Promise<readonly unknown[]>;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { RpcProtectOptions as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { s as requestFromContext } from "./http-DKLXrFGk.js";
|
|
3
3
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
4
|
-
import { t as adapterKernel } from "./bind-
|
|
5
|
-
import { r as guardIterable } from "./stream-
|
|
4
|
+
import { t as adapterKernel } from "./bind-BnKPWRrE.js";
|
|
5
|
+
import { r as guardIterable } from "./stream-DQ3rbO3J.js";
|
|
6
6
|
//#region src/server/rpc.ts
|
|
7
7
|
/** The tRPC and oRPC error code for a Problem Details status. */
|
|
8
8
|
function rpcCode(status) {
|
|
@@ -58,13 +58,17 @@ function bindRpcKernel(policy, options, adapter, contextOf, path) {
|
|
|
58
58
|
const opts = optsByRequest.get(request);
|
|
59
59
|
return opts === void 0 ? { tenant: void 0 } : scopeOf(opts);
|
|
60
60
|
});
|
|
61
|
-
const guard = async (permission, data, opts, protectOptions) => {
|
|
61
|
+
const guard = async (permission, data, opts, protectOptions = {}) => {
|
|
62
62
|
const request = bind(opts);
|
|
63
63
|
const scope = await scopeOf(opts);
|
|
64
|
+
const { rows, ...rest } = protectOptions;
|
|
64
65
|
return {
|
|
65
66
|
request,
|
|
66
67
|
scope,
|
|
67
|
-
guard: await kernel.protect(permission, data === void 0 ? void 0 : () => data(opts),
|
|
68
|
+
guard: await kernel.protect(permission, data === void 0 ? void 0 : () => data(opts), rows === void 0 ? rest : {
|
|
69
|
+
...rest,
|
|
70
|
+
rows: () => rows(opts)
|
|
71
|
+
})(request, scope)
|
|
68
72
|
};
|
|
69
73
|
};
|
|
70
74
|
const evaluate = (request, opts) => {
|
|
@@ -83,13 +87,19 @@ function bindRpcKernel(policy, options, adapter, contextOf, path) {
|
|
|
83
87
|
guard
|
|
84
88
|
};
|
|
85
89
|
}
|
|
90
|
+
function isList(permission) {
|
|
91
|
+
return Array.isArray(permission);
|
|
92
|
+
}
|
|
86
93
|
/**
|
|
87
94
|
* Wraps a streamed result so revocation ends it and items the subscriber cannot
|
|
88
95
|
* read drop.
|
|
89
96
|
*/
|
|
90
97
|
async function guardStream(source, open, permission, data, protectOptions, guard) {
|
|
91
|
-
const
|
|
92
|
-
|
|
98
|
+
const single = permission !== null && isList(permission) ? permission : [permission];
|
|
99
|
+
const [lead = null] = single;
|
|
100
|
+
if (single.length !== 1 || protectOptions?.rows !== void 0) throw new TypeError("PermDock: a streamed result is revalidated against one permission and its data; protect it without rows or a permission list");
|
|
101
|
+
const conn = await open(lead === null ? {} : compact({
|
|
102
|
+
permission: lead,
|
|
93
103
|
data
|
|
94
104
|
}));
|
|
95
105
|
return guardIterable(source, conn, compact({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-BigMDvGR.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-nR1JesoH.js";
|
|
2
2
|
import { a as describeError, l as problemOf, n as CliError, r as cliProblem, s as kindOfCode } from "./errors-BhRkoNS7.js";
|
|
3
3
|
import { s as cliVersion } from "./version-DMQ0dnN5.js";
|
|
4
|
-
import { a as resolveCwd, i as readConfig } from "./config-
|
|
4
|
+
import { a as resolveCwd, i as readConfig } from "./config-D2oXUwos.js";
|
|
5
5
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
6
6
|
import { a as GLOBAL_FLAGS, i as suggestion, n as parseFlags, r as parseLeaf } from "./args-iafbHiXn.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-dkycUsY3.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
|
|
9
9
|
import { t as createStyle } from "./style-Ds11Hmk4.js";
|
|
10
|
-
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-
|
|
10
|
+
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-DYq_o2dM.js";
|
|
11
11
|
import { stripVTControlCharacters } from "node:util";
|
|
12
12
|
import { existsSync, statSync } from "node:fs";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as PrincipalSource } from "./permdock-
|
|
1
|
+
import { _t as TokenSigner, dr as AuthorizationDetail, gt as TokenFailureCause, hr as Delegation, lr as Actor, qt as Instant, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
|
|
2
|
+
import { _ as PrincipalSource } from "./permdock-B45vPQb4.js";
|
|
3
3
|
//#region src/server/run-ticket.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What started the run: a saved automation, a background job, or a caller's own
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { i as principal } from "./refs-C8BKxc_e.js";
|
|
3
|
-
import { a as deny, n as role, r as allow } from "./role-builder-
|
|
4
|
-
import { A as memoryCustomRoleSource, C as limits, S as memoryRelationSource, w as memoryLimitStore } from "./src-
|
|
3
|
+
import { a as deny, n as role, r as allow } from "./role-builder-C_2kWB_x.js";
|
|
4
|
+
import { A as memoryCustomRoleSource, C as limits, S as memoryRelationSource, w as memoryLimitStore } from "./src-HDDf9Eum.js";
|
|
5
5
|
import { h as secondsAt } from "./time-nR1JesoH.js";
|
|
6
6
|
import { l as relation, n as anyone } from "./grantee-Dke-9rd1.js";
|
|
7
|
-
import { r as definePolicy } from "./policy-
|
|
7
|
+
import { r as definePolicy } from "./policy-DTmkP72P.js";
|
|
8
8
|
import { s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
9
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
9
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-Rk9_Gm04.js";
|
|
10
10
|
//#region src/testing/saas/policy.ts
|
|
11
11
|
function isSubject(user) {
|
|
12
12
|
return user !== null && "context" in user && "principal" in user;
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-C_VQ-J2f.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -62,6 +62,10 @@ const approval = { oneOf: [{ const: "human" }, {
|
|
|
62
62
|
description: "Written before 0.17; false reads as mode: confirm.",
|
|
63
63
|
type: "boolean"
|
|
64
64
|
},
|
|
65
|
+
fallback: {
|
|
66
|
+
description: "confirm lets the request's principal approve while no other eligible approver exists.",
|
|
67
|
+
const: "confirm"
|
|
68
|
+
},
|
|
65
69
|
staleOn: { const: "resource-change" },
|
|
66
70
|
quorum: {
|
|
67
71
|
type: "integer",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-nqarl3oE.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-DYq_o2dM.js";
|
|
5
5
|
import { t as require__2020 } from "./2020-CJbO8Bvz.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
package/dist/scim/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
2
|
-
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-
|
|
2
|
+
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-C5Tfpjex.js";
|
|
3
3
|
export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-
|
|
2
|
-
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-
|
|
1
|
+
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-AhCHeeff.js";
|
|
2
|
+
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-POWcCXy7.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
4
4
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
6
|
-
import { i as evaluationsHandler } from "../evaluations
|
|
7
|
-
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-
|
|
8
|
-
import { l as ReplayStore } from "../types-
|
|
9
|
-
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-
|
|
10
|
-
import { t as memoryReplayStore } from "../replay-
|
|
11
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
12
|
-
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-
|
|
5
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-CwpJe664.js";
|
|
6
|
+
import { i as evaluationsHandler } from "../evaluations--rkKhMqY.js";
|
|
7
|
+
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-DLlWORcK.js";
|
|
8
|
+
import { l as ReplayStore } from "../types-oaqeYKQu.js";
|
|
9
|
+
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-BGi8pUwo.js";
|
|
10
|
+
import { t as memoryReplayStore } from "../replay-BqmXcP7x.js";
|
|
11
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-B9weL8NE.js";
|
|
12
|
+
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-DRA3POCY.js";
|
|
13
13
|
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-CYg2kJEw.js";
|
|
2
|
-
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "../errors-
|
|
2
|
+
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
4
|
-
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-
|
|
4
|
+
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BWP1l86g.js";
|
|
5
5
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
6
6
|
import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-B66h7FBK.js";
|
|
7
|
-
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-
|
|
7
|
+
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
8
8
|
import { n as tenantScope } from "../adapter-context-OHikyRqV.js";
|
|
9
|
-
import { t as createPermDock } from "../create-
|
|
9
|
+
import { t as createPermDock } from "../create-CegYmYHu.js";
|
|
10
10
|
import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-D0PW6ZCw.js";
|
|
11
11
|
import { i as subjectFromRunTicket, n as parseRunTicket, r as signRunTicket, t as RUN_TICKET_CLAIMS } from "../run-ticket-CjvXr6wj.js";
|
|
12
|
-
import { t as problemFromError } from "../map-error-
|
|
12
|
+
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
13
13
|
import { n as webhookVerifier, t as webhookSigner } from "../standard-webhooks-D67a3nzk.js";
|
|
14
14
|
export { InvalidSignatureError, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RUN_TICKET_CLAIMS, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|