permdock 0.19.0 → 0.20.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/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +3 -3
- package/dist/{adoption-scan-C_VQ-J2f.js → adoption-scan-BTG9Noyy.js} +1 -1
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +3 -3
- package/dist/ai-sdk/index.js +3 -3
- package/dist/{approval-policies-CYqdqAob.d.ts → approval-policies-CKlByf5o.d.ts} +1 -1
- package/dist/{approval-prompt-BxYbwOAU.d.ts → approval-prompt-CQFiO1KE.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-Dc969CA2.js → arazzo-CDXfX4u0.js} +1 -1
- package/dist/{arazzo-4vfaXj0U.js → arazzo-D4mKdaWI.js} +2 -2
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/{audience-GCXRRAeZ.js → audience-BUonniPx.js} +1 -1
- package/dist/authzen/index.d.ts +5 -5
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-BJiJT_Xr.d.ts → automation-CpOk7Tlu.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-auth/index.js +1 -1
- package/dist/better-supabase/index.d.ts +10 -10
- package/dist/better-supabase/index.js +5 -5
- package/dist/{bind-SpRxR213.d.ts → bind-CW7nsZ86.d.ts} +7 -7
- package/dist/{bind-BnKPWRrE.js → bind-gwEbe9hL.js} +3 -3
- package/dist/{build-instance-DrIbZVnm.js → build-instance-DaBdCRiz.js} +1 -1
- package/dist/{capability-Ci2S8Cdu.d.ts → capability-v2xZB7us.d.ts} +1 -1
- package/dist/{casbin-ChbpgfNR.js → casbin-BXlRcCdU.js} +1 -1
- package/dist/{casbin-C1TQqWkK.js → casbin-COUi09Ti.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/catalog/index.js +4 -4
- package/dist/{challenge-D57I5G1k.js → challenge-DbkpCx_v.js} +1 -1
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +2 -2
- package/dist/cli/bin.js +1 -1
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/cloud/index.js +1 -1
- package/dist/{cloud-Dgj4FiEG.js → cloud-BW7JKfrF.js} +2 -2
- package/dist/{codemod-DN_fBt43.js → codemod-6CBQaT0x.js} +2 -2
- package/dist/{codemod-WWxwgM77.js → codemod-CR9EQBVd.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-RaRUQhmD.d.ts → compile-DZftFfXc.d.ts} +2 -2
- package/dist/{completion-DnmUvCw0.js → completion-CYRlOJzv.js} +1 -1
- package/dist/{config-CmuEoob8.js → config-6iLK155o.js} +1 -1
- package/dist/{config-report-BVm8Dhbj.js → config-report-BLroaWCe.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-DNRWXyj4.d.ts → core-BOeGWbcR.d.ts} +2 -2
- package/dist/{core-ZIWZBi6-.js → core-BwVkrpsi.js} +3 -3
- package/dist/{create-BECB6fns.d.ts → create-BezeYFcT.d.ts} +6 -6
- package/dist/{create-CAZyXZFC.js → create-C0R8omeF.js} +3 -3
- package/dist/{create-CegYmYHu.js → create-DDUFG1ul.js} +3 -3
- package/dist/{create-0B_bjJc-.d.ts → create-DMCC5ZOi.d.ts} +7 -7
- package/dist/{create-DJ_5REgN.d.ts → create-DYSYYiLr.d.ts} +4 -4
- package/dist/delivery/index.d.ts +4 -4
- package/dist/delivery/index.js +1 -1
- package/dist/{denied-text-CF-2h8Vz.d.ts → denied-text-De8cw3MW.d.ts} +1 -1
- package/dist/{describe-DyN-HX6o.d.ts → describe-DibQM6g-.d.ts} +1 -1
- package/dist/{diff-BOU7sSnv.js → diff-Bd1-VCe5.js} +2 -2
- package/dist/{diff-BrmvcPXk.js → diff-DXRNcjpg.js} +1 -1
- package/dist/{doctor-BhhNMkU8.js → doctor-CJcS0Mrq.js} +68 -16
- package/dist/{doctor-CL1OigyD.js → doctor-DYTgibLC.js} +2 -2
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/elysia/index.d.ts +4 -4
- package/dist/elysia/index.js +1 -1
- package/dist/{errors-POWcCXy7.d.ts → errors-OTE9u4Wk.d.ts} +1 -1
- package/dist/{evaluate-CrKkjgXS.js → evaluate-Dcq_U2TV.js} +2 -2
- package/dist/{evaluations--rkKhMqY.d.ts → evaluations-BgxEfPL7.d.ts} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/express/index.d.ts +4 -4
- package/dist/express/index.js +1 -1
- package/dist/fastify/index.d.ts +4 -4
- package/dist/fastify/index.js +1 -1
- package/dist/{fetch-adapter-Bq4AB3W2.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
- package/dist/{fetch-adapter-Bm1iZolz.js → fetch-adapter-acq4dPX3.js} +1 -1
- package/dist/{fields-COvJbUva.js → fields-D_TfExiI.js} +1 -1
- package/dist/{gen-D0NqzeOP.js → gen-CH50v9VI.js} +1 -1
- package/dist/{gen-DonXr9Hg.js → gen-gv_WHBIG.js} +1 -1
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hosted-iOGBI_ER.js → hosted-C2Pmhy2x.js} +2 -2
- package/dist/{hosted-H1xp5Dfw.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
- package/dist/{import-DNaFHm53.js → import-BlwuuZkr.js} +1 -1
- package/dist/{import-C8ffNykt.js → import-C2ExjVvv.js} +46 -2
- package/dist/{index-C2pmTzFx.d.ts → index--AwSBzJC.d.ts} +2 -2
- package/dist/{index-DLlWORcK.d.ts → index-B_I6N8Ju.d.ts} +4 -4
- package/dist/{index-B9-ZXNa-.d.ts → index-Bt37QovT.d.ts} +4 -4
- package/dist/{index-C5Tfpjex.d.ts → index-CLbGOPBr.d.ts} +1 -1
- package/dist/{index-DZnpRB0q.d.ts → index-CruReRkB.d.ts} +4 -4
- package/dist/{index-Cm6mHTZ-.d.ts → index-D7xGi1LS.d.ts} +16 -8
- package/dist/index.d.ts +16 -16
- package/dist/index.js +8 -8
- package/dist/{init-QfBfkrGu.js → init-B62H9Kyx.js} +1 -1
- package/dist/{init-4aRjat-S.js → init-CalppFAI.js} +3 -3
- package/dist/{instance-options-D6hyIKJF.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
- package/dist/{instance-snapshot-DXxcizAb.js → instance-snapshot-SX8zH_1t.js} +2 -2
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-B2UCK36Z.js → kernel-_QEUOSU0.js} +4 -4
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{login-Cg1la2yJ.js → login-MxQV1BLh.js} +3 -3
- package/dist/{login-lPtJIjbO.js → login-dDb_8muO.js} +1 -1
- package/dist/{manifest-CDhdXgf6.js → manifest-DvDzxhy6.js} +33 -33
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +3 -3
- package/dist/{migrate-BbY5-Khy.js → migrate-CkLHdwuH.js} +1 -1
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +10 -10
- package/dist/next/index.js +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/node/index.d.ts +4 -4
- package/dist/node/index.js +1 -1
- package/dist/openai/index.d.ts +4 -4
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +2 -2
- package/dist/{openapi-C3BIVLTd.js → openapi-BkGtE5kX.js} +2 -2
- package/dist/{openapi-Cr0B3p2h.js → openapi-DKePsnln.js} +2 -2
- package/dist/orpc/index.d.ts +5 -5
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.d.ts +3 -3
- package/dist/{output-DYq_o2dM.js → output-B2h-2g3F.js} +1 -1
- package/dist/{ownership-CrmMERZv.js → ownership-MGHa5vfX.js} +3 -2
- package/dist/{parse-local-manifest-CQjRmzrw.d.ts → parse-local-manifest-CE4tgFsj.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-DeOfonuG.js → permdock-C1DN_7a-.js} +3 -3
- package/dist/{permdock-B45vPQb4.d.ts → permdock-D4F2p5J8.d.ts} +3 -3
- package/dist/{permissions-Rk9_Gm04.js → permissions-8N2yFsUM.js} +1 -1
- package/dist/{policy-DTmkP72P.js → policy-CaAME-Rh.js} +1 -1
- package/dist/{policy-re2Oag8s.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
- package/dist/{policy-from-catalog-Cljh_B5H.js → policy-from-catalog-CUNlpgz0.js} +4 -4
- package/dist/{policy-types-Ky7P23CP.d.ts → policy-types-BI9C5Sp5.d.ts} +8 -0
- package/dist/{postgrest-pwxeaeOW.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
- package/dist/{powersync-BoqBik-G.js → powersync-CB8RwcB4.js} +7 -7
- package/dist/powersync-Cs1E04s6.js +1 -0
- package/dist/{powersync-PKC4yT62.js → powersync-Deim9O47.js} +2 -2
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-DHPqBLhz.d.ts → protected-action-ua0cx5cW.d.ts} +5 -5
- package/dist/{provider-C-CbGEii.d.ts → provider-D_hgjZRa.d.ts} +1 -1
- package/dist/pull-BLT25Y5C.js +1 -0
- package/dist/{pull-FG0Tf8aF.js → pull-BxqVL4Es.js} +1 -1
- package/dist/{push-CI5G7lRS.js → push-D2SsRW0U.js} +1 -1
- package/dist/{pushed-policy-DftSiyD3.js → pushed-policy-BERO0x9O.js} +1 -1
- package/dist/{pushed-policy-B94r9DlN.d.ts → pushed-policy-P0hgyLBh.d.ts} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/{replay-BqmXcP7x.d.ts → replay-DYXI4gRN.d.ts} +1 -1
- package/dist/{request-context-uvaevbBu.js → request-context-BPTi68z5.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-Dg8560iu.js → resolve-names-BZQZRnMH.js} +3 -3
- package/dist/{rls-DJSczevJ.js → rls-DpoJ5gCg.js} +1 -1
- package/dist/{rls-CJbWbxXv.js → rls-OPorg_2G.js} +13 -13
- package/dist/{role-builder-C_2kWB_x.js → role-builder-C5AgaC1x.js} +17 -2
- package/dist/{rpc-D7cDHIVE.d.ts → rpc-D2LnFELm.d.ts} +1 -1
- package/dist/{rpc-m5hPklf-.js → rpc-DdkbQVlT.js} +1 -1
- package/dist/run-CW0QsyA9.js +1 -0
- package/dist/{run-BigMDvGR.js → run-YCpANf1B.js} +2 -2
- package/dist/{run-ticket-DRA3POCY.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
- package/dist/{saas-BHeoBqbW.js → saas-BEXnrH9H.js} +4 -4
- package/dist/{scan-BKLwCSVV.js → scan-COvn7ZjN.js} +1 -1
- package/dist/{schema-CLuBlCCr.js → schema-BfSDo7Xj.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +1 -1
- package/dist/{server-types-CwpJe664.d.ts → server-types-ChzXWU4Y.d.ts} +8 -8
- package/dist/{shared-DyYVEjKC.js → shared-sW3VYchq.js} +2 -1
- package/dist/{sink-7Lrch8dn.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
- package/dist/{skills-D42EyC8G.js → skills-Ce4C2dq1.js} +1 -1
- package/dist/{skills-CyD_3eoi.js → skills-N2Hd8KN8.js} +1 -1
- package/dist/{snapshot-cache-B9weL8NE.d.ts → snapshot-cache-MPinwwgZ.d.ts} +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/solid-start/index.d.ts +4 -4
- package/dist/solid-start/index.js +2 -2
- package/dist/{sources-4d3fl7cq.d.ts → sources-sgQlMfmz.d.ts} +1 -1
- package/dist/{src-HDDf9Eum.js → src-B8SQNsvw.js} +8 -6
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-BGi8pUwo.d.ts → standard-webhooks-CFZIYtBF.d.ts} +2 -2
- package/dist/{store-CjJaZI_g.d.ts → store-Dpg_fSNQ.d.ts} +4 -4
- package/dist/{stores-Cam6GGAV.d.ts → stores-C2A6KsxE.d.ts} +5 -5
- package/dist/supabase/index.d.ts +5 -5
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +4 -4
- package/dist/supabase-hook-7XxWGHQF.js +1 -0
- package/dist/{supabase-hook-Btk56XD6.js → supabase-hook-BCSwK5x-.js} +11 -6
- package/dist/{supabase-DBuZK2pP.js → supabase-zL7PC3RG.js} +2 -2
- package/dist/{supautils-lwXmXPP_.js → supautils-7UES0i4a.js} +68 -9
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/source.d.ts +5 -5
- package/dist/sveltekit/index.d.ts +4 -4
- package/dist/sveltekit/index.js +1 -1
- package/dist/{tables-B72q9UFD.js → tables-DSX_Ma_n.js} +329 -68
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/terminal/index.d.ts +5 -5
- package/dist/terminal/index.js +2 -2
- package/dist/testing/core.d.ts +1 -1
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/index.js +11 -11
- package/dist/testing/saas/index.d.ts +3 -3
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/trpc/index.d.ts +5 -5
- package/dist/trpc/index.js +2 -2
- package/dist/{type-helpers-CDxxNswo.d.ts → type-helpers-BjOLGVy1.d.ts} +1 -1
- package/dist/{types-CChFKY10.d.ts → types--_lpWUGV.d.ts} +4 -4
- package/dist/{types--HfnkawU.d.ts → types-BzxA2OAD.d.ts} +1 -1
- package/dist/{types-Bwdumeos.d.ts → types-C5p2hoBR.d.ts} +3 -3
- package/dist/{types-BVn1w_0o.d.ts → types-CMclYgSk.d.ts} +2 -2
- package/dist/{types-BwuNGQRm.d.ts → types-D1NjjwI4.d.ts} +1 -1
- package/dist/{types-g0Vk9k2c.d.ts → types-D8JVDWOr.d.ts} +2 -2
- package/dist/{types-oaqeYKQu.d.ts → types-DBVSljAx.d.ts} +2 -2
- package/dist/{types-Do4yihST.d.ts → types-DZwEOsK1.d.ts} +1 -1
- package/dist/{types-BlYPxJDR.d.ts → types-DnzRZjEu.d.ts} +4 -4
- package/dist/{types-OLSfBLa5.d.ts → types-Drs3OOAy.d.ts} +4 -4
- package/dist/{types-Do8qBcRO.d.ts → types-p8mhWTcR.d.ts} +3 -3
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/{usage-BLhhEPcZ.js → usage-BcAqmjkj.js} +1 -1
- package/dist/usage-BdIS9NfN.js +1 -0
- package/dist/{usage-C-wta3rx.js → usage-CUnw73Y-.js} +5 -3
- package/dist/{validation-error-AhCHeeff.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
- package/dist/{verify-CaaZlnP5.js → verify-V08pirDB.js} +10 -10
- package/dist/{version-cache-Ddvrfn1R.d.ts → version-cache-q5cpaDSt.d.ts} +1 -1
- package/dist/vue/index.d.ts +5 -5
- package/dist/{waiter-CROiWRIP.d.ts → waiter-BjVI_Byg.d.ts} +2 -2
- package/dist/webmcp/index.d.ts +1 -1
- package/dist/{who-can-jPfTABf-.js → who-can-CZeAwQZD.js} +1 -1
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +1 -1
- package/dist/workflow-sdk/index.d.ts +4 -4
- package/dist/{wrap-C-4o-Dpy.d.ts → wrap-CE5lxje7.d.ts} +2 -2
- package/package.json +1 -1
- package/skills/permdock-data/SKILL.md +1 -1
- package/skills/permdock-data/references/queries-and-rls.md +2 -0
- package/dist/powersync-B96MUB_Q.js +0 -1
- package/dist/pull-BjdsS9x1.js +0 -1
- package/dist/run-4m-TyVTD.js +0 -1
- package/dist/supabase-hook-2M-EpoRp.js +0 -1
- package/dist/usage-Csc_ZRd0.js +0 -1
package/dist/server/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { t as memoryReplayStore } from "../replay-BU09ad4L.js";
|
|
|
6
6
|
import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-B66h7FBK.js";
|
|
7
7
|
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
8
8
|
import { n as tenantScope } from "../adapter-context-OHikyRqV.js";
|
|
9
|
-
import { t as createPermDock } from "../create-
|
|
9
|
+
import { t as createPermDock } from "../create-DDUFG1ul.js";
|
|
10
10
|
import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-D0PW6ZCw.js";
|
|
11
11
|
import { i as subjectFromRunTicket, n as parseRunTicket, r as signRunTicket, t as RUN_TICKET_CLAIMS } from "../run-ticket-CjvXr6wj.js";
|
|
12
12
|
import { t as problemFromError } from "../map-error-EOhahOVA.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Q as Intent, Yn as Decision, _r as JsonWebKeyLike, an as SnapshotTenants, en as Snapshot, lr as Actor, qt as Instant, xr as Subject } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, Q as Intent, Yn as Decision, _r as JsonWebKeyLike, an as SnapshotTenants, en as Snapshot, lr as Actor, qt as Instant, xr as Subject } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock, u as SnapshotOptions } from "./permdock-
|
|
4
|
-
import { m as ApprovalStore } from "./types
|
|
5
|
-
import { a as ProblemDetails, t as ApprovalHint } from "./errors-
|
|
6
|
-
import { t as InstanceOptions } from "./instance-options-
|
|
3
|
+
import { a as PermDock, u as SnapshotOptions } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { m as ApprovalStore } from "./types-BzxA2OAD.js";
|
|
5
|
+
import { a as ProblemDetails, t as ApprovalHint } from "./errors-OTE9u4Wk.js";
|
|
6
|
+
import { t as InstanceOptions } from "./instance-options-VPsNQsTH.js";
|
|
7
7
|
import { t as RequestContext } from "./request-context-C2_1lchh.js";
|
|
8
|
-
import { n as PermDockWrap } from "./wrap-
|
|
8
|
+
import { n as PermDockWrap } from "./wrap-CE5lxje7.js";
|
|
9
9
|
import { n as RevocationFeed } from "./revocations-BaUXHM1N.js";
|
|
10
|
-
import { r as PdpFactory } from "./types-
|
|
11
|
-
import { i as evaluationsHandler } from "./evaluations
|
|
10
|
+
import { r as PdpFactory } from "./types-CMclYgSk.js";
|
|
11
|
+
import { i as evaluationsHandler } from "./evaluations-BgxEfPL7.js";
|
|
12
12
|
//#region src/server/connection.d.ts
|
|
13
13
|
type ConnectionData<T> = T | (() => T | null | undefined | Promise<T | null | undefined>);
|
|
14
14
|
type ConnectionOptions<T = unknown> = {
|
|
@@ -288,7 +288,8 @@ function customRolesOn(rls) {
|
|
|
288
288
|
*/
|
|
289
289
|
const HELPERS = {
|
|
290
290
|
has: "permdock_has",
|
|
291
|
-
hasFor: "permdock_has_for"
|
|
291
|
+
hasFor: "permdock_has_for",
|
|
292
|
+
tokenCurrent: "permdock_token_current"
|
|
292
293
|
};
|
|
293
294
|
/**
|
|
294
295
|
* Objects `--custom-roles` adds next to the helpers. Names are part of the SQL
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as SinkEvent, _t as TokenSigner, cn as AutomationEvent, gn as MembershipEvent, ln as CredentialEvent, on as AccessEvent } from "./policy-types-
|
|
1
|
+
import { Mt as Credential, Tt as SupportSession, X as DecisionSink, _n as SinkEvent, _t as TokenSigner, cn as AutomationEvent, gn as MembershipEvent, ln as CredentialEvent, on as AccessEvent } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { M as AppData } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { u as OperationRisk } from "./operations-Ci_rT6Uo.js";
|
|
4
|
-
import { t as Automation } from "./automation-
|
|
4
|
+
import { t as Automation } from "./automation-CpOk7Tlu.js";
|
|
5
5
|
//#region src/core/sink.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The closed list of CloudEvents `type` values, `com.permdock.<family>` or
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-L8EstFNm.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-BlmpmXoY.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-BYc6drYW.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-N2Hd8KN8.js";
|
|
5
5
|
//#region src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -2,7 +2,7 @@ import { t as byCodePoint } from "./compare-DTfyUunF.js";
|
|
|
2
2
|
import { i as readJsonFile } from "./files-BSjrtIHw.js";
|
|
3
3
|
import { l as packageRoot } from "./version-DMQ0dnN5.js";
|
|
4
4
|
import { t as didYouMean } from "./args-iafbHiXn.js";
|
|
5
|
-
import { a as nonEmptyOr } from "./output-
|
|
5
|
+
import { a as nonEmptyOr } from "./output-B2h-2g3F.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, realpathSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
8
8
|
import { pathToFileURL } from "node:url";
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, tr as GrantedDecision, vr as Membership, vt as TokenVerifier } from "../policy-types-
|
|
1
|
+
import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, tr as GrantedDecision, vr as Membership, vt as TokenVerifier } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { r as Role } from "../vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "../permdock-
|
|
5
|
-
import { c as requiredPlans } from "../errors-
|
|
6
|
-
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "../permdock-D4F2p5J8.js";
|
|
5
|
+
import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
|
|
6
|
+
import { i as describe, r as DescribeOptions, t as DecisionDescription } from "../describe-DibQM6g-.js";
|
|
7
7
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
8
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
8
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, m as ProviderOptionsBase, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-Dpg_fSNQ.js";
|
|
9
9
|
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-L9UOwATg.js";
|
|
10
10
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
11
11
|
import { Accessor, Accessor as Accessor$1, JSX } from "solid-js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
6
|
+
import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-DCQ4pZxf.js";
|
|
7
7
|
import { APIEvent, FetchEvent } from "@solidjs/start/server";
|
|
8
8
|
//#region src/solid-start/create.d.ts
|
|
9
9
|
/** The h3 event under every SolidStart request; `subject` and `scope` read it. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
2
|
-
import { i as decorate } from "../bind-
|
|
3
|
-
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { i as decorate } from "../bind-gwEbe9hL.js";
|
|
3
|
+
import { n as guardedRoute, t as fetchAdapter } from "../fetch-adapter-acq4dPX3.js";
|
|
4
4
|
//#region src/solid-start/create.ts
|
|
5
5
|
/**
|
|
6
6
|
* `event.locals`. Its type, `App.RequestEventLocals`, is declared by
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { it as MembershipSource, sn as AuthEvent, yr as Principal } from "./policy-types-
|
|
1
|
+
import { it as MembershipSource, sn as AuthEvent, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { t as ClaimsMap } from "./claims-map-D1Pb5oRq.js";
|
|
3
3
|
import { t as ClientNames } from "./clients-C_NOET3z.js";
|
|
4
4
|
import { c as SupabaseManifestMembership } from "./manifest-B5yF3CIq.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { n as freezeDeep } from "./freeze-jjan0lCv.js";
|
|
3
3
|
import { r as ownGet } from "./paths-CUvURzHp.js";
|
|
4
|
-
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, u as assertPortableTwin } from "./role-builder-
|
|
4
|
+
import { d as assertSqlFunctionArg, f as assertSqlFunctionName, l as normalizeWhere, p as assertSqlFunctionSet, u as assertPortableTwin } from "./role-builder-C5AgaC1x.js";
|
|
5
5
|
import { n as PermDockDeniedError } from "./errors-ynga1EQy.js";
|
|
6
6
|
import { o as sameId } from "./expiry-6XByK0dm.js";
|
|
7
7
|
import { n as internalsOf } from "./internals-B3IgHrvo.js";
|
|
@@ -15,16 +15,16 @@ import { u as evaluateCondition } from "./delegation-aK4T_5WU.js";
|
|
|
15
15
|
import { _ as listPlans, a as authenticated, m as findRole, o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
16
16
|
import { a as normalizeApproval, r as assertApprovalRelations } from "./approval-normalize-hlfO9BJv.js";
|
|
17
17
|
import { m as tenantsOf, r as isMembershipExpired } from "./tenancy-DvOHHk3-.js";
|
|
18
|
-
import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-
|
|
19
|
-
import { o as isPortableCondition } from "./hosted-
|
|
18
|
+
import { c as levelNames, i as grantList, n as declaredRoleNames } from "./policy-CaAME-Rh.js";
|
|
19
|
+
import { o as isPortableCondition } from "./hosted-C2Pmhy2x.js";
|
|
20
20
|
import { n as isOperationRisk } from "./operation-risks-BKOcTv8J.js";
|
|
21
21
|
import { n as isOperationEffect } from "./operations-Bm9HFecz.js";
|
|
22
|
-
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-
|
|
23
|
-
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-
|
|
22
|
+
import { C as tenantCustomRoles, S as roleAllowKeys, f as customRoleId, l as ceilingGrants, m as customRoleScope, p as customRoleOf, x as resolveCustomRole } from "./evaluate-Dcq_U2TV.js";
|
|
23
|
+
import { a as heldLevels, f as bindingOf, h as usesAssigns, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, p as rankRoles, r as assignableCandidates, t as snapshotOf } from "./instance-snapshot-SX8zH_1t.js";
|
|
24
24
|
import { n as relationId } from "./relations-BxvRvDHK.js";
|
|
25
25
|
import { i as snapshotGrant, r as plainPermission, t as buildSnapshot } from "./snapshot-DHPih65J.js";
|
|
26
26
|
import { n as LOCAL_CUSTOM_ROLE } from "./parse-local-manifest-Ce2N-Opr.js";
|
|
27
|
-
import { c as APP, r as resolveSubject } from "./permdock-
|
|
27
|
+
import { c as APP, r as resolveSubject } from "./permdock-C1DN_7a-.js";
|
|
28
28
|
import { i as memoryApprovalStore } from "./store-CSOsXd5s.js";
|
|
29
29
|
import { n as wrapPermDock } from "./wrap-C5PWzgkq.js";
|
|
30
30
|
//#region src/conditions/sql-function.ts
|
|
@@ -32,12 +32,14 @@ function sqlFunction(name, options) {
|
|
|
32
32
|
assertSqlFunctionName(name);
|
|
33
33
|
const args = options.args ?? [];
|
|
34
34
|
for (const arg of args) assertSqlFunctionArg(arg);
|
|
35
|
+
if (options.set !== void 0) assertSqlFunctionSet(options.set);
|
|
35
36
|
const twin = normalizeWhere(options.twin);
|
|
36
37
|
assertPortableTwin(twin);
|
|
37
38
|
return freezeDeep({
|
|
38
39
|
op: "sqlFunction",
|
|
39
40
|
name,
|
|
40
41
|
args,
|
|
42
|
+
...options.set === void 0 ? {} : { set: options.set },
|
|
41
43
|
twin
|
|
42
44
|
});
|
|
43
45
|
}
|
package/dist/ssf/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-
|
|
2
|
-
import { t as memoryReplayStore } from "../replay-
|
|
3
|
-
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index
|
|
1
|
+
import { A as SsfSubject, C as SsfEventName, D as SsfReceiver, E as SsfPermDockOptions, M as SsfTransmitterConfiguration, N as SsfVerification, O as SsfStreamConfiguration, S as SsfEventListener, T as SsfPermDock, _ as SetSubject, a as PollHandle, b as SsfEventHandler, c as PushSetOptions, d as SetDelivery, f as SetDeliveryFailureCause, g as SetQueue, h as SetPollHandlerOptions, i as CaepReason, j as SsfSubjectResolver, k as SsfStreamStatus, l as ReplayStore, m as SetEvent, n as CaepEventName, o as PollOptions, p as SetError, r as CaepInitiatingEntity, s as PollResult, t as CaepCommon, u as RiscEventName, v as SignSetOptions, w as SsfOnEvent, x as SsfEventInput, y as SsfAuditEvent } from "../types-DBVSljAx.js";
|
|
2
|
+
import { t as memoryReplayStore } from "../replay-DYXI4gRN.js";
|
|
3
|
+
import { A as createPermDock, C as memorySsfStreamStore, D as PollSetsResult, E as PollSetsOptions, O as PolledSet, S as SsfStreamStore, T as setPollHandler, _ as SsfFanOut, a as CaepTokenClaimsChange, b as ssfTransmitter, c as RiscEvents, d as caepEvents, f as pushSet, g as FanOutSetOptions, h as streamVerificationEvent, i as CaepEvents, k as pollSets, l as SSF_POLL_DELIVERY, m as signSet, n as CaepCredentialChange, o as RiscAccountDisabled, p as riscEvents, r as CaepDeviceComplianceChange, s as RiscCredentialCompromise, t as CaepAssuranceLevelChange, u as SSF_PUSH_DELIVERY, v as SsfTransmitterOptions, w as memorySetQueue, x as SsfStream, y as fanOutSet } from "../index--AwSBzJC.js";
|
|
4
4
|
export { type CaepAssuranceLevelChange, type CaepCommon, type CaepCredentialChange, type CaepDeviceComplianceChange, type CaepEventName, type CaepEvents, type CaepInitiatingEntity, type CaepReason, type CaepTokenClaimsChange, type FanOutSetOptions, type PollHandle, type PollOptions, type PollResult, type PollSetsOptions, type PollSetsResult, type PolledSet, type PushSetOptions, type ReplayStore, type RiscAccountDisabled, type RiscCredentialCompromise, type RiscEventName, type RiscEvents, SSF_POLL_DELIVERY, SSF_PUSH_DELIVERY, type SetDelivery, type SetDeliveryFailureCause, type SetError, type SetEvent, type SetPollHandlerOptions, type SetQueue, type SetSubject, type SignSetOptions, type SsfAuditEvent, type SsfEventHandler, type SsfEventInput, type SsfEventListener, type SsfEventName, type SsfFanOut, type SsfOnEvent, type SsfPermDock, type SsfPermDockOptions, type SsfReceiver, type SsfStream, type SsfStreamConfiguration, type SsfStreamStatus, type SsfStreamStore, type SsfSubject, type SsfSubjectResolver, type SsfTransmitterConfiguration, type SsfTransmitterOptions, type SsfVerification, caepEvents, createPermDock, fanOutSet, memoryReplayStore, memorySetQueue, memorySsfStreamStore, pollSets, pushSet, riscEvents, setPollHandler, signSet, ssfTransmitter, streamVerificationEvent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-
|
|
2
|
-
import { l as ReplayStore } from "./types-
|
|
1
|
+
import { _r as JsonWebKeyLike, qt as Instant } from "./policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { l as ReplayStore } from "./types-DBVSljAx.js";
|
|
3
3
|
//#region src/server/standard-webhooks.d.ts
|
|
4
4
|
/** The three Standard Webhooks headers a delivery carries. */
|
|
5
5
|
type WebhookHeaders = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, en as Snapshot, hr as Delegation, lr as Actor, vt as TokenVerifier, yr as Principal } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "./permdock-
|
|
4
|
-
import { a as ProblemDetails } from "./errors-
|
|
5
|
-
import { n as DescribeMessages, t as DecisionDescription } from "./describe-
|
|
3
|
+
import { a as PermDock } from "./permdock-D4F2p5J8.js";
|
|
4
|
+
import { a as ProblemDetails } from "./errors-OTE9u4Wk.js";
|
|
5
|
+
import { n as DescribeMessages, t as DecisionDescription } from "./describe-DibQM6g-.js";
|
|
6
6
|
import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
|
|
7
7
|
//#region src/core/action-result.d.ts
|
|
8
8
|
/** What a `protectAction` action resolves to; both members cross to the client. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-
|
|
1
|
+
import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "./permission-types-CAY-GU7e.js";
|
|
3
3
|
import { r as Role } from "./vocabulary-DEJ5j4mR.js";
|
|
4
|
-
import { d as UncheckedData, s as RowData } from "./permdock-
|
|
5
|
-
import { r as DescribeOptions, t as DecisionDescription } from "./describe-
|
|
6
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-
|
|
7
|
-
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-
|
|
4
|
+
import { d as UncheckedData, s as RowData } from "./permdock-D4F2p5J8.js";
|
|
5
|
+
import { r as DescribeOptions, t as DecisionDescription } from "./describe-DibQM6g-.js";
|
|
6
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-Dpg_fSNQ.js";
|
|
7
|
+
import { n as ProtectedActionReadable, r as SveltePermDockOptions } from "./types-C5p2hoBR.js";
|
|
8
8
|
import { Readable } from "svelte/store";
|
|
9
9
|
//#region src/svelte/stores.d.ts
|
|
10
10
|
declare function setPermDock(options: SveltePermDockOptions): ClientPermDock;
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { qt as Instant, xr as Subject } from "../policy-types-
|
|
2
|
-
import { i as ApprovalPolicySource } from "../approval-policies-
|
|
3
|
-
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types
|
|
4
|
-
import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-
|
|
5
|
-
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-
|
|
1
|
+
import { qt as Instant, xr as Subject } from "../policy-types-BI9C5Sp5.js";
|
|
2
|
+
import { i as ApprovalPolicySource } from "../approval-policies-CKlByf5o.js";
|
|
3
|
+
import { a as ApprovalDelegationSource, m as ApprovalStore, u as ApprovalRequest } from "../types-BzxA2OAD.js";
|
|
4
|
+
import { a as SupabaseRpcClient, c as readSubjectRecord, i as SupabaseRpcCaller, n as PostgrestSourcesOptions, o as SupabaseRpcResult, r as SubjectRecord, s as postgrestSources, t as PostgrestSources } from "../postgrest-CWCCbaxm.js";
|
|
5
|
+
import { A as SupabaseSubjectOptions, B as supabaseClaims, C as SupabasePrincipal, D as SupabaseRlsOptions, E as SupabaseRlsMembershipTable, F as SupabaseClaims, I as SupabaseClaimsOptions, L as SupabaseClaimsSchema, M as SupabaseSuspendedScope, N as SupabaseSuspension, O as SupabaseSessionLike, P as SupabaseActClaim, R as SupabaseMembershipClaim, S as SupabasePermissionRef, T as SupabaseRlsConfig, _ as SupabaseActor, a as MembershipStream, b as SupabaseInclude, c as SupabasePostgres, d as supabasePostgresQuery, f as tableMembershipSource, g as SupabaseActiveRow, h as RoleThrough, i as MembershipSql, j as SupabaseSuspendedMembership, k as SupabaseStorage, l as authzVersion, n as MembershipHolders, o as MembershipTableOptions, p as AuthorizeSqlOptions, r as MembershipJunctionOptions, s as SqlMembershipSource, t as AUTHZ_VERSION_TABLE, u as junctionMembershipSource, v as SupabaseActorResult, w as SupabaseRealtime, x as SupabaseMembershipTable, y as SupabaseDelegation, z as SupabasePermDockClaims } from "../sources-sgQlMfmz.js";
|
|
6
6
|
import { _ as hasTokenHook, a as SupabaseManifestActiveRow, c as SupabaseManifestMembership, d as SupabaseManifestResourceNames, f as SupabaseManifestRls, g as SupabaseManifestValue, h as SupabaseManifestThrough, i as SupabaseManifest, l as SupabaseManifestNames, m as SupabaseManifestScopeNames, n as SupabaseHookClaim, o as SupabaseManifestColumn, p as SupabaseManifestRole, r as SupabaseHookManifest, s as SupabaseManifestHelper, t as SupabaseDatabaseManifest, u as SupabaseManifestRequires, v as parseSupabaseManifest } from "../manifest-B5yF3CIq.js";
|
|
7
7
|
import { t as SqlQuery } from "../sql-B80DFdpG.js";
|
|
8
8
|
import { n as supabaseTenantClaim, t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, xr as Subject, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, xr as Subject, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
4
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
3
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
4
|
+
import { t as InstanceOptions } from "../instance-options-VPsNQsTH.js";
|
|
5
5
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
6
|
-
import { i as OpenApiHooks } from "../server-types-
|
|
7
|
-
import { n as ServerAdapterServices } from "../bind-
|
|
6
|
+
import { i as OpenApiHooks } from "../server-types-ChzXWU4Y.js";
|
|
7
|
+
import { n as ServerAdapterServices } from "../bind-CW7nsZ86.js";
|
|
8
8
|
import { FetchHandler, Middleware } from "@supabase/middleware";
|
|
9
9
|
//#region src/supabase/middleware.d.ts
|
|
10
10
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as compact } from "../compact-CAf557ZB.js";
|
|
2
|
-
import { l as withApp } from "../permdock-
|
|
2
|
+
import { l as withApp } from "../permdock-C1DN_7a-.js";
|
|
3
3
|
import { t as composeWraps } from "../wrap-C5PWzgkq.js";
|
|
4
4
|
import { r as credentialSubject } from "../credential-B3Hj4puZ.js";
|
|
5
5
|
import { o as methodNotAllowed } from "../problem-BWP1l86g.js";
|
|
6
|
-
import { r as instanceOptions } from "../build-instance-
|
|
7
|
-
import { t as createPermDock$1 } from "../create-
|
|
8
|
-
import { n as attached } from "../bind-
|
|
6
|
+
import { r as instanceOptions } from "../build-instance-DaBdCRiz.js";
|
|
7
|
+
import { t as createPermDock$1 } from "../create-DDUFG1ul.js";
|
|
8
|
+
import { n as attached } from "../bind-gwEbe9hL.js";
|
|
9
9
|
import { defineMiddleware } from "@supabase/middleware";
|
|
10
10
|
//#region src/supabase/middleware.ts
|
|
11
11
|
const SECRET_KEY_NAME = /^[A-Za-z0-9_-]+$/u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as runSupabase } from "./supabase-hook-BCSwK5x-.js";
|
|
@@ -19,13 +19,13 @@ import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-CAG
|
|
|
19
19
|
import { n as MIGRATION_DIRS } from "./constants-DcJABbLW.js";
|
|
20
20
|
import { f as writeOutputFiles, l as partPath, r as driftOf, u as pgDeltaPath } from "./output-files-CM0BnH05.js";
|
|
21
21
|
import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
|
|
22
|
-
import { A as quoteQualified, D as qualified, F as firstScopeType, I as scopeTypeOf, O as quoteIdent, R as tenantTypeOf, a as customRolesOn, j as quoteTable, k as quoteLiteral, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-
|
|
23
|
-
import { E as TOKEN_SCOPE_ALLOWS, J as apiKeyFields, K as API_KEY_ALLOWS, R as globalRoleSource, _ as PERMISSION_HELPERS, at as memberForHelper, b as permissionKeysForHelper, bt as checkSuspension, ct as memberIdsHelper, dt as permittedForHelper, et as hasMemberFor, ft as permittedIdsHelper, g as OWNERSHIP, h as ASSIGNMENTS, lt as memberOfHelper, ot as memberForSources, rt as isTeamScope, st as memberForTable, tt as hasPermittedUsers, ut as memberRoleOf, v as checkName, vt as activeRowSql, x as permittedByPermissionHelper } from "./tables-
|
|
24
|
-
import { a as guardedTables, t as ownershipRules, u as roleNames } from "./ownership-
|
|
22
|
+
import { A as quoteQualified, D as qualified, F as firstScopeType, I as scopeTypeOf, O as quoteIdent, R as tenantTypeOf, a as customRolesOn, j as quoteTable, k as quoteLiteral, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-sW3VYchq.js";
|
|
23
|
+
import { E as TOKEN_SCOPE_ALLOWS, J as apiKeyFields, K as API_KEY_ALLOWS, R as globalRoleSource, _ as PERMISSION_HELPERS, at as memberForHelper, b as permissionKeysForHelper, bt as checkSuspension, ct as memberIdsHelper, dt as permittedForHelper, et as hasMemberFor, ft as permittedIdsHelper, g as OWNERSHIP, h as ASSIGNMENTS, lt as memberOfHelper, ot as memberForSources, rt as isTeamScope, st as memberForTable, tt as hasPermittedUsers, ut as memberRoleOf, v as checkName, vt as activeRowSql, x as permittedByPermissionHelper } from "./tables-DSX_Ma_n.js";
|
|
24
|
+
import { a as guardedTables, t as ownershipRules, u as roleNames } from "./ownership-MGHa5vfX.js";
|
|
25
25
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
26
26
|
import { a as splitUndiffed, r as tableKey, t as decidingColumns } from "./deciding-columns-NB4wcyBf.js";
|
|
27
|
-
import { c as ACTOR_MAY_WRITE, f as readOnlyActorKinds } from "./fields-
|
|
28
|
-
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-
|
|
27
|
+
import { c as ACTOR_MAY_WRITE, f as readOnlyActorKinds } from "./fields-D_TfExiI.js";
|
|
28
|
+
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-BZQZRnMH.js";
|
|
29
29
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
30
30
|
import { dirname, join, posix, resolve } from "node:path";
|
|
31
31
|
//#region ../../node_modules/.pnpm/smol-toml@1.9.1/node_modules/smol-toml/dist/error.js
|
|
@@ -3326,7 +3326,12 @@ as $$
|
|
|
3326
3326
|
insert into ${versionTable} as v (user_id, version)
|
|
3327
3327
|
select distinct u, 1 from unnest(p_users) u
|
|
3328
3328
|
where u is not null and exists (select 1 from auth.users au where au.id = u)
|
|
3329
|
-
on conflict (user_id) do update set version = v.version + 1
|
|
3329
|
+
on conflict (user_id) do update set version = v.version + 1;
|
|
3330
|
+
select set_config(
|
|
3331
|
+
'permdock.m.gen',
|
|
3332
|
+
(coalesce(nullif(current_setting('permdock.m.gen', true), ''), '0')::int + 1)::text,
|
|
3333
|
+
true
|
|
3334
|
+
)
|
|
3330
3335
|
$$;
|
|
3331
3336
|
revoke execute on function ${bumpFor}(uuid[]) from public, anon, authenticated;
|
|
3332
3337
|
|
|
@@ -47,7 +47,7 @@ const hookGenerate = defineLeaf({
|
|
|
47
47
|
const budget = given(flags.budget);
|
|
48
48
|
const schema = given(flags.schema);
|
|
49
49
|
const grantsOut = given(flags["grants-out"]);
|
|
50
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
50
|
+
const { runSupabase } = await import("./supabase-hook-7XxWGHQF.js");
|
|
51
51
|
return runSupabase({
|
|
52
52
|
cwd: ctx.cwd,
|
|
53
53
|
config: ctx.config,
|
|
@@ -76,7 +76,7 @@ const inspect = defineLeaf({
|
|
|
76
76
|
},
|
|
77
77
|
async run(ctx, { flags }) {
|
|
78
78
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
79
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
79
|
+
const { runSupabase } = await import("./supabase-hook-7XxWGHQF.js");
|
|
80
80
|
return runSupabase({
|
|
81
81
|
cwd: ctx.cwd,
|
|
82
82
|
config: ctx.config,
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { c as listPermissions, u as renamedKeys } from "./permission-registry-B8tYxPIt.js";
|
|
2
|
-
import { d as scopeList, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
2
|
+
import { d as scopeList, l as scopeChain, s as resolveScope } from "./scopes-BSdYaGHs.js";
|
|
3
3
|
import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
|
|
4
|
-
import { l as policyLevels } from "./policy-
|
|
4
|
+
import { l as policyLevels } from "./policy-CaAME-Rh.js";
|
|
5
5
|
import { a as describeError, i as configError } from "./errors-BhRkoNS7.js";
|
|
6
6
|
import "./budget-BBCPDOGP.js";
|
|
7
7
|
import { d as sqlTextArray, i as qualifySqlTable } from "./sql-0WjxIp9g.js";
|
|
8
|
+
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-B_oJqmIg.js";
|
|
8
9
|
import { l as roleColumn } from "./sources-C4vkzZJV.js";
|
|
9
10
|
import { t as beforeFirst } from "./text-BMFRfBqc.js";
|
|
10
11
|
import { c as parseSplit } from "./output-files-CM0BnH05.js";
|
|
11
|
-
import { x as resolveAuthorize } from "./supabase-hook-
|
|
12
|
-
import { A as quoteQualified, C as parseMembershipsFlag, D as qualified, F as firstScopeType, O as quoteIdent, R as tenantTypeOf, a as customRolesOn, j as quoteTable, k as quoteLiteral, s as signedIn, t as CUSTOM_ROLES } from "./shared-
|
|
13
|
-
import { G as byKey, H as rolesTableScope, O as tokenScopesPlan, Q as graphSqlName, V as raiseSql, W as byCodeUnit, Y as apiKeysPlan, a as closureDepths, bt as checkSuspension, i as tablelessResources, o as graphPlan, r as tableNames, t as resolveVias, z as currentKeyExpr } from "./tables-
|
|
14
|
-
import { o as assignableRoles, r as unsatisfiedKinds, t as ownershipRules, u as roleNames } from "./ownership-
|
|
12
|
+
import { x as resolveAuthorize } from "./supabase-hook-BCSwK5x-.js";
|
|
13
|
+
import { A as quoteQualified, C as parseMembershipsFlag, D as qualified, F as firstScopeType, O as quoteIdent, R as tenantTypeOf, a as customRolesOn, j as quoteTable, k as quoteLiteral, s as signedIn, t as CUSTOM_ROLES } from "./shared-sW3VYchq.js";
|
|
14
|
+
import { G as byKey, H as rolesTableScope, O as tokenScopesPlan, Q as graphSqlName, V as raiseSql, W as byCodeUnit, Y as apiKeysPlan, a as closureDepths, bt as checkSuspension, i as tablelessResources, o as graphPlan, r as tableNames, t as resolveVias, z as currentKeyExpr } from "./tables-DSX_Ma_n.js";
|
|
15
|
+
import { o as assignableRoles, r as unsatisfiedKinds, t as ownershipRules, u as roleNames } from "./ownership-MGHa5vfX.js";
|
|
15
16
|
import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
|
|
16
17
|
import { i as group, o as sqlStatements } from "./deciding-columns-NB4wcyBf.js";
|
|
17
|
-
import { d as orSql, h as branchClauses } from "./fields-
|
|
18
|
-
import { t as resolveNames } from "./resolve-names-
|
|
19
|
-
import { m as tableFor } from "./verify-
|
|
18
|
+
import { d as orSql, h as branchClauses } from "./fields-D_TfExiI.js";
|
|
19
|
+
import { t as resolveNames } from "./resolve-names-BZQZRnMH.js";
|
|
20
|
+
import { m as tableFor } from "./verify-V08pirDB.js";
|
|
20
21
|
//#region src/cli/rls/custom-role-rebuild.ts
|
|
21
22
|
const PREFIX = "PermDock CLI";
|
|
22
23
|
/** A column of the roles-table row `r`. */
|
|
@@ -589,6 +590,62 @@ function roleMemberScopesOf(migrate) {
|
|
|
589
590
|
const scopes = [...new Set(Object.values(migrate?.helpers ?? {}).flatMap((helper) => helper.form === "role" ? [helper.scope] : []))].toSorted();
|
|
590
591
|
return scopes.length === 0 ? {} : { roleMemberScopes: scopes };
|
|
591
592
|
}
|
|
593
|
+
function sameMap(left, right) {
|
|
594
|
+
const keys = Object.keys(left);
|
|
595
|
+
return keys.length === Object.keys(right).length && keys.every((key) => left[key] === right[key]);
|
|
596
|
+
}
|
|
597
|
+
function sameRoleOne(mapped, source) {
|
|
598
|
+
if (!("column" in source)) return false;
|
|
599
|
+
if (typeof mapped === "string") return source.column === mapped && !("through" in source) && !("map" in source);
|
|
600
|
+
if ("map" in mapped) return source.column === mapped.column && "map" in source && sameMap(source.map, mapped.map);
|
|
601
|
+
const [ref, id] = Object.entries(mapped.on)[0] ?? [];
|
|
602
|
+
if (ref === void 0 || id === void 0 || !("through" in source)) return false;
|
|
603
|
+
return source.column === ref && qualifySqlTable(source.through.table) === qualifySqlTable(mapped.through) && source.through.id === id && source.through.column === mapped.column && source.through.on === void 0;
|
|
604
|
+
}
|
|
605
|
+
function isRoleList(role) {
|
|
606
|
+
return Array.isArray(role);
|
|
607
|
+
}
|
|
608
|
+
function isManifestRoleList(role) {
|
|
609
|
+
return Array.isArray(role);
|
|
610
|
+
}
|
|
611
|
+
function sameRole(mapped, source) {
|
|
612
|
+
if (isRoleList(mapped)) return isManifestRoleList(source) && source.length === mapped.length && mapped.every((role, index) => {
|
|
613
|
+
const item = source[index];
|
|
614
|
+
return item !== void 0 && sameRoleOne(role, item);
|
|
615
|
+
});
|
|
616
|
+
return isManifestRoleList(source) ? false : sameRoleOne(mapped, source);
|
|
617
|
+
}
|
|
618
|
+
function sameVia(mapped, source) {
|
|
619
|
+
if (mapped === void 0) return source === void 0;
|
|
620
|
+
if (source === void 0 || typeof mapped === "string") return false;
|
|
621
|
+
return "value" in source && source.value === mapped.value;
|
|
622
|
+
}
|
|
623
|
+
function sameSource(table, scope, scopes, source) {
|
|
624
|
+
const manifest = source.sql.manifest;
|
|
625
|
+
const column = scopeColumn(table, scopes, scope);
|
|
626
|
+
if (column === void 0) return false;
|
|
627
|
+
if (qualifySqlTable(manifest.table) !== qualifySqlTable(table.table) || manifest.user.column !== table.user || "through" in manifest.user || manifest.id.column !== column || !("value" in manifest.scope) || manifest.scope.value !== scope || manifest.disabledAt?.column !== table.disabledAt || manifest.expiresAt?.column !== table.expiresAt || !sameVia(table.via, manifest.via) || source.sql.stream?.guard !== void 0) return false;
|
|
628
|
+
for (const name of scopeChain(scopes, scope)) {
|
|
629
|
+
if (name === scope) continue;
|
|
630
|
+
const held = scopeColumn(table, scopes, name);
|
|
631
|
+
const within = manifest.within;
|
|
632
|
+
if (held !== (within !== void 0 && "columns" in within ? within.columns[name] : void 0)) return false;
|
|
633
|
+
}
|
|
634
|
+
return sameRole(table.role, manifest.role);
|
|
635
|
+
}
|
|
636
|
+
function claimsFirstFor(input, authorize, scopes, memberships) {
|
|
637
|
+
const hook = input.config.supabase?.hook;
|
|
638
|
+
if (input.dialect !== "supabase" || authorize !== "database" || hook === void 0 || hook.version === false || hook.suspension !== void 0 || hook.schema !== void 0) return;
|
|
639
|
+
let mapped = false;
|
|
640
|
+
for (const scope of scopes) {
|
|
641
|
+
const table = scopeMembershipTable(memberships, scopes, scope.name);
|
|
642
|
+
if (table === void 0) continue;
|
|
643
|
+
mapped = true;
|
|
644
|
+
const source = hook.memberships.find((item) => item.sql.scope === scope.name);
|
|
645
|
+
if (source === void 0 || !sameSource(table, scope.name, scopes, source)) return;
|
|
646
|
+
}
|
|
647
|
+
return mapped ? true : void 0;
|
|
648
|
+
}
|
|
592
649
|
/** `rls.customRoleWrites.requires` as permission keys, or why it names none. */
|
|
593
650
|
function writeRequirement(policy, requires) {
|
|
594
651
|
if (requires === void 0) return {};
|
|
@@ -649,6 +706,7 @@ function buildContext(input, policy, options) {
|
|
|
649
706
|
const memberSources = membershipSourcesOf(input.config).map((source) => guard === void 0 ? source : source.guarded?.(guard) ?? source);
|
|
650
707
|
const sources = authorize === "database" ? memberSources : void 0;
|
|
651
708
|
const scopes = scopeList(policy.scopes);
|
|
709
|
+
const claimsFirst = claimsFirstFor(input, authorize, scopes, memberships);
|
|
652
710
|
const suspension = checkSuspension(rls?.suspension, scopes);
|
|
653
711
|
const hookRoles = input.config.supabase?.hook?.roles;
|
|
654
712
|
const roles = rls?.roles ?? (hookRoles === false ? void 0 : hookRoles);
|
|
@@ -684,6 +742,7 @@ function buildContext(input, policy, options) {
|
|
|
684
742
|
inlineFunctions: input.inlineFunctions || rls?.inlineFunctions === true,
|
|
685
743
|
schema,
|
|
686
744
|
authorize,
|
|
745
|
+
...claimsFirst === void 0 ? {} : { claimsFirst },
|
|
687
746
|
roleClaim: rls?.roleClaim ?? "user_role",
|
|
688
747
|
tenantType: input.tenantType ?? firstScopeType(rls?.scopeTypes, scopes),
|
|
689
748
|
...rls?.scopeTypes === void 0 ? {} : { scopeTypes: rls.scopeTypes },
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
|
|
2
|
+
import { i as describe } from "../describe-DibQM6g-.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
4
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
4
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-Dpg_fSNQ.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-L9UOwATg.js";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
8
|
-
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-
|
|
7
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C5p2hoBR.js";
|
|
8
|
+
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-C2A6KsxE.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
//#region src/svelte/index.d.ts
|
|
11
11
|
export declare const Protected: Component<ProtectedProps>;
|
package/dist/svelte/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as DescribeMessages } from "../describe-
|
|
1
|
+
import { n as DescribeMessages } from "../describe-DibQM6g-.js";
|
|
2
2
|
import { n as boundaryDigest, r as boundaryFallback, t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
3
|
-
import { t as ClientStore } from "../store-
|
|
4
|
-
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-Dpg_fSNQ.js";
|
|
4
|
+
import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C5p2hoBR.js";
|
|
5
5
|
//#region src/svelte/context.d.ts
|
|
6
6
|
/** The provider's `defaults` and `messages`. */
|
|
7
7
|
type PermDockUi = {
|
package/dist/svelte/source.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as requiredPlans } from "../errors-
|
|
2
|
-
import { i as describe } from "../describe-
|
|
1
|
+
import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
|
|
2
|
+
import { i as describe } from "../describe-DibQM6g-.js";
|
|
3
3
|
import { t as PermissionBoundaryState } from "../boundary-C9ck-3uK.js";
|
|
4
|
-
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-
|
|
4
|
+
import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-Dpg_fSNQ.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-L9UOwATg.js";
|
|
6
6
|
import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
|
|
7
|
-
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-
|
|
8
|
-
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-
|
|
7
|
+
import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C5p2hoBR.js";
|
|
8
|
+
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-C2A6KsxE.js";
|
|
9
9
|
import { Component } from "svelte";
|
|
10
10
|
//#region src/svelte/source.d.ts
|
|
11
11
|
export declare const Protected: Component<ProtectedProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, N as PolicyVocabulary, en as Snapshot, yr as Principal } from "../policy-types-BI9C5Sp5.js";
|
|
2
2
|
import { u as Permission } from "../permission-types-CAY-GU7e.js";
|
|
3
3
|
import { a as OperationInput, t as Operation } from "../operations-Ci_rT6Uo.js";
|
|
4
|
-
import { a as PermDock } from "../permdock-
|
|
5
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
6
|
-
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-
|
|
4
|
+
import { a as PermDock } from "../permdock-D4F2p5J8.js";
|
|
5
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, u as SnapshotQuery, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-ChzXWU4Y.js";
|
|
6
|
+
import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-DCQ4pZxf.js";
|
|
7
7
|
import { RequestEvent } from "@sveltejs/kit";
|
|
8
8
|
//#region src/sveltekit/create.d.ts
|
|
9
9
|
/**
|
package/dist/sveltekit/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
|
|
2
|
-
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-
|
|
2
|
+
import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-acq4dPX3.js";
|
|
3
3
|
//#region src/sveltekit/create.ts
|
|
4
4
|
const route = {
|
|
5
5
|
context: (event) => event,
|