permdock 0.15.0 → 0.17.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 +3 -3
- package/dist/{adapter-context-CIQpQxbE.js → adapter-context-OHikyRqV.js} +1 -1
- package/dist/{adoption-scan-DLel53Oa.js → adoption-scan-Ci0xiJ3T.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 +189 -0
- package/dist/approval-policies-9VagPixq.d.ts +138 -0
- package/dist/{approval-prompt-3BqWczTt.d.ts → approval-prompt-BSh-yxbH.d.ts} +1 -1
- package/dist/approvals/index.d.ts +5 -4
- package/dist/approvals/index.js +7 -6
- package/dist/{approvals-DnIBTuXE.js → approvals-DdFcTncq.js} +3 -3
- package/dist/{approvers-B4r0N_Uz.js → approvers-CNtl4Vc5.js} +22 -1
- package/dist/{arazzo-CL8CZnpL.js → arazzo-7kbeh1yi.js} +2 -2
- package/dist/{arazzo-CHK9NT6u.js → arazzo-_zUmT8ZT.js} +4 -4
- package/dist/{args-0FrVs5EH.js → args-iafbHiXn.js} +2 -5
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +2 -2
- package/dist/{audience-DTjR8xet.js → audience-jRO819i3.js} +1 -1
- package/dist/{auth--yPyZNgr.js → auth-j3Eu-j4h.js} +1 -1
- package/dist/authz-topic-Dbc-HDOS.js +15 -0
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +2 -2
- package/dist/{automation-C6Jg75xq.d.ts → automation-DCWuVKtd.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +10 -8
- package/dist/better-supabase/index.d.ts +273 -38
- package/dist/better-supabase/index.js +493 -102
- package/dist/{better-supabase-Dirf_8Ec.js → better-supabase-BJtQ-kNf.js} +26 -10
- package/dist/{bind-BNQA9JK9.js → bind-BJFeLX1V.js} +6 -6
- package/dist/{bind-YYjvfpB9.d.ts → bind-DjFNX0Pq.d.ts} +7 -7
- package/dist/{budget-BELja5A9.js → budget-BBCPDOGP.js} +1 -1
- package/dist/{budget-hYsPz_yE.d.ts → budget-CNLsV2SL.d.ts} +1 -1
- package/dist/{build-instance-BWXqwQYU.js → build-instance-lye7oEqf.js} +3 -2
- package/dist/{capability-Di9tiUvi.d.ts → capability-BzjWdKmP.d.ts} +1 -1
- package/dist/{capability-BqX94r07.js → capability-zN6T9fxe.js} +2 -3
- package/dist/{casbin-iAEXjmca.js → casbin-C3O_O9nu.js} +2 -2
- package/dist/{casbin-DRFwgVIP.js → casbin-DFzk_so3.js} +2 -2
- package/dist/{casl-C4OINZHI.js → casl-CjBVJj8R.js} +2 -2
- package/dist/{casl-CHHoCldP.js → casl-CkBssiB1.js} +1 -1
- package/dist/catalog/index.d.ts +5 -5
- package/dist/catalog/index.js +6 -6
- package/dist/catalog-BpnjesqX.js +1 -0
- package/dist/{catalog-CGlSwU6j.js → catalog-DGDd_ww1.js} +5 -5
- package/dist/{catalog-amPDr0JQ.js → catalog-DJJIkR9P.js} +3 -3
- package/dist/{catalog-doc-DjMKzJp9.js → catalog-doc-C4DGfJCO.js} +3 -3
- package/dist/{catalog-operations-DeHTrJSV.js → catalog-operations-DVI5QO5R.js} +3 -3
- package/dist/{challenge-DImNcR7B.js → challenge-M_ghKJnT.js} +2 -2
- 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/{checks-CGkP3Z7A.js → checks-fyDOhcz0.js} +33 -1
- 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/clerk/index.js +10 -7
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +5 -5
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-eOtmuonF.js → cloud-DYqzmh5i.js} +4 -4
- package/dist/{codemod-KEDj_3zl.js → codemod-DNGMGqBS.js} +395 -8
- package/dist/{codemod-D6NYu4AK.js → codemod-DqB9klYI.js} +3 -3
- package/dist/{collect-DnXL4B8c.js → collect-C44RrKCI.js} +4 -4
- package/dist/collect-CAibhmCi.js +1 -0
- package/dist/{collect-WCl8cJQV.js → collect-HfJXl8Tr.js} +4 -4
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-EzEMB-7v.js → compile-B_oJqmIg.js} +4 -4
- package/dist/{compile-BEklRUYo.d.ts → compile-BxiwRotu.d.ts} +2 -2
- package/dist/{completion-DCza8aQY.js → completion-pwVjJlek.js} +3 -3
- package/dist/{config-CcLlvEYW.js → config-COHmivz9.js} +4 -4
- package/dist/{config-BAM3a3z8.js → config-DnfH6_eT.js} +2 -2
- package/dist/{config-report-VZcQ0ZpS.js → config-report-C1jl7Na-.js} +2 -2
- package/dist/{context-BnIzxTNE.js → context-DeammvFl.js} +2 -2
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +3 -3
- package/dist/{core-CFepFiDP.d.ts → core-0iYZ5HUx.d.ts} +2 -2
- package/dist/{core-lxoANyai.js → core-W5f4Rjt0.js} +7 -7
- package/dist/{create-DBvUsgzK.d.ts → create-DNN3OtsO.d.ts} +4 -4
- package/dist/{create-CDd9c22W.d.ts → create-DrHUmKvG.d.ts} +6 -6
- package/dist/{create-BPUopdfL.d.ts → create-bzQlBzG4.d.ts} +7 -7
- package/dist/{create-Coq5fIrq.js → create-gqtDb1nU.js} +5 -5
- package/dist/{create-BLPKnJKa.js → create-jCPwPWXf.js} +6 -5
- package/dist/{credential-CyyyvCsL.js → credential-B3Hj4puZ.js} +4 -3
- package/dist/{credentials-CdDxp7jN.js → credentials-dkycUsY3.js} +1 -1
- package/dist/decision-CaG5_eNJ.js +21 -0
- package/dist/{delegation-CDB6_keF.js → delegation-aK4T_5WU.js} +3 -3
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-DHldhVUv.d.ts → denied-text-DyzWwxEB.d.ts} +1 -1
- package/dist/{describe-Bb4hGK5d.js → describe-CogP1loh.js} +2 -1
- package/dist/{describe-BbFPBSms.d.ts → describe-nalX_HHE.d.ts} +1 -1
- package/dist/{diff-DfmYaIhB.js → diff-BTsLiW59.js} +7 -7
- package/dist/{diff-CxtbOi2l.js → diff-CcxYooMu.js} +2 -2
- package/dist/{doctor-gIO9WTYo.js → doctor-BNRhJegR.js} +3 -3
- package/dist/{doctor-CMqPKuN_.js → doctor-DS-9ApID.js} +195 -30
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-Vpu6rKHl.js → errors-BhRkoNS7.js} +0 -2
- package/dist/{errors-BIM4MFsJ.d.ts → errors-Dc9FdamT.d.ts} +1 -1
- package/dist/{evaluate-BAmf_AQd.js → evaluate-CsjXeLRo.js} +18 -15
- package/dist/{evaluations-DOWuBpWv.d.ts → evaluations-BasA9zXp.d.ts} +3 -3
- package/dist/{evaluations-IBceAeKT.js → evaluations-DG40eSJa.js} +3 -22
- 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-BIbBAtPZ.d.ts → fetch-adapter-BgqpOOpd.d.ts} +2 -2
- package/dist/{fetch-adapter-dPTgJVHd.js → fetch-adapter-UZOW0PRC.js} +2 -2
- package/dist/{fields-DI8s3cPl.js → fields-CrjL6A49.js} +3 -3
- package/dist/{files-B3AA05f1.js → files-CfiRtQ-m.js} +1 -1
- package/dist/{fixtures-Bm4_K1ke.js → fixtures-0VTW5oNq.js} +2 -2
- package/dist/{flags-DXjoTVbS.js → flags-BlmpmXoY.js} +2 -2
- package/dist/{from-snapshot-DCakWRsr.js → from-snapshot-DMlSSo9b.js} +14 -12
- package/dist/{gen-DwgCSC6V.js → gen-CNCzG4sB.js} +2 -2
- package/dist/{gen-DuAhghDw.js → gen-DnpZwQPo.js} +9 -9
- package/dist/{generate-CRVV5V7l.js → generate-BqkZq8Dr.js} +2 -2
- package/dist/{grantee-conditions-BrYPe-w0.js → grantee-conditions-DX4K_gGI.js} +1 -1
- package/dist/{grantee-match-7RZZvoT_.js → grantee-match-BP-k4vRJ.js} +2 -2
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DJicaG6f.js → helpers-DNnZffrI.js} +76 -12
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DVxlLZMe.d.ts → hosted-DxRLLiFU.d.ts} +1 -1
- package/dist/{hosted-D0IzESu_.js → hosted-tPZnyjQS.js} +12 -10
- package/dist/{http-DOL33cO0.js → http-DhMWeB_h.js} +1 -1
- package/dist/{import-DK_J8tVE.js → import-BYVbSKx0.js} +3 -3
- package/dist/{import-CNBF96hB.js → import-C1XXpG_m.js} +4 -4
- package/dist/{index-Cay5-Kvx.d.ts → index-Bt-UoBWu.d.ts} +11 -10
- package/dist/{index-DJwEgYzA.d.ts → index-CXXUFWtG.d.ts} +17 -11
- package/dist/{index-Dj2qF9VC.d.ts → index-CZ5mixHO.d.ts} +1 -1
- package/dist/{index-ymept53A.d.ts → index-DFwUOkvt.d.ts} +4 -4
- package/dist/{index-CV-7DWeD.d.ts → index-DtGtDzjb.d.ts} +4 -4
- package/dist/{index-BinlXeU-.d.ts → index-z44pfWar.d.ts} +2 -2
- package/dist/index.d.ts +18 -16
- package/dist/index.js +20 -18
- package/dist/{init-Buibrl9h.js → init-Dr1qAStu.js} +5 -5
- package/dist/{init-jLSyPMM7.js → init-YSDySeMy.js} +5 -5
- package/dist/{instance-options-CoHn-0e8.d.ts → instance-options-BOCRxEFb.d.ts} +2 -2
- package/dist/{instance-snapshot-DuWf1cT3.js → instance-snapshot-BgOGtyCy.js} +15 -12
- package/dist/jwt/index.d.ts +4 -4
- package/dist/jwt/index.js +3 -3
- package/dist/{kernel-BD8QuMnv.js → kernel-CDDU93dI.js} +10 -10
- package/dist/kysely/index.d.ts +3 -3
- package/dist/kysely/index.js +1 -1
- package/dist/{load-DjSU5KXO.js → load-BaEamml-.js} +1 -1
- package/dist/load-CjnlPxpL.js +1 -0
- package/dist/{login-CB55O4Gv.js → login-CXgEKLaW.js} +4 -4
- package/dist/{login-VVpkkund.js → login-DEVXDTX8.js} +4 -4
- package/dist/{manifest-CbEyvPN2.js → manifest-Dij1U0hx.js} +37 -37
- package/dist/{map-claims-C-nv08_n.js → map-claims-PQwHynxV.js} +25 -11
- package/dist/{map-error-pasIGqMT.js → map-error-B_f3C5cs.js} +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +9 -9
- package/dist/{migrate-BJHxQqT5.js → migrate-BbY5-Khy.js} +4 -4
- package/dist/{module-values-B1EVTkHP.js → module-values-B8tNIxdd.js} +2 -2
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +32 -13
- package/dist/next/index.js +43 -25
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +2 -2
- 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-eHZ5hwUJ.js → openapi-D3wkvOoU.js} +4 -4
- package/dist/{openapi-CleDZYVf.js → openapi-GM-kTdkq.js} +5 -5
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +3 -3
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-BVZpQDad.js → output-DhTpe8v1.js} +1 -1
- package/dist/output-files-BYscrQl-.js +1 -0
- package/dist/{output-files-BIQ_9pIs.js → output-files-CM0BnH05.js} +1 -1
- package/dist/{ownership-qqBuGJXr.js → ownership-moSRhxl_.js} +6 -6
- package/dist/{parse-1_ZheTW5.js → parse-UTC-sDrt.js} +2 -2
- package/dist/{parse-local-manifest-CCmbhnxP.d.ts → parse-local-manifest-BgTYdR3q.d.ts} +1 -1
- package/dist/{parse-request-CwCZpyjV.js → parse-request-DOBVaeiQ.js} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +3 -3
- package/dist/{peer-Q0fuZ6hx.js → peer-BuK9F53f.js} +1 -1
- package/dist/{peer-C9LvBCcb.js → peer-n-swIV4H.js} +1 -1
- package/dist/{permdock-CprAPN3w.d.ts → permdock-DUWZEOLR.d.ts} +88 -131
- package/dist/{permdock-BvjivVb9.js → permdock-DdzMv5-F.js} +195 -102
- package/dist/{permissions-CYcHj_w7.js → permissions-CvpPtz5O.js} +1 -1
- package/dist/{pg-DQTqRrou.js → pg-Ddxsd5ZB.js} +2 -2
- package/dist/{policy-BycVKnXv.d.ts → policy-CTNl7pvN.d.ts} +1 -1
- package/dist/{policy-CLQ8__GF.js → policy-DxQyHKPB.js} +5 -4
- package/dist/{policy-from-catalog-CU3An8uP.js → policy-from-catalog-DVa1faOr.js} +8 -7
- package/dist/{policy-types-DGIO_gxq.d.ts → policy-types-IRJVABmm.d.ts} +63 -19
- package/dist/{postgrest-D5nUGm-c.d.ts → postgrest-B_cEDd4e.d.ts} +12 -7
- package/dist/{postgrest-DAxFltvO.js → postgrest-BrjrckDG.js} +74 -19
- package/dist/{powersync-CFWILHjb.js → powersync-BZxw_v-A.js} +3 -3
- package/dist/{powersync-uqYWxTjq.js → powersync-C0nsyULQ.js} +15 -15
- package/dist/powersync-Cqzx25dI.js +1 -0
- package/dist/preset/index.js +1 -1
- package/dist/{preset-BjLzeFpp.js → preset-pPrVyGU5.js} +74 -7
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{protected-action-DUYqb-Ma.js → protected-action-B6n6w7Rl.js} +1 -1
- package/dist/{protected-action-D8x73IGm.d.ts → protected-action-D3S9U4nc.d.ts} +14 -7
- package/dist/{protected-action-QEA8arRB.js → protected-action-qowj6nxN.js} +15 -5
- package/dist/{provider-C55OGXJ7.js → provider-CY4TSSJo.js} +2 -2
- package/dist/{provider-DfLeek9O.d.ts → provider-CjAu39fJ.d.ts} +1 -1
- package/dist/{provider-store-CaTv00tr.js → provider-store-BQP_pp8s.js} +2 -2
- package/dist/pull-CUVdB04v.js +1 -0
- package/dist/{pull-BBmCxnqX.js → pull-DVoZ0V9_.js} +6 -6
- package/dist/{push-Dq_ca4-j.js → push-eJl1Tvqm.js} +7 -7
- package/dist/{pushed-policy-CryQheKq.d.ts → pushed-policy-CUQuvlS3.d.ts} +1 -1
- package/dist/{pushed-policy-CDuOL2de.js → pushed-policy-DMXAOmEW.js} +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/index.js +6 -6
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +10 -10
- package/dist/react-native/index.js +9 -9
- package/dist/refresh-on-L9UOwATg.d.ts +49 -0
- package/dist/{replay-Bs9Df2fQ.d.ts → replay-Dc3d8LhG.d.ts} +1 -1
- package/dist/{request-context-Duzdf0cd.js → request-context-Ch052blg.js} +2 -2
- package/dist/{request-schema-DhX7UbfQ.js → request-schema-CMP8Cmxd.js} +5 -0
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-Y1Cb22cp.js → resolve-names-1nCei24V.js} +6 -6
- package/dist/{rls-yK2nZUcm.js → rls-BVzoZCn3.js} +4 -4
- package/dist/{rls-BwKXdVEW.js → rls-ClJRblnR.js} +19 -19
- package/dist/{role-builder-BK2-T6oD.js → role-builder-BrmOcXch.js} +3 -157
- package/dist/{rpc-vHIwyXCp.js → rpc-BOu3FD6X.js} +2 -2
- package/dist/{run-D5WIJfs7.js → run-CnCaTjWX.js} +8 -40
- package/dist/run-D9N6V5WQ.js +1 -0
- package/dist/{run-ticket-ylovhyFQ.d.ts → run-ticket-C6lXvHM_.d.ts} +2 -2
- package/dist/{run-ticket-DfnZCh-u.js → run-ticket-CjvXr6wj.js} +1 -1
- package/dist/{runtime-BGnrOkVH.js → runtime-CBXkOcg9.js} +1 -1
- package/dist/{saas-DK4V-3Is.js → saas-BqM9mJkk.js} +13 -10
- package/dist/{scan-CzdMtHnq.js → scan-CepUXrFt.js} +1 -1
- package/dist/{schema-BDGEVO4g.js → schema-9_NDz8fx.js} +1 -1
- package/dist/{schema-BOJjqlWL.js → schema-CuX70xgH.js} +15 -2
- package/dist/scim/index.d.ts +1 -1
- package/dist/scim/index.js +1 -1
- package/dist/{scim-jJBJ7g1Z.js → scim-C30QBBoF.js} +2 -1
- package/dist/{scim-D8YupzX1.js → scim-CovliQUg.js} +2 -2
- package/dist/{scopes-0Up_UA2t.js → scopes-BSdYaGHs.js} +9 -40
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +8 -8
- package/dist/{server-3cVlTLde.js → server-D0PW6ZCw.js} +2 -2
- package/dist/{server-types-CyRN0-Cd.d.ts → server-types-Bw-lWqzR.d.ts} +8 -8
- package/dist/{shared-l0oGGetg.js → shared-BRmCJxDK.js} +2 -2
- package/dist/{shared-DrGLwM3s.js → shared-DyYVEjKC.js} +2 -2
- package/dist/{sink-B5zoUW_O.d.ts → sink-DUzt0e4B.d.ts} +2 -2
- package/dist/{skills-BZxPQ_09.js → skills-BUuH-QFt.js} +2 -2
- package/dist/{skills-BIsm1n26.js → skills-a4N6Y2Xm.js} +2 -2
- package/dist/{snapshot-CXlzi69u.js → snapshot-DN_8J27z.js} +6 -2
- package/dist/{snapshot-cache-Bx_4xC_6.js → snapshot-cache-B66h7FBK.js} +25 -8
- package/dist/{snapshot-cache-BjAWkchD.d.ts → snapshot-cache-Dbk-Gnij.d.ts} +20 -6
- package/dist/solid/index.d.ts +7 -7
- package/dist/solid/index.js +6 -6
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-oB1Hg1Fm.d.ts → sources-CXY05xtB.d.ts} +1 -1
- package/dist/{src-C_pi2Rnh.js → src-nYNBfmgq.js} +187 -39
- package/dist/ssf/index.d.ts +3 -3
- package/dist/ssf/index.js +1 -1
- package/dist/{standard-webhooks-DOYEuOLx.d.ts → standard-webhooks-BFeEpjxy.d.ts} +2 -2
- package/dist/{store-RNFvaJJv.js → store-XgBMbfDy.js} +13 -7
- package/dist/{types-tQB2CEnY.d.ts → store-g5ctUrOI.d.ts} +114 -113
- package/dist/{store-options-Dil3lraY.js → store-options--zWn48PK.js} +76 -7
- package/dist/{stores-DxZWDXCs.js → stores-53_kOwPi.js} +3 -3
- package/dist/{stores-DZJvxFIZ.d.ts → stores-BtdN3eDO.d.ts} +5 -6
- package/dist/{stream-9y9qw51m.d.ts → stream-BMJg56jU.d.ts} +1 -1
- package/dist/{subject-BGoM5o8B.js → subject-C7RddW0G.js} +8 -1
- package/dist/supabase/client.d.ts +31 -0
- package/dist/supabase/client.js +21 -0
- package/dist/supabase/index.d.ts +37 -6
- package/dist/supabase/index.js +5 -4
- package/dist/supabase/middleware.d.ts +8 -7
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-DYWnT800.js → supabase-C6FyUeSh.js} +3 -3
- package/dist/{supabase-CDHMsDD0.js → supabase-C8cNzp4i.js} +31 -8
- package/dist/supabase-hook-CPBX4dy5.js +1 -0
- package/dist/{supabase-hook-HPgwYb9V.js → supabase-hook-Cj85nccs.js} +167 -21
- package/dist/{supautils-CGk4YpvC.js → supautils-BP_5WAIc.js} +20 -18
- package/dist/svelte/index.d.ts +7 -7
- package/dist/svelte/index.js +8 -8
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +3 -3
- package/dist/svelte/source.d.ts +7 -7
- package/dist/svelte/source.js +5 -5
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +2 -2
- package/dist/{tables-DimBcVWY.js → tables-BsGE6HBR.js} +7 -7
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-5d1zVBvK.js → tenancy-DvOHHk3-.js} +1 -1
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +6 -6
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/fixtures/index.d.ts +1 -1
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/index.d.ts +29 -22
- package/dist/testing/index.js +118 -46
- 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/token-D6pWn8Uj.d.ts +11 -0
- package/dist/{token-DC9EQiet.js → token-DaMnIU9O.js} +24 -8
- package/dist/{tool-refusal-Qpjs_W6M.js → tool-refusal-C1UlhU0V.js} +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +3 -3
- package/dist/{type-helpers-c7Xo_2Cu.d.ts → type-helpers-C_OnZW8c.d.ts} +1 -1
- package/dist/{types-B2efzoSX.d.ts → types-AOP5HQku.d.ts} +1 -1
- package/dist/{types-DlelvQk4.d.ts → types-B3BOcI0J.d.ts} +2 -2
- package/dist/{types-DLvhVm1r.d.ts → types-BvBbkAu1.d.ts} +16 -7
- package/dist/{types-BB-zWDcR.d.ts → types-CA-A33Q5.d.ts} +5 -5
- package/dist/{types-Cklw5hJo.d.ts → types-CAAN7evk.d.ts} +24 -1
- package/dist/{types-DsHGPtkR.d.ts → types-CJC1aaoJ.d.ts} +2 -2
- package/dist/{types-CWBsAwqn.d.ts → types-D29K5ZNP.d.ts} +4 -4
- package/dist/{types-CEinc15V.d.ts → types-DVZNTkU0.d.ts} +3 -4
- package/dist/{types-ZzRGoViD.d.ts → types-NYoj8JBm.d.ts} +2 -2
- package/dist/{types-B6ExllNo.d.ts → types-Sj1U8HMm.d.ts} +2 -2
- package/dist/{types-CN0LsqbK.d.ts → types-UfpcY575.d.ts} +3 -3
- package/dist/{types-rCRV4Ge-.d.ts → types-e82uzrTn.d.ts} +4 -4
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +2 -2
- package/dist/{usage-e6M1Mls1.js → usage-COsGLht5.js} +6 -6
- package/dist/{usage-DBNrpwoT.js → usage-CqcMeQgX.js} +2 -2
- package/dist/usage-D1cpHO7p.js +1 -0
- package/dist/{validation-error-uvp-kyfO.d.ts → validation-error-DpvsBwZJ.d.ts} +1 -1
- package/dist/{verify-CgIpJRcG.js → verify-C8G8D5mk.js} +19 -19
- package/dist/{version-cache-Df11C2Qp.d.ts → version-cache-9Vq5QVFC.d.ts} +9 -3
- package/dist/{views-CD8wuL4Z.js → views-TrZYlDnM.js} +1 -1
- package/dist/vue/index.d.ts +7 -7
- package/dist/vue/index.js +6 -6
- package/dist/{waiter-CqUKX6CY.d.ts → waiter-C2cXXLFZ.d.ts} +2 -2
- package/dist/{watch-DAkjm75Y.js → watch-DXRDBSCu.js} +3 -3
- package/dist/watch-DnymTAfe.js +1 -0
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/webmcp/index.js +1 -1
- package/dist/{where-scope-DlCdCM_8.js → where-scope-BKrqUDVk.js} +5 -5
- package/dist/{who-can-BoDJm0Nc.js → who-can-BY5d3HPw.js} +4 -4
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +5 -4
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-B2wziJI_.js → wrap-C5PWzgkq.js} +1 -1
- package/dist/{wrap-DxXB54Wu.d.ts → wrap-DpZAbxuD.d.ts} +2 -2
- package/package.json +8 -5
- package/schemas/approval-request-v1.json +5 -0
- package/schemas/catalog-v1.json +18 -2
- package/schemas/cli-result-v1.json +0 -2
- package/schemas/snapshot-v1.json +9 -0
- package/skills/permdock-approvals/SKILL.md +8 -8
- package/skills/permdock-approvals/references/stores-and-resume.md +7 -3
- package/skills/permdock-audit/SKILL.md +1 -1
- package/skills/permdock-data/references/queries-and-rls.md +1 -1
- package/dist/action-result-BcudBQOF.d.ts +0 -19
- package/dist/catalog-D3oS2GH3.js +0 -1
- package/dist/collect-D-eroIfV.js +0 -1
- package/dist/load-Dm0pSYH3.js +0 -1
- package/dist/output-files-BHOIlrfD.js +0 -1
- package/dist/powersync-CnGzxvEl.js +0 -1
- package/dist/pull-D6dloyrc.js +0 -1
- package/dist/renames-CGj7YwcQ.js +0 -175
- package/dist/run-DlQYPtPv.js +0 -1
- package/dist/supabase-hook-qsewAVZY.js +0 -1
- package/dist/usage-D3KJyaNS.js +0 -1
- package/dist/watch-CuPz0D2M.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import "./budget-
|
|
2
|
+
import "./budget-BBCPDOGP.js";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
//#region src/cli/shared/doctor-files.ts
|
|
@@ -30,7 +30,7 @@ async function betterSupabaseConfig(input) {
|
|
|
30
30
|
const path = CONFIG_FILES.map((name) => resolve(input.cwd, name)).find((file) => files.exists(file));
|
|
31
31
|
if (path === void 0) return;
|
|
32
32
|
try {
|
|
33
|
-
const { loadModule } = await import("./load-
|
|
33
|
+
const { loadModule } = await import("./load-CjnlPxpL.js");
|
|
34
34
|
const loaded = (await loadModule(path))["default"];
|
|
35
35
|
return isRecord(loaded) ? loaded : void 0;
|
|
36
36
|
} catch {
|
|
@@ -46,27 +46,43 @@ function stringAt(value, ...path) {
|
|
|
46
46
|
return typeof at === "string" && at !== "" ? at : void 0;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* The claim better-supabase writes the active tenant to:
|
|
50
|
-
*
|
|
51
|
-
*
|
|
49
|
+
* The claim better-supabase writes the active tenant to: `auth.tenant.claim` in
|
|
50
|
+
* a grouped config, `claims.tenant` in a flat one, then `rls.tenantClaim` and
|
|
51
|
+
* `tenant_id`.
|
|
52
52
|
*/
|
|
53
53
|
function betterSupabaseTenantClaim(config, betterSupabase) {
|
|
54
|
-
return stringAt(betterSupabase, "auth", "
|
|
54
|
+
return stringAt(betterSupabase, "auth", "tenant", "claim") ?? stringAt(betterSupabase, "claims", "tenant") ?? config.rls?.tenantClaim ?? "tenant_id";
|
|
55
55
|
}
|
|
56
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Whether better-supabase's sessions block writes its own version table and the
|
|
58
|
+
* `authz:<uid>` receive policy (`blocks.sessions.authzVersions`).
|
|
59
|
+
*/
|
|
60
|
+
function betterSupabaseAuthzVersions(betterSupabase) {
|
|
61
|
+
const blocks = betterSupabase["blocks"];
|
|
62
|
+
const sessions = isRecord(blocks) ? blocks["sessions"] : void 0;
|
|
63
|
+
if (!isRecord(sessions)) return false;
|
|
64
|
+
const options = sessions["options"];
|
|
65
|
+
return sessions["authzVersions"] === true || isRecord(options) && options["authzVersions"] === true;
|
|
66
|
+
}
|
|
67
|
+
/** Resolve the hook defaults once for generation, inspection and doctor. */
|
|
57
68
|
function betterSupabaseDefaults(config, betterSupabase) {
|
|
58
69
|
const hook = config.supabase?.hook;
|
|
59
|
-
if (betterSupabase === void 0 || hook === void 0
|
|
70
|
+
if (betterSupabase === void 0 || hook === void 0) return config;
|
|
71
|
+
const broadcast = hook.broadcast === false ? false : {
|
|
72
|
+
topic: hook.broadcast?.topic ?? "better_supabase:authz",
|
|
73
|
+
receivePolicy: hook.broadcast?.receivePolicy ?? !betterSupabaseAuthzVersions(betterSupabase)
|
|
74
|
+
};
|
|
60
75
|
return {
|
|
61
76
|
...config,
|
|
62
77
|
supabase: {
|
|
63
78
|
...config.supabase,
|
|
64
79
|
hook: {
|
|
65
80
|
...hook,
|
|
66
|
-
activeFrom: `app_metadata.${betterSupabaseTenantClaim(config, betterSupabase)}
|
|
81
|
+
activeFrom: hook.activeFrom ?? `app_metadata.${betterSupabaseTenantClaim(config, betterSupabase)}`,
|
|
82
|
+
broadcast
|
|
67
83
|
}
|
|
68
84
|
}
|
|
69
85
|
};
|
|
70
86
|
}
|
|
71
87
|
//#endregion
|
|
72
|
-
export {
|
|
88
|
+
export { filesOf as a, betterSupabaseTenantClaim as i, betterSupabaseConfig as n, nodeFiles as o, betterSupabaseDefaults as r, readJson as s, betterSupabaseAuthzVersions as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { l as withApp } from "./permdock-
|
|
3
|
-
import { t as composeWraps } from "./wrap-
|
|
4
|
-
import { r as instanceOptions } from "./build-instance-
|
|
5
|
-
import { f as invalidSignatureResponse } from "./evaluations-
|
|
6
|
-
import { n as tenantScope } from "./adapter-context-
|
|
7
|
-
import { t as createPermDock } from "./create-
|
|
2
|
+
import { l as withApp } from "./permdock-DdzMv5-F.js";
|
|
3
|
+
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
4
|
+
import { r as instanceOptions } from "./build-instance-lye7oEqf.js";
|
|
5
|
+
import { f as invalidSignatureResponse } from "./evaluations-DG40eSJa.js";
|
|
6
|
+
import { n as tenantScope } from "./adapter-context-OHikyRqV.js";
|
|
7
|
+
import { t as createPermDock } from "./create-jCPwPWXf.js";
|
|
8
8
|
//#region src/server/bind.ts
|
|
9
9
|
/**
|
|
10
10
|
* The server kernel with the subject and actor callbacks reading the context
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ApprovalStore } from "./types-
|
|
3
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
1
|
+
import { Z as Intent, yr as Subject } from "./policy-types-IRJVABmm.js";
|
|
2
|
+
import { m as ApprovalStore } from "./types-BvBbkAu1.js";
|
|
3
|
+
import { t as InstanceOptions } from "./instance-options-BOCRxEFb.js";
|
|
4
4
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
5
|
-
import { n as PermDockWrap } from "./wrap-
|
|
6
|
-
import { o as OtelWrap } from "./types-
|
|
7
|
-
import { r as PdpFactory } from "./types-
|
|
8
|
-
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-
|
|
5
|
+
import { n as PermDockWrap } from "./wrap-DpZAbxuD.js";
|
|
6
|
+
import { o as OtelWrap } from "./types-Sj1U8HMm.js";
|
|
7
|
+
import { r as PdpFactory } from "./types-B3BOcI0J.js";
|
|
8
|
+
import { S as TenantOption, _ as WebBotAuthVerifier, t as DeniedResponse } from "./server-types-Bw-lWqzR.js";
|
|
9
9
|
//#region src/server/bind.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The options of every framework adapter; `TContext` is what its callbacks
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/supabase/budget.ts
|
|
2
2
|
/**
|
|
3
3
|
* The default size budget, in bytes of JSON, for the hook's `memberships`
|
|
4
|
-
* claim: about
|
|
4
|
+
* claim: about 12 UUID-keyed single-role memberships.
|
|
5
5
|
*/
|
|
6
6
|
const supabaseMembershipsBudget = 1024;
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/supabase/budget.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* The default size budget, in bytes of JSON, for the hook's `memberships`
|
|
4
|
-
* claim: about
|
|
4
|
+
* claim: about 12 UUID-keyed single-role memberships.
|
|
5
5
|
*/
|
|
6
6
|
declare const supabaseMembershipsBudget = 1024;
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as getPermDock } from "./permdock-
|
|
2
|
+
import { t as getPermDock } from "./permdock-DdzMv5-F.js";
|
|
3
3
|
//#region src/core/instance-options.ts
|
|
4
4
|
const INSTANCE_KEYS = {
|
|
5
5
|
memberships: true,
|
|
@@ -10,7 +10,8 @@ const INSTANCE_KEYS = {
|
|
|
10
10
|
approvalPolicies: true,
|
|
11
11
|
sink: true,
|
|
12
12
|
limits: true,
|
|
13
|
-
principals: true
|
|
13
|
+
principals: true,
|
|
14
|
+
instances: true
|
|
14
15
|
};
|
|
15
16
|
/** The `InstanceOptions` set on `options`, without the adapter's own keys. */
|
|
16
17
|
function instanceOptions(options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kt as Instant, _r as Principal, gt as TokenSigner } from "./policy-types-IRJVABmm.js";
|
|
2
2
|
import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
//#region src/core/capability.d.ts
|
|
4
4
|
/**
|
|
@@ -4,7 +4,7 @@ import { a as ownRecord } from "./paths-CUvURzHp.js";
|
|
|
4
4
|
import { a as isId, o as sameId, r as idList, t as expiredAt } from "./expiry-6XByK0dm.js";
|
|
5
5
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
6
6
|
import { o as epochSeconds, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
7
|
-
import { t as anonymousSubject } from "./subject-
|
|
7
|
+
import { t as anonymousSubject } from "./subject-C7RddW0G.js";
|
|
8
8
|
//#region src/core/capability.ts
|
|
9
9
|
function redeemerKind(redeemer) {
|
|
10
10
|
if (redeemer === void 0 || typeof redeemer === "string") return redeemer ?? "anyone";
|
|
@@ -159,8 +159,7 @@ function signCapability(input, signer, options = {}) {
|
|
|
159
159
|
}
|
|
160
160
|
function holdsScope(membership, scope, id, now) {
|
|
161
161
|
if (expiredAt(membership, now)) return false;
|
|
162
|
-
|
|
163
|
-
return scope === "tenant" && sameId(membership.tenant, id) || scope === "team" && sameId(membership.team, id);
|
|
162
|
+
return membership.scope === scope && sameId(membership.id, id);
|
|
164
163
|
}
|
|
165
164
|
/**
|
|
166
165
|
* Whether `viewer`, the request's own verified subject, may redeem a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as nonEmptyOr } from "./output-
|
|
2
|
-
import { t as applyFiles } from "./files-
|
|
1
|
+
import { a as nonEmptyOr } from "./output-DhTpe8v1.js";
|
|
2
|
+
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
|
-
import { c as given, l as outFlag, o as fileOut } from "./flags-
|
|
2
|
+
import { c as given, l as outFlag, o as fileOut } from "./flags-BlmpmXoY.js";
|
|
3
3
|
//#region src/cli/commands/casbin.ts
|
|
4
4
|
const casbinImport = defineLeaf({
|
|
5
5
|
flags: {
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-C3O_O9nu.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
|
-
import { c as given, l as outFlag, o as fileOut } from "./flags-
|
|
2
|
+
import { c as given, l as outFlag, o as fileOut } from "./flags-BlmpmXoY.js";
|
|
3
3
|
//#region src/cli/commands/casl.ts
|
|
4
4
|
const caslImport = defineLeaf({
|
|
5
5
|
flags: {
|
|
@@ -11,7 +11,7 @@ const caslImport = defineLeaf({
|
|
|
11
11
|
...outFlag
|
|
12
12
|
},
|
|
13
13
|
async run(ctx, { flags }) {
|
|
14
|
-
const { runCaslImport } = await import("./casl-
|
|
14
|
+
const { runCaslImport } = await import("./casl-CkBssiB1.js");
|
|
15
15
|
return runCaslImport({
|
|
16
16
|
cwd: ctx.cwd,
|
|
17
17
|
rules: given(flags.rules),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { t as applyFiles } from "./files-
|
|
2
|
+
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-
|
|
3
|
-
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-
|
|
4
|
-
import { a as CatalogFinding, i as CatalogEventData } from "../sink-
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
1
|
+
import { E as Policy, _r as Principal, o as ApprovalRequirement } from "../policy-types-IRJVABmm.js";
|
|
2
|
+
import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-DxRLLiFU.js";
|
|
3
|
+
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-NYoj8JBm.js";
|
|
4
|
+
import { a as CatalogFinding, i as CatalogEventData } from "../sink-DUzt0e4B.js";
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-CUQuvlS3.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
//#region src/catalog/drift.d.ts
|
|
8
8
|
/**
|
package/dist/catalog/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
|
3
3
|
import { a as getResource, n as findPermission } from "../permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { d as isSelfParented } from "../resource-relations-8-pCScBO.js";
|
|
5
5
|
import { _ as listPlans, m as findRole } from "../grantee-Dke-9rd1.js";
|
|
6
|
-
import { n as declaredRoleNames } from "../policy-
|
|
7
|
-
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-
|
|
8
|
-
import { n as rowConditionKeys, t as parseCatalog } from "../parse-
|
|
6
|
+
import { n as declaredRoleNames } from "../policy-DxQyHKPB.js";
|
|
7
|
+
import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-tPZnyjQS.js";
|
|
8
|
+
import { n as rowConditionKeys, t as parseCatalog } from "../parse-UTC-sDrt.js";
|
|
9
9
|
import { t as operationFindings } from "../operation-findings-CXtFzlKJ.js";
|
|
10
|
-
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-
|
|
11
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
10
|
+
import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-DVa1faOr.js";
|
|
11
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DMXAOmEW.js";
|
|
12
12
|
//#region src/catalog/drift.ts
|
|
13
13
|
/**
|
|
14
14
|
* The finding a drop reason becomes; `null` for a reason the catalog did not
|
|
@@ -126,8 +126,8 @@ function optionFor(policy, key) {
|
|
|
126
126
|
modes: ["human", "any"],
|
|
127
127
|
fields: [
|
|
128
128
|
"by",
|
|
129
|
-
"distinct",
|
|
130
129
|
"escalation",
|
|
130
|
+
"mode",
|
|
131
131
|
"quorum",
|
|
132
132
|
...node?.version === void 0 ? [] : ["staleOn"],
|
|
133
133
|
"ttl"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as catalogFile, n as runCatalog } from "./catalog-DGDd_ww1.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { r as listSourceFiles, t as defaultSrcPath } from "./files-BSjrtIHw.js";
|
|
3
|
-
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-
|
|
4
|
-
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-
|
|
5
|
-
import { t as loadConfiguredOperations } from "./catalog-operations-
|
|
6
|
-
import { i as scanSources, r as runCollect } from "./collect-
|
|
7
|
-
import { n as fileSummary, t as applyFiles } from "./files-
|
|
3
|
+
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-C4DGfJCO.js";
|
|
4
|
+
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-BaEamml-.js";
|
|
5
|
+
import { t as loadConfiguredOperations } from "./catalog-operations-DVI5QO5R.js";
|
|
6
|
+
import { i as scanSources, r as runCollect } from "./collect-HfJXl8Tr.js";
|
|
7
|
+
import { n as fileSummary, t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
//#region src/cli/catalog.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as missingInput } from "./errors-
|
|
1
|
+
import { c as missingInput } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
3
|
-
import { c as given, l as outFlag, t as checkFlag, u as permissionsFlag } from "./flags-
|
|
3
|
+
import { c as given, l as outFlag, t as checkFlag, u as permissionsFlag } from "./flags-BlmpmXoY.js";
|
|
4
4
|
//#region src/cli/commands/catalog.ts
|
|
5
5
|
const RUN_FORMAT = {
|
|
6
6
|
catalog: "json",
|
|
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
|
|
|
30
30
|
...checkFlag
|
|
31
31
|
},
|
|
32
32
|
async run(ctx, { flags }) {
|
|
33
|
-
const { catalogFile, runCatalog } = await import("./catalog-
|
|
33
|
+
const { catalogFile, runCatalog } = await import("./catalog-BpnjesqX.js");
|
|
34
34
|
const result = await runCatalog({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
@@ -5,7 +5,7 @@ import { m as findRole, v as listRoles } from "./grantee-Dke-9rd1.js";
|
|
|
5
5
|
import { i as wireValidity } from "./validity-Buc7w8E9.js";
|
|
6
6
|
import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
7
7
|
import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
8
|
-
import { t as catalogSchema } from "./schema-
|
|
8
|
+
import { t as catalogSchema } from "./schema-CuX70xgH.js";
|
|
9
9
|
import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
|
|
10
10
|
import { c as generatorBanner, n as CATALOG_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
11
11
|
//#region src/cli/catalog-doc.ts
|
|
@@ -88,9 +88,9 @@ function catalogApproval(approval) {
|
|
|
88
88
|
if (approval === void 0) return;
|
|
89
89
|
return approval === "human" ? "human" : withDefined({
|
|
90
90
|
by: approval.by,
|
|
91
|
-
|
|
91
|
+
combine: approval.combine,
|
|
92
92
|
stages: approval.stages,
|
|
93
|
-
|
|
93
|
+
mode: approval.mode,
|
|
94
94
|
staleOn: approval.staleOn,
|
|
95
95
|
quorum: approval.quorum,
|
|
96
96
|
ttl: approval.ttl,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import {
|
|
2
|
+
import { j as isOperationEffect } from "./src-nYNBfmgq.js";
|
|
3
3
|
import { o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { r as isOperationRisk } from "./permissions-CVXmRILq.js";
|
|
5
|
-
import { i as configError } from "./errors-
|
|
5
|
+
import { i as configError } from "./errors-BhRkoNS7.js";
|
|
6
6
|
import { a as rel } from "./files-BSjrtIHw.js";
|
|
7
|
-
import { a as loadModule, s as pickNamed } from "./load-
|
|
7
|
+
import { a as loadModule, s as pickNamed } from "./load-BaEamml-.js";
|
|
8
8
|
import { existsSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
//#region src/cli/catalog-operations.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { i as dateAt, p as nowSeconds } from "./time-nR1JesoH.js";
|
|
4
|
-
import { u as policyDocumentFromClaims } from "./hosted-
|
|
4
|
+
import { u as policyDocumentFromClaims } from "./hosted-tPZnyjQS.js";
|
|
5
5
|
import { l as isApprovalErrorCode, s as ApprovalError, t as APPROVAL_HEADER } from "./types-CcUXciSj.js";
|
|
6
6
|
import { h as toCloudEvent, l as isAbsoluteUri } from "./sink-D9_vh372.js";
|
|
7
7
|
import { n as parseCatalogEventData, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
|
|
8
|
-
import { t as parseApprovalRequest } from "./parse-request-
|
|
8
|
+
import { t as parseApprovalRequest } from "./parse-request-DOBVaeiQ.js";
|
|
9
9
|
import { t as timeoutSignal } from "./timeout-D51niuQP.js";
|
|
10
10
|
import { t as CLOUD_BASE_URL } from "./base-url-BQbddZO5.js";
|
|
11
11
|
//#region src/cloud/approver.ts
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-
|
|
1
|
+
import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-DNN3OtsO.js";
|
|
2
2
|
export { type ChatAction, type ChatActionResult, type ChatAuthor, type ChatCommand, type ChatCommandContext, type ChatCommandResult, type ChatPermDock, type ChatPermDockOptions, type ChatPrincipal, type SubjectFromChatOptions, createPermDock, isChatAuthor, subjectFromChat };
|
package/dist/chat/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { n as freezeDeep } from "../freeze-jjan0lCv.js";
|
|
3
3
|
import { n as loadPrincipalByIdentity } from "../principal-source-C6N60GtM.js";
|
|
4
4
|
import { f as nowMillis } from "../time-nR1JesoH.js";
|
|
5
|
-
import { l as withApp, t as getPermDock } from "../permdock-
|
|
5
|
+
import { l as withApp, t as getPermDock } from "../permdock-DdzMv5-F.js";
|
|
6
6
|
import { c as isApprovalError } from "../types-CcUXciSj.js";
|
|
7
|
-
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-
|
|
7
|
+
import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-DNnZffrI.js";
|
|
8
8
|
import { t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
|
9
9
|
//#region src/chat/subject.ts
|
|
10
10
|
function nonEmpty(value) {
|
package/dist/chat-sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-
|
|
2
|
-
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-
|
|
3
|
-
import { n as ChatTransport } from "../types-
|
|
1
|
+
import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-BSh-yxbH.js";
|
|
2
|
+
import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-DNN3OtsO.js";
|
|
3
|
+
import { n as ChatTransport } from "../types-UfpcY575.js";
|
|
4
4
|
import { ActionEvent, Author, CardElement } from "chat";
|
|
5
5
|
//#region src/chat-sdk/author.d.ts
|
|
6
6
|
type ChatSdkAuthorOptions = {
|
|
@@ -36,5 +36,37 @@ async function decideAllAsync(decide, checks, options) {
|
|
|
36
36
|
return decide(permission, data, options);
|
|
37
37
|
})));
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* One frozen `PermissionState` per named check. A check that throws denies that
|
|
41
|
+
* entry with `validation` and leaves the others.
|
|
42
|
+
*/
|
|
43
|
+
function permissionStates(decide, checks, options) {
|
|
44
|
+
const states = {};
|
|
45
|
+
for (const name of Object.keys(checks)) {
|
|
46
|
+
const key = name;
|
|
47
|
+
let state;
|
|
48
|
+
try {
|
|
49
|
+
const [permission, data] = partsOf(checks[key]);
|
|
50
|
+
const decision = decide(permission, data, options);
|
|
51
|
+
const reason = decision.outcome === "denied" ? decision.denials[0]?.reason : void 0;
|
|
52
|
+
state = Object.freeze({
|
|
53
|
+
allowed: decision.outcome === "granted",
|
|
54
|
+
outcome: decision.outcome,
|
|
55
|
+
...reason === void 0 ? {} : { reason }
|
|
56
|
+
});
|
|
57
|
+
} catch {
|
|
58
|
+
state = Object.freeze({
|
|
59
|
+
allowed: false,
|
|
60
|
+
outcome: "denied",
|
|
61
|
+
reason: "validation"
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
Object.defineProperty(states, key, {
|
|
65
|
+
value: state,
|
|
66
|
+
enumerable: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return Object.freeze(states);
|
|
70
|
+
}
|
|
39
71
|
//#endregion
|
|
40
|
-
export { decideAllWith as i, canAllWith as n, decideAllAsync as r, canAllAsync as t };
|
|
72
|
+
export { permissionStates as a, decideAllWith as i, canAllWith as n, decideAllAsync as r, canAllAsync as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
1
|
+
import { E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-IRJVABmm.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-DUWZEOLR.js";
|
|
3
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-bzQlBzG4.js";
|
|
4
4
|
//#region src/claude-agent/create.d.ts
|
|
5
5
|
/** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
|
|
6
6
|
type ClaudeMcpServer = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { l as withApp } from "../permdock-
|
|
3
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
+
import { l as withApp } from "../permdock-DdzMv5-F.js";
|
|
3
|
+
import { t as agentRuntime } from "../create-gqtDb1nU.js";
|
|
4
4
|
//#region src/claude-agent/create.ts
|
|
5
5
|
const MCP_PREFIX = "mcp__";
|
|
6
6
|
function asInput(input) {
|
package/dist/clerk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as CustomRoleSource, _r as Principal, yr as Subject } from "../policy-types-IRJVABmm.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { s as RemotePdpCache } from "../types-
|
|
3
|
+
import { s as RemotePdpCache } from "../types-B3BOcI0J.js";
|
|
4
4
|
import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
//#region src/clerk/types.d.ts
|
package/dist/clerk/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as omitKeys, 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 validateRecord } from "../thenable-BNSM1U2R.js";
|
|
4
|
-
import { t as anonymousSubject } from "../subject-
|
|
4
|
+
import { i as rootMembershipId, t as anonymousSubject } from "../subject-C7RddW0G.js";
|
|
5
5
|
import { t as readClaim } from "../claims-map-CKkoAAYF.js";
|
|
6
|
-
import { c as ttlMs, s as ttlCache } from "../shared-
|
|
6
|
+
import { c as ttlMs, s as ttlCache } from "../shared-BRmCJxDK.js";
|
|
7
7
|
//#region src/clerk/subject.ts
|
|
8
8
|
function asRoles(value) {
|
|
9
9
|
if (typeof value === "string") return value === "" ? [] : [value];
|
|
@@ -164,7 +164,8 @@ function membershipRow(item, userId) {
|
|
|
164
164
|
const roles = asRoles(item["role"]);
|
|
165
165
|
if (tenant === void 0 || roles.length === 0) return;
|
|
166
166
|
return compact({
|
|
167
|
-
tenant,
|
|
167
|
+
scope: "tenant",
|
|
168
|
+
id: tenant,
|
|
168
169
|
roles
|
|
169
170
|
});
|
|
170
171
|
}
|
|
@@ -231,15 +232,17 @@ async function fromClerk(authObject, options, loadMemberships) {
|
|
|
231
232
|
...features.org
|
|
232
233
|
];
|
|
233
234
|
const sessionMembership = mapped.tenant !== void 0 && (membershipRoles.length > 0 || plans.org.length > 0) ? [compact({
|
|
234
|
-
|
|
235
|
+
scope: "tenant",
|
|
236
|
+
id: mapped.tenant,
|
|
235
237
|
roles: membershipRoles,
|
|
236
238
|
entitlements: plans.org.length === 0 ? void 0 : plans.org
|
|
237
239
|
})] : [];
|
|
238
240
|
const loaded = options.memberships === "all" ? await loadMemberships(options.backend, mapped.id) ?? [] : [];
|
|
239
|
-
const seen = new Set(sessionMembership.map(
|
|
241
|
+
const seen = new Set(sessionMembership.map(rootMembershipId));
|
|
240
242
|
const memberships = [...sessionMembership, ...loaded.filter((item) => {
|
|
241
|
-
|
|
242
|
-
seen.
|
|
243
|
+
const tenant = rootMembershipId(item);
|
|
244
|
+
if (seen.has(tenant)) return false;
|
|
245
|
+
seen.add(tenant);
|
|
243
246
|
return true;
|
|
244
247
|
})];
|
|
245
248
|
let claims = extraClaims(mapped.claims);
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-DJZrPjRi.js"),
|
|
13
13
|
import("../signals-B1vHR3fN.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-D9N6V5WQ.js"),
|
|
15
15
|
import("../style-DblOtSga.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as Policy } from "../policy-types-IRJVABmm.js";
|
|
2
2
|
import { f as PermissionTree } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { o as OperationMap } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
6
|
-
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-
|
|
7
|
-
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-
|
|
4
|
+
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-NYoj8JBm.js";
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-CUQuvlS3.js";
|
|
6
|
+
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-CAAN7evk.js";
|
|
7
|
+
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-C_OnZW8c.js";
|
|
8
8
|
//#region src/cli/catalog-path.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
package/dist/cli/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as catalogPath } from "../catalog-path-CnI0XTFK.js";
|
|
2
|
-
import { t as defineConfig } from "../config-
|
|
3
|
-
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
2
|
+
import { t as defineConfig } from "../config-COHmivz9.js";
|
|
3
|
+
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DMXAOmEW.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-BeHZ4x9Q.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
5
|
+
import { t as run } from "../run-CnCaTjWX.js";
|
|
6
6
|
//#region src/cli/token-schemas.ts
|
|
7
7
|
const ID = {
|
|
8
8
|
type: "string",
|
package/dist/cloud/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ApprovalStore } from "../types-
|
|
3
|
-
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-
|
|
4
|
-
import { c as DeliveryTransport } from "../types-
|
|
5
|
-
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-
|
|
6
|
-
import { n as ApprovalWaiter } from "../waiter-
|
|
7
|
-
import { l as ReplayStore } from "../types-
|
|
8
|
-
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-
|
|
1
|
+
import { Kt as Instant, cn as DecisionEvent, fn as DirectoryEvent, gt as TokenSigner, in as AccessEvent, ln as DeliveryChannel, mn as MembershipEvent, on as AutomationEvent, sn as CredentialEvent, un as DeliveryEvent } from "../policy-types-IRJVABmm.js";
|
|
2
|
+
import { m as ApprovalStore } from "../types-BvBbkAu1.js";
|
|
3
|
+
import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-DUzt0e4B.js";
|
|
4
|
+
import { c as DeliveryTransport } from "../types-UfpcY575.js";
|
|
5
|
+
import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-CA-A33Q5.js";
|
|
6
|
+
import { n as ApprovalWaiter } from "../waiter-C2cXXLFZ.js";
|
|
7
|
+
import { l as ReplayStore } from "../types-CJC1aaoJ.js";
|
|
8
|
+
import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-BFeEpjxy.js";
|
|
9
9
|
//#region src/cloud/base-url.d.ts
|
|
10
10
|
/**
|
|
11
11
|
* The one base URL of PermDock Cloud. The platform issuer is this URL; its
|
package/dist/cloud/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { c as stringField, n as discoverAuthorizationServer, r as parseToken } f
|
|
|
12
12
|
import { t as pollingApprovalWaiter } from "../waiter-aBLM63_f.js";
|
|
13
13
|
import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
|
|
14
14
|
import { t as CLOUD_BASE_URL } from "../base-url-BQbddZO5.js";
|
|
15
|
-
import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-
|
|
15
|
+
import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-M_ghKJnT.js";
|
|
16
16
|
import { n as randomToken, t as pkce } from "../pkce-CnmmYqUZ.js";
|
|
17
17
|
//#region src/cloud/oauth-error.ts
|
|
18
18
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as secretInput } from "./credentials-
|
|
1
|
+
import { n as secretInput } from "./credentials-dkycUsY3.js";
|
|
2
2
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
3
|
-
import { c as given, i as dryRunFlag } from "./flags-
|
|
3
|
+
import { c as given, i as dryRunFlag } from "./flags-BlmpmXoY.js";
|
|
4
4
|
//#region src/cli/commands/cloud.ts
|
|
5
5
|
const sharedFlags = {
|
|
6
6
|
url: {
|
|
@@ -41,7 +41,7 @@ const push = defineLeaf({
|
|
|
41
41
|
},
|
|
42
42
|
async run(ctx, { flags }) {
|
|
43
43
|
const env = await withStdinSecret(ctx, "key", flags["key-stdin"], "PERMDOCK_CLOUD_KEY");
|
|
44
|
-
return (await import("./push-
|
|
44
|
+
return (await import("./push-eJl1Tvqm.js")).runCloud({
|
|
45
45
|
cwd: ctx.cwd,
|
|
46
46
|
config: ctx.config,
|
|
47
47
|
url: given(flags.url),
|
|
@@ -70,7 +70,7 @@ const pull = defineLeaf({
|
|
|
70
70
|
},
|
|
71
71
|
async run(ctx, { flags }) {
|
|
72
72
|
const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
|
|
73
|
-
return (await import("./pull-
|
|
73
|
+
return (await import("./pull-CUVdB04v.js")).runCloudPull({
|
|
74
74
|
cwd: ctx.cwd,
|
|
75
75
|
config: ctx.config,
|
|
76
76
|
url: given(flags.url),
|