permdock 0.20.1 → 0.21.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.
Files changed (190) hide show
  1. package/dist/a2a/index.d.ts +1 -1
  2. package/dist/a2a/index.js +3 -3
  3. package/dist/{adoption-scan-BTG9Noyy.js → adoption-scan-UkQisAqe.js} +1 -1
  4. package/dist/agent/index.d.ts +1 -1
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +1 -1
  7. package/dist/ai-sdk/index.js +3 -3
  8. package/dist/approvals/index.d.ts +1 -1
  9. package/dist/{arazzo-D4mKdaWI.js → arazzo-BC3uLIZy.js} +2 -2
  10. package/dist/{arazzo-CDXfX4u0.js → arazzo-CUthH61H.js} +1 -1
  11. package/dist/astro/index.d.ts +3 -3
  12. package/dist/astro/index.js +1 -1
  13. package/dist/authzen/index.d.ts +2 -2
  14. package/dist/authzen/index.js +1 -1
  15. package/dist/better-supabase/index.d.ts +2 -2
  16. package/dist/better-supabase/index.js +3 -3
  17. package/dist/{bind-gwEbe9hL.js → bind-CJf7S-Jd.js} +3 -3
  18. package/dist/{bind-CW7nsZ86.d.ts → bind-XvnD_SUz.d.ts} +5 -5
  19. package/dist/{build-instance-DaBdCRiz.js → build-instance-CkRKgjSj.js} +1 -1
  20. package/dist/{casbin-COUi09Ti.js → casbin-BOZN1P2Y.js} +1 -1
  21. package/dist/{casbin-BXlRcCdU.js → casbin-v9Xo_XPa.js} +1 -1
  22. package/dist/catalog/index.js +2 -2
  23. package/dist/chat/index.d.ts +1 -1
  24. package/dist/chat/index.js +1 -1
  25. package/dist/chat-sdk/index.d.ts +1 -1
  26. package/dist/claude-agent/index.d.ts +2 -2
  27. package/dist/claude-agent/index.js +2 -2
  28. package/dist/clerk/index.d.ts +1 -1
  29. package/dist/cli/bin.js +1 -1
  30. package/dist/cli/index.js +2 -2
  31. package/dist/{cloud-BW7JKfrF.js → cloud-CB0btByh.js} +2 -2
  32. package/dist/{codemod-CR9EQBVd.js → codemod-B-duJDFD.js} +1 -1
  33. package/dist/{codemod-6CBQaT0x.js → codemod-C3a3Iz_w.js} +2 -2
  34. package/dist/compile/index.d.ts +1 -1
  35. package/dist/{compile-DZftFfXc.d.ts → compile-DonvwG9x.d.ts} +1 -1
  36. package/dist/{completion-CYRlOJzv.js → completion-6IshPaPd.js} +1 -1
  37. package/dist/{config-6iLK155o.js → config-C45X7mpm.js} +1 -1
  38. package/dist/{config-report-BLroaWCe.js → config-report-Bmo62RRr.js} +1 -1
  39. package/dist/convex/index.d.ts +2 -2
  40. package/dist/convex/index.js +2 -2
  41. package/dist/{core-BOeGWbcR.d.ts → core-9KbhurkH.d.ts} +1 -1
  42. package/dist/{core-BwVkrpsi.js → core-Dxkwz4xR.js} +2 -2
  43. package/dist/{create-DMCC5ZOi.d.ts → create-BQOQkYYg.d.ts} +4 -4
  44. package/dist/{create-DDUFG1ul.js → create-BRiRVNUO.js} +5 -4
  45. package/dist/{create-DYSYYiLr.d.ts → create-BzgDDamI.d.ts} +1 -1
  46. package/dist/{create-BezeYFcT.d.ts → create-DH4ZD0A7.d.ts} +2 -2
  47. package/dist/{create-C0R8omeF.js → create-Q0wF9Elt.js} +3 -3
  48. package/dist/delivery/index.d.ts +1 -1
  49. package/dist/{diff-DXRNcjpg.js → diff-3fpwo3UD.js} +1 -1
  50. package/dist/{diff-Bd1-VCe5.js → diff-BJv7I3GR.js} +2 -2
  51. package/dist/{doctor-CJcS0Mrq.js → doctor-Bz7s3JYD.js} +11 -11
  52. package/dist/{doctor-DYTgibLC.js → doctor-keoa9DpH.js} +2 -2
  53. package/dist/drizzle/index.d.ts +2 -2
  54. package/dist/elysia/index.d.ts +3 -3
  55. package/dist/elysia/index.js +1 -1
  56. package/dist/{evaluations-BgxEfPL7.d.ts → evaluations-OCm_Z-8V.d.ts} +1 -1
  57. package/dist/eve/index.d.ts +2 -2
  58. package/dist/eve/index.js +2 -2
  59. package/dist/express/index.d.ts +3 -3
  60. package/dist/express/index.js +1 -1
  61. package/dist/fastify/index.d.ts +3 -3
  62. package/dist/fastify/index.js +1 -1
  63. package/dist/{fetch-adapter-acq4dPX3.js → fetch-adapter-4EB3cLgB.js} +3 -2
  64. package/dist/{fetch-adapter-DCQ4pZxf.d.ts → fetch-adapter-BlL-ZhHq.d.ts} +2 -2
  65. package/dist/{gen-CH50v9VI.js → gen-Cf7nQsOb.js} +1 -1
  66. package/dist/{gen-gv_WHBIG.js → gen-DYF4LKUP.js} +1 -1
  67. package/dist/h3/index.d.ts +3 -3
  68. package/dist/h3/index.js +2 -2
  69. package/dist/hono/index.d.ts +3 -3
  70. package/dist/hono/index.js +1 -1
  71. package/dist/{import-BlwuuZkr.js → import-CQ_kH_Ny.js} +1 -1
  72. package/dist/{index-Bt37QovT.d.ts → index-BqzpT-90.d.ts} +1 -1
  73. package/dist/{index-CruReRkB.d.ts → index-Do7FqHEr.d.ts} +1 -1
  74. package/dist/{index-B_I6N8Ju.d.ts → index-DuOF7OqS.d.ts} +2 -2
  75. package/dist/{index-D7xGi1LS.d.ts → index-tuR-kZoJ.d.ts} +4 -3
  76. package/dist/index.d.ts +4 -4
  77. package/dist/index.js +3 -3
  78. package/dist/{init-B62H9Kyx.js → init-DvkvbvZ_.js} +1 -1
  79. package/dist/{init-CalppFAI.js → init-kTFkEu8S.js} +3 -3
  80. package/dist/{instance-options-VPsNQsTH.d.ts → instance-options-Cq66kEeR.d.ts} +1 -1
  81. package/dist/{instance-snapshot-SX8zH_1t.js → instance-snapshot-Bi4-dJk0.js} +1 -1
  82. package/dist/{kernel-_QEUOSU0.js → kernel-CLEzDmbv.js} +3 -3
  83. package/dist/kysely/index.d.ts +2 -2
  84. package/dist/{login-dDb_8muO.js → login-9ycIcJZH.js} +1 -1
  85. package/dist/{login-MxQV1BLh.js → login-CM_etiLM.js} +3 -3
  86. package/dist/{manifest-DvDzxhy6.js → manifest-CCd-xrM3.js} +33 -33
  87. package/dist/mcp/index.d.ts +3 -3
  88. package/dist/mcp/index.js +3 -3
  89. package/dist/nest/index.d.ts +3 -3
  90. package/dist/nest/index.js +1 -1
  91. package/dist/next/index.d.ts +9 -6
  92. package/dist/next/index.js +6 -4
  93. package/dist/node/index.d.ts +3 -3
  94. package/dist/node/index.js +1 -1
  95. package/dist/openai/index.d.ts +2 -2
  96. package/dist/openai/index.js +3 -3
  97. package/dist/{openapi-DKePsnln.js → openapi-DA7FVG2F.js} +1 -1
  98. package/dist/{openapi-BkGtE5kX.js → openapi-QnnU2A1c.js} +2 -2
  99. package/dist/orpc/index.d.ts +4 -4
  100. package/dist/orpc/index.js +2 -2
  101. package/dist/otel/index.d.ts +2 -2
  102. package/dist/{output-B2h-2g3F.js → output-KT0a3B3H.js} +1 -1
  103. package/dist/{ownership-MGHa5vfX.js → ownership-CeNOtQMV.js} +1 -1
  104. package/dist/pdp/index.d.ts +2 -2
  105. package/dist/pdp/index.js +1 -1
  106. package/dist/{permdock-D4F2p5J8.d.ts → permdock-CsrvbzHk.d.ts} +5 -0
  107. package/dist/{permdock-C1DN_7a-.js → permdock-DbAq8_Fp.js} +2 -1
  108. package/dist/{permissions-8N2yFsUM.js → permissions-Dz79qsFw.js} +1 -1
  109. package/dist/{policy-from-catalog-CUNlpgz0.js → policy-from-catalog-BtqfxytV.js} +1 -1
  110. package/dist/powersync-CWCirKAJ.js +1 -0
  111. package/dist/{powersync-Deim9O47.js → powersync-CWsN-QaK.js} +2 -2
  112. package/dist/{powersync-CB8RwcB4.js → powersync-DiqY3VBG.js} +5 -5
  113. package/dist/prisma/index.d.ts +1 -1
  114. package/dist/{protected-action-ua0cx5cW.d.ts → protected-action-CuG0xz4P.d.ts} +3 -3
  115. package/dist/{provider-D_hgjZRa.d.ts → provider-ihxuJbMi.d.ts} +1 -1
  116. package/dist/{pull-BxqVL4Es.js → pull-B4EhSqOG.js} +1 -1
  117. package/dist/pull-VzcECZ-R.js +1 -0
  118. package/dist/{push-D2SsRW0U.js → push-DYOI4bPf.js} +1 -1
  119. package/dist/{pushed-policy-BERO0x9O.js → pushed-policy-Dszouliu.js} +1 -1
  120. package/dist/react/index.d.ts +4 -4
  121. package/dist/react/provider-client.d.ts +1 -1
  122. package/dist/react-native/index.d.ts +4 -4
  123. package/dist/{request-context-BPTi68z5.js → request-context-VjeXst1z.js} +1 -1
  124. package/dist/{resolve-names-BZQZRnMH.js → resolve-names-BIHnWL_L.js} +1 -1
  125. package/dist/{rls-DpoJ5gCg.js → rls-C7qXye9M.js} +1 -1
  126. package/dist/{rls-OPorg_2G.js → rls-CMFZWosz.js} +9 -9
  127. package/dist/{rpc-DdkbQVlT.js → rpc-BNIQwEB6.js} +1 -1
  128. package/dist/{rpc-D2LnFELm.d.ts → rpc-CYXICjM1.d.ts} +1 -1
  129. package/dist/{run-YCpANf1B.js → run-CMJX9x7b.js} +2 -2
  130. package/dist/run-D2e1tybu.js +1 -0
  131. package/dist/{run-ticket-94DOS9Cd.d.ts → run-ticket-BXYqQ9dy.d.ts} +1 -1
  132. package/dist/{saas-BEXnrH9H.js → saas-DHFfthXv.js} +2 -2
  133. package/dist/{scan-COvn7ZjN.js → scan-CSOkcNdl.js} +1 -1
  134. package/dist/{schema-BfSDo7Xj.js → schema-7pXCaRYB.js} +1 -1
  135. package/dist/server/index.d.ts +4 -4
  136. package/dist/server/index.js +1 -1
  137. package/dist/{server-types-ChzXWU4Y.d.ts → server-types-Bfl-IrzZ.d.ts} +6 -5
  138. package/dist/{skills-N2Hd8KN8.js → skills-DAjg-rgF.js} +1 -1
  139. package/dist/{skills-Ce4C2dq1.js → skills-DrX83QBK.js} +1 -1
  140. package/dist/solid/index.d.ts +2 -2
  141. package/dist/solid-start/index.d.ts +3 -3
  142. package/dist/solid-start/index.js +2 -2
  143. package/dist/{src-B8SQNsvw.js → src-Cop53_X1.js} +3 -2
  144. package/dist/{store-Dpg_fSNQ.d.ts → store-CRQ5VrWR.d.ts} +1 -1
  145. package/dist/{stores-C2A6KsxE.d.ts → stores-pEBMy94l.d.ts} +3 -3
  146. package/dist/supabase/middleware.d.ts +4 -4
  147. package/dist/supabase/middleware.js +4 -4
  148. package/dist/{supabase-zL7PC3RG.js → supabase-Cbl2orB2.js} +2 -2
  149. package/dist/{supabase-hook-BCSwK5x-.js → supabase-hook-BUcu3vPM.js} +3 -3
  150. package/dist/supabase-hook-QWphWBnG.js +1 -0
  151. package/dist/{supautils-7UES0i4a.js → supautils-a_253u1X.js} +5 -5
  152. package/dist/svelte/index.d.ts +3 -3
  153. package/dist/svelte/runtime.d.ts +2 -2
  154. package/dist/svelte/source.d.ts +3 -3
  155. package/dist/sveltekit/index.d.ts +3 -3
  156. package/dist/sveltekit/index.js +1 -1
  157. package/dist/{tables-DSX_Ma_n.js → tables-XrvffTMj.js} +1 -1
  158. package/dist/tanstack-start/index.d.ts +3 -3
  159. package/dist/tanstack-start/index.js +1 -1
  160. package/dist/terminal/index.d.ts +2 -2
  161. package/dist/terminal/index.js +2 -2
  162. package/dist/testing/core.d.ts +1 -1
  163. package/dist/testing/core.js +1 -1
  164. package/dist/testing/index.d.ts +7 -7
  165. package/dist/testing/index.js +6 -6
  166. package/dist/testing/saas/index.d.ts +1 -1
  167. package/dist/testing/saas/index.js +2 -2
  168. package/dist/testing/saas/permissions.js +1 -1
  169. package/dist/trpc/index.d.ts +4 -4
  170. package/dist/trpc/index.js +2 -2
  171. package/dist/{types-C5p2hoBR.d.ts → types-C3C9ien9.d.ts} +2 -2
  172. package/dist/{types-Drs3OOAy.d.ts → types-DjGZAU64.d.ts} +2 -2
  173. package/dist/{types-D8JVDWOr.d.ts → types-DotXrris.d.ts} +1 -1
  174. package/dist/{types-DnzRZjEu.d.ts → types-MixnvXQ5.d.ts} +2 -2
  175. package/dist/{types-CMclYgSk.d.ts → types-zh4WGQcP.d.ts} +1 -1
  176. package/dist/{usage-BcAqmjkj.js → usage-DHsqp4lN.js} +1 -1
  177. package/dist/{usage-CUnw73Y-.js → usage-DPbdI3Vi.js} +2 -2
  178. package/dist/usage-dmSjKx-Z.js +1 -0
  179. package/dist/{verify-V08pirDB.js → verify-C0jGJrmb.js} +5 -5
  180. package/dist/vue/index.d.ts +2 -2
  181. package/dist/workflow/index.d.ts +1 -1
  182. package/dist/workflow/index.js +1 -1
  183. package/dist/workflow-sdk/index.d.ts +2 -2
  184. package/dist/{wrap-CE5lxje7.d.ts → wrap-EQ6Or2Hi.d.ts} +1 -1
  185. package/package.json +1 -1
  186. package/dist/powersync-Cs1E04s6.js +0 -1
  187. package/dist/pull-BLT25Y5C.js +0 -1
  188. package/dist/run-CW0QsyA9.js +0 -1
  189. package/dist/supabase-hook-7XxWGHQF.js +0 -1
  190. package/dist/usage-BdIS9NfN.js +0 -1
