permdock 0.20.1 → 0.21.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 +1 -1
- package/dist/a2a/index.js +3 -3
- package/dist/{adoption-scan-BTG9Noyy.js → adoption-scan-UkQisAqe.js} +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +1 -1
- package/dist/ai-sdk/index.js +3 -3
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-D4mKdaWI.js → arazzo-BC3uLIZy.js} +2 -2
- package/dist/{arazzo-CDXfX4u0.js → arazzo-CUthH61H.js} +1 -1
- package/dist/astro/index.d.ts +3 -3
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.d.ts +2 -2
- package/dist/authzen/index.js +1 -1
- package/dist/better-supabase/index.d.ts +2 -2
- package/dist/better-supabase/index.js +3 -3
- package/dist/{bind-gwEbe9hL.js → bind-CJf7S-Jd.js} +3 -3
- package/dist/{bind-CW7nsZ86.d.ts → bind-XvnD_SUz.d.ts} +5 -5
- package/dist/{build-instance-DaBdCRiz.js → build-instance-CkRKgjSj.js} +1 -1
- package/dist/{casbin-COUi09Ti.js → casbin-BOZN1P2Y.js} +1 -1
- package/dist/{casbin-BXlRcCdU.js → casbin-v9Xo_XPa.js} +1 -1
- package/dist/catalog/index.js +2 -2
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +1 -1
- package/dist/claude-agent/index.d.ts +2 -2
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/{cloud-BW7JKfrF.js → cloud-CB0btByh.js} +2 -2
- package/dist/{codemod-CR9EQBVd.js → codemod-B-duJDFD.js} +1 -1
- package/dist/{codemod-6CBQaT0x.js → codemod-C3a3Iz_w.js} +2 -2
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-DZftFfXc.d.ts → compile-DonvwG9x.d.ts} +1 -1
- package/dist/{completion-CYRlOJzv.js → completion-6IshPaPd.js} +1 -1
- package/dist/{config-6iLK155o.js → config-C45X7mpm.js} +1 -1
- package/dist/{config-report-BLroaWCe.js → config-report-Bmo62RRr.js} +1 -1
- package/dist/convex/index.d.ts +2 -2
- package/dist/convex/index.js +2 -2
- package/dist/{core-BOeGWbcR.d.ts → core-9KbhurkH.d.ts} +1 -1
- package/dist/{core-BwVkrpsi.js → core-Dxkwz4xR.js} +2 -2
- package/dist/{create-DMCC5ZOi.d.ts → create-BQOQkYYg.d.ts} +4 -4
- package/dist/{create-DDUFG1ul.js → create-BRiRVNUO.js} +5 -4
- package/dist/{create-DYSYYiLr.d.ts → create-BzgDDamI.d.ts} +1 -1
- package/dist/{create-BezeYFcT.d.ts → create-DH4ZD0A7.d.ts} +2 -2
- package/dist/{create-C0R8omeF.js → create-Q0wF9Elt.js} +3 -3
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-DXRNcjpg.js → diff-3fpwo3UD.js} +1 -1
- package/dist/{diff-Bd1-VCe5.js → diff-BJv7I3GR.js} +2 -2
- package/dist/{doctor-CJcS0Mrq.js → doctor-Bz7s3JYD.js} +11 -11
- package/dist/{doctor-DYTgibLC.js → doctor-keoa9DpH.js} +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/elysia/index.d.ts +3 -3
- package/dist/elysia/index.js +1 -1
- package/dist/{evaluations-BgxEfPL7.d.ts → evaluations-OCm_Z-8V.d.ts} +1 -1
- package/dist/eve/index.d.ts +2 -2
- package/dist/eve/index.js +2 -2
- package/dist/express/index.d.ts +3 -3
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +3 -3
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-acq4dPX3.js → fetch-adapter-4EB3cLgB.js} +3 -2
- package/dist/{fetch-adapter-DCQ4pZxf.d.ts → fetch-adapter-BlL-ZhHq.d.ts} +2 -2
- package/dist/{gen-CH50v9VI.js → gen-Cf7nQsOb.js} +1 -1
- package/dist/{gen-gv_WHBIG.js → gen-DYF4LKUP.js} +1 -1
- package/dist/h3/index.d.ts +3 -3
- package/dist/h3/index.js +2 -2
- package/dist/hono/index.d.ts +3 -3
- package/dist/hono/index.js +1 -1
- package/dist/{import-BlwuuZkr.js → import-CQ_kH_Ny.js} +1 -1
- package/dist/{index-Bt37QovT.d.ts → index-BqzpT-90.d.ts} +1 -1
- package/dist/{index-CruReRkB.d.ts → index-Do7FqHEr.d.ts} +1 -1
- package/dist/{index-B_I6N8Ju.d.ts → index-DuOF7OqS.d.ts} +2 -2
- package/dist/{index-D7xGi1LS.d.ts → index-tuR-kZoJ.d.ts} +4 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/{init-B62H9Kyx.js → init-DvkvbvZ_.js} +1 -1
- package/dist/{init-CalppFAI.js → init-kTFkEu8S.js} +3 -3
- package/dist/{instance-options-VPsNQsTH.d.ts → instance-options-Cq66kEeR.d.ts} +1 -1
- package/dist/{instance-snapshot-SX8zH_1t.js → instance-snapshot-Bi4-dJk0.js} +1 -1
- package/dist/{kernel-_QEUOSU0.js → kernel-CLEzDmbv.js} +3 -3
- package/dist/kysely/index.d.ts +2 -2
- package/dist/{login-dDb_8muO.js → login-9ycIcJZH.js} +1 -1
- package/dist/{login-MxQV1BLh.js → login-CM_etiLM.js} +3 -3
- package/dist/{manifest-DvDzxhy6.js → manifest-CCd-xrM3.js} +33 -33
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +3 -3
- package/dist/nest/index.d.ts +3 -3
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +9 -6
- package/dist/next/index.js +6 -4
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +2 -2
- package/dist/openai/index.js +3 -3
- package/dist/{openapi-DKePsnln.js → openapi-DA7FVG2F.js} +1 -1
- package/dist/{openapi-BkGtE5kX.js → openapi-QnnU2A1c.js} +2 -2
- package/dist/orpc/index.d.ts +4 -4
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +2 -2
- package/dist/{output-B2h-2g3F.js → output-KT0a3B3H.js} +1 -1
- package/dist/{ownership-MGHa5vfX.js → ownership-CeNOtQMV.js} +1 -1
- package/dist/pdp/index.d.ts +2 -2
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-D4F2p5J8.d.ts → permdock-CsrvbzHk.d.ts} +5 -0
- package/dist/{permdock-C1DN_7a-.js → permdock-DbAq8_Fp.js} +2 -1
- package/dist/{permissions-8N2yFsUM.js → permissions-Dz79qsFw.js} +1 -1
- package/dist/{policy-from-catalog-CUNlpgz0.js → policy-from-catalog-BtqfxytV.js} +1 -1
- package/dist/powersync-CWCirKAJ.js +1 -0
- package/dist/{powersync-Deim9O47.js → powersync-CWsN-QaK.js} +2 -2
- package/dist/{powersync-CB8RwcB4.js → powersync-DiqY3VBG.js} +5 -5
- package/dist/prisma/index.d.ts +1 -1
- package/dist/{protected-action-ua0cx5cW.d.ts → protected-action-CuG0xz4P.d.ts} +3 -3
- package/dist/{provider-D_hgjZRa.d.ts → provider-ihxuJbMi.d.ts} +1 -1
- package/dist/{pull-BxqVL4Es.js → pull-B4EhSqOG.js} +1 -1
- package/dist/pull-VzcECZ-R.js +1 -0
- package/dist/{push-D2SsRW0U.js → push-DYOI4bPf.js} +1 -1
- package/dist/{pushed-policy-BERO0x9O.js → pushed-policy-Dszouliu.js} +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/{request-context-BPTi68z5.js → request-context-VjeXst1z.js} +1 -1
- package/dist/{resolve-names-BZQZRnMH.js → resolve-names-BIHnWL_L.js} +1 -1
- package/dist/{rls-DpoJ5gCg.js → rls-C7qXye9M.js} +1 -1
- package/dist/{rls-OPorg_2G.js → rls-CMFZWosz.js} +9 -9
- package/dist/{rpc-DdkbQVlT.js → rpc-BNIQwEB6.js} +1 -1
- package/dist/{rpc-D2LnFELm.d.ts → rpc-CYXICjM1.d.ts} +1 -1
- package/dist/{run-YCpANf1B.js → run-CMJX9x7b.js} +2 -2
- package/dist/run-D2e1tybu.js +1 -0
- package/dist/{run-ticket-94DOS9Cd.d.ts → run-ticket-BXYqQ9dy.d.ts} +1 -1
- package/dist/{saas-BEXnrH9H.js → saas-DHFfthXv.js} +2 -2
- package/dist/{scan-COvn7ZjN.js → scan-CSOkcNdl.js} +1 -1
- package/dist/{schema-BfSDo7Xj.js → schema-7pXCaRYB.js} +1 -1
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +1 -1
- package/dist/{server-types-ChzXWU4Y.d.ts → server-types-Bfl-IrzZ.d.ts} +6 -5
- package/dist/{skills-N2Hd8KN8.js → skills-DAjg-rgF.js} +1 -1
- package/dist/{skills-Ce4C2dq1.js → skills-DrX83QBK.js} +1 -1
- package/dist/solid/index.d.ts +2 -2
- package/dist/solid-start/index.d.ts +3 -3
- package/dist/solid-start/index.js +2 -2
- package/dist/{src-B8SQNsvw.js → src-Cop53_X1.js} +3 -2
- package/dist/{store-Dpg_fSNQ.d.ts → store-CRQ5VrWR.d.ts} +1 -1
- package/dist/{stores-C2A6KsxE.d.ts → stores-pEBMy94l.d.ts} +3 -3
- package/dist/supabase/middleware.d.ts +4 -4
- package/dist/supabase/middleware.js +4 -4
- package/dist/{supabase-zL7PC3RG.js → supabase-Cbl2orB2.js} +2 -2
- package/dist/{supabase-hook-BCSwK5x-.js → supabase-hook-BUcu3vPM.js} +3 -3
- package/dist/supabase-hook-QWphWBnG.js +1 -0
- package/dist/{supautils-7UES0i4a.js → supautils-a_253u1X.js} +5 -5
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/source.d.ts +3 -3
- package/dist/sveltekit/index.d.ts +3 -3
- package/dist/sveltekit/index.js +1 -1
- package/dist/{tables-DSX_Ma_n.js → tables-XrvffTMj.js} +1 -1
- package/dist/tanstack-start/index.d.ts +3 -3
- package/dist/tanstack-start/index.js +1 -1
- package/dist/terminal/index.d.ts +2 -2
- 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 +7 -7
- package/dist/testing/index.js +6 -6
- package/dist/testing/saas/index.d.ts +1 -1
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +4 -4
- package/dist/trpc/index.js +2 -2
- package/dist/{types-C5p2hoBR.d.ts → types-C3C9ien9.d.ts} +2 -2
- package/dist/{types-Drs3OOAy.d.ts → types-DjGZAU64.d.ts} +2 -2
- package/dist/{types-D8JVDWOr.d.ts → types-DotXrris.d.ts} +1 -1
- package/dist/{types-DnzRZjEu.d.ts → types-MixnvXQ5.d.ts} +2 -2
- package/dist/{types-CMclYgSk.d.ts → types-zh4WGQcP.d.ts} +1 -1
- package/dist/{usage-BcAqmjkj.js → usage-DHsqp4lN.js} +1 -1
- package/dist/{usage-CUnw73Y-.js → usage-DPbdI3Vi.js} +2 -2
- package/dist/usage-dmSjKx-Z.js +1 -0
- package/dist/{verify-V08pirDB.js → verify-C0jGJrmb.js} +5 -5
- package/dist/vue/index.d.ts +2 -2
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +2 -2
- package/dist/{wrap-CE5lxje7.d.ts → wrap-EQ6Or2Hi.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/powersync-Cs1E04s6.js +0 -1
- package/dist/pull-BLT25Y5C.js +0 -1
- package/dist/run-CW0QsyA9.js +0 -1
- package/dist/supabase-hook-7XxWGHQF.js +0 -1
- package/dist/usage-BdIS9NfN.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as memoryCustomRoleSource } from "./src-
|
|
1
|
+
import { A as memoryCustomRoleSource } from "./src-Cop53_X1.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-DbAq8_Fp.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";
|
|
@@ -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-CCd-xrM3.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-KT0a3B3H.js";
|
|
31
|
+
import { i as runSkillsInstall } from "./skills-DAjg-rgF.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-BUcu3vPM.js";
|
|
36
36
|
import { O as quoteIdent, t as CUSTOM_ROLES } from "./shared-sW3VYchq.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-XrvffTMj.js";
|
|
38
|
+
import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-CeNOtQMV.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-D_TfExiI.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-BIHnWL_L.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-C0jGJrmb.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-DPbdI3Vi.js";
|
|
45
|
+
import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-DiqY3VBG.js";
|
|
46
|
+
import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-a_253u1X.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";
|
|
@@ -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-Bz7s3JYD.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-Bz7s3JYD.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
2
|
+
import { f as WhereResult } from "../permdock-CsrvbzHk.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-DonvwG9x.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
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-CsrvbzHk.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-Bfl-IrzZ.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.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-CJf7S-Jd.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,5 +1,5 @@
|
|
|
1
1
|
import { D as Policy } from "./policy-types-BI9C5Sp5.js";
|
|
2
|
-
import { a as PermDock } from "./permdock-
|
|
2
|
+
import { a as PermDock } from "./permdock-CsrvbzHk.js";
|
|
3
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. */
|
package/dist/eve/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
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-CsrvbzHk.js";
|
|
4
4
|
import { u as ApprovalRequest } from "../types-BzxA2OAD.js";
|
|
5
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
5
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-BQOQkYYg.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-DbAq8_Fp.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-Q0wF9Elt.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
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-CsrvbzHk.js";
|
|
4
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-Bfl-IrzZ.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.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-CJf7S-Jd.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
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-CsrvbzHk.js";
|
|
4
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-Bfl-IrzZ.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.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-CJf7S-Jd.js";
|
|
5
5
|
//#region src/fastify/http.ts
|
|
6
6
|
function toRequest(request) {
|
|
7
7
|
const host = firstHeader(request.headers.host) ?? "localhost";
|
|
@@ -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-CJf7S-Jd.js";
|
|
7
7
|
//#region src/server/fetch-adapter.ts
|
|
8
8
|
/**
|
|
9
9
|
* `protect(target, data, options)(handler)` for a framework whose routes are
|
|
@@ -63,7 +63,8 @@ function fetchAdapter(policy, options, adapter, requestOf) {
|
|
|
63
63
|
const getSnapshot = async (context, query = {}) => {
|
|
64
64
|
return (await kernel.getPermDock(bind(context), query.tenant === void 0 ? await scopeOf(context) : { tenant: query.tenant })).snapshot(compact({
|
|
65
65
|
include: query.include,
|
|
66
|
-
tenants: query.tenants
|
|
66
|
+
tenants: query.tenants,
|
|
67
|
+
omitAssignable: query.omitAssignable
|
|
67
68
|
}));
|
|
68
69
|
};
|
|
69
70
|
const ensure = async (target, context) => {
|
|
@@ -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-Bfl-IrzZ.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "./bind-XvnD_SUz.js";
|
|
6
6
|
//#region src/server/fetch-adapter.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* What `protect` checks: a permission, an operation from `defineOperations`, or
|
|
@@ -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-BIHnWL_L.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";
|
|
@@ -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-Cf7nQsOb.js");
|
|
45
45
|
return runGen({
|
|
46
46
|
cwd: ctx.cwd,
|
|
47
47
|
config: ctx.config,
|
package/dist/h3/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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-
|
|
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-
|
|
2
|
+
import { a as PermDock } from "../permdock-CsrvbzHk.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-Bfl-IrzZ.js";
|
|
4
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, r as FetchProtect, t as ContextReader } from "../fetch-adapter-BlL-ZhHq.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>;
|
package/dist/h3/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
2
|
-
import { i as decorate } from "../bind-
|
|
3
|
-
import { t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { i as decorate } from "../bind-CJf7S-Jd.js";
|
|
3
|
+
import { t as fetchAdapter } from "../fetch-adapter-4EB3cLgB.js";
|
|
4
4
|
//#region src/h3/create.ts
|
|
5
5
|
function createPermDock(policy, options) {
|
|
6
6
|
const adapter = fetchAdapter(policy, options, "h3", (event) => event.req);
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
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-CsrvbzHk.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-Bfl-IrzZ.js";
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.js";
|
|
7
7
|
import { Context, Hono, MiddlewareHandler } from "hono";
|
|
8
8
|
import { SSEMessage, SSEStreamingApi } from "hono/streaming";
|
|
9
9
|
import { WSEvents } from "hono/ws";
|
package/dist/hono/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as compact } from "../compact-CAf557ZB.js";
|
|
|
2
2
|
import { r as PermDockRevokedError } from "../errors-ynga1EQy.js";
|
|
3
3
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
4
4
|
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
5
|
-
import { r as bindKernel } from "../bind-
|
|
5
|
+
import { r as bindKernel } from "../bind-CJf7S-Jd.js";
|
|
6
6
|
import { a as onRevoked, n as closeReason, r as guardIterable, t as POLICY_VIOLATION } from "../stream-DQ3rbO3J.js";
|
|
7
7
|
import { Hono } from "hono";
|
|
8
8
|
//#region src/hono/create.ts
|
|
@@ -4,7 +4,7 @@ import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
|
4
4
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
5
5
|
import { n as httpRequest } from "./http-DhMWeB_h.js";
|
|
6
6
|
import { i as schemaExpression, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
|
|
7
|
-
import { t as validateOpenapi } from "./schema-
|
|
7
|
+
import { t as validateOpenapi } from "./schema-7pXCaRYB.js";
|
|
8
8
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
9
|
import { resolve } from "node:path";
|
|
10
10
|
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as Policy, N as PolicyVocabulary, X as DecisionSink, dn as DeliveryChannel, 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 { _ as PrincipalSource, a as PermDock } from "./permdock-
|
|
4
|
+
import { _ as PrincipalSource, a as PermDock } from "./permdock-CsrvbzHk.js";
|
|
5
5
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
6
6
|
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, g as TransportMessages, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, o as DeliveryResult, r as DeliverOptions, s as DeliveryTarget, y as WebhookTransport } from "./types-p8mhWTcR.js";
|
|
7
7
|
import { l as WebhookSigner } from "./standard-webhooks-CFZIYtBF.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as Policy, En as Approver, Yn as Decision, _t as TokenSigner, ct as RelationSource, dr as AuthorizationDetail, it as MembershipSource, qt as Instant, vr as Membership, xr as Subject } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { M as AppData, f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
3
|
+
import { a as PermDock } from "./permdock-CsrvbzHk.js";
|
|
4
4
|
import { a as ApprovalDelegationSource, c as ApprovalListQuery, g as ApprovalVerdict, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, o as ApprovalInspectResult, r as ApprovalCancelMeta, s as ApprovalListFilter, u as ApprovalRequest } from "./types-BzxA2OAD.js";
|
|
5
5
|
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-DZwEOsK1.js";
|
|
6
6
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { D as Policy, G as CredentialVerifier, Mt as Credential, N as PolicyVocabulary, Pt as CredentialKind, Tt as SupportSession, X as DecisionSink, Yn as Decision, _t as TokenSigner, gt as TokenFailureCause, jt as ApiKeyPrincipal, lt as SettingsSource, sn as AuthEvent, vt as TokenVerifier, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { _ as PrincipalSource } from "./permdock-
|
|
3
|
+
import { _ as PrincipalSource } from "./permdock-CsrvbzHk.js";
|
|
4
4
|
import { a as ProblemDetails, s as Disclosure, t as ApprovalHint } from "./errors-OTE9u4Wk.js";
|
|
5
|
-
import { c as ServerPermDock, l as ServerPermDockOptions } from "./server-types-
|
|
5
|
+
import { c as ServerPermDock, l as ServerPermDockOptions } from "./server-types-Bfl-IrzZ.js";
|
|
6
6
|
//#region src/server/create.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* The Fetch factory behind every HTTP adapter. The subject and actor are
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { $ as JwtClaims, B as SupportAccessOptions, D as Policy, Dr as ConditionRef, F as RoleBinding, Fr as SqlFunctionArg, I as RoleOptions, Ir as SqlFunctionCondition, Kt as InstanceHandle, N as PolicyVocabulary, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Sn as Scope, T as MembershipFixture, U as VocabularyFromInput, Xn as Denial, Yn as Decision, Z as EntitlementSource, _ as Grant, _n as SinkEvent, _t as TokenSigner, an as SnapshotTenants, ct as RelationSource, en as Snapshot, fn as DeliveryEvent, hr as Delegation, ht as TenantSettings, it as MembershipSource, j as PolicyOptions, jr as OpaqueCondition, k as PolicyDelegation, l as AssuranceRequirement, lt as SettingsSource, o as ApprovalOption, on as AccessEvent, ot as RelationGroup, pr as CustomRole, q as CustomRoleSource, qt as Instant, u as BreakGlassOptions, un as DecisionEvent, ut as SnapshotSource, v as GrantCondition, vr as Membership, xn as PolicyScopesInput, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { E as ResourceXTree, S as ResourceParent, T as ResourceRestricted, b as ResourceNode, d as PermissionKind, f as PermissionTree, g as ResourceInit, m as PermissionsOptions, n as ActionMeta, p as PermissionsOf, t as ActionList, u as Permission, w as ResourceRelationInput, x as ResourceOptions, y as ResourceMeta } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as RoleTree, r as Role } from "./vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { a as PermDock, o as PermDockOptions } from "./permdock-
|
|
4
|
+
import { a as PermDock, o as PermDockOptions } from "./permdock-CsrvbzHk.js";
|
|
5
5
|
import { o as PolicyDocument } from "./hosted-yhyAuQkL.js";
|
|
6
6
|
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
7
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
7
|
+
import { t as InstanceOptions } from "./instance-options-Cq66kEeR.js";
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-EQ6Or2Hi.js";
|
|
9
9
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
10
10
|
import { n as VersionCache } from "./version-cache-q5cpaDSt.js";
|
|
11
11
|
import { i as CatalogEventData, s as CloudEvent } from "./sink-RwmP7ZHs.js";
|
|
@@ -612,6 +612,7 @@ type SnapshotForOptions = {
|
|
|
612
612
|
readonly plans?: readonly string[];
|
|
613
613
|
readonly include?: SnapshotInclude;
|
|
614
614
|
readonly tenants?: SnapshotTenants;
|
|
615
|
+
readonly omitAssignable?: boolean;
|
|
615
616
|
/** The instant for `issuedAt` and membership expiry. Defaults to the clock. */
|
|
616
617
|
readonly now?: Instant;
|
|
617
618
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { $n as DeniedDecision, $t as LocalSnapshotRows, A as PolicyOAuthScope, An as UserApprover, Ar as MemberOfParent, At as parseSupportSession, B as SupportAccessOptions, Bn as actor, Br as isConditionRef, Bt as DecideCredentialOptions, C as GrantValidity, Cn as ScopeDeclaration, Cr as ActorKind, Ct as WhereCompiler, D as Policy, Dn as ApproverInput, Dr as ConditionRef, Dt as SupportSessionPolicy, E as ObligationInput, En as Approver, Er as Condition, Et as SupportSessionDecision, F as RoleBinding, Fn as user, Fr as SqlFunctionArg, Ft as CredentialPermission, G as CredentialVerifier, Gn as plan, Gt as parseCredential, H as ValidateMode, Hn as assurance, Ht as credentialPolicyViolation, I as RoleOptions, In as Grantee, Ir as SqlFunctionCondition, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as ApprovalRequiredDecision, Jt as LocalCustomRoleTable, K as CustomRoleContext, Kn as relation, L as RoleScope, Ln as GranteeInput, Lr as hasConditionOp, Lt as CredentialPolicy, M as PolicyScopes, Mn as anyOf, Mr as RelatedCondition, Mt as Credential, Nn as holder, Nr as RelatedHop, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as ManagerApprover, Or as ConditionValue, Ot as SupportSessionRequest, P as PrincipalOf, Pn as manager, Pr as RestrictedAncestors, Pt as CredentialKind, Q as Intent, Qn as DenialReason, Qt as LocalSnapshotManifest, R as SeparationConflict, Rn as InheritGrantee, Rr as isCondition, Rt as CredentialPolicyViolation, S as GrantScope, Sn as Scope, Sr as VerifiedClaims, St as VersionQuery, T as MembershipFixture, Tn as AnyOfApprover, Tr as MembershipVia, Tt as SupportSession, Un as authenticated, Ut as decideCredential, V as SupportConsent, Vn as anyone, Vr as isSqlFunctionField, Vt as credentialDelegation, W as WireValidity, Wn as inherit, Wt as isFeedId, X as DecisionSink, Xn as Denial, Xt as LocalRowColumn, Y as DecisionProvider, Yn as Decision, Yt as LocalMembershipRows, Z as EntitlementSource, Zn as DenialDetails, Zt as LocalRowValue, _ as Grant, _n as SinkEvent, _t as TokenSigner, a as ApprovalMode, an as SnapshotTenants, ar as Quota, at as RelationChain, b as GrantMeta, br as SharedCustomRole, bt as VerifiedToken, c as ApprovalStage, cn as AutomationEvent, cr as TraceSkipReason, ct as RelationSource, d as BreakGlassRequirements, dn as DeliveryChannel, dr as AuthorizationDetail, dt as SourceCall, en as Snapshot, er as ExplainedDecision, et as LimitConsumeInput, f as BreakGlassSpec, fn as DeliveryEvent, fr as Binding, ft as SourceContext, g as DelegationTarget, gn as MembershipEvent, gr as GnapAccess, gt as TokenFailureCause, h as DelegationInput, hn as EmailCategory, hr as Delegation, ht as TenantSettings, i as ApprovalFallback, in as SnapshotScope, ir as Obligation, it as MembershipSource, jn as allOf, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as PermissionApprover, kr as MemberOfCondition, kt as decideSupportSession, l as AssuranceRequirement, ln as CredentialEvent, lr as Actor, lt as SettingsSource, m as ClosureGrantFn, mn as DirectoryEvent, mr as CustomRoleGrant, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotGrant, nr as LimitDetail, nt as LimitStore, o as ApprovalOption, on as AccessEvent, or as Trace, ot as RelationGroup, p as ClosureContext, pn as DeliveryFailureCause, pr as CustomRole, pt as SourceMemo, q as CustomRoleSource, qn as AppObligation, r as ApprovalEscalation, rn as SnapshotNotEntitled, rr as MatchedGrant, rt as MemberEntry, s as ApprovalRequirement, sn as AuthEvent, sr as TraceSkip, st as RelationHolder, t as ActivationOption, tn as SnapshotAssignable, tr as GrantedDecision, tt as LimitRemaining, u as BreakGlassOptions, un as DecisionEvent, ur as Assurance, ut as SnapshotSource, v as GrantCondition, vn as WireDecision, vr as Membership, vt as TokenVerifier, w as HostedGrantRef, wn as ScopeNames, wr as AdapterId, wt as DecideSupportSessionOptions, x as GrantOptions, xn as PolicyScopesInput, xr as Subject, xt as VersionContext, y as GrantLimit, yn as WireDenial, yr as Principal, yt as VerificationFailure, z as SubjectOf, zn as RelationGrantee, zr as isConditionDate, zt as CredentialRequest } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { A as RESOURCE_NAME, C as ResourceRelation, D as RowOf, E as ResourceXTree, M as AppData, N as AppDataSchema, O as PERMISSION_ROW, P as MetaValue, S as ResourceParent, T as ResourceRestricted, _ as ResourceLevel, a as EdgeGroups, b as ResourceNode, c as FieldRelation, d as PermissionKind, f as PermissionTree, g as ResourceInit, h as PrincipalRelation, i as EdgeGroup, j as RESOURCE_X, k as POLICY_SCOPES, m as PermissionsOptions, n as ActionMeta, o as EdgeMatch, p as PermissionsOf, r as ComputedRelation, s as EdgeRelation, u as Permission, v as ResourceLink, w as ResourceRelationInput, x as ResourceOptions, y as ResourceMeta } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as RoleTree, c as definePlans, d as isPlan, f as isRole, i as RoleMeta, l as defineRoles, m as listRoles, n as PlanTree, o as Vocabulary, p as listPlans, r as Role, s as VocabularyOptions, t as Plan, u as findRole } from "./vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { $ as resource, $t as isPermission, A as RoleChangeCheckInput, At as HoldingVia, B as ActivateInput, Bt as countHolders, C as parseCatalogEventData, Cn as principal, Ct as SnapshotClaims, D as parseSinkEvents, Dt as SignPolicyDocumentOptions, E as parseSinkEvent, Et as snapshotFromClaims, F as checkRoleChange, Ft as memoryRelationSource, G as allow, Gt as memoryMembershipSource, H as breakGlass, Ht as APPROVAL_POLICY_UNAVAILABLE, I as decideRoleChange, It as StripeEntitlementsClient, J as role, Jt as subjectMembershipSource, K as deny, Kt as memorySettingsSource, L as normalizeMembership, Lt as stripeEntitlementSource, M as RoleChangeOptions, Mt as whoCan, N as RoleChangeTarget, Nt as MemoryEdge, O as RoleChange, Ot as signPolicyDocument, P as RoleRules, Pt as MemoryRelationSourceData, Q as formerKeys, Qt as getResource, R as normalizeMemberships, Rt as claimsFirst, S as SINK_EVENT_SCHEMAS, Sn as context, St as SignSnapshotOptions, T as parseCloudEventBatch, Tt as snapshotClaims, U as supportAccess, Ut as memoryCustomRoleSource, V as activate, Vt as isExternallyManaged, W as normalizeApproval, Wt as memoryEntitlementSource, X as readable, Xt as opaque, Y as crud, Yt as sqlFunction, Z as writable, Zt as findPermission, _ as DECISION_EVENT_SCHEMA, _n as customRoleClaim, _t as ArazzoSimulateInput, a as catalogFingerprint, an as separationConflicts, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as validateCustomRole, bt as simulateArazzo, c as OCSF_VERSION, cn as fromSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleDropReason, dt as defineApp, en as listPermissions, et as definePermissions, f as toOcsf, fn as CustomRoleEntry, ft as AppOptions, g as CREDENTIAL_EVENT_SCHEMA, gn as ValidateCustomRoleOptions, gt as ArazzoPlan, h as CATALOG_EVENT_SCHEMA, hn as ResolvedCustomRole, ht as ArazzoFinding, i as canonicalJson, in as isRoleName, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as WhoCan, k as RoleChangeCheck, kt as Holder, l as OcsfAuthorizeSession, ln as parseSnapshot, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as CustomRoleValidation, mt as localSnapshotManifest, n as delegatedPermissions, nn as RoleNameOf, nt as snapshotFor, o as CSV_COLUMNS, on as requiresApproval, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleRename, pt as AppProfile, q as normalizeAssurance, qt as memorySnapshotSource, r as sha256Digest, rn as definePolicy, rt as CustomRoleReader, s as toCsvRow, sn as emptySnapshot, st as LegacyCheck, t as coveredByDelegation, tn as mergePermissions, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDrop, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as parseCustomRoleEntry, vt as ArazzoStepResult, w as parseCloudEvent, wt as signSnapshot, x as MEMBERSHIP_EVENT_SCHEMA, xn as claim, xt as deliveryEvent, y as DIRECTORY_EVENT_SCHEMA, yn as resolveCustomRole, yt as arazzoFindings, z as resolveScope, zt as composeMemberships } from "./index-
|
|
4
|
+
import { $ as resource, $t as isPermission, A as RoleChangeCheckInput, At as HoldingVia, B as ActivateInput, Bt as countHolders, C as parseCatalogEventData, Cn as principal, Ct as SnapshotClaims, D as parseSinkEvents, Dt as SignPolicyDocumentOptions, E as parseSinkEvent, Et as snapshotFromClaims, F as checkRoleChange, Ft as memoryRelationSource, G as allow, Gt as memoryMembershipSource, H as breakGlass, Ht as APPROVAL_POLICY_UNAVAILABLE, I as decideRoleChange, It as StripeEntitlementsClient, J as role, Jt as subjectMembershipSource, K as deny, Kt as memorySettingsSource, L as normalizeMembership, Lt as stripeEntitlementSource, M as RoleChangeOptions, Mt as whoCan, N as RoleChangeTarget, Nt as MemoryEdge, O as RoleChange, Ot as signPolicyDocument, P as RoleRules, Pt as MemoryRelationSourceData, Q as formerKeys, Qt as getResource, R as normalizeMemberships, Rt as claimsFirst, S as SINK_EVENT_SCHEMAS, Sn as context, St as SignSnapshotOptions, T as parseCloudEventBatch, Tt as snapshotClaims, U as supportAccess, Ut as memoryCustomRoleSource, V as activate, Vt as isExternallyManaged, W as normalizeApproval, Wt as memoryEntitlementSource, X as readable, Xt as opaque, Y as crud, Yt as sqlFunction, Z as writable, Zt as findPermission, _ as DECISION_EVENT_SCHEMA, _n as customRoleClaim, _t as ArazzoSimulateInput, a as catalogFingerprint, an as separationConflicts, at as customRoleSource, b as EVENT_SCHEMA_IDS, bn as validateCustomRole, bt as simulateArazzo, c as OCSF_VERSION, cn as fromSnapshot, ct as ShadowMismatch, d as accessToOcsf, dn as CustomRoleDropReason, dt as defineApp, en as listPermissions, et as definePermissions, f as toOcsf, fn as CustomRoleEntry, ft as AppOptions, g as CREDENTIAL_EVENT_SCHEMA, gn as ValidateCustomRoleOptions, gt as ArazzoPlan, h as CATALOG_EVENT_SCHEMA, hn as ResolvedCustomRole, ht as ArazzoFinding, i as canonicalJson, in as isRoleName, it as CustomRoleSourceOptions, j as RoleChangeDecision, jt as WhoCan, k as RoleChangeCheck, kt as Holder, l as OcsfAuthorizeSession, ln as parseSnapshot, lt as ShadowOptions, m as AUTOMATION_EVENT_SCHEMA, mn as CustomRoleValidation, mt as localSnapshotManifest, n as delegatedPermissions, nn as RoleNameOf, nt as snapshotFor, o as CSV_COLUMNS, on as requiresApproval, ot as mayAccess, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleRename, pt as AppProfile, q as normalizeAssurance, qt as memorySnapshotSource, r as sha256Digest, rn as definePolicy, rt as CustomRoleReader, s as toCsvRow, sn as emptySnapshot, st as LegacyCheck, t as coveredByDelegation, tn as mergePermissions, tt as SnapshotForOptions, u as OcsfUserManagement, un as CustomRoleDrop, ut as shadowMode, v as DELIVERY_EVENT_SCHEMA, vn as parseCustomRoleEntry, vt as ArazzoStepResult, w as parseCloudEvent, wt as signSnapshot, x as MEMBERSHIP_EVENT_SCHEMA, xn as claim, xt as deliveryEvent, y as DIRECTORY_EVENT_SCHEMA, yn as resolveCustomRole, yt as arazzoFindings, z as resolveScope, zt as composeMemberships } from "./index-tuR-kZoJ.js";
|
|
5
5
|
import { a as OperationInput, c as defineOperations, d as isOperationRisk, i as OperationEffect, l as OPERATION_RISKS, n as OperationData, o as OperationMap, r as OperationDefinition, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-Ci_rT6Uo.js";
|
|
6
6
|
import { a as ApprovalPolicyValidation, c as validateApprovalPolicy, i as ApprovalPolicySource, n as ApprovalPolicy, o as approvalPolicies, r as ApprovalPolicyProblem, s as memoryApprovalPolicySource, t as ApprovalPolicies } from "./approval-policies-CKlByf5o.js";
|
|
7
|
-
import { A as PermissionState, C as CustomRoleOwner, D as InstanceCacheStats, E as InstanceCacheOptions, O as instanceCache, S as memoryLimitStore, T as InstanceCacheKey, _ as PrincipalSource, a as PermDock, b as Limits, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, k as PermissionCheck, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as InstanceCache, x as limits, y as PermittedIdsOptions } from "./permdock-
|
|
7
|
+
import { A as PermissionState, C as CustomRoleOwner, D as InstanceCacheStats, E as InstanceCacheOptions, O as instanceCache, S as memoryLimitStore, T as InstanceCacheKey, _ as PrincipalSource, a as PermDock, b as Limits, c as RowPair, d as UncheckedData, f as WhereResult, g as PrincipalIdentityLink, h as PrincipalIdentity, i as LoadedRows, k as PermissionCheck, l as SimulateOptions, m as getPermDockSync, n as DecideOptions, o as PermDockOptions, p as getPermDock, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as memoryPrincipalSource, w as InstanceCache, x as limits, y as PermittedIdsOptions } from "./permdock-CsrvbzHk.js";
|
|
8
8
|
import { d as memoryPolicySource, f as mergeHostedGrants, i as HostedGrantDropped, l as hostedPolicies, m as policyDocumentFromClaims, o as PolicyDocument, p as parsePolicyDocument, r as HostedGrantDropReason, s as PolicySource, t as HostedGrant, u as isPortableCondition } from "./hosted-yhyAuQkL.js";
|
|
9
9
|
import { n as PermDockValidationError } from "./validation-error-DkOK9zUE.js";
|
|
10
10
|
import { a as ProblemDetails, c as requiredPlans, i as PermDockRevokedError, n as PermDockApprovalRequiredError, o as RevokedCode, r as PermDockDeniedError } from "./errors-OTE9u4Wk.js";
|
|
11
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
11
|
+
import { t as InstanceOptions } from "./instance-options-Cq66kEeR.js";
|
|
12
12
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
13
|
-
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-
|
|
13
|
+
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-EQ6Or2Hi.js";
|
|
14
14
|
import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
|
|
15
15
|
import { t as approvalFingerprint } from "./token-D6pWn8Uj.js";
|
|
16
16
|
import { i as memoryRevocationFeed, n as RevocationFeed, r as RevocationListener, t as RevocationEvent } from "./revocations-BaUXHM1N.js";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as isConditionDate, i as principal, l as isConditionRef, n as context, o as hasConditionOp, s as isCondition, t as claim, u as isSqlFunctionField } from "./refs-C8BKxc_e.js";
|
|
2
2
|
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-C5AgaC1x.js";
|
|
3
|
-
import { A as memoryCustomRoleSource, C as limits, E as approvalPolicies, F as subjectMembershipSource, I as sqlFunction, M as memoryMembershipSource, N as memorySettingsSource, O as memoryApprovalPolicySource, P as memorySnapshotSource, S as memoryRelationSource, T as stripeEntitlementSource, _ as arazzoFindings, a as normalizeMembership, b as instanceCache, c as crud, d as snapshotFor, f as customRoleSource, g as localSnapshotManifest, h as defineApp, i as decideRoleChange, j as memoryEntitlementSource, k as validateApprovalPolicy, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as simulateArazzo, w as memoryLimitStore, x as signPolicyDocument, y as memoryVersionCache } from "./src-
|
|
3
|
+
import { A as memoryCustomRoleSource, C as limits, E as approvalPolicies, F as subjectMembershipSource, I as sqlFunction, M as memoryMembershipSource, N as memorySettingsSource, O as memoryApprovalPolicySource, P as memorySnapshotSource, S as memoryRelationSource, T as stripeEntitlementSource, _ as arazzoFindings, a as normalizeMembership, b as instanceCache, c as crud, d as snapshotFor, f as customRoleSource, g as localSnapshotManifest, h as defineApp, i as decideRoleChange, j as memoryEntitlementSource, k as validateApprovalPolicy, l as readable, m as shadowMode, n as toCsvRow, o as normalizeMemberships, p as mayAccess, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as simulateArazzo, w as memoryLimitStore, x as signPolicyDocument, y as memoryVersionCache } from "./src-Cop53_X1.js";
|
|
4
4
|
import { d as manager, f as user, n as anyOf, o as holder, t as allOf } from "./approvers-BaNwKYgd.js";
|
|
5
5
|
import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
|
|
6
6
|
import { r as requiredPlans } from "./problem-details-CLDgX1KV.js";
|
|
@@ -23,7 +23,7 @@ import { a as hostedPolicies, c as mergeHostedGrants, l as parsePolicyDocument,
|
|
|
23
23
|
import { n as isOperationRisk, t as OPERATION_RISKS } from "./operation-risks-BKOcTv8J.js";
|
|
24
24
|
import { t as defineOperations } from "./operations-Bm9HFecz.js";
|
|
25
25
|
import { A as breakGlass, F as APPROVAL_POLICY_UNAVAILABLE, T as validateCustomRole, b as parseCustomRoleEntry, d as customRoleClaim, j as supportAccess, k as activate, x as resolveCustomRole } from "./evaluate-Dcq_U2TV.js";
|
|
26
|
-
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-
|
|
26
|
+
import { _ as claimsFirst, b as isExternallyManaged, v as composeMemberships, y as countHolders } from "./instance-snapshot-Bi4-dJk0.js";
|
|
27
27
|
import { t as approvalFingerprint } from "./token-DaMnIU9O.js";
|
|
28
28
|
import { t as whoCan } from "./who-can-CZeAwQZD.js";
|
|
29
29
|
import { n as parseSnapshot } from "./snapshot-DHPih65J.js";
|
|
@@ -31,7 +31,7 @@ import { l as snapshotClaims, s as signSnapshot, u as snapshotFromClaims } from
|
|
|
31
31
|
import { t as deliveryEvent } from "./delivery-event-JioK5YbS.js";
|
|
32
32
|
import { n as fromSnapshot, t as emptySnapshot } from "./from-snapshot-DHnb8Fh4.js";
|
|
33
33
|
import { t as parseLocalSnapshotManifest } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
34
|
-
import { n as getPermDockSync, t as getPermDock } from "./permdock-
|
|
34
|
+
import { n as getPermDockSync, t as getPermDock } from "./permdock-DbAq8_Fp.js";
|
|
35
35
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
36
36
|
import { t as definePermissions } from "./permissions-BaoLxy66.js";
|
|
37
37
|
import { C as EVENT_SCHEMA_IDS, S as DIRECTORY_EVENT_SCHEMA, T as SINK_EVENT_SCHEMAS, _ as AUTOMATION_EVENT_SCHEMA, a as accessEvent, b as DECISION_EVENT_SCHEMA, c as credentialEvent, d as membershipEvent, f as memoryDecisionSink, g as ACCESS_EVENT_SCHEMA, h as toCloudEvent, i as RESERVED_CLOUD_EVENT_TYPES, m as supportSessionEvent, n as CLOUDEVENTS_CONTENT_TYPE, o as automationEvent, p as signDecisionBatch, r as CLOUD_EVENT_TYPES, s as cloudEventType, t as CLOUDEVENTS_BATCH_CONTENT_TYPE, v as CATALOG_EVENT_SCHEMA, w as MEMBERSHIP_EVENT_SCHEMA, x as DELIVERY_EVENT_SCHEMA, y as CREDENTIAL_EVENT_SCHEMA } from "./sink-D9_vh372.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
2
2
|
import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-pPrVyGU5.js";
|
|
3
|
-
import { a as nonEmptyOr } from "./output-
|
|
3
|
+
import { a as nonEmptyOr } from "./output-KT0a3B3H.js";
|
|
4
4
|
import { t as addLine } from "./peer-BuK9F53f.js";
|
|
5
5
|
import { t as applyFiles } from "./files-CfiRtQ-m.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
@@ -48,7 +48,7 @@ const init = defineLeaf({
|
|
|
48
48
|
...forceFlag
|
|
49
49
|
},
|
|
50
50
|
async run(ctx, { flags }) {
|
|
51
|
-
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-
|
|
51
|
+
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-DvkvbvZ_.js"), import("./peer-n-swIV4H.js")]);
|
|
52
52
|
const agent = await packageManagerOf(ctx.cwd);
|
|
53
53
|
const selection = {
|
|
54
54
|
archetype: flags.archetype,
|
|
@@ -79,7 +79,7 @@ const presetDecode = defineLeaf({
|
|
|
79
79
|
positionals: presetCode,
|
|
80
80
|
flags: {},
|
|
81
81
|
async run(_ctx, { args }) {
|
|
82
|
-
const { runPreset } = await import("./init-
|
|
82
|
+
const { runPreset } = await import("./init-DvkvbvZ_.js");
|
|
83
83
|
return runPreset("decode", args["code"] ?? "");
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -87,7 +87,7 @@ const presetUrl = defineLeaf({
|
|
|
87
87
|
positionals: presetCode,
|
|
88
88
|
flags: {},
|
|
89
89
|
async run(_ctx, { args }) {
|
|
90
|
-
const { runPreset } = await import("./init-
|
|
90
|
+
const { runPreset } = await import("./init-DvkvbvZ_.js");
|
|
91
91
|
return runPreset("url", args["code"] ?? "");
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as PermDockOptions } from "./permdock-
|
|
1
|
+
import { o as PermDockOptions } from "./permdock-CsrvbzHk.js";
|
|
2
2
|
//#region src/core/instance-options.d.ts
|
|
3
3
|
type InstanceKey = "memberships" | "relations" | "entitlements" | "customRoles" | "policies" | "approvalPolicies" | "sink" | "limits" | "principals" | "instances";
|
|
4
4
|
/**
|
|
@@ -596,7 +596,7 @@ function snapshotOf(policy, subject, options) {
|
|
|
596
596
|
scopes: snapshotScopes(policy),
|
|
597
597
|
idOf: (name) => getResource(policy.permissions, name)?.id,
|
|
598
598
|
delegated,
|
|
599
|
-
assignable: (tenant) => {
|
|
599
|
+
assignable: options.omitAssignable === true ? void 0 : (tenant) => {
|
|
600
600
|
const found = assignableIn(policy, subject, options.customRoles, customGrants, tenant, options.assignable?.get(tenant), now);
|
|
601
601
|
return compact({
|
|
602
602
|
tenant,
|
|
@@ -7,11 +7,11 @@ import { c as nowSeconds, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js
|
|
|
7
7
|
import { k as activate } from "./evaluate-Dcq_U2TV.js";
|
|
8
8
|
import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
|
|
9
9
|
import { n as delegationAllows } from "./where-scope-BAyOsPQW.js";
|
|
10
|
-
import { l as withApp } from "./permdock-
|
|
10
|
+
import { l as withApp } from "./permdock-DbAq8_Fp.js";
|
|
11
11
|
import { l as storedApprovalToken, s as resumeDecision } from "./helpers-D-MXwkOF.js";
|
|
12
|
-
import { n as resolveOrNull } from "./build-instance-
|
|
12
|
+
import { n as resolveOrNull } from "./build-instance-CkRKgjSj.js";
|
|
13
13
|
import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
|
|
14
|
-
import { n as requestContext, t as buildReportingInstance } from "./request-context-
|
|
14
|
+
import { n as requestContext, t as buildReportingInstance } from "./request-context-VjeXst1z.js";
|
|
15
15
|
//#region src/agent/denied-text.ts
|
|
16
16
|
/**
|
|
17
17
|
* The hook's text, or `event.text` when there is no hook or it throws or
|
package/dist/kysely/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
-
import { f as WhereResult } from "../permdock-
|
|
2
|
+
import { f as WhereResult } from "../permdock-CsrvbzHk.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-DonvwG9x.js";
|
|
5
5
|
import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
|
|
6
6
|
//#region src/kysely/types.d.ts
|
|
7
7
|
type KyselySelectQuery = {
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
|
|
|
3
3
|
import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-BwbJNmb2.js";
|
|
4
4
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-C2bWdvJH.js";
|
|
5
5
|
import { n as randomToken, t as pkce } from "./pkce-CnmmYqUZ.js";
|
|
6
|
-
import { a as nonEmptyOr } from "./output-
|
|
6
|
+
import { a as nonEmptyOr } from "./output-KT0a3B3H.js";
|
|
7
7
|
import { n as httpRequest } from "./http-DhMWeB_h.js";
|
|
8
8
|
import { c as READ_SCOPES, d as issuerMetadata, i as credentialsInsideRepository, l as cloudUrl, n as cliRuntime, r as credentialStorage, s as CLI_CLIENT_ID, t as CREDENTIAL_SERVICE } from "./auth-j3Eu-j4h.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -27,7 +27,7 @@ const login = defineLeaf({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
async run(ctx, { flags }) {
|
|
30
|
-
const { runLogin } = await import("./login-
|
|
30
|
+
const { runLogin } = await import("./login-9ycIcJZH.js");
|
|
31
31
|
return runLogin({
|
|
32
32
|
cwd: ctx.cwd,
|
|
33
33
|
url: given(flags.url),
|
|
@@ -43,7 +43,7 @@ const login = defineLeaf({
|
|
|
43
43
|
const logout = defineLeaf({
|
|
44
44
|
flags: { ...urlFlag },
|
|
45
45
|
async run(ctx, { flags }) {
|
|
46
|
-
const { runLogout } = await import("./login-
|
|
46
|
+
const { runLogout } = await import("./login-9ycIcJZH.js");
|
|
47
47
|
return runLogout({
|
|
48
48
|
url: given(flags.url),
|
|
49
49
|
json: ctx.json,
|
|
@@ -55,7 +55,7 @@ const logout = defineLeaf({
|
|
|
55
55
|
const whoami = defineLeaf({
|
|
56
56
|
flags: { ...urlFlag },
|
|
57
57
|
async run(ctx, { flags }) {
|
|
58
|
-
const { runWhoami } = await import("./login-
|
|
58
|
+
const { runWhoami } = await import("./login-9ycIcJZH.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|