permdock 0.17.0 → 0.18.1
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 +3 -3
- package/dist/{adoption-scan-Ci0xiJ3T.js → adoption-scan-CxExBYSJ.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 +3 -3
- package/dist/{approval-normalize-4KxMRdJC.js → approval-normalize-CUjgSsOl.js} +1 -1
- package/dist/{approval-policies-9VagPixq.d.ts → approval-policies-oNnckT12.d.ts} +1 -1
- package/dist/{approval-prompt-BSh-yxbH.d.ts → approval-prompt-Bg7gDSqd.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/approvals/index.js +3 -3
- package/dist/{approvals-DdFcTncq.js → approvals-DGId_hgJ.js} +2 -2
- package/dist/{approvers-CNtl4Vc5.js → approvers-BaNwKYgd.js} +1 -3
- package/dist/{arazzo-_zUmT8ZT.js → arazzo--riLuGY0.js} +2 -2
- package/dist/{arazzo-7kbeh1yi.js → arazzo-CEDbb-uM.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-jRO819i3.js → audience-B4YR9UpV.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +2 -2
- package/dist/{automation-DCWuVKtd.d.ts → automation-Bfa_wD1h.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 +153 -91
- package/dist/better-supabase/index.js +332 -62
- package/dist/{bind-BJFeLX1V.js → bind-B4pMH9bm.js} +4 -4
- package/dist/{bind-DjFNX0Pq.d.ts → bind-DR6ku3A9.d.ts} +7 -7
- package/dist/{build-instance-lye7oEqf.js → build-instance-BFMFQdE_.js} +1 -1
- package/dist/{capability-BzjWdKmP.d.ts → capability-BZ_veK9o.d.ts} +1 -1
- package/dist/{casbin-DFzk_so3.js → casbin-DCQHkkyj.js} +1 -1
- package/dist/{casbin-C3O_O9nu.js → casbin-bKC1FpEx.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +5 -5
- package/dist/catalog-Caqhbdix.js +1 -0
- package/dist/{catalog-DGDd_ww1.js → catalog-D1fw8qif.js} +2 -2
- package/dist/{catalog-operations-DVI5QO5R.js → catalog-operations-BD22drQf.js} +2 -2
- package/dist/{catalog-DJJIkR9P.js → catalog-zzNuR3sY.js} +1 -1
- package/dist/{challenge-M_ghKJnT.js → challenge-B2O2OLEk.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 +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/client-CH7vzSAY.d.ts +32 -0
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-DYqzmh5i.js → cloud-C0vXBmLG.js} +2 -2
- package/dist/{codemod-DqB9klYI.js → codemod-C-L0w-u7.js} +2 -2
- package/dist/{codemod-DNGMGqBS.js → codemod-eYI1FbeJ.js} +1 -1
- package/dist/{collect-C44RrKCI.js → collect-CU85z6Ta.js} +2 -2
- package/dist/{collect-HfJXl8Tr.js → collect-D878zLDP.js} +1 -1
- package/dist/collect-KCtOigxx.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-BxiwRotu.d.ts → compile-DBm0ub4p.d.ts} +2 -2
- package/dist/{completion-pwVjJlek.js → completion-Dauc6pVT.js} +1 -1
- package/dist/{config-DnfH6_eT.js → config-DWp2PucY.js} +1 -1
- package/dist/{config-report-C1jl7Na-.js → config-report-DKpFm5ID.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-W5f4Rjt0.js → core-B8sLve3z.js} +3 -3
- package/dist/{core-0iYZ5HUx.d.ts → core-D87h2kpR.d.ts} +2 -2
- package/dist/{create-jCPwPWXf.js → create-3A7J9KRR.js} +4 -4
- package/dist/{create-DrHUmKvG.d.ts → create-BrQXL-Wt.d.ts} +6 -6
- package/dist/{create-bzQlBzG4.d.ts → create-BzwjZuRS.d.ts} +7 -7
- package/dist/{create-gqtDb1nU.js → create-C-tm3KIF.js} +3 -3
- package/dist/{create-DNN3OtsO.d.ts → create-CtoT1lIQ.d.ts} +4 -4
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-DyzWwxEB.d.ts → denied-text-DlIxt8fh.d.ts} +1 -1
- package/dist/{describe-nalX_HHE.d.ts → describe-BKtC_8PG.d.ts} +1 -1
- package/dist/{describe-CogP1loh.js → describe-BZAlPHxT.js} +1 -1
- package/dist/{diff-BTsLiW59.js → diff-BnNHqtHj.js} +4 -4
- package/dist/{diff-CcxYooMu.js → diff-CBCzOTWM.js} +1 -1
- package/dist/{doctor-DS-9ApID.js → doctor-CkYKCuX7.js} +55 -17
- package/dist/{doctor-BNRhJegR.js → doctor-xUpR5rXg.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-Dc9FdamT.d.ts → errors-TpzkEKgJ.d.ts} +1 -1
- package/dist/{evaluate-CsjXeLRo.js → evaluate-Czbj7thS.js} +2 -2
- package/dist/{evaluations-BasA9zXp.d.ts → evaluations-CisTTURl.d.ts} +3 -3
- package/dist/{evaluations-DG40eSJa.js → evaluations-h3KoJAPa.js} +1 -1
- 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-BgqpOOpd.d.ts → fetch-adapter-BdmfnbJM.d.ts} +2 -2
- package/dist/{fetch-adapter-UZOW0PRC.js → fetch-adapter-DH-NJPbL.js} +2 -2
- package/dist/{fixtures-0VTW5oNq.js → fixtures-Cemqurt8.js} +8 -2
- package/dist/{gen-CNCzG4sB.js → gen-BEIN-DRM.js} +1 -1
- package/dist/{gen-DnpZwQPo.js → gen-mf-MRwVr.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DNnZffrI.js → helpers-DmqGy63f.js} +21 -13
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DxRLLiFU.d.ts → hosted-BFNXwcjd.d.ts} +1 -1
- package/dist/{hosted-tPZnyjQS.js → hosted-waouw2V-.js} +3 -3
- package/dist/{import-BYVbSKx0.js → import-DObwEota.js} +1 -1
- package/dist/{index-z44pfWar.d.ts → index-BhnOOnp9.d.ts} +2 -2
- package/dist/{index-DFwUOkvt.d.ts → index-CVGio3cH.d.ts} +4 -4
- package/dist/{index-CXXUFWtG.d.ts → index-CdMOd-GY.d.ts} +4 -4
- package/dist/{index-Bt-UoBWu.d.ts → index-CdUTE6qd.d.ts} +8 -8
- package/dist/{index-CZ5mixHO.d.ts → index-Dfv9Toct.d.ts} +1 -1
- package/dist/{index-DtGtDzjb.d.ts → index-rFp6X_QP.d.ts} +4 -4
- package/dist/index.d.ts +17 -17
- package/dist/index.js +15 -13
- package/dist/{init-YSDySeMy.js → init-CNJ8lLjo.js} +1 -1
- package/dist/{init-Dr1qAStu.js → init-DS3PEsCG.js} +3 -3
- package/dist/{instance-options-BOCRxEFb.d.ts → instance-options-2sFGSdsf.d.ts} +1 -1
- package/dist/{instance-snapshot-BgOGtyCy.js → instance-snapshot-BWa71my8.js} +2 -2
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-CDDU93dI.js → kernel-30Z2zM_d.js} +6 -6
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-CXgEKLaW.js → login-BgK5Jloo.js} +1 -1
- package/dist/{login-DEVXDTX8.js → login-DUVzBLh7.js} +3 -3
- package/dist/{manifest-BXTbHNIV.js → manifest-BdzBobNK.js} +1 -1
- package/dist/{manifest-schema-DQkBK2Mr.js → manifest-schema-CsFsYLF-.js} +1 -1
- package/dist/{manifest-Dij1U0hx.js → manifest-wclLWBVH.js} +35 -35
- package/dist/{map-error-B_f3C5cs.js → map-error-BH16Ah8P.js} +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +5 -5
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +23 -10
- package/dist/next/index.js +29 -9
- 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-D3wkvOoU.js → openapi-C4gFqeRz.js} +2 -2
- package/dist/{openapi-GM-kTdkq.js → openapi-zMEB9qxn.js} +2 -2
- package/dist/{operation-findings-CXtFzlKJ.js → operation-findings-CVwJHEu_.js} +1 -1
- package/dist/operation-risks-BKOcTv8J.js +13 -0
- package/dist/operations-Bm9HFecz.js +89 -0
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-DhTpe8v1.js → output-BFWLER4r.js} +1 -1
- package/dist/{ownership-moSRhxl_.js → ownership-D-mIt-w0.js} +1 -1
- package/dist/{parse-local-manifest-DEiCF4ah.js → parse-local-manifest-CxcSMQgl.js} +2 -2
- package/dist/{parse-local-manifest-BgTYdR3q.d.ts → parse-local-manifest-DvjTQNuO.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DdzMv5-F.js → permdock-D-_WrdKu.js} +18 -8
- package/dist/{permdock-DUWZEOLR.d.ts → permdock-ffY4CMd9.d.ts} +20 -7
- package/dist/{permissions-CvpPtz5O.js → permissions-B3ggI88M.js} +2 -2
- package/dist/{permissions-CVXmRILq.js → permissions-BaoLxy66.js} +1 -13
- package/dist/{policy-CTNl7pvN.d.ts → policy-BtKSApSt.d.ts} +1 -1
- package/dist/{policy-DxQyHKPB.js → policy-cV_wwPb8.js} +2 -2
- package/dist/{policy-from-catalog-DVa1faOr.js → policy-from-catalog-B68hGC0S.js} +6 -6
- package/dist/{policy-types-IRJVABmm.d.ts → policy-types-D-GwfQTc.d.ts} +9 -0
- package/dist/{postgrest-B_cEDd4e.d.ts → postgrest-D84p5dbA.d.ts} +1 -1
- package/dist/{powersync-C0nsyULQ.js → powersync-9PYOE1wt.js} +150 -13
- package/dist/{powersync-BZxw_v-A.js → powersync-DStC_g0B.js} +2 -2
- package/dist/powersync-xNRlC4jN.js +1 -0
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-qowj6nxN.js → protected-action-B40tU3yP.js} +2 -2
- package/dist/{protected-action-D3S9U4nc.d.ts → protected-action-Ds_EUY8B.d.ts} +5 -5
- package/dist/{protected-action-B6n6w7Rl.js → protected-action-OpOxtTsN.js} +1 -1
- package/dist/{provider-CjAu39fJ.d.ts → provider-OtnIiFWm.d.ts} +1 -1
- package/dist/{pull-DVoZ0V9_.js → pull-DLP4I1Kl.js} +2 -2
- package/dist/pull-UBjDnf4b.js +1 -0
- package/dist/{push-eJl1Tvqm.js → push-BSb8j1EW.js} +3 -3
- package/dist/{pushed-policy-DMXAOmEW.js → pushed-policy-BecMsTtM.js} +1 -1
- package/dist/{pushed-policy-CUQuvlS3.d.ts → pushed-policy-Ck3FZcoy.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-native/index.d.ts +103 -38
- package/dist/react-native/index.js +194 -35
- package/dist/{replay-Dc3d8LhG.d.ts → replay-E5X9E1lC.d.ts} +1 -1
- package/dist/{request-context-Ch052blg.js → request-context-DM6_jY1n.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-1nCei24V.js → resolve-names-CBl4r4_r.js} +1 -1
- package/dist/{rls-ClJRblnR.js → rls-DGBL-jDY.js} +10 -10
- package/dist/{rls-BVzoZCn3.js → rls-pAHGYgTb.js} +1 -1
- package/dist/{role-builder-BrmOcXch.js → role-builder-CMW4wWzn.js} +1 -1
- package/dist/{rpc-BOu3FD6X.js → rpc-KwX_Jcxz.js} +1 -1
- package/dist/{run-CnCaTjWX.js → run-B7lv3NuK.js} +2 -2
- package/dist/run-UPbacxPg.js +1 -0
- package/dist/{run-ticket-C6lXvHM_.d.ts → run-ticket-DPaD27_r.d.ts} +2 -2
- package/dist/{runtime-CBXkOcg9.js → runtime-rf0ZuyF3.js} +1 -1
- package/dist/{saas-BqM9mJkk.js → saas-B8H1MsQ3.js} +4 -4
- package/dist/{scan-CepUXrFt.js → scan-0r3OZqqK.js} +1 -1
- package/dist/{schema-9_NDz8fx.js → schema-B_9tXrbG.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +3 -3
- package/dist/{server-types-Bw-lWqzR.d.ts → server-types-3OnXjZ2D.d.ts} +8 -8
- package/dist/{sink-DUzt0e4B.d.ts → sink-ogbVkyeo.d.ts} +2 -2
- package/dist/{skills-BUuH-QFt.js → skills-B4MPRxQd.js} +1 -1
- package/dist/{skills-a4N6Y2Xm.js → skills-C9sTD70r.js} +1 -1
- package/dist/{snapshot-cache-Dbk-Gnij.d.ts → snapshot-cache-B4YvlGG_.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid/index.js +3 -3
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-CXY05xtB.d.ts → sources-xdQShLDU.d.ts} +1 -1
- package/dist/{src-nYNBfmgq.js → src-Brzq_0in.js} +21 -104
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +1 -1
- package/dist/{standard-webhooks-BFeEpjxy.d.ts → standard-webhooks-BfPaZ6T1.d.ts} +2 -2
- package/dist/{store-g5ctUrOI.d.ts → store-DYeB-_U3.d.ts} +4 -4
- package/dist/{store-XgBMbfDy.js → store-DmVqy74I.js} +2 -2
- package/dist/{stores-53_kOwPi.js → stores-BYFopOm1.js} +2 -2
- package/dist/{stores-BtdN3eDO.d.ts → stores-EPul_8MN.d.ts} +5 -5
- package/dist/{stream-BMJg56jU.d.ts → stream-W2RuUYly.d.ts} +1 -1
- package/dist/supabase/client.d.ts +2 -31
- package/dist/supabase/index.d.ts +5 -5
- package/dist/supabase/index.js +3 -3
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-C8cNzp4i.js → supabase-BiViJpQ4.js} +1 -1
- package/dist/{supabase-C6FyUeSh.js → supabase-CogTyJH2.js} +2 -2
- package/dist/supabase-hook-BN46IrVI.js +1 -0
- package/dist/{supabase-hook-Cj85nccs.js → supabase-hook-DX38Hj8h.js} +238 -23
- package/dist/{supautils-BP_5WAIc.js → supautils-BGf6zRvM.js} +6 -6
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +5 -5
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +2 -2
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +3 -3
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-BsGE6HBR.js → tables-BfOk0ymL.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 +3 -3
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/index.js +15 -15
- 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/{tool-refusal-C1UlhU0V.js → tool-refusal-D4spOJ7I.js} +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +3 -3
- package/dist/{type-helpers-C_OnZW8c.d.ts → type-helpers-i1EJ3Eb1.d.ts} +1 -1
- package/dist/{types-CAAN7evk.d.ts → types-3Y8UpFkF.d.ts} +17 -1
- package/dist/{types-B3BOcI0J.d.ts → types-B8qUkGja.d.ts} +2 -2
- package/dist/{types-UfpcY575.d.ts → types-CCEeSCMB.d.ts} +3 -3
- package/dist/{types-AOP5HQku.d.ts → types-CDVXR6YD.d.ts} +1 -1
- package/dist/{types-CJC1aaoJ.d.ts → types-Ck1KOfug.d.ts} +2 -2
- package/dist/{types-BvBbkAu1.d.ts → types-CqcsNCaN.d.ts} +1 -1
- package/dist/{types-CA-A33Q5.d.ts → types-D-JO7lh8.d.ts} +4 -4
- package/dist/{types-DVZNTkU0.d.ts → types-D19MK4t-.d.ts} +3 -3
- package/dist/{types-Sj1U8HMm.d.ts → types-DGf_cpKF.d.ts} +2 -2
- package/dist/{types-e82uzrTn.d.ts → types-DmbfLu2p.d.ts} +4 -4
- package/dist/{types-D29K5ZNP.d.ts → types-o1vu6Ks3.d.ts} +4 -4
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/usage-Cl5eb-e1.js +1 -0
- package/dist/{usage-COsGLht5.js → usage-DC0UKe6C.js} +3 -3
- package/dist/{usage-CqcMeQgX.js → usage-DYtRVkcN.js} +1 -1
- package/dist/{validation-error-DpvsBwZJ.d.ts → validation-error-Dx8PipbO.d.ts} +1 -1
- package/dist/{verify-C8G8D5mk.js → verify-Bpj0hauG.js} +8 -8
- package/dist/{version-cache-9Vq5QVFC.d.ts → version-cache-DzNKWiI6.d.ts} +1 -1
- package/dist/{views-TrZYlDnM.js → views-MWmJ6Y4P.js} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/vue/index.js +3 -3
- package/dist/{waiter-C2cXXLFZ.d.ts → waiter-NK_UuZbb.d.ts} +2 -2
- package/dist/{watch-DXRDBSCu.js → watch-CBHADqBH.js} +1 -1
- package/dist/watch-OYwAPCzx.js +1 -0
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/{who-can-BY5d3HPw.js → who-can-KhVWMxtf.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-DpZAbxuD.d.ts → wrap-BHGA-SMM.d.ts} +2 -2
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +1 -1
- package/skills/permdock-approvals/references/stores-and-resume.md +1 -1
- package/skills/permdock-wire/references/adapters.md +3 -1
- package/dist/catalog-BpnjesqX.js +0 -1
- package/dist/collect-CAibhmCi.js +0 -1
- package/dist/powersync-Cqzx25dI.js +0 -1
- package/dist/pull-CUVdB04v.js +0 -1
- package/dist/run-D9N6V5WQ.js +0 -1
- package/dist/supabase-hook-CPBX4dy5.js +0 -1
- package/dist/usage-D1cpHO7p.js +0 -1
- package/dist/watch-DnymTAfe.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
3
3
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
4
4
|
import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
|
|
5
|
-
import { n as describe } from "../describe-
|
|
5
|
+
import { n as describe } from "../describe-BZAlPHxT.js";
|
|
6
6
|
import { n as isThenable } from "../thenable-BNSM1U2R.js";
|
|
7
7
|
import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
|
|
8
8
|
import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-BSdYaGHs.js";
|
|
@@ -11,11 +11,12 @@ import { t as byCodePoint } from "../compare-DTfyUunF.js";
|
|
|
11
11
|
import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-DvOHHk3-.js";
|
|
12
12
|
import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-DN_8J27z.js";
|
|
13
13
|
import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-DMlSSo9b.js";
|
|
14
|
-
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-
|
|
15
|
-
import { r as approvalHeaders } from "../protected-action-
|
|
14
|
+
import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-CxcSMQgl.js";
|
|
15
|
+
import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
|
|
16
16
|
import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options--zWn48PK.js";
|
|
17
17
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
|
|
18
|
-
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-
|
|
18
|
+
import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-B40tU3yP.js";
|
|
19
|
+
import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
|
|
19
20
|
import { useEffect, useMemo, useRef } from "react";
|
|
20
21
|
import { jsx } from "react/jsx-runtime";
|
|
21
22
|
//#region src/react-native/guards.ts
|
|
@@ -316,7 +317,8 @@ function buildLocalSnapshot(manifest, data, at) {
|
|
|
316
317
|
customRoles: tenantCustom
|
|
317
318
|
})],
|
|
318
319
|
scopes: manifest.scopes,
|
|
319
|
-
vocabulary: manifest.vocabulary
|
|
320
|
+
vocabulary: manifest.vocabulary,
|
|
321
|
+
authzVersion: Number.isSafeInteger(data.authzVersion) && (data.authzVersion ?? -1) >= 0 ? data.authzVersion : void 0
|
|
320
322
|
}));
|
|
321
323
|
}
|
|
322
324
|
/**
|
|
@@ -334,6 +336,7 @@ function localSnapshot(options) {
|
|
|
334
336
|
function isColumns(roles) {
|
|
335
337
|
return Array.isArray(roles);
|
|
336
338
|
}
|
|
339
|
+
/** A SQLite identifier in double quotes. */
|
|
337
340
|
function quoted(name) {
|
|
338
341
|
return `"${name.replaceAll("\"", "\"\"")}"`;
|
|
339
342
|
}
|
|
@@ -359,6 +362,7 @@ function rowTables(rows) {
|
|
|
359
362
|
tables.add(rows.customRoles.permissions);
|
|
360
363
|
tables.add(rows.customRoles.includes);
|
|
361
364
|
}
|
|
365
|
+
if (rows.version !== void 0) tables.add(rows.version.table);
|
|
362
366
|
return [...tables];
|
|
363
367
|
}
|
|
364
368
|
function rowQuery(table) {
|
|
@@ -495,8 +499,21 @@ function customRolesOf(permissions, includes) {
|
|
|
495
499
|
return [...roles.values()].map(customRoleOf);
|
|
496
500
|
}
|
|
497
501
|
/**
|
|
498
|
-
* The user's
|
|
499
|
-
*
|
|
502
|
+
* The highest version on the user's rows of the version table. SQLite returns a
|
|
503
|
+
* `bigint` column as a number, or as text past 2^53.
|
|
504
|
+
*/
|
|
505
|
+
function versionOf(table, tables, user) {
|
|
506
|
+
if (table === void 0) return;
|
|
507
|
+
let found;
|
|
508
|
+
for (const row of rowsOf(tables, table.table)) {
|
|
509
|
+
const value = Number(text(row[table.version]));
|
|
510
|
+
if (text(row[table.user]) === user && Number.isSafeInteger(value) && value >= 0 && (found === void 0 || value > found)) found = value;
|
|
511
|
+
}
|
|
512
|
+
return found;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* The user's memberships, global roles, custom roles and authorization version
|
|
516
|
+
* from the rows of the tables `rows` names.
|
|
500
517
|
*/
|
|
501
518
|
function readRows(rows, tables, principal) {
|
|
502
519
|
const { id: user, tenant, attributes } = principal;
|
|
@@ -507,7 +524,9 @@ function readRows(rows, tables, principal) {
|
|
|
507
524
|
return key === void 0 ? [] : [key];
|
|
508
525
|
}) : []);
|
|
509
526
|
const custom = rows.customRoles;
|
|
527
|
+
const authzVersion = versionOf(rows.version, tables, user);
|
|
510
528
|
return {
|
|
529
|
+
...authzVersion === void 0 ? {} : { authzVersion },
|
|
511
530
|
principal: {
|
|
512
531
|
id: user,
|
|
513
532
|
roles: [...new Set(roles)].toSorted(),
|
|
@@ -649,6 +668,173 @@ function powerSyncSourceCache(db) {
|
|
|
649
668
|
} });
|
|
650
669
|
}
|
|
651
670
|
//#endregion
|
|
671
|
+
//#region src/react-native/subscriptions.ts
|
|
672
|
+
/**
|
|
673
|
+
* `subscribeForeground` over `AppState`: `active` returns to the foreground and
|
|
674
|
+
* `background` leaves it. iOS `inactive` (a system sheet over the app) is
|
|
675
|
+
* neither.
|
|
676
|
+
*/
|
|
677
|
+
function appStateForeground(appState) {
|
|
678
|
+
return (listener) => {
|
|
679
|
+
const subscription = appState.addEventListener("change", (state) => {
|
|
680
|
+
if (state === "active") listener(true);
|
|
681
|
+
else if (state === "background") listener(false);
|
|
682
|
+
});
|
|
683
|
+
return () => {
|
|
684
|
+
subscription.remove();
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* `subscribeOnline` over NetInfo. An unknown (`null`) connection counts as
|
|
690
|
+
* online.
|
|
691
|
+
*/
|
|
692
|
+
function netInfoOnline(netInfo) {
|
|
693
|
+
return (listener) => netInfo.addEventListener((state) => {
|
|
694
|
+
listener(state.isConnected !== false && state.isInternetReachable !== false);
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
//#endregion
|
|
698
|
+
//#region src/react-native/native-refresh.ts
|
|
699
|
+
/** The `authz_ver` claim of an access token, read without verifying it. */
|
|
700
|
+
function tokenVersion(token) {
|
|
701
|
+
const payload = token.split(".")[1];
|
|
702
|
+
if (payload === void 0) return;
|
|
703
|
+
try {
|
|
704
|
+
const base64 = payload.replaceAll("-", "+").replaceAll("_", "/");
|
|
705
|
+
const claims = JSON.parse(atob(base64.padEnd(Math.ceil(base64.length / 4) * 4, "=")));
|
|
706
|
+
const version = isRecord(claims) ? claims["authz_ver"] : void 0;
|
|
707
|
+
return typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? version : void 0;
|
|
708
|
+
} catch {
|
|
709
|
+
return;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
function highest(rows) {
|
|
713
|
+
let found;
|
|
714
|
+
for (const row of rows) {
|
|
715
|
+
const value = Number(isRecord(row) ? row["version"] : void 0);
|
|
716
|
+
if (Number.isSafeInteger(value) && value >= 0 && (found === void 0 || value > found)) found = value;
|
|
717
|
+
}
|
|
718
|
+
return found;
|
|
719
|
+
}
|
|
720
|
+
async function currentSession(supabase) {
|
|
721
|
+
try {
|
|
722
|
+
return (await supabase.auth.getSession()).data.session;
|
|
723
|
+
} catch {
|
|
724
|
+
return null;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* A `refreshOn` trigger for an Expo app on Supabase: on each message on the
|
|
729
|
+
* user's private `authz:<uid>` topic it refreshes the Supabase session, then
|
|
730
|
+
* reconnects PowerSync so streams that read token claims see the new ones, then
|
|
731
|
+
* refreshes the snapshot. Passes run one at a time; signals during a pass fold
|
|
732
|
+
* into one more. The channel closes in the background and rejoins on
|
|
733
|
+
* foreground, where one catch-up pass runs: a version check with
|
|
734
|
+
* `powersync.manifest`, else a full pass. It never imports `@supabase/*` or
|
|
735
|
+
* `@powersync/*`.
|
|
736
|
+
*/
|
|
737
|
+
function nativeRefresh(options) {
|
|
738
|
+
const { supabase, powersync } = options;
|
|
739
|
+
const versionRows = powersync?.manifest?.rows?.version;
|
|
740
|
+
return (refresh) => {
|
|
741
|
+
let closed = false;
|
|
742
|
+
let online = true;
|
|
743
|
+
let held = false;
|
|
744
|
+
let running = false;
|
|
745
|
+
let again = false;
|
|
746
|
+
let channel;
|
|
747
|
+
let joins = 0;
|
|
748
|
+
let watching;
|
|
749
|
+
const pass = async () => {
|
|
750
|
+
try {
|
|
751
|
+
await supabase.auth.refreshSession();
|
|
752
|
+
if (powersync !== void 0) {
|
|
753
|
+
await powersync.db.disconnect();
|
|
754
|
+
await powersync.db.connect(powersync.connector);
|
|
755
|
+
}
|
|
756
|
+
} catch {}
|
|
757
|
+
if (!closed) refresh();
|
|
758
|
+
};
|
|
759
|
+
const signal = () => {
|
|
760
|
+
if (closed) return;
|
|
761
|
+
if (!online) {
|
|
762
|
+
held = true;
|
|
763
|
+
return;
|
|
764
|
+
}
|
|
765
|
+
if (running) {
|
|
766
|
+
again = true;
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
running = true;
|
|
770
|
+
pass().finally(() => {
|
|
771
|
+
running = false;
|
|
772
|
+
if (again) {
|
|
773
|
+
again = false;
|
|
774
|
+
signal();
|
|
775
|
+
}
|
|
776
|
+
});
|
|
777
|
+
};
|
|
778
|
+
const versionSql = versionRows === void 0 ? void 0 : `SELECT ${quoted(versionRows.version)} AS version FROM ${quoted(versionRows.table)} WHERE ${quoted(versionRows.user)} = ?`;
|
|
779
|
+
const checkVersion = async () => {
|
|
780
|
+
if (versionSql === void 0 || powersync === void 0) return;
|
|
781
|
+
const current = await currentSession(supabase);
|
|
782
|
+
if (current === null || closed) return;
|
|
783
|
+
const token = tokenVersion(current.access_token);
|
|
784
|
+
try {
|
|
785
|
+
const synced = highest(await powersync.db.getAll(versionSql, [current.user.id]));
|
|
786
|
+
if (token !== void 0 && synced !== void 0 && synced > token) signal();
|
|
787
|
+
} catch {}
|
|
788
|
+
};
|
|
789
|
+
const leave = () => {
|
|
790
|
+
joins += 1;
|
|
791
|
+
if (channel !== void 0) {
|
|
792
|
+
supabase.removeChannel(channel);
|
|
793
|
+
channel = void 0;
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
const join = async () => {
|
|
797
|
+
joins += 1;
|
|
798
|
+
const generation = joins;
|
|
799
|
+
const current = await currentSession(supabase);
|
|
800
|
+
if (closed || generation !== joins || current === null) return;
|
|
801
|
+
channel = supabase.channel(authzUserTopic(current.user.id), { config: { private: true } });
|
|
802
|
+
channel.on("broadcast", { event: AUTHZ_EVENT }, () => {
|
|
803
|
+
signal();
|
|
804
|
+
});
|
|
805
|
+
channel.subscribe();
|
|
806
|
+
if (versionSql !== void 0 && powersync !== void 0 && watching === void 0) {
|
|
807
|
+
watching = new AbortController();
|
|
808
|
+
powersync.db.watch(versionSql, [current.user.id], { onResult: () => {
|
|
809
|
+
checkVersion();
|
|
810
|
+
} }, { signal: watching.signal });
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
join();
|
|
814
|
+
const offForeground = appStateForeground(options.appState)((active) => {
|
|
815
|
+
leave();
|
|
816
|
+
if (active === false) return;
|
|
817
|
+
join();
|
|
818
|
+
if (versionSql === void 0) signal();
|
|
819
|
+
else checkVersion();
|
|
820
|
+
});
|
|
821
|
+
const offOnline = options.netInfo === void 0 ? void 0 : netInfoOnline(options.netInfo)((next) => {
|
|
822
|
+
online = next;
|
|
823
|
+
if (next && held) {
|
|
824
|
+
held = false;
|
|
825
|
+
signal();
|
|
826
|
+
}
|
|
827
|
+
});
|
|
828
|
+
return () => {
|
|
829
|
+
closed = true;
|
|
830
|
+
leave();
|
|
831
|
+
offForeground();
|
|
832
|
+
offOnline?.();
|
|
833
|
+
watching?.abort();
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
652
838
|
//#region src/react-native/storage.ts
|
|
653
839
|
const SNAPSHOT_KEY = "permdock.snapshot";
|
|
654
840
|
const TENANT_KEY = "permdock.tenant";
|
|
@@ -1099,31 +1285,4 @@ function mmkvStorage(mmkv) {
|
|
|
1099
1285
|
};
|
|
1100
1286
|
}
|
|
1101
1287
|
//#endregion
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* `subscribeForeground` over `AppState`: `active` returns to the foreground and
|
|
1105
|
-
* `background` leaves it. iOS `inactive` (a system sheet over the app) is
|
|
1106
|
-
* neither.
|
|
1107
|
-
*/
|
|
1108
|
-
function appStateForeground(appState) {
|
|
1109
|
-
return (listener) => {
|
|
1110
|
-
const subscription = appState.addEventListener("change", (state) => {
|
|
1111
|
-
if (state === "active") listener(true);
|
|
1112
|
-
else if (state === "background") listener(false);
|
|
1113
|
-
});
|
|
1114
|
-
return () => {
|
|
1115
|
-
subscription.remove();
|
|
1116
|
-
};
|
|
1117
|
-
};
|
|
1118
|
-
}
|
|
1119
|
-
/**
|
|
1120
|
-
* `subscribeOnline` over NetInfo. An unknown (`null`) connection counts as
|
|
1121
|
-
* online.
|
|
1122
|
-
*/
|
|
1123
|
-
function netInfoOnline(netInfo) {
|
|
1124
|
-
return (listener) => netInfo.addEventListener((state) => {
|
|
1125
|
-
listener(state.isConnected !== false && state.isInternetReachable !== false);
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
//#endregion
|
|
1129
|
-
export { PermDockProvider, Protected, appStateForeground, approvalHeaders, authzChangeRefresh, buildLocalSnapshot, connectSource, describe, eventSourceRefresh, localSnapshot, memorySnapshotStorage, mmkvStorage, nativeStore, netInfoOnline, parseLocalSnapshotManifest, powerSyncSource, powerSyncSourceCache, requiredPlans, secureStoreStorage, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissionGuard, usePermissions, useProtectedAction, useRoles, useSnapshotReady, useSubject, useTenant };
|
|
1288
|
+
export { PermDockProvider, Protected, appStateForeground, approvalHeaders, authzChangeRefresh, buildLocalSnapshot, connectSource, describe, eventSourceRefresh, localSnapshot, memorySnapshotStorage, mmkvStorage, nativeRefresh, nativeStore, netInfoOnline, parseLocalSnapshotManifest, powerSyncSource, powerSyncSourceCache, requiredPlans, secureStoreStorage, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissionGuard, usePermissions, useProtectedAction, useRoles, useSnapshotReady, useSubject, useTenant };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
2
2
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
3
|
-
import { t as buildInstance } from "./build-instance-
|
|
3
|
+
import { t as buildInstance } from "./build-instance-BFMFQdE_.js";
|
|
4
4
|
//#region src/core/request-context.ts
|
|
5
5
|
/**
|
|
6
6
|
* Errors an adapter raises around one instance (a `context` hook that threw, an
|
package/dist/resend/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Y as DecisionSink } from "../policy-types-
|
|
2
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-
|
|
4
|
-
import { l as ReplayStore } from "../types-
|
|
1
|
+
import { Y as DecisionSink } from "../policy-types-D-GwfQTc.js";
|
|
2
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-Bg7gDSqd.js";
|
|
3
|
+
import { d as EmailTransport, o as DeliveryResult, u as EmailMessage } from "../types-CCEeSCMB.js";
|
|
4
|
+
import { l as ReplayStore } from "../types-Ck1KOfug.js";
|
|
5
5
|
//#region src/resend/approval-email.d.ts
|
|
6
6
|
type ApprovalEmailOptions = {
|
|
7
7
|
/**
|
|
@@ -5,7 +5,7 @@ import { i as configError } from "./errors-BhRkoNS7.js";
|
|
|
5
5
|
import "./budget-BBCPDOGP.js";
|
|
6
6
|
import "./sources-C4vkzZJV.js";
|
|
7
7
|
import { A as quoteQualified, D as qualified, I as scopeTypeOf, O as quoteIdent } from "./shared-DyYVEjKC.js";
|
|
8
|
-
import { F as globalRoleRows, Q as graphSqlName, Z as graphHelper, _ as PERMISSION_HELPERS, at as memberForHelper, c as holderSources, ct as memberIdsHelper, dt as permittedForHelper, ft as permittedIdsHelper, ht as scopeTable, lt as memberOfHelper, nt as inheritedRowsHelper, o as graphPlan, pt as restrictedHelper, r as tableNames, rt as isTeamScope, tt as hasPermittedUsers, v as checkName, x as permittedByPermissionHelper } from "./tables-
|
|
8
|
+
import { F as globalRoleRows, Q as graphSqlName, Z as graphHelper, _ as PERMISSION_HELPERS, at as memberForHelper, c as holderSources, ct as memberIdsHelper, dt as permittedForHelper, ft as permittedIdsHelper, ht as scopeTable, lt as memberOfHelper, nt as inheritedRowsHelper, o as graphPlan, pt as restrictedHelper, r as tableNames, rt as isTeamScope, tt as hasPermittedUsers, v as checkName, x as permittedByPermissionHelper } from "./tables-BfOk0ymL.js";
|
|
9
9
|
import { t as FIELD_VIEWS } from "./fields-CrjL6A49.js";
|
|
10
10
|
//#region src/cli/rls/permission-holders.ts
|
|
11
11
|
/**
|
|
@@ -8,25 +8,25 @@ import { o as sqlFiles } from "./files-BSjrtIHw.js";
|
|
|
8
8
|
import { c as requirePolicy } from "./load-BaEamml-.js";
|
|
9
9
|
import { i as qualifySqlTable, r as escapeSqlIdent } from "./sql-0WjxIp9g.js";
|
|
10
10
|
import "./sources-C4vkzZJV.js";
|
|
11
|
-
import { t as policyFromCatalog } from "./policy-from-catalog-
|
|
11
|
+
import { t as policyFromCatalog } from "./policy-from-catalog-B68hGC0S.js";
|
|
12
12
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
13
13
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-BeHZ4x9Q.js";
|
|
14
|
-
import { a as nonEmptyOr } from "./output-
|
|
14
|
+
import { a as nonEmptyOr } from "./output-BFWLER4r.js";
|
|
15
15
|
import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-BuK9F53f.js";
|
|
16
16
|
import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
|
|
17
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
17
|
+
import { t as fetchProjectPolicy } from "./pull-DLP4I1Kl.js";
|
|
18
18
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
19
19
|
import { a as isSeedsDirectory, c as parseSplit, d as seedsMigration, f as writeOutputFiles, l as partPath, n as dataMigrationFile, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
20
|
-
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-
|
|
20
|
+
import { b as rbacScaffold, d as resolveSchemas, f as schemasRefusal, o as supabaseHookSql, p as declarativeSql, s as approvalsSql, t as grantsLabel, u as isSupabaseSchemas, y as parseRbacAuthorize } from "./supabase-hook-DX38Hj8h.js";
|
|
21
21
|
import { A as quoteQualified, D as qualified$1, I as scopeTypeOf, O as quoteIdent$1, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, j as quoteTable, k as quoteLiteral, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-DyYVEjKC.js";
|
|
22
|
-
import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-
|
|
23
|
-
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-
|
|
22
|
+
import { C as accessSql, G as byKey, T as seedSql, Z as graphHelper, ct as memberIdsHelper, ft as permittedIdsHelper, ht as scopeTable, mt as scopeSources, r as tableNames, s as graphSql, w as helpersSql, x as permittedByPermissionHelper, y as permissionHelpersSql } from "./tables-BfOk0ymL.js";
|
|
23
|
+
import { c as breakGlassKey, i as assignmentSql, l as collectGrants, n as ownershipSql, s as breakGlassHolder } from "./ownership-D-mIt-w0.js";
|
|
24
24
|
import { a as splitUndiffed } from "./deciding-columns-NB4wcyBf.js";
|
|
25
25
|
import { t as connectPgPool } from "./pg-Ddxsd5ZB.js";
|
|
26
26
|
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, f as readOnlyActorKinds, i as fieldViews, l as actorMayWriteSql, n as columnGrantSql, o as rowBranches, p as readOnlyActorPolicies, r as columnRevokeSql, u as assemblePolicies } from "./fields-CrjL6A49.js";
|
|
27
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
28
|
-
import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-
|
|
29
|
-
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-
|
|
27
|
+
import { n as permissionHoldersSql } from "./resolve-names-CBl4r4_r.js";
|
|
28
|
+
import { _ as indexTargets, a as verifyResult, b as readTableIndexFacts, c as callsHelper, g as INDEX_COLUMNS_SQL, h as COLUMNS_SQL, i as verifyIgnores, l as helperCallKeys, m as tableFor, n as runRlsVerify, o as HELPER_TABLES, p as compileGrants, r as rlsFinding, v as indexesSql, y as pruneIndexTargets } from "./verify-Bpj0hauG.js";
|
|
29
|
+
import { a as buildContext, c as levelKeys, d as rebuildPlan, i as splitsPart, l as rowHelpersSql, n as generateOptions, o as CANDIDATES, r as isRefusal, s as inheritTargets, t as supautilsRejections, u as DROPPED_LIST } from "./supautils-BGf6zRvM.js";
|
|
30
30
|
import { readFileSync } from "node:fs";
|
|
31
31
|
import { basename, delimiter, join } from "node:path";
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
@@ -1601,7 +1601,7 @@ function generateSql(input, policy, options, built, warnings) {
|
|
|
1601
1601
|
const checked = preflight(input, built);
|
|
1602
1602
|
if (isRefusal(checked)) return checked;
|
|
1603
1603
|
const { jsonSchema } = checked;
|
|
1604
|
-
if (jsonSchema !== void 0 && jsonSchema !== false && (rls?.approvals === void 0 || rls.approvals === false)) warnings.push("rls.jsonSchema constrains the approval store's body, which needs rls.approvals: true; nothing else is jsonb");
|
|
1604
|
+
if (jsonSchema !== void 0 && jsonSchema !== false && (rls?.approvals === void 0 || rls.approvals === false || typeof rls.approvals === "object" && rls.approvals.store === false)) warnings.push("rls.jsonSchema constrains the approval store's body, which needs rls.approvals: true; nothing else is jsonb");
|
|
1605
1605
|
const generated = generatePolicies(input, policy, options, built, warnings);
|
|
1606
1606
|
if (isRefusal(generated)) return generated;
|
|
1607
1607
|
const assembled = preambleSql(input, policy, options, built, generated, jsonSchema, warnings);
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-DGBL-jDY.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
const generate = defineLeaf({
|
|
198
198
|
flags: {
|
|
@@ -6,7 +6,7 @@ import { c as listPermissions, o as isPermission } from "./permission-registry-B
|
|
|
6
6
|
import { n as assertMetaValue, r as parseAppData, t as assertAppData } from "./app-data-UNNm07jV.js";
|
|
7
7
|
import { a as durationOf, r as assertDuration } from "./time-nR1JesoH.js";
|
|
8
8
|
import { d as roleScopeOf, g as isRole, o as flattenGrantee, r as asGrantee, u as roleNameOf } from "./grantee-Dke-9rd1.js";
|
|
9
|
-
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-
|
|
9
|
+
import { a as normalizeApproval, t as activationApproval } from "./approval-normalize-CUjgSsOl.js";
|
|
10
10
|
import { c as sanitizeFields, n as normalizeValidity } from "./validity-Buc7w8E9.js";
|
|
11
11
|
//#region src/conditions/opaque.ts
|
|
12
12
|
function opaque(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { s as requestFromContext } from "./http-DKLXrFGk.js";
|
|
3
3
|
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
4
|
-
import { t as adapterKernel } from "./bind-
|
|
4
|
+
import { t as adapterKernel } from "./bind-B4pMH9bm.js";
|
|
5
5
|
import { r as guardIterable } from "./stream-CDvF0sJm.js";
|
|
6
6
|
//#region src/server/rpc.ts
|
|
7
7
|
/** The tRPC and oRPC error code for a Problem Details status. */
|
|
@@ -5,9 +5,9 @@ import { a as resolveCwd, i as readConfig } from "./config-COHmivz9.js";
|
|
|
5
5
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
6
6
|
import { a as GLOBAL_FLAGS, i as suggestion, n as parseFlags, r as parseLeaf } from "./args-iafbHiXn.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-dkycUsY3.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-wclLWBVH.js";
|
|
9
9
|
import { t as createStyle } from "./style-Ds11Hmk4.js";
|
|
10
|
-
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-
|
|
10
|
+
import { i as githubAnnotations, n as envelope, o as sarifLog, t as dataOf } from "./output-BFWLER4r.js";
|
|
11
11
|
import { stripVTControlCharacters } from "node:util";
|
|
12
12
|
import { existsSync, statSync } from "node:fs";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-B7lv3NuK.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Kt as Instant, _r as Principal, _t as TokenVerifier, an as AuthEvent, gt as TokenSigner, ht as TokenFailureCause, lr as AuthorizationDetail, pr as Delegation, sr as Actor, yr as Subject } from "./policy-types-
|
|
2
|
-
import { _ as PrincipalSource } from "./permdock-
|
|
1
|
+
import { Kt as Instant, _r as Principal, _t as TokenVerifier, an as AuthEvent, gt as TokenSigner, ht as TokenFailureCause, lr as AuthorizationDetail, pr as Delegation, sr as Actor, yr as Subject } from "./policy-types-D-GwfQTc.js";
|
|
2
|
+
import { _ as PrincipalSource } from "./permdock-ffY4CMd9.js";
|
|
3
3
|
//#region src/server/run-ticket.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* What started the run: a saved automation, a background job, or a caller's own
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as scopedTenant, s as protectedView } from "./views-
|
|
1
|
+
import { l as scopedTenant, s as protectedView } from "./views-MWmJ6Y4P.js";
|
|
2
2
|
//#region src/svelte/protected.ts
|
|
3
3
|
/**
|
|
4
4
|
* The instance for `tenant`, built once per store change rather than once per
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { i as principal } from "./refs-C8BKxc_e.js";
|
|
3
|
-
import { a as deny, n as role, r as allow } from "./role-builder-
|
|
4
|
-
import {
|
|
3
|
+
import { a as deny, n as role, r as allow } from "./role-builder-CMW4wWzn.js";
|
|
4
|
+
import { A as memoryCustomRoleSource, C as limits, S as memoryRelationSource, w as memoryLimitStore } from "./src-Brzq_0in.js";
|
|
5
5
|
import { h as secondsAt } from "./time-nR1JesoH.js";
|
|
6
6
|
import { l as relation, n as anyone } from "./grantee-Dke-9rd1.js";
|
|
7
|
-
import { r as definePolicy } from "./policy-
|
|
7
|
+
import { r as definePolicy } from "./policy-cV_wwPb8.js";
|
|
8
8
|
import { s as quoteSqlLiteral } from "./sql-0WjxIp9g.js";
|
|
9
|
-
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-
|
|
9
|
+
import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-B3ggI88M.js";
|
|
10
10
|
//#region src/testing/saas/policy.ts
|
|
11
11
|
function isSubject(user) {
|
|
12
12
|
return user !== null && "context" in user && "principal" in user;
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-CxExBYSJ.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-nqarl3oE.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-BFWLER4r.js";
|
|
5
5
|
import { t as require__2020 } from "./2020-CJbO8Bvz.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
package/dist/scim/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
2
|
-
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-
|
|
2
|
+
import { A as ScimFilter, C as DirectoryUser, D as PATCH_SCHEMA, E as LIST_SCHEMA, F as ScimTokenOptions, I as USER_SCHEMA, L as isDirectoryNotFoundError, M as ScimPage, N as ScimPageResult, O as ROLES_EXTENSION, P as ScimPatchOp, R as isDirectoryUniquenessError, S as DirectoryUniquenessError, T as GROUP_SCHEMA, _ as DirectoryChange, a as normalizePatchOps, b as DirectoryNotFoundError, c as filterSupported, d as resourceTypes, f as schemas, g as APP_DATA_EXTENSION, h as sha256Hex, i as directoryMembershipSource, j as ScimHandlerOptions, k as SCIM_CONTENT_TYPE, l as matchFilter, m as authenticateScim, n as postgresDirectoryStore, o as tenantFromPath, p as serviceProviderConfig, r as memoryDirectoryStore, s as scimHandler, t as PostgresDirectoryStoreOptions, u as parseScimFilter, v as DirectoryGroup, w as ERROR_SCHEMA, x as DirectoryStore, y as DirectoryMembershipSourceOptions } from "../index-Dfv9Toct.js";
|
|
3
3
|
export { APP_DATA_EXTENSION, type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, type PostgresDirectoryStoreOptions, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, type SqlQuery, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, isDirectoryNotFoundError, isDirectoryUniquenessError, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, postgresDirectoryStore, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-
|
|
2
|
-
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-
|
|
1
|
+
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-Dx8PipbO.js";
|
|
2
|
+
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-TpzkEKgJ.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
4
4
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
6
|
-
import { i as evaluationsHandler } from "../evaluations-
|
|
7
|
-
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-
|
|
8
|
-
import { l as ReplayStore } from "../types-
|
|
9
|
-
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-
|
|
10
|
-
import { t as memoryReplayStore } from "../replay-
|
|
11
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
12
|
-
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-
|
|
5
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-3OnXjZ2D.js";
|
|
6
|
+
import { i as evaluationsHandler } from "../evaluations-CisTTURl.js";
|
|
7
|
+
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-rFp6X_QP.js";
|
|
8
|
+
import { l as ReplayStore } from "../types-Ck1KOfug.js";
|
|
9
|
+
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-BfPaZ6T1.js";
|
|
10
|
+
import { t as memoryReplayStore } from "../replay-E5X9E1lC.js";
|
|
11
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-B4YvlGG_.js";
|
|
12
|
+
import { _ as subjectFromRunTicket, a as RunContext, c as RunResource, d as RunTicketFailureCause, f as RunTicketInput, g as signRunTicket, h as parseRunTicket, i as RunBinding, l as RunTicket, m as RunTicketSubjectOptions, n as RunActClaim, o as RunKind, p as RunTicketOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketAutomations } from "../run-ticket-DPaD27_r.js";
|
|
13
13
|
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunResource, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
|
4
4
|
import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BVLHFK33.js";
|
|
5
5
|
import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
6
6
|
import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-B66h7FBK.js";
|
|
7
|
-
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-
|
|
7
|
+
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-h3KoJAPa.js";
|
|
8
8
|
import { n as tenantScope } from "../adapter-context-OHikyRqV.js";
|
|
9
|
-
import { t as createPermDock } from "../create-
|
|
9
|
+
import { t as createPermDock } from "../create-3A7J9KRR.js";
|
|
10
10
|
import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-D0PW6ZCw.js";
|
|
11
11
|
import { i as subjectFromRunTicket, n as parseRunTicket, r as signRunTicket, t as RUN_TICKET_CLAIMS } from "../run-ticket-CjvXr6wj.js";
|
|
12
|
-
import { t as problemFromError } from "../map-error-
|
|
12
|
+
import { t as problemFromError } from "../map-error-BH16Ah8P.js";
|
|
13
13
|
import { n as webhookVerifier, t as webhookSigner } from "../standard-webhooks-D67a3nzk.js";
|
|
14
14
|
export { InvalidSignatureError, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RUN_TICKET_CLAIMS, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotKey, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $t as Snapshot, Kt as Instant, M as PolicyVocabulary, Z as Intent, hr as JsonWebKeyLike, qn as Decision, sr as Actor, yr as Subject } from "./policy-types-
|
|
1
|
+
import { $t as Snapshot, Kt as Instant, M as PolicyVocabulary, Z as Intent, hr as JsonWebKeyLike, qn as Decision, sr as Actor, yr as Subject } from "./policy-types-D-GwfQTc.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-ffY4CMd9.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-CqcsNCaN.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "./errors-TpzkEKgJ.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-2sFGSdsf.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-BHGA-SMM.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-B8qUkGja.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-CisTTURl.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> = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Y as DecisionSink, gt as TokenSigner, hn as SinkEvent, in as AccessEvent, jt as Credential, mn as MembershipEvent, on as AutomationEvent, sn as CredentialEvent, wt as SupportSession } from "./policy-types-
|
|
1
|
+
import { Y as DecisionSink, gt as TokenSigner, hn as SinkEvent, in as AccessEvent, jt as Credential, mn as MembershipEvent, on as AutomationEvent, sn as CredentialEvent, wt as SupportSession } from "./policy-types-D-GwfQTc.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-Bfa_wD1h.js";
|
|
5
5
|
//#region src/core/sink.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The closed list of CloudEvents `type` values, `com.permdock.<family>` or
|
|
@@ -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-BFWLER4r.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";
|
|
@@ -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-B4MPRxQd.js";
|
|
5
5
|
//#region src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|