@@ -9,15 +9,15 @@ import { a as scopeMembershipTable, i as scopeColumn } from "./compile-B_oJqmIg.
9
9
  import { l as roleColumn } from "./sources-C4vkzZJV.js";
10
10
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
11
11
  import { c as parseSplit } from "./output-files-CM0BnH05.js";
12
- import { x as resolveAuthorize } from "./supabase-hook-BCSwK5x-.js";
12
+ import { x as resolveAuthorize } from "./supabase-hook-BUcu3vPM.js";
13
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";
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-XrvffTMj.js";
15
+ import { o as assignableRoles, r as unsatisfiedKinds, t as ownershipRules, u as roleNames } from "./ownership-CeNOtQMV.js";
16
16
  import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
17
17
  import { i as group, o as sqlStatements } from "./deciding-columns-NB4wcyBf.js";
18
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";
19
+ import { t as resolveNames } from "./resolve-names-BIHnWL_L.js";
20
+ import { m as tableFor } from "./verify-C0jGJrmb.js";
21
21
  //#region src/cli/rls/custom-role-rebuild.ts
22
22
  const PREFIX = "PermDock CLI";
23
23
  /** A column of the roles-table row `r`. */
@@ -1,11 +1,11 @@
1
1
  import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
2
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-Dpg_fSNQ.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-CRQ5VrWR.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-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";
7
+ import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C3C9ien9.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-pEBMy94l.js";
9
9
  import { Component } from "svelte";
