permdock 0.27.3 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
- package/dist/{adoption-scan-CHMU7gnE.js → adoption-scan-6eUACbvC.js} +1 -1
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-DuXmPMSu.js → arazzo-DSzOxgr1.js} +1 -1
- package/dist/{arazzo-D1ZHjjea.js → arazzo-Du3koIf5.js} +2 -2
- package/dist/{args-0EWFk-4S.js → args-Bc0HLiD4.js} +1 -1
- package/dist/better-supabase/index.d.ts +2 -0
- package/dist/better-supabase/index.js +8 -6
- package/dist/{casbin-Bf9jkDMy.js → casbin-B5UnU9nM.js} +1 -1
- package/dist/{casbin-CwLL5QnK.js → casbin-CW2uo-Jt.js} +1 -1
- package/dist/catalog/index.d.ts +1 -1
- package/dist/{catalog-B3MJShnZ.js → catalog-COoxFOoy.js} +1 -1
- package/dist/catalog-DCjJIl3n.js +1 -0
- package/dist/{catalog-DyC3LKc7.js → catalog-DXSP1we9.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +5 -4
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-nXogJ7e1.js → cloud-DhpR9oxl.js} +2 -2
- package/dist/{codemod-Bp2bKwKe.js → codemod-BRY1780A.js} +2 -2
- package/dist/{codemod-DwL1E5of.js → codemod-DEsebwQn.js} +2 -2
- package/dist/{collect-BJZsuBW4.js → collect-BOh9Pxob.js} +1 -1
- package/dist/{collect-CpGnmGpL.js → collect-BYPq-0JU.js} +2 -2
- package/dist/collect-XcoQRyiA.js +1 -0
- package/dist/{compile-NM1GOb2q.js → compile-CT7x66_U.js} +1 -1
- package/dist/{completion-BQovwoTx.js → completion-CW1poYOM.js} +2 -2
- package/dist/{config-DSyn7r1l.js → config-DP7Stalz.js} +1 -1
- package/dist/{config-report--ae2r_MI.js → config-report-CnuPIG_V.js} +2 -2
- package/dist/{context-DmH-Eyvx.js → context-BdoA9DhS.js} +2 -2
- package/dist/{core-DKqrD_xW.js → core-tEfD0lwu.js} +1 -1
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-BIqibFnm.js → diff-CXRZ6qPa.js} +1 -1
- package/dist/{diff-n6LONVwL.js → diff-Cv9inVY5.js} +1 -1
- package/dist/{doctor-CIV882xS.js → doctor-B3rZsURs.js} +3 -3
- package/dist/{doctor-kbRrZD3Q.js → doctor-CkaAS-Uk.js} +74 -27
- package/dist/{execute-CE8P72Ez.js → execute-CdqPJ6SP.js} +3 -3
- package/dist/{gen-CuEt0o6p.js → gen-DCmo0Irk.js} +3 -3
- package/dist/gen-DnaCR5w3.js +1 -0
- package/dist/{gen-kind-BLIhHgD3.js → gen-kind-10IxFLdl.js} +1 -1
- package/dist/{generate-B-Hlc08D.js → generate-BuNebxmi.js} +2 -2
- package/dist/{generate-Dl75LKbW.js → generate-CYUj-cvA.js} +11 -11
- package/dist/{generate-options-BUh621MW.js → generate-options-AvKV0IXA.js} +6 -6
- package/dist/{hook-sql-Bxc_YRrd.js → hook-sql-Cunsdk5x.js} +6 -5
- package/dist/{import-BKTq4cxW.js → import-CDCWY5Ou.js} +1 -1
- package/dist/{index-Cq9N5B92.d.ts → index-BSJoxaOi.d.ts} +1 -1
- package/dist/{index-BXz-XXC3.d.ts → index-D1msamx_.d.ts} +1 -1
- package/dist/{index-CVuc3E1O.d.ts → index-eaNHkELi.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-B8GG9vjg.js → init-QA12XZy5.js} +3 -3
- package/dist/{init-D4YO8hVa.js → init-erhwH2o6.js} +1 -1
- package/dist/{json-schema-SDkWXxhu.d.ts → json-schema-DAeA-lJa.d.ts} +1 -1
- package/dist/{lazy-provider-CydlnKkS.d.ts → lazy-provider-C48LDq0q.d.ts} +1 -1
- package/dist/{lazy-provider-DG5rMeqL.js → lazy-provider-CVX534Kk.js} +1 -1
- package/dist/{login-OJdYkueH.js → login-BJmDn5p2.js} +3 -3
- package/dist/{login-Bl-SuTJA.js → login-OBqLmoA2.js} +1 -1
- package/dist/{manifest-BY8lK4l4.js → manifest-BY70KZmp.js} +35 -35
- package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/{openapi-Dpetebzt.js → openapi-B9Lpb4Px.js} +1 -1
- package/dist/{openapi-CvAjVdK7.js → openapi-DmEgZ9X8.js} +3 -3
- package/dist/{openapi-document-7K7rofeR.js → openapi-document-BJDwMJRO.js} +1 -1
- package/dist/{output-Cq0neio3.js → output-Cqtb8lW_.js} +1 -1
- package/dist/{output-files-DNid6TBl.js → output-files-D5D-8-4l.js} +1 -1
- package/dist/output-files-aPXXhV4q.js +1 -0
- package/dist/{ownership-CHND0y5L.js → ownership-fYxdtYs0.js} +1 -1
- package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
- package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
- package/dist/{policy-bundle-Dafv5nOx.js → policy-bundle-AFVba7nt.js} +3 -3
- package/dist/{policy-DzTU5233.js → policy-gS3zexF5.js} +1 -1
- package/dist/{powersync-BfMIjRqo.js → powersync-TraBGEw2.js} +1 -1
- package/dist/{powersync-IrDmJbqx.js → powersync-WvWQh2kU.js} +1 -1
- package/dist/{powersync-DNeS5JrT.js → powersync-d4eoYO3I.js} +6 -6
- package/dist/{prompt-CSXHcJxy.js → prompt-CPlJn_4-.js} +3 -3
- package/dist/{protected-action-D6T3eJyW.d.ts → protected-action-CEzNNtfi.d.ts} +2 -2
- package/dist/{protected-action-BMb0ftEu.js → protected-action-Dco5O_Kc.js} +1 -1
- package/dist/{provider-ClD4rfgT.js → provider-BYcoTKuS.js} +1 -1
- package/dist/{provider-CydlnKkS.d.ts → provider-C48LDq0q.d.ts} +1 -1
- package/dist/{provider-store-atQUfsVO.js → provider-store-Dq_olUjC.js} +1 -1
- package/dist/{provider-with-CSw4mBDU.js → provider-with-fxHItxDh.js} +1 -1
- package/dist/pull-Bn9a5g9Q.js +1 -0
- package/dist/{pull-DOwvDn98.js → pull-xhMWizWH.js} +1 -1
- package/dist/{push-Cb7PqXdO.js → push-DXh936bz.js} +1 -1
- package/dist/{pushed-policy-pH-EFWyx.d.ts → pushed-policy-APjMbYdV.d.ts} +1 -1
- package/dist/{rbac-CygtQB85.js → rbac-ir19O-e-.js} +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +4 -4
- package/dist/react/lazy.js +3 -3
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/react-native/index.js +2 -2
- package/dist/{resolve-names-D0hNHBp5.js → resolve-names-B3PM0l3J.js} +1 -1
- package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
- package/dist/{rls-BjEp-1Ob.js → rls-CYbk1UmD.js} +7 -7
- package/dist/{rls-BDmebOIp.js → rls-DEPAx9uQ.js} +1 -1
- package/dist/{rls-files-kGXtfslQ.js → rls-files-CxdOxMKl.js} +2 -2
- package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
- package/dist/run-BtTQlk1R.js +1 -0
- package/dist/{run-DFe2I0T7.js → run-CI5opYjC.js} +3 -3
- package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
- package/dist/{scan-DGCpdOuR.js → scan-BrILYXP9.js} +1 -1
- package/dist/{schema-wummOGn9.js → schema-C-Nn6M1P.js} +2 -2
- package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
- package/dist/{skills-BntnICiJ.js → skills-C2SqRGXy.js} +2 -2
- package/dist/{skills-BQ9bEjPV.js → skills-Cuf4gcfr.js} +2 -2
- package/dist/{snapshot-size-DU7CvpMt.js → snapshot-size-B_chu2c1.js} +1 -1
- package/dist/{snapshot-size-D-pCR8x0.js → snapshot-size-CHig-Nq_.js} +1 -1
- package/dist/solid/index.d.ts +24 -24
- package/dist/solid/index.js +2 -2
- package/dist/{src-D6_T4zd7.js → src-BAYcigFU.js} +1 -1
- package/dist/{store-core-eqG8jijs.d.ts → store-core-DyNo_BwA.d.ts} +4 -2
- package/dist/{store-options-C8x39AHa.js → store-options-BtHrfJUU.js} +1 -1
- package/dist/{stores-DoA7ACkz.js → stores-BIMyclLg.js} +1 -1
- package/dist/{stores-4DOaL4ZP.d.ts → stores-DyFCruRC.d.ts} +2 -2
- package/dist/supabase/index.d.ts +6 -0
- package/dist/supabase/index.js +2 -2
- package/dist/{supabase-BI5ZhzLl.js → supabase-BzK3lplm.js} +4 -4
- package/dist/{supabase-CjUsihRL.js → supabase-V_yr_spa.js} +1 -1
- package/dist/{supabase-config-CbK7xX77.js → supabase-config-BrhSp-U7.js} +1 -1
- package/dist/supabase-hook-BJImmLmb.js +2 -0
- package/dist/{supabase-hook-nGLUvn5x.js → supabase-hook-C7v1wRUV.js} +4 -4
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +3 -3
- package/dist/svelte/source.js +2 -2
- package/dist/{tables-CbVpFhC6.js → tables-D-tmMHww.js} +44 -7
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/{text-diff-CsglY49A.js → text-diff-DxKRNFlx.js} +2 -2
- package/dist/{types-C7QtRn3n.d.ts → types-4wjWMSFM.d.ts} +2 -2
- package/dist/{types-CVCRFYY_.d.ts → types-CQF-oYSz.d.ts} +1 -1
- package/dist/{types-3pRMqcvw.d.ts → types-PS10T9UK.d.ts} +1 -1
- package/dist/{types-nXo_oQYk.d.ts → types-config-Cq72dArb.d.ts} +740 -782
- package/dist/types-run-DG1H5vrX.d.ts +44 -0
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-L1G1zlwz.js → usage-Bh-VP8co.js} +1 -1
- package/dist/usage-DpmLPRRx.js +1 -0
- package/dist/{usage-C1NKRxBJ.js → usage-XS56d_Kx.js} +3 -3
- package/dist/{verify-KX4Ohvs_.js → verify-aCeiREkh.js} +4 -4
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +2 -2
- package/dist/{watch-CiN6WU9k.js → watch-BNxvqCS4.js} +1 -1
- package/dist/watch-CGLmIdld.js +1 -0
- package/dist/{watch-DNIGANvR.js → watch-CnRyGEtp.js} +1 -1
- package/package.json +14 -14
- package/skills/permdock-data/references/queries-and-rls.md +1 -0
- package/dist/catalog-CgK_L4Qf.js +0 -1
- package/dist/collect-CPvCXMQ-.js +0 -1
- package/dist/gen-DbPS6a4x.js +0 -1
- package/dist/output-files-C5LFnQa4.js +0 -1
- package/dist/pull-Qh7JjiO7.js +0 -1
- package/dist/run-CdxQr6w8.js +0 -1
- package/dist/supabase-hook-b7tej2Vw.js +0 -2
- package/dist/usage-BAUV1SYl.js +0 -1
- package/dist/watch-NAUnUXph.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
2
2
|
import { r as supabaseTenantClaim } from "./budget-BH81q2cj.js";
|
|
3
|
-
import { r as runCollect } from "./collect-
|
|
4
|
-
import { t as didYouMean } from "./args-
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { a as nonEmptyOr, r as findingOf } from "./output-
|
|
3
|
+
import { r as runCollect } from "./collect-BOh9Pxob.js";
|
|
4
|
+
import { t as didYouMean } from "./args-Bc0HLiD4.js";
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-BY70KZmp.js";
|
|
6
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-Cqtb8lW_.js";
|
|
7
7
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
8
8
|
import { i as DOCTOR_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { a as rel, n as doctorSrcPath, o as sqlFiles$1, r as listSourceFiles } from "./files-DAR51W3J.js";
|
|
@@ -11,25 +11,25 @@ import { n as pgConnector } from "./pg-CA651850.js";
|
|
|
11
11
|
import { a as describeError, i as configError } from "./errors-DgLOqc6j.js";
|
|
12
12
|
import { a as betterSupabaseInstalled, c as workspaceDirs, d as readJson, i as betterSupabaseDefaults, l as filesOf, n as betterSupabaseAuthzVersions, o as betterSupabaseTenantClaim, r as betterSupabaseConfig, t as BETTER_SUPABASE_AUTHZ_TOPIC, u as nodeFiles } from "./better-supabase-DSbs4MtQ.js";
|
|
13
13
|
import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-CZnlAyZ8.js";
|
|
14
|
-
import { i as runSkillsInstall } from "./skills-
|
|
15
|
-
import { a as supabaseConfig, i as readSupabaseConfig, n as pd045, r as pd074 } from "./supabase-config-
|
|
16
|
-
import { d as activeSource, g as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, p as resolveSchemas, r as supabaseDatabaseManifest } from "./hook-sql-
|
|
17
|
-
import { i as pd039, t as hookOut } from "./supabase-hook-
|
|
18
|
-
import { c as outFiles } from "./output-files-
|
|
19
|
-
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-Cuf4gcfr.js";
|
|
15
|
+
import { a as supabaseConfig, i as readSupabaseConfig, n as pd045, r as pd074 } from "./supabase-config-BrhSp-U7.js";
|
|
16
|
+
import { d as activeSource, g as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, p as resolveSchemas, r as supabaseDatabaseManifest } from "./hook-sql-Cunsdk5x.js";
|
|
17
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-C7v1wRUV.js";
|
|
18
|
+
import { c as outFiles } from "./output-files-D5D-8-4l.js";
|
|
19
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-fYxdtYs0.js";
|
|
20
20
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
21
21
|
import { i as group, n as membershipColumns, o as sqlStatements, r as tableKey } from "./deciding-columns-BnglEKqU.js";
|
|
22
22
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
23
|
-
import { d as rowConditionMessage, f as parseIgnores, p as splitIgnored, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-
|
|
23
|
+
import { d as rowConditionMessage, f as parseIgnores, p as splitIgnored, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-aCeiREkh.js";
|
|
24
24
|
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-BnnFjtWI.js";
|
|
25
25
|
import { t as parseCatalog } from "./parse-nfHSt1Wy.js";
|
|
26
26
|
import "./authz-topic-D8x24Jv-.js";
|
|
27
27
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
28
28
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
29
29
|
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-Bp5khmCG.js";
|
|
30
|
-
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-
|
|
30
|
+
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-XS56d_Kx.js";
|
|
31
31
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DMYRZVcn.js";
|
|
32
|
-
import { t as resolveNames } from "./resolve-names-
|
|
32
|
+
import { t as resolveNames } from "./resolve-names-B3PM0l3J.js";
|
|
33
33
|
import "./markers-C-kThnKN.js";
|
|
34
34
|
import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
35
35
|
import { s as parseCredential } from "./credential-ke0KMQeB.js";
|
|
@@ -42,22 +42,22 @@ import { o as flattenGrantee } from "./grantee-BPUG6f0r.js";
|
|
|
42
42
|
import { u as isPrincipalRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
43
43
|
import { t as operationCoverage } from "./coverage-nFSMjFxH.js";
|
|
44
44
|
import { r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
45
|
-
import { i as snapshotSize, n as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-
|
|
45
|
+
import { i as snapshotSize, n as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-CHig-Nq_.js";
|
|
46
46
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
47
47
|
import { n as pd110, r as pd114, t as pd109 } from "./perf-token-dFGVP14-.js";
|
|
48
48
|
import { a as scopeMembershipTable } from "./compile-BUKXrueE.js";
|
|
49
49
|
import { t as policyModel } from "./model-BkQLENu6.js";
|
|
50
|
-
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-
|
|
50
|
+
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-d4eoYO3I.js";
|
|
51
51
|
import { t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
|
|
52
52
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
53
|
-
import {
|
|
53
|
+
import { J as policyBundle, Q as graphPlan, i as tableNames, r as tableNameOf } from "./tables-D-tmMHww.js";
|
|
54
54
|
import { H as byKey, K as graphSqlName } from "./interactive-only-CQsgMc1E.js";
|
|
55
|
-
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-
|
|
55
|
+
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-CT7x66_U.js";
|
|
56
56
|
import { r as contextRefs } from "./conditions-VlAMOm20.js";
|
|
57
57
|
import { t as CUSTOM_ROLES } from "./shared-BdF5DJDQ.js";
|
|
58
58
|
import { n as isSeeds } from "./seeds-BDTG7xl-.js";
|
|
59
59
|
import { r as FIXTURES_PATH, s as seedPathsLine } from "./seed-sql-CjF7u0aX.js";
|
|
60
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
60
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-AvKV0IXA.js";
|
|
61
61
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-BNiXnbBR.js";
|
|
62
62
|
import { t as supautilsRejections } from "./supautils-DXzJ2E2Q.js";
|
|
63
63
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -2138,14 +2138,28 @@ function pd106(cwd, config, files = nodeFiles) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
const CUSTOM_ROLE_TABLE = /\bcustom_role_(?:permissions|includes)\b/iu;
|
|
2140
2140
|
const UNSARGABLE_TENANT = /\btenant_id"?\s*::\s*text\b|\btenant_id"?\s+is\s+not\s+distinct\s+from\b/iu;
|
|
2141
|
+
const CREATE_FUNCTION$1 = new RegExp(String.raw`^create\s+(?:or\s+replace\s+)?function\s+${NAME$1}\s*\(`, "iu");
|
|
2142
|
+
function functionName(statement) {
|
|
2143
|
+
const match = CREATE_FUNCTION$1.exec(statement.text);
|
|
2144
|
+
return match === null ? void 0 : unquote$1(group(match, 1));
|
|
2145
|
+
}
|
|
2141
2146
|
/**
|
|
2142
2147
|
* PD107: a statement reads a custom-role table and compares `tenant_id` through
|
|
2143
2148
|
* a `text` cast or `is not distinct from`. Neither form can use the table's
|
|
2144
|
-
* `(tenant_id, …)` index, so each probe scans every tenant's roles.
|
|
2149
|
+
* `(tenant_id, …)` index, so each probe scans every tenant's roles. A function
|
|
2150
|
+
* that a later migration or the schema files define again is not reported: the
|
|
2151
|
+
* database runs the last definition.
|
|
2145
2152
|
*/
|
|
2146
2153
|
function pd107(cwd, config, files = nodeFiles) {
|
|
2147
|
-
|
|
2148
|
-
|
|
2154
|
+
const statements = statementsOf(cwd, config, files);
|
|
2155
|
+
const last = /* @__PURE__ */ new Map();
|
|
2156
|
+
for (const [index, statement] of statements.entries()) {
|
|
2157
|
+
const name = functionName(statement);
|
|
2158
|
+
if (name !== void 0) last.set(name, index);
|
|
2159
|
+
}
|
|
2160
|
+
return statements.flatMap((statement, index) => {
|
|
2161
|
+
const name = functionName(statement);
|
|
2162
|
+
if (!CUSTOM_ROLE_TABLE.test(statement.text) || name !== void 0 && last.get(name) !== index) return [];
|
|
2149
2163
|
const match = UNSARGABLE_TENANT.exec(statement.text);
|
|
2150
2164
|
if (match === null) return [];
|
|
2151
2165
|
return [{
|
|
@@ -2487,14 +2501,27 @@ function branchGaps(policy, resources) {
|
|
|
2487
2501
|
}
|
|
2488
2502
|
return findings;
|
|
2489
2503
|
}
|
|
2504
|
+
const NATIVE_REFRESH = /\bnativeRefresh\s*\(/u;
|
|
2505
|
+
const AUTHZ_CHANGE_REFRESH = /\bauthzChangeRefresh\s*\(/u;
|
|
2506
|
+
const REFRESH_SESSION = /\.refreshSession\s*\(/u;
|
|
2507
|
+
/**
|
|
2508
|
+
* The sources refresh the session and reconnect on an authorization change:
|
|
2509
|
+
* `nativeRefresh`, or an app bridge that calls `refreshSession()` and hands
|
|
2510
|
+
* PermDock the refresh through `authzChangeRefresh`.
|
|
2511
|
+
*/
|
|
2512
|
+
function wiresRefresh(sources) {
|
|
2513
|
+
const has = (pattern) => sources.some((source) => pattern.test(source.text));
|
|
2514
|
+
return has(NATIVE_REFRESH) || has(AUTHZ_CHANGE_REFRESH) && has(REFRESH_SESSION);
|
|
2515
|
+
}
|
|
2490
2516
|
/**
|
|
2491
2517
|
* PD084: a synced stream reads a token claim. PowerSync keeps the claims a
|
|
2492
2518
|
* connection started with, so after a role or tenant change the device syncs by
|
|
2493
|
-
* the old claims until the app refreshes the session and reconnects.
|
|
2519
|
+
* the old claims until the app refreshes the session and reconnects. Quiet when
|
|
2520
|
+
* the sources wire that refresh.
|
|
2494
2521
|
*/
|
|
2495
|
-
async function pd084(input) {
|
|
2522
|
+
async function pd084(input, sources = []) {
|
|
2496
2523
|
const { config } = input;
|
|
2497
|
-
if (config.powersync === void 0 || config.policy === void 0) return [];
|
|
2524
|
+
if (config.powersync === void 0 || config.policy === void 0 || wiresRefresh(sources)) return [];
|
|
2498
2525
|
const policy = await policyOf(input);
|
|
2499
2526
|
if (policy === void 0) return [];
|
|
2500
2527
|
let claims;
|
|
@@ -2507,7 +2534,7 @@ async function pd084(input) {
|
|
|
2507
2534
|
code: "PD084",
|
|
2508
2535
|
severity: "warning",
|
|
2509
2536
|
message,
|
|
2510
|
-
fix: "pass nativeRefresh from permdock/react-native to refreshOn, which refreshes the session and reconnects PowerSync on each authz:<uid> message"
|
|
2537
|
+
fix: "pass nativeRefresh from permdock/react-native to refreshOn, which refreshes the session and reconnects PowerSync on each authz:<uid> message; an app bridge that calls refreshSession() and refreshes PermDock through authzChangeRefresh also clears it"
|
|
2511
2538
|
}));
|
|
2512
2539
|
}
|
|
2513
2540
|
/**
|
|
@@ -3335,6 +3362,7 @@ const LITERAL = String.raw`'((?:[^']|'')*)'`;
|
|
|
3335
3362
|
const SEED_ROW = new RegExp(String.raw`\(\s*${LITERAL}\s*,\s*${LITERAL}\s*,\s*${LITERAL}\s*,\s*${LITERAL}\s*,\s*${LITERAL}\s*\)`, "gu");
|
|
3336
3363
|
const SEED_VIEW = /^create\s+(?:or\s+replace\s+)?view\s+((?:"[^"]+"|\w+)(?:\.(?:"[^"]+"|\w+))?)\s*\([^)]*\)\s*with\s*\([^)]*\)\s*as\s+([\s\S]*)$/iu;
|
|
3337
3364
|
const SEED_FUNCTION = /^create\s+(?:or\s+replace\s+)?function\s+(?:"[^"]+"|\w+)\.(?:"seed"|seed)\s*\(\s*\)[\s\S]*?\$(\w*)\$([\s\S]*)\$\1\$/iu;
|
|
3365
|
+
const BUNDLE_HASH = /\bhash\s*=\s*'(sha-256:[\w-]+)'/u;
|
|
3338
3366
|
function rowKey(values) {
|
|
3339
3367
|
return values.join(" ");
|
|
3340
3368
|
}
|
|
@@ -3357,6 +3385,16 @@ function lastSeed(files, cwd, config, table) {
|
|
|
3357
3385
|
for (const file of sqlFiles$1(cwd, config.doctor?.migrations ?? MIGRATION_DIRS)) for (const { text } of seedStatements(files.read(file))) {
|
|
3358
3386
|
const insert = SEED_INSERT.exec(text) ?? SEED_VIEW.exec(text);
|
|
3359
3387
|
if (insert !== null && tableKey(group(insert, 1)) === table) {
|
|
3388
|
+
const body = group(insert, 2);
|
|
3389
|
+
if (body.includes("permdock_policy_bundle")) {
|
|
3390
|
+
const pinned = BUNDLE_HASH.exec(body);
|
|
3391
|
+
seeded = {
|
|
3392
|
+
file: rel(cwd, file),
|
|
3393
|
+
rows: /* @__PURE__ */ new Set(),
|
|
3394
|
+
bundle: pinned === null ? "" : group(pinned, 1)
|
|
3395
|
+
};
|
|
3396
|
+
continue;
|
|
3397
|
+
}
|
|
3360
3398
|
const rows = /* @__PURE__ */ new Set();
|
|
3361
3399
|
for (const row of group(insert, 2).matchAll(SEED_ROW)) rows.add(rowKey(row.slice(1, 6).map((value) => value.replaceAll("''", "'"))));
|
|
3362
3400
|
seeded = {
|
|
@@ -3405,20 +3443,29 @@ async function pd054(input) {
|
|
|
3405
3443
|
}
|
|
3406
3444
|
};
|
|
3407
3445
|
let expected;
|
|
3446
|
+
let hash;
|
|
3408
3447
|
try {
|
|
3409
3448
|
const options = generateOptions(generate);
|
|
3410
3449
|
const built = isRefusal(options) ? options : buildContext(generate, policy, options);
|
|
3411
3450
|
if (isRefusal(built)) return [];
|
|
3412
|
-
|
|
3451
|
+
const rows = compileGrants(policy, built.ctx, tableNames(rls?.tables), [], true, rls?.rowHelpers !== void 0 || inheritTargets(policy).length > 0).rolePermissions;
|
|
3452
|
+
expected = new Set(rows.map((row) => rowKey([
|
|
3413
3453
|
row.role,
|
|
3414
3454
|
row.permission,
|
|
3415
3455
|
row.grantKey,
|
|
3416
3456
|
row.scope,
|
|
3417
3457
|
row.effect
|
|
3418
3458
|
])));
|
|
3459
|
+
hash = policyBundle(rows).hash;
|
|
3419
3460
|
} catch {
|
|
3420
3461
|
return [];
|
|
3421
3462
|
}
|
|
3463
|
+
if (seeded.bundle !== void 0) return seeded.bundle === hash ? [] : [{
|
|
3464
|
+
code: "PD054",
|
|
3465
|
+
severity: "warning",
|
|
3466
|
+
message: `${seeded.file} pins ${schema}.role_permissions to the policy bundle ${seeded.bundle === "" ? "(none)" : seeded.bundle}, but the policy compiles to ${hash}`,
|
|
3467
|
+
fix: "run permdock rls generate and permdock policy bundle, and apply both"
|
|
3468
|
+
}];
|
|
3422
3469
|
const missing = [...expected].filter((row) => !seeded.rows.has(row));
|
|
3423
3470
|
const stale = [...seeded.rows].filter((row) => !expected.has(row));
|
|
3424
3471
|
if (missing.length === 0 && stale.length === 0) return [];
|
|
@@ -4515,7 +4562,7 @@ const DOCTOR_CHECKS = [
|
|
|
4515
4562
|
{
|
|
4516
4563
|
code: "PD084",
|
|
4517
4564
|
groups: ["powersync", "react-native"],
|
|
4518
|
-
run: pd084
|
|
4565
|
+
run: (project) => pd084(project, project.sources())
|
|
4519
4566
|
},
|
|
4520
4567
|
{
|
|
4521
4568
|
code: "PD102",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as suggestion } from "./args-
|
|
1
|
+
import { a as suggestion } from "./args-Bc0HLiD4.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { n as runGen } from "./gen-
|
|
3
|
+
import { n as runGen } from "./gen-DCmo0Irk.js";
|
|
4
4
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
5
5
|
import { n as packageManagerOf } from "./peer-D77JpXe-.js";
|
|
6
|
-
import { i as readSupabaseConfig } from "./supabase-config-
|
|
6
|
+
import { i as readSupabaseConfig } from "./supabase-config-BrhSp-U7.js";
|
|
7
7
|
import { n as runGenerate } from "./pipeline-CGctXudd.js";
|
|
8
8
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
9
9
|
import { existsSync, readdirSync } from "node:fs";
|
|
@@ -2,7 +2,7 @@ import { d as clientBundle } from "./permdock-BueSeg7X.js";
|
|
|
2
2
|
import { t as loadConfiguredOperations } from "./catalog-operations-dxuOZr4J.js";
|
|
3
3
|
import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { n as fileSummary, r as planFiles } from "./files-DuV7wRim.js";
|
|
5
|
-
import { _ as writeOutputFiles, r as driftOf } from "./output-files-
|
|
5
|
+
import { _ as writeOutputFiles, r as driftOf } from "./output-files-D5D-8-4l.js";
|
|
6
6
|
import { t as pluginVersion } from "./version-CU6e2wxV.js";
|
|
7
7
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
8
8
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
@@ -12,7 +12,7 @@ import { c as listPermissions } from "./permission-registry-DMYRZVcn.js";
|
|
|
12
12
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
13
13
|
import { o as listPlans, s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
14
14
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
15
|
-
import { t as resolveNames } from "./resolve-names-
|
|
15
|
+
import { t as resolveNames } from "./resolve-names-B3PM0l3J.js";
|
|
16
16
|
import { t as DESCRIBE_TITLES } from "./describe-B7EosIKA.js";
|
|
17
17
|
import { i as schemaExpression } from "./generate-5_kz2309.js";
|
|
18
18
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -397,7 +397,7 @@ function modelDigest(model) {
|
|
|
397
397
|
return createHash("sha256").update(canonicalJson(model)).digest("base64url");
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
400
|
-
* `// @generated by permdock generate zod@0.
|
|
400
|
+
* `// @generated by permdock generate zod@0.28.1 from policy.ts sha-256:…; do
|
|
401
401
|
* not edit`.
|
|
402
402
|
*/
|
|
403
403
|
function generatedHeader(kind, info) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as renderKinds } from "./gen-DCmo0Irk.js";
|
|
@@ -47,7 +47,7 @@ function kindPlugin(kind, options = {}) {
|
|
|
47
47
|
}],
|
|
48
48
|
emit: async (_task, model, source) => {
|
|
49
49
|
if (source === void 0) return [];
|
|
50
|
-
const { renderKinds } = await import("./gen-
|
|
50
|
+
const { renderKinds } = await import("./gen-DnaCR5w3.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { c as generateFlags, f as policyFlag, i as dryRunFlag, n as dbUrl, r as dbUrlFlags, t as checkFlag } from "./flags-C0e-BzGW.js";
|
|
4
|
-
import { t as executeGenerate } from "./execute-
|
|
4
|
+
import { t as executeGenerate } from "./execute-CdqPJ6SP.js";
|
|
5
5
|
import { t as receiptRows } from "./pipeline-CGctXudd.js";
|
|
6
6
|
// src/cli/commands/generate.ts
|
|
7
7
|
function concurrencyFlag(value) {
|
|
@@ -24,7 +24,7 @@ const generate = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags);
|
|
25
25
|
const policy = flags.policy !== void 0 && flags.policy !== "" ? flags.policy : ctx.config.policy;
|
|
26
26
|
if (flags.watch) {
|
|
27
|
-
const { watchGenerate } = await import("./watch-
|
|
27
|
+
const { watchGenerate } = await import("./watch-CnRyGEtp.js");
|
|
28
28
|
return watchGenerate(ctx, {
|
|
29
29
|
...policy === void 0 ? {} : { policy },
|
|
30
30
|
only: flags.only,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { c as listPermissions, u as renamedKeys } from "./permission-registry-DMYRZVcn.js";
|
|
2
2
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
3
3
|
import { a as describeError, i as configError, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
4
|
-
import {
|
|
4
|
+
import { $ as graphSql, D as seedSql, N as guardAuthAdminGrants, P as unguardAuthAdminGrants, S as accessSql, T as helpersSql, Y as closureBackfillSql, c as permissionHelpersSql, d as permittedByPermissionHelper, i as tableNames, r as tableNameOf, s as checkName, u as permissionKeysHelper } from "./tables-D-tmMHww.js";
|
|
5
5
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
6
|
-
import { c as indexesSql, i as tableFor, l as pruneIndexTargets, n as compileGrants, r as inferredCommand, s as indexTargets, u as readTableIndexFacts } from "./compile-
|
|
7
|
-
import { a as CANDIDATES, c as rowHelpersSql, d as rebuildPlan, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions, u as DROPPED_LIST } from "./generate-options-
|
|
6
|
+
import { c as indexesSql, i as tableFor, l as pruneIndexTargets, n as compileGrants, r as inferredCommand, s as indexTargets, u as readTableIndexFacts } from "./compile-CT7x66_U.js";
|
|
7
|
+
import { a as CANDIDATES, c as rowHelpersSql, d as rebuildPlan, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions, u as DROPPED_LIST } from "./generate-options-AvKV0IXA.js";
|
|
8
8
|
import { t as policyFromCatalog } from "./policy-from-catalog-YKaTeaco.js";
|
|
9
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
9
|
+
import { t as fetchProjectPolicy } from "./pull-xhMWizWH.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
11
11
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
12
|
-
import { a as nonEmptyOr } from "./output-
|
|
12
|
+
import { a as nonEmptyOr } from "./output-Cqtb8lW_.js";
|
|
13
13
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-C-kThnKN.js";
|
|
14
14
|
import { G as graphHelper, H as byKey, K as graphSqlName, U as BOOTSTRAP_PERMISSIONS, lt as scopeSources, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-CQsgMc1E.js";
|
|
15
15
|
import { a as quoteIdent, c as quoteTable, i as qualified$1, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
16
16
|
import { D as idTypeOf, O as scopeTypeOf, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, o as rootName, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
17
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, h as declarativeSql, p as resolveSchemas, t as grantsLabel, u as approvalsSql } from "./hook-sql-
|
|
18
|
-
import { i as assignmentSql, n as ownershipSql } from "./ownership-
|
|
17
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, h as declarativeSql, p as resolveSchemas, t as grantsLabel, u as approvalsSql } from "./hook-sql-Cunsdk5x.js";
|
|
18
|
+
import { i as assignmentSql, n as ownershipSql } from "./ownership-fYxdtYs0.js";
|
|
19
19
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
20
20
|
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-C7bGZFPa.js";
|
|
21
21
|
import { t as supautilsRejections } from "./supautils-DXzJ2E2Q.js";
|
|
22
22
|
import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, d as assemblePolicies, i as fieldViews, l as actorMayWriteCall, m as readOnlyActorPolicies, n as columnGrantSql, o as rowBranches, p as readOnlyActorKinds, r as columnRevokeSql, u as actorMayWriteSql } from "./fields-6d1j-q3c.js";
|
|
23
23
|
import { l as isFieldRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
24
24
|
import { c as rootScope } from "./scopes-B-KX9EI8.js";
|
|
25
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
26
|
-
import { i as rbacScaffold } from "./rbac-
|
|
25
|
+
import { n as permissionHoldersSql } from "./resolve-names-B3PM0l3J.js";
|
|
26
|
+
import { i as rbacScaffold } from "./rbac-ir19O-e-.js";
|
|
27
27
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
28
|
-
import { _ as writeOutputFiles, a as isSeedsDirectory, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, l as parseSplit, m as seedsMigration, n as dataMigrationFile, p as seedDeltaNote, r as driftOf, u as partPath } from "./output-files-
|
|
29
|
-
import { i as readSupabaseConfig } from "./supabase-config-
|
|
28
|
+
import { _ as writeOutputFiles, a as isSeedsDirectory, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, l as parseSplit, m as seedsMigration, n as dataMigrationFile, p as seedDeltaNote, r as driftOf, u as partPath } from "./output-files-D5D-8-4l.js";
|
|
29
|
+
import { i as readSupabaseConfig } from "./supabase-config-BrhSp-U7.js";
|
|
30
30
|
import { a as splitUndiffed } from "./deciding-columns-BnglEKqU.js";
|
|
31
31
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
32
32
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
@@ -9,18 +9,18 @@ import { d as sqlTextArray, i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
|
9
9
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
|
|
10
10
|
import { l as roleColumn } from "./sources-DnjJPGfb.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
|
-
import { l as parseSplit } from "./output-files-
|
|
12
|
+
import { l as parseSplit } from "./output-files-D5D-8-4l.js";
|
|
13
13
|
import { f as orSql, g as branchClauses } from "./fields-6d1j-q3c.js";
|
|
14
14
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
15
15
|
import { A as tenantTypeOf, C as parseMembershipsFlag, D as idTypeOf, E as firstScopeType, O as scopeTypeOf, a as customRolesOn, l as USER_ID_HELPER, r as HELPERS, s as signedIn, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
16
16
|
import { H as byKey, I as raiseSql, K as graphSqlName, M as currentKeyExpr, R as rolesTableScope, V as byCodeUnit, _ as memoizes, g as memoizedSetofSql, ht as checkSuspension, i as interactiveOnlyKeys, m as memoHitList, o as memoUserSql } from "./interactive-only-CQsgMc1E.js";
|
|
17
|
-
import { A as tokenScopeUnlimitedSql, B as apiKeyUnlimitedSql, E as memoReadsSql, I as API_KEY_ALLOWS, M as memoReadTriggersSql, O as TOKEN_SCOPE_ALLOWS, R as apiKeyClaimSql, V as apiKeysPlan, X as
|
|
18
|
-
import { t as resolveNames } from "./resolve-names-
|
|
17
|
+
import { A as tokenScopeUnlimitedSql, B as apiKeyUnlimitedSql, E as memoReadsSql, I as API_KEY_ALLOWS, M as memoReadTriggersSql, O as TOKEN_SCOPE_ALLOWS, Q as graphPlan, R as apiKeyClaimSql, V as apiKeysPlan, X as closureDepths, Z as graphIdsSql, a as tablelessResources, d as permittedByPermissionHelper, i as tableNames, j as tokenScopesPlan, n as resolveVias, o as PERMISSION_HELPERS, t as checkSharedTables } from "./tables-D-tmMHww.js";
|
|
18
|
+
import { t as resolveNames } from "./resolve-names-B3PM0l3J.js";
|
|
19
19
|
import { a as roleNames, t as assignableRoles } from "./grants-C7bGZFPa.js";
|
|
20
|
-
import { a as resolveAuthorize } from "./rbac-
|
|
21
|
-
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
20
|
+
import { a as resolveAuthorize } from "./rbac-ir19O-e-.js";
|
|
21
|
+
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-fYxdtYs0.js";
|
|
22
22
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
23
|
-
import { i as tableFor } from "./compile-
|
|
23
|
+
import { i as tableFor } from "./compile-CT7x66_U.js";
|
|
24
24
|
// src/cli/rls/custom-role-rebuild.ts
|
|
25
25
|
const PREFIX = "PermDock CLI";
|
|
26
26
|
/** A column of the roles-table row `r`. */
|
|
@@ -12,16 +12,17 @@ import { a as hookApiNames, d as keptKeys, o as junctionMembershipSource, t as A
|
|
|
12
12
|
import { r as REGISTERED_CLAIMS } from "./definition-options-9o8Hdww3.js";
|
|
13
13
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
14
14
|
import { n as GRANTS_MARKER, r as HOOK_MARKER } from "./markers-C-kThnKN.js";
|
|
15
|
+
import "./output-files-D5D-8-4l.js";
|
|
15
16
|
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-6d1j-q3c.js";
|
|
16
17
|
import { a as quoteIdent, c as quoteTable, i as qualified$1, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
17
18
|
import { A as tenantTypeOf, E as firstScopeType, O as scopeTypeOf, a as customRolesOn, j as userTypeOf, k as sqlType, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
18
19
|
import { J as hasMemberFor, Q as isTeamScope, U as BOOTSTRAP_PERMISSIONS, X as hasPermittedUsers, at as memberRoleOf, et as memberForHelper, ht as checkSuspension, i as interactiveOnlyKeys, it as memberOfHelper, j as globalRoleSource, nt as memberForTable, ot as permittedForHelper, pt as activeRowSql, rt as memberIdsHelper, st as permittedIdsHelper, t as INTERACTIVE_ALLOWS, tt as memberForSources } from "./interactive-only-CQsgMc1E.js";
|
|
19
|
-
import { H as HOOK_TEAM_READER, I as API_KEY_ALLOWS, O as TOKEN_SCOPE_ALLOWS, U as hookTeamReader, W as hookTeamsHelper, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP, z as apiKeyFields } from "./tables-
|
|
20
|
-
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-
|
|
21
|
-
import { a as supabaseConfig, t as declarativeSchemaDir } from "./supabase-config-
|
|
22
|
-
import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-
|
|
20
|
+
import { H as HOOK_TEAM_READER, I as API_KEY_ALLOWS, O as TOKEN_SCOPE_ALLOWS, U as hookTeamReader, W as hookTeamsHelper, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP, z as apiKeyFields } from "./tables-D-tmMHww.js";
|
|
21
|
+
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-B3PM0l3J.js";
|
|
22
|
+
import { a as supabaseConfig, t as declarativeSchemaDir } from "./supabase-config-BrhSp-U7.js";
|
|
23
|
+
import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-ir19O-e-.js";
|
|
23
24
|
import { a as splitUndiffed, r as tableKey, t as decidingColumns } from "./deciding-columns-BnglEKqU.js";
|
|
24
|
-
import { a as guardedTables, t as ownershipRules } from "./ownership-
|
|
25
|
+
import { a as guardedTables, t as ownershipRules } from "./ownership-fYxdtYs0.js";
|
|
25
26
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
26
27
|
// src/cli/claims-schema.ts
|
|
27
28
|
/**
|
|
@@ -6,7 +6,7 @@ import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
|
6
6
|
import { n as httpRequest } from "./http-BbX_Ou3_.js";
|
|
7
7
|
import { i as readJsonFile } from "./files-DAR51W3J.js";
|
|
8
8
|
import { i as schemaExpression, t as emitPermissionsModule } from "./generate-5_kz2309.js";
|
|
9
|
-
import { t as validateOpenapi } from "./schema-
|
|
9
|
+
import { t as validateOpenapi } from "./schema-C-Nn6M1P.js";
|
|
10
10
|
import { existsSync, readFileSync } from "node:fs";
|
|
11
11
|
import { resolve } from "node:path";
|
|
12
12
|
// src/cli/openapi/import.ts
|
|
@@ -3,7 +3,7 @@ import { D as Policy, Qn as Decision, _t as TokenSigner, ct as RelationSource, i
|
|
|
3
3
|
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, r as AccessReviewItem, t as AccessReview } from "./types-BFtFaI1W.js";
|
|
4
4
|
import { E as PermissionTree, K as AppData, w as Permission } from "./vocabulary-FYgI_NoI.js";
|
|
5
5
|
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-BdNdMix7.js";
|
|
6
|
-
import { t as JsonSchemaNode } from "./json-schema-
|
|
6
|
+
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
7
7
|
type AccessReviewsHandlerOptions = {
|
|
8
8
|
readonly subject: (request: Request) => Subject | null | undefined | Promise<Subject | null | undefined>;
|
|
9
9
|
/**
|
|
@@ -4,7 +4,7 @@ import { a as PermDock } from "./permdock-Dz3yzWrp.js";
|
|
|
4
4
|
import { o as PolicyDocument } from "./hosted-DUbuh0Td.js";
|
|
5
5
|
import { n as PermDockWrap } from "./wrap-D-KvhzaC.js";
|
|
6
6
|
import { s as VersionCache } from "./subject-cache-BZeSj4Xf.js";
|
|
7
|
-
import { t as JsonSchemaNode } from "./json-schema-
|
|
7
|
+
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
8
8
|
import { i as CatalogEventData, s as CloudEvent } from "./sink-BD34OS8T.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
type KnownRefField = "id" | "issuer" | "kind" | "tenant" | "team" | "roles" | "plans" | "memberships" | "assurance" | "binding" | "session" | "claims";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as PermDock, v as PrincipalSource } from "./permdock-Dz3yzWrp.js";
|
|
2
2
|
import { w as Permission } from "./vocabulary-FYgI_NoI.js";
|
|
3
|
-
import { t as JsonSchemaNode } from "./json-schema-
|
|
3
|
+
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
4
4
|
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-OzSal_K_.js";
|
|
5
5
|
import { D as Policy, N as PolicyVocabulary, Sr as Principal, X as DecisionSink, mn as DeliveryChannel } from "./policy-types-93NwI8iI.js";
|
|
6
6
|
import { t as Operation } from "./operations-BS8ExH5A.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $n as Denial, $t as LocalSnapshotManifest, A as PolicyOAuthScope, An as ApproverInput, Ar as ConditionRef, At as parseSupportSession, B as SupportAccessOptions, Bn as GranteeInput, Br as hasConditionOp, Bt as DecideCredentialOptions, C as GrantValidity, Cr as SharedCustomRole, Ct as WhereCompiler, D as Policy, Dn as ScopeNames, Dr as AdapterId, Dt as SupportSessionPolicy, E as ObligationInput, En as ScopeDeclaration, Er as ActorKind, Et as SupportSessionDecision, F as RoleBinding, Fn as anyOf, Fr as RelatedCondition, Ft as CredentialPermission, G as CredentialVerifier, Gn as assurance, Gt as parseCredential, H as ValidateMode, Hn as RelationGrantee, Hr as isConditionDate, Ht as credentialPolicyViolation, I as RoleOptions, In as holder, Ir as RelatedHop, It as CredentialPermissionInput, J as CustomRoleSourceFactory, Jn as plan, Jt as ClientBundle, K as CustomRoleContext, Kn as authenticated, L as RoleScope, Ln as manager, Lr as RestrictedAncestors, Lt as CredentialPolicy, M as PolicyScopes, Mn as PermissionApprover, Mr as MemberOfCondition, Mt as Credential, Nn as UserApprover, Nr as MemberOfParent, Nt as CredentialDecision, O as PolicyAppDataSchemas, On as AnyOfApprover, Or as MembershipVia, Ot as SupportSessionRequest, P as PrincipalOf, Pn as allOf, Pt as CredentialKind, Q as Intent, Qn as Decision, Qt as LocalRowValue, R as SeparationConflict, Rn as user, Rr as SqlFunctionArg, Rt as CredentialPolicyViolation, S as GrantScope, Sn as WireDenial, Sr as Principal, St as VersionQuery, T as MembershipFixture, Tn as Scope, Tr as VerifiedClaims, Tt as SupportSession, Un as actor, Ur as isConditionRef, Ut as decideCredential, V as SupportConsent, Vn as InheritGrantee, Vr as isCondition, Vt as credentialDelegation, W as WireValidity, Wn as anyone, Wr as isSqlFunctionField, Wt as isFeedId, X as DecisionSink, Xn as AppObligation, Xt as LocalMembershipRows, Y as DecisionProvider, Yn as relation, Yt as LocalCustomRoleTable, Z as EntitlementSource, Zn as ApprovalRequiredDecision, Zt as LocalRowColumn, _ as Grant, _n as DirectoryEvent, _r as CustomRoleGrant, _t as TokenSigner, a as ApprovalMode, an as SnapshotNotEntitled, ar as LimitDetail, at as RelationChain, b as GrantMeta, bn as SinkEvent, bt as VerifiedToken, c as ApprovalStage, cn as SnapshotTenants, cr as Quota, ct as RelationSource, d as BreakGlassRequirements, dn as AutomationEvent, dr as TraceSkipReason, dt as SourceCall, en as LocalSnapshotRows, er as DenialDetails, et as LimitConsumeInput, f as BreakGlassSpec, fn as CredentialEvent, fr as Actor, ft as SourceContext, g as DelegationTarget, gn as DeliveryFailureCause, gr as CustomRole, gt as TokenFailureCause, h as DelegationInput, hn as DeliveryEvent, hr as Binding, ht as TenantSettings, i as ApprovalFallback, in as SnapshotGrantTerms, ir as GrantedDecision, it as MembershipSource, jn as ManagerApprover, jr as ConditionValue, jt as ApiKeyPrincipal, k as PolicyDelegation, kn as Approver, kr as Condition, kt as decideSupportSession, l as AssuranceRequirement, ln as AccessEvent, lr as Trace, lt as SettingsSource, m as ClosureGrantFn, mn as DeliveryChannel, mr as AuthorizationDetail, mt as SubjectResolver, n as ApprovalCombine, nn as SnapshotAssignable, nr as DeniedDecision, nt as LimitStore, o as ApprovalOption, on as SnapshotScope, or as MatchedGrant, ot as RelationGroup, p as ClosureContext, pn as DecisionEvent, pr as Assurance, pt as SourceMemo, q as CustomRoleSource, qn as inherit, r as ApprovalEscalation, rn as SnapshotGrant, rr as ExplainedDecision, rt as MemberEntry, s as ApprovalRequirement, sn as SnapshotStatic, sr as Obligation, st as RelationHolder, t as ActivationOption, tn as Snapshot, tr as DenialReason, tt as LimitRemaining, u as BreakGlassOptions, un as AuthEvent, ur as TraceSkip, ut as SnapshotSource, v as GrantCondition, vn as EmailCategory, vr as Delegation, vt as TokenVerifier, w as HostedGrantRef, wn as PolicyScopesInput, wr as Subject, wt as DecideSupportSessionOptions, x as GrantOptions, xn as WireDecision, xr as Membership, xt as VersionContext, y as GrantLimit, yn as MembershipEvent, yr as GnapAccess, yt as VerificationFailure, z as SubjectOf, zn as Grantee, zr as SqlFunctionCondition, zt as CredentialRequest } from "./policy-types-93NwI8iI.js";
|
|
2
2
|
import { A as ResourceInit, B as ResourceXTree, D as PermissionsOf, E as PermissionTree, F as ResourceOptions, G as RESOURCE_X, H as PERMISSION_ROW, I as ResourceParent, J as MetaValue, K as AppData, L as ResourceRelation, M as ResourceLink, N as ResourceMeta, O as PermissionsOptions, P as ResourceNode, R as ResourceRelationInput, S as FieldRelation, T as PermissionKind, U as POLICY_SCOPES, V as RowOf, W as RESOURCE_NAME, _ as ComputedRelation, a as RoleTree, b as EdgeMatch, c as definePlans, d as isPlan, f as isRole, g as ActionMeta, i as RoleMeta, j as ResourceLevel, k as PrincipalRelation, l as defineRoles, m as listRoles, n as PlanTree, o as Vocabulary, p as listPlans, q as AppDataSchema, r as Role, s as VocabularyOptions, t as Plan, u as findRole, v as EdgeGroup, w as Permission, x as EdgeRelation, y as EdgeGroups, z as ResourceRestricted } from "./vocabulary-FYgI_NoI.js";
|
|
3
|
-
import { $ as resource, $t as findPermission, A as RoleChangeCheckInput, At as HoldingVia, B as ActivateInput, Bt as countHolders, C as parseCatalogEventData, Cn as claim, 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 opaque, R as normalizeMemberships, Rt as claimsFirst, S as SINK_EVENT_SCHEMAS, Sn as validateCustomRole, St as SignSnapshotOptions, T as parseCloudEventBatch, Tn as principal, 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 accessOutcome, Y as crud, Yt as AccessOutcome, Z as writable, Zt as sqlFunction, _ as DECISION_EVENT_SCHEMA, _n as ResolvedCustomRole, _t as ArazzoSimulateInput, a as catalogFingerprint, an as definePolicy, at as CustomRoleReader, b as EVENT_SCHEMA_IDS, bn as parseCustomRoleEntry, bt as simulateArazzo, c as OCSF_VERSION, cn as requiresApproval, ct as mayAccess, d as accessToOcsf, dn as parseSnapshot, dt as ShadowOptions, en as getResource, et as definePermissions, f as toOcsf, fn as CustomRoleDrop, ft as shadowMode, g as CREDENTIAL_EVENT_SCHEMA, gn as CustomRoleValidation, gt as ArazzoPlan, h as CATALOG_EVENT_SCHEMA, hn as CustomRoleRename, ht as ArazzoFinding, i as canonicalJson, in as RoleNameOf, it as assignableFor, j as RoleChangeDecision, jt as WhoCan, k as RoleChangeCheck, kt as Holder, l as OcsfAuthorizeSession, ln as fromSnapshot, lt as LegacyCheck, m as AUTOMATION_EVENT_SCHEMA, mn as CustomRoleEntry, mt as clientBundle, n as delegatedPermissions, nn as listPermissions, nt as snapshotFor, o as CSV_COLUMNS, on as isRoleName, ot as CustomRoleSourceOptions, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleDropReason, pt as localSnapshotManifest, q as normalizeAssurance, qt as memorySnapshotSource, r as sha256Digest, rn as mergePermissions, rt as AssignableForOptions, s as toCsvRow, sn as separationConflicts, st as customRoleSource, t as coveredByDelegation, tn as isPermission, tt as SnapshotForOptions, u as OcsfUserManagement, un as emptySnapshot, ut as ShadowMismatch, v as DELIVERY_EVENT_SCHEMA, vn as ValidateCustomRoleOptions, vt as ArazzoStepResult, w as parseCloudEvent, wn as context, wt as signSnapshot, x as MEMBERSHIP_EVENT_SCHEMA, xn as resolveCustomRole, xt as deliveryEvent, y as DIRECTORY_EVENT_SCHEMA, yn as customRoleClaim, yt as arazzoFindings, z as resolveScope, zt as composeMemberships } from "./index-
|
|
3
|
+
import { $ as resource, $t as findPermission, A as RoleChangeCheckInput, At as HoldingVia, B as ActivateInput, Bt as countHolders, C as parseCatalogEventData, Cn as claim, 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 opaque, R as normalizeMemberships, Rt as claimsFirst, S as SINK_EVENT_SCHEMAS, Sn as validateCustomRole, St as SignSnapshotOptions, T as parseCloudEventBatch, Tn as principal, 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 accessOutcome, Y as crud, Yt as AccessOutcome, Z as writable, Zt as sqlFunction, _ as DECISION_EVENT_SCHEMA, _n as ResolvedCustomRole, _t as ArazzoSimulateInput, a as catalogFingerprint, an as definePolicy, at as CustomRoleReader, b as EVENT_SCHEMA_IDS, bn as parseCustomRoleEntry, bt as simulateArazzo, c as OCSF_VERSION, cn as requiresApproval, ct as mayAccess, d as accessToOcsf, dn as parseSnapshot, dt as ShadowOptions, en as getResource, et as definePermissions, f as toOcsf, fn as CustomRoleDrop, ft as shadowMode, g as CREDENTIAL_EVENT_SCHEMA, gn as CustomRoleValidation, gt as ArazzoPlan, h as CATALOG_EVENT_SCHEMA, hn as CustomRoleRename, ht as ArazzoFinding, i as canonicalJson, in as RoleNameOf, it as assignableFor, j as RoleChangeDecision, jt as WhoCan, k as RoleChangeCheck, kt as Holder, l as OcsfAuthorizeSession, ln as fromSnapshot, lt as LegacyCheck, m as AUTOMATION_EVENT_SCHEMA, mn as CustomRoleEntry, mt as clientBundle, n as delegatedPermissions, nn as listPermissions, nt as snapshotFor, o as CSV_COLUMNS, on as isRoleName, ot as CustomRoleSourceOptions, p as ACCESS_EVENT_SCHEMA, pn as CustomRoleDropReason, pt as localSnapshotManifest, q as normalizeAssurance, qt as memorySnapshotSource, r as sha256Digest, rn as mergePermissions, rt as AssignableForOptions, s as toCsvRow, sn as separationConflicts, st as customRoleSource, t as coveredByDelegation, tn as isPermission, tt as SnapshotForOptions, u as OcsfUserManagement, un as emptySnapshot, ut as ShadowMismatch, v as DELIVERY_EVENT_SCHEMA, vn as ValidateCustomRoleOptions, vt as ArazzoStepResult, w as parseCloudEvent, wn as context, wt as signSnapshot, x as MEMBERSHIP_EVENT_SCHEMA, xn as resolveCustomRole, xt as deliveryEvent, y as DIRECTORY_EVENT_SCHEMA, yn as customRoleClaim, yt as arazzoFindings, z as resolveScope, zt as composeMemberships } from "./index-D1msamx_.js";
|
|
4
4
|
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-BS8ExH5A.js";
|
|
5
5
|
import { A as InstanceCacheStats, B as ApprovalPolicyValidation, C as Limits, D as InstanceCache, E as CustomRoleOwner, F as PermissionState, H as memoryApprovalPolicySource, I as ApprovalPolicies, L as ApprovalPolicy, M as GrantedPermissionsOptions, N as isGlobalPermission, O as InstanceCacheKey, P as PermissionCheck, R as ApprovalPolicyProblem, S as PermittedScopeIdsOptions, T as memoryLimitStore, U as validateApprovalPolicy, V as approvalPolicies, _ as PrincipalIdentityLink, a as PermDock, b as MembershipFilter, c as RowPair, d as UncheckedData, f as WhereOptions, g as PrincipalIdentity, h as getPermDockSync, i as LoadedRows, j as instanceCache, k as InstanceCacheOptions, l as SimulateOptions, m as getPermDock, n as DecideOptions, o as PermDockOptions, p as WhereResult, r as DeriveOptions, s as RowData, t as DecideIdsOptions, u as SnapshotOptions, v as PrincipalSource, w as limits, x as PermittedIdsOptions, y as memoryPrincipalSource, z as ApprovalPolicySource } from "./permdock-Dz3yzWrp.js";
|
|
6
6
|
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-DUbuh0Td.js";
|
|
@@ -10,7 +10,7 @@ import { t as InstanceOptions } from "./instance-options-B4MD2wgl.js";
|
|
|
10
10
|
import { t as RequestContext } from "./request-context-E3-ps-H_.js";
|
|
11
11
|
import { n as PermDockWrap, r as wrapPermDock, t as PermDockOverrides } from "./wrap-D-KvhzaC.js";
|
|
12
12
|
import { c as VersionCacheStats, i as memorySubjectCache, l as VersionStore, n as SubjectCache, o as MemoryVersionCacheOptions, r as SubjectRecord, s as VersionCache, t as MemorySubjectCacheOptions, u as memoryVersionCache } from "./subject-cache-BZeSj4Xf.js";
|
|
13
|
-
import { t as JsonSchemaNode } from "./json-schema-
|
|
13
|
+
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
14
14
|
import { t as approvalFingerprint } from "./token-BgswTQzt.js";
|
|
15
15
|
import { i as memoryRevocationFeed, n as RevocationFeed, r as RevocationListener, t as RevocationEvent } from "./revocations-ku_f2d2y.js";
|
|
16
16
|
import { t as ClientNames } from "./clients-DGcyFDCc.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-Cix9Zjis.js";
|
|
2
2
|
import { a as deny, m as opaque, n as role, r as allow, t as normalizeAssurance } from "./role-builder-DhsGEVq-.js";
|
|
3
|
-
import { A as memorySnapshotSource, D as memoryEntitlementSource, E as memoryCustomRoleSource, M as accessOutcome, N as sqlFunction, O as memoryMembershipSource, S as approvalPolicies, T as validateApprovalPolicy, _ as arazzoFindings, a as normalizeMembership, b as memoryRelationSource, c as crud, d as snapshotFor, f as assignableFor, g as localSnapshotManifest, h as shadowMode, i as decideRoleChange, j as subjectMembershipSource, k as memorySettingsSource, l as readable, m as mayAccess, n as toCsvRow, o as normalizeMemberships, p as customRoleSource, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as simulateArazzo, w as memoryApprovalPolicySource, x as stripeEntitlementSource, y as signPolicyDocument } from "./src-
|
|
3
|
+
import { A as memorySnapshotSource, D as memoryEntitlementSource, E as memoryCustomRoleSource, M as accessOutcome, N as sqlFunction, O as memoryMembershipSource, S as approvalPolicies, T as validateApprovalPolicy, _ as arazzoFindings, a as normalizeMembership, b as memoryRelationSource, c as crud, d as snapshotFor, f as assignableFor, g as localSnapshotManifest, h as shadowMode, i as decideRoleChange, j as subjectMembershipSource, k as memorySettingsSource, l as readable, m as mayAccess, n as toCsvRow, o as normalizeMemberships, p as customRoleSource, r as checkRoleChange, s as resolveScope, t as CSV_COLUMNS, u as writable, v as simulateArazzo, w as memoryApprovalPolicySource, x as stripeEntitlementSource, y as signPolicyDocument } from "./src-BAYcigFU.js";
|
|
4
4
|
import { d as manager, f as user, n as anyOf, o as holder, t as allOf } from "./approvers-BkY_ZfWl.js";
|
|
5
5
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
6
6
|
import { r as requiredPlans } from "./problem-details-EJHcvYCz.js";
|
|
@@ -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-erhwH2o6.js"), import("./peer-BWTpSLs2.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-erhwH2o6.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-erhwH2o6.js");
|
|
91
91
|
return runPreset("url", args["code"] ?? "");
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-BcFDaeqd.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-Cqtb8lW_.js";
|
|
5
5
|
import { t as addLine } from "./peer-D77JpXe-.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockProviderProps } from "./types-
|
|
1
|
+
import { n as PermDockProviderProps } from "./types-PS10T9UK.js";
|
|
2
2
|
import { ReactElement } from "react";
|
|
3
3
|
declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
|
|
4
4
|
export { PermDockProvider as t };
|
|
@@ -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-OBqLmoA2.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-OBqLmoA2.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-OBqLmoA2.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|
|
@@ -3,7 +3,7 @@ import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-f3J
|
|
|
3
3
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-BhGDhsXm.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { n as httpRequest } from "./http-BbX_Ou3_.js";
|
|
6
|
-
import { a as nonEmptyOr } from "./output-
|
|
6
|
+
import { a as nonEmptyOr } from "./output-Cqtb8lW_.js";
|
|
7
7
|
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-WHKYWtnS.js";
|
|
8
8
|
import { n as randomToken, t as pkce } from "./pkce-DdsRBK7n.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|