permdock 0.35.1 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a2a/index.d.ts +4 -4
- package/dist/a2a/index.js +2 -2
- package/dist/{adoption-scan-B_jVJgMK.js → adoption-scan-sufK4R53.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/app/index.d.ts +1 -1
- package/dist/app/index.js +1 -1
- package/dist/{approval-prompt-BKxaKtby.d.ts → approval-prompt-DCC4jp2s.d.ts} +1 -1
- package/dist/approvals/index.d.ts +3 -3
- package/dist/{arazzo-CKsNFj_5.js → arazzo-BxtTsEK2.js} +2 -2
- package/dist/{arazzo-D-fDq8Dv.js → arazzo-D0ctRNBU.js} +1 -1
- package/dist/astro/index.d.ts +4 -4
- package/dist/astro/index.js +1 -1
- package/dist/authzen/index.d.ts +6 -6
- package/dist/authzen/index.js +1 -1
- package/dist/{automation-C7WH5XcZ.d.ts → automation-DdarCGcn.d.ts} +1 -1
- package/dist/better-auth/index.d.ts +1 -1
- package/dist/better-supabase/index.d.ts +23 -14
- package/dist/better-supabase/index.js +8 -8
- package/dist/{bind-DPptdk31.js → bind-BNYcJ1D9.js} +2 -2
- package/dist/{bind-BnrOLyJq.d.ts → bind-CLvD4iLc.d.ts} +7 -7
- package/dist/{bsb-access-tags-1oVQZWKp.js → bsb-access-tags-LCaE48SK.js} +1 -1
- package/dist/{bsb-action-keys-BfZAwg-9.js → bsb-action-keys-LgveZiHJ.js} +2 -2
- package/dist/{bsb-actions-BHiyBxQZ.js → bsb-actions-DcDxQ_Ku.js} +3 -3
- package/dist/{budgets-hi-ecgEd.js → budgets-DFnMBpKz.js} +3 -3
- package/dist/{build-instance-DZEWYO-A.js → build-instance-BGpABVbM.js} +1 -1
- package/dist/bundle-size-CGd8wVIu.js +1 -0
- package/dist/{bundle-size-DbXV65Ix.js → bundle-size-Pgm7BB5m.js} +2 -2
- package/dist/{capability-BW-vAxJi.d.ts → capability-CsiHf7K3.d.ts} +1 -1
- package/dist/{casbin-CWfeuRmI.js → casbin-CMEY_GT4.js} +1 -1
- package/dist/{casbin-DqiTIceJ.js → casbin-CkLvGuUb.js} +1 -1
- package/dist/catalog/index.d.ts +4 -4
- package/dist/{catalog-CBPFyRv7.js → catalog-DYC6wfAj.js} +1 -1
- package/dist/{catalog-BExjL94D.js → catalog-SnaPhbZ1.js} +2 -2
- package/dist/{catalog-doc-D4g3nyFB.js → catalog-doc-BX97oFAn.js} +1 -1
- package/dist/catalog-e6QRd1JP.js +1 -0
- 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/claims-size-B0OvYh9z.js +1 -0
- package/dist/{claims-size-BUhCWS88.js → claims-size-ZiUJBn0r.js} +42 -8
- 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/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +6 -6
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{client-subject-YAGMzRa-.d.ts → client-subject-DSF0IYGW.d.ts} +2 -2
- package/dist/cloud/index.d.ts +8 -8
- package/dist/{cloud-CvA_LeOt.js → cloud-N4IUVluH.js} +2 -2
- package/dist/{codemod-DduTfuWM.js → codemod-C9SQqhNG.js} +5 -5
- package/dist/{codemod-CA0MQoG4.js → codemod-D5a5oDJX.js} +1 -1
- package/dist/collect-C2_CKZ09.js +1 -0
- package/dist/{collect-Ba7ccZ23.js → collect-CcE8QBtZ.js} +2 -2
- package/dist/{collect-CPimbkC5.js → collect-Co-w8Eg2.js} +1 -1
- package/dist/compile/index.d.ts +1 -1
- package/dist/{compile-D-BULiHE.js → compile-BFV2WG67.js} +6 -6
- package/dist/{compile-CoUadQXF.d.ts → compile-CFV4wDo9.d.ts} +2 -2
- package/dist/{completion-DXdFnwLY.js → completion-BUWG1FGo.js} +1 -1
- package/dist/{config-BWYfHYvW.js → config-B3Bc6Tly.js} +1 -1
- package/dist/{config-report-pg-66Bdr.js → config-report-3IhYuH4v.js} +2 -2
- package/dist/{context-rioF4fQl.js → context-CNI2jibq.js} +1 -1
- package/dist/convex/index.d.ts +4 -4
- package/dist/convex/index.js +2 -2
- package/dist/{core-DIUrkFNL.js → core-BFR-V5CL.js} +2 -2
- package/dist/{core-DCMIztx1.d.ts → core-BOWoKYve.d.ts} +2 -2
- package/dist/{create-BRY0OtFV.js → create-BICq9l-p.js} +2 -2
- package/dist/{create-T_NqxU31.d.ts → create-BTthKNP0.d.ts} +7 -7
- package/dist/{create-iCwrnaFE.d.ts → create-BaKdh-D8.d.ts} +6 -6
- package/dist/{create-BMRnaZel.js → create-Dapy8DIK.js} +3 -3
- package/dist/{create-BYL8xCJB.d.ts → create-Y6DnNpuP.d.ts} +4 -4
- package/dist/{credentials-DzNrCNZY.d.ts → credentials-e872ACwg.d.ts} +2 -2
- package/dist/{custom-role-rebuild-wzN8pqDk.js → custom-role-rebuild-QFXiMHqJ.js} +1 -1
- package/dist/{define-permdock-Bhye7WSY.d.ts → define-permdock-8YZPaa9x.d.ts} +6 -6
- package/dist/{define-permdock-CO7YNrOF.js → define-permdock-B0q7Rg9b.js} +1 -1
- package/dist/delivery/index.d.ts +4 -4
- package/dist/{denied-text-DgNqDAPH.d.ts → denied-text-u4OC-MYV.d.ts} +1 -1
- package/dist/{describe-DEoWvk00.d.ts → describe-DLGEciCs.d.ts} +1 -1
- package/dist/{diff-CS8ks9h3.js → diff-BebUlh4Z.js} +1 -1
- package/dist/{diff-CkSZF7LO.js → diff-Sxca4_5q.js} +3 -3
- package/dist/{doctor-B55XfWdG.js → doctor-DP7HwXw_.js} +2 -2
- package/dist/{doctor-Cs0Xl46A.js → doctor-DhpDQ5C6.js} +102 -32
- 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-BliKrfmP.d.ts → errors-C35fh_2K.d.ts} +1 -1
- package/dist/{evaluations-CUkSKioS.d.ts → evaluations-BiZYgET4.d.ts} +3 -3
- package/dist/eve/index.d.ts +4 -4
- package/dist/eve/index.js +2 -2
- package/dist/{execute-Vfo2CAhv.js → execute-g-nMgY4t.js} +4 -4
- package/dist/{explain-D4ipf8IH.js → explain-BrvY9cXX.js} +1 -1
- package/dist/{explain-DISCeeYS.js → explain-CgKGadRa.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-Ds2-fUUi.d.ts → fetch-adapter-CQSxXotl.d.ts} +2 -2
- package/dist/{fetch-adapter-BXQc4NoV.js → fetch-adapter-dmABnF7F.js} +1 -1
- package/dist/{fields-CwFej4gp.js → fields-CKX-qjWb.js} +1 -1
- package/dist/{gen-M_5UU5Ck.js → gen-CTRqv1H2.js} +4 -4
- package/dist/gen-D-orrO2e.js +1 -0
- package/dist/{gen-kind-DLz0P-TB.js → gen-kind-DLnQ-vCe.js} +1 -1
- package/dist/{generate-CNkkKAL-.js → generate-DcPnvokU.js} +94 -15
- package/dist/{generate-GCDLA8vW.js → generate-dbQzpEqb.js} +3 -3
- package/dist/{generate-options-O3mVjjcG.js → generate-options-4jvPn7w3.js} +9 -9
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +2 -2
- package/dist/{helper-calls-B5MOl99d.js → helper-calls-DN1PJcNY.js} +53 -1
- package/dist/hono/index.d.ts +4 -4
- package/dist/hono/index.js +1 -1
- package/dist/{hook-sql-y0CJBLJr.js → hook-sql-3yPtwas6.js} +283 -13
- package/dist/{hosted-DZgmEG4b.d.ts → hosted-Cl7q35D-.d.ts} +1 -1
- package/dist/{import-CQSJ6xcN.js → import-DEUiWePf.js} +1 -1
- package/dist/{import-Bz6IKoMM.js → import-wBO24zgo.js} +1 -1
- package/dist/{index-Cjr8Q-uq.d.ts → index-B1hyWi7O.d.ts} +11 -10
- package/dist/{index-ktQ7E4qB.d.ts → index-BtPvYUww.d.ts} +4 -4
- package/dist/{index-CWBCzwOp.d.ts → index-D9DsY164.d.ts} +4 -4
- package/dist/{index-DBBRSw6r.d.ts → index-DYvFRQle.d.ts} +2 -2
- package/dist/{index-CAE_Z53Y.d.ts → index-L6lt50lg.d.ts} +1 -1
- package/dist/{index-BOJPdIBk.d.ts → index-p5y3whIg.d.ts} +4 -4
- package/dist/index.d.ts +15 -15
- package/dist/index.js +3 -3
- package/dist/{init-Cfb0VX3T.js → init-CUviJnno.js} +3 -3
- package/dist/{init-BucxAxRw.js → init-DqOKr99S.js} +1 -1
- package/dist/{inspect-functions-CzrQtRDb.js → inspect-functions-Uv3Ndkty.js} +1 -1
- package/dist/{instance-options-DDERlopm.d.ts → instance-options-CUNLusL6.d.ts} +1 -1
- package/dist/{interactive-only-Bbq9e61G.js → interactive-only-CylKSukS.js} +1 -1
- package/dist/jwt/index.d.ts +4 -4
- package/dist/{kernel-DSnWVZ0O.js → kernel-yI0nUyuX.js} +3 -3
- package/dist/{keys-BWhAnANj.js → keys-CA3SdBHQ.js} +1 -1
- package/dist/kysely/index.d.ts +3 -3
- package/dist/{lazy-provider-Clt2095H.d.ts → lazy-provider-B22nfOsw.d.ts} +1 -1
- package/dist/{login-CU89mk0U.js → login-BMONKzI_.js} +3 -3
- package/dist/{login-qYcM0hKh.js → login-mcxQxTAL.js} +1 -1
- package/dist/{manifest-schema-N3v2RVL-.js → manifest-schema-CkROwfT9.js} +1 -1
- package/dist/{manifest-Bu9gUrI0.js → manifest-tO5SjSGH.js} +63 -52
- package/dist/{manifest-CIWOmdlP.js → manifest-teSfgeqF.js} +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +2 -2
- package/dist/{measure-C_Z0a7B8.js → measure-r811lN7F.js} +2 -2
- package/dist/{memberships-CNoAlsma.js → memberships-CDiSsFTu.js} +1 -1
- package/dist/{memberships-4e6qi8Uv.js → memberships-DiCbNRny.js} +1 -1
- package/dist/{model-BYCtXS_g.js → model-wt3wihiH.js} +2 -2
- package/dist/{names-DBxKx2bz.js → names-DwGleRKB.js} +3 -3
- package/dist/nest/index.d.ts +4 -4
- package/dist/nest/index.js +1 -1
- package/dist/next/index.d.ts +11 -11
- package/dist/next/index.js +3 -3
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +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-DIhS8iHN.js → openapi-BZHc6R7A.js} +100 -5
- package/dist/{openapi-ZIlGKUwQ.js → openapi-CNWuAQZi.js} +1 -1
- package/dist/{openapi-document-D5IhoJo0.js → openapi-document-CHJI74v_.js} +1 -1
- 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-DIjUJioq.js → output-Bfc3EpB2.js} +1 -1
- package/dist/{ownership-Bmt-z0rF.js → ownership-BuQFLjZ5.js} +3 -3
- package/dist/{parse-local-manifest-DoLQFkRb.d.ts → parse-local-manifest-BE_R-Ish.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +1 -1
- package/dist/{permdock-JM9TKevZ.js → permdock-CbavFN6u.js} +6 -2
- package/dist/{permdock-DkvkGVF0.d.ts → permdock-NJ4-pCZy.d.ts} +7 -5
- package/dist/{permissions-xPyAmuXi.js → permissions-BPYOb5OB.js} +1 -1
- package/dist/{pipeline-BAGSNnct.js → pipeline-DW7cy40F.js} +2 -2
- package/dist/{plugin-DDPXES4k.d.ts → plugin-YAJ25tft.d.ts} +2 -2
- package/dist/{policy-BoUbJ2c0.d.ts → policy-BlOumPY5.d.ts} +1 -1
- package/dist/{policy-D8RxFeZO.js → policy-DTk6NZm-.js} +1 -1
- package/dist/{policy-bundle-DC_xq2R5.js → policy-bundle-C7Hz9Rrs.js} +3 -3
- package/dist/{policy-types-DuM3k5Ao.d.ts → policy-types-CRWqx8qf.d.ts} +7 -2
- package/dist/{postgrest-B1bTbVE4.d.ts → postgrest-BGYDQhG1.d.ts} +7 -6
- package/dist/{powersync-CgCMKvaU.js → powersync-CeuhNT0R.js} +1 -1
- package/dist/{powersync-CiQ97gzz.js → powersync-CoP_nlGj.js} +8 -8
- package/dist/{powersync-BlfO3_jN.js → powersync-LpKFefiH.js} +1 -1
- package/dist/prisma/index.d.ts +2 -2
- package/dist/{protected-action-gBxeetqY.d.ts → protected-action-BbQb5G_c.d.ts} +5 -5
- package/dist/{provider-Clt2095H.d.ts → provider-B22nfOsw.d.ts} +1 -1
- package/dist/{provider-BwqzED5h.js → provider-hQFC3b98.js} +32 -5
- package/dist/{prune-config-CbhJ_XvD.js → prune-config-C0uSbf1I.js} +4 -4
- package/dist/{pull-DLyCr-7L.js → pull-A1SkxAyb.js} +3 -3
- package/dist/pull-CNMED72E.js +1 -0
- package/dist/{push-D5so0ptb.js → push-Br0Uz5pT.js} +2 -2
- package/dist/{pushed-policy-C65TbLtU.d.ts → pushed-policy-B2AXpqRr.d.ts} +1 -1
- package/dist/{rbac-DbyaaNLa.js → rbac-Dx88RLxH.js} +3 -3
- package/dist/react/index.d.ts +6 -6
- package/dist/react/lazy.d.ts +6 -6
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react-native/index.d.ts +8 -8
- package/dist/{rename-CI6NIF9t.js → rename-RnOp8vDq.js} +2 -2
- package/dist/replay-DjZ4I8QN.d.ts +3 -0
- package/dist/{report-DF0zUNut.js → report-Dp-ApWVC.js} +1 -1
- package/dist/{report-XdCm1y_J.js → report-x9GeUvjx.js} +1 -1
- package/dist/{request-context-CqqdiVp4.js → request-context-C9FFFpuH.js} +1 -1
- package/dist/resend/index.d.ts +4 -4
- package/dist/{resolve-names-BR6PiCrx.js → resolve-names-Ch5Ve5l4.js} +4 -4
- package/dist/{resolver-D2c1CcoZ.js → resolver-C9-dU-SZ.js} +30 -14
- package/dist/{rls-BfUIMNeV.js → rls-CHJbaZxj.js} +13 -12
- package/dist/{rls-CdQW7v9D.js → rls-DgYAJpVW.js} +5 -5
- package/dist/{rls-files-68-nKfmG.js → rls-files-RZ7PGrzg.js} +1 -1
- package/dist/{rls-options-DCLdZaTZ.d.ts → rls-options-BWWTZWjh.d.ts} +1 -1
- package/dist/{row-conditions-DwIJocfQ.js → row-conditions-BjARoFLU.js} +1 -1
- package/dist/{rpc-BYFB37KV.d.ts → rpc-CqKQCBPN.d.ts} +1 -1
- package/dist/{rpc-BQPa7tLP.js → rpc-RDBrKR7N.js} +1 -1
- package/dist/{run-B2Axta4z.js → run-CbJPONx5.js} +2 -2
- package/dist/run-iPVAxorh.js +1 -0
- package/dist/{run-ticket-CRldclc7.d.ts → run-ticket-BIRal-vH.d.ts} +2 -2
- package/dist/{saas-DSeazNrN.js → saas-CHviJgF2.js} +2 -2
- package/dist/{scan-DNzOELYT.js → scan-DjTW-y6E.js} +1 -1
- package/dist/{schema-CJc23R4a.js → schema-DVyxM9xS.js} +1 -1
- package/dist/scim/index.d.ts +1 -1
- package/dist/seeds/index.d.ts +1 -1
- package/dist/{seeds-BZMPfWcC.d.ts → seeds-K00R0810.d.ts} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +1 -1
- package/dist/{server-types-FkdDSB9h.d.ts → server-types-CaKNUxdc.d.ts} +8 -8
- package/dist/{sink-CoMI_OVw.d.ts → sink-CCirKrLv.d.ts} +2 -2
- package/dist/{size-CY6rK6l9.js → size-Dm3777Ev.js} +3 -3
- package/dist/{skills-TqrLrmuv.js → skills-BYc8rmHF.js} +1 -1
- package/dist/{skills-DTpSMQRg.js → skills-BdmjI4D2.js} +1 -1
- package/dist/{snapshot-cache-R1lJjYmI.d.ts → snapshot-cache-Dh_owfVu.d.ts} +1 -1
- package/dist/{snapshot-size-NklqBKcV.js → snapshot-size-CpdksnSr.js} +1 -1
- package/dist/{snapshot-size-D6ixbYvH.js → snapshot-size-I_-fxGry.js} +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-Dp6FQ8np.d.ts → sources-CD1OiqqK.d.ts} +1 -1
- package/dist/{src-BXDohWNO.js → src-10d_jun2.js} +4 -4
- package/dist/ssf/index.d.ts +3 -3
- package/dist/{standard-webhooks-D2FwHtMX.d.ts → standard-webhooks-CiV4_mv2.d.ts} +2 -2
- package/dist/{store-core-aluQ3R1M.d.ts → store-core-fRqdlrep.d.ts} +4 -4
- package/dist/{stores-hHICuiQl.d.ts → stores-BXPRg1Ot.d.ts} +5 -5
- package/dist/{subject-cache-Bn4oJY_R.d.ts → subject-cache-1EtpGx3y.d.ts} +9 -1
- package/dist/supabase/index.d.ts +8 -8
- package/dist/supabase/index.js +4 -4
- package/dist/supabase/middleware.d.ts +5 -5
- package/dist/supabase/middleware.js +3 -3
- package/dist/{supabase-MitbozF6.js → supabase-BAuqWNj3.js} +2 -2
- package/dist/{supabase-ByhSqBDB.js → supabase-CeJAHqZp.js} +2 -2
- package/dist/{supabase-hook-RFLW2YPX.js → supabase-hook-BbwsceID.js} +5 -5
- package/dist/supabase-hook-CObLSH20.js +2 -0
- package/dist/{supabase-schemas-CVhpyYB6.js → supabase-schemas-RG58AMTu.js} +1 -1
- package/dist/{supautils-C85NuESf.js → supautils-ym4X20ig.js} +2 -1
- 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/{table-reads-D0M_X-pj.js → table-reads--NupdCFw.js} +3 -3
- package/dist/{table-reads-Dso5UyeT.js → table-reads-Glf0BHSE.js} +1 -1
- package/dist/{tables-DrrGtayG.js → tables-Dyfviku5.js} +4 -4
- package/dist/tanstack-start/index.d.ts +4 -4
- package/dist/tanstack-start/index.js +1 -1
- package/dist/{tenant-check-D6fnfQBP.js → tenant-check-Bfd4hotj.js} +3 -3
- 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/fixtures/index.d.ts +3 -3
- package/dist/testing/fixtures/index.js +1753 -162
- package/dist/testing/index.d.ts +22 -22
- package/dist/testing/index.js +6 -6
- 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-CsWH9z8p.d.ts → type-helpers-DTlfU9zX.d.ts} +1 -1
- package/dist/{types-BzsplNgO.d.ts → types-BGDafbIK.d.ts} +4 -4
- package/dist/{types-BGN3coSe.d.ts → types-BdghnYGo.d.ts} +1 -1
- package/dist/{types-Cvfe-G_N.d.ts → types-C1jxMZ4q.d.ts} +2 -2
- package/dist/{types-D3GI2B9O.d.ts → types-C2GmBHtC.d.ts} +3 -3
- package/dist/{types-dtDg4goh.d.ts → types-CAGo84uV.d.ts} +4 -4
- package/dist/{types-DRMoZjJm.d.ts → types-CN3Tk7bb.d.ts} +2 -2
- package/dist/{types-CKwI6AT4.d.ts → types-CzAFVtMz.d.ts} +1 -1
- package/dist/{types-CBUYbPwl.d.ts → types-Jxy_Ko7f.d.ts} +2 -2
- package/dist/{types-BwjOhlgx.d.ts → types-XhEnMpL6.d.ts} +4 -4
- package/dist/{types-D417woMp.d.ts → types-ZjPv-GgQ.d.ts} +3 -3
- package/dist/{types-config-DYRoZ8Iw.d.ts → types-config-B3eAej9-.d.ts} +2 -2
- package/dist/{types-run-CeCrWO0v.d.ts → types-run-sP7yLp61.d.ts} +1 -1
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-Cv4WDRWv.js → usage-7Hwk_akY.js} +4 -4
- package/dist/usage-Bwl8YAmq.js +1 -0
- package/dist/{usage-DBaJfCZB.js → usage-nZP7EeRj.js} +1 -1
- package/dist/{validation-error-MZ7KLNHt.d.ts → validation-error-OX59FaXR.d.ts} +1 -1
- package/dist/{verify-DT9WS_Gm.js → verify-DOCJgGlw.js} +9 -9
- package/dist/{version-cache-Ccrfu2A4.js → version-cache-l9Zrfvhz.js} +8 -6
- package/dist/vue/index.d.ts +5 -5
- package/dist/{waiter-DdwtUSzB.d.ts → waiter-CyF-YowB.d.ts} +2 -2
- package/dist/{warm-BZ0ZwSmO.js → warm-BOrs0-_j.js} +1 -1
- package/dist/{warm-znYuJoUZ.d.ts → warm-BYF-zxiy.d.ts} +1 -1
- package/dist/watch-5WP3ZCcR.js +1 -0
- package/dist/{watch-14vng0pg.js → watch-BFDMb5N4.js} +1 -1
- package/dist/{watch-DuIAsqFR.js → watch-DYsWhTvO.js} +2 -2
- package/dist/webmcp/index.d.ts +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-C36-eV-C.d.ts → wrap-CPvBX9lm.d.ts} +2 -2
- package/package.json +2 -2
- package/schemas/supabase-manifest-v1.json +1 -1
- package/dist/bundle-size-BRFeBvuv.js +0 -1
- package/dist/catalog-sR0m6x2g.js +0 -1
- package/dist/claims-size-C6oKGuOM.js +0 -1
- package/dist/collect-CIdE3FGC.js +0 -1
- package/dist/gen-vr1udb1p.js +0 -1
- package/dist/pull-IQPhpX4y.js +0 -1
- package/dist/replay-B__gzUx3.d.ts +0 -3
- package/dist/run-CfvcMtPK.js +0 -1
- package/dist/supabase-hook-DZk7PV7Z.js +0 -2
- package/dist/usage-DOcCnIdW.js +0 -1
- package/dist/watch-Be7ja4dL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as activeFromSql, n as activeSource, r as checkSources, i as entriesSql, a as hookMemberships, o as memberForPlan, s as positiveInteger, c as typedSourceUsers, l as typedUsers } from "./memberships-
|
|
1
|
+
export { t as activeFromSql, n as activeSource, r as checkSources, i as entriesSql, a as hookMemberships, o as memberForPlan, s as positiveInteger, c as typedSourceUsers, l as typedUsers } from "./memberships-CDiSsFTu.js";
|
|
@@ -4,10 +4,10 @@ import { c as listPermissions, i as getRegistry, s as isRegistryTree } from "./p
|
|
|
4
4
|
import { i as grantList } from "./policy-CZBJDcTx.js";
|
|
5
5
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
7
|
-
import { c as jsonSchemaOf } from "./catalog-doc-
|
|
7
|
+
import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
|
|
8
8
|
import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
9
9
|
import { a as parseSqlFile, f as stringValues, l as readRelation, t as SqlSyntaxError, u as removeStatements } from "./ast-Dnm2TOHN.js";
|
|
10
|
-
import { f as compileConditionSql } from "./rbac-
|
|
10
|
+
import { f as compileConditionSql } from "./rbac-Dx88RLxH.js";
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
import { relative } from "node:path";
|
|
13
13
|
// src/cli/sql/exported-copies.ts
|
|
@@ -116,9 +116,9 @@ function hasMemberOf(input, name) {
|
|
|
116
116
|
return isTeamScope(name) && hasMemberFor(input, name);
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* Whether
|
|
120
|
-
*
|
|
121
|
-
*
|
|
119
|
+
* Whether scope `name` has a membership table or source on Supabase.
|
|
120
|
+
* `member_<scope>_ids_for` is also written for a scope without one when another
|
|
121
|
+
* scope has one, and then returns no rows.
|
|
122
122
|
*/
|
|
123
123
|
function hasMemberFor(input, name) {
|
|
124
124
|
if (input.dialect !== "supabase") return false;
|
package/dist/nest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { D as ConnectionOptions, T as Connection, f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CaKNUxdc.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-NJ4-pCZy.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy, Or as Principal } from "../policy-types-
|
|
4
|
+
import { D as Policy, Or as Principal } from "../policy-types-CRWqx8qf.js";
|
|
5
5
|
import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
|
|
6
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
6
|
+
import { t as ServerAdapterOptions } from "../bind-CLvD4iLc.js";
|
|
7
7
|
import { r as sendResponse, t as NodeRequest } from "../http-BUIYu1Kc.js";
|
|
8
8
|
import { CanActivate, DynamicModule, ExceptionFilter, ExecutionContext, Type } from "@nestjs/common";
|
|
9
9
|
/**
|
package/dist/nest/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSi
|
|
|
2
2
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
3
3
|
import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
|
|
4
4
|
import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
|
|
5
|
-
import { a as socketConnection, r as bindKernel } from "../bind-
|
|
5
|
+
import { a as socketConnection, r as bindKernel } from "../bind-BNYcJ1D9.js";
|
|
6
6
|
import { c as writeReply, r as hasCredentials } from "../http-C9jDw_bZ.js";
|
|
7
7
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
8
8
|
import { a as onRevoked, n as closeReason, t as POLICY_VIOLATION } from "../stream-DdF94h7T.js";
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
2
|
-
import { r as warm, t as WarmReport } from "../warm-
|
|
3
|
-
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, ir as Decision, pn as SnapshotTenants, rn as Snapshot, sr as DenialReason } from "../policy-types-
|
|
4
|
-
import { m as ApprovalStore } from "../types-
|
|
5
|
-
import { b as ProtectedAction, y as ActionResult } from "../store-core-
|
|
6
|
-
import { F as PermissionState, P as PermissionCheck, a as PermDock, d as UncheckedData, s as RowData } from "../permdock-
|
|
7
|
-
import { n as DescribeMessages } from "../describe-
|
|
8
|
-
import { t as InstanceOptions } from "../instance-options-
|
|
1
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotKey, r as SnapshotHeadersOptions, s as snapshotTag, t as CacheLifeForOptions } from "../snapshot-cache-Dh_owfVu.js";
|
|
2
|
+
import { r as warm, t as WarmReport } from "../warm-BYF-zxiy.js";
|
|
3
|
+
import { Ar as Subject, D as Policy, N as PolicyVocabulary, Or as Principal, Q as Intent, ir as Decision, pn as SnapshotTenants, rn as Snapshot, sr as DenialReason } from "../policy-types-CRWqx8qf.js";
|
|
4
|
+
import { m as ApprovalStore } from "../types-BdghnYGo.js";
|
|
5
|
+
import { b as ProtectedAction, y as ActionResult } from "../store-core-fRqdlrep.js";
|
|
6
|
+
import { F as PermissionState, P as PermissionCheck, a as PermDock, d as UncheckedData, s as RowData } from "../permdock-NJ4-pCZy.js";
|
|
7
|
+
import { n as DescribeMessages } from "../describe-DLGEciCs.js";
|
|
8
|
+
import { t as InstanceOptions } from "../instance-options-CUNLusL6.js";
|
|
9
9
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
10
|
-
import { n as PermDockWrap } from "../wrap-
|
|
11
|
-
import { o as OtelWrap } from "../types-
|
|
12
|
-
import { n as PermDockProviderProps } from "../types-
|
|
10
|
+
import { n as PermDockWrap } from "../wrap-CPvBX9lm.js";
|
|
11
|
+
import { o as OtelWrap } from "../types-CN3Tk7bb.js";
|
|
12
|
+
import { n as PermDockProviderProps } from "../types-BGDafbIK.js";
|
|
13
13
|
import { n as TenantSlugResolver } from "../tenant-from-path-Dq3jkqjh.js";
|
|
14
14
|
import { ReactElement, ReactNode } from "react";
|
|
15
15
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/next/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-DTTEfmxv.js";
|
|
2
|
-
import { t as warm } from "../warm-
|
|
3
|
-
import { u as withApp } from "../permdock-
|
|
4
|
-
import { n as resolveOrNull, t as buildInstance } from "../build-instance-
|
|
2
|
+
import { t as warm } from "../warm-BOrs0-_j.js";
|
|
3
|
+
import { u as withApp } from "../permdock-CbavFN6u.js";
|
|
4
|
+
import { n as resolveOrNull, t as buildInstance } from "../build-instance-BGpABVbM.js";
|
|
5
5
|
import { a as permissionStates } from "../checks-DSm45qH7.js";
|
|
6
6
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
7
7
|
import { n as NO_GRANT, t as LOAD_FAILED } from "../decision-hHv4UZgy.js";
|
package/dist/next/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PermDockPluginOptions } from "../types-run-
|
|
1
|
+
import { n as PermDockPluginOptions } from "../types-run-sP7yLp61.js";
|
|
2
2
|
/** Any object: Next's `NextConfig` is an interface, so no index signature. */
|
|
3
3
|
type NextConfigLike = object;
|
|
4
4
|
/** What `next.config` may export: an object, or a function of the phase. */
|
package/dist/next/plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as describeError } from "../errors-DgLOqc6j.js";
|
|
2
|
-
import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-
|
|
2
|
+
import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-BFDMb5N4.js";
|
|
3
3
|
// src/cli/plugin.ts
|
|
4
4
|
const PHASE_BUILD = "phase-production-build";
|
|
5
5
|
const PHASE_DEV = "phase-development-server";
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, r as Guard, s as ScopeGuard, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-
|
|
2
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { f as InvalidSignatureError, i as OpenApiHooks, o as ProtectOptions, r as Guard, s as ScopeGuard, v as discoverViaSignatureAgent, x as webBotAuthVerifier } from "../server-types-CaKNUxdc.js";
|
|
2
|
+
import { a as PermDock } from "../permdock-NJ4-pCZy.js";
|
|
3
3
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
4
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
4
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-CRWqx8qf.js";
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-CLvD4iLc.js";
|
|
6
6
|
import { i as toRequest, n as isServerResponse, r as sendResponse, t as NodeRequest } from "../http-BUIYu1Kc.js";
|
|
7
7
|
import { IncomingMessage, ServerResponse } from "node:http";
|
|
8
8
|
type NodePermDockOptions<TUser = unknown> = ServerAdapterOptions<NodeRequest, TUser>;
|
package/dist/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
|
|
2
|
-
import { r as bindKernel } from "../bind-
|
|
2
|
+
import { r as bindKernel } from "../bind-BNYcJ1D9.js";
|
|
3
3
|
import { n as sendResponse, r as toRequest, t as isServerResponse } from "../http-dNltTpC8.js";
|
|
4
4
|
// src/node/create.ts
|
|
5
5
|
const nodeRequest = (req) => req;
|
package/dist/openai/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-
|
|
2
|
-
import { u as ApprovalRequest } from "../types-
|
|
3
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-BTthKNP0.js";
|
|
2
|
+
import { u as ApprovalRequest } from "../types-BdghnYGo.js";
|
|
3
|
+
import { a as PermDock } from "../permdock-NJ4-pCZy.js";
|
|
4
4
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
5
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-
|
|
5
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-CRWqx8qf.js";
|
|
6
6
|
/** The app context passed to `run(agent, input, { context })`. */
|
|
7
7
|
type OpenAiContext = {
|
|
8
8
|
readonly user?: unknown;
|
package/dist/openai/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as agentRuntime } from "../create-
|
|
2
|
-
import { t as approvalTokenOf } from "../kernel-
|
|
3
|
-
import { u as withApp } from "../permdock-
|
|
1
|
+
import { t as agentRuntime } from "../create-BICq9l-p.js";
|
|
2
|
+
import { t as approvalTokenOf } from "../kernel-yI0nUyuX.js";
|
|
3
|
+
import { u as withApp } from "../permdock-CbavFN6u.js";
|
|
4
4
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
5
5
|
// src/openai/create.ts
|
|
6
6
|
function appContext(runContext) {
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as Policy, Fr as Condition, Or as Principal } from "../policy-types-
|
|
1
|
+
import { D as Policy, Fr as Condition, Or as Principal } from "../policy-types-CRWqx8qf.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { a as OpenApiOperationRef, c as OperationEntry, d as OperationSkipCause, f as operationPermissions, i as OPERATION_SKIP_CAUSES, l as OperationLookup, n as OperationCoverageOptions, o as OperationDeclaration, p as operationPermissionsFromOpenApi, r as operationCoverage, s as OperationEnforcement, t as OperationCoverage, u as OperationPermissions } from "../coverage-AOeWiQ7Z.js";
|
|
4
|
-
import { a as ProblemDetails } from "../errors-
|
|
4
|
+
import { a as ProblemDetails } from "../errors-C35fh_2K.js";
|
|
5
5
|
import { StandardJSONSchemaV1, StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
6
|
type OpenApiTarget = "3.1" | "3.2" | "3.3";
|
|
7
7
|
type OverlayVersion = "1.1" | "1.2";
|
|
@@ -7,12 +7,101 @@ const docFlag = { doc: {
|
|
|
7
7
|
description: "OpenAPI document: a path, or a URL for import",
|
|
8
8
|
valueHint: "path"
|
|
9
9
|
} };
|
|
10
|
-
|
|
10
|
+
const emitFlags = {
|
|
11
11
|
...docFlag,
|
|
12
12
|
...outFlag,
|
|
13
13
|
...checkFlag,
|
|
14
|
-
...policyFlag
|
|
15
|
-
|
|
14
|
+
...policyFlag,
|
|
15
|
+
target: {
|
|
16
|
+
type: "enum",
|
|
17
|
+
options: [
|
|
18
|
+
"3.1",
|
|
19
|
+
"3.2",
|
|
20
|
+
"3.3"
|
|
21
|
+
],
|
|
22
|
+
default: "3.2",
|
|
23
|
+
description: "OpenAPI version; 3.3 is the pinned Security Profiles draft"
|
|
24
|
+
},
|
|
25
|
+
kind: {
|
|
26
|
+
type: "enum",
|
|
27
|
+
options: ["document", "overlay"],
|
|
28
|
+
default: "document",
|
|
29
|
+
description: "A full document or an Overlay"
|
|
30
|
+
},
|
|
31
|
+
overlay: {
|
|
32
|
+
type: "enum",
|
|
33
|
+
options: ["1.1", "1.2"],
|
|
34
|
+
default: "1.1",
|
|
35
|
+
description: "Overlay version; 1.2 is the pinned reusable-actions draft"
|
|
36
|
+
},
|
|
37
|
+
profile: {
|
|
38
|
+
type: "enum",
|
|
39
|
+
options: ["fapi2"],
|
|
40
|
+
description: "Security profile to declare"
|
|
41
|
+
},
|
|
42
|
+
"profile-scheme": {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "Security scheme name for the profile",
|
|
45
|
+
valueHint: "name"
|
|
46
|
+
},
|
|
47
|
+
scheme: {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "OAuth security scheme name (default permdockOAuth)",
|
|
50
|
+
valueHint: "name"
|
|
51
|
+
},
|
|
52
|
+
"metadata-url": {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "OAuth authorization server metadata URL",
|
|
55
|
+
valueHint: "url"
|
|
56
|
+
},
|
|
57
|
+
"device-flow": {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "Declare the device authorization flow"
|
|
60
|
+
},
|
|
61
|
+
arity: {
|
|
62
|
+
type: "boolean",
|
|
63
|
+
description: "Mark instance and collection operations"
|
|
64
|
+
},
|
|
65
|
+
"authorization-url": {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "OAuth authorization endpoint",
|
|
68
|
+
valueHint: "url"
|
|
69
|
+
},
|
|
70
|
+
"token-url": {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "OAuth token endpoint",
|
|
73
|
+
valueHint: "url"
|
|
74
|
+
},
|
|
75
|
+
"device-authorization-url": {
|
|
76
|
+
type: "string",
|
|
77
|
+
description: "OAuth device authorization endpoint",
|
|
78
|
+
valueHint: "url"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
async function executeOpenapiEmit(ctx, flags) {
|
|
82
|
+
return (await import("./openapi-CNWuAQZi.js")).runOpenapi({
|
|
83
|
+
cwd: ctx.cwd,
|
|
84
|
+
config: ctx.config,
|
|
85
|
+
rest: ["emit"],
|
|
86
|
+
doc: given(flags.doc),
|
|
87
|
+
out: fileOut("openapi emit", flags.out),
|
|
88
|
+
from: given(flags.policy),
|
|
89
|
+
target: flags.target,
|
|
90
|
+
format: flags.kind,
|
|
91
|
+
overlay: flags.overlay,
|
|
92
|
+
check: flags.check,
|
|
93
|
+
profile: flags.profile,
|
|
94
|
+
profileScheme: given(flags["profile-scheme"]),
|
|
95
|
+
scheme: given(flags.scheme) ?? "permdockOAuth",
|
|
96
|
+
metadataUrl: given(flags["metadata-url"]),
|
|
97
|
+
deviceFlow: flags["device-flow"],
|
|
98
|
+
arity: flags.arity,
|
|
99
|
+
authorizationUrl: given(flags["authorization-url"]),
|
|
100
|
+
tokenUrl: given(flags["token-url"]),
|
|
101
|
+
deviceAuthorizationUrl: given(flags["device-authorization-url"]),
|
|
102
|
+
io: ctx.io
|
|
103
|
+
});
|
|
104
|
+
}
|
|
16
105
|
const annotateFlags = {
|
|
17
106
|
routes: {
|
|
18
107
|
type: "string",
|
|
@@ -64,6 +153,12 @@ async function executeAnnotate(ctx, flags) {
|
|
|
64
153
|
io: ctx.io
|
|
65
154
|
});
|
|
66
155
|
}
|
|
156
|
+
const emitDocument = defineLeaf({
|
|
157
|
+
flags: emitFlags,
|
|
158
|
+
run(ctx, { flags }) {
|
|
159
|
+
return executeOpenapiEmit(ctx, flags);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
67
162
|
const annotateRoutes = defineLeaf({
|
|
68
163
|
flags: annotateFlags,
|
|
69
164
|
run(ctx, { flags }) {
|
|
@@ -88,7 +183,7 @@ const importDocument = defineLeaf({
|
|
|
88
183
|
async run(ctx, { flags }) {
|
|
89
184
|
const doc = given(flags.doc);
|
|
90
185
|
if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
|
|
91
|
-
return (await import("./import-
|
|
186
|
+
return (await import("./import-DEUiWePf.js")).runOpenapiImport({
|
|
92
187
|
cwd: ctx.cwd,
|
|
93
188
|
doc,
|
|
94
189
|
out: fileOut("openapi import", flags.out),
|
|
@@ -99,4 +194,4 @@ const importDocument = defineLeaf({
|
|
|
99
194
|
});
|
|
100
195
|
}
|
|
101
196
|
});
|
|
102
|
-
export { annotateRoutes, importDocument };
|
|
197
|
+
export { annotateRoutes, emitDocument, importDocument };
|
|
@@ -7,7 +7,7 @@ import { i as fileDrift } from "./output-files-8lfALMSU.js";
|
|
|
7
7
|
import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
|
|
8
8
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
9
9
|
import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
|
|
10
|
-
import { n as validateOverlay, t as validateOpenapi } from "./schema-
|
|
10
|
+
import { n as validateOverlay, t as validateOpenapi } from "./schema-DVyxM9xS.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
13
13
|
// src/cli/openapi/emit/merge.ts
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
|
3
3
|
/** The annotated document, without writing it. */
|
|
4
4
|
async function openapiDocument(task, options, source) {
|
|
5
5
|
if (options.doc === void 0) return [];
|
|
6
|
-
const { runOpenapi } = await import("./openapi-
|
|
6
|
+
const { runOpenapi } = await import("./openapi-CNWuAQZi.js");
|
|
7
7
|
const outcome = await runOpenapi({
|
|
8
8
|
cwd: source.cwd,
|
|
9
9
|
config: source.config,
|
package/dist/orpc/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as PermDock } from "../permdock-
|
|
1
|
+
import { a as PermDock } from "../permdock-NJ4-pCZy.js";
|
|
2
2
|
import { w as Permission } from "../vocabulary-DHfKPIC5.js";
|
|
3
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-
|
|
3
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-CRWqx8qf.js";
|
|
4
4
|
import { n as RevocationFeed } from "../revocations-ku_f2d2y.js";
|
|
5
|
-
import { t as ServerAdapterOptions } from "../bind-
|
|
6
|
-
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-
|
|
7
|
-
import { t as RpcProtectOptions } from "../rpc-
|
|
5
|
+
import { t as ServerAdapterOptions } from "../bind-CLvD4iLc.js";
|
|
6
|
+
import { D as ConnectionOptions, T as Connection, i as OpenApiHooks } from "../server-types-CaKNUxdc.js";
|
|
7
|
+
import { t as RpcProtectOptions } from "../rpc-CqKQCBPN.js";
|
|
8
8
|
import { a as OperationInput, t as Operation } from "../operations-DaEoGpMV.js";
|
|
9
9
|
import { AnySchema, MetaPlugin, Middleware, Procedure, Schema } from "@orpc/server";
|
|
10
10
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
package/dist/orpc/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as compact } from "../compact-C4LFuqbW.js";
|
|
2
2
|
import { o as isPermission } from "../permission-registry-DstT40VS.js";
|
|
3
|
-
import { n as attached } from "../bind-
|
|
3
|
+
import { n as attached } from "../bind-BNYcJ1D9.js";
|
|
4
4
|
import { o as problemMessage } from "../http-C9jDw_bZ.js";
|
|
5
5
|
import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
|
|
6
|
-
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-
|
|
6
|
+
import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-RDBrKR7N.js";
|
|
7
7
|
import { i as isAsyncIterable, o as reloadAfter } from "../stream-DdF94h7T.js";
|
|
8
8
|
import { r as permissionList } from "../decide-set-CgNcE6pP.js";
|
|
9
9
|
import { ORPCError, os } from "@orpc/server";
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as PermDock } from "../permdock-
|
|
2
|
-
import { N as PolicyVocabulary } from "../policy-types-
|
|
3
|
-
import { a as OtelOptions, i as OtelApi, n as GEN_AI_TOOL_CALL_ID, o as OtelWrap, r as GEN_AI_TOOL_NAME, s as StructuralLogger, t as GENAI_SEMCONV_PIN } from "../types-
|
|
1
|
+
import { a as PermDock } from "../permdock-NJ4-pCZy.js";
|
|
2
|
+
import { N as PolicyVocabulary } from "../policy-types-CRWqx8qf.js";
|
|
3
|
+
import { a as OtelOptions, i as OtelApi, n as GEN_AI_TOOL_CALL_ID, o as OtelWrap, r as GEN_AI_TOOL_NAME, s as StructuralLogger, t as GENAI_SEMCONV_PIN } from "../types-CN3Tk7bb.js";
|
|
4
4
|
/**
|
|
5
5
|
* Listens on one instance. Spans carry no duration and no histogram is
|
|
6
6
|
* recorded, because a listener only sees a decision after it is made; use
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as isActionRequired, l as isRetryable, n as CliError, t as CLI_ERRORS_URL } from "./errors-DgLOqc6j.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
|
|
3
3
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
// src/cli/core/consent.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { l as scopeChain, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
2
2
|
import { r as findRole } from "./vocabulary-CE2k7s1a.js";
|
|
3
|
-
import { S as scopeTable, _ as memberRoleOf, m as memberForTable, x as scopeSources } from "./names-
|
|
3
|
+
import { S as scopeTable, _ as memberRoleOf, m as memberForTable, x as scopeSources } from "./names-DwGleRKB.js";
|
|
4
4
|
import { C as tenantTypeOf, a as kindFilterSql, f as subjectIdSql, r as globalKindFilterSql, s as memberVia } from "./subject-B7p94Y0s.js";
|
|
5
5
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
6
6
|
import { l as roleColumn } from "./sources-C6Id63F8.js";
|
|
7
7
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
8
8
|
import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
9
9
|
import { s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
10
|
-
import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-
|
|
11
|
-
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-
|
|
10
|
+
import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-CylKSukS.js";
|
|
11
|
+
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-Dyfviku5.js";
|
|
12
12
|
// src/cli/rls/assignments.ts
|
|
13
13
|
/**
|
|
14
14
|
* The client roles whose writes the assignment triggers check; any other role
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tn as LocalSnapshotManifest } from "./policy-types-
|
|
1
|
+
import { tn as LocalSnapshotManifest } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
/**
|
|
3
3
|
* Whether `value` has the shape `localSnapshotManifest(policy)` writes, with no
|
|
4
4
|
* prototype keys. A JSON import widens `v: 1` to `number`; this narrows it back
|
package/dist/pdp/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as PermDockOptions } from "../permdock-
|
|
2
|
-
import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-
|
|
3
|
-
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-
|
|
1
|
+
import { o as PermDockOptions } from "../permdock-NJ4-pCZy.js";
|
|
2
|
+
import { D as Policy, N as PolicyVocabulary, Or as Principal, Y as DecisionProvider } from "../policy-types-CRWqx8qf.js";
|
|
3
|
+
import { a as RelationMap, c as RemotePdpEndpoints, d as SpiceDbCheck, f as SpiceDbOptions, i as PdpPermDock, l as RemotePdpMapping, n as OpenFgaTuple, o as RemotePdpAuth, r as PdpFactory, s as RemotePdpCache, t as OpenFgaOptions, u as RemotePdpOptions } from "../types-Jxy_Ko7f.js";
|
|
4
4
|
/**
|
|
5
5
|
* The PDP-aware instance, built synchronously like core `getPermDockSync`; use
|
|
6
6
|
* `getPermDock` for asynchronous inputs.
|
package/dist/pdp/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
|
|
|
4
4
|
import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
|
|
5
5
|
import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
|
|
6
6
|
import { n as internalsOf, t as attachInternals } from "../internals-D58TnmDB.js";
|
|
7
|
-
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-
|
|
7
|
+
import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-CbavFN6u.js";
|
|
8
8
|
import { a as getResource, c as listPermissions } from "../permission-registry-DstT40VS.js";
|
|
9
9
|
import { a as postJson, c as ttlMs, i as joinUrl, n as denied, o as resourceIdOf, r as granted, s as ttlCache, t as cacheKey } from "../shared-BOsJIQf4.js";
|
|
10
10
|
import { n as toWireDelegation } from "../wire-delegation-DC5Cyec4.js";
|
|
@@ -626,7 +626,10 @@ function assemblePrincipal(policy, user, options, auth, memo) {
|
|
|
626
626
|
}, () => read(source, principal), auth, source.globalRolesFor === void 0 ? void 0 : () => source.globalRolesFor?.(compact({
|
|
627
627
|
id: principal.id,
|
|
628
628
|
kind: principal.kind
|
|
629
|
-
}), {
|
|
629
|
+
}), compact({
|
|
630
|
+
memo,
|
|
631
|
+
tenant: options.tenant
|
|
632
|
+
})) ?? [], options.version?.known, forced, rolesCheck);
|
|
630
633
|
memberships = reread.memberships;
|
|
631
634
|
stale = reread.stale;
|
|
632
635
|
roles = reread.roles;
|
|
@@ -1001,7 +1004,7 @@ function deriveEnv(policy, subject, base, relationCache, options) {
|
|
|
1001
1004
|
const auth = [];
|
|
1002
1005
|
const named = options.customRoles === void 0 ? void 0 : roleSourceFor(options.customRoles, subject, auth);
|
|
1003
1006
|
const roleSource = options.customRoles === void 0 ? base.roleSource : named;
|
|
1004
|
-
const roles = options.customRoles === void 0 ? base.customRoles : customRolesFor(named, tenants, auth, subject.principal === null ? void 0 : subject.principal.roles ?? [], (tenant) => heldRoleNamesIn(subject.principal, scopes, tenant));
|
|
1007
|
+
const roles = options.customRoles === void 0 ? base.customRoles : customRolesFor(named, tenants, auth, subject.principal === null ? void 0 : subject.principal.roles ?? [], (tenant) => heldRoleNamesIn(subject.principal, scopes, tenant), base.memo);
|
|
1005
1008
|
const names = options.customRoles === void 0 ? base.assignable : assignableNamesFor(named, tenants, auth);
|
|
1006
1009
|
const approvals = options.approvalPolicies === void 0 ? base.approvalPolicies : options.approvalPolicies.load(policy, tenants, auth);
|
|
1007
1010
|
const envWith = (loadedRoles, loadedNames, loadedApprovals) => compact({
|
|
@@ -1505,6 +1508,7 @@ function instantiate(codePolicy, subject, options, auth, memo) {
|
|
|
1505
1508
|
memberships: options.memberships === void 0 ? void 0 : asMembershipSource(options.memberships),
|
|
1506
1509
|
principals: options.principals,
|
|
1507
1510
|
settings: options.settings,
|
|
1511
|
+
memo,
|
|
1508
1512
|
targets: (principal, tenant) => getPermDock(codePolicy, {
|
|
1509
1513
|
principal,
|
|
1510
1514
|
context: {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-
|
|
1
|
+
import { Ar as Subject, D as Policy, Dr as Membership, Fr as Condition, J as CustomRoleSourceFactory, N as PolicyVocabulary, Nr as AdapterId, Or as Principal, Q as Intent, X as DecisionSink, Z as EntitlementSource, _ as Grant, _t as TokenSigner, ct as RelationSource, dr as LimitDetail, gn as AuthEvent, ir as Decision, it as MembershipSource, jn as Scope, lr as ExplainedDecision, lt as SettingsSource, mr as Quota, nt as LimitStore, o as ApprovalOption, pn as SnapshotTenants, pr as Obligation, q as CustomRoleSource, qt as Instant, rn as Snapshot, vr as Actor, wr as Delegation, y as GrantLimit, yn as DecisionEvent } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { K as AppData, P as ResourceNode, V as RowOf, a as RoleTree, n as PlanTree, r as Role, w as Permission } from "./vocabulary-DHfKPIC5.js";
|
|
3
3
|
import { i as OperationEffect, s as OperationMeta, t as Operation, u as OperationRisk } from "./operations-DaEoGpMV.js";
|
|
4
|
-
import { a as HostedPolicies } from "./hosted-
|
|
4
|
+
import { a as HostedPolicies } from "./hosted-Cl7q35D-.js";
|
|
5
5
|
/**
|
|
6
6
|
* One approval requirement kept as data, for a tenant or the whole platform. It
|
|
7
7
|
* adds to what the code requires and never removes a requirement.
|
|
@@ -759,9 +759,11 @@ type PermDock<V extends PolicyVocabulary = PolicyVocabulary> = {
|
|
|
759
759
|
/**
|
|
760
760
|
* The same subject, tenant, team, actor, delegation, sink and limits with
|
|
761
761
|
* other sources: `customRoles`, `approvalPolicies` or `relations`. The
|
|
762
|
-
* sources it names are read again for the subject's tenants
|
|
763
|
-
*
|
|
764
|
-
*
|
|
762
|
+
* sources it names are read again for the subject's tenants, with this
|
|
763
|
+
* instance's `SourceMemo` as `context.memo`, so a read this instance already
|
|
764
|
+
* made under the same memo key is answered from it; the others keep what this
|
|
765
|
+
* instance loaded. Always a promise, since the sources it names may answer
|
|
766
|
+
* asynchronously.
|
|
765
767
|
*/
|
|
766
768
|
readonly derive: (options: DeriveOptions) => Promise<PermDock<V>>;
|
|
767
769
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as crud } from "./src-
|
|
1
|
+
import { c as crud } from "./src-10d_jun2.js";
|
|
2
2
|
import { t as definePermissions } from "./permissions-DJ_QV9L7.js";
|
|
3
3
|
import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
|
|
4
4
|
import { v as resource } from "./permission-registry-DstT40VS.js";
|
|
@@ -2,8 +2,8 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
|
2
2
|
import { r as planFiles, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-
|
|
6
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
5
|
+
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-wt3wihiH.js";
|
|
6
|
+
import { n as resolveSchemas } from "./supabase-schemas-RG58AMTu.js";
|
|
7
7
|
import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
9
9
|
import { join, relative, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-
|
|
2
|
-
import { a as PermDockConfig } from "./types-config-
|
|
1
|
+
import { D as Policy, Fr as Condition, _ as Grant, jn as Scope } from "./policy-types-CRWqx8qf.js";
|
|
2
|
+
import { a as PermDockConfig } from "./types-config-B3eAej9-.js";
|
|
3
3
|
import { P as ResourceNode } from "./vocabulary-DHfKPIC5.js";
|
|
4
4
|
/** The settings of the Supabase project config doctor reads. */
|
|
5
5
|
type SupabaseConfig = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-
|
|
1
|
+
import { Ar as Subject, D as Policy, Or as Principal } from "./policy-types-CRWqx8qf.js";
|
|
2
2
|
import { c as saasPlans, l as saasRoles, s as saasPermissions } from "./permissions-UyQD5nRN.js";
|
|
3
3
|
/** Daily API-key quota per subject; the bucket should be per tenant too. */
|
|
4
4
|
declare const SAAS_API_KEY_LIMIT = 5;
|
|
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
|
|
|
18
18
|
},
|
|
19
19
|
async run(ctx, { flags }) {
|
|
20
20
|
try {
|
|
21
|
-
const { runPolicyBundle } = await import("./policy-bundle-
|
|
21
|
+
const { runPolicyBundle } = await import("./policy-bundle-C7Hz9Rrs.js");
|
|
22
22
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
23
23
|
return runPolicyBundle({
|
|
24
24
|
cwd: ctx.cwd,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
3
|
-
import { r as compileGrants } from "./compile-
|
|
4
|
-
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-4jvPn7w3.js";
|
|
3
|
+
import { r as compileGrants } from "./compile-BFV2WG67.js";
|
|
4
|
+
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-Dyfviku5.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -2125,12 +2125,17 @@ type MembershipSource = {
|
|
|
2125
2125
|
* The global roles the principal holds now. With `onStale: 'reread'`, a stale
|
|
2126
2126
|
* token's `principal.roles` is replaced by this answer, so a revoked platform
|
|
2127
2127
|
* role is lost with the memberships. A throw or rejection leaves no global
|
|
2128
|
-
* roles. Without it, a reread keeps the token's roles.
|
|
2128
|
+
* roles. Without it, a reread keeps the token's roles. The context carries
|
|
2129
|
+
* the instance's `tenant` when it has one: global roles are the user's in
|
|
2130
|
+
* every tenant, so a source that reads one tenant's record may answer from
|
|
2131
|
+
* it.
|
|
2129
2132
|
*/
|
|
2130
2133
|
globalRolesFor?: (principal: {
|
|
2131
2134
|
readonly id: string;
|
|
2132
2135
|
readonly kind?: string;
|
|
2133
|
-
}, context?: SourceContext
|
|
2136
|
+
}, context?: SourceContext & {
|
|
2137
|
+
readonly tenant?: string;
|
|
2138
|
+
}) => readonly string[] | Promise<readonly string[]>;
|
|
2134
2139
|
/**
|
|
2135
2140
|
* Keep the memberships the verified token carries and read this source only
|
|
2136
2141
|
* when the token says they were truncated (`claimsFirst`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-
|
|
2
|
-
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-
|
|
1
|
+
import { Ar as Subject, D as Policy, Or as Principal, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry } from "./policy-types-CRWqx8qf.js";
|
|
2
|
+
import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-1EtpGx3y.js";
|
|
3
3
|
/**
|
|
4
4
|
* What a supabase-js `rpc` call resolves to: `data` or an `error` with a
|
|
5
5
|
* message.
|
|
@@ -86,10 +86,11 @@ type PostgrestSourcesOptions = {
|
|
|
86
86
|
* option) through `subject_for(p_user, p_tenant)` instead of every tenant's
|
|
87
87
|
* through `subject_for(p_user)`, so a user in many organisations loads one.
|
|
88
88
|
* An instance with no `tenant`, or an empty one, reads no memberships here:
|
|
89
|
-
* the source never falls back to the all-tenants read.
|
|
90
|
-
* `
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* the source never falls back to the all-tenants read.
|
|
90
|
+
* `memberships.globalRolesFor` reads the instance's tenant too, since that
|
|
91
|
+
* record carries the user's global roles. `subject`, `refresh` and `record`
|
|
92
|
+
* still read the whole user. A custom role of another tenant than the
|
|
93
|
+
* instance's is not read. Default `false`.
|
|
93
94
|
*/
|
|
94
95
|
readonly tenantScoped?: boolean;
|
|
95
96
|
};
|
|
@@ -24,7 +24,7 @@ const verify = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
25
25
|
const fixtures = given(flags.fixtures);
|
|
26
26
|
const from = given(flags.policy);
|
|
27
|
-
const { runPowerSync } = await import("./powersync-
|
|
27
|
+
const { runPowerSync } = await import("./powersync-LpKFefiH.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|