permdock 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +3 -3
- package/dist/{adoption-scan-C_VQ-J2f.js → adoption-scan-BWL5H82_.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/{approval-policies-CYqdqAob.d.ts → approval-policies-CKlByf5o.d.ts} +1 -1
- package/dist/{approval-prompt-BxYbwOAU.d.ts → approval-prompt-CQFiO1KE.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-4vfaXj0U.js → arazzo-B_CPVseu.js} +2 -2
- package/dist/{arazzo-Dc969CA2.js → arazzo-C8u26FUA.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/{audience-GCXRRAeZ.js → audience-BUonniPx.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-BJiJT_Xr.d.ts → automation-CpOk7Tlu.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +10 -10
- package/dist/better-supabase/index.js +5 -5
- package/dist/{bind-SpRxR213.d.ts → bind-CW7nsZ86.d.ts} +7 -7
- package/dist/{bind-BnKPWRrE.js → bind-gwEbe9hL.js} +3 -3
- package/dist/{build-instance-DrIbZVnm.js → build-instance-DaBdCRiz.js} +1 -1
- package/dist/{capability-Ci2S8Cdu.d.ts → capability-v2xZB7us.d.ts} +1 -1
- package/dist/{casbin-ChbpgfNR.js → casbin-DaY-CWOr.js} +1 -1
- package/dist/{casbin-C1TQqWkK.js → casbin-JWZGKqzy.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +4 -4
- package/dist/{challenge-D57I5G1k.js → challenge-DbkpCx_v.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- 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/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-Dgj4FiEG.js → cloud-pEhjaPNs.js} +2 -2
- package/dist/{codemod-DN_fBt43.js → codemod-BUhreN8m.js} +2 -2
- package/dist/{codemod-WWxwgM77.js → codemod-Cv0-7Ogj.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-RaRUQhmD.d.ts → compile-DZftFfXc.d.ts} +2 -2
- package/dist/{completion-DnmUvCw0.js → completion-BG1wcLJ3.js} +1 -1
- package/dist/{config-CmuEoob8.js → config-Di9kWoLY.js} +1 -1
- package/dist/{config-report-BVm8Dhbj.js → config-report-B0IyW7EQ.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-DNRWXyj4.d.ts → core-BOeGWbcR.d.ts} +2 -2
- package/dist/{core-ZIWZBi6-.js → core-BwVkrpsi.js} +3 -3
- package/dist/{create-BECB6fns.d.ts → create-BezeYFcT.d.ts} +6 -6
- package/dist/{create-CAZyXZFC.js → create-C0R8omeF.js} +3 -3
- package/dist/{create-CegYmYHu.js → create-DDUFG1ul.js} +3 -3
- package/dist/{create-0B_bjJc-.d.ts → create-DMCC5ZOi.d.ts} +7 -7
- package/dist/{create-DJ_5REgN.d.ts → create-DYSYYiLr.d.ts} +4 -4
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-CF-2h8Vz.d.ts → denied-text-De8cw3MW.d.ts} +1 -1
- package/dist/{describe-DyN-HX6o.d.ts → describe-DibQM6g-.d.ts} +1 -1
- package/dist/{diff-BOU7sSnv.js → diff-Bd1-VCe5.js} +2 -2
- package/dist/{diff-BrmvcPXk.js → diff-DXRNcjpg.js} +1 -1
- package/dist/{doctor-CL1OigyD.js → doctor-Bp3xspBi.js} +2 -2
- package/dist/{doctor-BhhNMkU8.js → doctor-DpD4nHMS.js} +66 -14
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-POWcCXy7.d.ts → errors-OTE9u4Wk.d.ts} +1 -1
- package/dist/{evaluate-CrKkjgXS.js → evaluate-Dcq_U2TV.js} +2 -2
- package/dist/{evaluations--rkKhMqY.d.ts → evaluations-BgxEfPL7.d.ts} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-Bq4AB3W2.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
- package/dist/{fetch-adapter-Bm1iZolz.js → fetch-adapter-acq4dPX3.js} +1 -1
- package/dist/{gen-DonXr9Hg.js → gen-B2O9T25-.js} +1 -1
- package/dist/{gen-D0NqzeOP.js → gen-CKr1Vfiz.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hosted-iOGBI_ER.js → hosted-C2Pmhy2x.js} +2 -2
- package/dist/{hosted-H1xp5Dfw.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
- package/dist/{import-DNaFHm53.js → import-DG6uswAo.js} +1 -1
- package/dist/{import-C8ffNykt.js → import-DVI_1tO_.js} +44 -0
- package/dist/{index-C2pmTzFx.d.ts → index--AwSBzJC.d.ts} +2 -2
- package/dist/{index-DLlWORcK.d.ts → index-B_I6N8Ju.d.ts} +4 -4
- package/dist/{index-B9-ZXNa-.d.ts → index-Bt37QovT.d.ts} +4 -4
- package/dist/{index-C5Tfpjex.d.ts → index-CLbGOPBr.d.ts} +1 -1
- package/dist/{index-DZnpRB0q.d.ts → index-CruReRkB.d.ts} +4 -4
- package/dist/{index-Cm6mHTZ-.d.ts → index-D7xGi1LS.d.ts} +16 -8
- package/dist/index.d.ts +16 -16
- package/dist/index.js +8 -8
- package/dist/{init-QfBfkrGu.js → init-C-cgOvCl.js} +1 -1
- package/dist/{init-4aRjat-S.js → init-DAPbdjcX.js} +3 -3
- package/dist/{instance-options-D6hyIKJF.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
- package/dist/{instance-snapshot-DXxcizAb.js → instance-snapshot-SX8zH_1t.js} +2 -2
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-B2UCK36Z.js → kernel-_QEUOSU0.js} +4 -4
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-Cg1la2yJ.js → login-CQGjpkuo.js} +3 -3
- package/dist/{login-lPtJIjbO.js → login-Cgix5FgG.js} +1 -1
- package/dist/{manifest-CDhdXgf6.js → manifest-CMu1IE0R.js} +33 -33
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +3 -3
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- 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-Cr0B3p2h.js → openapi-FVeCoh97.js} +2 -2
- package/dist/{openapi-C3BIVLTd.js → openapi-lsf1gEtr.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-DYq_o2dM.js → output-DZQCr2lP.js} +1 -1
- package/dist/{ownership-CrmMERZv.js → ownership-CBuIjxKh.js} +2 -1
- package/dist/{parse-local-manifest-CQjRmzrw.d.ts → parse-local-manifest-CE4tgFsj.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DeOfonuG.js → permdock-C1DN_7a-.js} +3 -3
- package/dist/{permdock-B45vPQb4.d.ts → permdock-D4F2p5J8.d.ts} +3 -3
- package/dist/{permissions-Rk9_Gm04.js → permissions-8N2yFsUM.js} +1 -1
- package/dist/{policy-DTmkP72P.js → policy-CaAME-Rh.js} +1 -1
- package/dist/{policy-re2Oag8s.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
- package/dist/{policy-from-catalog-Cljh_B5H.js → policy-from-catalog-CUNlpgz0.js} +4 -4
- package/dist/{policy-types-Ky7P23CP.d.ts → policy-types-BI9C5Sp5.d.ts} +8 -0
- package/dist/{postgrest-pwxeaeOW.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
- package/dist/powersync-BV68Jh-T.js +1 -0
- package/dist/{powersync-PKC4yT62.js → powersync-CRtuJXVB.js} +2 -2
- package/dist/{powersync-BoqBik-G.js → powersync-Dz4H1FLs.js} +6 -6
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-DHPqBLhz.d.ts → protected-action-ua0cx5cW.d.ts} +5 -5
- package/dist/{provider-C-CbGEii.d.ts → provider-D_hgjZRa.d.ts} +1 -1
- package/dist/pull-AOmtUo8V.js +1 -0
- package/dist/{pull-FG0Tf8aF.js → pull-DnhBA9pf.js} +1 -1
- package/dist/{push-CI5G7lRS.js → push-D2SsRW0U.js} +1 -1
- package/dist/{pushed-policy-DftSiyD3.js → pushed-policy-BERO0x9O.js} +1 -1
- package/dist/{pushed-policy-B94r9DlN.d.ts → pushed-policy-P0hgyLBh.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/{replay-BqmXcP7x.d.ts → replay-DYXI4gRN.d.ts} +1 -1
- package/dist/{request-context-uvaevbBu.js → request-context-BPTi68z5.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-Dg8560iu.js → resolve-names-CDnxNqNb.js} +1 -1
- package/dist/{rls-DJSczevJ.js → rls-CHZi5SUK.js} +1 -1
- package/dist/{rls-CJbWbxXv.js → rls-CbDKv6GP.js} +10 -10
- package/dist/{role-builder-C_2kWB_x.js → role-builder-C5AgaC1x.js} +17 -2
- package/dist/{rpc-D7cDHIVE.d.ts → rpc-D2LnFELm.d.ts} +1 -1
- package/dist/{rpc-m5hPklf-.js → rpc-DdkbQVlT.js} +1 -1
- package/dist/{run-BigMDvGR.js → run-Bnm5VZ8m.js} +2 -2
- package/dist/run-D6U-Gwok.js +1 -0
- package/dist/{run-ticket-DRA3POCY.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
- package/dist/{saas-BHeoBqbW.js → saas-BEXnrH9H.js} +4 -4
- package/dist/{scan-BKLwCSVV.js → scan-VKkU4Ix9.js} +1 -1
- package/dist/{schema-CLuBlCCr.js → schema-5onstWlb.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +1 -1
- package/dist/{server-types-CwpJe664.d.ts → server-types-ChzXWU4Y.d.ts} +8 -8
- package/dist/{sink-7Lrch8dn.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
- package/dist/{skills-D42EyC8G.js → skills-B6sLqv4E.js} +1 -1
- package/dist/{skills-CyD_3eoi.js → skills-Yz3LfoAZ.js} +1 -1
- package/dist/{snapshot-cache-B9weL8NE.d.ts → snapshot-cache-MPinwwgZ.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-4d3fl7cq.d.ts → sources-sgQlMfmz.d.ts} +1 -1
- package/dist/{src-HDDf9Eum.js → src-B8SQNsvw.js} +8 -6
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-BGi8pUwo.d.ts → standard-webhooks-CFZIYtBF.d.ts} +2 -2
- package/dist/{store-CjJaZI_g.d.ts → store-Dpg_fSNQ.d.ts} +4 -4
- package/dist/{stores-Cam6GGAV.d.ts → stores-C2A6KsxE.d.ts} +5 -5
- package/dist/supabase/index.d.ts +5 -5
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-DBuZK2pP.js → supabase-CWpADE8k.js} +2 -2
- package/dist/supabase-hook-Clczf4iF.js +1 -0
- package/dist/{supabase-hook-Btk56XD6.js → supabase-hook-bDeWbKee.js} +3 -3
- package/dist/{supautils-lwXmXPP_.js → supautils-0RrdsFT3.js} +6 -6
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/source.d.ts +5 -5
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +1 -1
- package/dist/{tables-B72q9UFD.js → tables-C53U2zrN.js} +1 -1
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +2 -2
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/index.js +11 -11
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-CDxxNswo.d.ts → type-helpers-BjOLGVy1.d.ts} +1 -1
- package/dist/{types-CChFKY10.d.ts → types--_lpWUGV.d.ts} +4 -4
- package/dist/{types--HfnkawU.d.ts → types-BzxA2OAD.d.ts} +1 -1
- package/dist/{types-Bwdumeos.d.ts → types-C5p2hoBR.d.ts} +3 -3
- package/dist/{types-BVn1w_0o.d.ts → types-CMclYgSk.d.ts} +2 -2
- package/dist/{types-BwuNGQRm.d.ts → types-D1NjjwI4.d.ts} +1 -1
- package/dist/{types-g0Vk9k2c.d.ts → types-D8JVDWOr.d.ts} +2 -2
- package/dist/{types-oaqeYKQu.d.ts → types-DBVSljAx.d.ts} +2 -2
- package/dist/{types-Do4yihST.d.ts → types-DZwEOsK1.d.ts} +1 -1
- package/dist/{types-BlYPxJDR.d.ts → types-DnzRZjEu.d.ts} +4 -4
- package/dist/{types-OLSfBLa5.d.ts → types-Drs3OOAy.d.ts} +4 -4
- package/dist/{types-Do8qBcRO.d.ts → types-p8mhWTcR.d.ts} +3 -3
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/{usage-C-wta3rx.js → usage-B6gmS634.js} +5 -3
- package/dist/{usage-BLhhEPcZ.js → usage-BFMCEgJp.js} +1 -1
- package/dist/usage-Csu-M5jC.js +1 -0
- package/dist/{validation-error-AhCHeeff.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
- package/dist/{verify-CaaZlnP5.js → verify-DFruUfZg.js} +8 -8
- package/dist/{version-cache-Ddvrfn1R.d.ts → version-cache-q5cpaDSt.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/{waiter-CROiWRIP.d.ts → waiter-BjVI_Byg.d.ts} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-jPfTABf-.js → who-can-CZeAwQZD.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-C-4o-Dpy.d.ts → wrap-CE5lxje7.d.ts} +2 -2
- package/package.json +1 -1
- package/skills/permdock-data/SKILL.md +1 -1
- package/skills/permdock-data/references/queries-and-rls.md +2 -0
- package/dist/powersync-B96MUB_Q.js +0 -1
- package/dist/pull-BjdsS9x1.js +0 -1
- package/dist/run-4m-TyVTD.js +0 -1
- package/dist/supabase-hook-2M-EpoRp.js +0 -1
- package/dist/usage-Csc_ZRd0.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Er as Condition, Sn as Scope, qt as Instant, xr as Subject } from "./policy-types-
|
|
1
|
+
import { Er as Condition, Sn as Scope, qt as Instant, xr as Subject } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { b as ResourceNode } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { f as WhereResult } from "./permdock-
|
|
3
|
+
import { f as WhereResult } from "./permdock-D4F2p5J8.js";
|
|
4
4
|
import { r as RelationsMapping, t as GraphSql } from "./graph-sql-BwFC4Qjs.js";
|
|
5
5
|
//#region src/conditions/compile.d.ts
|
|
6
6
|
type MembershipTable = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { a as GLOBAL_FLAGS, i as suggestion } from "./args-iafbHiXn.js";
|
|
3
|
-
import { a as resolve } from "./manifest-
|
|
3
|
+
import { a as resolve } from "./manifest-CMu1IE0R.js";
|
|
4
4
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
5
5
|
//#region src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -10,7 +10,7 @@ const config = defineLeaf({
|
|
|
10
10
|
...failOnFlag
|
|
11
11
|
},
|
|
12
12
|
async run(ctx, { flags }) {
|
|
13
|
-
const { runConfig } = await import("./config-report-
|
|
13
|
+
const { runConfig } = await import("./config-report-B0IyW7EQ.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -3,7 +3,7 @@ import { r as CONFIG_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
|
|
|
3
3
|
import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
|
|
4
4
|
import { n as guessPermissions, t as barrelFile } from "./collect-DN_x7hvV.js";
|
|
5
5
|
import "./sources-C4vkzZJV.js";
|
|
6
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
+
import { t as DOCS_BASE } from "./manifest-CMu1IE0R.js";
|
|
7
7
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
|
|
8
8
|
//#region src/cli/config-report.ts
|
|
9
9
|
function configReport(input) {
|
package/dist/convex/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-
|
|
5
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
|
+
import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-OTE9u4Wk.js";
|
|
5
|
+
import { t as InstanceOptions } from "../instance-options-VPsNQsTH.js";
|
|
6
6
|
//#region src/convex/types.d.ts
|
|
7
7
|
type ConvexContextLike = {
|
|
8
8
|
readonly auth?: {
|
package/dist/convex/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
2
|
import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
|
|
3
3
|
import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
|
|
4
|
-
import { l as withApp } from "../permdock-
|
|
5
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
4
|
+
import { l as withApp } from "../permdock-C1DN_7a-.js";
|
|
5
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-DaBdCRiz.js";
|
|
6
6
|
import { n as tenantScope, t as actorFrom } from "../adapter-context-OHikyRqV.js";
|
|
7
7
|
//#region src/convex/create.ts
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy, Yn as Decision, pr as CustomRole, vr as Membership } from "./policy-types-
|
|
1
|
+
import { D as Policy, Yn as Decision, pr as CustomRole, vr as Membership } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { f as WhereResult, o as PermDockOptions } from "./permdock-
|
|
3
|
+
import { f as WhereResult, o as PermDockOptions } from "./permdock-D4F2p5J8.js";
|
|
4
4
|
//#region src/testing/policy-matrix.d.ts
|
|
5
5
|
type MatrixOutcome = "granted" | "denied" | "approval-required";
|
|
6
6
|
type MatrixCell = MatrixOutcome | {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as memoryCustomRoleSource } from "./src-
|
|
1
|
+
import { A as memoryCustomRoleSource } from "./src-B8SQNsvw.js";
|
|
2
2
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { d as scopeList } from "./scopes-BSdYaGHs.js";
|
|
4
|
-
import { y as membershipsClaim } from "./evaluate-
|
|
4
|
+
import { y as membershipsClaim } from "./evaluate-Dcq_U2TV.js";
|
|
5
5
|
import { n as parseSnapshot } from "./snapshot-DHPih65J.js";
|
|
6
6
|
import { n as fromSnapshot } from "./from-snapshot-DHnb8Fh4.js";
|
|
7
|
-
import { t as getPermDock } from "./permdock-
|
|
7
|
+
import { t as getPermDock } from "./permdock-C1DN_7a-.js";
|
|
8
8
|
import "./budget-BBCPDOGP.js";
|
|
9
9
|
import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
|
|
10
10
|
//#region src/testing/policy-matrix.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore } from "./types
|
|
5
|
-
import { a as AutomationSource } from "./automation-
|
|
6
|
-
import { n as ApprovalWaiter } from "./waiter-
|
|
7
|
-
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
5
|
+
import { a as AutomationSource } from "./automation-CpOk7Tlu.js";
|
|
6
|
+
import { n as ApprovalWaiter } from "./waiter-BjVI_Byg.js";
|
|
7
|
+
import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-94DOS9Cd.js";
|
|
8
8
|
//#region src/workflow/create.d.ts
|
|
9
9
|
type WorkflowPermDockOptions = PermDockOptions & {
|
|
10
10
|
/** Signs the run tickets `start` mints. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { o as deniedFor } from "./where-scope-BAyOsPQW.js";
|
|
4
|
-
import { l as withApp } from "./permdock-
|
|
4
|
+
import { l as withApp } from "./permdock-C1DN_7a-.js";
|
|
5
5
|
import { t as composeWraps } from "./wrap-C5PWzgkq.js";
|
|
6
|
-
import { r as instanceOptions } from "./build-instance-
|
|
7
|
-
import { n as createAgentKernel } from "./kernel-
|
|
6
|
+
import { r as instanceOptions } from "./build-instance-DaBdCRiz.js";
|
|
7
|
+
import { n as createAgentKernel } from "./kernel-_QEUOSU0.js";
|
|
8
8
|
//#region src/agent/create.ts
|
|
9
9
|
function modelRow(modelId) {
|
|
10
10
|
return { id: modelId };
|
|
@@ -3,14 +3,14 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
|
3
3
|
import { n as problemDetails } from "./problem-details-CLDgX1KV.js";
|
|
4
4
|
import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
|
|
5
5
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
6
|
-
import { i as challengeScope, l as withApp } from "./permdock-
|
|
6
|
+
import { i as challengeScope, l as withApp } from "./permdock-C1DN_7a-.js";
|
|
7
7
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
8
8
|
import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BWP1l86g.js";
|
|
9
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
9
|
+
import { n as resolveOrNull } from "./build-instance-DaBdCRiz.js";
|
|
10
10
|
import { t as LOAD_FAILED } from "./decision-CaG5_eNJ.js";
|
|
11
11
|
import { l as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-CNMVJVD6.js";
|
|
12
12
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
13
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
13
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-BPTi68z5.js";
|
|
14
14
|
import { n as decideSet, r as permissionList } from "./decide-set-DXEPepY1.js";
|
|
15
15
|
//#region src/server/kernel-problems.ts
|
|
16
16
|
const NOT_DELEGATED = freezeDeep({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { t as Operation } from "./operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "./permdock-
|
|
5
|
-
import { m as ApprovalStore } from "./types
|
|
6
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
4
|
+
import { a as PermDock } from "./permdock-D4F2p5J8.js";
|
|
5
|
+
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-VPsNQsTH.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
9
|
-
import { o as OtelWrap } from "./types-
|
|
10
|
-
import { t as DeniedText } from "./denied-text-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-CE5lxje7.js";
|
|
9
|
+
import { o as OtelWrap } from "./types-D8JVDWOr.js";
|
|
10
|
+
import { t as DeniedText } from "./denied-text-De8cw3MW.js";
|
|
11
11
|
//#region src/agent/step-up.d.ts
|
|
12
12
|
/**
|
|
13
13
|
* What the user can do to lift a denial: authenticate again with the `acr` and
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-
|
|
1
|
+
import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { t as Operation } from "./operations-Ci_rT6Uo.js";
|
|
3
|
-
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore, p as ApprovalStatus } from "./types
|
|
3
|
+
import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { m as ApprovalStore, p as ApprovalStatus } from "./types-BzxA2OAD.js";
|
|
5
5
|
import { n as ApprovalErrorCode } from "./errors-CHwoRRpB.js";
|
|
6
|
-
import { t as ApprovalPrompt } from "./approval-prompt-
|
|
6
|
+
import { t as ApprovalPrompt } from "./approval-prompt-CQFiO1KE.js";
|
|
7
7
|
//#region src/chat/subject.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* The platform user behind a chat message or action. Fill it only from an event
|
package/dist/delivery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-
|
|
2
|
-
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-
|
|
3
|
-
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-
|
|
4
|
-
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-
|
|
1
|
+
import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-CQFiO1KE.js";
|
|
3
|
+
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-p8mhWTcR.js";
|
|
4
|
+
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-Bt37QovT.js";
|
|
5
5
|
export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
|
package/dist/delivery/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as approvalUrlFor, t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
|
|
2
|
-
import { n as subscribersFor, t as audience } from "../audience-
|
|
2
|
+
import { n as subscribersFor, t as audience } from "../audience-BUonniPx.js";
|
|
3
3
|
import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
|
|
4
4
|
import { a as parseConnector, i as CONNECTOR_KINDS, n as createPermDock, r as memoryDeliveryTransport, t as webhookTransport } from "../delivery-BupfvJIV.js";
|
|
5
5
|
import { i as isDeliveryTarget, n as isAddrSpec } from "../target-qdEAnnhU.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-
|
|
1
|
+
import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
//#region src/core/describe.d.ts
|
|
4
4
|
type DecisionDescription = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as memoryCustomRoleSource } from "./src-
|
|
1
|
+
import { A as memoryCustomRoleSource } from "./src-B8SQNsvw.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
|
|
3
3
|
import { g as secondsOf } from "./time-nR1JesoH.js";
|
|
4
4
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
5
|
-
import { t as getPermDock } from "./permdock-
|
|
5
|
+
import { t as getPermDock } from "./permdock-C1DN_7a-.js";
|
|
6
6
|
import { i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
|
|
7
7
|
import { t as buildCatalog } from "./catalog-doc-nrgfbh8I.js";
|
|
8
8
|
import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-BaEamml-.js";
|
|
@@ -21,7 +21,7 @@ const diff = defineLeaf({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags, args }) {
|
|
24
|
-
return (await import("./diff-
|
|
24
|
+
return (await import("./diff-Bd1-VCe5.js")).runDiff({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
sources: [args["before"], args["after"]].filter((value) => value !== void 0),
|
|
@@ -10,7 +10,7 @@ const doctor = defineLeaf({
|
|
|
10
10
|
description: "Check codes or groups to run",
|
|
11
11
|
valueHint: "code",
|
|
12
12
|
async complete() {
|
|
13
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
13
|
+
const { DOCTOR_CHECKS } = await import("./doctor-DpD4nHMS.js");
|
|
14
14
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -35,7 +35,7 @@ const doctor = defineLeaf({
|
|
|
35
35
|
if (answer === void 0) return CANCELLED;
|
|
36
36
|
fix = answer;
|
|
37
37
|
}
|
|
38
|
-
return (await import("./doctor-
|
|
38
|
+
return (await import("./doctor-DpD4nHMS.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { o as hasConditionOp } from "./refs-C8BKxc_e.js";
|
|
2
|
+
import { o as hasConditionOp, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
3
3
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-B8tYxPIt.js";
|
|
4
4
|
import { u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
|
|
5
5
|
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
6
6
|
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
7
7
|
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
8
|
-
import { u as separationConflicts } from "./policy-
|
|
9
|
-
import { T as validateCustomRole } from "./evaluate-
|
|
8
|
+
import { u as separationConflicts } from "./policy-CaAME-Rh.js";
|
|
9
|
+
import { T as validateCustomRole } from "./evaluate-Dcq_U2TV.js";
|
|
10
10
|
import { s as parseCredential } from "./credential-B3Hj4puZ.js";
|
|
11
11
|
import { a as describeError, i as configError } from "./errors-BhRkoNS7.js";
|
|
12
12
|
import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
|
|
@@ -25,25 +25,25 @@ import { t as parseCatalog } from "./parse-CXTT7hBq.js";
|
|
|
25
25
|
import { n as activeTenantMismatch } from "./active-tenant-DVee32-T.js";
|
|
26
26
|
import "./markers-BeHZ4x9Q.js";
|
|
27
27
|
import { t as didYouMean } from "./args-iafbHiXn.js";
|
|
28
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
28
|
+
import { t as DOCS_BASE } from "./manifest-CMu1IE0R.js";
|
|
29
29
|
import { t as createStyle } from "./style-Ds11Hmk4.js";
|
|
30
|
-
import { a as nonEmptyOr, r as findingOf } from "./output-
|
|
31
|
-
import { i as runSkillsInstall } from "./skills-
|
|
30
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-DZQCr2lP.js";
|
|
31
|
+
import { i as runSkillsInstall } from "./skills-Yz3LfoAZ.js";
|
|
32
32
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
|
|
33
33
|
import { l as partPath } from "./output-files-CM0BnH05.js";
|
|
34
34
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
35
|
-
import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-
|
|
35
|
+
import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-bDeWbKee.js";
|
|
36
36
|
import { O as quoteIdent, t as CUSTOM_ROLES } from "./shared-DyYVEjKC.js";
|
|
37
|
-
import { G as byKey, Q as graphSqlName, n as tableNameOf, o as graphPlan, r as tableNames } from "./tables-
|
|
38
|
-
import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
37
|
+
import { G as byKey, Q as graphSqlName, n as tableNameOf, o as graphPlan, r as tableNames } from "./tables-C53U2zrN.js";
|
|
38
|
+
import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-CBuIjxKh.js";
|
|
39
39
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
40
40
|
import { i as group, n as membershipColumns, o as sqlStatements, r as tableKey } from "./deciding-columns-NB4wcyBf.js";
|
|
41
41
|
import { t as FIELD_VIEWS } from "./fields-COvJbUva.js";
|
|
42
|
-
import { t as resolveNames } from "./resolve-names-
|
|
43
|
-
import { S as splitIgnored, d as rowConditionMessage, f as commandFor, m as tableFor, p as compileGrants, s as ROW_CONDITION_FIX, u as helperTablePolicies, x as parseIgnores } from "./verify-
|
|
44
|
-
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-
|
|
45
|
-
import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-
|
|
46
|
-
import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-
|
|
42
|
+
import { t as resolveNames } from "./resolve-names-CDnxNqNb.js";
|
|
43
|
+
import { S as splitIgnored, d as rowConditionMessage, f as commandFor, m as tableFor, p as compileGrants, s as ROW_CONDITION_FIX, u as helperTablePolicies, x as parseIgnores } from "./verify-DFruUfZg.js";
|
|
44
|
+
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-B6gmS634.js";
|
|
45
|
+
import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-Dz4H1FLs.js";
|
|
46
|
+
import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-0RrdsFT3.js";
|
|
47
47
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-B2xffQgY.js";
|
|
48
48
|
import { basename, dirname, join, resolve } from "node:path";
|
|
49
49
|
import { pathToFileURL } from "node:url";
|
|
@@ -2018,6 +2018,53 @@ async function pd073(input) {
|
|
|
2018
2018
|
}));
|
|
2019
2019
|
}
|
|
2020
2020
|
/**
|
|
2021
|
+
* Every `sqlFunction` set variant in `condition`, through `and`, `or` and
|
|
2022
|
+
* `not`.
|
|
2023
|
+
*/
|
|
2024
|
+
function sqlFunctionSets(condition) {
|
|
2025
|
+
if (condition === void 0) return [];
|
|
2026
|
+
if (condition.op === "sqlFunction") return [...condition.set === void 0 ? [] : [condition], ...sqlFunctionSets(condition.twin)];
|
|
2027
|
+
if (condition.op === "and" || condition.op === "or") return condition.conditions.flatMap(sqlFunctionSets);
|
|
2028
|
+
if (condition.op === "not") return sqlFunctionSets(condition.condition);
|
|
2029
|
+
return [];
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* PD086: a `sqlFunction` set variant names a column the resource does not
|
|
2033
|
+
* declare, or passes row-field args the set form drops because the function is
|
|
2034
|
+
* called once per statement.
|
|
2035
|
+
*/
|
|
2036
|
+
async function pd086(input) {
|
|
2037
|
+
if (input.config.rls === void 0 || input.config.policy === void 0) return [];
|
|
2038
|
+
const policy = await policyOf(input);
|
|
2039
|
+
if (policy === void 0) return [];
|
|
2040
|
+
const findings = [];
|
|
2041
|
+
for (const grant of policy.grants) {
|
|
2042
|
+
const node = policy.resources.get(grant.permission.resource);
|
|
2043
|
+
const schema = node === void 0 ? null : jsonSchemaOf(node);
|
|
2044
|
+
const properties = schema !== null && typeof schema === "object" ? schema.properties : void 0;
|
|
2045
|
+
const columns = properties !== null && typeof properties === "object" ? new Set(Object.keys(properties)) : void 0;
|
|
2046
|
+
for (const [kind, condition] of [["where", grant.where], ["check", grant.check]]) for (const fn of sqlFunctionSets(condition)) {
|
|
2047
|
+
const column = fn.set?.column;
|
|
2048
|
+
if (column !== void 0 && columns !== void 0 && !columns.has(column)) findings.push({
|
|
2049
|
+
code: "PD086",
|
|
2050
|
+
target: `${grant.permission.key}:${kind}`,
|
|
2051
|
+
severity: "error",
|
|
2052
|
+
message: `sqlFunction ${fn.name} set compares ${grant.permission.resource}.${column}, which the resource does not declare`,
|
|
2053
|
+
fix: `set column to one of ${[...columns].toSorted().join(", ")} or add ${column} to the resource schema`
|
|
2054
|
+
});
|
|
2055
|
+
const dropped = fn.args.filter(isSqlFunctionField);
|
|
2056
|
+
if (dropped.length > 0) findings.push({
|
|
2057
|
+
code: "PD086",
|
|
2058
|
+
target: `${grant.permission.key}:${kind}`,
|
|
2059
|
+
severity: "warning",
|
|
2060
|
+
message: `sqlFunction ${fn.name} set passes row fields (${dropped.map((arg) => arg.field).join(", ")}), which the set form drops: the function is called once per statement`,
|
|
2061
|
+
fix: "pass only the function's own arguments, or drop set to call it per row"
|
|
2062
|
+
});
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
return findings;
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2021
2068
|
* PD075: two resources that `rls.tables` maps to one table, each with its own
|
|
2022
2069
|
* keys and helpers for the same rows. `doctor.sharedTables` lists tables split
|
|
2023
2070
|
* on purpose (two resources over disjoint rows).
|
|
@@ -3013,6 +3060,11 @@ const DOCTOR_CHECKS = [
|
|
|
3013
3060
|
groups: ["powersync", "react-native"],
|
|
3014
3061
|
run: pd084
|
|
3015
3062
|
},
|
|
3063
|
+
{
|
|
3064
|
+
code: "PD086",
|
|
3065
|
+
groups: ["rls"],
|
|
3066
|
+
run: pd086
|
|
3067
|
+
},
|
|
3016
3068
|
{
|
|
3017
3069
|
code: "PD061",
|
|
3018
3070
|
groups: ["rls", "suspension"],
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
1
|
+
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { f as WhereResult } from "../permdock-D4F2p5J8.js";
|
|
3
3
|
import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
|
|
4
|
-
import { s as MembershipsMapping } from "../compile-
|
|
4
|
+
import { s as MembershipsMapping } from "../compile-DZftFfXc.js";
|
|
5
5
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
6
6
|
import { SQL, Table } from "drizzle-orm";
|
|
7
7
|
//#region src/drizzle/types.d.ts
|
package/dist/elysia/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-CW7nsZ86.js";
|
|
7
7
|
import { Elysia } from "elysia";
|
|
8
8
|
//#region src/elysia/create.d.ts
|
|
9
9
|
type ElysiaRequestContext = {
|
package/dist/elysia/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as parsedBody, r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
2
2
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
3
3
|
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
4
|
-
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-
|
|
4
|
+
import { a as socketConnection, i as decorate, r as bindKernel } from "../bind-gwEbe9hL.js";
|
|
5
5
|
import { a as onRevoked, n as closeReason, t as POLICY_VIOLATION } from "../stream-DQ3rbO3J.js";
|
|
6
6
|
import { Elysia } from "elysia";
|
|
7
7
|
//#region src/elysia/create.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Yn as Decision, xr as Subject, yn as WireDenial } from "./policy-types-
|
|
1
|
+
import { Yn as Decision, xr as Subject, yn as WireDenial } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
//#region src/core/problem-details.d.ts
|
|
4
4
|
type Disclosure = "hide" | "reveal";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as sole, n as isReadonlyArray, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { n as isForbiddenKey } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { n as role, t as normalizeAssurance } from "./role-builder-
|
|
4
|
+
import { n as role, t as normalizeAssurance } from "./role-builder-C5AgaC1x.js";
|
|
5
5
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
6
6
|
import { t as wireDenials } from "./wire-denial-C7PaVYEM.js";
|
|
7
7
|
import { o as sameId } from "./expiry-6XByK0dm.js";
|
|
@@ -17,7 +17,7 @@ import { a as authenticated, g as isRole, i as assurance, m as findRole, o as fl
|
|
|
17
17
|
import { a as grantCoversField, i as wireValidity, t as isActive } from "./validity-Buc7w8E9.js";
|
|
18
18
|
import { o as resourceRoleCondition } from "./grantee-conditions-DX4K_gGI.js";
|
|
19
19
|
import { c as nowSeconds, i as matchScopedMembership, l as partitionsOf, n as inTeam, p as scopeField, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js";
|
|
20
|
-
import { i as grantList, n as declaredRoleNames, s as levelCondition } from "./policy-
|
|
20
|
+
import { i as grantList, n as declaredRoleNames, s as levelCondition } from "./policy-CaAME-Rh.js";
|
|
21
21
|
import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
|
|
22
22
|
import { i as rootMembershipId } from "./subject-C7RddW0G.js";
|
|
23
23
|
import { a as versionOf, i as tokenPayload, n as decisionToken } from "./token-DaMnIU9O.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as Policy } from "./policy-types-
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
3
|
-
import { m as ApprovalStore } from "./types
|
|
1
|
+
import { D as Policy } from "./policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { a as PermDock } from "./permdock-D4F2p5J8.js";
|
|
3
|
+
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
4
4
|
//#region src/server/evaluations.d.ts
|
|
5
5
|
/** AuthZEN 1.0 section 7.1.2.1 `options.evaluations_semantic` values. */
|
|
6
6
|
declare const EVALUATIONS_SEMANTICS: readonly ["execute_all", "deny_on_first_deny", "permit_on_first_permit"];
|
package/dist/eve/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { u as ApprovalRequest } from "../types
|
|
5
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
|
+
import { u as ApprovalRequest } from "../types-BzxA2OAD.js";
|
|
5
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-DMCC5ZOi.js";
|
|
6
6
|
//#region src/eve/create.d.ts
|
|
7
7
|
/** Structural `SessionAuthContext` from `eve`. */
|
|
8
8
|
type EvePrincipal = {
|
package/dist/eve/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { l as withApp } from "../permdock-
|
|
2
|
+
import { l as withApp } from "../permdock-C1DN_7a-.js";
|
|
3
3
|
import { c as isApprovalError } from "../types-CcUXciSj.js";
|
|
4
4
|
import { o as resolveApproval } from "../helpers-D-MXwkOF.js";
|
|
5
|
-
import { t as agentRuntime } from "../create-
|
|
5
|
+
import { t as agentRuntime } from "../create-C0R8omeF.js";
|
|
6
6
|
import { t as boundedMap } from "../lru-8q4WZjBV.js";
|
|
7
7
|
//#region src/eve/create.ts
|
|
8
8
|
const TOKENS_PER_PROCESS = 1e3;
|
package/dist/express/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-CW7nsZ86.js";
|
|
6
6
|
import { i as toRequest, r as sendResponse } from "../http-B_LphE5Y.js";
|
|
7
7
|
import { ErrorRequestHandler, Request, RequestHandler, Response, Router } from "express";
|
|
8
8
|
//#region src/express/create.d.ts
|
package/dist/express/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as hasCredentials } from "../http-DKLXrFGk.js";
|
|
2
2
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
3
3
|
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
4
|
-
import { i as decorate, r as bindKernel } from "../bind-
|
|
4
|
+
import { i as decorate, r as bindKernel } from "../bind-gwEbe9hL.js";
|
|
5
5
|
import { n as sendResponse, r as toRequest } from "../http-DH94eh6f.js";
|
|
6
6
|
import express from "express";
|
|
7
7
|
//#region src/express/create.ts
|
package/dist/fastify/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-CW7nsZ86.js";
|
|
6
6
|
import { FastifyPluginAsync, FastifyReply, FastifyRequest, FastifySchema, FastifyTypeProvider, FastifyTypeProviderDefault, RawRequestDefaultExpression, RawServerDefault, RouteGenericInterface } from "fastify";
|
|
7
7
|
//#region src/server/http.d.ts
|
|
8
8
|
/** A Fastify-style reply: `code`, `header` and `send`. */
|
package/dist/fastify/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as writeReply, i as headersFrom, n as firstHeader, r as hasCredentials, t as fetchRequest } from "../http-DKLXrFGk.js";
|
|
2
2
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
3
3
|
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
4
|
-
import { i as decorate, r as bindKernel } from "../bind-
|
|
4
|
+
import { i as decorate, r as bindKernel } from "../bind-gwEbe9hL.js";
|
|
5
5
|
//#region src/fastify/http.ts
|
|
6
6
|
function toRequest(request) {
|
|
7
7
|
const host = firstHeader(request.headers.host) ?? "localhost";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
2
2
|
import { a as OperationInput, t as Operation } from "./operations-Ci_rT6Uo.js";
|
|
3
3
|
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
4
|
-
import { o as ProtectOptions } from "./server-types-
|
|
5
|
-
import { t as ServerAdapterOptions } from "./bind-
|
|
4
|
+
import { o as ProtectOptions } from "./server-types-ChzXWU4Y.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "./bind-CW7nsZ86.js";
|
|
6
6
|
//#region src/server/fetch-adapter.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* What `protect` checks: a permission, an operation from `defineOperations`, or
|
|
@@ -3,7 +3,7 @@ import { o as isPermission } from "./permission-registry-B8tYxPIt.js";
|
|
|
3
3
|
import { r as hasCredentials } from "./http-DKLXrFGk.js";
|
|
4
4
|
import { o as methodNotAllowed } from "./problem-BWP1l86g.js";
|
|
5
5
|
import { t as problemFromError } from "./map-error-EOhahOVA.js";
|
|
6
|
-
import { i as decorate, r as bindKernel } from "./bind-
|
|
6
|
+
import { i as decorate, r as bindKernel } from "./bind-gwEbe9hL.js";
|
|
7
7
|
//#region src/server/fetch-adapter.ts
|
|
8
8
|
/**
|
|
9
9
|
* `protect(target, data, options)(handler)` for a framework whose routes are
|
|
@@ -41,7 +41,7 @@ const gen = defineLeaf({
|
|
|
41
41
|
const out = given(flags.out);
|
|
42
42
|
const outDir = given(flags["out-dir"]);
|
|
43
43
|
const from = given(flags.policy);
|
|
44
|
-
const { runGen } = await import("./gen-
|
|
44
|
+
const { runGen } = await import("./gen-CKr1Vfiz.js");
|
|
45
45
|
return runGen({
|
|
46
46
|
cwd: ctx.cwd,
|
|
47
47
|
config: ctx.config,
|
|
@@ -10,7 +10,7 @@ import { c as requirePolicy } from "./load-BaEamml-.js";
|
|
|
10
10
|
import { t as loadConfiguredOperations } from "./catalog-operations-BD22drQf.js";
|
|
11
11
|
import { n as fileSummary, r as planFiles } from "./files-CfiRtQ-m.js";
|
|
12
12
|
import { f as writeOutputFiles, r as driftOf } from "./output-files-CM0BnH05.js";
|
|
13
|
-
import { t as resolveNames } from "./resolve-names-
|
|
13
|
+
import { t as resolveNames } from "./resolve-names-CDnxNqNb.js";
|
|
14
14
|
import { i as schemaExpression } from "./generate-CezbCaTI.js";
|
|
15
15
|
import { existsSync, readFileSync } from "node:fs";
|
|
16
16
|
import { dirname, extname, relative, resolve } from "node:path";
|
package/dist/h3/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
3
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
4
|
-
import { a as ProtectTarget, n as FetchAdapterOptions, r as FetchProtect, t as ContextReader } from "../fetch-adapter-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
3
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
4
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, r as FetchProtect, t as ContextReader } from "../fetch-adapter-DCQ4pZxf.js";
|
|
5
5
|
import { EventHandler, H3Event, H3EventContext, Middleware } from "h3";
|
|
6
6
|
//#region src/h3/create.d.ts
|
|
7
7
|
type H3PermDockOptions<TUser = unknown> = FetchAdapterOptions<H3Event, TUser>;
|