permdock 0.27.2 → 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-Fc-Wmidd.js → adoption-scan-CHMU7gnE.js} +1 -1
- package/dist/{arazzo-awjY0iuj.js → arazzo-D1ZHjjea.js} +1 -1
- package/dist/{arazzo-0iMa9ZCa.js → arazzo-DuXmPMSu.js} +1 -1
- package/dist/{casbin-CmCKtC7e.js → casbin-Bf9jkDMy.js} +1 -1
- package/dist/{casbin-lyorC43j.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-DqV26jjx.js → cloud-nXogJ7e1.js} +1 -1
- package/dist/{codemod-KrqgvHZZ.js → codemod-Bp2bKwKe.js} +1 -1
- package/dist/{codemod-Hd9xW-Ft.js → codemod-DwL1E5of.js} +2 -2
- package/dist/{compile-R4ZIFR-P.js → compile-NM1GOb2q.js} +4 -4
- package/dist/{completion-D4umSq3h.js → completion-BQovwoTx.js} +1 -1
- package/dist/{conditions-CkHgXoZB.js → conditions-VlAMOm20.js} +1 -1
- package/dist/{config-t947SDkG.js → config-DSyn7r1l.js} +1 -1
- package/dist/{config-report-D5MqxIOK.js → config-report--ae2r_MI.js} +1 -1
- package/dist/{doctor-DNcxcd7g.js → doctor-CIV882xS.js} +2 -2
- package/dist/{doctor-CMEycIkk.js → doctor-kbRrZD3Q.js} +17 -17
- package/dist/{execute-DWB89P16.js → execute-CE8P72Ez.js} +3 -3
- package/dist/{gen-D89kmqIc.js → gen-CuEt0o6p.js} +2 -2
- package/dist/gen-DbPS6a4x.js +1 -0
- package/dist/{gen-kind-B1iCluFw.js → gen-kind-BLIhHgD3.js} +1 -1
- package/dist/{generate-BIcB7Seb.js → generate-B-Hlc08D.js} +3 -3
- package/dist/{generate-Bajg2iM2.js → generate-Dl75LKbW.js} +12 -12
- package/dist/{generate-options-DCAC8VPe.js → generate-options-BUh621MW.js} +7 -7
- package/dist/{grants-BzjbUCdR.js → grants-C7bGZFPa.js} +1 -1
- package/dist/{hook-sql-QnIzAo7X.js → hook-sql-Bxc_YRrd.js} +6 -6
- package/dist/{import-BX3VRyEG.js → import-BKTq4cxW.js} +1 -1
- package/dist/{init-B7dc10G2.js → init-B8GG9vjg.js} +3 -3
- package/dist/{init-oLHdLm9N.js → init-D4YO8hVa.js} +1 -1
- package/dist/{interactive-only-BZu9rLpa.js → interactive-only-CQsgMc1E.js} +5 -1
- package/dist/{login-Dtr5Dhg-.js → login-Bl-SuTJA.js} +1 -1
- package/dist/{login-Cy1tmSIU.js → login-OJdYkueH.js} +3 -3
- package/dist/{manifest-D_T55LWM.js → manifest-BY8lK4l4.js} +30 -30
- package/dist/{model-B4EKVHMK.js → model-BkQLENu6.js} +1 -1
- package/dist/{openapi-dfS5EWV7.js → openapi-CvAjVdK7.js} +1 -1
- package/dist/{openapi-DXTd9d4R.js → openapi-Dpetebzt.js} +1 -1
- package/dist/{openapi-document-DG3OLrz8.js → openapi-document-7K7rofeR.js} +1 -1
- package/dist/{output-DyU0C-y4.js → output-Cq0neio3.js} +1 -1
- package/dist/{ownership-CoKxJFJT.js → ownership-CHND0y5L.js} +2 -2
- package/dist/{pipeline-CXuwijr2.js → pipeline-CGctXudd.js} +1 -1
- package/dist/{policy-CCEbqYf8.js → policy-DzTU5233.js} +1 -1
- package/dist/{policy-bundle-HAEbKVWr.js → policy-bundle-Dafv5nOx.js} +3 -3
- package/dist/{powersync-CRjA5yaf.js → powersync-BfMIjRqo.js} +1 -1
- package/dist/{powersync-B3wb25Im.js → powersync-DNeS5JrT.js} +6 -6
- package/dist/{powersync-DLCojn6h.js → powersync-IrDmJbqx.js} +1 -1
- package/dist/{pull-CPqDPfQF.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-DcEObQXW.js → resolve-names-D0hNHBp5.js} +2 -2
- package/dist/{rls-B7_-H9w_.js → rls-BDmebOIp.js} +1 -1
- package/dist/{rls-DvvFUuM1.js → rls-BjEp-1Ob.js} +6 -6
- package/dist/{rls-files-BTEnbgHS.js → rls-files-kGXtfslQ.js} +1 -1
- package/dist/run-CdxQr6w8.js +1 -0
- package/dist/{run-b7JC98PS.js → run-DFe2I0T7.js} +2 -2
- package/dist/{scan-B5BaNYdI.js → scan-DGCpdOuR.js} +1 -1
- package/dist/{schema-McSTkbY6.js → schema-wummOGn9.js} +1 -1
- package/dist/{skills-BY84uRix.js → skills-BQ9bEjPV.js} +1 -1
- package/dist/{skills-zTMid__z.js → skills-BntnICiJ.js} +1 -1
- package/dist/{supabase-3Z27QkmX.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-O2TwhHTD.js → supabase-hook-nGLUvn5x.js} +3 -3
- package/dist/{tables-B-rPhiI1.js → tables-CbVpFhC6.js} +11 -3
- package/dist/usage-BAUV1SYl.js +1 -0
- package/dist/{usage-B2_Cv8wf.js → usage-C1NKRxBJ.js} +2 -2
- package/dist/{usage-SO2T77jZ.js → usage-L1G1zlwz.js} +1 -1
- package/dist/{verify-CYGImcQk.js → verify-KX4Ohvs_.js} +3 -3
- package/dist/{watch-BecZtEdU.js → watch-DNIGANvR.js} +1 -1
- package/package.json +1 -1
- package/dist/gen-mjtVyqQd.js +0 -1
- package/dist/pull-D7grIUA_.js +0 -1
- package/dist/run-Di9cOIeR.js +0 -1
- package/dist/supabase-hook-D1gG6Ub-.js +0 -2
- package/dist/usage-BWpZJbdf.js +0 -1
|
@@ -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
|
}
|
|
@@ -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-mjtVyqQd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as renderKinds } from "./gen-D89kmqIc.js";
|
package/dist/pull-D7grIUA_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runCloudPull } from "./pull-CPqDPfQF.js";
|
package/dist/run-Di9cOIeR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as run } from "./run-b7JC98PS.js";
|
package/dist/usage-BWpZJbdf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as runUsage } from "./usage-B2_Cv8wf.js";
|