permdock 0.18.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +6 -6
- package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-BWL5H82_.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +4 -4
- package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
- package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CKlByf5o.d.ts} +1 -1
- package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-CQFiO1KE.d.ts} +1 -1
- package/dist/approvals/index.d.ts +4 -4
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
- package/dist/{arazzo--riLuGY0.js → arazzo-B_CPVseu.js} +2 -2
- package/dist/{arazzo-CEDbb-uM.js → arazzo-C8u26FUA.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-B4YR9UpV.js → audience-BUonniPx.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +3 -3
- package/dist/{automation-Bfa_wD1h.d.ts → automation-CpOk7Tlu.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +20 -17
- package/dist/better-supabase/index.js +9 -9
- package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
- package/dist/{bind-DR6ku3A9.d.ts → bind-CW7nsZ86.d.ts} +7 -7
- package/dist/{bind-B4pMH9bm.js → bind-gwEbe9hL.js} +4 -4
- package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
- package/dist/{build-instance-BFMFQdE_.js → build-instance-DaBdCRiz.js} +1 -1
- package/dist/{capability-BZ_veK9o.d.ts → capability-v2xZB7us.d.ts} +1 -1
- package/dist/{casbin-DCQHkkyj.js → casbin-DaY-CWOr.js} +1 -1
- package/dist/{casbin-bKC1FpEx.js → casbin-JWZGKqzy.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-BTPySmbp.js +1 -0
- package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
- package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
- package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
- package/dist/{challenge-B2O2OLEk.js → challenge-DbkpCx_v.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +5 -5
- package/dist/cli/index.js +3 -3
- package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +2 -2
- package/dist/{cloud-C0vXBmLG.js → cloud-pEhjaPNs.js} +2 -2
- package/dist/{codemod-C-L0w-u7.js → codemod-BUhreN8m.js} +2 -2
- package/dist/{codemod-eYI1FbeJ.js → codemod-Cv0-7Ogj.js} +1 -1
- package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
- package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
- package/dist/collect-eSTXOZDC.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DBm0ub4p.d.ts → compile-DZftFfXc.d.ts} +2 -2
- package/dist/{completion-Dauc6pVT.js → completion-BG1wcLJ3.js} +1 -1
- package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
- package/dist/{config-DWp2PucY.js → config-Di9kWoLY.js} +1 -1
- package/dist/{config-report-DKpFm5ID.js → config-report-B0IyW7EQ.js} +2 -2
- package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
- package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
- package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +3 -3
- package/dist/{core-D87h2kpR.d.ts → core-BOeGWbcR.d.ts} +2 -2
- package/dist/{core-B8sLve3z.js → core-BwVkrpsi.js} +5 -5
- package/dist/{create-BrQXL-Wt.d.ts → create-BezeYFcT.d.ts} +6 -6
- package/dist/{create-C-tm3KIF.js → create-C0R8omeF.js} +4 -4
- package/dist/{create-3A7J9KRR.js → create-DDUFG1ul.js} +69 -29
- package/dist/{create-BzwjZuRS.d.ts → create-DMCC5ZOi.d.ts} +7 -7
- package/dist/{create-CtoT1lIQ.d.ts → create-DYSYYiLr.d.ts} +4 -4
- package/dist/decide-set-DXEPepY1.js +100 -0
- package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-De8cw3MW.d.ts} +1 -1
- package/dist/{describe-BKtC_8PG.d.ts → describe-DibQM6g-.d.ts} +1 -1
- package/dist/{diff-BnNHqtHj.js → diff-Bd1-VCe5.js} +4 -4
- package/dist/{diff-CBCzOTWM.js → diff-DXRNcjpg.js} +1 -1
- package/dist/{doctor-xUpR5rXg.js → doctor-Bp3xspBi.js} +15 -5
- package/dist/{doctor-CkYKCuX7.js → doctor-DpD4nHMS.js} +295 -66
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +4 -4
- package/dist/{errors-TpzkEKgJ.d.ts → errors-OTE9u4Wk.d.ts} +1 -1
- package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
- package/dist/{evaluate-Czbj7thS.js → evaluate-Dcq_U2TV.js} +2 -2
- package/dist/{evaluations-CisTTURl.d.ts → evaluations-BgxEfPL7.d.ts} +3 -3
- package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
- package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-acq4dPX3.js} +3 -3
- package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
- package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
- package/dist/{gen-BEIN-DRM.js → gen-B2O9T25-.js} +1 -1
- package/dist/{gen-mf-MRwVr.js → gen-CKr1Vfiz.js} +2 -2
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +5 -5
- package/dist/{hosted-waouw2V-.js → hosted-C2Pmhy2x.js} +4 -3
- package/dist/{hosted-BFNXwcjd.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
- package/dist/{import-DObwEota.js → import-DG6uswAo.js} +1 -1
- package/dist/{import-C1XXpG_m.js → import-DVI_1tO_.js} +46 -2
- package/dist/{index-BhnOOnp9.d.ts → index--AwSBzJC.d.ts} +2 -2
- package/dist/{index-rFp6X_QP.d.ts → index-B_I6N8Ju.d.ts} +5 -5
- package/dist/{index-CVGio3cH.d.ts → index-Bt37QovT.d.ts} +4 -4
- package/dist/{index-Dfv9Toct.d.ts → index-CLbGOPBr.d.ts} +1 -1
- package/dist/{index-CdMOd-GY.d.ts → index-CruReRkB.d.ts} +24 -6
- package/dist/{index-CdUTE6qd.d.ts → index-D7xGi1LS.d.ts} +24 -10
- package/dist/index.d.ts +17 -17
- package/dist/index.js +15 -15
- package/dist/{init-CNJ8lLjo.js → init-C-cgOvCl.js} +1 -1
- package/dist/{init-DS3PEsCG.js → init-DAPbdjcX.js} +3 -3
- package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
- package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-SX8zH_1t.js} +3 -3
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-30Z2zM_d.js → kernel-_QEUOSU0.js} +7 -7
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-DUVzBLh7.js → login-CQGjpkuo.js} +3 -3
- package/dist/{login-BgK5Jloo.js → login-Cgix5FgG.js} +1 -1
- package/dist/{manifest-wclLWBVH.js → manifest-CMu1IE0R.js} +38 -37
- package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
- package/dist/mcp/index.d.ts +57 -17
- package/dist/mcp/index.js +199 -53
- package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +5 -5
- package/dist/next/index.d.ts +12 -12
- package/dist/next/index.js +8 -8
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-zMEB9qxn.js → openapi-FVeCoh97.js} +2 -2
- package/dist/{openapi-C4gFqeRz.js → openapi-lsf1gEtr.js} +2 -2
- package/dist/orpc/index.d.ts +21 -17
- package/dist/orpc/index.js +18 -11
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-BFWLER4r.js → output-DZQCr2lP.js} +1 -1
- package/dist/{ownership-D-mIt-w0.js → ownership-CBuIjxKh.js} +2 -1
- package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
- package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CE4tgFsj.d.ts} +1 -1
- package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +2 -2
- package/dist/{permdock-D-_WrdKu.js → permdock-C1DN_7a-.js} +6 -6
- package/dist/{permdock-ffY4CMd9.d.ts → permdock-D4F2p5J8.d.ts} +4 -4
- package/dist/{permissions-B3ggI88M.js → permissions-8N2yFsUM.js} +1 -1
- package/dist/{policy-cV_wwPb8.js → policy-CaAME-Rh.js} +2 -2
- package/dist/{policy-BtKSApSt.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
- package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-CUNlpgz0.js} +6 -6
- package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-BI9C5Sp5.d.ts} +32 -2
- package/dist/{postgrest-D84p5dbA.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
- package/dist/powersync-BV68Jh-T.js +1 -0
- package/dist/{powersync-DStC_g0B.js → powersync-CRtuJXVB.js} +2 -2
- package/dist/{powersync-9PYOE1wt.js → powersync-Dz4H1FLs.js} +77 -38
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
- package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
- package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-ua0cx5cW.d.ts} +5 -5
- package/dist/{provider-OtnIiFWm.d.ts → provider-D_hgjZRa.d.ts} +1 -1
- package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
- package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
- package/dist/pull-AOmtUo8V.js +1 -0
- package/dist/{pull-DLP4I1Kl.js → pull-DnhBA9pf.js} +3 -3
- package/dist/{push-BSb8j1EW.js → push-D2SsRW0U.js} +3 -3
- package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-BERO0x9O.js} +1 -1
- package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-P0hgyLBh.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +28 -14
- package/dist/react-native/index.js +57 -37
- package/dist/{replay-E5X9E1lC.d.ts → replay-DYXI4gRN.d.ts} +1 -1
- package/dist/{request-context-DM6_jY1n.js → request-context-BPTi68z5.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/resend/index.js +2 -2
- package/dist/{resolve-names-CBl4r4_r.js → resolve-names-CDnxNqNb.js} +2 -2
- package/dist/{rls-pAHGYgTb.js → rls-CHZi5SUK.js} +1 -1
- package/dist/{rls-DGBL-jDY.js → rls-CbDKv6GP.js} +19 -13
- package/dist/{role-builder-CMW4wWzn.js → role-builder-C5AgaC1x.js} +18 -3
- package/dist/rpc-D2LnFELm.d.ts +22 -0
- package/dist/{rpc-KwX_Jcxz.js → rpc-DdkbQVlT.js} +16 -6
- package/dist/{run-B7lv3NuK.js → run-Bnm5VZ8m.js} +3 -3
- package/dist/run-D6U-Gwok.js +1 -0
- package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
- package/dist/{saas-B8H1MsQ3.js → saas-BEXnrH9H.js} +4 -4
- package/dist/{scan-0r3OZqqK.js → scan-VKkU4Ix9.js} +1 -1
- package/dist/{schema-B_9tXrbG.js → schema-5onstWlb.js} +1 -1
- package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +5 -5
- package/dist/{server-types-3OnXjZ2D.d.ts → server-types-ChzXWU4Y.d.ts} +31 -13
- package/dist/{sink-ogbVkyeo.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
- package/dist/{skills-C9sTD70r.js → skills-B6sLqv4E.js} +1 -1
- package/dist/{skills-B4MPRxQd.js → skills-Yz3LfoAZ.js} +1 -1
- package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
- package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-MPinwwgZ.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +3 -2
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-xdQShLDU.d.ts → sources-sgQlMfmz.d.ts} +1 -1
- package/dist/{src-Brzq_0in.js → src-B8SQNsvw.js} +30 -13
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +2 -2
- package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-CFZIYtBF.d.ts} +2 -2
- package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
- package/dist/{store-DYeB-_U3.d.ts → store-Dpg_fSNQ.d.ts} +31 -4
- package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
- package/dist/{stores-EPul_8MN.d.ts → stores-C2A6KsxE.d.ts} +5 -5
- package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
- package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
- package/dist/supabase/client.d.ts +1 -1
- package/dist/supabase/client.js +32 -4
- package/dist/supabase/index.d.ts +10 -5
- package/dist/supabase/index.js +1 -1
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +5 -5
- package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
- package/dist/{supabase-CogTyJH2.js → supabase-CWpADE8k.js} +2 -2
- package/dist/supabase-hook-Clczf4iF.js +1 -0
- package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-bDeWbKee.js} +151 -55
- package/dist/{supautils-BGf6zRvM.js → supautils-0RrdsFT3.js} +7 -7
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-BfOk0ymL.js → tables-C53U2zrN.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +4 -4
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/index.d.ts +23 -23
- package/dist/testing/index.js +22 -22
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +15 -8
- package/dist/trpc/index.js +23 -19
- package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-BjOLGVy1.d.ts} +1 -1
- package/dist/{types-D-JO7lh8.d.ts → types--_lpWUGV.d.ts} +5 -5
- package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
- package/dist/{types-CqcsNCaN.d.ts → types-BzxA2OAD.d.ts} +13 -1
- package/dist/{types-D19MK4t-.d.ts → types-C5p2hoBR.d.ts} +3 -3
- package/dist/{types-B8qUkGja.d.ts → types-CMclYgSk.d.ts} +2 -2
- package/dist/{types-3Y8UpFkF.d.ts → types-D1NjjwI4.d.ts} +68 -4
- package/dist/{types-DGf_cpKF.d.ts → types-D8JVDWOr.d.ts} +2 -2
- package/dist/{types-Ck1KOfug.d.ts → types-DBVSljAx.d.ts} +2 -2
- package/dist/{types-CDVXR6YD.d.ts → types-DZwEOsK1.d.ts} +1 -1
- package/dist/{types-DmbfLu2p.d.ts → types-DnzRZjEu.d.ts} +9 -4
- package/dist/{types-o1vu6Ks3.d.ts → types-Drs3OOAy.d.ts} +4 -4
- package/dist/{types-CCEeSCMB.d.ts → types-p8mhWTcR.d.ts} +3 -3
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-DC0UKe6C.js → usage-B6gmS634.js} +7 -5
- package/dist/{usage-DYtRVkcN.js → usage-BFMCEgJp.js} +1 -1
- package/dist/usage-Csu-M5jC.js +1 -0
- package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
- package/dist/{verify-Bpj0hauG.js → verify-DFruUfZg.js} +79 -58
- package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-q5cpaDSt.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +2 -2
- package/dist/{waiter-NK_UuZbb.d.ts → waiter-BjVI_Byg.d.ts} +2 -2
- package/dist/watch-CS69ftMP.js +1 -0
- package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
- package/dist/{who-can-KhVWMxtf.js → who-can-CZeAwQZD.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +2 -2
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-BHGA-SMM.d.ts → wrap-CE5lxje7.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/catalog-v1.json +8 -0
- package/skills/permdock-agents/references/runtimes.md +2 -2
- package/skills/permdock-data/SKILL.md +1 -1
- package/skills/permdock-data/references/queries-and-rls.md +2 -0
- package/skills/permdock-wire/references/adapters.md +1 -1
- package/dist/catalog-Caqhbdix.js +0 -1
- package/dist/collect-KCtOigxx.js +0 -1
- package/dist/powersync-xNRlC4jN.js +0 -1
- package/dist/pull-UBjDnf4b.js +0 -1
- package/dist/run-UPbacxPg.js +0 -1
- package/dist/stream-W2RuUYly.d.ts +0 -13
- package/dist/supabase-hook-BN46IrVI.js +0 -1
- package/dist/usage-Cl5eb-e1.js +0 -1
- package/dist/watch-OYwAPCzx.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as PolicyVocabulary, Q as Intent, Yn as Decision, _r as JsonWebKeyLike, an as SnapshotTenants, en as Snapshot, lr as Actor, qt as Instant, xr as Subject } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock, u as SnapshotOptions } 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, u as SnapshotOptions } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "./errors-OTE9u4Wk.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-VPsNQsTH.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-CE5lxje7.js";
|
|
9
9
|
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
10
|
-
import { r as PdpFactory } from "./types-
|
|
11
|
-
import { i as evaluationsHandler } from "./evaluations-
|
|
10
|
+
import { r as PdpFactory } from "./types-CMclYgSk.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-BgxEfPL7.js";
|
|
12
12
|
//#region src/server/connection.d.ts
|
|
13
13
|
type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
|
|
14
14
|
type ConnectionOptions<T = unknown> = {
|
|
@@ -228,12 +228,18 @@ type Loader<T> = (request: Request) => T | null | undefined | Promise<T | null |
|
|
|
228
228
|
* delegated token, one of the OAuth scopes it declares, but no permission.
|
|
229
229
|
*/
|
|
230
230
|
type Protect<V extends PolicyVocabulary = PolicyVocabulary, TArgs extends unknown[] = []> = {
|
|
231
|
-
<T = unknown>(permission: Permission, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V>>;
|
|
231
|
+
<T = unknown>(permission: Permission | readonly Permission[], data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V>>;
|
|
232
232
|
<T = unknown>(permission: null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<ScopeGuard<T, V>>;
|
|
233
|
-
<T = unknown>(permission: Permission | null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V> | ScopeGuard<T, V>>;
|
|
233
|
+
<T = unknown>(permission: Permission | readonly Permission[] | null, data?: Loader<T>, protectOptions?: ProtectOptions): (request: Request, ...args: TArgs) => Promise<Guard<T, V> | ScopeGuard<T, V>>;
|
|
234
234
|
};
|
|
235
235
|
type OpenApiHooks = {
|
|
236
|
-
|
|
236
|
+
/**
|
|
237
|
+
* One requirement holding every permission's scope, or with `anyOf` one
|
|
238
|
+
* requirement per permission.
|
|
239
|
+
*/
|
|
240
|
+
readonly security: (permission: Permission | readonly Permission[], options?: {
|
|
241
|
+
readonly anyOf?: boolean;
|
|
242
|
+
}) => {
|
|
237
243
|
readonly security: readonly Record<string, readonly string[]>[];
|
|
238
244
|
readonly "x-permdock-permissions": readonly string[];
|
|
239
245
|
};
|
|
@@ -256,6 +262,18 @@ type ProtectOptions = {
|
|
|
256
262
|
readonly field?: string;
|
|
257
263
|
/** Adds the evaluation `trace` to the guard's decision. */
|
|
258
264
|
readonly explain?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* With a list of permissions, one of them grants each row; without it, every
|
|
267
|
+
* permission must.
|
|
268
|
+
*/
|
|
269
|
+
readonly anyOf?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Loads the rows the route acts on, in place of `data`: every row must be
|
|
272
|
+
* granted, the guard's `data` is the list, and a denial reports the first
|
|
273
|
+
* refused row. No rows answers 404, as a `data` loader answering `null`
|
|
274
|
+
* does.
|
|
275
|
+
*/
|
|
276
|
+
readonly rows?: (request: Request) => readonly unknown[] | Promise<readonly unknown[]>;
|
|
259
277
|
};
|
|
260
278
|
type SnapshotQuery = {
|
|
261
279
|
/**
|
|
@@ -264,7 +282,7 @@ type SnapshotQuery = {
|
|
|
264
282
|
*/
|
|
265
283
|
readonly tenant?: string;
|
|
266
284
|
readonly include?: SnapshotOptions["include"];
|
|
267
|
-
readonly tenants?:
|
|
285
|
+
readonly tenants?: SnapshotTenants;
|
|
268
286
|
};
|
|
269
287
|
/**
|
|
270
288
|
* What `createPermDock` from `permdock/server` returns. Every member takes an
|
|
@@ -286,7 +304,7 @@ type ServerPermDock<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
286
304
|
* resume. A method, so a `ServerPermDock<V>` stays assignable to
|
|
287
305
|
* `ServerPermDock`.
|
|
288
306
|
*/
|
|
289
|
-
protectOn<T = unknown>(instance: PermDock<V>, permission: Permission | null, data?: () => T | null | undefined | Promise<T | null | undefined>, protectOptions?: ProtectOptions, request?: Request): Promise<Guard<T, V> | ScopeGuard<T, V>>;
|
|
307
|
+
protectOn<T = unknown>(instance: PermDock<V>, permission: Permission | readonly Permission[] | null, data?: () => T | null | undefined | Promise<T | null | undefined>, protectOptions?: ProtectOptions, request?: Request): Promise<Guard<T, V> | ScopeGuard<T, V>>;
|
|
290
308
|
/** A long-lived connection for a stream or socket opened by `request`. */
|
|
291
309
|
readonly connection: <T = unknown>(request: Request, options?: ConnectionOptions<T>, scope?: TenantScope) => Promise<Connection>;
|
|
292
310
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as SinkEvent, _t as TokenSigner, cn as AutomationEvent, gn as MembershipEvent, ln as CredentialEvent, on as AccessEvent } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { M as AppData } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { u as OperationRisk } from "./operations-Ci_rT6Uo.js";
|
|
4
|
-
import { t as Automation } from "./automation-
|
|
4
|
+
import { t as Automation } from "./automation-CpOk7Tlu.js";
|
|
5
5
|
//#region src/core/sink.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The closed list of CloudEvents `type` values, `com.permdock.<family>` or
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-BlmpmXoY.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-BYc6drYW.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-Yz3LfoAZ.js";
|
|
5
5
|
//#region src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -2,7 +2,7 @@ import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
|
2
2
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
3
3
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
4
4
|
import { t as didYouMean } from "./args-iafbHiXn.js";
|
|
5
|
-
import { a as nonEmptyOr } from "./output-
|
|
5
|
+
import { a as nonEmptyOr } from "./output-DZQCr2lP.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
8
8
|
import { pathToFileURL } from "node:url";
|
|
@@ -173,7 +173,8 @@ function buildSnapshot(input) {
|
|
|
173
173
|
const now = input.now ?? nowSeconds();
|
|
174
174
|
const principal = input.subject.principal;
|
|
175
175
|
const allTenants = tenantsOf(principal, scopeList(input.scopes));
|
|
176
|
-
const
|
|
176
|
+
const wanted = input.tenants;
|
|
177
|
+
const tenants = wanted === "all" ? allTenants : wanted === void 0 ? principal?.tenant === void 0 ? [] : [principal.tenant] : allTenants.filter((tenant) => wanted.includes(tenant));
|
|
177
178
|
const include = input.include;
|
|
178
179
|
const included = (permission) => include === void 0 || include.length === 0 || include.some((prefix) => permission.key === prefix || permission.key.startsWith(`${prefix}.`) || permission.resource === prefix);
|
|
179
180
|
const grants = input.grants.filter((item) => included(item.grant.permission)).map((item) => bindClaims(snapshotGrant(item.grant, item.membership), input.subject));
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, tr as GrantedDecision, vr as Membership, vt as TokenVerifier } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { r as Role } from "../vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "../permdock-
|
|
5
|
-
import { c as requiredPlans } from "../errors-
|
|
6
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "../permdock-D4F2p5J8.js";
|
|
5
|
+
import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
|
|
6
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DibQM6g-.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
8
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
8
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-Dpg_fSNQ.js";
|
|
9
9
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
|
|
10
10
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
11
11
|
import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
|
package/dist/solid/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { n as describe } from "../describe-BZAlPHxT.js";
|
|
|
4
4
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary-BV3O1eud.js";
|
|
5
5
|
import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-OpOxtTsN.js";
|
|
6
6
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "../views-MWmJ6Y4P.js";
|
|
7
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options
|
|
8
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
7
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CDvoX52-.js";
|
|
8
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-BTHGJH9j.js";
|
|
9
9
|
import { ErrorBoundary, createComponent, createComputed, createContext, createMemo, createSignal, getOwner, on, onCleanup, useContext } from "solid-js";
|
|
10
10
|
//#region src/solid/context.ts
|
|
11
11
|
const PermDockContext = createContext(void 0);
|
|
@@ -192,6 +192,7 @@ function PermDockProvider(props) {
|
|
|
192
192
|
const store = providerStore(compact({
|
|
193
193
|
endpoint: props.endpoint,
|
|
194
194
|
snapshotUrl: props.snapshotUrl,
|
|
195
|
+
fetchSnapshot: props.fetchSnapshot,
|
|
195
196
|
approvals: props.approvals,
|
|
196
197
|
tenant: props.tenant,
|
|
197
198
|
maxAge: props.maxAge,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
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-D4F2p5J8.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-ChzXWU4Y.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-DCQ4pZxf.js";
|
|
7
7
|
import { APIEvent, FetchEvent } from "@solidjs/start/server";
|
|
8
8
|
//#region src/solid-start/create.d.ts
|
|
9
9
|
/** The h3 event under every SolidStart request; `subject` and `scope` read it. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-
|
|
2
|
-
import { i as decorate } from "../bind-
|
|
3
|
-
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
1
|
+
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
2
|
+
import { i as decorate } from "../bind-gwEbe9hL.js";
|
|
3
|
+
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-acq4dPX3.js";
|
|
4
4
|
//#region src/solid-start/create.ts
|
|
5
5
|
/**
|
|
6
6
|
* `event.locals`. Its type, `App.RequestEventLocals`, is declared by
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { it as MembershipSource, sn as AuthEvent, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
|
|
3
3
|
import { t as ClientNames } from "./clients-C_NOET3z.js";
|
|
4
4
|
import { c as SupabaseManifestMembership } from "./manifest-B5yF3CIq.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, u as assertPortableTwin } from "./role-builder-
|
|
5
|
-
import { n as PermDockDeniedError } from "./errors-
|
|
4
|
+
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-C5AgaC1x.js";
|
|
5
|
+
import { n as PermDockDeniedError } from "./errors-ynga1EQy.js";
|
|
6
6
|
import { o as sameId } from "./expiry-6XByK0dm.js";
|
|
7
7
|
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
8
8
|
import { c as listPermissions, i as getRegistry, n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
@@ -13,31 +13,33 @@ import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
|
13
13
|
import { a as normalizeMembership$1, c as rootScope, d as scopeList, l as scopeChain, o as normalizeMemberships$1, p as tenantOf, s as resolveScope$1, u as scopeIdOf } from "./scopes-BSdYaGHs.js";
|
|
14
14
|
import { u as evaluateCondition } from "./delegation-aK4T_5WU.js";
|
|
15
15
|
import { _ as listPlans, a as authenticated, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
16
|
-
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-
|
|
16
|
+
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-hlfO9BJv.js";
|
|
17
17
|
import { m as tenantsOf, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js";
|
|
18
|
-
import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-
|
|
19
|
-
import { o as isPortableCondition } from "./hosted-
|
|
18
|
+
import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-CaAME-Rh.js";
|
|
19
|
+
import { o as isPortableCondition } from "./hosted-C2Pmhy2x.js";
|
|
20
20
|
import { n as isOperationRisk } from "./operation-risks-BKOcTv8J.js";
|
|
21
21
|
import { n as isOperationEffect } from "./operations-Bm9HFecz.js";
|
|
22
|
-
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-
|
|
23
|
-
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-
|
|
22
|
+
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-Dcq_U2TV.js";
|
|
23
|
+
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-SX8zH_1t.js";
|
|
24
24
|
import { n as relationId } from "./relations-BxvRvDHK.js";
|
|
25
|
-
import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-
|
|
26
|
-
import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-
|
|
27
|
-
import { c as APP, r as resolveSubject } from "./permdock-
|
|
28
|
-
import { i as memoryApprovalStore } from "./store-
|
|
25
|
+
import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DHPih65J.js";
|
|
26
|
+
import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
27
|
+
import { c as APP, r as resolveSubject } from "./permdock-C1DN_7a-.js";
|
|
28
|
+
import { i as memoryApprovalStore } from "./store-CSOsXd5s.js";
|
|
29
29
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
30
30
|
//#region src/conditions/sql-function.ts
|
|
31
31
|
function sqlFunction(name, options) {
|
|
32
32
|
assertSqlFunctionName(name);
|
|
33
33
|
const args = options.args ?? [];
|
|
34
34
|
for (const arg of args) assertSqlFunctionArg(arg);
|
|
35
|
+
if (options.set !== void 0) assertSqlFunctionSet(options.set);
|
|
35
36
|
const twin = normalizeWhere(options.twin);
|
|
36
37
|
assertPortableTwin(twin);
|
|
37
38
|
return freezeDeep({
|
|
38
39
|
op: "sqlFunction",
|
|
39
40
|
name,
|
|
40
41
|
args,
|
|
42
|
+
...options.set === void 0 ? {} : { set: options.set },
|
|
41
43
|
twin
|
|
42
44
|
});
|
|
43
45
|
}
|
|
@@ -74,6 +76,15 @@ function memoryMembershipSource(entries) {
|
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* The memberships `subject`'s principal carries, as a `MembershipSource` for
|
|
81
|
+
* `permdockFor` and `snapshotFor`. It answers for that principal only; any
|
|
82
|
+
* other principal has none.
|
|
83
|
+
*/
|
|
84
|
+
function subjectMembershipSource(subject) {
|
|
85
|
+
const principal = subject.principal;
|
|
86
|
+
return memoryMembershipSource(principal === null ? {} : { [principal.id]: principal.memberships ?? [] });
|
|
87
|
+
}
|
|
77
88
|
/** A snapshot held in memory; `set` replaces it and notifies every subscriber. */
|
|
78
89
|
function memorySnapshotSource(initial) {
|
|
79
90
|
let current = initial;
|
|
@@ -324,6 +335,7 @@ function tightenApproval(code, entries, input) {
|
|
|
324
335
|
const seen = /* @__PURE__ */ new Set();
|
|
325
336
|
let sequential = false;
|
|
326
337
|
let authorize = false;
|
|
338
|
+
let fallback = true;
|
|
327
339
|
let staleOn;
|
|
328
340
|
let ttl;
|
|
329
341
|
for (const [index, part] of parts.entries()) {
|
|
@@ -337,10 +349,14 @@ function tightenApproval(code, entries, input) {
|
|
|
337
349
|
}
|
|
338
350
|
if (part === "human") {
|
|
339
351
|
authorize = true;
|
|
352
|
+
fallback = false;
|
|
340
353
|
continue;
|
|
341
354
|
}
|
|
342
355
|
sequential ||= part.combine === "sequential";
|
|
343
|
-
|
|
356
|
+
if (part.mode !== "confirm") {
|
|
357
|
+
authorize = true;
|
|
358
|
+
fallback &&= part.fallback === "confirm";
|
|
359
|
+
}
|
|
344
360
|
staleOn ??= part.staleOn;
|
|
345
361
|
ttl = shorter(ttl, part.ttl);
|
|
346
362
|
}
|
|
@@ -348,6 +364,7 @@ function tightenApproval(code, entries, input) {
|
|
|
348
364
|
combine: sequential ? "sequential" : "all",
|
|
349
365
|
stages,
|
|
350
366
|
mode: authorize ? void 0 : "confirm",
|
|
367
|
+
fallback: authorize && fallback ? "confirm" : void 0,
|
|
351
368
|
staleOn,
|
|
352
369
|
ttl,
|
|
353
370
|
escalation: code === void 0 || code === "human" ? void 0 : code.escalation
|
|
@@ -2205,4 +2222,4 @@ function toCsvRow(event) {
|
|
|
2205
2222
|
].map(field).join(",");
|
|
2206
2223
|
}
|
|
2207
2224
|
//#endregion
|
|
2208
|
-
export { memoryCustomRoleSource as A, limits as C, approvalPoliciesFor as D, approvalPolicies as E,
|
|
2225
|
+
export { memoryCustomRoleSource as A, limits as C, approvalPoliciesFor as D, approvalPolicies as E, subjectMembershipSource as F, sqlFunction as I, memoryMembershipSource as M, memorySettingsSource as N, memoryApprovalPolicySource as O, memorySnapshotSource as P, memoryRelationSource as S, stripeEntitlementSource as T, arazzoFindings as _, normalizeMembership as a, instanceCache as b, crud as c, snapshotFor as d, customRoleSource as f, localSnapshotManifest as g, defineApp as h, decideRoleChange as i, memoryEntitlementSource as j, validateApprovalPolicy as k, readable as l, shadowMode as m, toCsvRow as n, normalizeMemberships as o, mayAccess as p, checkRoleChange as r, resolveScope as s, CSV_COLUMNS as t, writable as u, simulateArazzo as v, memoryLimitStore as w, signPolicyDocument as x, memoryVersionCache as y };
|
package/dist/ssf/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-
|
|
2
|
-
import { t as memoryReplayStore } from "../replay-
|
|
3
|
-
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index
|
|
1
|
+
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-DBVSljAx.js";
|
|
2
|
+
import { t as memoryReplayStore } from "../replay-DYXI4gRN.js";
|
|
3
|
+
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index--AwSBzJC.js";
|
|
4
4
|
export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
|
package/dist/ssf/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { o as statusProblem } from "../problem-details-CLDgX1KV.js";
|
|
3
3
|
import { o as epochSeconds } from "../time-nR1JesoH.js";
|
|
4
4
|
import { n as readBodyText } from "../body-text-DQhcmqdY.js";
|
|
5
|
-
import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-
|
|
6
|
-
import { t as cancelApprovals } from "../helpers-
|
|
5
|
+
import { f as validationProblem, l as problemResponse, o as methodNotAllowed, s as notFoundProblem } from "../problem-BWP1l86g.js";
|
|
6
|
+
import { t as cancelApprovals } from "../helpers-D-MXwkOF.js";
|
|
7
7
|
import { i as issuerFromDiscovery, t as joseTokenVerifier } from "../verifier-DUV6pLqZ.js";
|
|
8
8
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
9
9
|
import { t as timeoutSignal } from "../timeout-D51niuQP.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as ReplayStore } from "./types-
|
|
1
|
+
import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { l as ReplayStore } from "./types-DBVSljAx.js";
|
|
3
3
|
//#region src/server/standard-webhooks.d.ts
|
|
4
4
|
/** The three Standard Webhooks headers a delivery carries. */
|
|
5
5
|
type WebhookHeaders = {
|
|
@@ -2,7 +2,7 @@ import { t as compact } from "./compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { a as flattenApprovers, i as approverManagerKey } from "./approvers-BaNwKYgd.js";
|
|
4
4
|
import { a as durationOf, i as dateAt } from "./time-nR1JesoH.js";
|
|
5
|
-
import { o as readWireApproval } from "./approval-normalize-
|
|
5
|
+
import { o as readWireApproval } from "./approval-normalize-hlfO9BJv.js";
|
|
6
6
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
7
7
|
import { n as matchGrantee } from "./grantee-match-BP-k4vRJ.js";
|
|
8
8
|
import { a as escalationOpenAt, i as approverRelationKey, o as stageEscalationOpenAt, r as approvalQuorum, s as ApprovalError } from "./types-CcUXciSj.js";
|
|
@@ -167,13 +167,15 @@ function matchesFilter(request, filter) {
|
|
|
167
167
|
if (filter.session !== void 0 && request.subject.session !== filter.session) return false;
|
|
168
168
|
return true;
|
|
169
169
|
}
|
|
170
|
-
function assertSeparateApprover(request, by, requireDistinctApprover) {
|
|
170
|
+
function assertSeparateApprover(request, by, requireDistinctApprover, otherApprovers) {
|
|
171
171
|
const principal = by.principal;
|
|
172
172
|
if (principal === null) throw new ApprovalError("approver-unauthenticated", "approver must be authenticated");
|
|
173
173
|
if (principal.kind === "link" || principal.kind === "feed" || principal.kind === "contact") throw new ApprovalError("approver-not-eligible", "a link, a feed or a contact cannot approve");
|
|
174
174
|
if (by.actor?.kind === "support") throw new ApprovalError("approver-not-eligible", "a support session cannot approve");
|
|
175
175
|
if (request.subject.actor !== void 0 && principal.id === request.subject.actor.id) throw new ApprovalError("approver-is-actor", "approver is the actor of this request");
|
|
176
|
-
|
|
176
|
+
const wire = readWireApproval(request.approvers);
|
|
177
|
+
const alone = wire?.fallback === "confirm" && otherApprovers === 0;
|
|
178
|
+
if ((requireDistinctApprover || wire?.mode !== "confirm" && !alone) && request.subject.principal !== null && principal.id === request.subject.principal.id) throw new ApprovalError("approver-is-principal", "approver is the principal of this request");
|
|
177
179
|
if (by.actor !== void 0 && !isSystemSubject(by) || by.delegation !== void 0 || principal.kind === "service" || principal.kind === "workload") throw new ApprovalError("approver-not-eligible", "an approver must be a person acting for themselves, not an agent, a delegated token or a service");
|
|
178
180
|
return principal;
|
|
179
181
|
}
|
|
@@ -193,9 +195,9 @@ function vouchedRule(verdict) {
|
|
|
193
195
|
* are the relation approvers `by` holds on the request's resource (see
|
|
194
196
|
* `ApprovalVerdict.relations`).
|
|
195
197
|
*/
|
|
196
|
-
function assertApprover(request, by, requireDistinctApprover, at, relations = [], permissions = []) {
|
|
198
|
+
function assertApprover(request, by, requireDistinctApprover, at, relations = [], permissions = [], otherApprovers) {
|
|
197
199
|
const now = dateAt(at);
|
|
198
|
-
const principal = assertSeparateApprover(request, by, requireDistinctApprover);
|
|
200
|
+
const principal = assertSeparateApprover(request, by, requireDistinctApprover, otherApprovers);
|
|
199
201
|
const tenant = request.subject.principal?.tenant;
|
|
200
202
|
if (tenant !== void 0 && !belongsToTenant(by, tenant)) throw new ApprovalError("approver-not-eligible", "approver does not belong to the request tenant");
|
|
201
203
|
assertNotRepeated(request, principal.id);
|
|
@@ -248,7 +250,7 @@ function applyApprovalVerdict(request, verdict, at) {
|
|
|
248
250
|
const behalf = vouched === void 0 ? verdict.onBehalfOf : void 0;
|
|
249
251
|
let stage;
|
|
250
252
|
if (verdict.status === "rejected" && isSystemSubject(verdict.by) || vouched !== void 0) stage = void 0;
|
|
251
|
-
else if (behalf === void 0) stage = assertApprover(request, verdict.by, false, { epochMilliseconds: now.getTime() }, verdict.relations, verdict.permissions);
|
|
253
|
+
else if (behalf === void 0) stage = assertApprover(request, verdict.by, false, { epochMilliseconds: now.getTime() }, verdict.relations, verdict.permissions, verdict.otherApprovers);
|
|
252
254
|
else {
|
|
253
255
|
const delegate = assertSeparateApprover(request, verdict.by, false);
|
|
254
256
|
const tenant = request.subject.principal?.tenant;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ProblemDetails } from "./errors-
|
|
5
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
3
|
+
import { a as PermDock } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { a as ProblemDetails } from "./errors-OTE9u4Wk.js";
|
|
5
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-DibQM6g-.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
7
7
|
//#region src/core/action-result.d.ts
|
|
8
8
|
/** What a `protectAction` action resolves to; both members cross to the client. */
|
|
@@ -113,6 +113,11 @@ type ProviderOptionsBase = {
|
|
|
113
113
|
readonly endpoint?: string | false;
|
|
114
114
|
/** Where `refresh()` fetches a fresh snapshot. Defaults to `endpoint`. */
|
|
115
115
|
readonly snapshotUrl?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Answers `refresh()` in place of a request to `snapshotUrl` or `endpoint`;
|
|
118
|
+
* see `ClientStoreOptions.fetchSnapshot`.
|
|
119
|
+
*/
|
|
120
|
+
readonly fetchSnapshot?: NonNullable<ClientStoreOptions["fetchSnapshot"]>;
|
|
116
121
|
readonly approvals?: string;
|
|
117
122
|
/** Read on every request, so a new `fetch` applies without a new store. */
|
|
118
123
|
readonly fetch?: typeof fetch;
|
|
@@ -170,6 +175,15 @@ type ClientStoreOptions = {
|
|
|
170
175
|
readonly snapshot: Snapshot | string;
|
|
171
176
|
readonly endpoint?: string;
|
|
172
177
|
readonly snapshotUrl?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Answers a refresh in place of a request to `snapshotUrl` or `endpoint`: the
|
|
180
|
+
* app's own source of a snapshot, such as a server action. A rejection keeps
|
|
181
|
+
* the current snapshot and marks it stale. With a `verifier`, it must answer
|
|
182
|
+
* a signed snapshot.
|
|
183
|
+
*/
|
|
184
|
+
readonly fetchSnapshot?: (query: {
|
|
185
|
+
readonly tenant?: string;
|
|
186
|
+
}) => Snapshot | string | Promise<Snapshot | string>;
|
|
173
187
|
readonly approvals?: string;
|
|
174
188
|
readonly tenant?: string;
|
|
175
189
|
readonly fetch?: typeof fetch;
|
|
@@ -234,6 +248,19 @@ type ClientStore = {
|
|
|
234
248
|
* settled (`status: 'fulfilled'`) hydrates at once.
|
|
235
249
|
*/
|
|
236
250
|
track: (value: PromiseLike<Snapshot | string>) => void;
|
|
251
|
+
/**
|
|
252
|
+
* Render-time `track()`: hydrates at once from a promise React already
|
|
253
|
+
* settled (`status: 'fulfilled'`) and does nothing for a pending one, which
|
|
254
|
+
* `track()` follows after commit. Subscribers are notified in a microtask,
|
|
255
|
+
* never inside render.
|
|
256
|
+
*/
|
|
257
|
+
seed: (value: PromiseLike<Snapshot | string>) => void;
|
|
258
|
+
/**
|
|
259
|
+
* What a server render saw: the instance the store held when first read after
|
|
260
|
+
* `seed()`. Pass it as `getServerSnapshot`, so a boundary that hydrates after
|
|
261
|
+
* the store moved on still matches the server's markup, then updates.
|
|
262
|
+
*/
|
|
263
|
+
serverGet: () => ClientPermDock;
|
|
237
264
|
/**
|
|
238
265
|
* The approval state for a decision. While something subscribes, an
|
|
239
266
|
* `approval-required` decision is polled at `<approvals>/<token>`.
|
|
@@ -3,9 +3,9 @@ import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
|
3
3
|
import { c as rowIdOf } from "./delegation-aK4T_5WU.js";
|
|
4
4
|
import { c as nowSeconds } from "./tenancy-DvOHHk3-.js";
|
|
5
5
|
import { r as payloadDigest } from "./token-DaMnIU9O.js";
|
|
6
|
-
import { n as parseSnapshot } from "./snapshot-
|
|
7
|
-
import { c as snapshotClaim } from "./where-scope-
|
|
8
|
-
import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-
|
|
6
|
+
import { n as parseSnapshot } from "./snapshot-DHPih65J.js";
|
|
7
|
+
import { c as snapshotClaim } from "./where-scope-BAyOsPQW.js";
|
|
8
|
+
import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DHnb8Fh4.js";
|
|
9
9
|
import { t as timeoutSignal } from "./timeout-D51niuQP.js";
|
|
10
10
|
//#region src/client/source.ts
|
|
11
11
|
/** A compact JWS: three non-empty dot-separated parts. */
|
|
@@ -441,6 +441,7 @@ function createClientStore(options) {
|
|
|
441
441
|
let awaiting = options.awaiting === true;
|
|
442
442
|
let following = awaiting ? 1 : 0;
|
|
443
443
|
let tracked;
|
|
444
|
+
let serverView;
|
|
444
445
|
let refreshSeq = 0;
|
|
445
446
|
let silent = false;
|
|
446
447
|
let adopted;
|
|
@@ -682,8 +683,10 @@ function createClientStore(options) {
|
|
|
682
683
|
},
|
|
683
684
|
async refresh(query) {
|
|
684
685
|
const requested = query?.tenant;
|
|
686
|
+
const fetchSnapshot = options.fetchSnapshot;
|
|
685
687
|
const source = options.snapshotUrl ?? options.endpoint;
|
|
686
|
-
|
|
688
|
+
const hasSource = fetchSnapshot !== void 0 || source !== void 0;
|
|
689
|
+
if (requested !== void 0 && (snapshot.tenants.includes(requested) || !hasSource)) {
|
|
687
690
|
const wasStale = base === "stale";
|
|
688
691
|
tenant = requested;
|
|
689
692
|
hydrate(snapshot);
|
|
@@ -693,7 +696,7 @@ function createClientStore(options) {
|
|
|
693
696
|
}
|
|
694
697
|
return;
|
|
695
698
|
}
|
|
696
|
-
if (
|
|
699
|
+
if (!hasSource || disposed) return;
|
|
697
700
|
const started = generation;
|
|
698
701
|
refreshSeq += 1;
|
|
699
702
|
const seq = refreshSeq;
|
|
@@ -702,10 +705,15 @@ function createClientStore(options) {
|
|
|
702
705
|
let body;
|
|
703
706
|
let ok = false;
|
|
704
707
|
try {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
body = await response.json();
|
|
708
|
+
if (fetchSnapshot !== void 0) {
|
|
709
|
+
body = await fetchSnapshot(compact({ tenant: requested }));
|
|
708
710
|
ok = true;
|
|
711
|
+
} else if (source !== void 0) {
|
|
712
|
+
const response = await request(withTenant(source, requested));
|
|
713
|
+
if (response.ok) {
|
|
714
|
+
body = await response.json();
|
|
715
|
+
ok = true;
|
|
716
|
+
}
|
|
709
717
|
}
|
|
710
718
|
} catch {
|
|
711
719
|
ok = false;
|
|
@@ -802,6 +810,20 @@ function createClientStore(options) {
|
|
|
802
810
|
else if (thenable.status === "rejected") serverOnly();
|
|
803
811
|
else follow(value);
|
|
804
812
|
},
|
|
813
|
+
seed(value) {
|
|
814
|
+
const thenable = value;
|
|
815
|
+
if (tracked === value || thenable.status !== "fulfilled") return;
|
|
816
|
+
tracked = value;
|
|
817
|
+
if (awaiting) {
|
|
818
|
+
awaiting = false;
|
|
819
|
+
following -= 1;
|
|
820
|
+
}
|
|
821
|
+
store.adopt(thenable.value, value);
|
|
822
|
+
},
|
|
823
|
+
serverGet() {
|
|
824
|
+
serverView ??= cached;
|
|
825
|
+
return serverView;
|
|
826
|
+
},
|
|
805
827
|
adopt(value, source) {
|
|
806
828
|
if (adopted === source) return;
|
|
807
829
|
adopted = source;
|
|
@@ -869,6 +891,7 @@ function adapterStore(options, snapshot, native) {
|
|
|
869
891
|
endpoint: options.endpoint === false ? void 0 : options.endpoint,
|
|
870
892
|
onServerOnly: options.endpoint === false ? hintOnce() : void 0,
|
|
871
893
|
snapshotUrl: options.snapshotUrl,
|
|
894
|
+
fetchSnapshot: options.fetchSnapshot,
|
|
872
895
|
approvals: options.approvals,
|
|
873
896
|
tenant: options.tenant,
|
|
874
897
|
fetch: options.fetch,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { r as Role } from "./vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
5
|
-
import { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
6
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-
|
|
7
|
-
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "./permdock-D4F2p5J8.js";
|
|
5
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DibQM6g-.js";
|
|
6
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-Dpg_fSNQ.js";
|
|
7
|
+
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-C5p2hoBR.js";
|
|
8
8
|
import { Readable } from "svelte/store";
|
|
9
9
|
//#region src/svelte/stores.d.ts
|
|
10
10
|
declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
|
|
2
2
|
import { a as livePermDock, c as rolesView, d as subjectView, f as tenantView, i as gateView, n as describeWith, o as permissionSet, r as filterResult, t as approvalHandle } from "./views-MWmJ6Y4P.js";
|
|
3
|
-
import { n as getUi, r as providePermDock, t as getStore } from "./context-
|
|
3
|
+
import { n as getUi, r as providePermDock, t as getStore } from "./context-YhyXyqBI.js";
|
|
4
4
|
import { derived, readable, toStore, writable } from "svelte/store";
|
|
5
5
|
//#region src/svelte/stores.ts
|
|
6
6
|
function fromStore(store, compute) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as PermDockRevokedError } from "./errors-
|
|
1
|
+
import { r as PermDockRevokedError } from "./errors-ynga1EQy.js";
|
|
2
2
|
//#region src/server/stream.ts
|
|
3
3
|
function isAsyncIterable(value) {
|
|
4
4
|
return value !== null && typeof value === "object" && typeof value[Symbol.asyncIterator] === "function";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as supabaseRealtimeRefresh, n as RealtimeRefreshClient, r as SupabaseRealtimeRefreshOptions, t as RealtimeRefreshChannel } from "../client-
|
|
1
|
+
import { i as supabaseRealtimeRefresh, n as RealtimeRefreshClient, r as SupabaseRealtimeRefreshOptions, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
|
|
2
2
|
export { RealtimeRefreshChannel, RealtimeRefreshClient, SupabaseRealtimeRefreshOptions, supabaseRealtimeRefresh };
|