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
|
@@ -30,20 +30,20 @@ const SECTIONS = [
|
|
|
30
30
|
docs: "init",
|
|
31
31
|
effects: ["files"],
|
|
32
32
|
config: false,
|
|
33
|
-
load: async () => (await import("./init-
|
|
33
|
+
load: async () => (await import("./init-QA12XZy5.js")).init
|
|
34
34
|
}),
|
|
35
35
|
group("preset", "Decode a preset code, or print its permdock.com/create link", "preset", [leaf("decode", "Print what a preset code holds", {
|
|
36
36
|
examples: ["permdock preset decode p1AQIDBAc"],
|
|
37
37
|
docs: "preset",
|
|
38
38
|
effects: [],
|
|
39
39
|
config: false,
|
|
40
|
-
load: async () => (await import("./init-
|
|
40
|
+
load: async () => (await import("./init-QA12XZy5.js")).presetDecode
|
|
41
41
|
}), leaf("url", "Print the permdock.com/create link that opens a code", {
|
|
42
42
|
examples: ["permdock preset url p1AQIDBAc"],
|
|
43
43
|
docs: "preset",
|
|
44
44
|
effects: [],
|
|
45
45
|
config: false,
|
|
46
|
-
load: async () => (await import("./init-
|
|
46
|
+
load: async () => (await import("./init-QA12XZy5.js")).presetUrl
|
|
47
47
|
})]),
|
|
48
48
|
group("skills", "Install, update or list the PermDock Agent Skills", "skills", [
|
|
49
49
|
leaf("install", "Copy the Agent Skills into the agent folders", {
|
|
@@ -55,21 +55,21 @@ const SECTIONS = [
|
|
|
55
55
|
docs: "skills",
|
|
56
56
|
effects: ["files"],
|
|
57
57
|
config: false,
|
|
58
|
-
load: async () => (await import("./skills-
|
|
58
|
+
load: async () => (await import("./skills-C2SqRGXy.js")).install
|
|
59
59
|
}),
|
|
60
60
|
leaf("update", "Replace installed skills with this version's", {
|
|
61
61
|
examples: ["permdock skills update"],
|
|
62
62
|
docs: "skills",
|
|
63
63
|
effects: ["files"],
|
|
64
64
|
config: false,
|
|
65
|
-
load: async () => (await import("./skills-
|
|
65
|
+
load: async () => (await import("./skills-C2SqRGXy.js")).update
|
|
66
66
|
}),
|
|
67
67
|
leaf("list", "List the skills and where each is installed", {
|
|
68
68
|
examples: ["permdock skills list"],
|
|
69
69
|
docs: "skills",
|
|
70
70
|
effects: [],
|
|
71
71
|
config: false,
|
|
72
|
-
load: async () => (await import("./skills-
|
|
72
|
+
load: async () => (await import("./skills-C2SqRGXy.js")).list
|
|
73
73
|
})
|
|
74
74
|
]),
|
|
75
75
|
leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
|
|
@@ -83,7 +83,7 @@ const SECTIONS = [
|
|
|
83
83
|
effects: ["files", "database:read"],
|
|
84
84
|
config: true,
|
|
85
85
|
findings: true,
|
|
86
|
-
load: async () => (await import("./doctor-
|
|
86
|
+
load: async () => (await import("./doctor-B3rZsURs.js")).doctor
|
|
87
87
|
}),
|
|
88
88
|
leaf("completion", "Print the shell completion script for bash, zsh or fish", {
|
|
89
89
|
examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
|
|
@@ -91,7 +91,7 @@ const SECTIONS = [
|
|
|
91
91
|
effects: [],
|
|
92
92
|
config: false,
|
|
93
93
|
shellOutput: true,
|
|
94
|
-
load: async () => (await import("./completion-
|
|
94
|
+
load: async () => (await import("./completion-CW1poYOM.js")).completion
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
},
|
|
@@ -107,14 +107,14 @@ const SECTIONS = [
|
|
|
107
107
|
docs: "collect",
|
|
108
108
|
effects: ["files"],
|
|
109
109
|
config: true,
|
|
110
|
-
load: async () => (await import("./collect-
|
|
110
|
+
load: async () => (await import("./collect-BYPq-0JU.js")).collect
|
|
111
111
|
}),
|
|
112
112
|
leaf("catalog", "Export the catalog as catalog JSON, JSON Schema or Markdown", {
|
|
113
113
|
examples: ["permdock catalog --out permissions.catalog.json", "permdock catalog --kind markdown"],
|
|
114
114
|
docs: "catalog",
|
|
115
115
|
effects: ["files"],
|
|
116
116
|
config: true,
|
|
117
|
-
load: async () => (await import("./catalog-
|
|
117
|
+
load: async () => (await import("./catalog-COoxFOoy.js")).catalog
|
|
118
118
|
}),
|
|
119
119
|
leaf("generate", "Write every plugin's files from the policy", {
|
|
120
120
|
examples: [
|
|
@@ -125,7 +125,7 @@ const SECTIONS = [
|
|
|
125
125
|
docs: "generate",
|
|
126
126
|
effects: ["files"],
|
|
127
127
|
config: true,
|
|
128
|
-
load: async () => (await import("./generate-
|
|
128
|
+
load: async () => (await import("./generate-BuNebxmi.js")).generate
|
|
129
129
|
}),
|
|
130
130
|
leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
|
|
131
131
|
examples: ["permdock usage", "permdock usage --fail-on warning"],
|
|
@@ -133,21 +133,21 @@ const SECTIONS = [
|
|
|
133
133
|
effects: [],
|
|
134
134
|
config: true,
|
|
135
135
|
findings: true,
|
|
136
|
-
load: async () => (await import("./usage-
|
|
136
|
+
load: async () => (await import("./usage-Bh-VP8co.js")).usage
|
|
137
137
|
}),
|
|
138
138
|
leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
|
|
139
139
|
examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
|
|
140
140
|
docs: "diff",
|
|
141
141
|
effects: [],
|
|
142
142
|
config: true,
|
|
143
|
-
load: async () => (await import("./diff-
|
|
143
|
+
load: async () => (await import("./diff-Cv9inVY5.js")).diff
|
|
144
144
|
}),
|
|
145
145
|
group("snapshot", "Measure the snapshot a role sends to the client", "snapshot", [leaf("size", "Report snapshot bytes by part, raw and gzip", {
|
|
146
146
|
examples: ["permdock snapshot size", "permdock snapshot size --role admin --tenants 40 --json"],
|
|
147
147
|
docs: "snapshot",
|
|
148
148
|
effects: [],
|
|
149
149
|
config: true,
|
|
150
|
-
load: async () => (await import("./size-
|
|
150
|
+
load: async () => (await import("./size-BqLd5oJ4.js")).snapshotSize
|
|
151
151
|
})]),
|
|
152
152
|
group("roles", "List what each role holds", "roles", [leaf("grants", "List the grants of each role, expanded per permission", {
|
|
153
153
|
examples: ["permdock roles grants", "permdock roles grants --role admin --json"],
|
|
@@ -165,14 +165,14 @@ const SECTIONS = [
|
|
|
165
165
|
docs: "policy",
|
|
166
166
|
effects: ["files"],
|
|
167
167
|
config: true,
|
|
168
|
-
load: async () => (await import("./policy-
|
|
168
|
+
load: async () => (await import("./policy-gS3zexF5.js")).policyBundle
|
|
169
169
|
})]),
|
|
170
170
|
group("claims", "Measure the memberships claim of an access token", "claims", [leaf("size", "Report claim bytes, token characters and the budget cut", {
|
|
171
171
|
examples: ["permdock claims size --memberships 60", "permdock claims size --memberships 11 --roles 3 --json"],
|
|
172
172
|
docs: "claims",
|
|
173
173
|
effects: [],
|
|
174
174
|
config: false,
|
|
175
|
-
load: async () => (await import("./size-
|
|
175
|
+
load: async () => (await import("./size-BqLd5oJ4.js")).claimsSize
|
|
176
176
|
})]),
|
|
177
177
|
leaf("config", "Check permdock.config.ts for unknown keys, or print the effective config", {
|
|
178
178
|
examples: ["permdock config", "permdock config --print"],
|
|
@@ -180,7 +180,7 @@ const SECTIONS = [
|
|
|
180
180
|
effects: [],
|
|
181
181
|
config: true,
|
|
182
182
|
findings: true,
|
|
183
|
-
load: async () => (await import("./config-
|
|
183
|
+
load: async () => (await import("./config-DP7Stalz.js")).config
|
|
184
184
|
})
|
|
185
185
|
]
|
|
186
186
|
},
|
|
@@ -193,7 +193,7 @@ const SECTIONS = [
|
|
|
193
193
|
docs: "rls",
|
|
194
194
|
effects: ["files", "database:read"],
|
|
195
195
|
config: true,
|
|
196
|
-
load: async () => (await import("./rls-
|
|
196
|
+
load: async () => (await import("./rls-DEPAx9uQ.js")).importPolicies
|
|
197
197
|
}),
|
|
198
198
|
leaf("verify", "Run the fixtures against the policies, or compare a live database", {
|
|
199
199
|
examples: [
|
|
@@ -205,21 +205,21 @@ const SECTIONS = [
|
|
|
205
205
|
effects: ["files", "database:read"],
|
|
206
206
|
config: true,
|
|
207
207
|
findings: true,
|
|
208
|
-
load: async () => (await import("./rls-
|
|
208
|
+
load: async () => (await import("./rls-DEPAx9uQ.js")).verify
|
|
209
209
|
}),
|
|
210
210
|
leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
|
|
211
211
|
examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
|
|
212
212
|
docs: "rls",
|
|
213
213
|
effects: ["rewrite", "files"],
|
|
214
214
|
config: true,
|
|
215
|
-
load: async () => (await import("./rls-
|
|
215
|
+
load: async () => (await import("./rls-DEPAx9uQ.js")).migrate
|
|
216
216
|
}),
|
|
217
217
|
leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
|
|
218
218
|
examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
|
|
219
219
|
docs: "rls",
|
|
220
220
|
effects: ["database:read"],
|
|
221
221
|
config: true,
|
|
222
|
-
load: async () => (await import("./rls-
|
|
222
|
+
load: async () => (await import("./rls-DEPAx9uQ.js")).explain
|
|
223
223
|
})
|
|
224
224
|
]),
|
|
225
225
|
group("supabase", "Generate the Supabase Custom Access Token Hook, or inspect its manifest", "supabase", [leaf("inspect", "Print or write the hook and helper manifest", {
|
|
@@ -227,14 +227,14 @@ const SECTIONS = [
|
|
|
227
227
|
docs: "supabase",
|
|
228
228
|
effects: ["files"],
|
|
229
229
|
config: true,
|
|
230
|
-
load: async () => (await import("./supabase-
|
|
230
|
+
load: async () => (await import("./supabase-V_yr_spa.js")).inspect
|
|
231
231
|
})]),
|
|
232
232
|
group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
|
|
233
233
|
examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
|
|
234
234
|
docs: "powersync",
|
|
235
235
|
effects: ["database:read"],
|
|
236
236
|
config: true,
|
|
237
|
-
load: async () => (await import("./powersync-
|
|
237
|
+
load: async () => (await import("./powersync-TraBGEw2.js")).verify
|
|
238
238
|
})])
|
|
239
239
|
]
|
|
240
240
|
},
|
|
@@ -247,13 +247,13 @@ const SECTIONS = [
|
|
|
247
247
|
effects: ["files"],
|
|
248
248
|
config: true,
|
|
249
249
|
findings: true,
|
|
250
|
-
load: async () => (await import("./openapi-
|
|
250
|
+
load: async () => (await import("./openapi-B9Lpb4Px.js")).annotateRoutes
|
|
251
251
|
}), leaf("import", "Turn an OpenAPI document into a generated definition", {
|
|
252
252
|
examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
|
|
253
253
|
docs: "openapi",
|
|
254
254
|
effects: ["files", "network"],
|
|
255
255
|
config: false,
|
|
256
|
-
load: async () => (await import("./openapi-
|
|
256
|
+
load: async () => (await import("./openapi-B9Lpb4Px.js")).importDocument
|
|
257
257
|
})]),
|
|
258
258
|
group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
|
|
259
259
|
examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
|
|
@@ -261,7 +261,7 @@ const SECTIONS = [
|
|
|
261
261
|
effects: [],
|
|
262
262
|
config: true,
|
|
263
263
|
findings: true,
|
|
264
|
-
load: async () => (await import("./arazzo-
|
|
264
|
+
load: async () => (await import("./arazzo-DSzOxgr1.js")).check
|
|
265
265
|
})]),
|
|
266
266
|
leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
|
|
267
267
|
examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
|
|
@@ -269,7 +269,7 @@ const SECTIONS = [
|
|
|
269
269
|
effects: [],
|
|
270
270
|
config: true,
|
|
271
271
|
findings: true,
|
|
272
|
-
load: async () => (await import("./scan-
|
|
272
|
+
load: async () => (await import("./scan-BrILYXP9.js")).scan
|
|
273
273
|
}),
|
|
274
274
|
group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
|
|
275
275
|
examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
|
|
@@ -283,7 +283,7 @@ const SECTIONS = [
|
|
|
283
283
|
docs: "casbin",
|
|
284
284
|
effects: ["files"],
|
|
285
285
|
config: false,
|
|
286
|
-
load: async () => (await import("./casbin-
|
|
286
|
+
load: async () => (await import("./casbin-CW2uo-Jt.js")).casbinImport
|
|
287
287
|
})])
|
|
288
288
|
]
|
|
289
289
|
},
|
|
@@ -295,34 +295,34 @@ const SECTIONS = [
|
|
|
295
295
|
docs: "login",
|
|
296
296
|
effects: ["network", "files"],
|
|
297
297
|
config: false,
|
|
298
|
-
load: async () => (await import("./login-
|
|
298
|
+
load: async () => (await import("./login-BJmDn5p2.js")).login
|
|
299
299
|
}),
|
|
300
300
|
leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
|
|
301
301
|
examples: ["permdock logout"],
|
|
302
302
|
docs: "login",
|
|
303
303
|
effects: ["network", "files"],
|
|
304
304
|
config: false,
|
|
305
|
-
load: async () => (await import("./login-
|
|
305
|
+
load: async () => (await import("./login-BJmDn5p2.js")).logout
|
|
306
306
|
}),
|
|
307
307
|
leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
|
|
308
308
|
examples: ["permdock whoami", "permdock whoami --json"],
|
|
309
309
|
docs: "login",
|
|
310
310
|
effects: [],
|
|
311
311
|
config: false,
|
|
312
|
-
load: async () => (await import("./login-
|
|
312
|
+
load: async () => (await import("./login-BJmDn5p2.js")).whoami
|
|
313
313
|
}),
|
|
314
314
|
group("cloud", "Publish to or pull from a PermDock Cloud project", "cloud", [leaf("push", "Publish the catalog, policy and manifest to a Cloud project", {
|
|
315
315
|
examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
|
|
316
316
|
docs: "cloud",
|
|
317
317
|
effects: ["network", "cloud:write"],
|
|
318
318
|
config: true,
|
|
319
|
-
load: async () => (await import("./cloud-
|
|
319
|
+
load: async () => (await import("./cloud-DhpR9oxl.js")).push
|
|
320
320
|
}), leaf("pull", "Write a Cloud project's published catalog and manifest", {
|
|
321
321
|
examples: ["permdock cloud pull --project prj_123"],
|
|
322
322
|
docs: "cloud",
|
|
323
323
|
effects: ["network", "files"],
|
|
324
324
|
config: true,
|
|
325
|
-
load: async () => (await import("./cloud-
|
|
325
|
+
load: async () => (await import("./cloud-DhpR9oxl.js")).pull
|
|
326
326
|
})])
|
|
327
327
|
]
|
|
328
328
|
},
|
|
@@ -333,7 +333,7 @@ const SECTIONS = [
|
|
|
333
333
|
docs: "codemod",
|
|
334
334
|
effects: ["rewrite"],
|
|
335
335
|
config: false,
|
|
336
|
-
load: async () => (await import("./codemod-
|
|
336
|
+
load: async () => (await import("./codemod-DEsebwQn.js")).codemod
|
|
337
337
|
})]
|
|
338
338
|
}
|
|
339
339
|
];
|
|
@@ -345,7 +345,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
|
|
|
345
345
|
config: false,
|
|
346
346
|
shellOutput: true,
|
|
347
347
|
hidden: true,
|
|
348
|
-
load: async () => (await import("./completion-
|
|
348
|
+
load: async () => (await import("./completion-CW1poYOM.js")).complete
|
|
349
349
|
});
|
|
350
350
|
const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
|
|
351
351
|
/** Each leaf with its path from the root, in manifest order. */
|
|
@@ -4,7 +4,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
|
|
|
4
4
|
import "./sources-DnjJPGfb.js";
|
|
5
5
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
7
|
-
import { _ as writeOutputFiles, n as dataMigrationFile } from "./output-files-
|
|
7
|
+
import { _ as writeOutputFiles, n as dataMigrationFile } from "./output-files-D5D-8-4l.js";
|
|
8
8
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
9
9
|
import { a as RETIRE_MARKER } from "./markers-C-kThnKN.js";
|
|
10
10
|
import { r as HELPERS } from "./shared-BdF5DJDQ.js";
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-DoP3avLl.js";
|
|
2
2
|
import { D as Policy, N as PolicyVocabulary, Q as Intent, Qn as Decision, Sr as Principal, cn as SnapshotTenants, tn as Snapshot, tr as DenialReason, wr as Subject } from "../policy-types-93NwI8iI.js";
|
|
3
3
|
import { m as ApprovalStore } from "../types-BdNdMix7.js";
|
|
4
|
-
import { b as ProtectedAction, y as ActionResult } from "../store-core-
|
|
4
|
+
import { b as ProtectedAction, y as ActionResult } from "../store-core-DyNo_BwA.js";
|
|
5
5
|
import { F as PermissionState, P as PermissionCheck, a as PermDock, d as UncheckedData, s as RowData } from "../permdock-Dz3yzWrp.js";
|
|
6
6
|
import { n as DescribeMessages } from "../describe-lAafaRQQ.js";
|
|
7
7
|
import { t as InstanceOptions } from "../instance-options-B4MD2wgl.js";
|
|
8
8
|
import { w as Permission } from "../vocabulary-FYgI_NoI.js";
|
|
9
9
|
import { n as PermDockWrap } from "../wrap-D-KvhzaC.js";
|
|
10
10
|
import { o as OtelWrap } from "../types-XSfi6ihL.js";
|
|
11
|
-
import { n as PermDockProviderProps } from "../types-
|
|
11
|
+
import { n as PermDockProviderProps } from "../types-PS10T9UK.js";
|
|
12
12
|
import { ReactElement, ReactNode } from "react";
|
|
13
13
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
14
14
|
type NextSubjectInput = unknown;
|
package/dist/next/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as PermDockPluginOptions } from "../types-run-DG1H5vrX.js";
|
|
2
2
|
/** Any object: Next's `NextConfig` is an interface, so no index signature. */
|
|
3
3
|
type NextConfigLike = object;
|
|
4
4
|
/** What `next.config` may export: an object, or a function of the phase. */
|
package/dist/next/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as describeError } from "../errors-DgLOqc6j.js";
|
|
2
|
-
import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-
|
|
2
|
+
import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-BNxvqCS4.js";
|
|
3
3
|
// src/cli/plugin.ts
|
|
4
4
|
const PHASE_BUILD = "phase-production-build";
|
|
5
5
|
const PHASE_DEV = "phase-development-server";
|
|
@@ -81,7 +81,7 @@ const importDocument = defineLeaf({
|
|
|
81
81
|
async run(ctx, { flags }) {
|
|
82
82
|
const doc = given(flags.doc);
|
|
83
83
|
if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
|
|
84
|
-
return (await import("./import-
|
|
84
|
+
return (await import("./import-CDCWY5Ou.js")).runOpenapiImport({
|
|
85
85
|
cwd: ctx.cwd,
|
|
86
86
|
doc,
|
|
87
87
|
out: fileOut("openapi import", flags.out),
|
|
@@ -3,11 +3,11 @@ import { r as definePolicy } from "./policy-DFD2J5o_.js";
|
|
|
3
3
|
import { a as getResource, n as findPermission } from "./permission-registry-DMYRZVcn.js";
|
|
4
4
|
import { i as createPermDock, o as openapiVersion } from "./openapi-D2dmyWZK.js";
|
|
5
5
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
6
|
-
import { i as fileDrift } from "./output-files-
|
|
7
|
-
import { t as shortDiff } from "./text-diff-
|
|
6
|
+
import { i as fileDrift } from "./output-files-D5D-8-4l.js";
|
|
7
|
+
import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
|
|
8
8
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
9
9
|
import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
|
10
|
-
import { n as validateOverlay, t as validateOpenapi } from "./schema-
|
|
10
|
+
import { n as validateOverlay, t as validateOpenapi } from "./schema-C-Nn6M1P.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
13
13
|
// src/cli/openapi/emit/merge.ts
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
|
3
3
|
/** The annotated document, without writing it. */
|
|
4
4
|
async function openapiDocument(task, options, source) {
|
|
5
5
|
if (options.doc === void 0) return [];
|
|
6
|
-
const { runOpenapi } = await import("./openapi-
|
|
6
|
+
const { runOpenapi } = await import("./openapi-DmEgZ9X8.js");
|
|
7
7
|
const outcome = await runOpenapi({
|
|
8
8
|
cwd: source.cwd,
|
|
9
9
|
config: source.config,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as isActionRequired, l as isRetryable, n as CliError, t as CLI_ERRORS_URL } from "./errors-DgLOqc6j.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-BY70KZmp.js";
|
|
3
3
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
// src/cli/core/consent.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
2
2
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
|
-
import { t as shortDiff } from "./text-diff-
|
|
3
|
+
import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
5
5
|
import { basename, dirname, resolve } from "node:path";
|
|
6
6
|
/** How `path` on disk differs from `expected`; `undefined` when `same` holds. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as SPLIT_PARTS } from "./output-files-D5D-8-4l.js";
|
|
@@ -6,7 +6,7 @@ import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
|
6
6
|
import { l as roleColumn } from "./sources-DnjJPGfb.js";
|
|
7
7
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
8
8
|
import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
9
|
-
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-
|
|
9
|
+
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-D-tmMHww.js";
|
|
10
10
|
// src/cli/rls/assignments.ts
|
|
11
11
|
/**
|
|
12
12
|
* The client roles whose writes the assignment triggers check; any other role
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as crud } from "./src-
|
|
1
|
+
import { c as crud } from "./src-BAYcigFU.js";
|
|
2
2
|
import { t as definePermissions } from "./permissions-CQW3cr2S.js";
|
|
3
3
|
import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
|
|
4
4
|
import { v as resource } from "./permission-registry-DMYRZVcn.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as Policy, Tn as Scope, _ as Grant, kr as Condition } from "./policy-types-93NwI8iI.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as PermDockConfig } from "./types-config-Cq72dArb.js";
|
|
3
3
|
import { P as ResourceNode } from "./vocabulary-FYgI_NoI.js";
|
|
4
4
|
/** The settings of `supabase/config.toml` doctor reads. */
|
|
5
5
|
type SupabaseConfig = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
3
|
-
import { n as compileGrants } from "./compile-
|
|
4
|
-
import { G as POLICY_BUNDLE_FORMAT,
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-AvKV0IXA.js";
|
|
3
|
+
import { n as compileGrants } from "./compile-CT7x66_U.js";
|
|
4
|
+
import { G as POLICY_BUNDLE_FORMAT, J as policyBundle, i as tableNames, q as bundleLoaderSql } from "./tables-D-tmMHww.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
|
|
|
18
18
|
},
|
|
19
19
|
async run(ctx, { flags }) {
|
|
20
20
|
try {
|
|
21
|
-
const { runPolicyBundle } = await import("./policy-bundle-
|
|
21
|
+
const { runPolicyBundle } = await import("./policy-bundle-AFVba7nt.js");
|
|
22
22
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
23
23
|
return runPolicyBundle({
|
|
24
24
|
cwd: ctx.cwd,
|
|
@@ -24,7 +24,7 @@ const verify = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
25
25
|
const fixtures = given(flags.fixtures);
|
|
26
26
|
const from = given(flags.policy);
|
|
27
|
-
const { runPowerSync } = await import("./powersync-
|
|
27
|
+
const { runPowerSync } = await import("./powersync-WvWQh2kU.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as powersyncFiles, t as runPowerSync } from "./powersync-
|
|
1
|
+
export { r as powersyncFiles, t as runPowerSync } from "./powersync-d4eoYO3I.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
2
2
|
import { n as findPermission } from "./permission-registry-DMYRZVcn.js";
|
|
3
3
|
import { t as getPermDock } from "./permdock-BueSeg7X.js";
|
|
4
|
-
import { E as memoryCustomRoleSource, g as localSnapshotManifest } from "./src-
|
|
4
|
+
import { E as memoryCustomRoleSource, g as localSnapshotManifest } from "./src-BAYcigFU.js";
|
|
5
5
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
7
|
-
import { i as fileDrift } from "./output-files-
|
|
7
|
+
import { i as fileDrift } from "./output-files-D5D-8-4l.js";
|
|
8
8
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
|
|
9
9
|
import { n as pgConnector } from "./pg-CA651850.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
11
|
-
import { t as canFixture } from "./verify-
|
|
11
|
+
import { t as canFixture } from "./verify-aCeiREkh.js";
|
|
12
12
|
import { a as roleNames, i as collectGrants, t as assignableRoles } from "./grants-C7bGZFPa.js";
|
|
13
13
|
import { a as quoteIdent, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
14
14
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
|
|
@@ -18,9 +18,9 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-DnjJPGfb.js";
|
|
|
18
18
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-BdF5DJDQ.js";
|
|
19
19
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
20
20
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
21
|
-
import { t as ownershipRules } from "./ownership-
|
|
22
|
-
import { i as tableFor } from "./compile-
|
|
23
|
-
import { i as tableNames, r as tableNameOf } from "./tables-
|
|
21
|
+
import { t as ownershipRules } from "./ownership-fYxdtYs0.js";
|
|
22
|
+
import { i as tableFor } from "./compile-CT7x66_U.js";
|
|
23
|
+
import { i as tableNames, r as tableNameOf } from "./tables-D-tmMHww.js";
|
|
24
24
|
import { l as policyLevels } from "./policy-DFD2J5o_.js";
|
|
25
25
|
import { r as contextRefs, t as andConditions } from "./conditions-VlAMOm20.js";
|
|
26
26
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
@@ -30,11 +30,11 @@ const EMOJI_RE = /[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{
|
|
|
30
30
|
const LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
|
|
31
31
|
const MODIFIER_RE = /\p{M}+/gu;
|
|
32
32
|
const NO_TRUNCATION$1 = {
|
|
33
|
-
limit:
|
|
33
|
+
limit: 1e400,
|
|
34
34
|
ellipsis: ""
|
|
35
35
|
};
|
|
36
36
|
const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
|
|
37
|
-
const LIMIT = truncationOptions.limit ??
|
|
37
|
+
const LIMIT = truncationOptions.limit ?? 1e400;
|
|
38
38
|
const ELLIPSIS = truncationOptions.ellipsis ?? "";
|
|
39
39
|
const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION$1, widthOptions).width : 0);
|
|
40
40
|
const ANSI_WIDTH = 0;
|
|
@@ -112,7 +112,7 @@ const getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {
|
|
|
112
112
|
};
|
|
113
113
|
// ../../node_modules/.pnpm/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js
|
|
114
114
|
const NO_TRUNCATION = {
|
|
115
|
-
limit:
|
|
115
|
+
limit: 1e400,
|
|
116
116
|
ellipsis: "",
|
|
117
117
|
ellipsisWidth: 0
|
|
118
118
|
};
|
|
@@ -2,9 +2,9 @@ import { N as PolicyVocabulary, Qn as Decision, xr as Membership } from "./polic
|
|
|
2
2
|
import { r as Role, w as Permission } from "./vocabulary-FYgI_NoI.js";
|
|
3
3
|
import { d as UncheckedData, s as RowData } from "./permdock-Dz3yzWrp.js";
|
|
4
4
|
import { r as DescribeOptions, t as DecisionDescription } from "./describe-lAafaRQQ.js";
|
|
5
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-DyNo_BwA.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-C1zIMtJr.js";
|
|
7
|
-
import { r as ProtectedProps } from "./types-
|
|
7
|
+
import { r as ProtectedProps } from "./types-PS10T9UK.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
9
|
/**
|
|
10
10
|
* The instance with every check. It loads the evaluator on first use and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as actionRunner, t as actionApproval } from "./protected-action-DiXulRVj.js";
|
|
2
2
|
import { a as gateView, c as protectedView, d as slotContent, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle, u as scopedTenant } from "./views-Dpr1uB16.js";
|
|
3
|
-
import { n as storeOf } from "./store-options-
|
|
3
|
+
import { n as storeOf } from "./store-options-BtHrfJUU.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, r as PermDockSnapshotPromiseContext } from "./live-options-CIUmc-YQ.js";
|
|
5
5
|
import { Suspense, use, useEffect, useLayoutEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as eagerEvaluator } from "./evaluator-eager-UuJK6NX_.js";
|
|
2
|
-
import { t as ProviderWith } from "./provider-with-
|
|
2
|
+
import { t as ProviderWith } from "./provider-with-fxHItxDh.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
// src/react/provider.tsx
|
|
5
5
|
function PermDockProvider(props) {
|
|
@@ -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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { t as emptySnapshot } from "./snapshot-empty-DZ6sZ83n.js";
|
|
3
3
|
import { t as eagerEvaluator } from "./evaluator-eager-UuJK6NX_.js";
|
|
4
|
-
import { l as isPromiseLike, t as adapterStore } from "./store-options-
|
|
4
|
+
import { l as isPromiseLike, t as adapterStore } from "./store-options-BtHrfJUU.js";
|
|
5
5
|
// src/client/provider-store.ts
|
|
6
6
|
/**
|
|
7
7
|
* Store options that read `read()` on every request, so a rotated token, a new
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as adapterStore } from "./store-options-
|
|
1
|
+
import { t as adapterStore } from "./store-options-BtHrfJUU.js";
|
|
2
2
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as emptySnapshot } from "./snapshot-empty-DZ6sZ83n.js";
|
|
4
4
|
import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-CIUmc-YQ.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-xhMWizWH.js";
|
|
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-B-8d2lhG.js";
|
|
|
4
4
|
import { o as formatCatalogJson } from "./catalog-doc-Bp5khmCG.js";
|
|
5
5
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
6
6
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { a as nonEmptyOr } from "./output-
|
|
7
|
+
import { a as nonEmptyOr } from "./output-Cqtb8lW_.js";
|
|
8
8
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
10
10
|
import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
|
|
@@ -4,7 +4,7 @@ import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
|
4
4
|
import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
|
|
5
5
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
6
6
|
import { n as parseSupabaseManifest } from "./manifest-B-8d2lhG.js";
|
|
7
|
-
import { n as runCatalog } from "./catalog-
|
|
7
|
+
import { n as runCatalog } from "./catalog-DXSP1we9.js";
|
|
8
8
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
9
9
|
import { n as httpRequest, t as authFailure } from "./http-BbX_Ou3_.js";
|
|
10
10
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as Policy, W as WireValidity, Xn as AppObligation, b as GrantMeta, f as BreakGlassSpec, kr as Condition, on as SnapshotScope, s as ApprovalRequirement, y as GrantLimit, zn as Grantee } from "./policy-types-93NwI8iI.js";
|
|
2
|
-
import { t as JsonSchemaNode } from "./json-schema-
|
|
2
|
+
import { t as JsonSchemaNode } from "./json-schema-DAeA-lJa.js";
|
|
3
3
|
/**
|
|
4
4
|
* One code grant as `permdock cloud push` sends it. `portable: false` marks a
|
|
5
5
|
* grant a snapshot cannot evaluate; `closure: true` marks one whose condition
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as authorizeSql } from "./supabase-
|
|
1
|
+
import { n as authorizeSql } from "./supabase-BzK3lplm.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { a as roleNames } from "./grants-C7bGZFPa.js";
|
|
4
4
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|