permdock 0.20.1 → 0.22.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/README.md +2 -1
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +5 -4
- package/dist/{adoption-scan-BTG9Noyy.js → adoption-scan-_bHLMnVQ.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/app/index.d.ts +85 -0
- package/dist/app/index.js +91 -0
- package/dist/app-DIvM65Mv.js +24 -0
- package/dist/{approval-policies-CKlByf5o.d.ts → approval-policies-UnDSxT__.d.ts} +2 -2
- package/dist/{approval-prompt-CQFiO1KE.d.ts → approval-prompt-2hTqo6IM.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-CuXILe52.js → approvals-B_sn4Wrn.js} +6 -6
- package/dist/{arazzo-CDXfX4u0.js → arazzo-BXD-VJU_.js} +1 -1
- package/dist/{arazzo-D4mKdaWI.js → arazzo-Ct0PGblq.js} +3 -3
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-BUonniPx.js → audience-5Xx1hdIv.js} +1 -1
- package/dist/{auth-j3Eu-j4h.js → auth-BxXHxWRy.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +4 -4
- package/dist/{automation-CpOk7Tlu.d.ts → automation-B20_8UoT.d.ts} +3 -3
- package/dist/{automation-x3KEUusw.js → automation-BueW05db.js} +2 -2
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +113 -56
- package/dist/better-supabase/index.js +200 -62
- package/dist/better-supabase-DF8f8oly.js +194 -0
- package/dist/{bind-gwEbe9hL.js → bind-B4Z0U2Gr.js} +5 -5
- package/dist/{bind-CW7nsZ86.d.ts → bind-CnOMjazH.d.ts} +7 -7
- package/dist/{build-instance-DaBdCRiz.js → build-instance-B0vsViF5.js} +3 -25
- package/dist/{capability-zN6T9fxe.js → capability-CenWwTMR.js} +1 -1
- package/dist/{capability-v2xZB7us.d.ts → capability-YkRMUAsF.d.ts} +2 -2
- package/dist/{casbin-COUi09Ti.js → casbin-D5evU3lX.js} +1 -1
- package/dist/{casbin-BXlRcCdU.js → casbin-imBS3UIf.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-C462QC3A.js +1 -0
- package/dist/{catalog-DjDc87R2.js → catalog-CoyKnU5c.js} +1 -1
- package/dist/{catalog-s0waIrfY.js → catalog-Y4CjN8NA.js} +4 -4
- package/dist/{catalog-operations-BD22drQf.js → catalog-operations-Do1eD-Rt.js} +1 -1
- package/dist/{challenge-DbkpCx_v.js → challenge-B__LcNve.js} +3 -3
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +8 -7
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +3 -3
- package/dist/{cloud-BW7JKfrF.js → cloud-DWCeStPH.js} +2 -2
- package/dist/{codemod-6CBQaT0x.js → codemod-B7QKJ_ak.js} +2 -2
- package/dist/{codemod-CR9EQBVd.js → codemod-BaPmaCYQ.js} +13 -6
- package/dist/{collect-DN_x7hvV.js → collect-Cr71JA7z.js} +8 -7
- package/dist/{collect-DMQ6Sxr6.js → collect-ScSG05VJ.js} +2 -2
- package/dist/collect-W9i7REKT.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-B_oJqmIg.js → compile-Cvru58id.js} +2 -2
- package/dist/{compile-DZftFfXc.d.ts → compile-DC-BrhH1.d.ts} +3 -3
- package/dist/{completion-CYRlOJzv.js → completion-DOUMyCwa.js} +1 -1
- package/dist/{delegation-aK4T_5WU.js → condition-evaluate-bVVRSdzq.js} +159 -159
- package/dist/{config-6iLK155o.js → config-DRp-E8Ly.js} +1 -1
- package/dist/{config-D2oXUwos.js → config-DyNanTjZ.js} +10 -8
- package/dist/{config-report-BLroaWCe.js → config-report-Bh_nLdAE.js} +2 -2
- package/dist/{config-shape-D9paLhEX.js → config-shape-C4zqzG2K.js} +9 -2
- package/dist/{context-YhyXyqBI.js → context-Cem4QafV.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{core-BwVkrpsi.js → core-CUjhfz0W.js} +6 -6
- package/dist/{core-BOeGWbcR.d.ts → core-D2JNg5jA.d.ts} +3 -3
- package/dist/coverage-D8jBJdgD.d.ts +114 -0
- package/dist/coverage-Dh2W_DmF.js +211 -0
- package/dist/{create-BezeYFcT.d.ts → create-B2tdOygC.d.ts} +7 -7
- package/dist/{create-C0R8omeF.js → create-BJ2_8NDO.js} +5 -5
- package/dist/{create-DDUFG1ul.js → create-BsL5lCWR.js} +10 -8
- package/dist/{create-DYSYYiLr.d.ts → create-CPDSbK1a.d.ts} +5 -5
- package/dist/{create-DMCC5ZOi.d.ts → create-oMCcZV4X.d.ts} +9 -9
- package/dist/{credential-B3Hj4puZ.js → credential-Bap3HClV.js} +4 -4
- package/dist/{server-D0PW6ZCw.js → credentials-BXV0oz56.js} +3 -146
- package/dist/credentials-DPX140fN.d.ts +125 -0
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-De8cw3MW.d.ts → denied-text-BXQkWU7d.d.ts} +2 -2
- package/dist/{describe-DibQM6g-.d.ts → describe-DVobr5FX.d.ts} +2 -2
- package/dist/{diff-Bd1-VCe5.js → diff-BR9JArxz.js} +6 -6
- package/dist/{diff-DXRNcjpg.js → diff-Jc_kbDz-.js} +1 -1
- package/dist/{doctor-CJcS0Mrq.js → doctor-BBMW5ZT_.js} +310 -36
- package/dist/{doctor-DYTgibLC.js → doctor-DhqSiPkq.js} +3 -3
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-OTE9u4Wk.d.ts → errors-D_JIQJYb.d.ts} +1 -1
- package/dist/{evaluate-Dcq_U2TV.js → evaluate-B5yZHmts.js} +16 -16
- package/dist/{evaluations-CNMVJVD6.js → evaluations-BzTDWO4m.js} +57 -57
- package/dist/{evaluations-BgxEfPL7.d.ts → evaluations-DQYfh4Jh.d.ts} +3 -3
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-DCQ4pZxf.d.ts → fetch-adapter-DxqsIXSO.d.ts} +4 -4
- package/dist/{fetch-adapter-acq4dPX3.js → fetch-adapter-MoYZ-vF5.js} +5 -4
- package/dist/{fields-D_TfExiI.js → fields-CVyOk-f1.js} +2 -2
- package/dist/{fixtures-Cemqurt8.js → fixtures-BVZc7OCF.js} +1 -1
- package/dist/{from-snapshot-DHnb8Fh4.js → from-snapshot-oR_N97dM.js} +346 -14
- package/dist/{gen-gv_WHBIG.js → gen-DXXoFjyf.js} +1 -1
- package/dist/{gen-CH50v9VI.js → gen-WdycZ_-b.js} +5 -5
- package/dist/{grantee-conditions-DX4K_gGI.js → grantee-conditions-Dzprappv.js} +1 -1
- package/dist/{grantee-match-BP-k4vRJ.js → grantee-match-8J2y60MF.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-D-MXwkOF.js → helpers-DzBIfL1N.js} +25 -25
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-C2Pmhy2x.js → hosted-C5I2TSXm.js} +4 -4
- package/dist/{hosted-yhyAuQkL.d.ts → hosted-DXq1plaP.d.ts} +1 -1
- package/dist/{http-DhMWeB_h.js → http-dptLQzPP.js} +1 -1
- package/dist/{expiry-6XByK0dm.js → ids-DzhJaCUj.js} +23 -23
- package/dist/{import-BlwuuZkr.js → import-BE5sDazm.js} +2 -2
- package/dist/{import-C2ExjVvv.js → import-CvXswHDy.js} +2 -2
- package/dist/index-BcS8c_2S.d.ts +101 -0
- package/dist/{index--AwSBzJC.d.ts → index-BdZpqhJK.d.ts} +2 -2
- package/dist/{index-CLbGOPBr.d.ts → index-C-R8lBPb.d.ts} +3 -3
- package/dist/{index-CruReRkB.d.ts → index-C_8uxAlv.d.ts} +5 -5
- package/dist/{index-D7xGi1LS.d.ts → index-Cjfa1Uwr.d.ts} +22 -40
- package/dist/{index-Bt37QovT.d.ts → index-iIsqXFVu.d.ts} +6 -6
- package/dist/index.d.ts +19 -20
- package/dist/index.js +25 -24
- package/dist/{init-CalppFAI.js → init-B_S8Xdz1.js} +4 -4
- package/dist/{init-B62H9Kyx.js → init-CqGHcvyR.js} +2 -2
- package/dist/{instance-options-VPsNQsTH.d.ts → instance-options-C6gEDOts.d.ts} +1 -1
- package/dist/instance-options-URVwqpMW.js +24 -0
- package/dist/{instance-snapshot-SX8zH_1t.js → instance-snapshot-D_dGTq--.js} +10 -10
- package/dist/jwt/index.d.ts +4 -4
- package/dist/jwt/index.js +2 -2
- package/dist/{kernel-_QEUOSU0.js → kernel-NmxiWII2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/kysely/index.js +1 -1
- package/dist/limits-CAhpRrhk.js +167 -0
- package/dist/{load-BaEamml-.js → load-C4p4VgwR.js} +2 -2
- package/dist/load-DiBUJx77.js +1 -0
- package/dist/{login-dDb_8muO.js → login-CzwlsBEO.js} +4 -4
- package/dist/{login-MxQV1BLh.js → login-DoLxv1s5.js} +3 -3
- package/dist/{manifest-DvDzxhy6.js → manifest-BAf7cgRx.js} +35 -35
- package/dist/{map-claims-PQwHynxV.js → map-claims-CAa_bQt9.js} +1 -1
- package/dist/{map-error-EOhahOVA.js → map-error-p4ROJ_26.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +9 -8
- package/dist/{migrate-CkLHdwuH.js → migrate-DVsxeE0y.js} +1 -1
- package/dist/{module-values-BYuNtdK5.js → module-values-BLiVlO1X.js} +3 -3
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +46 -17
- package/dist/next/index.js +58 -23
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +5 -59
- package/dist/openapi/index.js +3 -2
- package/dist/{openapi-BOsx0xn9.js → openapi-Cc-aS9xC.js} +6 -135
- package/dist/{openapi-BkGtE5kX.js → openapi-DroBcLJZ.js} +2 -2
- package/dist/{openapi-DKePsnln.js → openapi-EmvKwuWj.js} +4 -4
- package/dist/{operations-Ci_rT6Uo.d.ts → operations-BMPx7HyO.d.ts} +1 -1
- package/dist/optional-8TKc-0j4.js +47 -0
- package/dist/orpc/index.d.ts +7 -7
- package/dist/orpc/index.js +4 -4
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-B2h-2g3F.js → output-CYgfpT6o.js} +1 -1
- package/dist/{ownership-MGHa5vfX.js → ownership-adPAsUwY.js} +15 -13
- package/dist/{parse-CXTT7hBq.js → parse-CORUNcCo.js} +1 -1
- package/dist/{parse-local-manifest-CE4tgFsj.d.ts → parse-local-manifest-BaCqsqwC.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +4 -3
- package/dist/{permdock-C1DN_7a-.js → permdock-B5LyNVgn.js} +71 -34
- package/dist/{permdock-D4F2p5J8.d.ts → permdock-BaB-KQqn.d.ts} +51 -9
- package/dist/{permissions-8N2yFsUM.js → permissions-COpRGKt7.js} +1 -1
- package/dist/{permissions-Bx6UI8n1.d.ts → permissions-DriWkV7q.d.ts} +1 -2
- package/dist/{policy-from-catalog-CUNlpgz0.js → policy-from-catalog-Cy103lsm.js} +8 -8
- package/dist/{policy-types-BI9C5Sp5.d.ts → policy-types-rNfz7t0M.d.ts} +9 -3
- package/dist/{policy-CaAME-Rh.js → policy-wGzbAPQF.js} +7 -7
- package/dist/{policy-Dh9WVSVz.d.ts → policy-x8RBKW8d.d.ts} +2 -2
- package/dist/{postgrest-CWCCbaxm.d.ts → postgrest-Cn0Res25.d.ts} +9 -21
- package/dist/powersync-BdoR7nwS.js +1 -0
- package/dist/{powersync-Deim9O47.js → powersync-BeI0VmEK.js} +2 -2
- package/dist/{powersync-CB8RwcB4.js → powersync-Dpa5AnnN.js} +11 -11
- package/dist/preset/index.js +1 -1
- package/dist/{preset-pPrVyGU5.js → preset-Bn5Z54cH.js} +5 -6
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{protected-action-ua0cx5cW.d.ts → protected-action-C4aj1KjO.d.ts} +6 -7
- package/dist/{protected-action-CD1HXwQK.js → protected-action-E7Sdt_Dt.js} +1 -1
- package/dist/{provider-D_hgjZRa.d.ts → provider-B-1DlOGM.d.ts} +1 -1
- package/dist/{provider-qESIf_C0.js → provider-DKO9KHua.js} +2 -2
- package/dist/{provider-store-BTHGJH9j.js → provider-store-D4PU1my_.js} +2 -2
- package/dist/{pull-BxqVL4Es.js → pull-3tkn25ll.js} +5 -5
- package/dist/pull-D90HqWNP.js +1 -0
- package/dist/{push-D2SsRW0U.js → push-dMyKdlEm.js} +6 -6
- package/dist/{pushed-policy-BERO0x9O.js → pushed-policy-Bi5-il4C.js} +2 -2
- package/dist/{pushed-policy-P0hgyLBh.d.ts → pushed-policy-P55cJNx5.d.ts} +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 +9 -9
- package/dist/react-native/index.js +7 -7
- package/dist/{relation-walk-DK_gkgL7.js → relation-walk-BDTaTKTM.js} +1 -1
- package/dist/{relations-BxvRvDHK.js → relations-CMsJ1ARY.js} +1 -1
- package/dist/{replay-DYXI4gRN.d.ts → replay-DKhFvt0L.d.ts} +1 -1
- package/dist/{request-context-BPTi68z5.js → request-context-5gl_oxO1.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-BZQZRnMH.js → resolve-names-BnGJU88N.js} +4 -4
- package/dist/{rls-DpoJ5gCg.js → rls-DIYSRnDZ.js} +1 -1
- package/dist/{rls-OPorg_2G.js → rls-qrehUPf_.js} +45 -18
- package/dist/{role-builder-C5AgaC1x.js → role-builder-boQiUvfo.js} +3 -3
- package/dist/{rpc-D2LnFELm.d.ts → rpc-BqRiVpbP.d.ts} +2 -2
- package/dist/{rpc-DdkbQVlT.js → rpc-Dhi55Whd.js} +2 -2
- package/dist/run-elFdnSZx.js +1 -0
- package/dist/{run-YCpANf1B.js → run-oNqBe0gc.js} +3 -3
- package/dist/{run-ticket-CjvXr6wj.js → run-ticket-Ddxt9OuU.js} +2 -2
- package/dist/{run-ticket-94DOS9Cd.d.ts → run-ticket-Dulj4RQk.d.ts} +2 -2
- package/dist/{saas-BEXnrH9H.js → saas-DABv6vjy.js} +6 -5
- package/dist/{scan-COvn7ZjN.js → scan-BYXqcgON.js} +1 -1
- package/dist/{schema-BfSDo7Xj.js → schema-Wf-SvlHG.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/scim/index.js +1 -1
- package/dist/{scopes-BSdYaGHs.js → scopes-gdH__vDZ.js} +1 -1
- package/dist/server/index.d.ts +11 -10
- package/dist/server/index.js +7 -6
- package/dist/server-CKjFooaJ.js +147 -0
- package/dist/{server-types-ChzXWU4Y.d.ts → server-types--_Hann81.d.ts} +10 -9
- package/dist/{shared-sW3VYchq.js → shared-DfaIWvIJ.js} +11 -2
- package/dist/{sink-RwmP7ZHs.d.ts → sink-Cs6z34AX.d.ts} +4 -4
- package/dist/{skills-N2Hd8KN8.js → skills-417bOj4o.js} +1 -1
- package/dist/{skills-Ce4C2dq1.js → skills-B9U465B7.js} +2 -2
- package/dist/{snapshot-DHPih65J.js → snapshot-C2j96x97.js} +4 -4
- package/dist/{snapshot-cache-MPinwwgZ.d.ts → snapshot-cache-Cc7VNabe.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -7
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-sgQlMfmz.d.ts → sources-BfTza0zT.d.ts} +1 -1
- package/dist/{src-B8SQNsvw.js → src-BG9YJM3Q.js} +97 -247
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +3 -3
- package/dist/{standard-webhooks-CFZIYtBF.d.ts → standard-webhooks-CJBgfl7y.d.ts} +2 -2
- package/dist/{store-CSOsXd5s.js → store-BpKH-pLm.js} +2 -2
- package/dist/{store-Dpg_fSNQ.d.ts → store-DSyjHD5-.d.ts} +5 -5
- package/dist/{store-options-CDvoX52-.js → store-options-CXv6BHH6.js} +5 -6
- package/dist/{stores-PpYVQ5yF.js → stores-BuqAHjp_.js} +1 -1
- package/dist/{stores-C2A6KsxE.d.ts → stores-C6-7TPTV.d.ts} +6 -7
- package/dist/{postgrest-BrjrckDG.js → subject-BqFwS6l3.js} +214 -319
- package/dist/subject-cache-BT1fGuea.js +193 -0
- package/dist/subject-cache-d_Z4KAnm.d.ts +144 -0
- package/dist/supabase/index.d.ts +6 -5
- package/dist/supabase/index.js +3 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-zL7PC3RG.js → supabase-D0J99yqL.js} +2 -2
- package/dist/{supabase-CVZuytCC.js → supabase-DnazO6W4.js} +3 -3
- package/dist/{supabase-hook-BCSwK5x-.js → supabase-hook-Bh5syR9N.js} +174 -62
- package/dist/supabase-hook-CVAenq-w.js +1 -0
- package/dist/{supautils-7UES0i4a.js → supautils-ChXR-4Or.js} +302 -43
- package/dist/{support-session-BsmPCbz8.js → support-session-BGeEYDSq.js} +2 -2
- 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 +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-DSX_Ma_n.js → tables-CbEOy2Ma.js} +137 -55
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-DvOHHk3-.js → tenancy-BlxY5T0q.js} +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +6 -6
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +35 -2
- package/dist/testing/fixtures/index.js +39 -2
- package/dist/testing/index.d.ts +41 -25
- package/dist/testing/index.js +114 -26
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +4 -4
- package/dist/{type-helpers-BjOLGVy1.d.ts → type-helpers-iXJEIDe7.d.ts} +3 -4
- package/dist/{types-p8mhWTcR.d.ts → types-B9F0EZAF.d.ts} +3 -3
- package/dist/{types-DZwEOsK1.d.ts → types-BSNZMp5b.d.ts} +1 -1
- package/dist/{types-DnzRZjEu.d.ts → types-BpxdxaRD.d.ts} +5 -5
- package/dist/{types-C5p2hoBR.d.ts → types-CD1qmxdx.d.ts} +4 -4
- package/dist/{types-D1NjjwI4.d.ts → types-CS1DI_Ke.d.ts} +40 -9
- package/dist/{types-CMclYgSk.d.ts → types-C_a44wSr.d.ts} +3 -3
- package/dist/{types-DBVSljAx.d.ts → types-Cq2rvv-C.d.ts} +3 -3
- package/dist/{types--_lpWUGV.d.ts → types-CuDXvyIT.d.ts} +5 -5
- package/dist/{types-7Vlz1Wi2.d.ts → types-DAyp592k.d.ts} +2 -2
- package/dist/{types-Drs3OOAy.d.ts → types-NikV1pND.d.ts} +4 -4
- package/dist/{types-BzxA2OAD.d.ts → types-ZfjQB0KC.d.ts} +2 -2
- package/dist/{types-D8JVDWOr.d.ts → types-_pi9kxS2.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-CUnw73Y-.js → usage-0wsl83uw.js} +10 -10
- package/dist/{usage-BcAqmjkj.js → usage-Bl-BkXEq.js} +1 -1
- package/dist/usage-CmyGbo4e.js +1 -0
- package/dist/{validation-error-DkOK9zUE.d.ts → validation-error-DLAYFlkr.d.ts} +1 -1
- package/dist/{verify-V08pirDB.js → verify-BSLotSa0.js} +41 -24
- package/dist/version-sources-BC3hf2ME.js +34 -0
- package/dist/{permission-types-CAY-GU7e.d.ts → vocabulary-DeZvUaTw.d.ts} +69 -1
- package/dist/vue/index.d.ts +6 -7
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-BjVI_Byg.d.ts → waiter-cbK1CBhT.d.ts} +2 -2
- package/dist/{watch-Dz2LNM1R.js → watch-BigZ260i.js} +2 -2
- package/dist/watch-CHURMgrv.js +1 -0
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{who-can-CZeAwQZD.js → who-can-CjfMP9a4.js} +8 -8
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +6 -5
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-CE5lxje7.d.ts → wrap-B-k2qHJx.d.ts} +2 -2
- package/package.json +16 -4
- package/skills/permdock-wire/references/presets-and-recipes.md +2 -2
- package/dist/better-supabase-ayun1IKE.js +0 -122
- package/dist/catalog-BTPySmbp.js +0 -1
- package/dist/collect-eSTXOZDC.js +0 -1
- package/dist/index-B_I6N8Ju.d.ts +0 -222
- package/dist/load-CjnlPxpL.js +0 -1
- package/dist/powersync-Cs1E04s6.js +0 -1
- package/dist/pull-BLT25Y5C.js +0 -1
- package/dist/run-CW0QsyA9.js +0 -1
- package/dist/supabase-hook-7XxWGHQF.js +0 -1
- package/dist/usage-BdIS9NfN.js +0 -1
- package/dist/version-cache-q5cpaDSt.d.ts +0 -57
- package/dist/vocabulary-DEJ5j4mR.d.ts +0 -70
- package/dist/watch-CS69ftMP.js +0 -1
- package/dist/where-scope-BAyOsPQW.js +0 -332
- package/dist/{approval-normalize-hlfO9BJv.js → approval-normalize-DNLW0zOM.js} +1 -1
- package/dist/{body-C9JbIoqb.js → body-B3ylkmmE.js} +1 -1
- package/dist/{catalog-doc-nrgfbh8I.js → catalog-doc-Zi0jRpyH.js} +2 -2
- package/dist/{device-BwbJNmb2.js → device-BkSynWdg.js} +1 -1
- package/dist/{prompt-BYc6drYW.js → prompt-D1Gj1W4Y.js} +1 -1
- package/dist/{scim-C30QBBoF.js → scim-BG6uPUeW.js} +1 -1
- package/dist/{wrap-C5PWzgkq.js → wrap-BKU5Arsu.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Yn as Decision } from "./policy-types-
|
|
2
|
-
import {
|
|
1
|
+
import { Yn as Decision } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/agent/denied-text.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What an agent adapter's `deniedText` receives: the refusal and the text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-
|
|
2
|
-
import {
|
|
1
|
+
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/core/describe.d.ts
|
|
4
4
|
type DecisionDescription = {
|
|
5
5
|
readonly kind: "granted" | "denied" | "approval" | "tenant" | "delegation" | "server-only" | "upgrade";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as memoryCustomRoleSource } from "./src-BG9YJM3Q.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
4
4
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
5
|
-
import { t as getPermDock } from "./permdock-
|
|
5
|
+
import { t as getPermDock } from "./permdock-B5LyNVgn.js";
|
|
6
6
|
import { i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
7
|
-
import { t as buildCatalog } from "./catalog-doc-
|
|
8
|
-
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-
|
|
9
|
-
import { t as parseCatalog } from "./parse-
|
|
7
|
+
import { t as buildCatalog } from "./catalog-doc-Zi0jRpyH.js";
|
|
8
|
+
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-C4p4VgwR.js";
|
|
9
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
10
10
|
import { t as operationFindings } from "./operation-findings-CVwJHEu_.js";
|
|
11
|
-
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-
|
|
11
|
+
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-BVZc7OCF.js";
|
|
12
12
|
import { existsSync, readFileSync } from "node:fs";
|
|
13
13
|
import { resolve } from "node:path";
|
|
14
14
|
//#region src/cli/diff/format.ts
|
|
@@ -21,7 +21,7 @@ const diff = defineLeaf({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags, args }) {
|
|
24
|
-
return (await import("./diff-
|
|
24
|
+
return (await import("./diff-BR9JArxz.js")).runDiff({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
sources: [args["before"], args["after"]].filter((value) => value !== void 0),
|
|
@@ -2,52 +2,54 @@ import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { o as hasConditionOp, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
3
3
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
5
|
-
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
6
|
-
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
7
5
|
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
7
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
8
|
+
import { u as separationConflicts } from "./policy-wGzbAPQF.js";
|
|
9
|
+
import { T as validateCustomRole } from "./evaluate-B5yZHmts.js";
|
|
10
|
+
import { s as parseCredential } from "./credential-Bap3HClV.js";
|
|
11
|
+
import "./authz-topic-Dbc-HDOS.js";
|
|
11
12
|
import { a as describeError, i as configError } from "./errors-BhRkoNS7.js";
|
|
12
13
|
import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
|
|
13
14
|
import { a as rel, n as doctorSrcPath, o as sqlFiles, r as listSourceFiles } from "./files-BSjrtIHw.js";
|
|
14
15
|
import { i as DOCTOR_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
15
|
-
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-
|
|
16
|
-
import {
|
|
16
|
+
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-Zi0jRpyH.js";
|
|
17
|
+
import { r as parseSync, t as createVisitor } from "./optional-8TKc-0j4.js";
|
|
18
|
+
import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-C4p4VgwR.js";
|
|
17
19
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
18
|
-
import { r as runCollect } from "./collect-
|
|
20
|
+
import { r as runCollect } from "./collect-Cr71JA7z.js";
|
|
19
21
|
import { n as supabaseTenantClaim } from "./budget-BBCPDOGP.js";
|
|
20
|
-
import { a as
|
|
22
|
+
import { a as betterSupabaseInstalled, c as filesOf, i as betterSupabaseDefaults, l as nodeFiles, n as betterSupabaseAuthzVersions, o as betterSupabaseTenantClaim, r as betterSupabaseConfig, s as workspaceDirs, t as BETTER_SUPABASE_AUTHZ_TOPIC, u as readJson } from "./better-supabase-DF8f8oly.js";
|
|
23
|
+
import { t as operationCoverage } from "./coverage-Dh2W_DmF.js";
|
|
21
24
|
import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
22
|
-
import { a as scopeMembershipTable } from "./compile-
|
|
25
|
+
import { a as scopeMembershipTable } from "./compile-Cvru58id.js";
|
|
23
26
|
import { d as keptKeys, r as PERMDOCK_SCHEMA } from "./sources-C4vkzZJV.js";
|
|
24
|
-
import { t as parseCatalog } from "./parse-
|
|
27
|
+
import { t as parseCatalog } from "./parse-CORUNcCo.js";
|
|
25
28
|
import { n as activeTenantMismatch } from "./active-tenant-DVee32-T.js";
|
|
26
29
|
import "./markers-BeHZ4x9Q.js";
|
|
27
30
|
import { t as didYouMean } from "./args-iafbHiXn.js";
|
|
28
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
31
|
+
import { t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
|
|
29
32
|
import { t as createStyle } from "./style-Ds11Hmk4.js";
|
|
30
|
-
import { a as nonEmptyOr, r as findingOf } from "./output-
|
|
31
|
-
import { i as runSkillsInstall } from "./skills-
|
|
33
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-CYgfpT6o.js";
|
|
34
|
+
import { i as runSkillsInstall } from "./skills-417bOj4o.js";
|
|
32
35
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
|
|
33
36
|
import { l as partPath } from "./output-files-CM0BnH05.js";
|
|
34
37
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
35
|
-
import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-
|
|
36
|
-
import { O as quoteIdent, t as CUSTOM_ROLES } from "./shared-
|
|
37
|
-
import {
|
|
38
|
-
import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
38
|
+
import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-Bh5syR9N.js";
|
|
39
|
+
import { O as quoteIdent, t as CUSTOM_ROLES } from "./shared-DfaIWvIJ.js";
|
|
40
|
+
import { $ as byKey, c as graphPlan, i as tableNames, ot as graphSqlName, r as tableNameOf } from "./tables-CbEOy2Ma.js";
|
|
41
|
+
import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-adPAsUwY.js";
|
|
39
42
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
40
43
|
import { i as group, n as membershipColumns, o as sqlStatements, r as tableKey } from "./deciding-columns-NB4wcyBf.js";
|
|
41
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
42
|
-
import { t as resolveNames } from "./resolve-names-
|
|
43
|
-
import {
|
|
44
|
-
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-
|
|
45
|
-
import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-
|
|
46
|
-
import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-
|
|
44
|
+
import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
|
|
45
|
+
import { t as resolveNames } from "./resolve-names-BnGJU88N.js";
|
|
46
|
+
import { C as splitIgnored, S as parseIgnores, d as rowConditionMessage, f as commandFor, h as tableFor, p as compileGrants, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-BSLotSa0.js";
|
|
47
|
+
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-0wsl83uw.js";
|
|
48
|
+
import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-Dpa5AnnN.js";
|
|
49
|
+
import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-ChXR-4Or.js";
|
|
47
50
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-B2xffQgY.js";
|
|
48
51
|
import { basename, dirname, join, resolve } from "node:path";
|
|
49
52
|
import { pathToFileURL } from "node:url";
|
|
50
|
-
import { Visitor, parseSync } from "oxc-parser";
|
|
51
53
|
import { createRequire } from "node:module";
|
|
52
54
|
//#region src/cli/project/project.ts
|
|
53
55
|
function loadProject(input) {
|
|
@@ -251,6 +253,13 @@ function applyDoctorIgnores(findings, config, flags) {
|
|
|
251
253
|
}
|
|
252
254
|
//#endregion
|
|
253
255
|
//#region src/cli/doctor/better-supabase.ts
|
|
256
|
+
function lookupOf(input) {
|
|
257
|
+
return {
|
|
258
|
+
cwd: input.cwd,
|
|
259
|
+
...input.files === void 0 ? {} : { files: input.files },
|
|
260
|
+
...input.config.betterSupabase?.config === void 0 ? {} : { path: input.config.betterSupabase.config }
|
|
261
|
+
};
|
|
262
|
+
}
|
|
254
263
|
function activeTenantOf(config) {
|
|
255
264
|
const blocks = config["blocks"];
|
|
256
265
|
const permissions = isRecord(blocks) ? blocks["permissions"] : void 0;
|
|
@@ -271,7 +280,7 @@ function activeTenantOf(config) {
|
|
|
271
280
|
*/
|
|
272
281
|
async function pd078(input) {
|
|
273
282
|
if (input.config.supabase?.hook === void 0) return [];
|
|
274
|
-
const config = await betterSupabaseConfig(input);
|
|
283
|
+
const config = await betterSupabaseConfig(lookupOf(input));
|
|
275
284
|
if (config === void 0) return [];
|
|
276
285
|
const activeTenant = activeTenantOf(config);
|
|
277
286
|
if (activeTenant === void 0) return [];
|
|
@@ -318,7 +327,7 @@ function isKeyLister(value) {
|
|
|
318
327
|
* does not list: no role holds it, so the block's SQL checks deny it.
|
|
319
328
|
*/
|
|
320
329
|
async function pd079(input) {
|
|
321
|
-
const blocks = (await betterSupabaseConfig(input))?.["blocks"];
|
|
330
|
+
const blocks = (await betterSupabaseConfig(lookupOf(input)))?.["blocks"];
|
|
322
331
|
if (!isRecord(blocks)) return [];
|
|
323
332
|
const files = filesOf(input);
|
|
324
333
|
const path = catalogPath(input.config, input.cwd);
|
|
@@ -353,7 +362,7 @@ async function pd079(input) {
|
|
|
353
362
|
async function pd082(input) {
|
|
354
363
|
const hook = input.config.supabase?.hook;
|
|
355
364
|
if (hook === void 0 || hook.version === false) return [];
|
|
356
|
-
const config = await betterSupabaseConfig(input);
|
|
365
|
+
const config = await betterSupabaseConfig(lookupOf(input));
|
|
357
366
|
if (config === void 0 || !betterSupabaseAuthzVersions(config)) return [];
|
|
358
367
|
return [{
|
|
359
368
|
code: "PD082",
|
|
@@ -362,6 +371,36 @@ async function pd082(input) {
|
|
|
362
371
|
fix: "turn blocks.sessions.authzVersions off; PermDock's trigger broadcasts on better_supabase:authz and authz:<uid>, which better-supabase's subscribeAuthzVersions and SessionProvider read"
|
|
363
372
|
}];
|
|
364
373
|
}
|
|
374
|
+
/**
|
|
375
|
+
* The hook broadcasts a version bump on another topic than better-supabase
|
|
376
|
+
* subscribes to, or better-supabase is a dependency while its config is not
|
|
377
|
+
* found, so the hook cannot read its tenant claim and sessions block.
|
|
378
|
+
*/
|
|
379
|
+
async function pd087(input) {
|
|
380
|
+
const hook = input.config.supabase?.hook;
|
|
381
|
+
if (hook === void 0 || hook.version === false) return [];
|
|
382
|
+
const config = await betterSupabaseConfig(lookupOf(input));
|
|
383
|
+
const installed = config !== void 0 || betterSupabaseInstalled(input);
|
|
384
|
+
if (!installed) return [];
|
|
385
|
+
const findings = [];
|
|
386
|
+
const resolved = betterSupabaseDefaults(input.config, config, installed).supabase?.hook?.broadcast;
|
|
387
|
+
if (resolved !== false) {
|
|
388
|
+
const topic = resolved?.topic ?? "permdock:authz";
|
|
389
|
+
if (topic !== "better_supabase:authz") findings.push({
|
|
390
|
+
code: "PD087",
|
|
391
|
+
severity: "warning",
|
|
392
|
+
message: `supabase.hook broadcasts authorization version changes on ${topic}, and better-supabase's subscribeAuthzVersions and SessionProvider listen on ${BETTER_SUPABASE_AUTHZ_TOPIC}: a role change never reaches a signed-in client`,
|
|
393
|
+
fix: `remove supabase.hook.broadcast.topic, or set it to ${BETTER_SUPABASE_AUTHZ_TOPIC}, then run permdock supabase hook generate`
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
if (config === void 0) findings.push({
|
|
397
|
+
code: "PD087",
|
|
398
|
+
severity: "warning",
|
|
399
|
+
message: "better-supabase is a dependency but its config file was not found from permdock.config.ts up to the workspace root, so supabase.hook cannot read its tenant claim or sessions block",
|
|
400
|
+
fix: "set betterSupabase.config in permdock.config.ts to the better-supabase.config.* path"
|
|
401
|
+
});
|
|
402
|
+
return findings;
|
|
403
|
+
}
|
|
365
404
|
//#endregion
|
|
366
405
|
//#region src/cli/doctor/catalog.ts
|
|
367
406
|
/**
|
|
@@ -466,6 +505,7 @@ function namedIn(config) {
|
|
|
466
505
|
return [
|
|
467
506
|
...named("rls.tables", "resource", keysOf(rls?.tables)),
|
|
468
507
|
...named("rls.scopeTypes", "scope", keysOf(rls?.scopeTypes)),
|
|
508
|
+
...named("rls.idTypes", "resource", keysOf(rls?.idTypes).filter((name) => name !== "*")),
|
|
469
509
|
...named("rls.actions", "action", keysOf(rls?.actions)),
|
|
470
510
|
...named("rls.memberships.scopes", "scope", keysOf(rls?.memberships?.scopes)),
|
|
471
511
|
...named("rls.suspension.scopes", "scope", keysOf(rls?.suspension?.scopes)),
|
|
@@ -906,6 +946,51 @@ async function pd085(project) {
|
|
|
906
946
|
return findings;
|
|
907
947
|
}
|
|
908
948
|
//#endregion
|
|
949
|
+
//#region src/cli/doctor/lockfile.ts
|
|
950
|
+
const LOCKFILE = "pnpm-lock.yaml";
|
|
951
|
+
const MAX_LEVELS = 8;
|
|
952
|
+
/**
|
|
953
|
+
* `permdock@0.21.0(react@19.1.0)(zod@4.1.0):` under `snapshots:`; the peers are
|
|
954
|
+
* the parenthesised groups.
|
|
955
|
+
*/
|
|
956
|
+
const SNAPSHOT_KEY = /^ {2}'?permdock@([^(:'\s]+)((?:\([^)]*\))*)'?:\s*$/gmu;
|
|
957
|
+
function lockfileFrom(project) {
|
|
958
|
+
let dir = project.cwd;
|
|
959
|
+
for (let level = 0; level < MAX_LEVELS; level += 1) {
|
|
960
|
+
const candidate = join(dir, LOCKFILE);
|
|
961
|
+
if (project.files.exists(candidate)) return candidate;
|
|
962
|
+
const parent = dirname(dir);
|
|
963
|
+
if (parent === dir) return;
|
|
964
|
+
dir = parent;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* PD092: `pnpm-lock.yaml` resolves one `permdock` version with two or more peer
|
|
969
|
+
* sets, so an app loads two copies. Module state does not cross copies except
|
|
970
|
+
* through `Symbol.for` brands.
|
|
971
|
+
*/
|
|
972
|
+
function pd092(project) {
|
|
973
|
+
const lockfile = lockfileFrom(project);
|
|
974
|
+
if (lockfile === void 0) return [];
|
|
975
|
+
const variants = /* @__PURE__ */ new Map();
|
|
976
|
+
for (const match of project.files.read(lockfile).matchAll(SNAPSHOT_KEY)) {
|
|
977
|
+
const version = match[1] ?? "";
|
|
978
|
+
const peers = variants.get(version) ?? /* @__PURE__ */ new Set();
|
|
979
|
+
peers.add(match[2] ?? "");
|
|
980
|
+
variants.set(version, peers);
|
|
981
|
+
}
|
|
982
|
+
return [...variants].filter(([, peers]) => peers.size > 1).map(([version, peers]) => {
|
|
983
|
+
const sets = [...peers].map((peer) => peer === "" ? "(no peers)" : peer);
|
|
984
|
+
return {
|
|
985
|
+
code: "PD092",
|
|
986
|
+
severity: "warning",
|
|
987
|
+
message: `${LOCKFILE} resolves permdock@${version} ${String(peers.size)} times: ${sets.join(" and ")}`,
|
|
988
|
+
fix: "align the peer versions across workspace packages, or add a pnpm overrides entry for the peer that differs",
|
|
989
|
+
target: `permdock@${version}`
|
|
990
|
+
};
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
//#endregion
|
|
909
994
|
//#region src/cli/doctor/next.ts
|
|
910
995
|
const ROUTE_GLOBS = ["**/api/permdock/route.{ts,tsx,js,jsx,mjs}"];
|
|
911
996
|
const ENDPOINT = /\bendpoint\s*(?::|=)\s*\{?\s*['"`]/u;
|
|
@@ -992,6 +1077,96 @@ async function pd065(input) {
|
|
|
992
1077
|
})));
|
|
993
1078
|
}
|
|
994
1079
|
//#endregion
|
|
1080
|
+
//#region src/cli/doctor/openapi.ts
|
|
1081
|
+
function isOperationPermissions(value) {
|
|
1082
|
+
return isRecord(value) && typeof value["entries"] === "function";
|
|
1083
|
+
}
|
|
1084
|
+
/** `path#export` splits at the last `#`; without one the export is `operations`. */
|
|
1085
|
+
function splitSpecifier(specifier) {
|
|
1086
|
+
const hash = specifier.lastIndexOf("#");
|
|
1087
|
+
return hash === -1 ? {
|
|
1088
|
+
path: specifier,
|
|
1089
|
+
name: "operations"
|
|
1090
|
+
} : {
|
|
1091
|
+
path: specifier.slice(0, hash),
|
|
1092
|
+
name: specifier.slice(hash + 1)
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* PD091 runs only when the config names the operations, the documents and the
|
|
1097
|
+
* tenant paths.
|
|
1098
|
+
*/
|
|
1099
|
+
function pd091Applies(config) {
|
|
1100
|
+
return config.openapi?.operations !== void 0 && config.openapi.tenantPaths !== void 0 && (config.openapi.doc?.length ?? 0) > 0;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* PD091: an operation under `openapi.tenantPaths` that `openapi.operations`
|
|
1104
|
+
* declares no entry for, so the HTTP gate denies it, or a declared entry that
|
|
1105
|
+
* matches no operation of an `openapi.doc` document. It runs
|
|
1106
|
+
* `operationCoverage`, the function `testOperationCoverage` runs.
|
|
1107
|
+
*/
|
|
1108
|
+
async function pd091(project) {
|
|
1109
|
+
const openapi = project.config.openapi;
|
|
1110
|
+
if (openapi?.operations === void 0 || openapi.tenantPaths === void 0) return [];
|
|
1111
|
+
const { path, name } = splitSpecifier(openapi.operations);
|
|
1112
|
+
let operations;
|
|
1113
|
+
try {
|
|
1114
|
+
operations = (await loadModule(resolve(project.cwd, path)))[name];
|
|
1115
|
+
} catch (error) {
|
|
1116
|
+
return [{
|
|
1117
|
+
code: "PD091",
|
|
1118
|
+
severity: "error",
|
|
1119
|
+
message: `openapi.operations '${openapi.operations}' does not load: ${describeError(error)}`,
|
|
1120
|
+
fix: "point openapi.operations at '<module>#<export>' of an operationPermissions(...) result",
|
|
1121
|
+
target: openapi.operations
|
|
1122
|
+
}];
|
|
1123
|
+
}
|
|
1124
|
+
if (!isOperationPermissions(operations)) return [{
|
|
1125
|
+
code: "PD091",
|
|
1126
|
+
severity: "error",
|
|
1127
|
+
message: `openapi.operations '${openapi.operations}' is not an operationPermissions(...) result`,
|
|
1128
|
+
fix: "export the operationPermissions(...) result and name it as '<module>#<export>'",
|
|
1129
|
+
target: openapi.operations
|
|
1130
|
+
}];
|
|
1131
|
+
const findings = [];
|
|
1132
|
+
for (const doc of openapi.doc ?? []) {
|
|
1133
|
+
const abs = resolve(project.cwd, doc);
|
|
1134
|
+
if (!project.files.exists(abs)) continue;
|
|
1135
|
+
let document;
|
|
1136
|
+
try {
|
|
1137
|
+
document = JSON.parse(project.files.read(abs));
|
|
1138
|
+
} catch {
|
|
1139
|
+
findings.push({
|
|
1140
|
+
code: "PD091",
|
|
1141
|
+
severity: "error",
|
|
1142
|
+
message: `${doc} is not valid JSON, so operation coverage cannot be checked`,
|
|
1143
|
+
fix: "regenerate the document with permdock openapi",
|
|
1144
|
+
target: doc
|
|
1145
|
+
});
|
|
1146
|
+
continue;
|
|
1147
|
+
}
|
|
1148
|
+
const coverage = operationCoverage(operations, document, {
|
|
1149
|
+
tenantPaths: openapi.tenantPaths,
|
|
1150
|
+
...openapi.base === void 0 ? {} : { base: openapi.base }
|
|
1151
|
+
});
|
|
1152
|
+
for (const label of coverage.undeclared) findings.push({
|
|
1153
|
+
code: "PD091",
|
|
1154
|
+
severity: "error",
|
|
1155
|
+
message: `${doc}: ${label} is under a tenant path and has no entry in ${openapi.operations}, so the gate denies it`,
|
|
1156
|
+
fix: `declare '${label.replace(openapi.base ?? "", "")}' in operationPermissions, or move it out of openapi.tenantPaths`,
|
|
1157
|
+
target: `${doc}:${label}`
|
|
1158
|
+
});
|
|
1159
|
+
for (const label of coverage.stale) findings.push({
|
|
1160
|
+
code: "PD091",
|
|
1161
|
+
severity: "error",
|
|
1162
|
+
message: `${doc}: ${openapi.operations} declares ${label}, which the document does not contain`,
|
|
1163
|
+
fix: "remove the entry or regenerate the document",
|
|
1164
|
+
target: `${doc}:${label}`
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
return findings;
|
|
1168
|
+
}
|
|
1169
|
+
//#endregion
|
|
995
1170
|
//#region src/cli/doctor/per-request.ts
|
|
996
1171
|
/** Factories whose answers or entries only pay off when one is shared. */
|
|
997
1172
|
const SHARED_FACTORIES = {
|
|
@@ -1038,7 +1213,7 @@ function callsInFunctions(source, cacheHelpers) {
|
|
|
1038
1213
|
const exit = () => {
|
|
1039
1214
|
depth -= 1;
|
|
1040
1215
|
};
|
|
1041
|
-
|
|
1216
|
+
createVisitor({
|
|
1042
1217
|
ImportDeclaration(node) {
|
|
1043
1218
|
if (node.importKind === "type" || !isPermDockSpecifier(node.source.value)) return;
|
|
1044
1219
|
for (const specifier of node.specifiers) if (specifier.type === "ImportNamespaceSpecifier") namespaces.add(specifier.local.name);
|
|
@@ -2066,26 +2241,27 @@ async function pd086(input) {
|
|
|
2066
2241
|
}
|
|
2067
2242
|
/**
|
|
2068
2243
|
* PD075: two resources that `rls.tables` maps to one table, each with its own
|
|
2069
|
-
* keys and helpers for the same rows. `
|
|
2070
|
-
*
|
|
2244
|
+
* keys and helpers for the same rows. A resource declared `{ tableOf }` is the
|
|
2245
|
+
* intended way to share a table and is not counted.
|
|
2071
2246
|
*/
|
|
2072
2247
|
async function pd075(input) {
|
|
2073
2248
|
const rls = input.config.rls;
|
|
2074
2249
|
if (rls === void 0 || input.config.policy === void 0) return [];
|
|
2075
2250
|
const policy = await policyOf(input);
|
|
2076
2251
|
if (policy === void 0) return [];
|
|
2077
|
-
const allowed = new Set((input.config.doctor?.sharedTables ?? []).map(qualifySqlTable));
|
|
2078
2252
|
const byTable = /* @__PURE__ */ new Map();
|
|
2079
2253
|
for (const leaf of listPermissions(policy.vocabulary.permissions)) {
|
|
2080
|
-
const
|
|
2254
|
+
const entry = rls.tables?.[leaf.resource];
|
|
2255
|
+
if (typeof entry === "object" && "tableOf" in entry) continue;
|
|
2256
|
+
const table = qualifySqlTable(tableNameOf(entry, leaf.resource));
|
|
2081
2257
|
byTable.set(table, (byTable.get(table) ?? /* @__PURE__ */ new Set()).add(leaf.resource));
|
|
2082
2258
|
}
|
|
2083
|
-
return [...byTable.entries()].filter(([
|
|
2259
|
+
return [...byTable.entries()].filter(([, resources]) => resources.size > 1).toSorted(byKey).map(([table, resources]) => {
|
|
2084
2260
|
return {
|
|
2085
2261
|
code: "PD075",
|
|
2086
2262
|
severity: "warning",
|
|
2087
2263
|
message: `rls.tables maps ${[...resources].toSorted().join(" and ")} to ${table}, so the same rows carry two sets of keys and helpers`,
|
|
2088
|
-
fix: `merge them into one resource (https://permdock.com/docs/guides/merge-resources), or
|
|
2264
|
+
fix: `merge them into one resource (https://permdock.com/docs/guides/merge-resources), or declare one with rls.tables.<resource>: { tableOf: '<owner>' } so only the owner writes ${table} policies`
|
|
2089
2265
|
};
|
|
2090
2266
|
});
|
|
2091
2267
|
}
|
|
@@ -2606,6 +2782,84 @@ function pd066(cwd, config, files = nodeFiles) {
|
|
|
2606
2782
|
};
|
|
2607
2783
|
});
|
|
2608
2784
|
}
|
|
2785
|
+
const ROWS_HELPER = String.raw`(?:"[^"]+"\.|\w+\.)?"?permitted_\w+_rows"?`;
|
|
2786
|
+
const TEXT_CAST_ON_ROWS = new RegExp(String.raw`::\s*text\s+in\s*\(\s*select\s+${ROWS_HELPER}\s*\(|${ROWS_HELPER}\s*\([^()]*(?:\([^()]*\)[^()]*)*\)\s*::\s*text\b|(?:"[^"]+"\.|\w+\.)?"?permitted_\w+_row"?\s*\(\s*[^,()]+::\s*text\s*,`, "iu");
|
|
2787
|
+
const KNOWN_ID_IN_ROWS = new RegExp(String.raw`(?:\$\d+|\bp_\w+|\b(?:new|old)\.\w+)(?:\s*::\s*\w+)?\s+in\s*\(\s*select\s+${ROWS_HELPER}\s*\(`, "iu");
|
|
2788
|
+
function firstLine(statement, index) {
|
|
2789
|
+
return statement.line + statement.text.slice(0, index).split("\n").length - 1;
|
|
2790
|
+
}
|
|
2791
|
+
function rowHelperStatements(cwd, config, files) {
|
|
2792
|
+
return migrationStatements(files, cwd, config).filter((statement) => !CREATE_FUNCTION.test(statement.text));
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* PD088: a `::text` cast on a row-helper call. The helpers return the
|
|
2796
|
+
* resource's id type, so the cast defeats the index on the id column and fails
|
|
2797
|
+
* against a `uuid` helper.
|
|
2798
|
+
*/
|
|
2799
|
+
function pd088(cwd, config, files = nodeFiles) {
|
|
2800
|
+
if (config.rls?.dialect === "neon" || config.rls?.idTypes?.["*"] === "text") return [];
|
|
2801
|
+
return rowHelperStatements(cwd, config, files).flatMap((statement) => {
|
|
2802
|
+
const match = TEXT_CAST_ON_ROWS.exec(statement.text);
|
|
2803
|
+
return match === null ? [] : [{
|
|
2804
|
+
code: "PD088",
|
|
2805
|
+
severity: "warning",
|
|
2806
|
+
message: `${statement.file}:${String(firstLine(statement, match.index))} casts to text around a permitted_*_rows or permitted_*_row call`,
|
|
2807
|
+
fix: "compare the id column to the helper's own type (uuid by default) and set rls.idTypes when the column is not uuid, then run permdock rls generate"
|
|
2808
|
+
}];
|
|
2809
|
+
});
|
|
2810
|
+
}
|
|
2811
|
+
/**
|
|
2812
|
+
* PD089: `<known id> in (select permitted_*_rows(...))`. The `_rows` helper
|
|
2813
|
+
* lists every permitted row; for one id the `permitted_*_row(id, permission)`
|
|
2814
|
+
* overload checks that row alone.
|
|
2815
|
+
*/
|
|
2816
|
+
function pd089(cwd, config, files = nodeFiles) {
|
|
2817
|
+
return rowHelperStatements(cwd, config, files).flatMap((statement) => {
|
|
2818
|
+
const match = KNOWN_ID_IN_ROWS.exec(statement.text);
|
|
2819
|
+
return match === null ? [] : [{
|
|
2820
|
+
code: "PD089",
|
|
2821
|
+
severity: "warning",
|
|
2822
|
+
message: `${statement.file}:${String(firstLine(statement, match.index))} tests one id against the whole permitted_*_rows set`,
|
|
2823
|
+
fix: "call permitted_<resource>_row(id, permission), which evaluates that row only"
|
|
2824
|
+
}];
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2827
|
+
const POLICY_COMMAND = /\bfor\s+(all|select|insert|update|delete)\b/iu;
|
|
2828
|
+
const ACTOR_GUARD_CALL = /\bpermdock_actor_may_write\s*\(/iu;
|
|
2829
|
+
const WRITE_COMMANDS = [
|
|
2830
|
+
"insert",
|
|
2831
|
+
"update",
|
|
2832
|
+
"delete"
|
|
2833
|
+
];
|
|
2834
|
+
function policyStatements(statements) {
|
|
2835
|
+
return statements.flatMap((statement) => {
|
|
2836
|
+
const match = CREATE_POLICY.exec(header(statement.text));
|
|
2837
|
+
if (match === null) return [];
|
|
2838
|
+
const command = POLICY_COMMAND.exec(group(match, 3))?.[1]?.toLowerCase();
|
|
2839
|
+
return [{
|
|
2840
|
+
...statement,
|
|
2841
|
+
name: unquote(group(match, 1)),
|
|
2842
|
+
table: tableKey(group(match, 2)),
|
|
2843
|
+
commands: command === void 0 || command === "all" ? WRITE_COMMANDS : [command],
|
|
2844
|
+
guarded: ACTOR_GUARD_CALL.test(statement.text)
|
|
2845
|
+
}];
|
|
2846
|
+
});
|
|
2847
|
+
}
|
|
2848
|
+
/**
|
|
2849
|
+
* PD090: a hand-written policy calls `permdock_actor_may_write()` on a table
|
|
2850
|
+
* and command where `permdock rls generate` already writes a restrictive
|
|
2851
|
+
* `*_read_only_actors` policy, so the guard runs twice.
|
|
2852
|
+
*/
|
|
2853
|
+
function pd090(cwd, config, files = nodeFiles) {
|
|
2854
|
+
const policies = policyStatements(migrationStatements(files, cwd, config));
|
|
2855
|
+
const generated = new Set(policies.filter((policy) => policy.name.endsWith("_read_only_actors")).flatMap((policy) => policy.commands.map((command) => `${policy.table}:${command}`)));
|
|
2856
|
+
return policies.filter((policy) => !policy.name.endsWith("_read_only_actors")).filter((policy) => policy.guarded && policy.commands.some((command) => generated.has(`${policy.table}:${command}`))).map((policy) => ({
|
|
2857
|
+
code: "PD090",
|
|
2858
|
+
severity: "warning",
|
|
2859
|
+
message: `${policy.file}:${String(policy.line)} policy ${policy.name} on ${policy.table} repeats the permdock_actor_may_write() guard of the generated read-only actor policy`,
|
|
2860
|
+
fix: "remove the permdock_actor_may_write() call from the hand-written policy; the restrictive policy applies to it already"
|
|
2861
|
+
}));
|
|
2862
|
+
}
|
|
2609
2863
|
//#endregion
|
|
2610
2864
|
//#region src/cli/doctor/suspension.ts
|
|
2611
2865
|
/**
|
|
@@ -2745,6 +2999,12 @@ const DOCTOR_CHECKS = [
|
|
|
2745
2999
|
when: (config) => config.supabase?.hook !== void 0,
|
|
2746
3000
|
run: pd082
|
|
2747
3001
|
},
|
|
3002
|
+
{
|
|
3003
|
+
code: "PD087",
|
|
3004
|
+
groups: ["supabase", "better-supabase"],
|
|
3005
|
+
when: (config) => config.supabase?.hook !== void 0,
|
|
3006
|
+
run: pd087
|
|
3007
|
+
},
|
|
2748
3008
|
{
|
|
2749
3009
|
code: "PD083",
|
|
2750
3010
|
groups: ["supabase"],
|
|
@@ -3017,7 +3277,10 @@ const DOCTOR_CHECKS = [
|
|
|
3017
3277
|
["PD052", pd052],
|
|
3018
3278
|
["PD053", pd053],
|
|
3019
3279
|
["PD062", pd062],
|
|
3020
|
-
["PD063", pd063]
|
|
3280
|
+
["PD063", pd063],
|
|
3281
|
+
["PD088", pd088],
|
|
3282
|
+
["PD089", pd089],
|
|
3283
|
+
["PD090", pd090]
|
|
3021
3284
|
].map(([code, check]) => ({
|
|
3022
3285
|
code,
|
|
3023
3286
|
groups: ["supabase", "sql"],
|
|
@@ -3077,6 +3340,17 @@ const DOCTOR_CHECKS = [
|
|
|
3077
3340
|
when: (config) => config.rls?.assignments !== void 0,
|
|
3078
3341
|
run: pd064
|
|
3079
3342
|
},
|
|
3343
|
+
{
|
|
3344
|
+
code: "PD091",
|
|
3345
|
+
groups: ["openapi"],
|
|
3346
|
+
when: pd091Applies,
|
|
3347
|
+
run: pd091
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
code: "PD092",
|
|
3351
|
+
groups: ["project"],
|
|
3352
|
+
run: pd092
|
|
3353
|
+
},
|
|
3080
3354
|
{
|
|
3081
3355
|
code: "PD044",
|
|
3082
3356
|
groups: ["next", "endpoint"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
2
|
import { a as failOnFlag, n as dbUrl, r as dbUrlFlags } from "./flags-BlmpmXoY.js";
|
|
3
|
-
import { n as ask, t as CANCELLED } from "./prompt-
|
|
3
|
+
import { n as ask, t as CANCELLED } from "./prompt-D1Gj1W4Y.js";
|
|
4
4
|
//#region src/cli/commands/doctor.ts
|
|
5
5
|
const doctor = defineLeaf({
|
|
6
6
|
flags: {
|
|
@@ -10,7 +10,7 @@ const doctor = defineLeaf({
|
|
|
10
10
|
description: "Check codes or groups to run",
|
|
11
11
|
valueHint: "code",
|
|
12
12
|
async complete() {
|
|
13
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
13
|
+
const { DOCTOR_CHECKS } = await import("./doctor-BBMW5ZT_.js");
|
|
14
14
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -35,7 +35,7 @@ const doctor = defineLeaf({
|
|
|
35
35
|
if (answer === void 0) return CANCELLED;
|
|
36
36
|
fix = answer;
|
|
37
37
|
}
|
|
38
|
-
return (await import("./doctor-
|
|
38
|
+
return (await import("./doctor-BBMW5ZT_.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-BaB-KQqn.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-DC-BrhH1.js";
|
|
5
5
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
6
6
|
import { SQL, Table } from "drizzle-orm";
|
|
7
7
|
//#region src/drizzle/types.d.ts
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { t as assertSafeKey } from "../paths-CUvURzHp.js";
|
|
3
|
-
import { n as compileWhere, r as escapeLike } from "../compile-
|
|
3
|
+
import { n as compileWhere, r as escapeLike } from "../compile-Cvru58id.js";
|
|
4
4
|
import { a as rowCheckFrom, i as templateOf, r as subjectStatements, s as loadPeer, t as statementTemplate } from "../subject-settings-8sH5HlII.js";
|
|
5
5
|
//#region src/drizzle/to-where.ts
|
|
6
6
|
function loadOperators(injected) {
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
2
|
-
import {
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-rNfz7t0M.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
+
import { a as PermDock } from "../permdock-BaB-KQqn.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types--_Hann81.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-CnOMjazH.js";
|
|
7
7
|
import { Elysia } from "elysia";
|
|
8
8
|
//#region src/elysia/create.d.ts
|
|
9
9
|
type ElysiaRequestContext = {
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-BzTDWO4m.js";
|
|
1
2
|
import { a as parsedBody, r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as problemFromError } from "../map-error-
|
|
4
|
-
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-gwEbe9hL.js";
|
|
3
|
+
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-B4Z0U2Gr.js";
|
|
4
|
+
import { t as problemFromError } from "../map-error-p4ROJ_26.js";
|
|
5
5
|
import { a as onRevoked, n as closeReason, t as POLICY_VIOLATION } from "../stream-DQ3rbO3J.js";
|
|
6
6
|
import { Elysia } from "elysia";
|
|
7
7
|
//#region src/elysia/create.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Yn as Decision, xr as Subject, yn as WireDenial } from "./policy-types-
|
|
1
|
+
import { Yn as Decision, xr as Subject, yn as WireDenial } from "./policy-types-rNfz7t0M.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/core/problem-details.d.ts
|
|
4
4
|
type Disclosure = "hide" | "reveal";
|