permdock 0.28.1 → 0.29.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/{adoption-scan-6eUACbvC.js → adoption-scan-obbSy73c.js} +1 -1
- package/dist/{arazzo-DSzOxgr1.js → arazzo-D9Fv_ZEV.js} +1 -1
- package/dist/{arazzo-Du3koIf5.js → arazzo-rxj2pNN3.js} +1 -1
- package/dist/better-supabase/index.d.ts +7 -0
- package/dist/better-supabase/index.js +2 -2
- package/dist/{casbin-CW2uo-Jt.js → casbin-D3PH6-AJ.js} +1 -1
- package/dist/{casbin-B5UnU9nM.js → casbin-p8yi9Py5.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-DhpR9oxl.js → cloud-DnTSKTYr.js} +2 -2
- package/dist/{codemod-BRY1780A.js → codemod-C4xmPHZU.js} +1 -1
- package/dist/{codemod-DEsebwQn.js → codemod-DwJ1I9er.js} +2 -2
- package/dist/{compile-CT7x66_U.js → compile-B9SZiEnG.js} +6 -6
- package/dist/{completion-CW1poYOM.js → completion-CHOgUToS.js} +1 -1
- package/dist/{conditions-VlAMOm20.js → conditions-ChE7zxJI.js} +2 -2
- package/dist/{config-DP7Stalz.js → config-StFKj2S0.js} +1 -1
- package/dist/{config-report-CnuPIG_V.js → config-report-DFj3emJp.js} +1 -1
- package/dist/{doctor-CkaAS-Uk.js → doctor-BSYAl2XG.js} +20 -20
- package/dist/{doctor-B3rZsURs.js → doctor-CjCJ_U2a.js} +2 -2
- package/dist/{execute-CdqPJ6SP.js → execute-BzQKrYqL.js} +3 -3
- package/dist/{fields-6d1j-q3c.js → fields-CViS0EPC.js} +1 -1
- package/dist/{gen-DCmo0Irk.js → gen-BVDN_Hqx.js} +2 -2
- package/dist/gen-D13YdBQP.js +1 -0
- package/dist/{gen-kind-10IxFLdl.js → gen-kind-BK6bb0gj.js} +1 -1
- package/dist/{generate-CYUj-cvA.js → generate-DNAoLMj1.js} +14 -14
- package/dist/{generate-options-AvKV0IXA.js → generate-options-Yfh1pGyX.js} +9 -9
- package/dist/{generate-BuNebxmi.js → generate-p7cdH1ac.js} +3 -3
- package/dist/{grants-C7bGZFPa.js → grants-Dn6zwfqo.js} +1 -1
- package/dist/{hook-sql-Cunsdk5x.js → hook-sql-55514A9t.js} +13 -11
- package/dist/{import-CDCWY5Ou.js → import-B0nUIp2b.js} +1 -1
- package/dist/{import-BqoDHpFt.js → import-Cm8kuezl.js} +2 -2
- package/dist/{init-QA12XZy5.js → init-CjlVWrBE.js} +3 -3
- package/dist/{init-erhwH2o6.js → init-Ck4PIu9F.js} +1 -1
- package/dist/{interactive-only-CQsgMc1E.js → interactive-only-C_olBCPl.js} +28 -2
- package/dist/{login-OBqLmoA2.js → login-BdWIAsFT.js} +1 -1
- package/dist/{login-BJmDn5p2.js → login-BhSLL8Pn.js} +3 -3
- package/dist/{manifest-BY70KZmp.js → manifest-CXK3krNu.js} +30 -30
- package/dist/{manifest-B-8d2lhG.js → manifest-Ct3eXbLR.js} +1 -1
- package/dist/{manifest-schema-DJY5Q_pR.js → manifest-schema-Bp-eFhNZ.js} +1 -1
- package/dist/{migrate-BwXtXUtE.js → migrate-BcBFWFt9.js} +1 -1
- package/dist/{model-BkQLENu6.js → model-B0rrUh6J.js} +1 -1
- package/dist/{openapi-DmEgZ9X8.js → openapi-D595qUYF.js} +1 -1
- package/dist/{openapi-B9Lpb4Px.js → openapi-E2411VYb.js} +1 -1
- package/dist/{openapi-document-BJDwMJRO.js → openapi-document-DDzA3CrT.js} +1 -1
- package/dist/{output-Cqtb8lW_.js → output-BhNN-hvv.js} +1 -1
- package/dist/{ownership-fYxdtYs0.js → ownership-mprXkEHG.js} +3 -3
- package/dist/{pipeline-CGctXudd.js → pipeline-Ct3YEKjx.js} +1 -1
- package/dist/{policy-gS3zexF5.js → policy-DfvOwgtX.js} +1 -1
- package/dist/{policy-bundle-AFVba7nt.js → policy-bundle-pwhJJv2-.js} +3 -3
- package/dist/{powersync-TraBGEw2.js → powersync-BdqLK59r.js} +1 -1
- package/dist/{powersync-WvWQh2kU.js → powersync-CMu40wtz.js} +1 -1
- package/dist/{powersync-d4eoYO3I.js → powersync-Da9op2Zo.js} +7 -7
- package/dist/{provider-BnnFjtWI.js → provider-1yWthvi5.js} +14 -4
- package/dist/{pull-xhMWizWH.js → pull-AXzbc_kg.js} +2 -2
- package/dist/pull-B0ju22jJ.js +1 -0
- package/dist/{push-DXh936bz.js → push-N-QI_ArC.js} +1 -1
- package/dist/{rbac-ir19O-e-.js → rbac-BJTUGJum.js} +1 -1
- package/dist/{resolve-names-B3PM0l3J.js → resolve-names-B0cqvJxo.js} +4 -4
- package/dist/{rls-DEPAx9uQ.js → rls-BC1IFnfu.js} +1 -1
- package/dist/{rls-CYbk1UmD.js → rls-DfzVlo1q.js} +9 -9
- package/dist/{rls-files-CxdOxMKl.js → rls-files-BpMqBdji.js} +1 -1
- package/dist/{run-CI5opYjC.js → run-CqAur1Y3.js} +2 -2
- package/dist/run-X_cWRiUV.js +1 -0
- package/dist/{scan-BrILYXP9.js → scan-C_YtxPxn.js} +1 -1
- package/dist/{schema-C-Nn6M1P.js → schema-BVhiZyY-.js} +1 -1
- package/dist/{shared-BdF5DJDQ.js → shared-Cwxy5N16.js} +2 -1
- package/dist/{skills-C2SqRGXy.js → skills-CQ3B9vuz.js} +1 -1
- package/dist/{skills-Cuf4gcfr.js → skills-DBvXLSo7.js} +1 -1
- package/dist/supabase/index.js +1 -1
- package/dist/{supabase-V_yr_spa.js → supabase-CakrAxMg.js} +1 -1
- package/dist/{supabase-config-BrhSp-U7.js → supabase-config-B2sDFiwy.js} +1 -1
- package/dist/{supabase-hook-C7v1wRUV.js → supabase-hook-0q6ohTVN.js} +3 -3
- package/dist/supabase-hook-CcmjiBsh.js +2 -0
- package/dist/{tables-D-tmMHww.js → tables-BDqfipr1.js} +2 -2
- package/dist/testing/fixtures/index.js +7 -1
- package/dist/testing/index.js +1 -1
- package/dist/usage-Cayjfw1S.js +1 -0
- package/dist/{usage-XS56d_Kx.js → usage-CnCNB6XN.js} +2 -2
- package/dist/{usage-Bh-VP8co.js → usage-Dodo7Sjb.js} +1 -1
- package/dist/{verify-aCeiREkh.js → verify-DTlATzWK.js} +5 -5
- package/dist/{watch-CnRyGEtp.js → watch-Bz_iEKlB.js} +1 -1
- package/package.json +1 -1
- package/schemas/supabase-manifest-v1.json +1 -1
- package/skills/permdock-wire/references/adapters.md +1 -1
- package/dist/gen-DnaCR5w3.js +0 -1
- package/dist/pull-Bn9a5g9Q.js +0 -1
- package/dist/run-BtTQlk1R.js +0 -1
- package/dist/supabase-hook-BJImmLmb.js +0 -2
- package/dist/usage-DpmLPRRx.js +0 -1
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-rxj2pNN3.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as arazzoFindings } from "./src-BAYcigFU.js";
|
|
2
2
|
import { d as missingInput } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
3
|
+
import { t as DOCS_BASE } from "./manifest-CXK3krNu.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
5
5
|
import { i as readJsonFile } from "./files-DAR51W3J.js";
|
|
6
6
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
|
@@ -719,6 +719,13 @@ type AuthorizationProviderOptions<P = undefined> = {
|
|
|
719
719
|
* the rows the caller holds a permission on.
|
|
720
720
|
*/
|
|
721
721
|
readonly rowHelpers?: boolean;
|
|
722
|
+
/**
|
|
723
|
+
* Fill better-supabase's `roleIn` with `permdock_role_in`, which the manifest
|
|
724
|
+
* lists with `rls.customRoles` in `database` mode, so the `membership_roles`
|
|
725
|
+
* trigger refuses another tenant's custom role. Needs better-supabase 0.77.0;
|
|
726
|
+
* an older release refuses the template.
|
|
727
|
+
*/
|
|
728
|
+
readonly roleIn?: boolean;
|
|
722
729
|
/**
|
|
723
730
|
* Users better-supabase's access matrix signs in as, one pgTAP file each
|
|
724
731
|
* (`providerPersonaTests`). `setup` creates the memberships and roles with
|
|
@@ -18,13 +18,13 @@ import { i as snapshotTag } from "../snapshot-cache-DTTEfmxv.js";
|
|
|
18
18
|
import { r as isSubject, t as anonymousSubject } from "../subject-DkxY-AhF.js";
|
|
19
19
|
import { r as credentialSubject, s as parseCredential } from "../credential-ke0KMQeB.js";
|
|
20
20
|
import { s as subjectFromSupabaseSession, t as SUPABASE_OPTIONS } from "../definition-options-9o8Hdww3.js";
|
|
21
|
-
import { n as parseSupabaseManifest } from "../manifest-
|
|
21
|
+
import { n as parseSupabaseManifest } from "../manifest-Ct3eXbLR.js";
|
|
22
22
|
import { t as loadPrincipal } from "../principal-source-BIcukkB3.js";
|
|
23
23
|
import { n as subscribersFor } from "../audience-DauhRBNg.js";
|
|
24
24
|
import { t as canonicalJson } from "../canonical-json-BibZkXtE.js";
|
|
25
25
|
import { r as sha256Digest } from "../sha256-DFsnyVPo.js";
|
|
26
26
|
import { t as decideSupportSession } from "../support-session-B8xrW28B.js";
|
|
27
|
-
import { t as authorizationProvider } from "../provider-
|
|
27
|
+
import { t as authorizationProvider } from "../provider-1yWthvi5.js";
|
|
28
28
|
import { n as parseApprovalHeader } from "../approval-header-BvszJE3l.js";
|
|
29
29
|
import { i as qualifySqlTable, l as sqlIdent } from "../sql-T4GaBh9X.js";
|
|
30
30
|
import { o as junctionMembershipSource } from "../sources-DnjJPGfb.js";
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-p8yi9Py5.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { a as nonEmptyOr } from "./output-
|
|
2
|
+
import { a as nonEmptyOr } from "./output-BhNN-hvv.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-Bp4HvsRg.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-hbYumkRp.js"),
|
|
13
13
|
import("../signals-a1NxAP0X.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-X_cWRiUV.js"),
|
|
15
15
|
import("../style-Crf-90o6.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "../../compact-C4LFuqbW.js";
|
|
2
2
|
import { a as describeError } from "../../errors-DgLOqc6j.js";
|
|
3
3
|
import { i as readConfig } from "../../config-iyy90IOU.js";
|
|
4
|
-
import { t as executeGenerate } from "../../execute-
|
|
4
|
+
import { t as executeGenerate } from "../../execute-BzQKrYqL.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
// src/cli/generate/watch-worker.ts
|
package/dist/cli/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
|
|
|
2
2
|
import { t as defineConfig } from "../config-iyy90IOU.js";
|
|
3
3
|
import { t as definePlugin } from "../plugin-MQVfUBUS.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-C-kThnKN.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
5
|
+
import { t as run } from "../run-CqAur1Y3.js";
|
|
6
6
|
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-rpB6k77P.js";
|
|
7
7
|
// src/cli/token-schemas.ts
|
|
8
8
|
const ID = {
|
package/dist/cli/plugins/app.js
CHANGED
|
@@ -32,7 +32,7 @@ function openapi(options = {}) {
|
|
|
32
32
|
return operationsFile(source.cwd, options.routes, task.out);
|
|
33
33
|
}
|
|
34
34
|
if (options.doc === void 0) return [];
|
|
35
|
-
const { openapiDocument } = await import("../../openapi-document-
|
|
35
|
+
const { openapiDocument } = await import("../../openapi-document-DDzA3CrT.js");
|
|
36
36
|
return openapiDocument(task, options, source);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -18,7 +18,7 @@ function powersync(options = {}) {
|
|
|
18
18
|
}],
|
|
19
19
|
emit: async (task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { powersyncFiles } = await import("../../powersync-
|
|
21
|
+
const { powersyncFiles } = await import("../../powersync-CMu40wtz.js");
|
|
22
22
|
return powersyncFiles(source.policy, source.config, task.out).files.map((file) => ({
|
|
23
23
|
path: file.path,
|
|
24
24
|
contents: file.text
|
package/dist/cli/plugins/rls.js
CHANGED
|
@@ -19,7 +19,7 @@ function rls(options = {}) {
|
|
|
19
19
|
}],
|
|
20
20
|
config: (config) => withRlsOutputs(config, options),
|
|
21
21
|
emit: async (task, _model, source) => {
|
|
22
|
-
const { filesForRls } = await import("../../rls-files-
|
|
22
|
+
const { filesForRls } = await import("../../rls-files-BpMqBdji.js");
|
|
23
23
|
return filesForRls(task, options, source);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -18,7 +18,7 @@ function supabaseHook(options = {}) {
|
|
|
18
18
|
config: (config) => withHookOut(config, options.out),
|
|
19
19
|
emit: async (_task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
21
|
+
const { runSupabase } = await import("../../supabase-hook-CcmjiBsh.js");
|
|
22
22
|
const outcome = await runSupabase({
|
|
23
23
|
cwd: source.cwd,
|
|
24
24
|
config: source.config,
|
|
@@ -37,14 +37,14 @@ function supabase(options = {}) {
|
|
|
37
37
|
config: (config) => withHookOut(withRlsOutputs(config, options), hookOut),
|
|
38
38
|
emit: async (task, _model, source) => {
|
|
39
39
|
if (task.id === "sql") {
|
|
40
|
-
const { filesForRls } = await import("../../rls-files-
|
|
40
|
+
const { filesForRls } = await import("../../rls-files-BpMqBdji.js");
|
|
41
41
|
return filesForRls(task, {
|
|
42
42
|
...rlsOptions,
|
|
43
43
|
dialect: "supabase"
|
|
44
44
|
}, source);
|
|
45
45
|
}
|
|
46
46
|
if (source === void 0) return [];
|
|
47
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
47
|
+
const { runSupabase } = await import("../../supabase-hook-CcmjiBsh.js");
|
|
48
48
|
const hookOptions = hook === false || hook === void 0 ? {} : hook;
|
|
49
49
|
const outcome = await runSupabase({
|
|
50
50
|
cwd: source.cwd,
|
package/dist/cli/plugins/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as kindPlugin } from "../../gen-kind-
|
|
1
|
+
import { t as kindPlugin } from "../../gen-kind-BK6bb0gj.js";
|
|
2
2
|
// src/cli/plugins/ui.ts
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
function reactHooks(options = {}) {
|
|
@@ -41,7 +41,7 @@ const push = defineLeaf({
|
|
|
41
41
|
},
|
|
42
42
|
async run(ctx, { flags }) {
|
|
43
43
|
const env = await withStdinSecret(ctx, "key", flags["key-stdin"], "PERMDOCK_CLOUD_KEY");
|
|
44
|
-
return (await import("./push-
|
|
44
|
+
return (await import("./push-N-QI_ArC.js")).runCloud({
|
|
45
45
|
cwd: ctx.cwd,
|
|
46
46
|
config: ctx.config,
|
|
47
47
|
url: given(flags.url),
|
|
@@ -70,7 +70,7 @@ const pull = defineLeaf({
|
|
|
70
70
|
},
|
|
71
71
|
async run(ctx, { flags }) {
|
|
72
72
|
const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
|
|
73
|
-
return (await import("./pull-
|
|
73
|
+
return (await import("./pull-B0ju22jJ.js")).runCloudPull({
|
|
74
74
|
cwd: ctx.cwd,
|
|
75
75
|
config: ctx.config,
|
|
76
76
|
url: given(flags.url),
|
|
@@ -5,7 +5,7 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
|
5
5
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
6
6
|
import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
|
|
7
7
|
import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-C0e-BzGW.js";
|
|
8
|
-
import { n as ROOT } from "./manifest-
|
|
8
|
+
import { n as ROOT } from "./manifest-CXK3krNu.js";
|
|
9
9
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
10
10
|
import { n as defaultSqlCommand } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
|
|
|
7
7
|
description: "The release to migrate to (0.5)",
|
|
8
8
|
required: true,
|
|
9
9
|
async complete() {
|
|
10
|
-
return (await import("./codemod-
|
|
10
|
+
return (await import("./codemod-C4xmPHZU.js")).codemodVersions();
|
|
11
11
|
}
|
|
12
12
|
}, {
|
|
13
13
|
name: "paths",
|
|
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
async run(ctx, { flags, args, rest }) {
|
|
25
|
-
return (await import("./codemod-
|
|
25
|
+
return (await import("./codemod-C4xmPHZU.js")).runCodemod({
|
|
26
26
|
cwd: ctx.cwd,
|
|
27
27
|
version: args["version"],
|
|
28
28
|
paths: rest,
|
|
@@ -11,14 +11,14 @@ import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
|
11
11
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
12
12
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
13
13
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
14
|
-
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-
|
|
14
|
+
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-BDqfipr1.js";
|
|
15
15
|
import { t as connectPgPool } from "./pg-CA651850.js";
|
|
16
|
-
import { n as interactiveAllowsCall, ut as scopeTable } from "./interactive-only-
|
|
16
|
+
import { n as interactiveAllowsCall, ut as scopeTable } from "./interactive-only-C_olBCPl.js";
|
|
17
17
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-BKrTBbcH.js";
|
|
18
|
-
import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-
|
|
19
|
-
import { T as columnTypesOf, _ as subjectClaimJsonSql, v as subjectClaimSql, w as arrayColumnsOf } from "./shared-
|
|
20
|
-
import { i as sqlFunctionNames, n as compileConditionSql, r as contextRefs } from "./conditions-
|
|
21
|
-
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-
|
|
18
|
+
import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-CViS0EPC.js";
|
|
19
|
+
import { T as columnTypesOf, _ as subjectClaimJsonSql, v as subjectClaimSql, w as arrayColumnsOf } from "./shared-Cwxy5N16.js";
|
|
20
|
+
import { i as sqlFunctionNames, n as compileConditionSql, r as contextRefs } from "./conditions-ChE7zxJI.js";
|
|
21
|
+
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-Dn6zwfqo.js";
|
|
22
22
|
import { createHash } from "node:crypto";
|
|
23
23
|
// src/cli/rls/indexes.ts
|
|
24
24
|
/** Postgres truncates identifiers longer than this, in bytes. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as suggestion, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
|
|
2
2
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
3
|
-
import { a as resolve } from "./manifest-
|
|
3
|
+
import { a as resolve } from "./manifest-CXK3krNu.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
// src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -7,8 +7,8 @@ import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
|
7
7
|
import { u as isoAt } from "./time-r0CKBm57.js";
|
|
8
8
|
import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
|
|
9
9
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
10
|
-
import { $ as linkHelper, G as graphHelper, W as CLOSURE, Z as inheritedRowsHelper, _ as memoizes, at as memberRoleOf, ct as restrictedHelper, dt as activeInstancesSql, ft as activeMembershipSql, lt as scopeSources, m as memoHitList, mt as activeUserSql, o as memoUserSql, q as graphSqlText, rt as memberIdsHelper, ut as scopeTable } from "./interactive-only-
|
|
11
|
-
import { D as idTypeOf, S as CLAIM, _ as subjectClaimJsonSql, b as tenantClaimSql, d as keyTenantSql, f as kindFilterSql, h as roleKindSql, k as sqlType, m as memberVia, p as liveSessionSql, v as subjectClaimSql, y as subjectIdSql } from "./shared-
|
|
10
|
+
import { $ as linkHelper, G as graphHelper, W as CLOSURE, Z as inheritedRowsHelper, _ as memoizes, at as memberRoleOf, ct as restrictedHelper, dt as activeInstancesSql, ft as activeMembershipSql, lt as scopeSources, m as memoHitList, mt as activeUserSql, o as memoUserSql, q as graphSqlText, rt as memberIdsHelper, ut as scopeTable } from "./interactive-only-C_olBCPl.js";
|
|
11
|
+
import { D as idTypeOf, S as CLAIM, _ as subjectClaimJsonSql, b as tenantClaimSql, d as keyTenantSql, f as kindFilterSql, h as roleKindSql, k as sqlType, m as memberVia, p as liveSessionSql, v as subjectClaimSql, y as subjectIdSql } from "./shared-Cwxy5N16.js";
|
|
12
12
|
import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema } from "./quote-BKrTBbcH.js";
|
|
13
13
|
// src/cli/sql/conditions.ts
|
|
14
14
|
const MAX_CLAIM_DEPTH = 8;
|
|
@@ -10,7 +10,7 @@ const config = defineLeaf({
|
|
|
10
10
|
...failOnFlag
|
|
11
11
|
},
|
|
12
12
|
async run(ctx, { flags }) {
|
|
13
|
-
const { runConfig } = await import("./config-report-
|
|
13
|
+
const { runConfig } = await import("./config-report-DFj3emJp.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sources-DnjJPGfb.js";
|
|
2
2
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
3
3
|
import { n as guessPermissions, t as barrelFile } from "./collect-BOh9Pxob.js";
|
|
4
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-CXK3krNu.js";
|
|
5
5
|
import { r as CONFIG_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { a as rel, t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
7
7
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
@@ -2,8 +2,8 @@ import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolve
|
|
|
2
2
|
import { r as supabaseTenantClaim } from "./budget-BH81q2cj.js";
|
|
3
3
|
import { r as runCollect } from "./collect-BOh9Pxob.js";
|
|
4
4
|
import { t as didYouMean } from "./args-Bc0HLiD4.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { a as nonEmptyOr, r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-CXK3krNu.js";
|
|
6
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-BhNN-hvv.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-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-DBvXLSo7.js";
|
|
15
|
+
import { a as supabaseConfig, i as readSupabaseConfig, n as pd045, r as pd074 } from "./supabase-config-B2sDFiwy.js";
|
|
16
|
+
import { d as activeSource, g as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, p as resolveSchemas, r as supabaseDatabaseManifest } from "./hook-sql-55514A9t.js";
|
|
17
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-0q6ohTVN.js";
|
|
18
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-
|
|
19
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-mprXkEHG.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-
|
|
24
|
-
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-
|
|
23
|
+
import { d as rowConditionMessage, f as parseIgnores, p as splitIgnored, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-DTlATzWK.js";
|
|
24
|
+
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-1yWthvi5.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-CnCNB6XN.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-B0cqvJxo.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";
|
|
@@ -46,18 +46,18 @@ import { i as snapshotSize, n as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES
|
|
|
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
|
-
import { t as policyModel } from "./model-
|
|
50
|
-
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-
|
|
51
|
-
import { t as FIELD_VIEWS } from "./fields-
|
|
49
|
+
import { t as policyModel } from "./model-B0rrUh6J.js";
|
|
50
|
+
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-Da9op2Zo.js";
|
|
51
|
+
import { t as FIELD_VIEWS } from "./fields-CViS0EPC.js";
|
|
52
52
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
53
|
-
import { J as policyBundle, Q as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
54
|
-
import { H as byKey, K as graphSqlName } from "./interactive-only-
|
|
55
|
-
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-
|
|
56
|
-
import { r as contextRefs } from "./conditions-
|
|
57
|
-
import { t as CUSTOM_ROLES } from "./shared-
|
|
53
|
+
import { J as policyBundle, Q as graphPlan, i as tableNames, r as tableNameOf } from "./tables-BDqfipr1.js";
|
|
54
|
+
import { H as byKey, K as graphSqlName } from "./interactive-only-C_olBCPl.js";
|
|
55
|
+
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-B9SZiEnG.js";
|
|
56
|
+
import { r as contextRefs } from "./conditions-ChE7zxJI.js";
|
|
57
|
+
import { t as CUSTOM_ROLES } from "./shared-Cwxy5N16.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-Yfh1pGyX.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";
|
|
@@ -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-BSYAl2XG.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-BSYAl2XG.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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-BVDN_Hqx.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-
|
|
7
|
-
import { n as runGenerate } from "./pipeline-
|
|
6
|
+
import { i as readSupabaseConfig } from "./supabase-config-B2sDFiwy.js";
|
|
7
|
+
import { n as runGenerate } from "./pipeline-Ct3YEKjx.js";
|
|
8
8
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
9
9
|
import { existsSync, readdirSync } from "node:fs";
|
|
10
10
|
import { join, relative, resolve } from "node:path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { a as quoteIdent, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
4
|
-
import { _ as subjectClaimJsonSql, s as signedIn } from "./shared-
|
|
4
|
+
import { _ as subjectClaimJsonSql, s as signedIn } from "./shared-Cwxy5N16.js";
|
|
5
5
|
import { a as sole } from "./compact-C4LFuqbW.js";
|
|
6
6
|
// src/cli/sql/clauses.ts
|
|
7
7
|
/**
|
|
@@ -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-B0cqvJxo.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.29.0 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-BVDN_Hqx.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-D13YdBQP.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|
|
@@ -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 { $ 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-
|
|
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-BDqfipr1.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-B9SZiEnG.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-Yfh1pGyX.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-AXzbc_kg.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-BhNN-hvv.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
|
-
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-
|
|
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-C_olBCPl.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
|
-
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-
|
|
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-
|
|
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-Cwxy5N16.js";
|
|
17
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, h as declarativeSql, p as resolveSchemas, t as grantsLabel, u as approvalsSql } from "./hook-sql-55514A9t.js";
|
|
18
|
+
import { i as assignmentSql, n as ownershipSql } from "./ownership-mprXkEHG.js";
|
|
19
19
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
20
|
-
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-
|
|
20
|
+
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-Dn6zwfqo.js";
|
|
21
21
|
import { t as supautilsRejections } from "./supautils-DXzJ2E2Q.js";
|
|
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-
|
|
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-CViS0EPC.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-B0cqvJxo.js";
|
|
26
|
+
import { i as rbacScaffold } from "./rbac-BJTUGJum.js";
|
|
27
27
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
28
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-
|
|
29
|
+
import { i as readSupabaseConfig } from "./supabase-config-B2sDFiwy.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";
|
|
@@ -10,17 +10,17 @@ import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.
|
|
|
10
10
|
import { l as roleColumn } from "./sources-DnjJPGfb.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
12
|
import { l as parseSplit } from "./output-files-D5D-8-4l.js";
|
|
13
|
-
import { f as orSql, g as branchClauses } from "./fields-
|
|
13
|
+
import { f as orSql, g as branchClauses } from "./fields-CViS0EPC.js";
|
|
14
14
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
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-
|
|
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-
|
|
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-
|
|
18
|
-
import { t as resolveNames } from "./resolve-names-
|
|
19
|
-
import { a as roleNames, t as assignableRoles } from "./grants-
|
|
20
|
-
import { a as resolveAuthorize } from "./rbac-
|
|
21
|
-
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
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-Cwxy5N16.js";
|
|
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-C_olBCPl.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, 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-BDqfipr1.js";
|
|
18
|
+
import { t as resolveNames } from "./resolve-names-B0cqvJxo.js";
|
|
19
|
+
import { a as roleNames, t as assignableRoles } from "./grants-Dn6zwfqo.js";
|
|
20
|
+
import { a as resolveAuthorize } from "./rbac-BJTUGJum.js";
|
|
21
|
+
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-mprXkEHG.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-B9SZiEnG.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`. */
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import { t as receiptRows } from "./pipeline-
|
|
4
|
+
import { t as executeGenerate } from "./execute-BzQKrYqL.js";
|
|
5
|
+
import { t as receiptRows } from "./pipeline-Ct3YEKjx.js";
|
|
6
6
|
// src/cli/commands/generate.ts
|
|
7
7
|
function concurrencyFlag(value) {
|
|
8
8
|
if (value === void 0 || value === "") return;
|
|
@@ -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-Bz_iEKlB.js");
|
|
28
28
|
return watchGenerate(ctx, {
|
|
29
29
|
...policy === void 0 ? {} : { policy },
|
|
30
30
|
only: flags.only,
|
|
@@ -2,7 +2,7 @@ import { r as relationCondition, t as inheritCondition } from "./grantee-conditi
|
|
|
2
2
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
3
3
|
import { s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
4
4
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { t as andConditions } from "./conditions-
|
|
5
|
+
import { t as andConditions } from "./conditions-ChE7zxJI.js";
|
|
6
6
|
// src/cli/sql/grants.ts
|
|
7
7
|
/**
|
|
8
8
|
* The `role_permissions` grant key of a break-glass grant. It differs from the
|