permdock 0.22.1 → 0.23.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 +4 -4
- package/dist/{adoption-scan-DzX5Gqcg.js → adoption-scan-CNoE5yBA.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 +2 -2
- package/dist/app/index.d.ts +6 -6
- package/dist/app/index.js +4 -4
- package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
- package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
- package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
- package/dist/{arazzo-BkjyGVF0.js → arazzo-4rMFOHbu.js} +1 -1
- package/dist/{arazzo-CTx11zFc.js → arazzo-rsYPFgga.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.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 +35 -10
- package/dist/better-supabase/index.js +58 -15
- package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
- package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
- package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
- package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
- package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
- package/dist/{casbin-BFOuRptJ.js → casbin-CjUT-wqV.js} +1 -1
- package/dist/{casbin-BpS9ABSO.js → casbin-Dg5N0Gfa.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +5 -5
- package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
- package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
- package/dist/catalog-DqYnQz8U.js +1 -0
- package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
- package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +3 -3
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +1 -1
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-DXcQXWDi.js → cloud-Blw4AaQv.js} +2 -2
- package/dist/{codemod-CxyKuniX.js → codemod-BFFXaS-S.js} +1 -1
- package/dist/{codemod-DJ0WqXWk.js → codemod-ByRUKVp-.js} +2 -2
- package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
- package/dist/collect-CjFczu8a.js +1 -0
- package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
- package/dist/{completion-BHVvAJ6Q.js → completion-BW53byZN.js} +1 -1
- package/dist/{config-2grt3oll.js → config-B0qti4jI.js} +1 -1
- package/dist/{config-report-Cg5Y5j0h.js → config-report-DgMqeeK6.js} +2 -2
- package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +1 -1
- package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
- package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
- package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
- package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
- package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
- package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
- package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
- package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
- package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
- package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
- package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
- package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
- package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
- package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
- package/dist/{doctor-iIbdUK8F.js → doctor-Jk2Ifezw.js} +2 -2
- package/dist/{doctor-DaRoSPT0.js → doctor-oD08zL1e.js} +37 -19
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
- package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
- package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
- package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
- package/dist/evaluator-BvRk9kiK.js +0 -0
- package/dist/evaluator-eager-DvmrpdZt.js +9 -0
- package/dist/evaluator-mHAoYEkk.js +2 -0
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- 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-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
- package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
- package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
- package/dist/fields-DlKwZYiy.js +26 -0
- package/dist/from-snapshot-CdGYjHUg.js +153 -0
- package/dist/{gen-Cw8goef4.js → gen-BwcwwLok.js} +3 -3
- package/dist/{gen-DFpWGJWF.js → gen-D4ulqsYR.js} +1 -1
- package/dist/grantee-OG4klcNr.js +110 -0
- package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
- package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
- package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
- package/dist/{import-DDegvwDI.js → import-BsrnU4BF.js} +1 -1
- package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
- package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
- package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
- package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
- package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
- package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +21 -18
- package/dist/{init-D_T_zgFg.js → init-Baq0yYfu.js} +1 -1
- package/dist/{init-Dz552ZPp.js → init-Cik6ITgM.js} +3 -3
- package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
- package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DIVe6QdP.js → login-CUboKh0f.js} +3 -3
- package/dist/{login-B2usNw0X.js → login-CcBS1xkU.js} +1 -1
- package/dist/{manifest-D44OkoLk.js → manifest-BoCYBbQL.js} +1 -1
- package/dist/{manifest-CbHnl4I_.js → manifest-CIlVL-QT.js} +35 -35
- package/dist/{manifest-schema-DUheHWcp.js → manifest-schema-svAkgqMc.js} +1 -1
- package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
- package/dist/may-use-D0_wNcgB.js +126 -0
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +5 -5
- package/dist/membership-filter-CfLdP_F9.js +68 -0
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +6 -6
- 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 +2 -2
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-5moP9sTG.js → openapi-DglIpD53.js} +2 -2
- package/dist/{openapi-DcvNnLFa.js → openapi-DobvXTF6.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-RIUEs3_S.js → output-B81GJ6u6.js} +1 -1
- package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
- package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +3 -3
- package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
- package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
- package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
- package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
- package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
- package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
- package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
- package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
- package/dist/{powersync-C5_aFFaU.js → powersync-B6f4l8C1.js} +2 -2
- package/dist/{powersync-BUO5uQve.js → powersync-BUUqJfH2.js} +6 -6
- package/dist/powersync-D12Q6Chj.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-E7Sdt_Dt.js → protected-action-CdqR2-E2.js} +80 -12
- package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
- package/dist/{provider-DKO9KHua.js → provider-6mpRZO1E.js} +21 -3
- package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
- package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
- package/dist/{pull-BkT7tTKb.js → pull-4Yi8zYeU.js} +3 -3
- package/dist/pull-Dr6Bq5Jo.js +1 -0
- package/dist/{push-CEPcWdTJ.js → push-Dv1nfFPr.js} +3 -3
- package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
- package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.js +4 -4
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +7 -6
- package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
- package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-bzYlAXRt.js → resolve-names-SGcLjtFc.js} +2 -2
- package/dist/{rls-v6V75yf_.js → rls-Df9NEWD3.js} +1 -1
- package/dist/{rls-DTf8X__h.js → rls-hmwRIS3-.js} +11 -11
- package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
- package/dist/row-pair-DglMdRFh.js +34 -0
- package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
- package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
- package/dist/{run-CgSQS9RF.js → run-BXmJIjRA.js} +2 -2
- package/dist/run-DnzrDgU-.js +1 -0
- package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
- package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
- package/dist/{scan-BY3Pp1PS.js → scan-BrTSlc_5.js} +1 -1
- package/dist/{schema-B_HsJKm2.js → schema-UOeI_LTB.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +5 -5
- package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
- package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
- package/dist/{skills-Bj2wk38p.js → skills-BTVeFptV.js} +1 -1
- package/dist/{skills-Clo4qYLn.js → skills-CAgWKbDR.js} +1 -1
- package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
- package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
- package/dist/snapshot-empty-BoPBFoB8.js +17 -0
- package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
- package/dist/snapshot-reads-DOsTYC82.js +66 -0
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-CdYZBVcW.d.ts → sources-DhCtO9G8.d.ts} +1 -1
- package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
- package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
- package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
- package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
- package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
- package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
- package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
- package/dist/supabase/index.d.ts +6 -6
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
- package/dist/{supabase-CJv6K3iz.js → supabase-Bt8rb-ah.js} +2 -2
- package/dist/{supabase-hook-DLQMugW8.js → supabase-hook-Cb3UZpGC.js} +6 -5
- package/dist/supabase-hook-D1pwHu87.js +1 -0
- package/dist/{supautils-BHKsP7l-.js → supautils-CuR9rPsi.js} +8 -8
- 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-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
- 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 +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +3 -3
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +47 -41
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +3 -3
- package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
- package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
- package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
- package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
- package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
- package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
- package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
- package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
- package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
- package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
- package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
- package/dist/{types-cNZhj0UF.d.ts → types-JmB6unT6.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DlOllyPi.js → usage-B6sQwycY.js} +4 -4
- package/dist/{usage-BUUXeKwk.js → usage-CNkKk27O.js} +1 -1
- package/dist/usage-Cem1FOeJ.js +1 -0
- package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
- package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
- package/dist/{verify-CfmvQjVw.js → verify-OtU4yCzg.js} +11 -11
- package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
- package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
- package/dist/watch-B8F7Wgdy.js +1 -0
- package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +1 -1
- package/skills/permdock-wire/references/adapters.md +2 -0
- package/dist/catalog-C462QC3A.js +0 -1
- package/dist/collect-W9i7REKT.js +0 -1
- package/dist/from-snapshot-oR_N97dM.js +0 -927
- package/dist/powersync-DhspazC8.js +0 -1
- package/dist/pull-COPm1W-l.js +0 -1
- package/dist/run-ItR_bQGz.js +0 -1
- package/dist/supabase-hook-vZADjjfN.js +0 -1
- package/dist/usage-NmH5QXKC.js +0 -1
- package/dist/watch-CHURMgrv.js +0 -1
- package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
- package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
- package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-CAA3VJMX.js";
|
|
3
3
|
//#region src/sveltekit/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (event) => event,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
2
2
|
import { a as expandRelation, c as isEdgeRelation, d as isSelfParented, l as isFieldRelation, o as groupEntries, p as restrictedFor, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
3
|
-
import { o as flattenGrantee } from "./grantee-
|
|
3
|
+
import { o as flattenGrantee } from "./grantee-OG4klcNr.js";
|
|
4
4
|
import { c as rootScope, d as scopeList, l as scopeChain, s as resolveScope } from "./scopes-gdH__vDZ.js";
|
|
5
5
|
import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dzprappv.js";
|
|
6
6
|
import { l as partitionsOf, p as scopeField } from "./tenancy-BlxY5T0q.js";
|
|
7
|
-
import { a as delegatedScopeMap } from "./permdock-
|
|
7
|
+
import { a as delegatedScopeMap } from "./permdock-HfTF99xX.js";
|
|
8
8
|
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
9
9
|
import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
10
10
|
import { a as scopeMembershipTable, d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-Cvru58id.js";
|
|
@@ -1397,21 +1397,42 @@ function memoDiscriminatorSql(user, key) {
|
|
|
1397
1397
|
*/
|
|
1398
1398
|
function functionBody(body, parallelSafe = false) {
|
|
1399
1399
|
const planner = `cost 1000${parallelSafe ? "\nparallel safe" : ""}`;
|
|
1400
|
-
if (body.memo !== void 0)
|
|
1400
|
+
if (body.memo !== void 0) {
|
|
1401
|
+
const declare = [
|
|
1402
|
+
...body.vars,
|
|
1403
|
+
`v_user text := ${body.memo.user}::text;`,
|
|
1404
|
+
`v_key text := 'permdock.m.' || ${quoteLiteral(body.memo.scope)} || '.k' || (hashtext(p_grant) & 1023)::text;`,
|
|
1405
|
+
`v_disc text := ${memoDiscriminatorSql("v_user", "p_grant")};`,
|
|
1406
|
+
`v_memo text := ${memoReadSql(body.memo.api, "v_key")};`
|
|
1407
|
+
];
|
|
1408
|
+
if (body.memo.type === "boolean") return `language plpgsql
|
|
1401
1409
|
volatile
|
|
1402
1410
|
security definer
|
|
1403
1411
|
cost 1000
|
|
1404
1412
|
set search_path = ''
|
|
1405
1413
|
as $$
|
|
1406
1414
|
declare
|
|
1407
|
-
${[
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
+
${[...declare, "v_has boolean;"].map((line) => ` ${line}`).join("\n")}
|
|
1416
|
+
begin
|
|
1417
|
+
if v_memo is not null and (v_memo::jsonb ->> 'k') = v_disc then
|
|
1418
|
+
return (v_memo::jsonb ->> 'v')::boolean;
|
|
1419
|
+
end if;
|
|
1420
|
+
v_has := (
|
|
1421
|
+
${body.sql}
|
|
1422
|
+
);
|
|
1423
|
+
perform ${memoWriteSql(body.memo.api, "v_key", "jsonb_build_object('k', v_disc, 'v', v_has)::text")};
|
|
1424
|
+
return v_has;
|
|
1425
|
+
end;
|
|
1426
|
+
$$;`;
|
|
1427
|
+
declare.push(`v_ids ${body.memo.type}[];`);
|
|
1428
|
+
return `language plpgsql
|
|
1429
|
+
volatile
|
|
1430
|
+
security definer
|
|
1431
|
+
cost 1000
|
|
1432
|
+
set search_path = ''
|
|
1433
|
+
as $$
|
|
1434
|
+
declare
|
|
1435
|
+
${declare.map((line) => ` ${line}`).join("\n")}
|
|
1415
1436
|
begin
|
|
1416
1437
|
if v_memo is not null and (v_memo::jsonb ->> 'k') = v_disc then
|
|
1417
1438
|
v_ids := array(select jsonb_array_elements_text(v_memo::jsonb -> 'ids')::${body.memo.type});
|
|
@@ -1424,6 +1445,7 @@ ${body.sql}
|
|
|
1424
1445
|
return query select unnest(v_ids);
|
|
1425
1446
|
end;
|
|
1426
1447
|
$$;`;
|
|
1448
|
+
}
|
|
1427
1449
|
if (body.vars.length === 0) return `language sql
|
|
1428
1450
|
stable
|
|
1429
1451
|
security definer
|
|
@@ -2918,11 +2940,11 @@ function grantBodies(ctx) {
|
|
|
2918
2940
|
const keyTenant = keys === void 0 ? "" : ` and ${keyTenantSql(ctx, void 0) ?? "true"}`;
|
|
2919
2941
|
const hasAllows = ceiling(set ? "g.grant_key" : "p_grant");
|
|
2920
2942
|
return {
|
|
2921
|
-
has: sqlBody(hasAllows === void 0 ? hasBody(ctx) : set ? ` select g.grant_key
|
|
2943
|
+
has: memoBody(ctx, "global", "boolean", sqlBody(hasAllows === void 0 ? hasBody(ctx) : set ? ` select g.grant_key
|
|
2922
2944
|
from (
|
|
2923
2945
|
${hasBody(ctx)}
|
|
2924
2946
|
) g(grant_key)
|
|
2925
|
-
where ${hasAllows}${keyTenant}` : ceilingHasSql(hasBody(ctx), `${hasAllows}${keyTenant}`)),
|
|
2947
|
+
where ${hasAllows}${keyTenant}` : ceilingHasSql(hasBody(ctx), `${hasAllows}${keyTenant}`))),
|
|
2926
2948
|
ids: (scope) => {
|
|
2927
2949
|
const type = scopeTypeOf(ctx, scope);
|
|
2928
2950
|
const body = scopedBody(ctx, scope, type);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-BMPx7HyO.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types
|
|
6
|
-
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CtJSDhOv.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-eQ-mdk8n.js";
|
|
7
7
|
import { RequestMiddleware, RequestMiddlewareAfterServer, createMiddleware } from "@tanstack/react-start";
|
|
8
8
|
//#region src/tanstack-start/create.d.ts
|
|
9
9
|
type TanStackStartPermDockOptions<TUser = unknown> = FetchAdapterOptions<Request, TUser>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-
|
|
2
|
-
import { t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-Bj5xw0EM.js";
|
|
2
|
+
import { t as fetchAdapter } from "../fetch-adapter-CAA3VJMX.js";
|
|
3
3
|
import { createMiddleware } from "@tanstack/react-start";
|
|
4
4
|
//#region src/tanstack-start/create.ts
|
|
5
5
|
function createPermDock(policy, options) {
|
package/dist/terminal/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, qt as Instant, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, qt as Instant, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { m as ApprovalStore } from "../types-
|
|
5
|
-
import { a as ProblemDetails, t as ApprovalHint } from "../errors-
|
|
6
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
4
|
+
import { m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "../errors-CXxQwtbZ.js";
|
|
6
|
+
import { t as InstanceOptions } from "../instance-options-BDHB3qBG.js";
|
|
7
7
|
//#region src/terminal/types.d.ts
|
|
8
8
|
type TokenSourceName = "device" | "keychain" | "env" | "ci-oidc";
|
|
9
9
|
type TokenSource = TokenSourceName | {
|
package/dist/terminal/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
3
2
|
import { h as secondsAt } from "../time-nR1JesoH.js";
|
|
4
3
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
4
|
+
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
5
5
|
import { r as isSubject } from "../subject-C7RddW0G.js";
|
|
6
6
|
import { r as withApp } from "../app-DIvM65Mv.js";
|
|
7
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
7
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-BDGzsGcn.js";
|
|
8
8
|
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
9
|
-
import { l as storedApprovalToken, s as resumeDecision } from "../helpers-
|
|
9
|
+
import { l as storedApprovalToken, s as resumeDecision } from "../helpers-CO2hDpBU.js";
|
|
10
10
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
11
11
|
import { a as refreshCredential, o as revokeCredential, s as runDeviceFlow, t as TERMINAL_TIMEOUT_MS } from "../device-BkSynWdg.js";
|
|
12
12
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials } from "../storage-C2bWdvJH.js";
|
package/dist/testing/core.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-
|
|
1
|
+
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-KsoqXWhf.js";
|
|
2
2
|
export { type DescribePolicyConfig, type MatrixCell, type MatrixOutcome, type OrmParityCase, type OrmParityOptions, type OrmParityReport, type OrmParityRunInput, type OrmParityScenario, type PolicyMatrixCell, type PolicyMatrixReport, type RlsDbOutcome, type RlsFieldsOutcome, type RlsParityCase, type RlsParityFixture, type RlsParityOptions, type RlsParityReport, type RlsParitySubject, type RlsQueryFn, type RlsQueryResult, policyMatrix, testOrmParity, testRlsParity };
|
package/dist/testing/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-
|
|
1
|
+
export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-DMQsq2Gv.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { rt as MemberEntry } from "../../policy-types-
|
|
2
|
-
import { r as SubjectRecord } from "../../subject-cache-
|
|
3
|
-
import { i as SupabaseRpcClient } from "../../postgrest-
|
|
1
|
+
import { rt as MemberEntry } from "../../policy-types-CCBrL7me.js";
|
|
2
|
+
import { r as SubjectRecord } from "../../subject-cache-DrJGnRiV.js";
|
|
3
|
+
import { i as SupabaseRpcClient } from "../../postgrest-5WOO47Ud.js";
|
|
4
4
|
import { a as CatalogDocument } from "../../types-DAyp592k.js";
|
|
5
5
|
import { i as SupabaseManifest } from "../../manifest-C6eFl3Vo.js";
|
|
6
6
|
//#region src/testing/fixtures/postgrest.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as parseSupabaseManifest } from "../../manifest-
|
|
1
|
+
import { n as parseSupabaseManifest } from "../../manifest-BoCYBbQL.js";
|
|
2
2
|
import { t as parseCatalog } from "../../parse-CORUNcCo.js";
|
|
3
3
|
//#region src/testing/fixtures/better-supabase.catalog.json
|
|
4
4
|
var better_supabase_catalog_default = {
|
|
@@ -666,6 +666,12 @@ var better_supabase_manifest_default = {
|
|
|
666
666
|
"returns": "uuid",
|
|
667
667
|
"execute": ["authenticated"]
|
|
668
668
|
},
|
|
669
|
+
{
|
|
670
|
+
"name": "permdock_subject",
|
|
671
|
+
"args": "",
|
|
672
|
+
"returns": "jsonb",
|
|
673
|
+
"execute": ["authenticated"]
|
|
674
|
+
},
|
|
669
675
|
{
|
|
670
676
|
"name": "permdock_actor_may_write",
|
|
671
677
|
"args": "",
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { A as ResourceInit, C as InferPermissionTree, r as Role, w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { st as LegacyCheck } from "../index-
|
|
4
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
5
|
-
import { T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, u as SnapshotOptions, x as Limits } from "../permdock-
|
|
6
|
-
import { s as PolicySource } from "../hosted-
|
|
7
|
-
import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-
|
|
8
|
-
import { a as ProblemDetails } from "../errors-
|
|
9
|
-
import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-
|
|
10
|
-
import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-
|
|
11
|
-
import { c as AccessReviewStore } from "../types-
|
|
12
|
-
import { R as IdempotencyStore } from "../index-
|
|
3
|
+
import { st as LegacyCheck } from "../index-DD2FBFdm.js";
|
|
4
|
+
import { i as ApprovalPolicySource } from "../approval-policies-D7moEfTM.js";
|
|
5
|
+
import { T as InstanceCache, _ as PrincipalSource, a as PermDock, h as PrincipalIdentity, u as SnapshotOptions, x as Limits } from "../permdock-vD3mwLSm.js";
|
|
6
|
+
import { s as PolicySource } from "../hosted-BUCpV8-u.js";
|
|
7
|
+
import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-CAp7UGiB.js";
|
|
8
|
+
import { a as ProblemDetails } from "../errors-CXxQwtbZ.js";
|
|
9
|
+
import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-ChK8bpCK.js";
|
|
10
|
+
import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-DrJGnRiV.js";
|
|
11
|
+
import { c as AccessReviewStore } from "../types-ChYCRn7Y.js";
|
|
12
|
+
import { R as IdempotencyStore } from "../index-DYAJ9JX1.js";
|
|
13
13
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
14
|
-
import { s as SupportSessionSource } from "../index-
|
|
14
|
+
import { s as SupportSessionSource } from "../index-CvKGALWb.js";
|
|
15
15
|
import { r as SupabaseHookManifest } from "../manifest-C6eFl3Vo.js";
|
|
16
16
|
import { t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
|
|
17
|
-
import { a as AutomationSource, t as Automation } from "../automation-
|
|
18
|
-
import { c as DeliveryTransport, g as TransportMessages } from "../types-
|
|
19
|
-
import { t as CloudApproverOptions } from "../types-
|
|
20
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
21
|
-
import { g as SetQueue, l as ReplayStore } from "../types-
|
|
17
|
+
import { a as AutomationSource, t as Automation } from "../automation-CrGcfIZn.js";
|
|
18
|
+
import { c as DeliveryTransport, g as TransportMessages } from "../types-DyA4Loy4.js";
|
|
19
|
+
import { t as CloudApproverOptions } from "../types-DDlaFDM3.js";
|
|
20
|
+
import { n as ApprovalWaiter } from "../waiter-LdnPaBJE.js";
|
|
21
|
+
import { g as SetQueue, l as ReplayStore } from "../types-CdXM6qPc.js";
|
|
22
22
|
import { c as OperationPermissions, n as OperationCoverageOptions } from "../coverage-D8jBJdgD.js";
|
|
23
|
-
import { r as SnapshotStorage } from "../types-
|
|
24
|
-
import { x as DirectoryStore } from "../index-
|
|
25
|
-
import { S as SsfStreamStore } from "../index-
|
|
26
|
-
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-
|
|
23
|
+
import { r as SnapshotStorage } from "../types-DM0o1YyJ.js";
|
|
24
|
+
import { x as DirectoryStore } from "../index-BXS29UnX.js";
|
|
25
|
+
import { S as SsfStreamStore } from "../index-CxA-ygwc.js";
|
|
26
|
+
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-KsoqXWhf.js";
|
|
27
27
|
import { a as SaasProject } from "../permissions-DriWkV7q.js";
|
|
28
|
-
import { n as saasPolicy } from "../policy-
|
|
28
|
+
import { n as saasPolicy } from "../policy-B_cqFLHu.js";
|
|
29
29
|
import { expectTypeOf } from "vitest";
|
|
30
30
|
//#region src/testing/describe-policy.d.ts
|
|
31
31
|
/** `policyMatrix` under Vitest: one test per cell, plus the exhaustive check. */
|
|
@@ -110,7 +110,7 @@ type ClientStoreFactoryOptions = {
|
|
|
110
110
|
readonly fetch: typeof fetch;
|
|
111
111
|
readonly verifier?: TokenVerifier;
|
|
112
112
|
};
|
|
113
|
-
type ClientStoreFactory = (options: ClientStoreFactoryOptions) => ClientStoreHandle
|
|
113
|
+
type ClientStoreFactory = (options: ClientStoreFactoryOptions) => ClientStoreHandle | Promise<ClientStoreHandle>;
|
|
114
114
|
/**
|
|
115
115
|
* Race and cache scenarios for a client snapshot store: tenant switches,
|
|
116
116
|
* `replace` and `refresh`, logout and a second user during a refresh, stale and
|
package/dist/testing/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { r as isRecord } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { i as principal } from "../refs-C8BKxc_e.js";
|
|
4
|
-
import { n as role, r as allow } from "../role-builder-
|
|
5
|
-
import { D as memoryCustomRoleSource, d as snapshotFor, w as approvalPoliciesFor } from "../src-
|
|
6
|
-
import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
7
|
-
import { n as fromSnapshot } from "../from-snapshot-oR_N97dM.js";
|
|
4
|
+
import { n as role, r as allow } from "../role-builder-BXdhhQcB.js";
|
|
5
|
+
import { D as memoryCustomRoleSource, d as snapshotFor, w as approvalPoliciesFor } from "../src-BZKQe1lr.js";
|
|
8
6
|
import { v as resource } from "../permission-registry-B8tYxPIt.js";
|
|
9
|
-
import { a as authenticated } from "../grantee-
|
|
7
|
+
import { a as authenticated } from "../grantee-OG4klcNr.js";
|
|
10
8
|
import { d as isoNow, f as nowMillis, p as nowSeconds, u as isoAt } from "../time-nR1JesoH.js";
|
|
11
9
|
import { d as scopeList, o as normalizeMemberships } from "../scopes-gdH__vDZ.js";
|
|
12
|
-
import {
|
|
13
|
-
import { n as parseSnapshot } from "../snapshot-
|
|
14
|
-
import { t as getPermDock } from "../permdock-
|
|
10
|
+
import { s as evaluateCondition } from "../delegation-CrdqnesZ.js";
|
|
11
|
+
import { n as parseSnapshot } from "../snapshot-BcHYtUIg.js";
|
|
12
|
+
import { t as getPermDock } from "../permdock-HfTF99xX.js";
|
|
15
13
|
import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
14
|
+
import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-C6N60GtM.js";
|
|
16
15
|
import { r as parseAutomation } from "../automation-BueW05db.js";
|
|
17
16
|
import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
18
|
-
import { r as definePolicy } from "../policy-
|
|
19
|
-
import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-
|
|
17
|
+
import { r as definePolicy } from "../policy-BovcTojN.js";
|
|
18
|
+
import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-cPDyrlsQ.js";
|
|
20
19
|
import { i as rootMembershipId } from "../subject-C7RddW0G.js";
|
|
21
|
-
import { T as validateCustomRole } from "../evaluate-
|
|
20
|
+
import { T as validateCustomRole } from "../evaluate-_JdlbJ32.js";
|
|
22
21
|
import { n as memoryLimitStore, t as limits } from "../limits-CAhpRrhk.js";
|
|
22
|
+
import { t as fromSnapshot } from "../from-snapshot-CdGYjHUg.js";
|
|
23
23
|
import { t as definePermissions } from "../permissions-BaoLxy66.js";
|
|
24
24
|
import { t as catalogFingerprint } from "../catalog-fingerprint-e6aCWosn.js";
|
|
25
|
-
import { s as parseCredential } from "../credential-
|
|
25
|
+
import { s as parseCredential } from "../credential-DrVrRL7z.js";
|
|
26
26
|
import { t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
|
|
27
|
-
import { i as memoryApprovalStore } from "../store-
|
|
28
|
-
import { c as problemFromDecision } from "../problem-
|
|
29
|
-
import { o as resolveApproval } from "../helpers-
|
|
30
|
-
import { o as parseApiKey } from "../credentials-
|
|
27
|
+
import { i as memoryApprovalStore } from "../store-DXO0aVgf.js";
|
|
28
|
+
import { c as problemFromDecision } from "../problem-CPB8kqk7.js";
|
|
29
|
+
import { o as resolveApproval } from "../helpers-CO2hDpBU.js";
|
|
30
|
+
import { o as parseApiKey } from "../credentials-UwTE2wCW.js";
|
|
31
31
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMP8Cmxd.js";
|
|
32
32
|
import { t as catalogSchema } from "../schema-BlnU_TzE.js";
|
|
33
33
|
import { t as supabaseMembershipsBudget } from "../budget-BBCPDOGP.js";
|
|
@@ -36,12 +36,12 @@ import { n as discoverAuthorizationServer } from "../device-BkSynWdg.js";
|
|
|
36
36
|
import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
|
|
37
37
|
import { l as sha256Hex, n as scimHandler, t as directoryMembershipSource } from "../scim-BG6uPUeW.js";
|
|
38
38
|
import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-0WjxIp9g.js";
|
|
39
|
-
import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-
|
|
40
|
-
import { t as supabaseManifestSchema } from "../manifest-schema-
|
|
41
|
-
import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
42
|
-
import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-
|
|
43
|
-
import { i as saasPermissions } from "../permissions-
|
|
44
|
-
import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-
|
|
39
|
+
import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-DVw1SrH9.js";
|
|
40
|
+
import { t as supabaseManifestSchema } from "../manifest-schema-svAkgqMc.js";
|
|
41
|
+
import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DJoyBZsd.js";
|
|
42
|
+
import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-DMQsq2Gv.js";
|
|
43
|
+
import { i as saasPermissions } from "../permissions-CGYZqYsY.js";
|
|
44
|
+
import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-DIThcxbn.js";
|
|
45
45
|
import { t as POLICY_NOT_PUBLISHED } from "../problem-types-DSsRfONQ.js";
|
|
46
46
|
import { t as require__2020 } from "../2020-CJbO8Bvz.js";
|
|
47
47
|
import { afterAll, assert, beforeAll, describe, expect, expectTypeOf, it, vi } from "vitest";
|
|
@@ -251,7 +251,7 @@ function testClientStore(name, createStore) {
|
|
|
251
251
|
describe(`client store: ${name}`, () => {
|
|
252
252
|
it("switches to a tenant the snapshot carries without a request", async () => {
|
|
253
253
|
const net = recorder(unreachable);
|
|
254
|
-
const store = createStore({
|
|
254
|
+
const store = await createStore({
|
|
255
255
|
snapshot: snapshotOf("erin", "acme", "all"),
|
|
256
256
|
snapshotUrl: "/api/snapshot",
|
|
257
257
|
tenant: "acme",
|
|
@@ -267,7 +267,7 @@ function testClientStore(name, createStore) {
|
|
|
267
267
|
it("fetches another tenant with one query string and commits it only on success", async () => {
|
|
268
268
|
let fail = true;
|
|
269
269
|
const net = recorder(() => fail ? json$1({ error: "down" }, 503) : json$1(snapshotOf("erin", "globex")));
|
|
270
|
-
const store = createStore({
|
|
270
|
+
const store = await createStore({
|
|
271
271
|
snapshot: snapshotOf("erin", "acme"),
|
|
272
272
|
snapshotUrl: "/api/snapshot?v=1",
|
|
273
273
|
tenant: "acme",
|
|
@@ -287,7 +287,7 @@ function testClientStore(name, createStore) {
|
|
|
287
287
|
it("reports pending while a refresh is in flight", async () => {
|
|
288
288
|
const gate = deferred();
|
|
289
289
|
const net = recorder(() => gate.promise);
|
|
290
|
-
const store = createStore({
|
|
290
|
+
const store = await createStore({
|
|
291
291
|
snapshot: snapshotOf("erin", "acme"),
|
|
292
292
|
snapshotUrl: "/api/snapshot",
|
|
293
293
|
tenant: "acme",
|
|
@@ -302,7 +302,7 @@ function testClientStore(name, createStore) {
|
|
|
302
302
|
it("drops a refresh that resolves after logout", async () => {
|
|
303
303
|
const gate = deferred();
|
|
304
304
|
const net = recorder(() => gate.promise);
|
|
305
|
-
const store = createStore({
|
|
305
|
+
const store = await createStore({
|
|
306
306
|
snapshot: snapshotOf("erin", "acme"),
|
|
307
307
|
snapshotUrl: "/api/snapshot",
|
|
308
308
|
tenant: "acme",
|
|
@@ -320,7 +320,7 @@ function testClientStore(name, createStore) {
|
|
|
320
320
|
it("drops a refresh for the previous user after a replace", async () => {
|
|
321
321
|
const gate = deferred();
|
|
322
322
|
const net = recorder(() => gate.promise);
|
|
323
|
-
const store = createStore({
|
|
323
|
+
const store = await createStore({
|
|
324
324
|
snapshot: snapshotOf("erin", "acme"),
|
|
325
325
|
snapshotUrl: "/api/snapshot",
|
|
326
326
|
tenant: "acme",
|
|
@@ -335,9 +335,9 @@ function testClientStore(name, createStore) {
|
|
|
335
335
|
expect(store.get().subject.principal?.tenant).toBe("acme");
|
|
336
336
|
expect(store.get().can(p.project.update, globexProject)).toBe(false);
|
|
337
337
|
});
|
|
338
|
-
it("marks an expired snapshot stale until a fresh one replaces it", () => {
|
|
338
|
+
it("marks an expired snapshot stale until a fresh one replaces it", async () => {
|
|
339
339
|
const net = recorder(unreachable);
|
|
340
|
-
const store = createStore({
|
|
340
|
+
const store = await createStore({
|
|
341
341
|
snapshot: {
|
|
342
342
|
...snapshotOf("erin", "acme"),
|
|
343
343
|
expiresAt: "1970-01-01T00:00:01.000Z"
|
|
@@ -352,7 +352,7 @@ function testClientStore(name, createStore) {
|
|
|
352
352
|
});
|
|
353
353
|
it("boots a signed snapshot through the verifier", async () => {
|
|
354
354
|
const token = "header.seed.signature";
|
|
355
|
-
const store = createStore({
|
|
355
|
+
const store = await createStore({
|
|
356
356
|
snapshot: token,
|
|
357
357
|
tenant: "acme",
|
|
358
358
|
fetch: recorder(unreachable).fetch,
|
|
@@ -364,7 +364,7 @@ function testClientStore(name, createStore) {
|
|
|
364
364
|
expect(store.get().status()).toBe("ready");
|
|
365
365
|
});
|
|
366
366
|
it("rejects a signed snapshot the verifier refuses", async () => {
|
|
367
|
-
const store = createStore({
|
|
367
|
+
const store = await createStore({
|
|
368
368
|
snapshot: "header.forged.signature",
|
|
369
369
|
tenant: "acme",
|
|
370
370
|
fetch: recorder(unreachable).fetch,
|
|
@@ -377,7 +377,7 @@ function testClientStore(name, createStore) {
|
|
|
377
377
|
it("verifies a signed refresh response", async () => {
|
|
378
378
|
const seed = "header.seed.signature";
|
|
379
379
|
const next = "header.next.signature";
|
|
380
|
-
const store = createStore({
|
|
380
|
+
const store = await createStore({
|
|
381
381
|
snapshot: seed,
|
|
382
382
|
snapshotUrl: "/api/snapshot",
|
|
383
383
|
tenant: "acme",
|
|
@@ -398,7 +398,7 @@ function testClientStore(name, createStore) {
|
|
|
398
398
|
context: { permdock: denied() }
|
|
399
399
|
})) });
|
|
400
400
|
});
|
|
401
|
-
const store = createStore({
|
|
401
|
+
const store = await createStore({
|
|
402
402
|
snapshot: leadSnapshot(),
|
|
403
403
|
endpoint: "/api/permdock",
|
|
404
404
|
tenant: "acme",
|
|
@@ -429,7 +429,7 @@ function testClientStore(name, createStore) {
|
|
|
429
429
|
context: { permdock: denied() }
|
|
430
430
|
})) });
|
|
431
431
|
});
|
|
432
|
-
const store = createStore({
|
|
432
|
+
const store = await createStore({
|
|
433
433
|
snapshot: snapshotOf("gina", "acme"),
|
|
434
434
|
endpoint: "/api/permdock",
|
|
435
435
|
tenant: "acme",
|
|
@@ -445,7 +445,7 @@ function testClientStore(name, createStore) {
|
|
|
445
445
|
});
|
|
446
446
|
it("answers a row edited in place once the task that read it ends", async () => {
|
|
447
447
|
const net = recorder(unreachable);
|
|
448
|
-
const store = createStore({
|
|
448
|
+
const store = await createStore({
|
|
449
449
|
snapshot: snapshotOf("bob", "acme"),
|
|
450
450
|
tenant: "acme",
|
|
451
451
|
fetch: net.fetch
|
|
@@ -460,9 +460,9 @@ function testClientStore(name, createStore) {
|
|
|
460
460
|
await settle();
|
|
461
461
|
expect(store.get().can(p.project.update, row)).toBe(false);
|
|
462
462
|
});
|
|
463
|
-
it("answers a check on a row that throws as denied, without throwing", () => {
|
|
463
|
+
it("answers a check on a row that throws as denied, without throwing", async () => {
|
|
464
464
|
const net = recorder(unreachable);
|
|
465
|
-
const store = createStore({
|
|
465
|
+
const store = await createStore({
|
|
466
466
|
snapshot: snapshotOf("bob", "acme"),
|
|
467
467
|
tenant: "acme",
|
|
468
468
|
fetch: net.fetch
|
|
@@ -473,12 +473,12 @@ function testClientStore(name, createStore) {
|
|
|
473
473
|
expect(store.get().status(p.project.update, hostile)).not.toBe("pending");
|
|
474
474
|
expect(store.get().can(p.project.update, hostile)).toBe(false);
|
|
475
475
|
});
|
|
476
|
-
it("notifies every subscriber of a logout when one of them throws", () => {
|
|
476
|
+
it("notifies every subscriber of a logout when one of them throws", async () => {
|
|
477
477
|
const reported = vi.fn();
|
|
478
478
|
vi.stubGlobal("reportError", reported);
|
|
479
479
|
try {
|
|
480
480
|
const net = recorder(unreachable);
|
|
481
|
-
const store = createStore({
|
|
481
|
+
const store = await createStore({
|
|
482
482
|
snapshot: snapshotOf("bob", "acme"),
|
|
483
483
|
tenant: "acme",
|
|
484
484
|
fetch: net.fetch
|
|
@@ -500,9 +500,9 @@ function testClientStore(name, createStore) {
|
|
|
500
500
|
vi.unstubAllGlobals();
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
|
-
it("does not notify subscribers synchronously from a status read", () => {
|
|
503
|
+
it("does not notify subscribers synchronously from a status read", async () => {
|
|
504
504
|
const net = recorder(() => json$1({ evaluations: [] }));
|
|
505
|
-
const store = createStore({
|
|
505
|
+
const store = await createStore({
|
|
506
506
|
snapshot: snapshotOf("gina", "acme"),
|
|
507
507
|
endpoint: "/api/permdock",
|
|
508
508
|
tenant: "acme",
|
|
@@ -6573,6 +6573,12 @@ const supabaseHookManifestFixture = {
|
|
|
6573
6573
|
args: "",
|
|
6574
6574
|
returns: "uuid",
|
|
6575
6575
|
execute: ["authenticated"]
|
|
6576
|
+
},
|
|
6577
|
+
{
|
|
6578
|
+
name: "permdock_subject",
|
|
6579
|
+
args: "",
|
|
6580
|
+
returns: "jsonb",
|
|
6581
|
+
execute: ["authenticated"]
|
|
6576
6582
|
}
|
|
6577
6583
|
],
|
|
6578
6584
|
memberships: [{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-
|
|
1
|
+
import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, xr as Subject, yr as Principal } from "../../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { o as PermDockOptions } from "../../permdock-
|
|
3
|
+
import { o as PermDockOptions } from "../../permdock-vD3mwLSm.js";
|
|
4
4
|
import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-DriWkV7q.js";
|
|
5
|
-
import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-
|
|
5
|
+
import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-B_cqFLHu.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/testing/saas/schema.d.ts
|
|
8
8
|
type FieldKind = "string" | "boolean" | "nullable-string";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-
|
|
2
|
-
import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-
|
|
1
|
+
import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-CGYZqYsY.js";
|
|
2
|
+
import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-DIThcxbn.js";
|
|
3
3
|
export { SAAS_API_KEY_LIMIT, SAAS_EXPIRED_AT, SAAS_TOKEN_TTL_SECONDS, SaasDocSchema, SaasFolderSchema, SaasProjectSchema, rowSchema, saasAudience, saasCustomRoles, saasDoc, saasFolder, saasFolderScenarios, saasIssuer, saasJwks, saasLimitStore, saasMemberships, saasOrg, saasPermissions, saasPlans, saasPolicy, saasPrincipal, saasPrivateJwk, saasProject, saasPublicJwk, saasRelations, saasRoles, saasScenarioOptions, saasScenarios, saasSchemaSql, saasSeed, saasSeedSql, saasTenantRoleNames, saasUser, saasUsers, signSaasToken, verifySaasSession, verifySaasToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-
|
|
1
|
+
export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-CGYZqYsY.js";
|
package/dist/trpc/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, yr as Principal } from "../policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
+
import { a as PermDock } from "../permdock-vD3mwLSm.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
7
|
-
import { t as RpcProtectOptions } from "../rpc-
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CtJSDhOv.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-N5jf6kjk.js";
|
|
7
|
+
import { t as RpcProtectOptions } from "../rpc-D3St8vPO.js";
|
|
8
8
|
import { AnyTRPCMiddlewareFunction } from "@trpc/server";
|
|
9
9
|
//#region src/trpc/create.d.ts
|
|
10
10
|
type TrpcMiddlewareOpts<TCtx = object, TInput = unknown> = {
|
package/dist/trpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as permissionList } from "../decide-set-DXEPepY1.js";
|
|
2
2
|
import { o as problemMessage } from "../http-DKLXrFGk.js";
|
|
3
|
-
import { n as attached } from "../bind-
|
|
4
|
-
import { t as problemFromError } from "../map-error-
|
|
3
|
+
import { n as attached } from "../bind-Cx10JuJ-.js";
|
|
4
|
+
import { t as problemFromError } from "../map-error-BCdb2Nrp.js";
|
|
5
5
|
import { i as isAsyncIterable, o as reloadAfter } from "../stream-DQ3rbO3J.js";
|
|
6
|
-
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-
|
|
6
|
+
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-DFtputZ1.js";
|
|
7
7
|
import { TRPCError, isTrackedEnvelope } from "@trpc/server";
|
|
8
8
|
//#region src/trpc/create.ts
|
|
9
9
|
const PROBLEM = Symbol.for("permdock.problem");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, wn as ScopeNames } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { U as POLICY_SCOPES, n as PlanTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
import { o as OperationMap } from "./operations-BMPx7HyO.js";
|
|
4
4
|
//#region src/core/type-helpers.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-
|
|
1
|
+
import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { s as RowData } from "./permdock-
|
|
4
|
-
import { n as DescribeMessages } from "./describe-
|
|
5
|
-
import { n as ClientStoreOptions } from "./store-
|
|
3
|
+
import { s as RowData } from "./permdock-vD3mwLSm.js";
|
|
4
|
+
import { n as DescribeMessages } from "./describe-CazEjtOH.js";
|
|
5
|
+
import { n as ClientStoreOptions } from "./store-core-CDabEiO9.js";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
//#region src/react/types.d.ts
|
|
8
8
|
type PermDockProviderProps = ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-
|
|
1
|
+
import { En as Approver, a as ApprovalMode, bn as WireDelegation, c as ApprovalStage, i as ApprovalFallback, n as ApprovalCombine, qt as Instant, vr as Membership, wr as AdapterId, xr as Subject, zn as RelationGrantee } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { K as AppData } from "./vocabulary-DeZvUaTw.js";
|
|
3
3
|
//#region src/approvals/types.d.ts
|
|
4
4
|
type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-
|
|
1
|
+
import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
3
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
import { t as PermissionBoundaryState } from "./boundary-C9ck-3uK.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as PermissionState, h as ProviderOptionsBase, m as ProtectedActionView, t as ClientStore, y as ActionResult } from "./store-core-CDabEiO9.js";
|
|
6
6
|
import { Snippet } from "svelte";
|
|
7
7
|
import { Readable } from "svelte/store";
|
|
8
8
|
//#region src/client/views.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
1
|
+
import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-CCBrL7me.js";
|
|
2
|
+
import { a as PermDock } from "./permdock-vD3mwLSm.js";
|
|
3
3
|
//#region src/otel/types.d.ts
|
|
4
4
|
declare const GENAI_SEMCONV_PIN = "1.37.0";
|
|
5
5
|
declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
|
|
2
2
|
import { E as PermissionTree, w as Permission } from "./vocabulary-DeZvUaTw.js";
|
|
3
|
-
import { M as PermissionCheck, a as PermDock, f as WhereResult, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-
|
|
3
|
+
import { M as PermissionCheck, a as PermDock, f as WhereResult, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-vD3mwLSm.js";
|
|
4
4
|
//#region src/pdp/types.d.ts
|
|
5
5
|
type RemotePdpAuth = {
|
|
6
6
|
readonly bearer: string | (() => string | Promise<string>);
|