permdock 0.27.1 → 0.27.3
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-Bd-m2Fe_.js → adoption-scan-CHMU7gnE.js} +1 -1
- package/dist/{arazzo-CsifZ8xx.js → arazzo-D1ZHjjea.js} +1 -1
- package/dist/{arazzo-BGfRLmhk.js → arazzo-DuXmPMSu.js} +1 -1
- package/dist/{casbin-n0dqdBSj.js → casbin-Bf9jkDMy.js} +1 -1
- package/dist/{casbin-D8T6IXmf.js → casbin-CwLL5QnK.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-g-922e2y.js → cloud-nXogJ7e1.js} +1 -1
- package/dist/{codemod-9WzZaZsY.js → codemod-Bp2bKwKe.js} +1 -1
- package/dist/{codemod-BrSNfQG4.js → codemod-DwL1E5of.js} +2 -2
- package/dist/{compile-DVzlNtwB.js → compile-NM1GOb2q.js} +4 -4
- package/dist/{completion-Duu9XUtU.js → completion-BQovwoTx.js} +1 -1
- package/dist/{conditions-CkHgXoZB.js → conditions-VlAMOm20.js} +1 -1
- package/dist/{config-B46LCIi1.js → config-DSyn7r1l.js} +1 -1
- package/dist/{config-report-BwSd_ErT.js → config-report--ae2r_MI.js} +1 -1
- package/dist/{doctor-BaqGN07N.js → doctor-CIV882xS.js} +2 -2
- package/dist/{doctor-CNV-I5-C.js → doctor-kbRrZD3Q.js} +17 -17
- package/dist/{execute-DVGgG2j9.js → execute-CE8P72Ez.js} +3 -3
- package/dist/{gen-DovbVJ0i.js → gen-CuEt0o6p.js} +2 -2
- package/dist/gen-DbPS6a4x.js +1 -0
- package/dist/{gen-kind-DRWg-ta4.js → gen-kind-BLIhHgD3.js} +1 -1
- package/dist/{generate-DBmalxoO.js → generate-B-Hlc08D.js} +3 -3
- package/dist/{generate-yGW045al.js → generate-Dl75LKbW.js} +12 -12
- package/dist/{generate-options-WJQoS1Lu.js → generate-options-BUh621MW.js} +12 -8
- package/dist/{grants-BzjbUCdR.js → grants-C7bGZFPa.js} +1 -1
- package/dist/{hook-sql-FU-vnUkl.js → hook-sql-Bxc_YRrd.js} +6 -6
- package/dist/{import-C7tYaABo.js → import-BKTq4cxW.js} +1 -1
- package/dist/{init-CN7tPYLP.js → init-B8GG9vjg.js} +3 -3
- package/dist/{init-CntB_X4r.js → init-D4YO8hVa.js} +1 -1
- package/dist/{interactive-only-BZu9rLpa.js → interactive-only-CQsgMc1E.js} +5 -1
- package/dist/{login-CnR0EQd6.js → login-Bl-SuTJA.js} +1 -1
- package/dist/{login-gwlxVT40.js → login-OJdYkueH.js} +3 -3
- package/dist/{manifest-B2syNUwo.js → manifest-BY8lK4l4.js} +30 -30
- package/dist/{model-B4EKVHMK.js → model-BkQLENu6.js} +1 -1
- package/dist/{openapi-C4btogJT.js → openapi-CvAjVdK7.js} +1 -1
- package/dist/{openapi-qD85gUJ5.js → openapi-Dpetebzt.js} +1 -1
- package/dist/{openapi-document-BqXMCObA.js → openapi-document-7K7rofeR.js} +1 -1
- package/dist/{output-ubzzotuT.js → output-Cq0neio3.js} +1 -1
- package/dist/{ownership-Cw5-N2Ul.js → ownership-CHND0y5L.js} +2 -2
- package/dist/{pipeline-CXuwijr2.js → pipeline-CGctXudd.js} +1 -1
- package/dist/{policy-C3-aUrcn.js → policy-DzTU5233.js} +1 -1
- package/dist/{policy-bundle-COTjSP1d.js → policy-bundle-Dafv5nOx.js} +3 -3
- package/dist/{powersync-BcIQ5rz6.js → powersync-BfMIjRqo.js} +1 -1
- package/dist/{powersync-3MJa650H.js → powersync-DNeS5JrT.js} +6 -6
- package/dist/{powersync-DzFm4hgt.js → powersync-IrDmJbqx.js} +1 -1
- package/dist/{pull-AjAqYEpz.js → pull-DOwvDn98.js} +1 -1
- package/dist/pull-Qh7JjiO7.js +1 -0
- package/dist/{rbac-B-49toAp.js → rbac-CygtQB85.js} +1 -1
- package/dist/{resolve-names-Bb6tL3EI.js → resolve-names-D0hNHBp5.js} +2 -2
- package/dist/{rls-fzNIKj80.js → rls-BDmebOIp.js} +1 -1
- package/dist/{rls-GYIzJF3m.js → rls-BjEp-1Ob.js} +6 -6
- package/dist/{rls-files-D1aDyRlu.js → rls-files-kGXtfslQ.js} +1 -1
- package/dist/run-CdxQr6w8.js +1 -0
- package/dist/{run-Cs9E4tsz.js → run-DFe2I0T7.js} +2 -2
- package/dist/{scan-CoG-QiZ6.js → scan-DGCpdOuR.js} +1 -1
- package/dist/{schema-C1J6y5a1.js → schema-wummOGn9.js} +1 -1
- package/dist/{skills-ByTBjMpX.js → skills-BQ9bEjPV.js} +1 -1
- package/dist/{skills-CkRRq5tM.js → skills-BntnICiJ.js} +1 -1
- package/dist/{supabase-DlINOaAC.js → supabase-CjUsihRL.js} +1 -1
- package/dist/{supabase-config-mXcggV5I.js → supabase-config-CbK7xX77.js} +1 -1
- package/dist/supabase-hook-b7tej2Vw.js +2 -0
- package/dist/{supabase-hook-CjVG8JJC.js → supabase-hook-nGLUvn5x.js} +3 -3
- package/dist/{tables-BYICzaNo.js → tables-CbVpFhC6.js} +16 -5
- package/dist/usage-BAUV1SYl.js +1 -0
- package/dist/{usage-EQlT--OM.js → usage-C1NKRxBJ.js} +2 -2
- package/dist/{usage-CFSPH513.js → usage-L1G1zlwz.js} +1 -1
- package/dist/{verify-BNhn8P33.js → verify-KX4Ohvs_.js} +3 -3
- package/dist/{watch-BecZtEdU.js → watch-DNIGANvR.js} +1 -1
- package/package.json +1 -1
- package/dist/gen-rrMLA6rz.js +0 -1
- package/dist/pull-8AsfQuQR.js +0 -1
- package/dist/run-Dordj5mh.js +0 -1
- package/dist/supabase-hook-BMBUDtLU.js +0 -2
- package/dist/usage-DfponlA-.js +0 -1
|
@@ -5,10 +5,10 @@ import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serv
|
|
|
5
5
|
import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
6
6
|
import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
7
7
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
8
|
-
import { n as hookUri } from "./rbac-
|
|
9
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, f as isSupabaseSchemas, h as declarativeSql, i as supabaseHookManifest, l as configToml, m as schemasRefusal, n as hooklessDatabase, o as defaultOut, p as resolveSchemas, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-
|
|
8
|
+
import { n as hookUri } from "./rbac-CygtQB85.js";
|
|
9
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, f as isSupabaseSchemas, h as declarativeSql, i as supabaseHookManifest, l as configToml, m as schemasRefusal, n as hooklessDatabase, o as defaultOut, p as resolveSchemas, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-Bxc_YRrd.js";
|
|
10
10
|
import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
|
|
11
|
-
import { a as supabaseConfig } from "./supabase-config-
|
|
11
|
+
import { a as supabaseConfig } from "./supabase-config-CbK7xX77.js";
|
|
12
12
|
import { t as readMemberships } from "./read-memberships-BkePIa1F.js";
|
|
13
13
|
import { n as pgConnector } from "./pg-CA651850.js";
|
|
14
14
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
@@ -12,7 +12,7 @@ import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from ".
|
|
|
12
12
|
import { t as AUTHZ_VERSION_TABLE } from "./sources-DnjJPGfb.js";
|
|
13
13
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
14
14
|
import { A as tenantTypeOf, D as idTypeOf, O as scopeTypeOf, _ as subjectClaimJsonSql, d as keyTenantSql, f as kindFilterSql, h as roleKindSql, i as allowEntry, m as memberVia, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES, v as subjectClaimSql, x as userIdHelperSql, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
15
|
-
import { $ as linkHelper, A as userActive, B as trustedReaderGrants, C as sourcesKeep, D as keyTenantLine, E as instancesActive, F as perScope, G as graphHelper, H as byKey, I as raiseSql, J as hasMemberFor, K as graphSqlName, L as roleReadersSql, M as currentKeyExpr, N as customRolesSql, P as hasCustomRoleChecksFor, Q as isTeamScope, R as rolesTableScope, S as sourcesBodyOf, V as byCodeUnit, W as CLOSURE, Y as hasMemberOf, _ as memoizes, a as interactiveSessionSql, at as memberRoleOf, b as sourceIdOf, c as claimTenant, ct as restrictedHelper, d as hasBody, dt as activeInstancesSql, et as memberForHelper, ft as activeMembershipSql, g as memoizedSetofSql, gt as grantPermissionSql, h as memoWriteSql, it as memberOfHelper, j as globalRoleSource, l as disabledColumn, lt as scopeSources, m as memoHitList, mt as activeUserSql, n as interactiveAllowsCall, o as memoUserSql, ot as permittedForHelper, p as memberColumn, pt as activeRowSql, q as graphSqlText, r as interactiveAllowsSql, rt as memberIdsHelper, s as claimKeptLines, st as permittedIdsHelper, tt as memberForSources, u as functionBody, ut as scopeTable, v as scopedBody, w as sqlBody, x as sourceRows, y as sourceFilters, z as storedTenant } from "./interactive-only-
|
|
15
|
+
import { $ as linkHelper, A as userActive, B as trustedReaderGrants, C as sourcesKeep, D as keyTenantLine, E as instancesActive, F as perScope, G as graphHelper, H as byKey, I as raiseSql, J as hasMemberFor, K as graphSqlName, L as roleReadersSql, M as currentKeyExpr, N as customRolesSql, P as hasCustomRoleChecksFor, Q as isTeamScope, R as rolesTableScope, S as sourcesBodyOf, V as byCodeUnit, W as CLOSURE, Y as hasMemberOf, _ as memoizes, a as interactiveSessionSql, at as memberRoleOf, b as sourceIdOf, c as claimTenant, ct as restrictedHelper, d as hasBody, dt as activeInstancesSql, et as memberForHelper, ft as activeMembershipSql, g as memoizedSetofSql, gt as grantPermissionSql, h as memoWriteSql, it as memberOfHelper, j as globalRoleSource, l as disabledColumn, lt as scopeSources, m as memoHitList, mt as activeUserSql, n as interactiveAllowsCall, o as memoUserSql, ot as permittedForHelper, p as memberColumn, pt as activeRowSql, q as graphSqlText, r as interactiveAllowsSql, rt as memberIdsHelper, s as claimKeptLines, st as permittedIdsHelper, tt as memberForSources, u as functionBody, ut as scopeTable, v as scopedBody, w as sqlBody, x as sourceRows, y as sourceFilters, z as storedTenant } from "./interactive-only-CQsgMc1E.js";
|
|
16
16
|
import { createHash } from "node:crypto";
|
|
17
17
|
// src/cli/rls/graph.ts
|
|
18
18
|
function tableFor(resource, tables) {
|
|
@@ -638,11 +638,13 @@ grant execute on function ${fn}(text) to authenticated;`;
|
|
|
638
638
|
return `-- API keys: the ${plan.claim} claim's ${plan.scopes} list is a ceiling on every allow; denies always apply, and a request without the claim is not limited
|
|
639
639
|
create or replace function ${fn}(p_grant text)
|
|
640
640
|
returns boolean
|
|
641
|
-
language
|
|
641
|
+
language plpgsql
|
|
642
642
|
stable
|
|
643
643
|
security definer
|
|
644
644
|
set search_path = ''
|
|
645
645
|
as $$
|
|
646
|
+
begin
|
|
647
|
+
return (
|
|
646
648
|
select case
|
|
647
649
|
when ${apiKeyUnlimitedSql("k")} then true
|
|
648
650
|
when exists (
|
|
@@ -657,6 +659,8 @@ as $$
|
|
|
657
659
|
)
|
|
658
660
|
end
|
|
659
661
|
from ${keyOf(ctx, plan)}
|
|
662
|
+
);
|
|
663
|
+
end;
|
|
660
664
|
$$;
|
|
661
665
|
${grants}`;
|
|
662
666
|
}
|
|
@@ -2153,11 +2157,13 @@ revoke execute on function ${map}() from public, anon, authenticated;
|
|
|
2153
2157
|
-- Token scopes: a delegated token holds only the permissions its scope claim maps to; denies always apply, and a token without client_id or an agent act is not limited
|
|
2154
2158
|
create or replace function ${fn}(p_grant text)
|
|
2155
2159
|
returns boolean
|
|
2156
|
-
language
|
|
2160
|
+
language plpgsql
|
|
2157
2161
|
stable
|
|
2158
2162
|
security definer
|
|
2159
2163
|
set search_path = ''
|
|
2160
2164
|
as $$
|
|
2165
|
+
begin
|
|
2166
|
+
return (
|
|
2161
2167
|
select case
|
|
2162
2168
|
when ${tokenScopeUnlimitedSql(ctx)} then true
|
|
2163
2169
|
when exists (
|
|
@@ -2172,6 +2178,8 @@ as $$
|
|
|
2172
2178
|
? split_part(split_part(p_grant, '#', 1), '@', 1)
|
|
2173
2179
|
)
|
|
2174
2180
|
end
|
|
2181
|
+
);
|
|
2182
|
+
end;
|
|
2175
2183
|
$$;
|
|
2176
2184
|
${grants}`;
|
|
2177
2185
|
}
|
|
@@ -2994,15 +3002,18 @@ function grantsFunction(ctx, grants, renamed, anonExecute) {
|
|
|
2994
3002
|
return `-- the grant keys a permission key reaches on one scope: its unconditional allows, with p_effect 'deny' every deny, and with 'conditioned-allow' or 'conditioned-deny' the allows or denies that carry a row condition
|
|
2995
3003
|
create or replace function ${fn}(p_permission text, p_scope text, p_effect text default 'allow')
|
|
2996
3004
|
returns setof text
|
|
2997
|
-
language
|
|
3005
|
+
language plpgsql
|
|
2998
3006
|
stable
|
|
2999
3007
|
set search_path = ''
|
|
3000
3008
|
as $$
|
|
3009
|
+
begin
|
|
3010
|
+
return query
|
|
3001
3011
|
select g.grant_key
|
|
3002
3012
|
from pg_catalog.jsonb_array_elements_text(coalesce(
|
|
3003
3013
|
${quoteLiteral(JSON.stringify(map))}::jsonb -> p_scope -> ${current} -> p_effect,
|
|
3004
3014
|
'[]'::jsonb
|
|
3005
|
-
)) g(grant_key)
|
|
3015
|
+
)) g(grant_key);
|
|
3016
|
+
end;
|
|
3006
3017
|
$$;
|
|
3007
3018
|
${grantsSql(fn, "text, text, text", anonExecute)}`;
|
|
3008
3019
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as runUsage } from "./usage-C1NKRxBJ.js";
|
|
@@ -2,8 +2,8 @@ import { a as getResource } from "./permission-registry-DMYRZVcn.js";
|
|
|
2
2
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
3
3
|
import { r as runCollect } from "./collect-BJZsuBW4.js";
|
|
4
4
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
|
|
6
|
+
import { r as findingOf } from "./output-Cq0neio3.js";
|
|
7
7
|
import { o as USAGE_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
8
8
|
import { n as jiti, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
9
9
|
import { a as rel, r as listSourceFiles } from "./files-DAR51W3J.js";
|
|
@@ -7,16 +7,16 @@ import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
|
7
7
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
|
|
8
8
|
import { n as pgConnector } from "./pg-CA651850.js";
|
|
9
9
|
import { o as loadPolicyAt } from "./load-CZnlAyZ8.js";
|
|
10
|
-
import { t as commandFor } from "./compile-
|
|
10
|
+
import { t as commandFor } from "./compile-NM1GOb2q.js";
|
|
11
11
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
12
12
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
13
13
|
import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
|
|
14
14
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
15
15
|
import { T as columnTypesOf, a as customRolesOn, r as HELPERS } from "./shared-BdF5DJDQ.js";
|
|
16
16
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
17
|
-
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
17
|
+
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-CbVpFhC6.js";
|
|
18
18
|
import { s as viewName, t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
|
|
19
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
19
|
+
import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
|
|
20
20
|
import { b as membershipsClaim, m as customRoleScope } from "./evaluate-D8SdfP3h.js";
|
|
21
21
|
import { n as defaultSqlCommand, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
22
22
|
import "./budget-BH81q2cj.js";
|
|
@@ -2,7 +2,7 @@ import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
|
2
2
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
3
3
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { n as createChangeScheduler } from "./watch-CiN6WU9k.js";
|
|
5
|
-
import { t as receiptRows } from "./pipeline-
|
|
5
|
+
import { t as receiptRows } from "./pipeline-CGctXudd.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
package/package.json
CHANGED
package/dist/gen-rrMLA6rz.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as renderKinds } from "./gen-DovbVJ0i.js";
|
package/dist/pull-8AsfQuQR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runCloudPull } from "./pull-AjAqYEpz.js";
|
package/dist/run-Dordj5mh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as run } from "./run-Cs9E4tsz.js";
|
package/dist/usage-DfponlA-.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as runUsage } from "./usage-EQlT--OM.js";
|