10
10
  //#region src/svelte/index.d.ts
11
11
  export declare const Protected: Component<ProtectedProps>;
@@ -1,7 +1,7 @@
1
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-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";
3
+ import { t as ClientStore } from "../store-CRQ5VrWR.js";
4
+ import { a as scopedFor, c as slotContent, i as ProtectedProps, o as viewFor, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C3C9ien9.js";
5
5
  //#region src/svelte/context.d.ts
6
6
  /** The provider's `defaults` and `messages`. */
7
7
  type PermDockUi = {
@@ -1,11 +1,11 @@
1
1
  import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
2
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-Dpg_fSNQ.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-CRQ5VrWR.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-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";
7
+ import { i as ProtectedProps, n as ProtectedActionReadable, r as SveltePermDockOptions, s as PermissionBoundaryProps, t as PermDockDefaults } from "../types-C3C9ien9.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-pEBMy94l.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
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-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";
4
+ import { a as PermDock } from "../permdock-CsrvbzHk.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-Bfl-IrzZ.js";
6
+ import { a as ProtectTarget, i as PermDockHandlers, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BlL-ZhHq.js";
7
7
  import { RequestEvent } from "@sveltejs/kit";
8
8
  //#region src/sveltekit/create.d.ts
9
9
  /**
@@ -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-acq4dPX3.js";
2
+ import { n as guardedRoute, r as instanceRoute, t as fetchAdapter } from "../fetch-adapter-4EB3cLgB.js";
3
3
  //#region src/sveltekit/create.ts
4
4
  const route = {
5
5
  context: (event) => event,
@@ -4,7 +4,7 @@ import { c as rootScope, d as scopeList, l as scopeChain, s as resolveScope } fr
4
4
  import { o as flattenGrantee } from "./grantee-Dke-9rd1.js";
5
5
  import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-DX4K_gGI.js";
6
6
  import { l as partitionsOf, p as scopeField } from "./tenancy-DvOHHk3-.js";
7
- import { a as delegatedScopeMap } from "./permdock-C1DN_7a-.js";
7
+ import { a as delegatedScopeMap } from "./permdock-DbAq8_Fp.js";
8
8
  import { i as configError } from "./errors-BhRkoNS7.js";
9
9
  import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
10
10
  import { a as scopeMembershipTable, d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-B_oJqmIg.js";
@@ -1,9 +1,9 @@
1
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-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";
4
+ import { a as PermDock } from "../permdock-CsrvbzHk.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-Bfl-IrzZ.js";
6
+ import { a as ProtectTarget, n as FetchAdapterOptions, t as ContextReader } from "../fetch-adapter-BlL-ZhHq.js";
7
7
  import { RequestMiddleware, RequestMiddlewareAfterServer, createMiddleware } from "@tanstack/react-start";
8
8
  //#region src/tanstack-start/create.d.ts
9
9
  type TanStackStartPermDockOptions<TUser = unknown> = FetchAdapterOptions<Request, TUser>;
@@ -1,5 +1,5 @@
1
1
  import { l as InvalidSignatureError, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-CNMVJVD6.js";
2
- import { t as fetchAdapter } from "../fetch-adapter-acq4dPX3.js";
2
+ import { t as fetchAdapter } from "../fetch-adapter-4EB3cLgB.js";
3
3
  import { createMiddleware } from "@tanstack/react-start";
4
4
  //#region src/tanstack-start/create.ts
5
5
  function createPermDock(policy, options) {
@@ -1,9 +1,9 @@
1
1
  import { D as Policy, N as PolicyVocabulary, Yn as Decision, qt as Instant, 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-D4F2p5J8.js";
3
+ import { a as PermDock } from "../permdock-CsrvbzHk.js";
4
4
  import { m as ApprovalStore } from "../types-BzxA2OAD.js";
5
5
  import { a as ProblemDetails, t as ApprovalHint } from "../errors-OTE9u4Wk.js";
6
- import { t as InstanceOptions } from "../instance-options-VPsNQsTH.js";
6
+ import { t as InstanceOptions } from "../instance-options-Cq66kEeR.js";
7
7
  //#region src/terminal/types.d.ts
8
8
  type TokenSourceName = "device" | "keychain" | "env" | "ci-oidc";
9
9
  type TokenSource = TokenSourceName | {
@@ -3,11 +3,11 @@ import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t a
3
3
  import { h as secondsAt } from "../time-nR1JesoH.js";
4
4
  import { r as isSubject } from "../subject-C7RddW0G.js";
5
5
  import { n as resourceRef } from "../resource-ref-CaS9yVPi.js";
6
- import { l as withApp } from "../permdock-C1DN_7a-.js";
6
+ import { l as withApp } from "../permdock-DbAq8_Fp.js";
7
7
  import { n as readBodyText } from "../body-text-DQhcmqdY.js";
8
8
  import { l as storedApprovalToken, s as resumeDecision } from "../helpers-D-MXwkOF.js";
9
9
  import { t as timeoutSignal } from "../timeout-D51niuQP.js";
10
- import { n as resolveOrNull, t as buildInstance } from "../build-instance-DaBdCRiz.js";
10
+ import { n as resolveOrNull, t as buildInstance } from "../build-instance-CkRKgjSj.js";
11
11
  import { a as refreshCredential, o as revokeCredential, s as runDeviceFlow, t as TERMINAL_TIMEOUT_MS } from "../device-BwbJNmb2.js";
12
12
  import { i as writeCredentials, n as deleteCredentials, r as readCredentials } from "../storage-C2bWdvJH.js";
13
13
  import { createInterface } from "node:readline";
@@ -1,2 +1,2 @@
1
- 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-BOeGWbcR.js";
1
+ 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-9KbhurkH.js";
2
2
  export { type DescribePolicyConfig, type MatrixCell, type MatrixOutcome, type OrmParityCase, type OrmParityOptions, type OrmParityReport, type OrmParityRunInput, type OrmParityScenario, type PolicyMatrixCell, type PolicyMatrixReport, type RlsDbOutcome, type RlsFieldsOutcome, type RlsParityCase, type RlsParityFixture, type RlsParityOptions, type RlsParityReport, type RlsParitySubject, type RlsQueryFn, type RlsQueryResult, policyMatrix, testOrmParity, testRlsParity };
@@ -1 +1 @@
1
- export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-BwVkrpsi.js";
1
+ export { r as policyMatrix, t as testOrmParity, n as testRlsParity } from "../core-Dxkwz4xR.js";
@@ -1,17 +1,17 @@
1
1
  import { Ct as WhereCompiler, D as Policy, G as CredentialVerifier, X as DecisionSink, Y as DecisionProvider, Z as EntitlementSource, _t as TokenSigner, ct as RelationSource, dn as DeliveryChannel, en as Snapshot, it as MembershipSource, lt as SettingsSource, mt as SubjectResolver, nt as LimitStore, q as CustomRoleSource, ut as SnapshotSource, vr as Membership, vt as TokenVerifier, xr as Subject, yr as Principal } from "../policy-types-BI9C5Sp5.js";
2
2
  import { g as ResourceInit, l as InferPermissionTree, u as Permission } from "../permission-types-CAY-GU7e.js";
3
3
  import { r as Role } from "../vocabulary-DEJ5j4mR.js";
4
- import { st as LegacyCheck } from "../index-D7xGi1LS.js";
4
+ import { st as LegacyCheck } from "../index-tuR-kZoJ.js";
5
5
  import { i as ApprovalPolicySource } from "../approval-policies-CKlByf5o.js";
6
- import { _ as PrincipalSource, a as PermDock, b as Limits, h as PrincipalIdentity, u as SnapshotOptions, w as InstanceCache } from "../permdock-D4F2p5J8.js";
6
+ import { _ as PrincipalSource, a as PermDock, b as Limits, h as PrincipalIdentity, u as SnapshotOptions, w as InstanceCache } from "../permdock-CsrvbzHk.js";
7
7
  import { s as PolicySource } from "../hosted-yhyAuQkL.js";
8
8
  import { a as ApprovalDelegationSource, m as ApprovalStore } from "../types-BzxA2OAD.js";
9
9
  import { a as ProblemDetails } from "../errors-OTE9u4Wk.js";
10
- import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-DMCC5ZOi.js";
10
+ import { c as ModelMap, t as AgentPermDock, u as ToolMap } from "../create-BQOQkYYg.js";
11
11
  import { c as AccessReviewStore } from "../types-DZwEOsK1.js";
12
- import { R as IdempotencyStore } from "../index-CruReRkB.js";
12
+ import { R as IdempotencyStore } from "../index-Do7FqHEr.js";
13
13
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
14
- import { s as SupportSessionSource } from "../index-B_I6N8Ju.js";
14
+ import { s as SupportSessionSource } from "../index-DuOF7OqS.js";
15
15
  import { n as VersionCache } from "../version-cache-q5cpaDSt.js";
16
16
  import { r as SupabaseHookManifest } from "../manifest-B5yF3CIq.js";
17
17
  import { t as supabaseMembershipsBudget } from "../budget-CNLsV2SL.js";
@@ -20,10 +20,10 @@ import { c as DeliveryTransport, g as TransportMessages } from "../types-p8mhWTc
20
20
  import { t as CloudApproverOptions } from "../types--_lpWUGV.js";
21
21
  import { n as ApprovalWaiter } from "../waiter-BjVI_Byg.js";
22
22
  import { g as SetQueue, l as ReplayStore } from "../types-DBVSljAx.js";
23
- import { r as SnapshotStorage } from "../types-Drs3OOAy.js";
23
+ import { r as SnapshotStorage } from "../types-DjGZAU64.js";
24
24
  import { x as DirectoryStore } from "../index-CLbGOPBr.js";
25
25
  import { S as SsfStreamStore } from "../index--AwSBzJC.js";
26
- 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-BOeGWbcR.js";
26
+ 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-9KbhurkH.js";
27
27
  import { a as SaasProject } from "../permissions-Bx6UI8n1.js";
28
28
  import { n as saasPolicy } from "../policy-Dh9WVSVz.js";
29
29
  import { expectTypeOf } from "vitest";
@@ -2,7 +2,7 @@ import { r as isRecord } from "../compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
3
3
  import { i as principal } from "../refs-C8BKxc_e.js";
4
4
  import { n as role, r as allow } from "../role-builder-C5AgaC1x.js";
5
- import { A as memoryCustomRoleSource, C as limits, D as approvalPoliciesFor, d as snapshotFor, w as memoryLimitStore } from "../src-B8SQNsvw.js";
5
+ import { A as memoryCustomRoleSource, C as limits, D as approvalPoliciesFor, d as snapshotFor, w as memoryLimitStore } from "../src-Cop53_X1.js";
6
6
  import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
7
7
  import { n as loadPrincipalByIdentity, t as loadPrincipal } from "../principal-source-C6N60GtM.js";
8
8
  import { v as resource } from "../permission-registry-B8tYxPIt.js";
@@ -18,7 +18,7 @@ import { i as rootMembershipId } from "../subject-C7RddW0G.js";
18
18
  import { T as validateCustomRole } from "../evaluate-Dcq_U2TV.js";
19
19
  import { n as parseSnapshot } from "../snapshot-DHPih65J.js";
20
20
  import { n as fromSnapshot } from "../from-snapshot-DHnb8Fh4.js";
21
- import { t as getPermDock } from "../permdock-C1DN_7a-.js";
21
+ import { t as getPermDock } from "../permdock-DbAq8_Fp.js";
22
22
  import { t as APPROVAL_HEADER } from "../types-CcUXciSj.js";
23
23
  import { i as memoryApprovalStore } from "../store-CSOsXd5s.js";
24
24
  import { t as definePermissions } from "../permissions-BaoLxy66.js";
@@ -36,10 +36,10 @@ import { l as sha256Hex, n as scimHandler, t as directoryMembershipSource } from
36
36
  import { c as quoteSqlTable, o as quoteSqlIdent } from "../sql-0WjxIp9g.js";
37
37
  import { i as cloudEndpoints, n as cloud, s as approverHeaders, t as bearerChallenge } from "../challenge-DbkpCx_v.js";
38
38
  import { t as supabaseManifestSchema } from "../manifest-schema-CsFsYLF-.js";
39
- import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-BERO0x9O.js";
40
- import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-BwVkrpsi.js";
41
- import { i as saasPermissions } from "../permissions-8N2yFsUM.js";
42
- 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-BEXnrH9H.js";
39
+ import { t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Dszouliu.js";
40
+ import { i as policyMatrixLayout, n as testRlsParity, r as policyMatrix, t as testOrmParity } from "../core-Dxkwz4xR.js";
41
+ import { i as saasPermissions } from "../permissions-Dz79qsFw.js";
42
+ 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-DHFfthXv.js";
43
43
  import { t as POLICY_NOT_PUBLISHED } from "../problem-types-DSsRfONQ.js";
44
44
  import { t as require__2020 } from "../2020-CJbO8Bvz.js";
45
45
  import { afterAll, assert, beforeAll, describe, expect, expectTypeOf, it, vi } from "vitest";
@@ -1,6 +1,6 @@
1
1
  import { ct as RelationSource, hr as Delegation, lr as Actor, nt as LimitStore, pr as CustomRole, qt as Instant, vr as Membership, 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 { o as PermDockOptions } from "../../permdock-D4F2p5J8.js";
3
+ import { o as PermDockOptions } from "../../permdock-CsrvbzHk.js";
4
4
  import { a as SaasProject, c as saasPlans, i as SaasFolderSchema, l as saasRoles, n as SaasDocSchema, o as SaasProjectSchema, r as SaasFolder, s as saasPermissions, t as SaasDoc, u as saasTenantRoleNames } from "../../permissions-Bx6UI8n1.js";
5
5
  import { n as saasPolicy, t as SAAS_API_KEY_LIMIT } from "../../policy-Dh9WVSVz.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -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-8N2yFsUM.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-BEXnrH9H.js";
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-Dz79qsFw.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-DHFfthXv.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-8N2yFsUM.js";
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-Dz79qsFw.js";
@@ -1,10 +1,10 @@
1
1
  import { D as Policy, 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-D4F2p5J8.js";
3
+ import { a as PermDock } from "../permdock-CsrvbzHk.js";
4
4
  import { n as RevocationFeed } from "../revocations-BaUXHM1N.js";
5
- import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-ChzXWU4Y.js";
6
- import { t as ServerAdapterOptions } from "../bind-CW7nsZ86.js";
7
- import { t as RpcProtectOptions } from "../rpc-D2LnFELm.js";
5
+ import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-Bfl-IrzZ.js";
6
+ import { t as ServerAdapterOptions } from "../bind-XvnD_SUz.js";
7
+ import { t as RpcProtectOptions } from "../rpc-CYXICjM1.js";
8
8
  import { AnyTRPCMiddlewareFunction } from "@trpc/server";
9
9
  //#region src/trpc/create.d.ts
10
10
  type TrpcMiddlewareOpts<TCtx = object, TInput = unknown> = {
@@ -1,9 +1,9 @@
1
1
  import { o as problemMessage } from "../http-DKLXrFGk.js";
2
2
  import { r as permissionList } from "../decide-set-DXEPepY1.js";
3
3
  import { t as problemFromError } from "../map-error-EOhahOVA.js";
4
- import { n as attached } from "../bind-gwEbe9hL.js";
4
+ import { n as attached } from "../bind-CJf7S-Jd.js";
5
5
  import { i as isAsyncIterable, o as reloadAfter } from "../stream-DQ3rbO3J.js";
6
- import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-DdkbQVlT.js";
6
+ import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-BNIQwEB6.js";
7
7
  import { TRPCError, isTrackedEnvelope } from "@trpc/server";
8
8
  //#region src/trpc/create.ts
9
9
  const PROBLEM = Symbol.for("permdock.problem");
@@ -1,8 +1,8 @@
1
1
  import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "./permdock-D4F2p5J8.js";
3
+ import { a as PermDock } from "./permdock-CsrvbzHk.js";
4
4
  import { t as PermissionBoundaryState } from "./boundary-C9ck-3uK.js";
5
- import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-Dpg_fSNQ.js";
5
+ import { d as PermissionState, m as ProviderOptionsBase, p as ProtectedActionView, t as ClientStore, v as ActionResult } from "./store-CRQ5VrWR.js";
6
6
  import { Snippet } from "svelte";
7
7
  import { Readable } from "svelte/store";
8
8
  //#region src/client/views.d.ts
@@ -1,7 +1,7 @@
1
1
  import { en as Snapshot, ut as SnapshotSource, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
2
  import { n as DescribeMessages } from "./describe-DibQM6g-.js";
3
- import { n as ClientStoreOptions } from "./store-Dpg_fSNQ.js";
4
- import { t as PermDockDefaults } from "./types-DnzRZjEu.js";
3
+ import { n as ClientStoreOptions } from "./store-CRQ5VrWR.js";
4
+ import { t as PermDockDefaults } from "./types-MixnvXQ5.js";
5
5
  import { ReactNode } from "react";
6
6
  //#region src/react-native/types.d.ts
7
7
  type SnapshotStorage = {
@@ -1,5 +1,5 @@
1
1
  import { N as PolicyVocabulary, un as DecisionEvent } from "./policy-types-BI9C5Sp5.js";
2
- import { a as PermDock } from "./permdock-D4F2p5J8.js";
2
+ import { a as PermDock } from "./permdock-CsrvbzHk.js";
3
3
  //#region src/otel/types.d.ts
4
4
  declare const GENAI_SEMCONV_PIN = "1.37.0";
5
5
  declare const GEN_AI_TOOL_NAME = "gen_ai.tool.name";
@@ -1,8 +1,8 @@
1
1
  import { Jn as ApprovalRequiredDecision, Yn as Decision, en as Snapshot, tr as GrantedDecision, vt as TokenVerifier } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { s as RowData } from "./permdock-D4F2p5J8.js";
3
+ import { s as RowData } from "./permdock-CsrvbzHk.js";
4
4
  import { n as DescribeMessages } from "./describe-DibQM6g-.js";
5
- import { n as ClientStoreOptions } from "./store-Dpg_fSNQ.js";
5
+ import { n as ClientStoreOptions } from "./store-CRQ5VrWR.js";
6
6
  import { ReactNode } from "react";
7
7
  //#region src/react/types.d.ts
8
8
  type PermDockProviderProps = ({
@@ -1,6 +1,6 @@
1
1
  import { D as Policy, N as PolicyVocabulary, Yn as Decision, er as ExplainedDecision, vr as Membership, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
2
  import { f as PermissionTree, u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { a as PermDock, f as WhereResult, k as PermissionCheck, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-D4F2p5J8.js";
3
+ import { a as PermDock, f as WhereResult, k as PermissionCheck, l as SimulateOptions, n as DecideOptions, o as PermDockOptions, r as DeriveOptions } from "./permdock-CsrvbzHk.js";
4
4
  //#region src/pdp/types.d.ts
5
5
  type RemotePdpAuth = {
6
6
  readonly bearer: string | (() => string | Promise<string>);
@@ -16,7 +16,7 @@ const usage = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- return (await import("./usage-BdIS9NfN.js")).runUsage({
19
+ return (await import("./usage-dmSjKx-Z.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -6,8 +6,8 @@ import { c as jsonSchemaOf } from "./catalog-doc-nrgfbh8I.js";
6
6
  import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-BaEamml-.js";
7
7
  import { r as runCollect } from "./collect-DN_x7hvV.js";
8
8
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
9
- import { t as DOCS_BASE } from "./manifest-DvDzxhy6.js";
10
- import { r as findingOf } from "./output-B2h-2g3F.js";
9
+ import { t as DOCS_BASE } from "./manifest-CCd-xrM3.js";
10
+ import { r as findingOf } from "./output-KT0a3B3H.js";
11
11
  import { existsSync, readFileSync, realpathSync } from "node:fs";
12
12
  import { dirname, resolve } from "node:path";
13
13
  import { fileURLToPath, pathToFileURL } from "node:url";
@@ -0,0 +1 @@
1
+ export { t as runUsage } from "./usage-DPbdI3Vi.js";
@@ -1,6 +1,6 @@
1
1
  import { a as sole, r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
3
- import { A as memoryCustomRoleSource, S as memoryRelationSource } from "./src-B8SQNsvw.js";
3
+ import { A as memoryCustomRoleSource, S as memoryRelationSource } from "./src-Cop53_X1.js";
4
4
  import { c as listPermissions, h as formerKeys, n as findPermission } from "./permission-registry-B8tYxPIt.js";
5
5
  import { c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-8-pCScBO.js";
6
6
  import { f as nowMillis, u as isoAt } from "./time-nR1JesoH.js";
@@ -11,7 +11,7 @@ import { p as scopeField } from "./tenancy-DvOHHk3-.js";
11
11
  import { l as policyLevels, t as coveredLevels } from "./policy-CaAME-Rh.js";
12
12
  import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
13
13
  import { c as andWhere, m as customRoleScope, v as leveled, y as membershipsClaim } from "./evaluate-Dcq_U2TV.js";
14
- import { t as getPermDock } from "./permdock-C1DN_7a-.js";
14
+ import { t as getPermDock } from "./permdock-DbAq8_Fp.js";
15
15
  import { a as describeError, i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
16
16
  import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
17
17
  import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
@@ -22,12 +22,12 @@ import { i as qualifySqlTable, n as defaultSqlCommand, t as SQL_IDENT } from "./
22
22
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-B_oJqmIg.js";
23
23
  import "./sources-C4vkzZJV.js";
24
24
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
25
- import { t as DOCS_BASE } from "./manifest-DvDzxhy6.js";
25
+ import { t as DOCS_BASE } from "./manifest-CCd-xrM3.js";
26
26
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Cemqurt8.js";
27
27
  import { n as pgConnector, t as connectPgPool } from "./pg-Ddxsd5ZB.js";
28
28
  import { A as quoteQualified, N as arrayColumnsOf, O as quoteIdent, P as columnTypesOf, _ as subjectClaimJsonSql, a as customRolesOn, j as quoteTable, k as quoteLiteral, r as HELPERS, v as subjectClaimSql } from "./shared-sW3VYchq.js";
29
- import { C as accessSql, D as tokenScopeAllowsCall, S as requiresSql, ht as scopeTable, k as capabilityAccessSql, n as tableNameOf, o as graphPlan, q as apiKeyAllowsCall, r as tableNames } from "./tables-DSX_Ma_n.js";
30
- import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-MGHa5vfX.js";
29
+ import { C as accessSql, D as tokenScopeAllowsCall, S as requiresSql, ht as scopeTable, k as capabilityAccessSql, n as tableNameOf, o as graphPlan, q as apiKeyAllowsCall, r as tableNames } from "./tables-XrvffTMj.js";
30
+ import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./ownership-CeNOtQMV.js";
31
31
  import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
32
32
  import { _ as wrapSql, g as validitySql, m as andSql, s as viewName, t as FIELD_VIEWS } from "./fields-D_TfExiI.js";
33
33
  import { resolve } from "node:path";
@@ -1,11 +1,11 @@
1
1
  import { Jn as ApprovalRequiredDecision, N as PolicyVocabulary, Yn as Decision, en as Snapshot, 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-D4F2p5J8.js";
4
+ import { d as UncheckedData, s as RowData } from "../permdock-CsrvbzHk.js";
5
5
  import { c as requiredPlans } from "../errors-OTE9u4Wk.js";
6
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-Dpg_fSNQ.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-CRQ5VrWR.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 { ComputedRef, DefineComponent, MaybeRefOrGetter, Plugin, VNode } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { a as AutomationSource, i as AutomationRequest, l as memoryAutomationSource, n as AutomationDecision, r as AutomationMode, s as MemoryAutomationSource, t as Automation, u as parseAutomation } from "../automation-CpOk7Tlu.js";
2
2
  import { i as pollingApprovalWaiter, n as ApprovalWaiter, r as PollingApprovalWaiterOptions, t as ApprovalWaitOptions } from "../waiter-BjVI_Byg.js";
3
- import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BezeYFcT.js";
3
+ import { a as WorkflowPermDockOptions, i as WorkflowPermDock, n as AwaitApprovalOptions, o as createPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-DH4ZD0A7.js";
4
4
  import "../index-CaxrMD1A.js";
5
5
  export { type ApprovalWaitOptions, type ApprovalWaiter, type Automation, type AutomationDecision, type AutomationMode, type AutomationOptions, type AutomationRequest, type AutomationSource, type AwaitApprovalOptions, type MemoryAutomationSource, type PollingApprovalWaiterOptions, type StartAutomationResult, type WorkflowPermDock, type WorkflowPermDockOptions, createPermDock, memoryAutomationSource, parseAutomation, pollingApprovalWaiter };
@@ -4,7 +4,7 @@ import { a as isId } from "../expiry-6XByK0dm.js";
4
4
  import { n as findPermission } from "../permission-registry-B8tYxPIt.js";
5
5
  import { n as isThenable } from "../thenable-BNSM1U2R.js";
6
6
  import { n as memoryAutomationSource, r as parseAutomation } from "../automation-x3KEUusw.js";
7
- import { l as withApp, t as getPermDock } from "../permdock-C1DN_7a-.js";
7
+ import { l as withApp, t as getPermDock } from "../permdock-DbAq8_Fp.js";
8
8
  import { o as automationEvent } from "../sink-D9_vh372.js";
9
9
  import { a as requestApproval, s as resumeDecision } from "../helpers-D-MXwkOF.js";
10
10
  import { i as subjectFromRunTicket, r as signRunTicket } from "../run-ticket-CjvXr6wj.js";
@@ -1,8 +1,8 @@
1
1
  import { Yn as Decision } from "../policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-D4F2p5J8.js";
3
+ import { a as PermDock } from "../permdock-CsrvbzHk.js";
4
4
  import { n as ApprovalWaiter } from "../waiter-BjVI_Byg.js";
5
- import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-BezeYFcT.js";
5
+ import { i as WorkflowPermDock, r as StartAutomationResult, t as AutomationOptions } from "../create-DH4ZD0A7.js";
6
6
  //#region src/workflow-sdk/index.d.ts
7
7
  /**
8
8
  * The part of a Workflow SDK `Hook` the waiter reads: awaiting it suspends the
@@ -1,5 +1,5 @@
1
1
  import { N as PolicyVocabulary } from "./policy-types-BI9C5Sp5.js";
2
- import { a as PermDock } from "./permdock-D4F2p5J8.js";
2
+ import { a as PermDock } from "./permdock-CsrvbzHk.js";
3
3
  //#region src/core/wrap.d.ts
4
4
  /** A wrapper an adapter applies to each instance it builds, as `withOtel` does. */
5
5
  type PermDockWrap = <V extends PolicyVocabulary>(permdock: PermDock<V>) => PermDock<V>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permdock",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -1 +0,0 @@
1
- export { n as runPowerSync } from "./powersync-CB8RwcB4.js";
@@ -1 +0,0 @@
1
- export { n as runCloudPull } from "./pull-BxqVL4Es.js";
@@ -1 +0,0 @@
1
- export { t as run } from "./run-YCpANf1B.js";
@@ -1 +0,0 @@
1
- export { i as runSupabase } from "./supabase-hook-BCSwK5x-.js";
@@ -1 +0,0 @@
1
- export { t as runUsage } from "./usage-CUnw73Y-.js";