permdock 0.5.0 → 0.7.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/README.md +1 -0
- package/dist/{2020-C9VN-x8c.js → 2020-CJbO8Bvz.js} +1 -3
- package/dist/a2a/index.d.ts +5 -5
- package/dist/a2a/index.js +4 -4
- package/dist/{adoption-scan-B4R5fnMU.js → adoption-scan-D-feE7BE.js} +1 -1
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +1 -1
- package/dist/ai-sdk/index.d.ts +21 -6
- package/dist/ai-sdk/index.js +19 -9
- package/dist/{approval-prompt-Djo_PyZc.d.ts → approval-prompt-K0faOLFp.d.ts} +2 -2
- package/dist/approvals/index.d.ts +4 -4
- package/dist/approvals/index.js +4 -4
- package/dist/{approvals-DJ6Yd5z1.js → approvals-CMRfsbBh.js} +74 -48
- package/dist/{arazzo-B6lebmiQ.js → arazzo-ClrF3PVb.js} +2 -2
- package/dist/{arazzo-BWhNF-k0.js → arazzo-rdeJ8n1J.js} +4 -4
- package/dist/{args-IIolxxKA.js → args-CC3OwyHW.js} +112 -2
- package/dist/astro/index.d.ts +6 -6
- package/dist/astro/index.js +2 -2
- package/dist/{audience-Dg8XsRaO.js → audience-BrMs8c4o.js} +1 -1
- package/dist/{auth-DRLEizbL.js → auth-CscUX8Sy.js} +3 -4
- package/dist/authzen/index.d.ts +162 -22
- package/dist/authzen/index.js +315 -146
- package/dist/{automation-BMZPIVUM.d.ts → automation-DOtAFWdy.d.ts} +3 -3
- package/dist/{automation-DVjOckjV.js → automation-ySsxp_Yp.js} +1 -1
- package/dist/base-url-BQbddZO5.js +9 -0
- package/dist/better-auth/index.d.ts +2 -2
- package/dist/better-auth/index.js +2 -2
- package/dist/better-supabase/index.d.ts +50 -8
- package/dist/better-supabase/index.js +94 -32
- package/dist/{bind-CZzhx-Vj.js → bind-D1nO6fiC.js} +5 -5
- package/dist/{bind--9EFVYWF.d.ts → bind-JDuvxjuW.d.ts} +7 -7
- package/dist/{build-instance-BMnAudHn.js → build-instance-DxE7czo9.js} +1 -1
- package/dist/{canonical-json-BC8_nMTw.js → canonical-json-DwilZ1iB.js} +6 -3
- package/dist/{capability-BSslw1QV.d.ts → capability-D4UC9TTW.d.ts} +2 -2
- package/dist/{capability-N1K9IpqS.js → capability-L7NnfhiE.js} +1 -1
- package/dist/{casbin-Cr7RLtA3.js → casbin-BHijLuHY.js} +2 -2
- package/dist/{casbin-Dyu2gnUD.js → casbin-BW9pS47J.js} +1 -1
- package/dist/{casl-64gpT-8x.js → casl-CmJlgziS.js} +2 -2
- package/dist/{casl-DjEDhTCP.js → casl-UbI8v-Wq.js} +1 -1
- package/dist/catalog/index.d.ts +70 -10
- package/dist/catalog/index.js +112 -6
- package/dist/catalog-BCCjSAdH.js +1 -0
- package/dist/{catalog-R_A__RsH.js → catalog-BaMQfQ6Y.js} +3 -3
- package/dist/{catalog-BECMPrwc.js → catalog-D69WhFii.js} +43 -13
- package/dist/{catalog-doc-C9wjsfNY.js → catalog-doc-CV9s6B1S.js} +28 -5
- package/dist/{catalog-fingerprint-CCP0-yQS.js → catalog-fingerprint-C144oW4M.js} +1 -1
- package/dist/{create-BWRSXgOF.js → challenge-nGWma08S.js} +122 -25
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +2 -2
- package/dist/chat-sdk/index.d.ts +3 -3
- package/dist/checks-BC_0mPIq.js +37 -0
- package/dist/claude-agent/index.d.ts +3 -3
- package/dist/claude-agent/index.js +2 -2
- package/dist/clerk/index.d.ts +3 -3
- package/dist/clerk/index.js +1 -1
- package/dist/cli/bin.js +2 -2
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +3 -3
- package/dist/cloud/index.d.ts +127 -11
- package/dist/cloud/index.js +251 -3
- package/dist/{cloud-CIoHNevm.js → cloud-CO8pYtwr.js} +5 -5
- package/dist/{codemod-Cxvvc70T.js → codemod-BP6n8N9L.js} +3 -3
- package/dist/{codemod-Bmj9dWMH.js → codemod-i4N2BhDc.js} +3 -3
- package/dist/{collect-CrZJJnEF.js → collect-BaWeMjwV.js} +17 -8
- package/dist/{collect-DloHbDVa.js → collect-DNm3oKOk.js} +6 -5
- package/dist/collect-k_Dulxr5.js +1 -0
- package/dist/compile/index.d.ts +1 -1
- package/dist/compile/index.js +1 -1
- package/dist/{compile-CMqMx_IN.js → compile-BAEO5bOk.js} +2 -2
- package/dist/{compile-Ckm2HqBZ.d.ts → compile-COM2VKuN.d.ts} +3 -3
- package/dist/{completion-BqhRBJD8.js → completion-BNdVf7X2.js} +3 -3
- package/dist/{config-bs_kZeYq.js → config-CoQHDrDi.js} +7 -3
- package/dist/{config-B46rm9sc.js → config-DGZzMV1B.js} +2 -2
- package/dist/{config-report-DUgj62Ai.js → config-report-Cm7UITNA.js} +3 -3
- package/dist/connector-schema-_VCSsdtD.js +433 -0
- package/dist/{context-bbFHR-0D.js → context--uM9V3Ui.js} +2 -2
- package/dist/convex/index.d.ts +5 -5
- package/dist/convex/index.js +2 -2
- package/dist/core-B5-w6Kw9.js +335 -0
- package/dist/core-CQkE8Esr.d.ts +179 -0
- package/dist/{create-0VZ7Pdiu.d.ts → create-B2-CQqCI.d.ts} +5 -5
- package/dist/{create-C3b4B5eF.js → create-Cb86Z8Im.js} +9 -8
- package/dist/{create-DnrmLnLW.js → create-DJrlhEp9.js} +5 -5
- package/dist/{create-BFfm17UA.d.ts → create-QHuuPw3q.d.ts} +7 -7
- package/dist/{create-BDS7wc3y.d.ts → create-UTnUVETj.d.ts} +30 -10
- package/dist/{credential-DM2um3ha.js → credential-CIM7wHwA.js} +4 -4
- package/dist/{credentials-DPyHmYz5.js → credentials-BpuTwd7a.js} +1 -1
- package/dist/{deciding-columns-Sq12mEA6.js → deciding-columns-DRo2QM6E.js} +13 -2
- package/dist/{delegation-DaXVdDhM.js → delegation-C5rOdTp5.js} +5 -5
- package/dist/delivery/index.d.ts +5 -5
- package/dist/delivery/index.js +4 -3
- package/dist/{delivery-DCAgNyCn.js → delivery-rwOKLWRm.js} +51 -2
- package/dist/{denied-text-D8jDHgsl.d.ts → denied-text-D4qkEtFz.d.ts} +2 -2
- package/dist/{describe-BybMRY7A.js → describe-DZlnEtLy.js} +1 -0
- package/dist/{describe-BZUsixiL.d.ts → describe-O0SwYIK8.d.ts} +2 -2
- package/dist/{diff-CxZo9pTq.js → diff-Btr1c1Ow.js} +2 -2
- package/dist/{diff-DCePiN6M.js → diff-DzT-xD13.js} +10 -10
- package/dist/{doctor-DFjUxf2f.js → doctor-BU1szn63.js} +241 -49
- package/dist/{doctor-CxiwSfqH.js → doctor-BoK_y0KO.js} +4 -4
- package/dist/drizzle/index.d.ts +3 -3
- package/dist/drizzle/index.js +1 -1
- package/dist/elysia/index.d.ts +5 -5
- package/dist/elysia/index.js +3 -3
- package/dist/{errors-C2PXIv4c.d.ts → errors-B_Qg9D3e.d.ts} +2 -2
- package/dist/{errors-CWTY6uih.js → errors-DpP_U6Bf.js} +1 -0
- package/dist/{evaluate-_R8QkWaf.js → evaluate-B_oqFbWC.js} +130 -34
- package/dist/{evaluations-16UqqQ6W.d.ts → evaluations-BCddEOfO.d.ts} +4 -4
- package/dist/{evaluations-DZ2CbV5k.js → evaluations-DReoiVBw.js} +4 -4
- package/dist/eve/index.d.ts +5 -5
- package/dist/eve/index.js +3 -3
- package/dist/express/index.d.ts +5 -5
- package/dist/express/index.js +3 -3
- package/dist/fastify/index.d.ts +5 -5
- package/dist/fastify/index.js +3 -3
- package/dist/{fetch-adapter-qKJBuRqy.d.ts → fetch-adapter-CuhyYwC1.d.ts} +4 -4
- package/dist/{fetch-adapter-g0ypLkID.js → fetch-adapter-De-u6vhJ.js} +3 -3
- package/dist/{fields-D9tPVUUS.js → fields-ClcQLrVc.js} +48 -13
- package/dist/{files-C5ZI27eV.js → files-acUbNwWt.js} +15 -2
- package/dist/{fixtures-B7XrLeY7.js → fixtures-BTMW6zgU.js} +2 -2
- package/dist/{flags-C3DktBDY.js → flags-aaeRAdiD.js} +2 -2
- package/dist/{from-snapshot-D2lZt4Dd.js → from-snapshot-Bz469dIh.js} +17 -10
- package/dist/generate-3FNO5P5Q.js +159 -0
- package/dist/{grantee-Cn1HyUsI.js → grantee-BrRANrpT.js} +14 -4
- package/dist/{grantee-conditions-CcXf8hMM.js → grantee-conditions-C6P1Tvol.js} +1 -1
- package/dist/{grantee-match-DHArqY82.js → grantee-match-0RtHWQDx.js} +3 -3
- package/dist/h3/index.d.ts +4 -4
- package/dist/h3/index.js +3 -3
- package/dist/{helpers-DTcZOzhF.js → helpers-DY3vXuGs.js} +3 -3
- package/dist/hono/index.d.ts +5 -5
- package/dist/hono/index.js +3 -3
- package/dist/{hosted-DBDX0M-P.d.ts → hosted-BmjzxQhp.d.ts} +14 -2
- package/dist/{hosted-BZIAYvon.js → hosted-XBgU6RGT.js} +34 -12
- package/dist/{http-DXJ37RDA.js → http-Ca3Sr5x1.js} +1 -1
- package/dist/{import-DMmOG27O.js → import-Bz0GefWg.js} +5 -5
- package/dist/{import-CNV7I2Dw.js → import-DB2EG_iy.js} +3 -3
- package/dist/{index-CxGUswIC.d.ts → index-BE8y3moU.d.ts} +50 -8
- package/dist/{index-Chrs5fQ-.d.ts → index-BSfRl0hZ.d.ts} +6 -6
- package/dist/{index-DOVf7RJv.d.ts → index-BTkwrK7v.d.ts} +155 -17
- package/dist/index-CMiPH2Tv.d.ts +206 -0
- package/dist/{index-SGdIQyzc.d.ts → index-DH9DUDEM.d.ts} +18 -3
- package/dist/{index-BcHcPyIo.d.ts → index-DLwcuCN_.d.ts} +86 -7
- package/dist/index.d.ts +18 -17
- package/dist/index.js +27 -25
- package/dist/{init-GG6Jh8HD.js → init-5TXNji88.js} +5 -5
- package/dist/{init-DeMYsnYJ.js → init-B-4t1NzC.js} +4 -4
- package/dist/{instance-options-Omfd793B.d.ts → instance-options-CU0YQCLH.d.ts} +1 -1
- package/dist/{instance-snapshot-Cxq4ygFc.js → instance-snapshot-CjcwnEiV.js} +20 -14
- package/dist/jwt/index.d.ts +83 -5
- package/dist/jwt/index.js +143 -5
- package/dist/{kernel-5JatXyND.js → kernel-DVExUwkp.js} +138 -12
- package/dist/kysely/index.d.ts +3 -3
- package/dist/kysely/index.js +1 -1
- package/dist/load-DrMHXzgN.js +1 -0
- package/dist/{load-DFS_ry0W.js → load-DxroEzH1.js} +2 -2
- package/dist/{login-Dfe5RlYk.js → login-ClSJh5t5.js} +4 -4
- package/dist/{login-imhuwvn3.js → login-WC9HPJpU.js} +6 -10
- package/dist/{manifest-C8IzW3Do.js → manifest-B79YuF2T.js} +6 -2
- package/dist/{manifest-mx5ghSFM.d.ts → manifest-BVhExYhw.d.ts} +23 -2
- package/dist/{manifest-CtKR3GXL.js → manifest-Dv6q4i5s.js} +54 -35
- package/dist/{manifest-schema-C0kK_8V0.js → manifest-schema-Cv492Qev.js} +37 -7
- package/dist/{map-claims-D3oRmTk0.js → map-claims-etGIS_Dv.js} +14 -11
- package/dist/{map-error-TCAdw-eW.js → map-error-BQGyDm_M.js} +1 -1
- package/dist/mcp/index.d.ts +64 -10
- package/dist/mcp/index.js +151 -22
- package/dist/{migrate-BShP7Vf4.js → migrate-Dodel0IJ.js} +77 -24
- package/dist/nest/index.d.ts +5 -5
- package/dist/nest/index.js +3 -3
- package/dist/next/index.d.ts +9 -9
- package/dist/next/index.js +5 -5
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +2 -2
- package/dist/node/index.d.ts +5 -5
- package/dist/node/index.js +2 -2
- package/dist/openai/index.d.ts +5 -5
- package/dist/openai/index.js +3 -3
- package/dist/openapi/index.d.ts +14 -4
- package/dist/openapi/index.js +1 -1
- package/dist/{openapi-ahr8rHu3.js → openapi-DMocl1bh.js} +4 -4
- package/dist/{openapi-B7HZ0f-r.js → openapi-Ddb4628T.js} +2 -7
- package/dist/{openapi-DTaEmTSW.js → openapi-ztVaux6j.js} +8 -8
- package/dist/{operation-findings-DgATDpvh.js → operation-findings-kRcEp8lE.js} +1 -1
- package/dist/{operations-CxybZErY.d.ts → operations-BNLes61x.d.ts} +1 -1
- package/dist/orpc/index.d.ts +6 -6
- package/dist/orpc/index.js +4 -4
- package/dist/otel/index.d.ts +3 -3
- package/dist/otel/index.js +1 -1
- package/dist/{output-Dyw8fyPF.js → output-DgSDLrta.js} +7 -3
- package/dist/{output-files-DhRBBE4n.js → output-files-CCMdcFWb.js} +2 -2
- package/dist/output-files-DPAY7-GX.js +1 -0
- package/dist/{ownership-BatFgAA4.js → ownership-Z2LpxsGa.js} +1349 -883
- package/dist/parse-Ddhz2xf4.js +148 -0
- package/dist/{parse-local-manifest-CVSs6J9I.js → parse-local-manifest-T1Q8X3A2.js} +24 -1
- package/dist/{parse-local-manifest-DgqtruPn.d.ts → parse-local-manifest-e4mdwAKd.d.ts} +1 -1
- package/dist/pdp/index.d.ts +3 -3
- package/dist/pdp/index.js +7 -3
- package/dist/peer-12Q5I_RH.js +976 -0
- package/dist/{peer-CRvC7Hg1.js → peer-DOzzMfZL.js} +1 -1
- package/dist/{permdock-B9JxkBwC.js → permdock-BfWEeMqk.js} +177 -49
- package/dist/{permdock-D7eeLJER.d.ts → permdock-Dco6dyCK.d.ts} +34 -5
- package/dist/{permission-registry-Br4jSNVi.js → permission-registry-DpPtSKNZ.js} +1 -1
- package/dist/{vocabulary-D6lPdb4Z.d.ts → permission-types-DhNEmoRG.d.ts} +4 -62
- package/dist/{permissions-oEWfl-kl.d.ts → permissions-CoqCOfJ3.d.ts} +2 -1
- package/dist/{permissions-B-wCP5ZC.js → permissions-CyH2MV_B.js} +1 -1
- package/dist/{permissions-CZKiUfFM.js → permissions-DArULThq.js} +4 -4
- package/dist/pkce-5h8NgMQJ.js +21 -0
- package/dist/{policies-CO1oOymN.js → policies-B2lZIurj.js} +3 -3
- package/dist/{policy-Czo4n3Hs.d.ts → policy-B7dg_yzu.d.ts} +2 -2
- package/dist/{policy-DLZJ5gAp.js → policy-DaJy4nK4.js} +17 -8
- package/dist/{policy-from-catalog-DzhEc3Y9.js → policy-from-catalog-DFWYkNdu.js} +9 -9
- package/dist/{policy-types-DzwivBgR.d.ts → policy-types-B-F-qAZk.d.ts} +109 -5
- package/dist/postgres-store-BL9M_CA1.js +1001 -0
- package/dist/{postgrest-NUqZT-RB.d.ts → postgrest-CYacM_u7.d.ts} +12 -1
- package/dist/{postgrest-CW0IqC-U.js → postgrest-r5faDIzD.js} +47 -5
- package/dist/{powersync-BHfuehf3.js → powersync-13odBwiM.js} +3 -3
- package/dist/powersync-53ryOZip.js +1059 -0
- package/dist/powersync-CExtTLyA.js +1 -0
- package/dist/preset/index.js +1 -1
- package/dist/{preset-DZdU0tne.js → preset-CHTbd-DQ.js} +2 -2
- package/dist/prisma/index.d.ts +2 -2
- package/dist/prisma/index.js +1 -1
- package/dist/{problem-details-DXlt-vks.d.ts → problem-details-Tcfmj3bV.d.ts} +1 -1
- package/dist/prompt-DwtVemER.js +935 -0
- package/dist/{protected-DEPHc2xV.d.ts → protected-BwZYL1X_.d.ts} +6 -5
- package/dist/{protected-DfjY5mLA.js → protected-DXE3cQYg.js} +2 -2
- package/dist/{provider-CC-u3bYP.js → provider-BQsTYYy0.js} +2 -2
- package/dist/{provider-DMVt6yYn.d.ts → provider-Csk-THAn.d.ts} +1 -1
- package/dist/{provider-store-B5Yrkhzr.js → provider-store-IgqQipCO.js} +2 -2
- package/dist/{pull-BgIfno6w.js → pull-CN5OLxrF.js} +7 -7
- package/dist/pull-Cty6Ovyu.js +1 -0
- package/dist/{push-CmFVBOeI.js → push-tVdG8dUL.js} +54 -14
- package/dist/{pushed-policy-BImMTTIM.d.ts → pushed-policy-BbcY9r_4.d.ts} +1 -1
- package/dist/{pushed-policy-DobP7AHI.js → pushed-policy-CmYeSQqq.js} +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +3 -3
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +25 -11
- package/dist/react-native/index.js +214 -24
- package/dist/{refs-K6eWUJ0H.js → refs-CNJBiTFo.js} +15 -1
- package/dist/{replay-D7iKcLFe.d.ts → replay-DCDD_ZfL.d.ts} +1 -1
- package/dist/{request-context-BTRTG7OT.js → request-context-BykKLmyE.js} +2 -2
- package/dist/resend/index.d.ts +4 -4
- package/dist/{retire-CALjIQ7e.js → retire-Wj6dkyDE.js} +2 -2
- package/dist/{rls-BA8an5Ap.js → rls-Ck_PocSp.js} +32 -8
- package/dist/{rls-j6t43t7n.js → rls-CxBZb4rZ.js} +478 -534
- package/dist/{role-builder-CXbis5-X.js → role-builder-C1VJzvcr.js} +3 -3
- package/dist/rolldown-runtime-C3I60J0A.js +4 -0
- package/dist/{rpc-aPyNi6tA.js → rpc-Bk1bE-ch.js} +1 -1
- package/dist/run-Bz7DXGEv.js +1 -0
- package/dist/{run-ticket-sxFI6LAk.js → run-ticket-B5d_63Ma.js} +22 -1
- package/dist/{run-ticket-BjhTOi6u.d.ts → run-ticket-BpNi7BCi.d.ts} +8 -3
- package/dist/{run-DOfMtc9V.js → run-uLD2aWuO.js} +7 -7
- package/dist/{runtime-D3VTAiCA.js → runtime-Vif3_-zf.js} +1 -1
- package/dist/{saas-FO-Q8oj0.js → saas-Az_Kz-4D.js} +7 -7
- package/dist/{scan-BOI5tJ-6.js → scan-DSljDE1Y.js} +1 -1
- package/dist/{schema-yLuBWWsh.js → schema-gIcCx7zM.js} +1 -1
- package/dist/scim/index.d.ts +3 -2
- package/dist/scim/index.js +3 -1
- package/dist/scim-C7JYhySg.js +44 -0
- package/dist/{scim-ClHtpyV3.js → scim-YNieBO1U.js} +3 -537
- package/dist/{scopes-CUPSjo9q.js → scopes-BHsc-wp-.js} +1 -1
- package/dist/server/index.d.ts +11 -11
- package/dist/server/index.js +7 -7
- package/dist/{server-DqCT4CgZ.js → server-Bnga6I50.js} +3 -3
- package/dist/{server-types-BLd4MnBX.d.ts → server-types-C4gZUEZy.d.ts} +9 -9
- package/dist/{shared-DvvFzYXe.js → shared-C8LjUdVU.js} +1 -1
- package/dist/{shared-CD11nBbC.js → shared-fMKOv8hP.js} +46 -39
- package/dist/{sink-Bj_lDUDq.d.ts → sink-Cp_Eot9W.d.ts} +4 -4
- package/dist/{skills-B6lVdD_W.js → skills-Dcjw9_1C.js} +5 -5
- package/dist/{skills-CTYwkl44.js → skills-g_3BS9NC.js} +3 -3
- package/dist/{snapshot-CXUWfsNy.js → snapshot-CbGmYiJx.js} +4 -4
- package/dist/{snapshot-cache-DZHQ0KF6.js → snapshot-cache-DT2Kx1F8.js} +1 -1
- package/dist/{snapshot-cache-DqK9eDmM.d.ts → snapshot-cache-Pahd3IYJ.d.ts} +1 -1
- package/dist/solid/index.d.ts +6 -5
- package/dist/solid/index.js +4 -4
- package/dist/solid-start/index.d.ts +6 -6
- package/dist/solid-start/index.js +3 -3
- package/dist/{sources-vs5dGOsS.js → sources-B-zYB4GS.js} +111 -25
- package/dist/{sources-BV9j0DeZ.d.ts → sources-DEEuGb8S.d.ts} +63 -14
- package/dist/sources-qoIJQrJv.js +11 -0
- package/dist/{sql-B5T1IL83.js → sql-B96movIM.js} +5 -1
- package/dist/sql-CDEPCA0g.d.ts +10 -0
- package/dist/{src-DLfUWFAI.js → src-DLFrtrrC.js} +154 -53
- package/dist/ssf/index.d.ts +4 -4
- package/dist/ssf/index.js +640 -211
- package/dist/{standard-webhooks-6lg8v_is.d.ts → standard-webhooks-B_qRg0ws.d.ts} +2 -2
- package/dist/{store-4u_hxjWa.js → store-DSP9oGvh.js} +15 -7
- package/dist/{store-options-BqEakYRa.js → store-options-B_poyYvg.js} +6 -6
- package/dist/{stores-ClZUgeoP.d.ts → stores-BAZwSYZA.d.ts} +6 -5
- package/dist/{stores-BbsD4fAR.js → stores-BqEuHC05.js} +2 -2
- package/dist/{stream-7-xmnf3U.d.ts → stream-2Vwhl7Er.d.ts} +2 -2
- package/dist/{style-Uao76wO7.js → style-Cqo7-73x.js} +1 -0
- package/dist/{style-DiKWnAvn.js → style-Ds1gNm77.js} +1 -1
- package/dist/supabase/index.d.ts +8 -7
- package/dist/supabase/index.js +5 -5
- package/dist/supabase/middleware.d.ts +6 -6
- package/dist/supabase/middleware.js +6 -6
- package/dist/{supabase-Dxlp8A94.js → supabase--0aJdLEd.js} +9 -7
- package/dist/{supabase-9pqI57pW.js → supabase-Bqp7iIY2.js} +3 -3
- package/dist/supabase-hook-DJxC4PoP.js +1 -0
- package/dist/{supabase-hook-DdDQhMlw.js → supabase-hook-Dg0SrQWR.js} +1069 -123
- package/dist/supautils-MESd81bF.js +689 -0
- package/dist/{support-session-C6xJQYut.js → support-session-Cna49-3f.js} +2 -2
- package/dist/svelte/index.d.ts +5 -5
- package/dist/svelte/index.js +5 -5
- package/dist/svelte/runtime.d.ts +3 -3
- package/dist/svelte/runtime.js +3 -3
- package/dist/svelte/source.d.ts +5 -5
- package/dist/svelte/source.js +2 -2
- package/dist/sveltekit/index.d.ts +6 -6
- package/dist/sveltekit/index.js +2 -2
- package/dist/tanstack-start/index.d.ts +6 -6
- package/dist/tanstack-start/index.js +2 -2
- package/dist/{tenancy-DN2QAx9z.js → tenancy-CmeBQ6Nv.js} +12 -3
- package/dist/terminal/index.d.ts +6 -6
- package/dist/terminal/index.js +3 -3
- package/dist/testing/core.d.ts +2 -0
- package/dist/testing/core.js +1 -0
- package/dist/testing/fixtures/index.d.ts +12 -0
- package/dist/testing/fixtures/index.js +770 -0
- package/dist/testing/index.d.ts +41 -174
- package/dist/testing/index.js +241 -731
- package/dist/testing/saas/index.d.ts +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.d.ts +1 -1
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/text-diff-DhITNCnD.js +444 -0
- package/dist/{token-BLZcjQgt.js → token-2qYDvXz2.js} +1 -1
- package/dist/{tool-refusal-CMLN5xhn.js → tool-refusal-reAhIzdl.js} +1 -1
- package/dist/trpc/index.d.ts +6 -6
- package/dist/trpc/index.js +3 -3
- package/dist/{types-5Ut_pbKy.d.ts → types-BWZybqs9.d.ts} +112 -8
- package/dist/{types-CZTnPFzM.d.ts → types-BXMYB7BY.d.ts} +2 -2
- package/dist/{types-CdlxsYQh.d.ts → types-BfVmNJO5.d.ts} +14 -3
- package/dist/{types-BqAKcRNW.d.ts → types-CIeZcG8v.d.ts} +2 -2
- package/dist/{types-BNORmDM8.d.ts → types-CKV71kKh.d.ts} +4 -4
- package/dist/{types-tIgIeIKJ.d.ts → types-CQVEQawv.d.ts} +4 -4
- package/dist/{types-BjV-fqcA.d.ts → types-CeIscIKp.d.ts} +4 -4
- package/dist/{types-_sHy8BQf.d.ts → types-CfiKC5aN.d.ts} +1 -1
- package/dist/{types-ClZaWzfb.d.ts → types-D3A19w4A.d.ts} +8 -4
- package/dist/{types-C8-KNsFf.d.ts → types-DBHftjgS.d.ts} +15 -8
- package/dist/{types-CCpc2Dcv.d.ts → types-DC44-hqb.d.ts} +2 -2
- package/dist/{types-fbZ7JEXr.d.ts → types-DXmwu78Z.d.ts} +4 -4
- package/dist/{types-DiQjupG2.d.ts → types-cTos-H7p.d.ts} +2 -2
- package/dist/{types-DX0LaKTb.d.ts → types-g7Oy6Zg4.d.ts} +3 -3
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +2 -2
- package/dist/{usage-T5mXq98v.js → usage-Bybmck7f.js} +7 -7
- package/dist/{usage-DHtE8j4E.js → usage-CDaLXCfL.js} +2 -2
- package/dist/usage-y-kBNdqs.js +1 -0
- package/dist/{validation-error-Bg5Tpluk.d.ts → validation-error-CQpoquwj.d.ts} +1 -1
- package/dist/{verify-DbCL9bnB.js → verify-pe8rL_Qw.js} +350 -83
- package/dist/{views-DTIIO-oQ.js → views-BB8E9dTP.js} +1 -1
- package/dist/vocabulary-Bg3eeT2H.d.ts +67 -0
- package/dist/vue/index.d.ts +6 -5
- package/dist/vue/index.js +4 -4
- package/dist/{waiter-CKy4MQSY.d.ts → waiter-DwEyouan.d.ts} +2 -2
- package/dist/watch-Bd9mx3rd.js +1 -0
- package/dist/{watch-CszoTJMq.js → watch-C-4VmFlL.js} +3 -3
- package/dist/webmcp/index.d.ts +2 -2
- package/dist/webmcp/index.js +2 -2
- package/dist/{where-scope-Dv-WTP-w.js → where-scope-wq2coopv.js} +41 -21
- package/dist/{who-can-D0QoYbEb.js → who-can-BwNsI_Js.js} +6 -6
- package/dist/workflow/index.d.ts +3 -3
- package/dist/workflow/index.js +5 -5
- package/dist/workflow-sdk/index.d.ts +5 -5
- package/dist/{wrap-Bd1Tejur.d.ts → wrap-B6R0cMRL.d.ts} +2 -2
- package/dist/{wrap-gX61EtpB.js → wrap-CiSc_KCq.js} +8 -2
- package/package.json +22 -11
- package/schemas/cli-result-v1.json +1 -0
- package/schemas/cloud-api-v1.json +152 -7
- package/schemas/connector-v1.json +8 -0
- package/schemas/supabase-claims-v1.json +5 -0
- package/schemas/supabase-manifest-v1.json +276 -75
- package/skills/permdock/SKILL.md +1 -0
- package/skills/permdock-agents/references/runtimes.md +3 -1
- package/skills/permdock-approvals/references/stores-and-resume.md +2 -1
- package/skills/permdock-data/references/queries-and-rls.md +5 -2
- package/skills/permdock-tenancy/SKILL.md +1 -1
- package/skills/permdock-tenancy/references/ownership-and-custom-roles.md +2 -0
- package/skills/permdock-wire/references/adapters.md +14 -0
- package/skills/permdock-wire/references/policy-options.md +1 -0
- package/dist/catalog-DjhMYYCq.js +0 -1
- package/dist/collect-FlXJlhus.js +0 -1
- package/dist/index-D8EovfsP.d.ts +0 -91
- package/dist/load-BxEtwlBS.js +0 -1
- package/dist/output-files-B3IZJksC.js +0 -1
- package/dist/parse-Cxq0WxrA.js +0 -53
- package/dist/peer-C8swJ2GH.js +0 -50
- package/dist/powersync-CbzkqL_M.js +0 -1
- package/dist/powersync-bYUDLOAO.js +0 -538
- package/dist/prompt-DfZLJLIn.js +0 -32
- package/dist/pull-ByOks_Tg.js +0 -1
- package/dist/run-CNsApDpd.js +0 -1
- package/dist/supabase-hook-CXcGpHqq.js +0 -1
- package/dist/supautils-B6HYL9eL.js +0 -91
- package/dist/text-diff-BQcUapOb.js +0 -15
- package/dist/usage-CHOtwL19.js +0 -1
- package/dist/watch-Cb-NcaUw.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-CAf557ZB.js";
|
|
2
|
-
import { n as freezeDeep } from "./freeze-CrU8nQeX.js";
|
|
3
2
|
import { i as readAppData } from "./app-data-MuyzVqX8.js";
|
|
4
3
|
import { d as isoNow } from "./time-DkWjdL98.js";
|
|
5
|
-
import { t as canonicalJson } from "./canonical-json-
|
|
4
|
+
import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
|
|
6
5
|
import { n as sha256, r as sha256Digest } from "./sha256-D9ihqmvd.js";
|
|
7
6
|
import { d as membershipEvent, f as memoryDecisionSink } from "./sink-BEZSlMS_.js";
|
|
8
7
|
import { n as readBodyText, t as MAX_BODY_BYTES } from "./body-text-QcXok_SI.js";
|
|
9
8
|
import { t as readClaim } from "./claims-map-7oQ3ue4X.js";
|
|
9
|
+
import { _ as SCIM_CONTENT_TYPE, b as isDirectoryUniquenessError, c as parseScimFilter, f as ERROR_SCHEMA, g as ROLES_EXTENSION, l as APP_DATA_EXTENSION, m as LIST_SCHEMA, o as filterSupported, p as GROUP_SCHEMA, v as USER_SCHEMA, y as isDirectoryNotFoundError } from "./postgres-store-BL9M_CA1.js";
|
|
10
10
|
//#region src/scim/auth.ts
|
|
11
11
|
function hexToBytes(hex) {
|
|
12
12
|
if (hex.length % 2 !== 0) return;
|
|
@@ -85,43 +85,6 @@ function sha256Hex(value) {
|
|
|
85
85
|
return hex;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
|
-
//#region src/scim/types.ts
|
|
89
|
-
const SCIM_CONTENT_TYPE = "application/scim+json";
|
|
90
|
-
const USER_SCHEMA = "urn:ietf:params:scim:schemas:core:2.0:User";
|
|
91
|
-
const GROUP_SCHEMA = "urn:ietf:params:scim:schemas:core:2.0:Group";
|
|
92
|
-
const LIST_SCHEMA = "urn:ietf:params:scim:api:messages:2.0:ListResponse";
|
|
93
|
-
const ERROR_SCHEMA = "urn:ietf:params:scim:api:messages:2.0:Error";
|
|
94
|
-
const PATCH_SCHEMA = "urn:ietf:params:scim:api:messages:2.0:PatchOp";
|
|
95
|
-
/** The RFC 7643 section 3.3 Group extension that carries PermDock roles. */
|
|
96
|
-
const ROLES_EXTENSION = "urn:ietf:params:scim:schemas:extension:permdock:2.0:Group";
|
|
97
|
-
/** The extension that carries the application's own data (`x`) on a User or a Group. */
|
|
98
|
-
const APP_DATA_EXTENSION = "urn:ietf:params:scim:schemas:extension:permdock:2.0:AppData";
|
|
99
|
-
var DirectoryUniquenessError = class extends Error {
|
|
100
|
-
name = "DirectoryUniquenessError";
|
|
101
|
-
code = "uniqueness";
|
|
102
|
-
constructor(message = "uniqueness") {
|
|
103
|
-
super(message);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var DirectoryNotFoundError = class extends Error {
|
|
107
|
-
name = "DirectoryNotFoundError";
|
|
108
|
-
code = "not-found";
|
|
109
|
-
constructor(message = "not found") {
|
|
110
|
-
super(message);
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
function isNamedError(error, name, code) {
|
|
114
|
-
return error instanceof Error && error.name === name && Reflect.get(error, "code") === code;
|
|
115
|
-
}
|
|
116
|
-
/** Matches by `name` and `code`, so an error from another copy of the module still maps. */
|
|
117
|
-
function isDirectoryUniquenessError(error) {
|
|
118
|
-
return isNamedError(error, "DirectoryUniquenessError", "uniqueness");
|
|
119
|
-
}
|
|
120
|
-
/** Matches by `name` and `code`, so an error from another copy of the module still maps. */
|
|
121
|
-
function isDirectoryNotFoundError(error) {
|
|
122
|
-
return isNamedError(error, "DirectoryNotFoundError", "not-found");
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
88
|
//#region src/scim/discovery.ts
|
|
126
89
|
const SCHEMA_SCHEMA = "urn:ietf:params:scim:schemas:core:2.0:Schema";
|
|
127
90
|
function serviceProviderConfig() {
|
|
@@ -240,238 +203,6 @@ function schemas() {
|
|
|
240
203
|
];
|
|
241
204
|
}
|
|
242
205
|
//#endregion
|
|
243
|
-
//#region src/scim/filter.ts
|
|
244
|
-
const COMPARE = /* @__PURE__ */ new Set([
|
|
245
|
-
"eq",
|
|
246
|
-
"ne",
|
|
247
|
-
"co",
|
|
248
|
-
"sw"
|
|
249
|
-
]);
|
|
250
|
-
function skipSpace(input, index) {
|
|
251
|
-
let cursor = index;
|
|
252
|
-
while (cursor < input.length && input[cursor] === " ") cursor += 1;
|
|
253
|
-
return cursor;
|
|
254
|
-
}
|
|
255
|
-
function readIdent(input, index) {
|
|
256
|
-
const start = skipSpace(input, index);
|
|
257
|
-
if (!/[A-Za-z]/u.test(input[start] ?? "")) return;
|
|
258
|
-
let cursor = start;
|
|
259
|
-
while (cursor < input.length && /[A-Za-z0-9._]/u.test(input[cursor] ?? "")) cursor += 1;
|
|
260
|
-
return {
|
|
261
|
-
value: input.slice(start, cursor),
|
|
262
|
-
next: cursor
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
function readString(input, index) {
|
|
266
|
-
const start = skipSpace(input, index);
|
|
267
|
-
if (input[start] !== "\"") return;
|
|
268
|
-
let cursor = start + 1;
|
|
269
|
-
let value = "";
|
|
270
|
-
while (cursor < input.length) {
|
|
271
|
-
const char = input[cursor];
|
|
272
|
-
if (char === "\\") {
|
|
273
|
-
value += input[cursor + 1] ?? "";
|
|
274
|
-
cursor += 2;
|
|
275
|
-
continue;
|
|
276
|
-
}
|
|
277
|
-
if (char === "\"") return {
|
|
278
|
-
value,
|
|
279
|
-
next: cursor + 1
|
|
280
|
-
};
|
|
281
|
-
value += char;
|
|
282
|
-
cursor += 1;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
function readLiteral(input, index) {
|
|
286
|
-
const quoted = readString(input, index);
|
|
287
|
-
if (quoted !== void 0) return quoted;
|
|
288
|
-
const ident = readIdent(input, index);
|
|
289
|
-
if (ident === void 0) return;
|
|
290
|
-
if (ident.value.toLowerCase() === "true") return {
|
|
291
|
-
value: true,
|
|
292
|
-
next: ident.next
|
|
293
|
-
};
|
|
294
|
-
if (ident.value.toLowerCase() === "false") return {
|
|
295
|
-
value: false,
|
|
296
|
-
next: ident.next
|
|
297
|
-
};
|
|
298
|
-
return {
|
|
299
|
-
value: ident.value,
|
|
300
|
-
next: ident.next
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
function parsePrimary(input, index) {
|
|
304
|
-
const start = skipSpace(input, index);
|
|
305
|
-
if (input[start] === "(") {
|
|
306
|
-
const inner = parseOr(input, start + 1);
|
|
307
|
-
if (inner === void 0) return;
|
|
308
|
-
const close = skipSpace(input, inner.next);
|
|
309
|
-
if (input[close] !== ")") return;
|
|
310
|
-
return {
|
|
311
|
-
filter: inner.filter,
|
|
312
|
-
next: close + 1
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
const attribute = readIdent(input, start);
|
|
316
|
-
if (attribute === void 0) return;
|
|
317
|
-
const opToken = readIdent(input, attribute.next);
|
|
318
|
-
if (opToken === void 0) return;
|
|
319
|
-
const op = opToken.value.toLowerCase();
|
|
320
|
-
if (op === "pr") return {
|
|
321
|
-
filter: {
|
|
322
|
-
op: "pr",
|
|
323
|
-
attribute: attribute.value
|
|
324
|
-
},
|
|
325
|
-
next: opToken.next
|
|
326
|
-
};
|
|
327
|
-
if (!COMPARE.has(op)) return;
|
|
328
|
-
const value = readLiteral(input, opToken.next);
|
|
329
|
-
if (value === void 0) return;
|
|
330
|
-
return {
|
|
331
|
-
filter: {
|
|
332
|
-
op,
|
|
333
|
-
attribute: attribute.value,
|
|
334
|
-
value: value.value
|
|
335
|
-
},
|
|
336
|
-
next: value.next
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
function parseAnd(input, index) {
|
|
340
|
-
const first = parsePrimary(input, index);
|
|
341
|
-
if (first === void 0) return;
|
|
342
|
-
const filters = [first.filter];
|
|
343
|
-
let cursor = first.next;
|
|
344
|
-
for (;;) {
|
|
345
|
-
const nextOp = readIdent(input, cursor);
|
|
346
|
-
if (nextOp?.value.toLowerCase() !== "and") break;
|
|
347
|
-
const next = parsePrimary(input, nextOp.next);
|
|
348
|
-
if (next === void 0) return;
|
|
349
|
-
filters.push(next.filter);
|
|
350
|
-
cursor = next.next;
|
|
351
|
-
}
|
|
352
|
-
if (filters.length === 1) return {
|
|
353
|
-
filter: first.filter,
|
|
354
|
-
next: cursor
|
|
355
|
-
};
|
|
356
|
-
return {
|
|
357
|
-
filter: {
|
|
358
|
-
op: "and",
|
|
359
|
-
filters
|
|
360
|
-
},
|
|
361
|
-
next: cursor
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
function parseOr(input, index) {
|
|
365
|
-
const first = parseAnd(input, index);
|
|
366
|
-
if (first === void 0) return;
|
|
367
|
-
const filters = [first.filter];
|
|
368
|
-
let cursor = first.next;
|
|
369
|
-
for (;;) {
|
|
370
|
-
const nextOp = readIdent(input, cursor);
|
|
371
|
-
if (nextOp?.value.toLowerCase() !== "or") break;
|
|
372
|
-
const next = parseAnd(input, nextOp.next);
|
|
373
|
-
if (next === void 0) return;
|
|
374
|
-
filters.push(next.filter);
|
|
375
|
-
cursor = next.next;
|
|
376
|
-
}
|
|
377
|
-
if (filters.length === 1) return {
|
|
378
|
-
filter: first.filter,
|
|
379
|
-
next: cursor
|
|
380
|
-
};
|
|
381
|
-
return {
|
|
382
|
-
filter: {
|
|
383
|
-
op: "or",
|
|
384
|
-
filters
|
|
385
|
-
},
|
|
386
|
-
next: cursor
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function parseScimFilter(input) {
|
|
390
|
-
const trimmed = input.trim();
|
|
391
|
-
if (trimmed === "") return;
|
|
392
|
-
const parsed = parseOr(trimmed, 0);
|
|
393
|
-
if (parsed === void 0) return;
|
|
394
|
-
if (skipSpace(trimmed, parsed.next) !== trimmed.length) return;
|
|
395
|
-
return parsed.filter;
|
|
396
|
-
}
|
|
397
|
-
function readAttribute(target, attribute) {
|
|
398
|
-
if (attribute === "members.value") {
|
|
399
|
-
const members = target["members"];
|
|
400
|
-
if (!Array.isArray(members)) return;
|
|
401
|
-
return members.map((member) => {
|
|
402
|
-
if (member !== null && typeof member === "object" && "value" in member) return member.value;
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
const parts = attribute.split(".");
|
|
406
|
-
let current = target;
|
|
407
|
-
for (const part of parts) {
|
|
408
|
-
if (current === null || typeof current !== "object") return;
|
|
409
|
-
current = current[part];
|
|
410
|
-
}
|
|
411
|
-
return current;
|
|
412
|
-
}
|
|
413
|
-
function asString(value) {
|
|
414
|
-
if (typeof value === "boolean") return value ? "true" : "false";
|
|
415
|
-
return String(value);
|
|
416
|
-
}
|
|
417
|
-
function matchCompare(actual, op, expected) {
|
|
418
|
-
if (Array.isArray(actual)) return actual.some((item) => matchCompare(item, op, expected));
|
|
419
|
-
if (actual === void 0 || actual === null) return op === "ne";
|
|
420
|
-
if (typeof expected === "boolean" || typeof actual === "boolean") {
|
|
421
|
-
const left = asString(actual).toLowerCase();
|
|
422
|
-
const right = asString(expected).toLowerCase();
|
|
423
|
-
return op === "eq" ? left === right : op === "ne" ? left !== right : false;
|
|
424
|
-
}
|
|
425
|
-
const left = asString(actual);
|
|
426
|
-
const right = asString(expected);
|
|
427
|
-
switch (op) {
|
|
428
|
-
case "eq": return left === right;
|
|
429
|
-
case "ne": return left !== right;
|
|
430
|
-
case "co": return left.includes(right);
|
|
431
|
-
case "sw": return left.startsWith(right);
|
|
432
|
-
default: return op;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
/** RFC 7644 §3.4.2.2: `pr` needs a non-empty value; a multi-valued one needs an item. */
|
|
436
|
-
function present(value) {
|
|
437
|
-
if (Array.isArray(value)) return value.some(present);
|
|
438
|
-
return value !== void 0 && value !== null && value !== "";
|
|
439
|
-
}
|
|
440
|
-
function matchFilter(target, filter) {
|
|
441
|
-
if (filter === void 0) return true;
|
|
442
|
-
const record = target;
|
|
443
|
-
switch (filter.op) {
|
|
444
|
-
case "and": return filter.filters.every((item) => matchFilter(target, item));
|
|
445
|
-
case "or": return filter.filters.some((item) => matchFilter(target, item));
|
|
446
|
-
case "pr": return present(readAttribute(record, filter.attribute));
|
|
447
|
-
case "eq":
|
|
448
|
-
case "ne":
|
|
449
|
-
case "co":
|
|
450
|
-
case "sw": return matchCompare(readAttribute(record, filter.attribute), filter.op, filter.value);
|
|
451
|
-
default: return filter;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
const SUPPORTED_FILTER_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
455
|
-
"id",
|
|
456
|
-
"userName",
|
|
457
|
-
"externalId",
|
|
458
|
-
"active",
|
|
459
|
-
"displayName",
|
|
460
|
-
"members.value"
|
|
461
|
-
]);
|
|
462
|
-
function filterSupported(filter) {
|
|
463
|
-
switch (filter.op) {
|
|
464
|
-
case "and":
|
|
465
|
-
case "or": return filter.filters.every(filterSupported);
|
|
466
|
-
case "pr":
|
|
467
|
-
case "eq":
|
|
468
|
-
case "ne":
|
|
469
|
-
case "co":
|
|
470
|
-
case "sw": return SUPPORTED_FILTER_ATTRIBUTES.has(filter.attribute);
|
|
471
|
-
default: return filter;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
//#endregion
|
|
475
206
|
//#region src/scim/body.ts
|
|
476
207
|
/** The parsed body; `undefined` for an empty or unreadable one. Invalid JSON throws a `SyntaxError`. */
|
|
477
208
|
async function readJson(request) {
|
|
@@ -1303,269 +1034,4 @@ function directoryMembershipSource(store, options = {}) {
|
|
|
1303
1034
|
} };
|
|
1304
1035
|
}
|
|
1305
1036
|
//#endregion
|
|
1306
|
-
|
|
1307
|
-
const DEFAULT_COUNT = 100;
|
|
1308
|
-
function now() {
|
|
1309
|
-
return isoNow();
|
|
1310
|
-
}
|
|
1311
|
-
function createdAt(at, ...candidates) {
|
|
1312
|
-
return candidates.find((value) => value !== void 0 && value !== "") ?? at;
|
|
1313
|
-
}
|
|
1314
|
-
function randomId(prefix) {
|
|
1315
|
-
const bytes = /* @__PURE__ */ new Uint8Array(8);
|
|
1316
|
-
crypto.getRandomValues(bytes);
|
|
1317
|
-
let hex = "";
|
|
1318
|
-
for (const byte of bytes) hex += byte.toString(16).padStart(2, "0");
|
|
1319
|
-
return `${prefix}${hex}`;
|
|
1320
|
-
}
|
|
1321
|
-
function directoryKey(tenant, id) {
|
|
1322
|
-
return `${tenant}\0${id}`;
|
|
1323
|
-
}
|
|
1324
|
-
function asError(error) {
|
|
1325
|
-
return error instanceof Error ? error : new Error(String(error));
|
|
1326
|
-
}
|
|
1327
|
-
function pageOf(items, page) {
|
|
1328
|
-
const count = page.count ?? DEFAULT_COUNT;
|
|
1329
|
-
let start = 0;
|
|
1330
|
-
if (page.cursor !== void 0 && page.cursor !== "") {
|
|
1331
|
-
const decoded = Math.trunc(Number(page.cursor));
|
|
1332
|
-
start = Number.isFinite(decoded) && decoded > 0 ? decoded : 0;
|
|
1333
|
-
} else if (page.startIndex !== void 0 && page.startIndex > 0) start = page.startIndex - 1;
|
|
1334
|
-
const slice = items.slice(start, start + count);
|
|
1335
|
-
const nextIndex = start + slice.length;
|
|
1336
|
-
return compact({
|
|
1337
|
-
Resources: slice,
|
|
1338
|
-
totalResults: items.length,
|
|
1339
|
-
startIndex: start + 1,
|
|
1340
|
-
itemsPerPage: slice.length,
|
|
1341
|
-
nextCursor: nextIndex < items.length ? String(nextIndex) : void 0
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
function emailsOf(value) {
|
|
1345
|
-
if (!Array.isArray(value)) return;
|
|
1346
|
-
return value.flatMap((item) => {
|
|
1347
|
-
if (item === null || typeof item !== "object") return [];
|
|
1348
|
-
const record = item;
|
|
1349
|
-
if (typeof record.value !== "string") return [];
|
|
1350
|
-
return [compact({
|
|
1351
|
-
value: record.value,
|
|
1352
|
-
primary: typeof record.primary === "boolean" ? record.primary : void 0,
|
|
1353
|
-
type: typeof record.type === "string" ? record.type : void 0
|
|
1354
|
-
})];
|
|
1355
|
-
});
|
|
1356
|
-
}
|
|
1357
|
-
function membersOf(value) {
|
|
1358
|
-
if (!Array.isArray(value)) return [];
|
|
1359
|
-
return value.flatMap((item) => {
|
|
1360
|
-
if (item === null || typeof item !== "object") return [];
|
|
1361
|
-
const record = item;
|
|
1362
|
-
return typeof record.value === "string" ? [{ value: record.value }] : [];
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
function rolesOf(value) {
|
|
1366
|
-
if (!Array.isArray(value)) return;
|
|
1367
|
-
return value.filter((item) => typeof item === "string");
|
|
1368
|
-
}
|
|
1369
|
-
function memberValues(value) {
|
|
1370
|
-
return membersOf(value).map((member) => member.value);
|
|
1371
|
-
}
|
|
1372
|
-
function applyUserOp(user, op) {
|
|
1373
|
-
const path = op.path ?? "";
|
|
1374
|
-
if (path === "active" && typeof op.value === "boolean") return {
|
|
1375
|
-
...user,
|
|
1376
|
-
active: op.value
|
|
1377
|
-
};
|
|
1378
|
-
if (path === "userName" && typeof op.value === "string") return {
|
|
1379
|
-
...user,
|
|
1380
|
-
userName: op.value
|
|
1381
|
-
};
|
|
1382
|
-
if (path === "externalId") return compact({
|
|
1383
|
-
...user,
|
|
1384
|
-
externalId: typeof op.value === "string" ? op.value : void 0
|
|
1385
|
-
});
|
|
1386
|
-
if (path === "emails") return compact({
|
|
1387
|
-
...user,
|
|
1388
|
-
emails: emailsOf(op.value)
|
|
1389
|
-
});
|
|
1390
|
-
return user;
|
|
1391
|
-
}
|
|
1392
|
-
function applyGroupOp(group, op) {
|
|
1393
|
-
const path = op.path ?? "";
|
|
1394
|
-
if (path === "displayName" && typeof op.value === "string") return {
|
|
1395
|
-
...group,
|
|
1396
|
-
displayName: op.value
|
|
1397
|
-
};
|
|
1398
|
-
if (path === "externalId") return compact({
|
|
1399
|
-
...group,
|
|
1400
|
-
externalId: typeof op.value === "string" ? op.value : void 0
|
|
1401
|
-
});
|
|
1402
|
-
if (path === "roles") return compact({
|
|
1403
|
-
...group,
|
|
1404
|
-
roles: rolesOf(op.value)
|
|
1405
|
-
});
|
|
1406
|
-
if (path !== "members") return group;
|
|
1407
|
-
const incoming = memberValues(op.value);
|
|
1408
|
-
const current = group.members.map((member) => member.value);
|
|
1409
|
-
if (op.op === "replace") return {
|
|
1410
|
-
...group,
|
|
1411
|
-
members: incoming.map((value) => ({ value }))
|
|
1412
|
-
};
|
|
1413
|
-
if (op.op === "add") {
|
|
1414
|
-
const next = [...current];
|
|
1415
|
-
for (const value of incoming) if (!next.includes(value)) next.push(value);
|
|
1416
|
-
return {
|
|
1417
|
-
...group,
|
|
1418
|
-
members: next.map((value) => ({ value }))
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
return {
|
|
1422
|
-
...group,
|
|
1423
|
-
members: current.filter((value) => !incoming.includes(value)).map((value) => ({ value }))
|
|
1424
|
-
};
|
|
1425
|
-
}
|
|
1426
|
-
function stampUser(user, created) {
|
|
1427
|
-
const at = now();
|
|
1428
|
-
return freezeDeep({
|
|
1429
|
-
...user,
|
|
1430
|
-
meta: compact({
|
|
1431
|
-
created: createdAt(at, created, user.meta.created),
|
|
1432
|
-
lastModified: at,
|
|
1433
|
-
resourceType: "User",
|
|
1434
|
-
location: user.meta.location
|
|
1435
|
-
})
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
function stampGroup(group, created) {
|
|
1439
|
-
const at = now();
|
|
1440
|
-
return freezeDeep({
|
|
1441
|
-
...group,
|
|
1442
|
-
meta: compact({
|
|
1443
|
-
created: createdAt(at, created, group.meta.created),
|
|
1444
|
-
lastModified: at,
|
|
1445
|
-
resourceType: "Group",
|
|
1446
|
-
location: group.meta.location
|
|
1447
|
-
})
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
function memoryDirectoryStore() {
|
|
1451
|
-
const users = /* @__PURE__ */ new Map();
|
|
1452
|
-
const groups = /* @__PURE__ */ new Map();
|
|
1453
|
-
function usersIn(tenant) {
|
|
1454
|
-
const found = [];
|
|
1455
|
-
for (const [key, user] of users) if (key.startsWith(`${tenant}\0`)) found.push(user);
|
|
1456
|
-
return found;
|
|
1457
|
-
}
|
|
1458
|
-
function groupsIn(tenant) {
|
|
1459
|
-
const found = [];
|
|
1460
|
-
for (const [key, group] of groups) if (key.startsWith(`${tenant}\0`)) found.push(group);
|
|
1461
|
-
return found;
|
|
1462
|
-
}
|
|
1463
|
-
function assertUserUnique(tenant, user, ignoreId) {
|
|
1464
|
-
for (const existing of usersIn(tenant)) {
|
|
1465
|
-
if (existing.id === ignoreId) continue;
|
|
1466
|
-
if (existing.userName === user.userName) throw new DirectoryUniquenessError("userName");
|
|
1467
|
-
if (user.externalId !== void 0 && existing.externalId === user.externalId) throw new DirectoryUniquenessError("externalId");
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
function assertGroupUnique(tenant, group, ignoreId) {
|
|
1471
|
-
for (const existing of groupsIn(tenant)) {
|
|
1472
|
-
if (existing.id === ignoreId) continue;
|
|
1473
|
-
if (group.externalId !== void 0 && existing.externalId === group.externalId) throw new DirectoryUniquenessError("externalId");
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1476
|
-
return {
|
|
1477
|
-
getUser(tenant, id) {
|
|
1478
|
-
return Promise.resolve(users.get(directoryKey(tenant, id)) ?? null);
|
|
1479
|
-
},
|
|
1480
|
-
findUsers(tenant, filter, page) {
|
|
1481
|
-
const matched = usersIn(tenant).filter((user) => matchFilter(user, filter));
|
|
1482
|
-
return Promise.resolve(pageOf(matched, page));
|
|
1483
|
-
},
|
|
1484
|
-
putUser(tenant, user) {
|
|
1485
|
-
try {
|
|
1486
|
-
const id = user.id === "" ? randomId("u_") : user.id;
|
|
1487
|
-
const existing = users.get(directoryKey(tenant, id));
|
|
1488
|
-
const next = stampUser({
|
|
1489
|
-
...user,
|
|
1490
|
-
id
|
|
1491
|
-
}, existing?.meta.created);
|
|
1492
|
-
assertUserUnique(tenant, next, id);
|
|
1493
|
-
users.set(directoryKey(tenant, id), next);
|
|
1494
|
-
return Promise.resolve(next);
|
|
1495
|
-
} catch (error) {
|
|
1496
|
-
return Promise.reject(asError(error));
|
|
1497
|
-
}
|
|
1498
|
-
},
|
|
1499
|
-
patchUser(tenant, id, ops) {
|
|
1500
|
-
try {
|
|
1501
|
-
const existing = users.get(directoryKey(tenant, id));
|
|
1502
|
-
if (existing === void 0) throw new DirectoryNotFoundError();
|
|
1503
|
-
let next = existing;
|
|
1504
|
-
for (const op of ops) next = applyUserOp(next, op);
|
|
1505
|
-
next = stampUser(next, existing.meta.created);
|
|
1506
|
-
assertUserUnique(tenant, next, id);
|
|
1507
|
-
users.set(directoryKey(tenant, id), next);
|
|
1508
|
-
return Promise.resolve(next);
|
|
1509
|
-
} catch (error) {
|
|
1510
|
-
return Promise.reject(asError(error));
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
deleteUser(tenant, id) {
|
|
1514
|
-
if (!users.delete(directoryKey(tenant, id))) return Promise.reject(new DirectoryNotFoundError());
|
|
1515
|
-
for (const group of groupsIn(tenant)) {
|
|
1516
|
-
if (!group.members.some((member) => member.value === id)) continue;
|
|
1517
|
-
groups.set(directoryKey(tenant, group.id), stampGroup({
|
|
1518
|
-
...group,
|
|
1519
|
-
members: group.members.filter((member) => member.value !== id)
|
|
1520
|
-
}, group.meta.created));
|
|
1521
|
-
}
|
|
1522
|
-
return Promise.resolve();
|
|
1523
|
-
},
|
|
1524
|
-
getGroup(tenant, id) {
|
|
1525
|
-
return Promise.resolve(groups.get(directoryKey(tenant, id)) ?? null);
|
|
1526
|
-
},
|
|
1527
|
-
findGroups(tenant, filter, page) {
|
|
1528
|
-
const matched = groupsIn(tenant).filter((group) => matchFilter(group, filter));
|
|
1529
|
-
return Promise.resolve(pageOf(matched, page));
|
|
1530
|
-
},
|
|
1531
|
-
putGroup(tenant, group) {
|
|
1532
|
-
try {
|
|
1533
|
-
const id = group.id === "" ? randomId("g_") : group.id;
|
|
1534
|
-
const existing = groups.get(directoryKey(tenant, id));
|
|
1535
|
-
const next = stampGroup({
|
|
1536
|
-
...group,
|
|
1537
|
-
id,
|
|
1538
|
-
members: group.members
|
|
1539
|
-
}, existing?.meta.created);
|
|
1540
|
-
assertGroupUnique(tenant, next, id);
|
|
1541
|
-
groups.set(directoryKey(tenant, id), next);
|
|
1542
|
-
return Promise.resolve(next);
|
|
1543
|
-
} catch (error) {
|
|
1544
|
-
return Promise.reject(asError(error));
|
|
1545
|
-
}
|
|
1546
|
-
},
|
|
1547
|
-
patchGroup(tenant, id, ops) {
|
|
1548
|
-
try {
|
|
1549
|
-
const existing = groups.get(directoryKey(tenant, id));
|
|
1550
|
-
if (existing === void 0) throw new DirectoryNotFoundError();
|
|
1551
|
-
let next = existing;
|
|
1552
|
-
for (const op of ops) next = applyGroupOp(next, op);
|
|
1553
|
-
next = stampGroup(next, existing.meta.created);
|
|
1554
|
-
assertGroupUnique(tenant, next, id);
|
|
1555
|
-
groups.set(directoryKey(tenant, id), next);
|
|
1556
|
-
return Promise.resolve(next);
|
|
1557
|
-
} catch (error) {
|
|
1558
|
-
return Promise.reject(asError(error));
|
|
1559
|
-
}
|
|
1560
|
-
},
|
|
1561
|
-
deleteGroup(tenant, id) {
|
|
1562
|
-
if (!groups.delete(directoryKey(tenant, id))) return Promise.reject(new DirectoryNotFoundError());
|
|
1563
|
-
return Promise.resolve();
|
|
1564
|
-
},
|
|
1565
|
-
groupsFor(tenant, userId) {
|
|
1566
|
-
return Promise.resolve(groupsIn(tenant).filter((group) => group.members.some((member) => member.value === userId)));
|
|
1567
|
-
}
|
|
1568
|
-
};
|
|
1569
|
-
}
|
|
1570
|
-
//#endregion
|
|
1571
|
-
export { isDirectoryUniquenessError as C, isDirectoryNotFoundError as S, sha256Hex as T, LIST_SCHEMA as _, normalizePatchOps as a, SCIM_CONTENT_TYPE as b, parseScimFilter as c, serviceProviderConfig as d, APP_DATA_EXTENSION as f, GROUP_SCHEMA as g, ERROR_SCHEMA as h, tenantFromPath as i, resourceTypes as l, DirectoryUniquenessError as m, directoryMembershipSource as n, filterSupported as o, DirectoryNotFoundError as p, scimHandler as r, matchFilter as s, memoryDirectoryStore as t, schemas as u, PATCH_SCHEMA as v, authenticateScim as w, USER_SCHEMA as x, ROLES_EXTENSION as y };
|
|
1037
|
+
export { resourceTypes as a, authenticateScim as c, normalizePatchOps as i, sha256Hex as l, scimHandler as n, schemas as o, tenantFromPath as r, serviceProviderConfig as s, directoryMembershipSource as t };
|
|
@@ -249,4 +249,4 @@ function subjectForPermission(subject, key) {
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
//#endregion
|
|
252
|
-
export {
|
|
252
|
+
export { normalizeMembership as a, rootMembershipId as c, scopeIdOf as d, scopeList as f, tenantOf as h, keepsPermission as i, rootScope as l, subjectMemberships as m, defineScopes as n, normalizeMemberships as o, subjectForPermission as p, findScope as r, resolveScope as s, activeFor as t, scopeChain as u };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-
|
|
2
|
-
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-
|
|
1
|
+
import { n as PermDockValidationError, t as PROBLEM_BASE } from "../validation-error-CQpoquwj.js";
|
|
2
|
+
import { i as PermDockRevokedError, n as PermDockApprovalRequiredError, r as PermDockDeniedError, t as ApprovalHint } from "../errors-B_Qg9D3e.js";
|
|
3
3
|
import { t as RequestContext } from "../request-context-C2_1lchh.js";
|
|
4
4
|
import { i as memoryRevocationFeed, n as RevocationFeed, t as RevocationEvent } from "../revocations-R07lFBnX.js";
|
|
5
|
-
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-
|
|
6
|
-
import { i as evaluationsHandler } from "../evaluations-
|
|
7
|
-
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-
|
|
8
|
-
import { l as ReplayStore } from "../types-
|
|
9
|
-
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-
|
|
10
|
-
import { t as memoryReplayStore } from "../replay-
|
|
11
|
-
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotTag, r as SnapshotHeadersOptions, t as CacheLifeForOptions } from "../snapshot-cache-
|
|
12
|
-
import { a as
|
|
13
|
-
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
|
5
|
+
import { C as TenantScope, D as ConnectionOptions, E as ConnectionData, S as TenantOption, T as Connection, _ as WebBotAuthVerifier, a as OperationScopes, b as invalidSignatureResponse, c as ServerPermDock, d as DiscoverViaSignatureAgentOptions, f as InvalidSignatureError, g as WebBotAuthOptions, h as WebBotAuthKeys, i as OpenApiHooks, l as ServerPermDockOptions, m as WebBotAuthKeyLookup, n as DeniedResponseEvent, o as ProtectOptions, p as WebBotAuthJwk, r as Guard, s as ScopeGuard, t as DeniedResponse, u as SnapshotQuery, v as discoverViaSignatureAgent, w as tenantScope, x as webBotAuthVerifier, y as invalidSignatureProblem } from "../server-types-C4gZUEZy.js";
|
|
6
|
+
import { i as evaluationsHandler } from "../evaluations-BCddEOfO.js";
|
|
7
|
+
import { C as subjectFromApiKey, E as createPermDock, S as parseFeedKey, T as problemFromError, _ as generateApiKey, a as SupportSessionContext, b as memoryCredentialStore, c as SupportSessionSubjectOptions, d as ApiKeyFailureCause, f as ApiKeyParts, g as apiKeyVerifier, h as StoredCredential, i as wwwAuthenticate, l as signSupportSession, m as MemoryCredentialStore, n as problemResponse, o as SupportSessionFailureCause, p as ApiKeySubjectOptions, r as validationProblem, s as SupportSessionSource, t as problemFromDecision, u as subjectFromSupportSession, v as generateFeedKey, w as ProblemFromErrorOptions, x as parseApiKey, y as hashApiKey } from "../index-BSfRl0hZ.js";
|
|
8
|
+
import { l as ReplayStore } from "../types-cTos-H7p.js";
|
|
9
|
+
import { a as WebhookInput, c as WebhookMessage, d as WebhookSigningKey, f as WebhookVerifier, h as webhookVerifier, i as WebhookHeaders, l as WebhookSigner, m as webhookSigner, n as WebhookAlgorithm, o as WebhookJwk, p as WebhookVerifierOptions, r as WebhookFailureCause, s as WebhookJwks, t as VerifiedWebhookMessage, u as WebhookSignerOptions } from "../standard-webhooks-B_qRg0ws.js";
|
|
10
|
+
import { t as memoryReplayStore } from "../replay-DCDD_ZfL.js";
|
|
11
|
+
import { a as snapshotHeaders, i as cacheLifeFor, n as SnapshotHeaders, o as snapshotTag, r as SnapshotHeadersOptions, t as CacheLifeForOptions } from "../snapshot-cache-Pahd3IYJ.js";
|
|
12
|
+
import { a as RunContext, c as RunTicket, d as RunTicketInput, f as RunTicketOptions, g as subjectFromRunTicket, h as signRunTicket, i as RunBinding, l as RunTicketAutomations, m as parseRunTicket, n as RunActClaim, o as RunKind, p as RunTicketSubjectOptions, r as RunAutomation, s as RunPrincipal, t as RUN_TICKET_CLAIMS, u as RunTicketFailureCause } from "../run-ticket-BpNi7BCi.js";
|
|
13
|
+
export { type ApiKeyFailureCause, type ApiKeyParts, type ApiKeySubjectOptions, type ApprovalHint, type CacheLifeForOptions, type Connection, type ConnectionData, type ConnectionOptions, type DeniedResponse, type DeniedResponseEvent, type DiscoverViaSignatureAgentOptions, type Guard, InvalidSignatureError, type MemoryCredentialStore, type OpenApiHooks, type OperationScopes, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, type ProblemFromErrorOptions, type ProtectOptions, RUN_TICKET_CLAIMS, type ReplayStore, type RequestContext, type RevocationEvent, type RevocationFeed, type RunActClaim, type RunAutomation, type RunBinding, type RunContext, type RunKind, type RunPrincipal, type RunTicket, type RunTicketAutomations, type RunTicketFailureCause, type RunTicketInput, type RunTicketOptions, type RunTicketSubjectOptions, type ScopeGuard, type ServerPermDock, type ServerPermDockOptions, type SnapshotHeaders, type SnapshotHeadersOptions, type SnapshotQuery, type StoredCredential, type SupportSessionContext, type SupportSessionFailureCause, type SupportSessionSource, type SupportSessionSubjectOptions, type TenantOption, type TenantScope, type VerifiedWebhookMessage, type WebBotAuthJwk, type WebBotAuthKeyLookup, type WebBotAuthKeys, type WebBotAuthOptions, type WebBotAuthVerifier, type WebhookAlgorithm, type WebhookFailureCause, type WebhookHeaders, type WebhookInput, type WebhookJwk, type WebhookJwks, type WebhookMessage, type WebhookSigner, type WebhookSignerOptions, type WebhookSigningKey, type WebhookVerifier, type WebhookVerifierOptions, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
package/dist/server/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
|
|
|
3
3
|
import { t as memoryRevocationFeed } from "../revocations-Bhr0aMIC.js";
|
|
4
4
|
import { c as problemResponse, d as validationProblem, f as wwwAuthenticate, s as problemFromDecision } from "../problem-CTviyH5L.js";
|
|
5
5
|
import { t as memoryReplayStore } from "../replay-Du1tJjG7.js";
|
|
6
|
-
import { n as snapshotHeaders, r as snapshotTag, t as cacheLifeFor } from "../snapshot-cache-
|
|
7
|
-
import { d as
|
|
6
|
+
import { n as snapshotHeaders, r as snapshotTag, t as cacheLifeFor } from "../snapshot-cache-DT2Kx1F8.js";
|
|
7
|
+
import { d as invalidSignatureProblem, f as invalidSignatureResponse, l as InvalidSignatureError, o as evaluationsHandler, p as webBotAuthVerifier, u as discoverViaSignatureAgent } from "../evaluations-DReoiVBw.js";
|
|
8
8
|
import { n as tenantScope } from "../adapter-context-CRhqyzCk.js";
|
|
9
|
-
import { t as createPermDock } from "../create-
|
|
10
|
-
import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as problemFromError } from "../map-error-
|
|
9
|
+
import { t as createPermDock } from "../create-DJrlhEp9.js";
|
|
10
|
+
import { a as generateFeedKey, c as parseApiKey, i as generateApiKey, l as parseFeedKey, n as subjectFromSupportSession, o as hashApiKey, r as apiKeyVerifier, s as memoryCredentialStore, t as signSupportSession, u as subjectFromApiKey } from "../server-Bnga6I50.js";
|
|
11
|
+
import { i as subjectFromRunTicket, n as parseRunTicket, r as signRunTicket, t as RUN_TICKET_CLAIMS } from "../run-ticket-B5d_63Ma.js";
|
|
12
|
+
import { t as problemFromError } from "../map-error-BQGyDm_M.js";
|
|
13
13
|
import { n as webhookVerifier, t as webhookSigner } from "../standard-webhooks-DgFFD-Ga.js";
|
|
14
|
-
export { InvalidSignatureError, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
|
14
|
+
export { InvalidSignatureError, PROBLEM_BASE, PermDockApprovalRequiredError, PermDockDeniedError, PermDockRevokedError, PermDockValidationError, RUN_TICKET_CLAIMS, apiKeyVerifier, cacheLifeFor, createPermDock, discoverViaSignatureAgent, evaluationsHandler, generateApiKey, generateFeedKey, hashApiKey, invalidSignatureProblem, invalidSignatureResponse, memoryCredentialStore, memoryReplayStore, memoryRevocationFeed, parseApiKey, parseFeedKey, parseRunTicket, problemFromDecision, problemFromError, problemResponse, signRunTicket, signSupportSession, snapshotHeaders, snapshotTag, subjectFromApiKey, subjectFromRunTicket, subjectFromSupportSession, tenantScope, validationProblem, webBotAuthVerifier, webhookSigner, webhookVerifier, wwwAuthenticate };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as compact } from "./compact-CAf557ZB.js";
|
|
2
2
|
import { a as ownRecord } from "./paths-DXSHAMIa.js";
|
|
3
|
-
import { m as annotationsFor, n as findPermission } from "./permission-registry-
|
|
3
|
+
import { m as annotationsFor, n as findPermission } from "./permission-registry-DpPtSKNZ.js";
|
|
4
4
|
import { n as isThenable } from "./thenable-yD7SabqG.js";
|
|
5
5
|
import { f as nowMillis, g as secondsOf, m as rfc3339, o as epochSeconds, u as isoAt } from "./time-DkWjdL98.js";
|
|
6
6
|
import { t as bytesToBase64Url } from "./sha256-D9ihqmvd.js";
|
|
7
|
-
import { n as parseSupportSession } from "./support-session-
|
|
7
|
+
import { n as parseSupportSession } from "./support-session-Cna49-3f.js";
|
|
8
8
|
import { t as anonymousSubject } from "./subject-BGoM5o8B.js";
|
|
9
9
|
import { c as credentialEvent } from "./sink-BEZSlMS_.js";
|
|
10
|
-
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-
|
|
10
|
+
import { i as credentialTenant, n as credentialPolicyViolation, o as isFeedId, r as credentialSubject, s as parseCredential } from "./credential-CIM7wHwA.js";
|
|
11
11
|
//#region src/server/credentials.ts
|
|
12
12
|
const PREFIX = "pdk_";
|
|
13
13
|
const ID = /^[\w-]{1,128}$/u;
|