permdock 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +3 -3
- package/dist/{adoption-scan-B4R5fnMU.js → adoption-scan-DCYe60Pi.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +4 -4
- package/dist/ai-sdk/index.js +3 -3
- package/dist/{approval-prompt-Djo_PyZc.d.ts → approval-prompt-DvSSPQJX.d.ts} +2 -2
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DJ6Yd5z1.js → approvals-p1PGoVjb.js} +3 -3
- package/dist/{arazzo-B6lebmiQ.js → arazzo-41WuzHou.js} +1 -1
- package/dist/{arazzo-BWhNF-k0.js → arazzo-CaUVBn7D.js} +2 -2
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-Dg8XsRaO.js → audience-DabClFLQ.js} +1 -1
- package/dist/authzen/index.d.ts +4 -4
- package/dist/authzen/index.js +2 -2
- package/dist/{automation-BMZPIVUM.d.ts → automation-BNM3TtDo.d.ts} +3 -3
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +7 -7
- package/dist/better-supabase/index.js +6 -6
- package/dist/{bind-CZzhx-Vj.js → bind-CAvgUuKs.js} +4 -4
- package/dist/{bind--9EFVYWF.d.ts → bind-DOyrv6zi.d.ts} +7 -7
- package/dist/{build-instance-BMnAudHn.js → build-instance-Bu_eDqYw.js} +1 -1
- package/dist/{capability-BSslw1QV.d.ts → capability-Drg-1YhL.d.ts} +2 -2
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +3 -3
- package/dist/catalog-BoWglDPI.js +1 -0
- package/dist/{catalog-R_A__RsH.js → catalog-DZVbrF-z.js} +1 -1
- package/dist/{catalog-BECMPrwc.js → catalog-HD2gf5mY.js} +2 -2
- package/dist/{catalog-doc-C9wjsfNY.js → catalog-doc-Cdn7-0pQ.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-CIoHNevm.js → cloud-ytQ3uviA.js} +2 -2
- package/dist/{codemod-Bmj9dWMH.js → codemod-5mpSpnUY.js} +2 -2
- package/dist/{codemod-Cxvvc70T.js → codemod-ua2hHy7w.js} +1 -1
- package/dist/{collect-DloHbDVa.js → collect-Ci6akVwH.js} +2 -2
- package/dist/collect-D7eQDffE.js +1 -0
- package/dist/{collect-CrZJJnEF.js → collect-mLTY4nwb.js} +2 -2
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-Ckm2HqBZ.d.ts → compile-1bsAezL0.d.ts} +3 -3
- package/dist/{completion-BqhRBJD8.js → completion-BTFrHZhX.js} +1 -1
- package/dist/{config-B46rm9sc.js → config-Bj2Ixq3d.js} +1 -1
- package/dist/{config-report-DUgj62Ai.js → config-report-DSpsLpCE.js} +2 -2
- package/dist/{context-bbFHR-0D.js → context-B_u3_bDJ.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/{create-0VZ7Pdiu.d.ts → create-B30OMUOJ.d.ts} +5 -5
- package/dist/{create-BDS7wc3y.d.ts → create-CBMmFie-.d.ts} +9 -9
- package/dist/{create-C3b4B5eF.js → create-CGm28gyI.js} +4 -4
- package/dist/{create-BWRSXgOF.js → create-CQWIpUG-.js} +1 -1
- package/dist/{create-DnrmLnLW.js → create-DCF2SvoT.js} +4 -4
- package/dist/{create-BFfm17UA.d.ts → create-D_NmPOdH.d.ts} +7 -7
- package/dist/{credential-DM2um3ha.js → credential-BcoiejpY.js} +2 -2
- package/dist/{delegation-DaXVdDhM.js → delegation-j6-rc37o.js} +2 -2
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-D8jDHgsl.d.ts → denied-text-CiFQNuMV.d.ts} +2 -2
- package/dist/{describe-BZUsixiL.d.ts → describe-B5qgDvEW.d.ts} +2 -2
- package/dist/{diff-DCePiN6M.js → diff-3jbx6Rm4.js} +3 -3
- package/dist/{diff-CxZo9pTq.js → diff-CmuSD3vc.js} +1 -1
- package/dist/{doctor-CxiwSfqH.js → doctor-3ZqNHX_G.js} +2 -2
- package/dist/{doctor-DFjUxf2f.js → doctor-BdZw53-k.js} +14 -14
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-C2PXIv4c.d.ts → errors-DH5QEGXh.d.ts} +2 -2
- package/dist/{evaluate-_R8QkWaf.js → evaluate-CNClBvcj.js} +81 -28
- package/dist/{evaluations-16UqqQ6W.d.ts → evaluations-C_1vdSZc.d.ts} +3 -3
- package/dist/{evaluations-DZ2CbV5k.js → evaluations-beAooV0n.js} +1 -1
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-g0ypLkID.js → fetch-adapter-DD_gfmrC.js} +2 -2
- package/dist/{fetch-adapter-qKJBuRqy.d.ts → fetch-adapter-Dw0MTS3D.d.ts} +4 -4
- package/dist/{fields-D9tPVUUS.js → fields-OYG_JR78.js} +3 -3
- package/dist/{from-snapshot-D2lZt4Dd.js → from-snapshot-CTCMsFZk.js} +4 -4
- package/dist/{grantee-Cn1HyUsI.js → grantee-hxrUsbpM.js} +13 -3
- package/dist/{grantee-match-DHArqY82.js → grantee-match-DbENBHLB.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DTcZOzhF.js → helpers-CBYVMjwh.js} +1 -1
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-BZIAYvon.js → hosted-B46-5LYE.js} +3 -3
- package/dist/{hosted-DBDX0M-P.d.ts → hosted-BPk51-kX.d.ts} +1 -1
- package/dist/{import-DMmOG27O.js → import-wyqXUyjm.js} +3 -3
- package/dist/{index-Chrs5fQ-.d.ts → index-B8YjkEZ4.d.ts} +6 -6
- package/dist/{index-CxGUswIC.d.ts → index-C-6Letxg.d.ts} +5 -5
- package/dist/{index-SGdIQyzc.d.ts → index-Ch8LpNDp.d.ts} +2 -2
- package/dist/{index-D8EovfsP.d.ts → index-Cp_ilKi1.d.ts} +2 -2
- package/dist/{index-BcHcPyIo.d.ts → index-CueFnxQc.d.ts} +6 -6
- package/dist/{index-DOVf7RJv.d.ts → index-DuWxc5dt.d.ts} +21 -12
- package/dist/index.d.ts +17 -17
- package/dist/index.js +14 -14
- package/dist/{instance-options-Omfd793B.d.ts → instance-options-BsVpyGIk.d.ts} +1 -1
- package/dist/{instance-snapshot-Cxq4ygFc.js → instance-snapshot-BOEhcqIF.js} +10 -9
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-5JatXyND.js → kernel-D0NVb1cK.js} +5 -5
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{manifest-CtKR3GXL.js → manifest-dvL2XEe1.js} +23 -23
- package/dist/{map-error-TCAdw-eW.js → map-error-Dr70oA_3.js} +1 -1
- package/dist/mcp/index.d.ts +9 -9
- package/dist/mcp/index.js +4 -4
- package/dist/{migrate-BShP7Vf4.js → migrate-CIq4-E9F.js} +1 -1
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +9 -9
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +3 -3
- package/dist/{openapi-ahr8rHu3.js → openapi-C4dDTVEd.js} +1 -1
- package/dist/{openapi-DTaEmTSW.js → openapi-DD1SV-5-.js} +1 -1
- package/dist/{operations-CxybZErY.d.ts → operations-X0VM7F3m.d.ts} +1 -1
- package/dist/orpc/index.d.ts +6 -6
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-Dyw8fyPF.js → output-1im__-08.js} +1 -1
- package/dist/{ownership-BatFgAA4.js → ownership-DqaJNJPn.js} +921 -858
- package/dist/{parse-local-manifest-DgqtruPn.d.ts → parse-local-manifest-5ODwqu8b.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-B9JxkBwC.js → permdock-BrAscV28.js} +5 -5
- package/dist/{permdock-D7eeLJER.d.ts → permdock-SV8ZINYT.d.ts} +4 -4
- package/dist/{permissions-CZKiUfFM.js → permissions-BPxlwVhN.js} +2 -2
- package/dist/{permissions-oEWfl-kl.d.ts → permissions-u_KHg-sN.d.ts} +1 -1
- package/dist/{policies-CO1oOymN.js → policies-DP2nqRoF.js} +1 -1
- package/dist/{policy-Czo4n3Hs.d.ts → policy-77FSAq_V.d.ts} +2 -2
- package/dist/{policy-DLZJ5gAp.js → policy-DbM5YYtV.js} +2 -2
- package/dist/{policy-from-catalog-DzhEc3Y9.js → policy-from-catalog-C2gMa2Dj.js} +5 -5
- package/dist/{policy-types-DzwivBgR.d.ts → policy-types-n0uRTsW8.d.ts} +28 -3
- package/dist/{postgrest-NUqZT-RB.d.ts → postgrest-CEgRbefE.d.ts} +1 -1
- package/dist/{postgrest-CW0IqC-U.js → postgrest-DAjUkF9w.js} +10 -1
- package/dist/{powersync-bYUDLOAO.js → powersync-BkWWCS1K.js} +6 -6
- package/dist/{powersync-BHfuehf3.js → powersync-DISt6SUe.js} +2 -2
- package/dist/powersync-MMJ2mI2q.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{problem-details-DXlt-vks.d.ts → problem-details-B45V5d2b.d.ts} +1 -1
- package/dist/{protected-DfjY5mLA.js → protected-BlF0F6wL.js} +1 -1
- package/dist/{protected-DEPHc2xV.d.ts → protected-RFGpakN9.d.ts} +5 -5
- package/dist/{provider-CC-u3bYP.js → provider-B1al-AZz.js} +2 -2
- package/dist/{provider-DMVt6yYn.d.ts → provider-DILL9oPK.d.ts} +1 -1
- package/dist/{provider-store-B5Yrkhzr.js → provider-store-DM6DNcta.js} +2 -2
- package/dist/pull-CvpINcMK.js +1 -0
- package/dist/{pull-BgIfno6w.js → pull-jEwbf80J.js} +1 -1
- package/dist/{push-CmFVBOeI.js → push-BD4f15co.js} +2 -2
- package/dist/{pushed-policy-DobP7AHI.js → pushed-policy-CqtxkV4G.js} +1 -1
- package/dist/{pushed-policy-BImMTTIM.d.ts → pushed-policy-DCW91KQU.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +2 -2
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +9 -9
- package/dist/react-native/index.js +10 -8
- package/dist/{replay-D7iKcLFe.d.ts → replay-Bkm-Ne4l.d.ts} +1 -1
- package/dist/{request-context-BTRTG7OT.js → request-context-C81Pip9n.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{rls-BA8an5Ap.js → rls-BAqP4q66.js} +1 -1
- package/dist/{rls-j6t43t7n.js → rls-DTvYd-lI.js} +12 -12
- package/dist/{role-builder-CXbis5-X.js → role-builder-uWQZ4v84.js} +1 -1
- package/dist/{rpc-aPyNi6tA.js → rpc-VSl5ylaQ.js} +1 -1
- package/dist/{run-DOfMtc9V.js → run-CUKuz0A8.js} +2 -2
- package/dist/run-DDwUaJDU.js +1 -0
- package/dist/{run-ticket-BjhTOi6u.d.ts → run-ticket-DocwaTKn.d.ts} +2 -2
- package/dist/{saas-FO-Q8oj0.js → saas-BCXRuXca.js} +5 -5
- package/dist/{scan-BOI5tJ-6.js → scan-qvOe0hS3.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +4 -4
- package/dist/{server-DqCT4CgZ.js → server-C3WXAHZj.js} +1 -1
- package/dist/{server-types-BLd4MnBX.d.ts → server-types-CKQiCnON.d.ts} +9 -9
- package/dist/{shared-CD11nBbC.js → shared-BAK8t4Uo.js} +2 -1
- package/dist/{sink-Bj_lDUDq.d.ts → sink-4-eQIRWf.d.ts} +4 -4
- package/dist/{snapshot-CXUWfsNy.js → snapshot-B7DkYg6g.js} +1 -1
- package/dist/{snapshot-cache-DqK9eDmM.d.ts → snapshot-cache-PXI-vGpY.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +2 -2
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-BV9j0DeZ.d.ts → sources-Xc4zkszI.d.ts} +2 -2
- package/dist/{src-DLfUWFAI.js → src-Cu2m75uo.js} +24 -15
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +1 -1
- package/dist/{standard-webhooks-6lg8v_is.d.ts → standard-webhooks-rbD7LS6h.d.ts} +2 -2
- package/dist/{store-4u_hxjWa.js → store-BDutJkDL.js} +1 -1
- package/dist/{store-options-BqEakYRa.js → store-options-u0ycEe8s.js} +4 -4
- package/dist/{stores-ClZUgeoP.d.ts → stores-BUGNbJTt.d.ts} +5 -5
- package/dist/{stores-BbsD4fAR.js → stores-CGhM8BN_.js} +1 -1
- package/dist/{stream-7-xmnf3U.d.ts → stream-CeCMJmBB.d.ts} +2 -2
- package/dist/supabase/index.d.ts +5 -5
- package/dist/supabase/index.js +2 -2
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-9pqI57pW.js → supabase-By_frk3U.js} +2 -2
- package/dist/{supabase-hook-DdDQhMlw.js → supabase-hook-BMoEhZir.js} +14 -9
- package/dist/supabase-hook-CCw5m35C.js +1 -0
- package/dist/{supabase-Dxlp8A94.js → supabase-x5JtR2tc.js} +3 -3
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +1 -1
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +3 -3
- package/dist/testing/index.d.ts +20 -20
- package/dist/testing/index.js +18 -18
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +3 -3
- package/dist/{types-C8-KNsFf.d.ts → types-8RnwUAvE.d.ts} +5 -5
- package/dist/{types-BNORmDM8.d.ts → types-B3_ooZgZ.d.ts} +4 -4
- package/dist/{types-CCpc2Dcv.d.ts → types-BdtSDbBO.d.ts} +2 -2
- package/dist/{types-DX0LaKTb.d.ts → types-BtHtcKMr.d.ts} +3 -3
- package/dist/{types-CdlxsYQh.d.ts → types-BzzaHxt3.d.ts} +1 -1
- package/dist/{types-DiQjupG2.d.ts → types-C791HFu9.d.ts} +2 -2
- package/dist/{types-BjV-fqcA.d.ts → types-C863OQiR.d.ts} +4 -4
- package/dist/{types-fbZ7JEXr.d.ts → types-CVZSNocA.d.ts} +4 -4
- package/dist/{types-tIgIeIKJ.d.ts → types-CX7AvRqP.d.ts} +4 -4
- package/dist/{types-_sHy8BQf.d.ts → types-C_IiEs64.d.ts} +1 -1
- package/dist/{types-5Ut_pbKy.d.ts → types-Dfv0aTER.d.ts} +4 -2
- package/dist/{types-CZTnPFzM.d.ts → types-Druu9wLM.d.ts} +2 -2
- package/dist/{types-ClZaWzfb.d.ts → types-_WhUP7ud.d.ts} +3 -3
- package/dist/{types-BqAKcRNW.d.ts → types-lUlG3TVd.d.ts} +2 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DHtE8j4E.js → usage-CRVl9V3t.js} +1 -1
- package/dist/usage-CZpSQP6L.js +1 -0
- package/dist/{usage-T5mXq98v.js → usage-SveTRTyr.js} +4 -4
- package/dist/{validation-error-Bg5Tpluk.d.ts → validation-error-DHUrAkku.d.ts} +1 -1
- package/dist/{verify-DbCL9bnB.js → verify-BaAKx7t6.js} +11 -11
- package/dist/{vocabulary-D6lPdb4Z.d.ts → vocabulary-CN8H_9UF.d.ts} +2 -0
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-CKy4MQSY.d.ts → waiter-B986w1oK.d.ts} +2 -2
- package/dist/watch--ovlPOc0.js +1 -0
- package/dist/{watch-CszoTJMq.js → watch-vea54PRw.js} +1 -1
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/{where-scope-Dv-WTP-w.js → where-scope-C9vfEphl.js} +2 -2
- package/dist/{who-can-D0QoYbEb.js → who-can-DWBAcaCQ.js} +2 -2
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-Bd1Tejur.d.ts → wrap-C5jC6sKI.d.ts} +2 -2
- package/package.json +2 -2
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/skills/permdock-tenancy/references/ownership-and-custom-roles.md +1 -0
- package/dist/catalog-DjhMYYCq.js +0 -1
- package/dist/collect-FlXJlhus.js +0 -1
- package/dist/powersync-CbzkqL_M.js +0 -1
- package/dist/pull-ByOks_Tg.js +0 -1
- package/dist/run-CNsApDpd.js +0 -1
- package/dist/supabase-hook-CXcGpHqq.js +0 -1
- package/dist/usage-CHOtwL19.js +0 -1
- package/dist/watch-Cb-NcaUw.js +0 -1
package/dist/supabase/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as supabaseClaims, i as supabaseApprovalStore, n as supabaseRls, o as exchangeCapability, r as tableApprovalDelegationSource, t as authorizeSql } from "../supabase-
|
|
1
|
+
import { a as supabaseClaims, i as supabaseApprovalStore, n as supabaseRls, o as exchangeCapability, r as tableApprovalDelegationSource, t as authorizeSql } from "../supabase-x5JtR2tc.js";
|
|
2
2
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-NbEtbJC_.js";
|
|
3
3
|
import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-vs5dGOsS.js";
|
|
4
|
-
import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-
|
|
4
|
+
import { a as delegationOf, c as subjectFromSupabaseSession, i as actorOf, n as postgrestSources, r as readSubjectRecord, s as subjectFromSupabase } from "../postgrest-DAjUkF9w.js";
|
|
5
5
|
import { t as parseSupabaseManifest } from "../manifest-C8IzW3Do.js";
|
|
6
6
|
export { AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzVersion, delegationOf, exchangeCapability, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableMembershipSource };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Policy,
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { r as PermDock } from "../permdock-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
1
|
+
import { T as Policy, ar as Subject, j as PolicyVocabulary, rr as Principal } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-BsVpyGIk.js";
|
|
5
5
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
6
|
-
import { i as OpenApiHooks } from "../server-types-
|
|
7
|
-
import { n as ServerAdapterServices } from "../bind
|
|
6
|
+
import { i as OpenApiHooks } from "../server-types-CKQiCnON.js";
|
|
7
|
+
import { n as ServerAdapterServices } from "../bind-DOyrv6zi.js";
|
|
8
8
|
import { Middleware } from "@supabase/middleware";
|
|
9
9
|
//#region src/supabase/middleware.d.ts
|
|
10
10
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { c as withApp } from "../permdock-
|
|
2
|
+
import { c as withApp } from "../permdock-BrAscV28.js";
|
|
3
3
|
import { t as composeWraps } from "../wrap-gX61EtpB.js";
|
|
4
|
-
import { r as credentialSubject } from "../credential-
|
|
4
|
+
import { r as credentialSubject } from "../credential-BcoiejpY.js";
|
|
5
5
|
import { a as methodNotAllowed } from "../problem-CTviyH5L.js";
|
|
6
|
-
import { r as instanceOptions } from "../build-instance-
|
|
7
|
-
import { t as createPermDock$1 } from "../create-
|
|
8
|
-
import { n as attached } from "../bind-
|
|
6
|
+
import { r as instanceOptions } from "../build-instance-Bu_eDqYw.js";
|
|
7
|
+
import { t as createPermDock$1 } from "../create-DCF2SvoT.js";
|
|
8
|
+
import { n as attached } from "../bind-CAvgUuKs.js";
|
|
9
9
|
import { defineMiddleware } from "@supabase/middleware";
|
|
10
10
|
//#region src/supabase/middleware.ts
|
|
11
11
|
const SECRET_KEY_NAME = /^[A-Za-z0-9_-]+$/u;
|
|
@@ -47,7 +47,7 @@ const hookGenerate = defineLeaf({
|
|
|
47
47
|
const budget = given(flags.budget);
|
|
48
48
|
const schema = given(flags.schema);
|
|
49
49
|
const grantsOut = given(flags["grants-out"]);
|
|
50
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
50
|
+
const { runSupabase } = await import("./supabase-hook-CCw5m35C.js");
|
|
51
51
|
return runSupabase({
|
|
52
52
|
cwd: ctx.cwd,
|
|
53
53
|
config: ctx.config,
|
|
@@ -76,7 +76,7 @@ const inspect = defineLeaf({
|
|
|
76
76
|
},
|
|
77
77
|
async run(ctx, { flags }) {
|
|
78
78
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
79
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
79
|
+
const { runSupabase } = await import("./supabase-hook-CCw5m35C.js");
|
|
80
80
|
return runSupabase({
|
|
81
81
|
cwd: ctx.cwd,
|
|
82
82
|
config: ctx.config,
|
|
@@ -7,20 +7,20 @@ import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./f
|
|
|
7
7
|
import { a as SUPABASE_MANIFEST_SCHEMA } from "./version-CEbQ5UeM.js";
|
|
8
8
|
import { c as requirePolicy } from "./load-DFS_ry0W.js";
|
|
9
9
|
import { r as scopeColumn } from "./compile-CMqMx_IN.js";
|
|
10
|
-
import { t as authorizeSql } from "./supabase-
|
|
10
|
+
import { t as authorizeSql } from "./supabase-x5JtR2tc.js";
|
|
11
11
|
import "./budget-NbEtbJC_.js";
|
|
12
12
|
import { i as qualifySqlTable } from "./sql-B5T1IL83.js";
|
|
13
13
|
import { a as hookApiNames, d as keptKeys, t as AUTHZ_VERSION_TABLE, u as roleManifest } from "./sources-vs5dGOsS.js";
|
|
14
|
-
import { o as readMemberships } from "./postgrest-
|
|
14
|
+
import { o as readMemberships } from "./postgrest-DAjUkF9w.js";
|
|
15
15
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
16
16
|
import { n as GRANTS_MARKER, r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C6joDI3o.js";
|
|
17
17
|
import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-CAGzls-C.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { f as writeOutputFiles, l as partPath, r as driftOf, u as pgDeltaPath } from "./output-files-DhRBBE4n.js";
|
|
20
|
-
import { E as scopeTypeOf, F as quoteQualified, I as quoteTable, M as qualified, N as quoteIdent, O as tenantTypeOf, P as quoteLiteral, a as customRolesOn, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-
|
|
20
|
+
import { E as scopeTypeOf, F as quoteQualified, I as quoteTable, M as qualified, N as quoteIdent, O as tenantTypeOf, P as quoteLiteral, a as customRolesOn, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-BAK8t4Uo.js";
|
|
21
21
|
import { a as splitUndiffed, r as tableKey, t as decidingColumns } from "./deciding-columns-Sq12mEA6.js";
|
|
22
|
-
import { a as readOnlyActorKinds, f as pgConnector, t as ACTOR_MAY_WRITE } from "./policies-
|
|
23
|
-
import {
|
|
22
|
+
import { a as readOnlyActorKinds, f as pgConnector, t as ACTOR_MAY_WRITE } from "./policies-DP2nqRoF.js";
|
|
23
|
+
import { B as hasPermittedUsers, E as apiKeyFields, G as memberIdsHelper, H as memberForHelper, J as permittedIdsHelper, K as memberRoleOf, Q as activeRowSql, U as memberForSources, W as memberForTable, Z as scopeTable, a as guardedTables, c as PERMISSION_HELPERS, d as permissionKeysForHelper, et as checkSuspension, f as permittedByPermissionHelper, j as roleNames, l as checkName, o as ASSIGNMENTS, q as permittedForHelper, r as holderSources, s as OWNERSHIP, t as ownershipRules, v as globalRoleRows, w as API_KEY_ALLOWS, y as globalRoleSource, z as hasMemberFor } from "./ownership-DqaJNJPn.js";
|
|
24
24
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
25
25
|
import { dirname, join, posix, resolve } from "node:path";
|
|
26
26
|
import { parse } from "smol-toml";
|
|
@@ -935,9 +935,10 @@ $$;
|
|
|
935
935
|
revoke execute on function ${fn}(text, text) from public, anon, authenticated;`;
|
|
936
936
|
}
|
|
937
937
|
/**
|
|
938
|
-
* The custom roles `p_user` holds: tenant roles named on a
|
|
939
|
-
* scope (and instance) they live at, and platform roles
|
|
940
|
-
* roles, each with its grants and includes in `CustomRole`
|
|
938
|
+
* The custom roles `p_user` holds: tenant and shared roles named on a
|
|
939
|
+
* membership of the scope (and instance) they live at, and platform roles
|
|
940
|
+
* among the global roles, each with its grants and includes in `CustomRole`
|
|
941
|
+
* form. A shadowed tenant role comes along; `resolveCustomRole`'s callers drop it.
|
|
941
942
|
*/
|
|
942
943
|
function customRolesOfSql(parts) {
|
|
943
944
|
const helpers = quoteIdent(parts.helpers.schema);
|
|
@@ -948,6 +949,7 @@ function customRolesOfSql(parts) {
|
|
|
948
949
|
return `
|
|
949
950
|
select coalesce(jsonb_agg(jsonb_strip_nulls(jsonb_build_object(
|
|
950
951
|
'name', c.role,
|
|
952
|
+
'shared', case when c.tenant_id is null and c.scope <> 'global' then true end,
|
|
951
953
|
'tenant', c.tenant_id::text,
|
|
952
954
|
'scope', c.scope,
|
|
953
955
|
'id', c.scope_id,
|
|
@@ -978,7 +980,10 @@ function customRolesOfSql(parts) {
|
|
|
978
980
|
from jsonb_array_elements(memberships) m
|
|
979
981
|
where m -> 'roles' ? c.role
|
|
980
982
|
and m ->> 'scope' = c.scope
|
|
981
|
-
and
|
|
983
|
+
and (
|
|
984
|
+
(c.tenant_id is null and c.scope_id is null)
|
|
985
|
+
or c.tenant_id::text = case when m ->> 'scope' = ${root} then m ->> 'id' else m -> 'within' ->> ${root} end
|
|
986
|
+
)
|
|
982
987
|
and (c.scope_id is null or c.scope_id = m ->> 'id')
|
|
983
988
|
);`;
|
|
984
989
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as runSupabase } from "./supabase-hook-BMoEhZir.js";
|
|
@@ -2,13 +2,13 @@ import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { d as isoNow, i as dateAt, p as nowSeconds, u as isoAt } from "./time-DkWjdL98.js";
|
|
3
3
|
import { t as canonicalJson } from "./canonical-json-BC8_nMTw.js";
|
|
4
4
|
import { s as ApprovalError } from "./types-DqzsnlSA.js";
|
|
5
|
-
import { a as approvalPageSize, o as decodeApprovalCursor, s as encodeApprovalCursor, t as applyApprovalVerdict } from "./store-
|
|
5
|
+
import { a as approvalPageSize, o as decodeApprovalCursor, s as encodeApprovalCursor, t as applyApprovalVerdict } from "./store-BDutJkDL.js";
|
|
6
6
|
import { a as parseCapability } from "./capability-N1K9IpqS.js";
|
|
7
7
|
import { t as loadJose } from "./load-jose-DZ4dnjri.js";
|
|
8
8
|
import "./budget-NbEtbJC_.js";
|
|
9
9
|
import { a as quoteQualifiedTable, c as quoteSqlTable, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral, u as sqlTextArray } from "./sql-B5T1IL83.js";
|
|
10
10
|
import { d as keptKeys, l as roleColumn } from "./sources-vs5dGOsS.js";
|
|
11
|
-
import { t as callRpc } from "./postgrest-
|
|
11
|
+
import { t as callRpc } from "./postgrest-DAjUkF9w.js";
|
|
12
12
|
//#region src/supabase/capability.ts
|
|
13
13
|
const DEFAULT_TTL = 300;
|
|
14
14
|
const MAX_TTL = 3600;
|
|
@@ -478,7 +478,7 @@ function claimKept(suspension) {
|
|
|
478
478
|
}
|
|
479
479
|
function customDatabaseBranch(q, scope, memberships, declared, levels, suspension) {
|
|
480
480
|
const role = tenantRole(memberships);
|
|
481
|
-
const match = `c.tenant_id::text = requested_tenant and c.scope = ${literal(scope)} and c.scope_id is null and c.role = ${role.sql}`;
|
|
481
|
+
const match = `case when ${q("permdock_is_shared_role")}(${literal(scope)}, ${role.sql}) then c.tenant_id is null else c.tenant_id::text = requested_tenant end and c.scope = ${literal(scope)} and c.scope_id is null and c.role = ${role.sql}`;
|
|
482
482
|
const rows = (source, value, extra) => `array(select c.${value} from ${q(source)} c where ${match}${extra})`;
|
|
483
483
|
return ` or exists (
|
|
484
484
|
select 1
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as requiredPlans } from "../problem-details-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { n as requiredPlans } from "../problem-details-B45V5d2b.js";
|
|
2
|
+
import { i as describe } from "../describe-B5qgDvEW.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-BmHxVH1J.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-CIbDTUTK.js";
|
|
5
|
-
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle } from "../types-
|
|
6
|
-
import { n as SveltePermDockOptions, o as PermissionBoundaryProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
7
|
-
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-
|
|
5
|
+
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle } from "../types-B3_ooZgZ.js";
|
|
6
|
+
import { n as SveltePermDockOptions, o as PermissionBoundaryProps, r as ProtectedProps, t as PermDockDefaults } from "../types-CVZSNocA.js";
|
|
7
|
+
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-BUGNbJTt.js";
|
|
8
8
|
import { Component } from "svelte";
|
|
9
9
|
//#region src/svelte/index.d.ts
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
package/dist/svelte/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { t as describe } from "../describe-BybMRY7A.js";
|
|
|
3
3
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BM8a_P6E.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-BIjfMaoC.js";
|
|
5
5
|
import { u as slotContent } from "../views-DTIIO-oQ.js";
|
|
6
|
-
import { n as getUi, t as getStore } from "../context-
|
|
6
|
+
import { n as getUi, t as getStore } from "../context-B_u3_bDJ.js";
|
|
7
7
|
import { n as viewFor, t as scopedFor } from "../runtime-D3VTAiCA.js";
|
|
8
|
-
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-
|
|
8
|
+
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-CGhM8BN_.js";
|
|
9
9
|
import "svelte/internal/disclose-version";
|
|
10
10
|
import * as $ from "svelte/internal/client";
|
|
11
11
|
import { onDestroy } from "svelte";
|
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as DescribeMessages } from "../describe-
|
|
1
|
+
import { n as DescribeMessages } from "../describe-B5qgDvEW.js";
|
|
2
2
|
import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-BmHxVH1J.js";
|
|
3
|
-
import { m as ClientStore } from "../types-
|
|
4
|
-
import { a as viewFor, i as scopedFor, o as PermissionBoundaryProps, r as ProtectedProps, s as slotContent, t as PermDockDefaults } from "../types-
|
|
3
|
+
import { m as ClientStore } from "../types-B3_ooZgZ.js";
|
|
4
|
+
import { a as viewFor, i as scopedFor, o as PermissionBoundaryProps, r as ProtectedProps, s as slotContent, t as PermDockDefaults } from "../types-CVZSNocA.js";
|
|
5
5
|
//#region src/svelte/context.d.ts
|
|
6
6
|
/** The provider's `defaults` and `messages`. */
|
|
7
7
|
type PermDockUi = {
|
package/dist/svelte/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BM8a_P6E.js";
|
|
2
2
|
import { u as slotContent } from "../views-DTIIO-oQ.js";
|
|
3
|
-
import { n as getUi, t as getStore } from "../context-
|
|
3
|
+
import { n as getUi, t as getStore } from "../context-B_u3_bDJ.js";
|
|
4
4
|
import { n as viewFor, t as scopedFor } from "../runtime-D3VTAiCA.js";
|
|
5
5
|
export { boundaryDigest, boundaryFallback, getStore, getUi, scopedFor, slotContent, viewFor };
|
package/dist/svelte/source.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as requiredPlans } from "../problem-details-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { n as requiredPlans } from "../problem-details-B45V5d2b.js";
|
|
2
|
+
import { i as describe } from "../describe-B5qgDvEW.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-BmHxVH1J.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-CIbDTUTK.js";
|
|
5
|
-
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle } from "../types-
|
|
6
|
-
import { n as SveltePermDockOptions, o as PermissionBoundaryProps, r as ProtectedProps, t as PermDockDefaults } from "../types-
|
|
7
|
-
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-
|
|
5
|
+
import { a as FilterResult, c as PermissionSet, d as RolesOptions, f as SubjectView, i as ClientStatus, l as PermissionState, n as ApprovalState, p as TenantView, r as ClientPermDock, t as ApprovalHandle } from "../types-B3_ooZgZ.js";
|
|
6
|
+
import { n as SveltePermDockOptions, o as PermissionBoundaryProps, r as ProtectedProps, t as PermDockDefaults } from "../types-CVZSNocA.js";
|
|
7
|
+
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-BUGNbJTt.js";
|
|
8
8
|
import { Component } from "svelte";
|
|
9
9
|
//#region src/svelte/source.d.ts
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
package/dist/svelte/source.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as requiredPlans } from "../problem-details-cn5X30gZ.js";
|
|
2
2
|
import { t as describe } from "../describe-BybMRY7A.js";
|
|
3
3
|
import { t as approvalHeaders } from "../headers-BIjfMaoC.js";
|
|
4
|
-
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-
|
|
4
|
+
import { a as getDescribe, c as permission, d as setPermDock, f as subject, i as filtered, l as permissions, n as assignable, o as getPermDock, p as tenant, r as assignablePermissions, s as memberships, t as approval, u as roles } from "../stores-CGhM8BN_.js";
|
|
5
5
|
import PermissionBoundaryComponent from "./PermissionBoundary.svelte";
|
|
6
6
|
import ProtectedComponent from "./Protected.svelte";
|
|
7
7
|
//#region src/svelte/source.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as Policy, Vt as Snapshot, j as PolicyVocabulary, rr as Principal } from "../policy-types-
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { a as OperationInput, t as Operation } from "../operations-
|
|
4
|
-
import { r 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, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
1
|
+
import { T as Policy, Vt as Snapshot, j as PolicyVocabulary, rr as Principal } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { a as OperationInput, t as Operation } from "../operations-X0VM7F3m.js";
|
|
4
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.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-CKQiCnON.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dw0MTS3D.js";
|
|
7
7
|
import { RequestEvent } from "@sveltejs/kit";
|
|
8
8
|
//#region src/sveltekit/create.d.ts
|
|
9
9
|
/**
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as discoverViaSignatureAgent, m as webBotAuthVerifier, u as InvalidSignatureError } from "../evaluations-
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { d as discoverViaSignatureAgent, m as webBotAuthVerifier, u as InvalidSignatureError } from "../evaluations-beAooV0n.js";
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-DD_gfmrC.js";
|
|
3
3
|
//#region src/sveltekit/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (event) => event,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as Policy, Vt as Snapshot, j as PolicyVocabulary, rr as Principal } from "../policy-types-
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { a as OperationInput, t as Operation } from "../operations-
|
|
4
|
-
import { r 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-
|
|
1
|
+
import { T as Policy, Vt as Snapshot, j as PolicyVocabulary, rr as Principal } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { a as OperationInput, t as Operation } from "../operations-X0VM7F3m.js";
|
|
4
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.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-CKQiCnON.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-Dw0MTS3D.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 { d as discoverViaSignatureAgent, m as webBotAuthVerifier, u as InvalidSignatureError } from "../evaluations-
|
|
2
|
-
import { t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { d as discoverViaSignatureAgent, m as webBotAuthVerifier, u as InvalidSignatureError } from "../evaluations-beAooV0n.js";
|
|
2
|
+
import { t as fetchAdapter } from "../fetch-adapter-DD_gfmrC.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 { Nn as Decision, Rt as Instant, T as Policy,
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { r 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-
|
|
1
|
+
import { Nn as Decision, Rt as Instant, T as Policy, ar as Subject, j as PolicyVocabulary, rr as Principal } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.js";
|
|
4
|
+
import { m as ApprovalStore } from "../types-BdtSDbBO.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "../errors-DH5QEGXh.js";
|
|
6
|
+
import { t as InstanceOptions } from "../instance-options-BsVpyGIk.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
|
@@ -2,12 +2,12 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-BKy0EfhN.js";
|
|
3
3
|
import { h as secondsAt } from "../time-DkWjdL98.js";
|
|
4
4
|
import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
|
|
5
|
-
import { c as withApp } from "../permdock-
|
|
5
|
+
import { c as withApp } from "../permdock-BrAscV28.js";
|
|
6
6
|
import { r as isSubject } from "../subject-BGoM5o8B.js";
|
|
7
7
|
import { n as readBodyText } from "../body-text-QcXok_SI.js";
|
|
8
|
-
import { l as storedApprovalToken, s as resumeDecision } from "../helpers-
|
|
8
|
+
import { l as storedApprovalToken, s as resumeDecision } from "../helpers-CBYVMjwh.js";
|
|
9
9
|
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
10
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
10
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-Bu_eDqYw.js";
|
|
11
11
|
import { a as refreshCredential, o as revokeCredential, s as runDeviceFlow, t as TERMINAL_TIMEOUT_MS } from "../device-BARQ8eYG.js";
|
|
12
12
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials } from "../storage-C2bWdvJH.js";
|
|
13
13
|
import { createInterface } from "node:readline";
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { J as EntitlementSource, K as DecisionProvider, Q as LimitStore, T as Policy, U as CredentialVerifier, Vt as Snapshot, W as CustomRoleSource, Zn as CustomRole, Zt as DeliveryChannel, at as SettingsSource, dt as TokenVerifier, et as MembershipSource,
|
|
2
|
-
import { C as InferPermissionTree, k as ResourceInit, r as Role, w as Permission } from "../vocabulary-
|
|
3
|
-
import { Q as LegacyCheck } from "../index-
|
|
4
|
-
import { S as ApprovalPolicySource, c as WhereResult, d as PrincipalIdentity, g as Limits, i as PermDockOptions, p as PrincipalSource, r as PermDock } from "../permdock-
|
|
5
|
-
import { o as PolicySource } from "../hosted-
|
|
6
|
-
import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-
|
|
7
|
-
import { a as ProblemDetails } from "../errors-
|
|
8
|
-
import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-
|
|
9
|
-
import { c as AccessReviewStore } from "../types-
|
|
10
|
-
import { F as IdempotencyStore } from "../index-
|
|
1
|
+
import { J as EntitlementSource, K as DecisionProvider, Q as LimitStore, T as Policy, U as CredentialVerifier, Vt as Snapshot, W as CustomRoleSource, Zn as CustomRole, Zt as DeliveryChannel, ar as Subject, at as SettingsSource, dt as TokenVerifier, et as MembershipSource, it as RelationSource, mt as WhereCompiler, nr as Membership, ot as SnapshotSource, q as DecisionSink, rr as Principal, st as SubjectResolver, ut as TokenSigner } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { C as InferPermissionTree, k as ResourceInit, r as Role, w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { Q as LegacyCheck } from "../index-DuWxc5dt.js";
|
|
4
|
+
import { S as ApprovalPolicySource, c as WhereResult, d as PrincipalIdentity, g as Limits, i as PermDockOptions, p as PrincipalSource, r as PermDock } from "../permdock-SV8ZINYT.js";
|
|
5
|
+
import { o as PolicySource } from "../hosted-BPk51-kX.js";
|
|
6
|
+
import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BdtSDbBO.js";
|
|
7
|
+
import { a as ProblemDetails } from "../errors-DH5QEGXh.js";
|
|
8
|
+
import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-CBMmFie-.js";
|
|
9
|
+
import { c as AccessReviewStore } from "../types-C_IiEs64.js";
|
|
10
|
+
import { F as IdempotencyStore } from "../index-C-6Letxg.js";
|
|
11
11
|
import { n as RevocationFeed } from "../revocations-R07lFBnX.js";
|
|
12
|
-
import { s as SupportSessionSource } from "../index-
|
|
13
|
-
import { a as AutomationSource, t as Automation } from "../automation-
|
|
14
|
-
import { c as DeliveryTransport, g as TransportMessages } from "../types-
|
|
12
|
+
import { s as SupportSessionSource } from "../index-B8YjkEZ4.js";
|
|
13
|
+
import { a as AutomationSource, t as Automation } from "../automation-BNM3TtDo.js";
|
|
14
|
+
import { c as DeliveryTransport, g as TransportMessages } from "../types-BtHtcKMr.js";
|
|
15
15
|
import { n as SupabaseHookManifest } from "../manifest-mx5ghSFM.js";
|
|
16
16
|
import { t as supabaseMembershipsBudget } from "../budget-JqcRqyhK.js";
|
|
17
|
-
import { t as CloudApproverOptions } from "../types-
|
|
18
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
19
|
-
import { g as SetQueue, l as ReplayStore } from "../types-
|
|
20
|
-
import { r as SnapshotStorage } from "../types-
|
|
21
|
-
import { y as DirectoryStore } from "../index-
|
|
22
|
-
import { a as SaasProject } from "../permissions-
|
|
23
|
-
import { n as saasPolicy } from "../policy-
|
|
17
|
+
import { t as CloudApproverOptions } from "../types-8RnwUAvE.js";
|
|
18
|
+
import { n as ApprovalWaiter } from "../waiter-B986w1oK.js";
|
|
19
|
+
import { g as SetQueue, l as ReplayStore } from "../types-C791HFu9.js";
|
|
20
|
+
import { r as SnapshotStorage } from "../types-C863OQiR.js";
|
|
21
|
+
import { y as DirectoryStore } from "../index-Ch8LpNDp.js";
|
|
22
|
+
import { a as SaasProject } from "../permissions-u_KHg-sN.js";
|
|
23
|
+
import { n as saasPolicy } from "../policy-77FSAq_V.js";
|
|
24
24
|
import { expectTypeOf } from "vitest";
|
|
25
25
|
//#region src/testing/describe-policy.d.ts
|
|
26
26
|
type MatrixOutcome = "granted" | "denied" | "approval-required";
|
package/dist/testing/index.js
CHANGED
|
@@ -2,42 +2,42 @@ import { t as require__2020 } from "../2020-C9VN-x8c.js";
|
|
|
2
2
|
import { r as isRecord } from "../compact-CAf557ZB.js";
|
|
3
3
|
import { n as freezeDeep } from "../freeze-CrU8nQeX.js";
|
|
4
4
|
import { r as principal } from "../refs-K6eWUJ0H.js";
|
|
5
|
-
import { n as role, r as allow } from "../role-builder-
|
|
6
|
-
import { E as memoryCustomRoleSource, _ as limits, s as snapshotFor, v as memoryLimitStore, x as approvalPoliciesFor } from "../src-
|
|
5
|
+
import { n as role, r as allow } from "../role-builder-uWQZ4v84.js";
|
|
6
|
+
import { E as memoryCustomRoleSource, _ as limits, s as snapshotFor, v as memoryLimitStore, x as approvalPoliciesFor } from "../src-Cu2m75uo.js";
|
|
7
7
|
import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
8
8
|
import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-pHneukrx.js";
|
|
9
9
|
import { _ as resource, c as listPermissions } from "../permission-registry-Br4jSNVi.js";
|
|
10
10
|
import { d as isoNow, f as nowMillis, p as nowSeconds, u as isoAt } from "../time-DkWjdL98.js";
|
|
11
11
|
import { r as parseAutomation } from "../automation-DVjOckjV.js";
|
|
12
12
|
import { a as normalizeMemberships, d as scopeList } from "../scopes-CUPSjo9q.js";
|
|
13
|
-
import { u as evaluateCondition } from "../delegation-
|
|
14
|
-
import { a as authenticated } from "../grantee-
|
|
15
|
-
import { n as definePolicy } from "../policy-
|
|
13
|
+
import { u as evaluateCondition } from "../delegation-j6-rc37o.js";
|
|
14
|
+
import { a as authenticated } from "../grantee-hxrUsbpM.js";
|
|
15
|
+
import { n as definePolicy } from "../policy-DbM5YYtV.js";
|
|
16
16
|
import { t as byCodePoint } from "../compare-pfyVnBjE.js";
|
|
17
|
-
import { a as mergeHostedGrants, o as parsePolicyDocument } from "../hosted-
|
|
17
|
+
import { a as mergeHostedGrants, o as parsePolicyDocument } from "../hosted-B46-5LYE.js";
|
|
18
18
|
import { t as definePermissions } from "../permissions-B-wCP5ZC.js";
|
|
19
|
-
import {
|
|
20
|
-
import { n as parseSnapshot } from "../snapshot-
|
|
21
|
-
import { n as fromSnapshot } from "../from-snapshot-
|
|
22
|
-
import { t as getPermDock } from "../permdock-
|
|
19
|
+
import { C as validateCustomRole, y as membershipsClaim } from "../evaluate-CNClBvcj.js";
|
|
20
|
+
import { n as parseSnapshot } from "../snapshot-B7DkYg6g.js";
|
|
21
|
+
import { n as fromSnapshot } from "../from-snapshot-CTCMsFZk.js";
|
|
22
|
+
import { t as getPermDock } from "../permdock-BrAscV28.js";
|
|
23
23
|
import { t as APPROVAL_HEADER } from "../types-DqzsnlSA.js";
|
|
24
|
-
import { i as memoryApprovalStore } from "../store-
|
|
24
|
+
import { i as memoryApprovalStore } from "../store-BDutJkDL.js";
|
|
25
25
|
import { t as catalogFingerprint } from "../catalog-fingerprint-CCP0-yQS.js";
|
|
26
|
-
import { s as parseCredential } from "../credential-
|
|
26
|
+
import { s as parseCredential } from "../credential-BcoiejpY.js";
|
|
27
27
|
import { s as problemFromDecision } from "../problem-CTviyH5L.js";
|
|
28
|
-
import { o as resolveApproval } from "../helpers-
|
|
28
|
+
import { o as resolveApproval } from "../helpers-CBYVMjwh.js";
|
|
29
29
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-CMreVuFM.js";
|
|
30
30
|
import { t as catalogSchema } from "../schema-B4v0Qrac.js";
|
|
31
|
-
import { c as parseApiKey } from "../server-
|
|
31
|
+
import { c as parseApiKey } from "../server-C3WXAHZj.js";
|
|
32
32
|
import { n as discoverAuthorizationServer } from "../device-BARQ8eYG.js";
|
|
33
33
|
import { T as sha256Hex, n as directoryMembershipSource, r as scimHandler } from "../scim-ClHtpyV3.js";
|
|
34
|
-
import { a as approverHeaders, r as cloudEndpoints, t as cloud } from "../create-
|
|
34
|
+
import { a as approverHeaders, r as cloudEndpoints, t as cloud } from "../create-CQWIpUG-.js";
|
|
35
35
|
import { t as supabaseMembershipsBudget } from "../budget-NbEtbJC_.js";
|
|
36
36
|
import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "../sql-B5T1IL83.js";
|
|
37
37
|
import { t as supabaseManifestSchema } from "../manifest-schema-C0kK_8V0.js";
|
|
38
|
-
import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
39
|
-
import { i as saasPermissions } from "../permissions-
|
|
40
|
-
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-
|
|
38
|
+
import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-CqtxkV4G.js";
|
|
39
|
+
import { i as saasPermissions } from "../permissions-BPxlwVhN.js";
|
|
40
|
+
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-BCXRuXca.js";
|
|
41
41
|
import { t as POLICY_NOT_PUBLISHED } from "../problem-types-CJ2325SZ.js";
|
|
42
42
|
import { afterAll, beforeAll, describe, expect, expectTypeOf, it, vi } from "vitest";
|
|
43
43
|
//#region src/testing/describe-policy.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $n as Delegation, Q as LimitStore, Rt as Instant, Zn as CustomRole,
|
|
2
|
-
import { w as Permission } from "../../vocabulary-
|
|
3
|
-
import { i as PermDockOptions } from "../../permdock-
|
|
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-
|
|
5
|
-
import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-
|
|
1
|
+
import { $n as Delegation, Q as LimitStore, Rt as Instant, Zn as CustomRole, ar as Subject, it as RelationSource, nr as Membership, qn as Actor, rr as Principal } from "../../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { i as PermDockOptions } from "../../permdock-SV8ZINYT.js";
|
|
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-u_KHg-sN.js";
|
|
5
|
+
import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-77FSAq_V.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-BPxlwVhN.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-BCXRuXca.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,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-u_KHg-sN.js";
|
|
2
2
|
export { SaasDoc, SaasDocSchema, SaasFolder, SaasFolderSchema, SaasProject, SaasProjectSchema, saasPermissions, saasPlans, saasRoles, saasTenantRoleNames };
|
|
@@ -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-BPxlwVhN.js";
|
package/dist/trpc/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as Policy, rr as Principal } from "../policy-types-
|
|
2
|
-
import { w as Permission } from "../vocabulary-
|
|
3
|
-
import { r as PermDock } from "../permdock-
|
|
1
|
+
import { T as Policy, rr as Principal } from "../policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "../vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "../permdock-SV8ZINYT.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-R07lFBnX.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 StreamProtectOptions } from "../stream-
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CKQiCnON.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-DOyrv6zi.js";
|
|
7
|
+
import { t as StreamProtectOptions } from "../stream-CeCMJmBB.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,8 +1,8 @@
|
|
|
1
1
|
import { o as problemMessage } from "../http-BBoKefeS.js";
|
|
2
|
-
import { t as problemFromError } from "../map-error-
|
|
3
|
-
import { n as attached } from "../bind-
|
|
2
|
+
import { t as problemFromError } from "../map-error-Dr70oA_3.js";
|
|
3
|
+
import { n as attached } from "../bind-CAvgUuKs.js";
|
|
4
4
|
import { i as isAsyncIterable, o as reloadAfter } from "../stream-CvdUS9V1.js";
|
|
5
|
-
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-
|
|
5
|
+
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-VSl5ylaQ.js";
|
|
6
6
|
import { TRPCError, isTrackedEnvelope } from "@trpc/server";
|
|
7
7
|
//#region src/trpc/create.ts
|
|
8
8
|
const PROBLEM = Symbol.for("permdock.problem");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as PolicySource } from "./hosted-
|
|
3
|
-
import { m as ApprovalStore, u as ApprovalRequest } from "./types-
|
|
4
|
-
import { a as CatalogDocument } from "./types-
|
|
5
|
-
import { a as CatalogFinding } from "./sink-
|
|
1
|
+
import { ar as Subject, dt as TokenVerifier, ot as SnapshotSource, q as DecisionSink, ut as TokenSigner } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { o as PolicySource } from "./hosted-BPk51-kX.js";
|
|
3
|
+
import { m as ApprovalStore, u as ApprovalRequest } from "./types-BdtSDbBO.js";
|
|
4
|
+
import { a as CatalogDocument } from "./types-Druu9wLM.js";
|
|
5
|
+
import { a as CatalogFinding } from "./sink-4-eQIRWf.js";
|
|
6
6
|
//#region src/cloud/types.d.ts
|
|
7
7
|
type CloudEndpointOptions = {
|
|
8
8
|
readonly url?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $n as Delegation, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, j as PolicyVocabulary, qn as Actor, rr as Principal } from "./policy-types-
|
|
2
|
-
import { w as Permission } from "./vocabulary-
|
|
3
|
-
import { r as PermDock } from "./permdock-
|
|
4
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
1
|
+
import { $n as Delegation, Nn as Decision, Vt as Snapshot, dt as TokenVerifier, j as PolicyVocabulary, qn as Actor, rr as Principal } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { w as Permission } from "./vocabulary-CN8H_9UF.js";
|
|
3
|
+
import { r as PermDock } from "./permdock-SV8ZINYT.js";
|
|
4
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-B5qgDvEW.js";
|
|
5
5
|
//#region src/client/request.d.ts
|
|
6
6
|
type StoreHeaders = Readonly<Record<string, string>>;
|
|
7
7
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cn as RelationGrantee, Rt as Instant,
|
|
2
|
-
import { V as AppData } from "./vocabulary-
|
|
1
|
+
import { Cn as RelationGrantee, Rt as Instant, ar as Subject, cr as AdapterId, fn as Approver, nr as Membership, o as ApprovalStage, on as WireDelegation, r as ApprovalMode } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { V as AppData } from "./vocabulary-CN8H_9UF.js";
|
|
3
3
|
//#region src/approvals/types.d.ts
|
|
4
4
|
type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";
|
|
5
5
|
type ApprovalApprovers = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $t as DeliveryFailureCause, Qt as DeliveryEvent, Zt as DeliveryChannel, tn as EmailCategory, zn as GrantedDecision } from "./policy-types-
|
|
2
|
-
import { s as CloudEvent } from "./sink-
|
|
3
|
-
import { t as ApprovalPrompt } from "./approval-prompt-
|
|
1
|
+
import { $t as DeliveryFailureCause, Qt as DeliveryEvent, Zt as DeliveryChannel, tn as EmailCategory, zn as GrantedDecision } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { s as CloudEvent } from "./sink-4-eQIRWf.js";
|
|
3
|
+
import { t as ApprovalPrompt } from "./approval-prompt-DvSSPQJX.js";
|
|
4
4
|
//#region src/delivery/types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Who a delivery goes to. `{ principal }` names an app principal and the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { qt as AuthEvent, rr as Principal } from "./policy-types-
|
|
1
|
+
import { qt as AuthEvent, rr as Principal } from "./policy-types-n0uRTsW8.js";
|
|
2
2
|
import { t as ClaimsMap } from "./claims-map-Ca-QX8C6.js";
|
|
3
3
|
import { t as ClientNames } from "./clients-C7zLFuWT.js";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as JwtClaims,
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
1
|
+
import { Y as JwtClaims, ar as Subject, dt as TokenVerifier, et as MembershipSource, lt as TokenFailureCause, qn as Actor, qt as AuthEvent, rr as Principal } from "./policy-types-n0uRTsW8.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-BdtSDbBO.js";
|
|
3
3
|
import { n as RevocationFeed } from "./revocations-R07lFBnX.js";
|
|
4
4
|
import { t as ClaimsMap } from "./claims-map-Ca-QX8C6.js";
|
|
5
5
|
import { t as ClientNames } from "./clients-C7zLFuWT.js";
|