permdock 0.27.2 → 0.28.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/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
- package/dist/{adoption-scan-Fc-Wmidd.js → adoption-scan-BHQm3Li7.js} +1 -1
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-awjY0iuj.js → arazzo-CAQr4N7Z.js} +2 -2
- package/dist/{arazzo-0iMa9ZCa.js → arazzo-UwtVzma6.js} +1 -1
- 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-lyorC43j.js → casbin-CSgPeAJK.js} +1 -1
- package/dist/{casbin-CmCKtC7e.js → casbin-Ccbaft52.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-DqV26jjx.js → cloud-CFtvELWj.js} +2 -2
- package/dist/{codemod-Hd9xW-Ft.js → codemod-3PFIcPag.js} +2 -2
- package/dist/{codemod-KrqgvHZZ.js → codemod-ClcPRv4c.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-R4ZIFR-P.js → compile-mfTqcMJ5.js} +4 -4
- package/dist/{completion-D4umSq3h.js → completion-D4p_MQX7.js} +2 -2
- package/dist/{conditions-CkHgXoZB.js → conditions-VlAMOm20.js} +1 -1
- package/dist/{config-t947SDkG.js → config-D9bq79Yi.js} +1 -1
- package/dist/{config-report-D5MqxIOK.js → config-report-DZfIl6zc.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-DNcxcd7g.js → doctor-CuhkBJ06.js} +3 -3
- package/dist/{doctor-CMEycIkk.js → doctor-FHjwjHYC.js} +21 -21
- package/dist/{execute-DWB89P16.js → execute-DdH84BHC.js} +4 -4
- package/dist/gen-BseS8XeZ.js +1 -0
- package/dist/{gen-D89kmqIc.js → gen-CcKymoUw.js} +3 -3
- package/dist/{gen-kind-B1iCluFw.js → gen-kind-Bf9jYVgn.js} +1 -1
- package/dist/{generate-Bajg2iM2.js → generate-BCUVV4vB.js} +13 -13
- package/dist/{generate-BIcB7Seb.js → generate-UMuStlLD.js} +3 -3
- package/dist/{generate-options-DCAC8VPe.js → generate-options-Cg5sAHhT.js} +8 -8
- package/dist/{grants-BzjbUCdR.js → grants-C7bGZFPa.js} +1 -1
- package/dist/{hook-sql-QnIzAo7X.js → hook-sql-C0aUoiOH.js} +7 -6
- package/dist/{import-BX3VRyEG.js → import--taRAR01.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-B7dc10G2.js → init-CP3fYFb6.js} +3 -3
- package/dist/{init-oLHdLm9N.js → init-Cfi7_gXO.js} +1 -1
- package/dist/{interactive-only-BZu9rLpa.js → interactive-only-CQsgMc1E.js} +5 -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-Cy1tmSIU.js → login-BjkyJNGn.js} +3 -3
- package/dist/{login-Dtr5Dhg-.js → login-kg9Pd0C2.js} +1 -1
- package/dist/{manifest-D_T55LWM.js → manifest-C7dWk0k5.js} +35 -35
- package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
- package/dist/{model-B4EKVHMK.js → model-BkQLENu6.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-dfS5EWV7.js → openapi-B5jo5ClY.js} +3 -3
- package/dist/{openapi-DXTd9d4R.js → openapi-dJFJTHiW.js} +1 -1
- package/dist/{openapi-document-DG3OLrz8.js → openapi-document-B58hIsZ4.js} +1 -1
- package/dist/{output-DyU0C-y4.js → output-Pne7BTXn.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-CoKxJFJT.js → ownership-BPGoxz1T.js} +2 -2
- package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
- package/dist/{pipeline-CXuwijr2.js → pipeline-CGctXudd.js} +1 -1
- package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
- package/dist/{policy-CCEbqYf8.js → policy-G8iZ2T5P.js} +1 -1
- package/dist/{policy-bundle-HAEbKVWr.js → policy-bundle-nbcxlVOb.js} +3 -3
- package/dist/{powersync-DLCojn6h.js → powersync-B9KEEiJE.js} +1 -1
- package/dist/{powersync-CRjA5yaf.js → powersync-BoOMFQRl.js} +1 -1
- package/dist/{powersync-B3wb25Im.js → powersync-CqAj9QJt.js} +8 -8
- 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-8Vce3V1e.js +1 -0
- package/dist/{pull-CPqDPfQF.js → pull-DXuh-rob.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-B-49toAp.js → rbac-FlJv7Ba9.js} +2 -2
- 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-DcEObQXW.js → resolve-names-CROyyjVR.js} +2 -2
- package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
- package/dist/{rls-DvvFUuM1.js → rls-BL90Ec30.js} +7 -7
- package/dist/{rls-B7_-H9w_.js → rls-DV4MUNMb.js} +1 -1
- package/dist/{rls-files-BTEnbgHS.js → rls-files-BgLoAa9x.js} +2 -2
- package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
- package/dist/{run-b7JC98PS.js → run-BFDAiNuS.js} +3 -3
- package/dist/run-mEbYi2Ow.js +1 -0
- package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
- package/dist/{scan-B5BaNYdI.js → scan-CoyAmDAz.js} +1 -1
- package/dist/{schema-McSTkbY6.js → schema-9eGIiLry.js} +2 -2
- package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
- package/dist/{skills-BY84uRix.js → skills-B8nt-KuB.js} +2 -2
- package/dist/{skills-zTMid__z.js → skills-BPDVfXgR.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-Ctn_Z6xf.js} +1 -1
- package/dist/{supabase-3Z27QkmX.js → supabase-D5KN965n.js} +1 -1
- package/dist/{supabase-config-mXcggV5I.js → supabase-config-CjX-GjEp.js} +1 -1
- package/dist/supabase-hook-CjChM-eX.js +2 -0
- package/dist/{supabase-hook-O2TwhHTD.js → supabase-hook-CmW2MLWa.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-B-rPhiI1.js → tables-Btlt_Rp-.js} +54 -9
- 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-SO2T77jZ.js → usage-DRReZaxQ.js} +1 -1
- package/dist/{usage-B2_Cv8wf.js → usage-DVjr2ZDc.js} +3 -3
- package/dist/usage-nVi3-z-j.js +1 -0
- package/dist/{verify-CYGImcQk.js → verify-BOB_Jyjx.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-BecZtEdU.js → watch-CnRyGEtp.js} +2 -2
- 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-mjtVyqQd.js +0 -1
- package/dist/output-files-C5LFnQa4.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
- package/dist/watch-NAUnUXph.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
3
3
|
import "./sources-DnjJPGfb.js";
|
|
4
|
-
import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, r as driftOf, u as partPath } from "./output-files-
|
|
4
|
+
import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, r as driftOf, u as partPath } from "./output-files-D5D-8-4l.js";
|
|
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-FlJv7Ba9.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-C0aUoiOH.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-CjX-GjEp.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";
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
1
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CQF-oYSz.js";
|
|
2
2
|
import { i as describe } from "../describe-lAafaRQQ.js";
|
|
3
3
|
import { c as requiredPlans } from "../errors-DUJ7wLlE.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
5
5
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
6
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
6
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-DyFCruRC.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
8
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
8
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-DyNo_BwA.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
|
11
11
|
export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
|
package/dist/svelte/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
2
|
-
import { n as getUi, t as getStore } from "../context-
|
|
2
|
+
import { n as getUi, t as getStore } from "../context-BdoA9DhS.js";
|
|
3
3
|
import { n as viewFor, t as scopedFor } from "../runtime-Cl6xSbEq.js";
|
|
4
4
|
import { d as slotContent } from "../views-Dpr1uB16.js";
|
|
5
5
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
6
6
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
7
7
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
8
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
9
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
8
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-BtHrfJUU.js";
|
|
9
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-BIMyclLg.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
11
|
import * as $ from "svelte/internal/client";
|
|
12
12
|
import { onDestroy } from "svelte";
|
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
2
|
-
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
3
|
-
import { t as ClientStore } from "../store-core-
|
|
2
|
+
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CQF-oYSz.js";
|
|
3
|
+
import { t as ClientStore } from "../store-core-DyNo_BwA.js";
|
|
4
4
|
import { n as DescribeMessages } from "../describe-lAafaRQQ.js";
|
|
5
5
|
/** The provider's `defaults` and `messages`. */
|
|
6
6
|
type PermDockUi = {
|
package/dist/svelte/runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
2
2
|
import { d as slotContent } from "../views-Dpr1uB16.js";
|
|
3
|
-
import { n as getUi, t as getStore } from "../context-
|
|
3
|
+
import { n as getUi, t as getStore } from "../context-BdoA9DhS.js";
|
|
4
4
|
import { n as viewFor, t as scopedFor } from "../runtime-Cl6xSbEq.js";
|
|
5
5
|
export { boundaryDigest, boundaryFallback, getStore, getUi, scopedFor, slotContent, viewFor };
|
package/dist/svelte/source.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
1
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-CQF-oYSz.js";
|
|
2
2
|
import { i as describe } from "../describe-lAafaRQQ.js";
|
|
3
3
|
import { c as requiredPlans } from "../errors-DUJ7wLlE.js";
|
|
4
4
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
5
5
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
6
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
6
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-DyFCruRC.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-DJqHADKu.js";
|
|
8
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
8
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-DyNo_BwA.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
export declare const Protected: Component<ProtectedProps>;
|
|
11
11
|
export declare const PermissionBoundary: Component<PermissionBoundaryProps>;
|
package/dist/svelte/source.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
3
3
|
import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
|
|
4
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
5
|
-
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-
|
|
4
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-BtHrfJUU.js";
|
|
5
|
+
import { a as gate, c as memberships, d as protectedAction, f as roles, h as tenant, i as filtered, l as permission, m as subject, n as assignable, o as getDescribe, p as setPermDock, r as assignablePermissions, s as getPermDock, t as approval, u as permissions } from "../stores-BIMyclLg.js";
|
|
6
6
|
import PermissionBoundaryComponent from "./PermissionBoundary.svelte";
|
|
7
7
|
import ProtectedComponent from "./Protected.svelte";
|
|
8
8
|
// src/svelte/source.ts
|
|
@@ -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
|
}
|
|
@@ -2987,6 +2995,25 @@ function checkName(name) {
|
|
|
2987
2995
|
if (new TextEncoder().encode(name).length > 63) throw configError(`PermDock CLI: the helper name ${name} is longer than 63 bytes; use a shorter scope name`);
|
|
2988
2996
|
return name;
|
|
2989
2997
|
}
|
|
2998
|
+
/**
|
|
2999
|
+
* Allows minus denies over one read of the memberships: `body` yields `(id,
|
|
3000
|
+
* grant_key)` per membership, and each key list selects grant keys.
|
|
3001
|
+
*/
|
|
3002
|
+
function setIds(body, allow, deny) {
|
|
3003
|
+
return {
|
|
3004
|
+
sql: ` with pdk_i(id, grant_key) as materialized (
|
|
3005
|
+
${body.sql}
|
|
3006
|
+
)
|
|
3007
|
+
select i.id from pdk_i i where i.grant_key in (
|
|
3008
|
+
${allow}
|
|
3009
|
+
)
|
|
3010
|
+
except
|
|
3011
|
+
select i.id from pdk_i i where i.grant_key in (
|
|
3012
|
+
${deny}
|
|
3013
|
+
)`,
|
|
3014
|
+
vars: body.vars
|
|
3015
|
+
};
|
|
3016
|
+
}
|
|
2990
3017
|
function grantsFunction(ctx, grants, renamed, anonExecute) {
|
|
2991
3018
|
const fn = qualified(ctx, PERMISSION_HELPERS.grantKeys);
|
|
2992
3019
|
const map = Object.fromEntries([...grants].toSorted(byKey));
|
|
@@ -3057,14 +3084,17 @@ function permissionHelpersSql(ctx, grants, renamed, anonExecute) {
|
|
|
3057
3084
|
const denyKeys = (scope) => `${keys}(p_permission, ${quoteLiteral(scope)}, 'deny') g(grant_key)`;
|
|
3058
3085
|
const has = (helper, user) => ` select exists (select 1 from ${allowKeys("global")} where ${helper}(${user}g.grant_key))
|
|
3059
3086
|
and not exists (select 1 from ${denyKeys("global")} where ${helper}(${user}g.grant_key))`;
|
|
3060
|
-
const
|
|
3087
|
+
const keyList = (scope, effect, conditioned) => conditioned === void 0 ? effect === "allow" ? `select g.grant_key from ${allowKeys(scope)}` : `select g.grant_key from ${denyKeys(scope)}` : `select g.grant_key from ${keys}(p_permission, ${quoteLiteral(scope)}, ${quoteLiteral(conditioned)}) g(grant_key)\n where p_conditioned`;
|
|
3088
|
+
const ids = (body, scope) => setIds(body, keyList(scope, "allow"), keyList(scope, "deny"));
|
|
3089
|
+
const conditionedIds = (body, scope) => setIds(body, `${keyList(scope, "allow")}\n union all\n ${keyList(scope, "allow", "conditioned-allow")}`, `${keyList(scope, "deny")}\n except\n ${keyList(scope, "deny", "conditioned-deny")}`);
|
|
3090
|
+
const callIds = (helper, scope, user) => ` select a.id
|
|
3061
3091
|
from ${allowKeys(scope)}
|
|
3062
3092
|
cross join lateral ${helper}(${user}g.grant_key) a(id)
|
|
3063
3093
|
except
|
|
3064
3094
|
select d.id
|
|
3065
3095
|
from ${denyKeys(scope)}
|
|
3066
3096
|
cross join lateral ${helper}(${user}g.grant_key) d(id)`;
|
|
3067
|
-
const
|
|
3097
|
+
const callConditionedIds = (helper, scope, user) => ` select a.id
|
|
3068
3098
|
from (
|
|
3069
3099
|
select g.grant_key from ${allowKeys(scope)}
|
|
3070
3100
|
union all
|
|
@@ -3081,6 +3111,21 @@ function permissionHelpersSql(ctx, grants, renamed, anonExecute) {
|
|
|
3081
3111
|
where p_conditioned
|
|
3082
3112
|
) g
|
|
3083
3113
|
cross join lateral ${helper}(${user}g.grant_key) d(id)`;
|
|
3114
|
+
const setForm = ctx.customRoles === void 0;
|
|
3115
|
+
const byPermission = (fn, params, scope, user, conditioned) => {
|
|
3116
|
+
const returns = `setof ${scopeTypeOf(ctx, scope)}`;
|
|
3117
|
+
if (!setForm) {
|
|
3118
|
+
const helper = qualified(ctx, user === "" ? permittedIdsHelper(scope) : permittedForHelper(scope));
|
|
3119
|
+
return definer(fn, params, returns, (conditioned ? callConditionedIds : callIds)(helper, scope, user));
|
|
3120
|
+
}
|
|
3121
|
+
const bodies = grantBodies({
|
|
3122
|
+
...user === "" ? ctx : forUserContext(ctx),
|
|
3123
|
+
grantSet: true
|
|
3124
|
+
}).ids(scope);
|
|
3125
|
+
return `create or replace function ${fn}(${params})
|
|
3126
|
+
returns ${returns}
|
|
3127
|
+
${functionBody((conditioned ? conditionedIds : ids)(bodies, scope), parallel, true)}`;
|
|
3128
|
+
};
|
|
3084
3129
|
const keysBody = (scope, bodies, filtered) => {
|
|
3085
3130
|
const rows = ["global", scope].flatMap((at) => Object.entries(grants.get(at) ?? {}).toSorted(byKey).flatMap(([key, effects]) => ["allow", "deny"].flatMap((effect) => effects[effect].map((grant) => `(${[
|
|
3086
3131
|
key,
|
|
@@ -3132,7 +3177,7 @@ ${definer(qualified(ctx, PERMISSION_HELPERS.has), "p_permission text", "boolean"
|
|
|
3132
3177
|
${grantsSql(qualified(ctx, PERMISSION_HELPERS.has), "text", anonExecute)}`];
|
|
3133
3178
|
for (const scope of ctx.scopes) {
|
|
3134
3179
|
const fn = qualified(ctx, checkName(permittedByPermissionHelper(scope.name)));
|
|
3135
|
-
chunks.push(`${
|
|
3180
|
+
chunks.push(`${byPermission(fn, "p_permission text", scope.name, "", false)}
|
|
3136
3181
|
${grantsSql(fn, "text", anonExecute)}`);
|
|
3137
3182
|
const keysFn = qualified(ctx, checkName(permissionKeysHelper(scope.name)));
|
|
3138
3183
|
const type = scopeTypeOf(ctx, scope.name);
|
|
@@ -3144,7 +3189,7 @@ ${grantsSql(fn, "text", anonExecute)}`);
|
|
|
3144
3189
|
${keysFunction(keysFn, `p_id ${type}`, keysBody(scope.name, caller, false), grantsSql(keysFn, type, anonExecute), parallel)}
|
|
3145
3190
|
${keysFunction(keysFn, `p_id ${type}, p_keys text[]`, keysBody(scope.name, caller, true), grantsSql(keysFn, `${type}, text[]`, anonExecute), parallel)}`);
|
|
3146
3191
|
chunks.push(`-- with p_conditioned true, also the instances a conditioned allow reaches, minus only unconditional denies: the caller applies the row condition
|
|
3147
|
-
${
|
|
3192
|
+
${byPermission(fn, "p_permission text, p_conditioned boolean", scope.name, "", true)}
|
|
3148
3193
|
${grantsSql(fn, "text, boolean", anonExecute)}`);
|
|
3149
3194
|
}
|
|
3150
3195
|
if (ctx.authorize !== "database") return `${chunks.join("\n\n")}\n`;
|
|
@@ -3156,9 +3201,9 @@ ${definer(hasFor, `p_user ${user}, p_permission text`, "boolean", has(qualified(
|
|
|
3156
3201
|
${revoke(hasFor)}`);
|
|
3157
3202
|
for (const scope of ctx.scopes) {
|
|
3158
3203
|
const fn = qualified(ctx, checkName(`${permittedByPermissionHelper(scope.name)}_for`));
|
|
3159
|
-
chunks.push(`${
|
|
3204
|
+
chunks.push(`${byPermission(fn, `p_user ${user}, p_permission text`, scope.name, "p_user, ", false)}
|
|
3160
3205
|
${revoke(fn)}`);
|
|
3161
|
-
chunks.push(`${
|
|
3206
|
+
chunks.push(`${byPermission(fn, `p_user ${user}, p_permission text, p_conditioned boolean`, scope.name, "p_user, ", true)}
|
|
3162
3207
|
revoke execute on function ${fn}(${user}, text, boolean) from public, anon, authenticated;`);
|
|
3163
3208
|
const keysFor = qualified(ctx, checkName(permissionKeysForHelper(scope.name)));
|
|
3164
3209
|
const type = scopeTypeOf(ctx, scope.name);
|
package/dist/testing/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-
|
|
1
|
+
export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-tEfD0lwu.js";
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, Sr as Princi
|
|
|
2
2
|
import { S as policyMatrix, _ as DescribePolicyConfig, a as OrmParityScenario, b as PolicyMatrixCell, c as RlsFieldsOutcome, d as RlsParityOptions, f as RlsParityReport, g as testRlsParity, h as RlsQueryResult, i as OrmParityRunInput, l as RlsParityCase, m as RlsQueryFn, n as OrmParityOptions, o as testOrmParity, p as RlsParitySubject, r as OrmParityReport, s as RlsDbOutcome, t as OrmParityCase, u as RlsParityFixture, v as MatrixCell, x as PolicyMatrixReport, y as MatrixOutcome } from "../core-CnC47rSf.js";
|
|
3
3
|
import { A as ResourceInit, C as InferPermissionTree, r as Role, w as Permission } from "../vocabulary-FYgI_NoI.js";
|
|
4
4
|
import { l as OperationLookup, n as OperationCoverageOptions } from "../coverage-DL7JCZmb.js";
|
|
5
|
-
import { lt as LegacyCheck } from "../index-
|
|
5
|
+
import { lt as LegacyCheck } from "../index-D1msamx_.js";
|
|
6
6
|
import { C as Limits, D as InstanceCache, a as PermDock, g as PrincipalIdentity, u as SnapshotOptions, v as PrincipalSource, z as ApprovalPolicySource } from "../permdock-Dz3yzWrp.js";
|
|
7
7
|
import { i as Seeds } from "../seeds-uG196Ev4.js";
|
|
8
8
|
import { t as SqlQuery } from "../sql-BYYNi1lu.js";
|
|
@@ -14,12 +14,12 @@ import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-sGl1c
|
|
|
14
14
|
import { t as CloudApproverOptions } from "../types-D3tjoLwT.js";
|
|
15
15
|
import { c as AccessReviewStore } from "../types-BFtFaI1W.js";
|
|
16
16
|
import { t as supabaseMembershipsBudget } from "../budget-5LJ8kfZk.js";
|
|
17
|
-
import { R as IdempotencyStore } from "../index-
|
|
17
|
+
import { R as IdempotencyStore } from "../index-BSJoxaOi.js";
|
|
18
18
|
import { g as SetQueue, l as ReplayStore } from "../types-Cakw89Wx.js";
|
|
19
19
|
import { S as SsfStreamStore } from "../index-O0qbI8Ha.js";
|
|
20
20
|
import { s as PolicySource } from "../hosted-DUbuh0Td.js";
|
|
21
21
|
import { l as VersionStore, n as SubjectCache, s as VersionCache } from "../subject-cache-BZeSj4Xf.js";
|
|
22
|
-
import { r as SnapshotStorage } from "../types-
|
|
22
|
+
import { r as SnapshotStorage } from "../types-4wjWMSFM.js";
|
|
23
23
|
import { a as AutomationSource, t as Automation } from "../automation-CUcWz8uu.js";
|
|
24
24
|
import { s as SupportSessionSource } from "../index-DegTwZxD.js";
|
|
25
25
|
import { n as ApprovalWaiter } from "../waiter-hYLJXA7r.js";
|
package/dist/testing/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-
|
|
1
|
+
import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-tEfD0lwu.js";
|
|
2
2
|
import { t as fromSnapshot } from "../from-snapshot-CCDF_ihX.js";
|
|
3
3
|
import { t as getPermDock } from "../permdock-BueSeg7X.js";
|
|
4
4
|
import { n as parseSnapshot } from "../snapshot-DckMnHk8.js";
|
|
5
5
|
import { t as operationCoverage } from "../coverage-nFSMjFxH.js";
|
|
6
|
-
import { C as approvalPoliciesFor, E as memoryCustomRoleSource, d as snapshotFor } from "../src-
|
|
7
|
-
import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-
|
|
8
|
-
import { i as saasPermissions } from "../permissions-
|
|
6
|
+
import { C as approvalPoliciesFor, E as memoryCustomRoleSource, d as snapshotFor } from "../src-BAYcigFU.js";
|
|
7
|
+
import { C as saasOrg, E as saasSeed, S as saasMemberships, a as saasProject, g as verifySaasSession, h as signSaasToken, k as saasPolicy, t as saasDoc, w as saasPrincipal, x as saasCustomRoles } from "../saas-CUwmgUB8.js";
|
|
8
|
+
import { i as saasPermissions } from "../permissions-Bj3DRIEi.js";
|
|
9
9
|
import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-T4GaBh9X.js";
|
|
10
10
|
import { o as resolveApproval } from "../helpers-DSmj6SHi.js";
|
|
11
11
|
import { c as problemFromDecision } from "../problem-BZB7zPC7.js";
|
|
@@ -27,7 +27,7 @@ import { c as mergeHostedGrants, l as parsePolicyDocument } from "../hosted-DMJK
|
|
|
27
27
|
import { t as catalogFingerprint } from "../catalog-fingerprint-DAWZARy6.js";
|
|
28
28
|
import { n as discoverAuthorizationServer } from "../device-f3JEnqa0.js";
|
|
29
29
|
import { t as POLICY_NOT_PUBLISHED } from "../problem-types-81BEw0IN.js";
|
|
30
|
-
import { t as require__2020 } from "../2020-
|
|
30
|
+
import { t as require__2020 } from "../2020-DBXhfpuK.js";
|
|
31
31
|
import { t as APPROVAL_REQUEST_SCHEMA } from "../request-schema-DzEoR310.js";
|
|
32
32
|
import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-rpB6k77P.js";
|
|
33
33
|
import { n as supabaseMembershipsBudget } from "../budget-BH81q2cj.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-
|
|
2
|
-
import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-
|
|
1
|
+
import { a as saasPlans, c as rowSchema, i as saasPermissions, n as SaasFolderSchema, o as saasRoles, r as SaasProjectSchema, s as saasTenantRoleNames, t as SaasDocSchema } from "../../permissions-Bj3DRIEi.js";
|
|
2
|
+
import { C as saasOrg, D as saasUsers, E as saasSeed, O as SAAS_API_KEY_LIMIT, S as saasMemberships, T as saasRelations, _ as verifySaasToken, a as saasProject, b as SAAS_EXPIRED_AT, c as saasUser, d as saasIssuer, f as saasJwks, g as verifySaasSession, h as signSaasToken, i as saasLimitStore, k as saasPolicy, l as SAAS_TOKEN_TTL_SECONDS, m as saasPublicJwk, n as saasFolder, o as saasScenarioOptions, p as saasPrivateJwk, r as saasFolderScenarios, s as saasScenarios, t as saasDoc, u as saasAudience, v as saasSchemaSql, w as saasPrincipal, x as saasCustomRoles, y as saasSeedSql } from "../../saas-CUwmgUB8.js";
|
|
3
3
|
export { SAAS_API_KEY_LIMIT, SAAS_EXPIRED_AT, SAAS_TOKEN_TTL_SECONDS, SaasDocSchema, SaasFolderSchema, SaasProjectSchema, rowSchema, saasAudience, saasCustomRoles, saasDoc, saasFolder, saasFolderScenarios, saasIssuer, saasJwks, saasLimitStore, saasMemberships, saasOrg, saasPermissions, saasPlans, saasPolicy, saasPrincipal, saasPrivateJwk, saasProject, saasPublicJwk, saasRelations, saasRoles, saasScenarioOptions, saasScenarios, saasSchemaSql, saasSeed, saasSeedSql, saasTenantRoleNames, saasUser, saasUsers, signSaasToken, verifySaasSession, verifySaasToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-
|
|
1
|
+
export { t as SaasDocSchema, n as SaasFolderSchema, r as SaasProjectSchema, i as saasPermissions, a as saasPlans, o as saasRoles, s as saasTenantRoleNames } from "../../permissions-Bj3DRIEi.js";
|
|
@@ -27,7 +27,7 @@ var Diff = class {
|
|
|
27
27
|
let editLength = 1;
|
|
28
28
|
let maxEditLength = newLen + oldLen;
|
|
29
29
|
if (options.maxEditLength != null) maxEditLength = Math.min(maxEditLength, options.maxEditLength);
|
|
30
|
-
const maxExecutionTime = (_a = options.timeout) !== null && _a !== void 0 ? _a :
|
|
30
|
+
const maxExecutionTime = (_a = options.timeout) !== null && _a !== void 0 ? _a : 1e400;
|
|
31
31
|
const abortAfterTimestamp = Date.now() + maxExecutionTime;
|
|
32
32
|
const bestPath = [{
|
|
33
33
|
oldPos: -1,
|
|
@@ -35,7 +35,7 @@ var Diff = class {
|
|
|
35
35
|
}];
|
|
36
36
|
let newPos = this.extractCommon(bestPath[0], newTokens, oldTokens, 0, options);
|
|
37
37
|
if (bestPath[0].oldPos + 1 >= oldLen && newPos + 1 >= newLen) return done(this.buildValues(bestPath[0].lastComponent, newTokens, oldTokens));
|
|
38
|
-
let minDiagonalToConsider = -
|
|
38
|
+
let minDiagonalToConsider = -1e400, maxDiagonalToConsider = 1e400;
|
|
39
39
|
const execEditLength = () => {
|
|
40
40
|
for (let diagonalPath = Math.max(minDiagonalToConsider, -editLength); diagonalPath <= Math.min(maxDiagonalToConsider, editLength); diagonalPath += 2) {
|
|
41
41
|
let basePath;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as ClientStoreOptions } from "./store-core-
|
|
1
|
+
import { n as ClientStoreOptions } from "./store-core-DyNo_BwA.js";
|
|
2
2
|
import { n as DescribeMessages } from "./describe-lAafaRQQ.js";
|
|
3
3
|
import { tn as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-93NwI8iI.js";
|
|
4
|
-
import { t as PermDockDefaults } from "./types-
|
|
4
|
+
import { t as PermDockDefaults } from "./types-PS10T9UK.js";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
type SnapshotStorage = {
|
|
7
7
|
/** Names the implementation in errors and events. */
|
|
@@ -2,7 +2,7 @@ import { Jt as ClientBundle, Qn as Decision, Zn as ApprovalRequiredDecision, ir
|
|
|
2
2
|
import { w as Permission } from "./vocabulary-FYgI_NoI.js";
|
|
3
3
|
import { a as PermDock } from "./permdock-Dz3yzWrp.js";
|
|
4
4
|
import { t as PermissionBoundaryState } from "./boundary-DJqHADKu.js";
|
|
5
|
-
import { f as PermissionState, h as ProviderOptionsBase, m as ProtectedActionView, t as ClientStore, y as ActionResult } from "./store-core-
|
|
5
|
+
import { f as PermissionState, h as ProviderOptionsBase, m as ProtectedActionView, t as ClientStore, y as ActionResult } from "./store-core-DyNo_BwA.js";
|
|
6
6
|
import { Snippet } from "svelte";
|
|
7
7
|
import { Readable } from "svelte/store";
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClientStoreOptions } from "./store-core-
|
|
1
|
+
import { n as ClientStoreOptions } from "./store-core-DyNo_BwA.js";
|
|
2
2
|
import { Jt as ClientBundle, Qn as Decision, Zn as ApprovalRequiredDecision, ir as GrantedDecision, tn as Snapshot, vt as TokenVerifier } from "./policy-types-93NwI8iI.js";
|
|
3
3
|
import { n as DescribeMessages } from "./describe-lAafaRQQ.js";
|
|
4
4
|
import { s as RowData } from "./permdock-Dz3yzWrp.js";
|