@classytic/arc 2.47.0 → 2.49.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/{EventTransport-BHKy4_Bi.mjs → EventTransport-DbHZK230.mjs} +2 -2
- package/dist/{HookSystem-CAIDVoKC.mjs → HookSystem-DMoeJ6Do.mjs} +2 -2
- package/dist/{QueryCache-DdvrGG8Q.d.mts → QueryCache-BE47tmlO.d.mts} +36 -1
- package/dist/{ResourceRegistry-23Ml6FNe.mjs → ResourceRegistry-CP-iTcKy.mjs} +2 -2
- package/dist/{acquire-DoFX06fm.mjs → acquire-CB0va87C.mjs} +1 -1
- package/dist/audit/index.d.mts +1 -1
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.mjs +53 -15
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/{authorizationDecision-DYiubkYw.mjs → authorizationDecision-DHO94aV2.mjs} +4 -4
- package/dist/{boundedMap-CtdzpJ3X.mjs → boundedMap-C51EUUOm.mjs} +1 -1
- package/dist/{buildHandler-CARdmPNo.mjs → buildHandler-9DuwEKvr.mjs} +23 -16
- package/dist/cache/index.d.mts +2 -2
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-QRiryDLs.mjs → caching-COTX3sDa.mjs} +3 -6
- package/dist/{claimed-BLecr1j3.mjs → claimed-C7T1nHlo.mjs} +1 -1
- package/dist/cleanup/index.d.mts +2 -2
- package/dist/cleanup/index.mjs +4 -4
- package/dist/cli/commands/describe.d.mts +1 -1
- package/dist/cli/commands/describe.mjs +3 -3
- package/dist/cli/commands/docs.mjs +3 -3
- package/dist/cli/commands/doctor.mjs +1 -1
- package/dist/cli/commands/generate.mjs +2 -2
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/introspect.mjs +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{constants-Cx7BcnHT.mjs → constants-DOnfMd7i.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.mjs +7 -7
- package/dist/{core-0WyMuo0f.mjs → core-BoEdFDDw.mjs} +3 -3
- package/dist/{createActionRouter-mLAGbpDV.mjs → createActionRouter-CpTn15dm.mjs} +54 -18
- package/dist/{createAggregationRouter-BEAjn3dA.mjs → createAggregationRouter-CD_Hydp0.mjs} +13 -11
- package/dist/{createApp-QDP4vYWH.mjs → createApp-Be6XTGD9.mjs} +332 -40
- package/dist/{createMcpServer-DzXHX0SO.d.mts → createMcpServer-CS2KOVP6.d.mts} +9 -10
- package/dist/{defineAggregation-CFNfvz-C.mjs → defineAggregation-BI5pRb8c.mjs} +1 -1
- package/dist/{defineResource-BROJmhzJ.mjs → defineResource-BAzNu5Um.mjs} +8 -8
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.d.mts +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-DrXeEWWk.mjs → elevation-DupGuM41.mjs} +6 -9
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-BiBXtxj4.mjs → errorHandler-DA03vRqp.mjs} +4 -7
- package/dist/{errors-DnrUChAy.mjs → errors-BpYV859Y.mjs} +1 -1
- package/dist/{eventPlugin-BhKLUe7H.mjs → eventPlugin-D7LYtYzL.mjs} +9 -13
- package/dist/{eventTypes-CCIRGakw.mjs → eventTypes-BqA-N-Uz.mjs} +2 -2
- package/dist/events/index.d.mts +18 -5
- package/dist/events/index.mjs +8 -8
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.d.mts +35 -0
- package/dist/events/transports/redis.mjs +87 -11
- package/dist/factory/index.d.mts +4 -4
- package/dist/factory/index.mjs +6 -6
- package/dist/{fastify-augmentation-bzkWPt1f.d.mts → fastify-augmentation-baQc3MaO.d.mts} +2 -2
- package/dist/fieldTypes-EFWxCkZ5.mjs +80 -0
- package/dist/{fields-CYdpcV73.mjs → fields-CT1Erg7o.mjs} +1 -1
- package/dist/{filter-merge-6kasezRH.mjs → filter-merge-B1eJ1pMx.mjs} +1 -1
- package/dist/{generate-DUkcbc4r.mjs → generate-Cr0ULavs.mjs} +2 -2
- package/dist/{headers-KxhrKevA.mjs → headers-D4bncIOf.mjs} +2 -2
- package/dist/{health-jkYNdobJ.mjs → health-BoFxrkJE.mjs} +1 -1
- package/dist/{health-CRJg3IIq.mjs → health-DN_pUVMX.mjs} +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/http-cache/index.d.mts +2 -2
- package/dist/http-cache/index.mjs +4 -4
- package/dist/http-cache/purgers/cloudflare.mjs +2 -2
- package/dist/http-cache/purgers/fastly.mjs +2 -2
- package/dist/http-cache/testing/index.mjs +1 -1
- package/dist/idempotency/index.d.mts +1 -1
- package/dist/idempotency/index.mjs +10 -8
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/{index-B5i9-vuP.d.mts → index-CMNpMBtW.d.mts} +1 -1
- package/dist/{index-BxZS-8So.d.mts → index-DKM2p5w5.d.mts} +48 -23
- package/dist/{index-Cy2-QffW.d.mts → index-DLCcLUQT.d.mts} +69 -6
- package/dist/{index-DFCCQ9AE.d.mts → index-DexdFs1a.d.mts} +1 -1
- package/dist/{index-D1X_C_qz.d.mts → index-Dhrks-hM.d.mts} +60 -10
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +11 -11
- package/dist/{init-CACwpktI.mjs → init-C4a24wD2.mjs} +1 -1
- package/dist/integrations/event-gateway.mjs +2 -2
- package/dist/integrations/index.d.mts +2 -2
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.mjs +3 -3
- package/dist/integrations/mcp/index.d.mts +6 -38
- package/dist/integrations/mcp/index.mjs +2 -2
- package/dist/integrations/mcp/testing.d.mts +11 -15
- package/dist/integrations/mcp/testing.mjs +22 -42
- package/dist/integrations/streamline.mjs +3 -3
- package/dist/integrations/webhooks.d.mts +1 -1
- package/dist/integrations/webhooks.mjs +4 -4
- package/dist/integrations/websocket-pushref-redis.mjs +1 -1
- package/dist/integrations/websocket-redis.mjs +1 -1
- package/dist/integrations/websocket.mjs +2 -2
- package/dist/{jsonBody-CzDBkCme.mjs → jsonBody-DoTt5BS6.mjs} +2 -2
- package/dist/{keys-Cbwf6r1B.mjs → keys--l9n7aOC.mjs} +1 -1
- package/dist/{loadResources-Kr6vuljv.mjs → loadResources-rygByIQA.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-D2e0qoDR.mjs → loadResourcesFromEntry-ItNBIQ5w.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-C110X5Yz.mjs → logger-UbknHqHy.mjs} +1 -1
- package/dist/{mcpPlugin-4lIPr9OJ.mjs → mcpPlugin-CTkk4RP8.mjs} +218 -378
- package/dist/{memory-D9qkhXiB.mjs → memory-C47xVsjX.mjs} +3 -3
- package/dist/{metrics-B-qrrWfI.mjs → metrics-TJyAb1Xk.mjs} +4 -7
- package/dist/middleware/index.d.mts +1 -1
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-BD8xHgrz.mjs → module-CWiqsXnh.mjs} +1 -1
- package/dist/{multiTenant-KZj8j1uJ.d.mts → multiTenant-QtDzxx_K.d.mts} +1 -1
- package/dist/{multipartBody-qU7KCn1l.mjs → multipartBody-BdG1qbn1.mjs} +1 -1
- package/dist/{observeSend-BnPtTotW.mjs → observeSend-DrA3ADFN.mjs} +1 -1
- package/dist/{openapi-DoVa5SVP.mjs → openapi-D6MAbYpv.mjs} +7 -7
- package/dist/outbox-admin/index.d.mts +1 -1
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-DyITEIop.mjs → outbox-module-D5QABFQW.mjs} +197 -28
- package/dist/{outbox-module-5Mnwcycy.d.mts → outbox-module-DzW6zwWJ.d.mts} +103 -10
- package/dist/permissions/index.d.mts +2 -2
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-BBy4bOGi.mjs → permissions-CFsmdYUt.mjs} +9 -9
- package/dist/{pipe-BOm2o4UA.mjs → pipe-B_05AgGt.mjs} +2 -2
- package/dist/pipeline/index.d.mts +1 -1
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-DDIGwuxr.mjs → plan-BnlNJhrj.mjs} +1 -1
- package/dist/{plugin-Bn4D_0XK.mjs → plugin-CrMPYbdj.mjs} +94 -50
- package/dist/plugins/index.d.mts +6 -5
- package/dist/plugins/index.mjs +19 -18
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-ClEjcKlG.mjs → pluralize-oVIxJ4CY.mjs} +1 -1
- package/dist/presets/filesUpload.d.mts +1 -1
- package/dist/presets/filesUpload.mjs +5 -5
- package/dist/presets/index.d.mts +2 -2
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.d.mts +1 -1
- package/dist/presets/multiTenant.mjs +5 -5
- package/dist/presets/search.d.mts +1 -1
- package/dist/presets/search.mjs +2 -2
- package/dist/{presets-DK2jh5YR.mjs → presets-CUd3L7v6.mjs} +4 -4
- package/dist/{projection-BHH-sXyS.mjs → projection-DowJlIto.mjs} +2 -2
- package/dist/{purger.types-2wNJK_89.mjs → purger.types-BjKy8869.mjs} +1 -1
- package/dist/{queryCachePlugin-Ckqe98AM.mjs → queryCachePlugin-BvB3k_Fh.mjs} +114 -14
- package/dist/{queryCachePlugin-DYQUyeJ9.d.mts → queryCachePlugin-DrQNnGws.d.mts} +1 -1
- package/dist/{rateLimitKey-CWAjlqcN.mjs → rateLimitKey-56nH1cWN.mjs} +1 -1
- package/dist/{realtime-BIJi9USY.mjs → realtime-DXGBPtYK.mjs} +19 -22
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-y9ZA-R_J.mjs → registry-Biz-6sEZ.mjs} +2 -2
- package/dist/{relay-BNrC1CEP.mjs → relay-DEIoMntZ.mjs} +200 -99
- package/dist/{renewingLease-CS43br5E.mjs → renewingLease-BCJpW9-u.mjs} +1 -1
- package/dist/{replyHelpers-oZDzakGb.mjs → replyHelpers-DliJNb0-.mjs} +2 -2
- package/dist/{requestContext-fWb_YaV2.mjs → requestContext-tUgLt9Ky.mjs} +1 -1
- package/dist/{requirement--2hWyyHi.mjs → requirement-0l2DApiQ.mjs} +1 -1
- package/dist/{resourceRateLimit-DCWglD7V.d.mts → resourceRateLimit-BPiESPtG.d.mts} +4 -0
- package/dist/{resourceRateLimit-1WbcyMZY.mjs → resourceRateLimit-iSXF8rLH.mjs} +19 -4
- package/dist/{rolldown-runtime-yH2lHMo_.mjs → rolldown-runtime-gKJR3o-6.mjs} +1 -1
- package/dist/{routeValidator-BSlRIA5c.mjs → routeValidator-xNYA4rr1.mjs} +47 -5
- package/dist/{runtimeCapabilities-CYCEtU1W.mjs → runtimeCapabilities-BQK-GrYe.mjs} +1 -1
- package/dist/{schedules-B5WGlYIT.mjs → schedules-D9iMVFhF.mjs} +6 -9
- package/dist/{schemaConverter-DtNvts-6.mjs → schemaConverter-cIh4oX9a.mjs} +2 -2
- package/dist/{actionPermissions-DXrlWHHK.mjs → schemaIR-BsY4y9VP.mjs} +184 -16
- package/dist/schemas/index.mjs +1 -1
- package/dist/scim/index.mjs +2 -2
- package/dist/scope/index.d.mts +1 -1
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-BwVLSyNG.mjs → scope-QyhM9w8z.mjs} +4 -4
- package/dist/{shutdown-BJiJN7FT.mjs → shutdown-BM7Q0h4B.mjs} +1 -1
- package/dist/{sse-B_50llZu.mjs → sse-ofvlcTQQ.mjs} +9 -35
- package/dist/sseStats-DQqNN385.d.mts +112 -0
- package/dist/sseStream-BxQW7hPq.mjs +166 -0
- package/dist/{store-helpers-D-n5cwy5.mjs → store-helpers-_FRhHDyv.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-DGRLq-1k.mjs → streamFrames-B3ZJfI02.mjs} +19 -2
- package/dist/{streaming-Dcgqa-hH.mjs → streaming-HZr63UiM.mjs} +1 -1
- package/dist/{subscriberIdentity-C9KhIXTF.mjs → subscriberIdentity-DSgnoT_D.mjs} +1 -1
- package/dist/{tenancy-COrhjPRZ.mjs → tenancy-_ukT0oBt.mjs} +2 -2
- package/dist/{tenantPreparation-BElWHytd.mjs → tenantPreparation-DSlQI53c.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.d.mts +4 -4
- package/dist/testing/index.mjs +324 -17
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-CaxKbRk_.mjs → timing-Z8p-Zlw1.mjs} +1 -1
- package/dist/{transactionContext-8qKON0Nk.mjs → transactionContext-DBbSTfY3.mjs} +1 -1
- package/dist/{typeGuards-DVjVSsXO.mjs → typeGuards-_6nNQqgq.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-DeLiuaNv.d.mts → types-B4E0sc6D.d.mts} +20 -31
- package/dist/{types-DZHqOuJE.mjs → types-CrOlZ4rY.mjs} +4 -4
- package/dist/usage/index.d.mts +1 -1
- package/dist/usage/index.mjs +7 -7
- package/dist/{userHelpers-_eGj6kf0.mjs → userHelpers-CBKx3XJN.mjs} +1 -1
- package/dist/utils/index.d.mts +239 -34
- package/dist/utils/index.mjs +13 -13
- package/dist/{utils-Dd6MWpye.mjs → utils--HE8R8sH.mjs} +761 -8
- package/dist/{validate-BaF5wd0x.mjs → validate-BUeE2MLR.mjs} +3 -3
- package/dist/{versioning-S18y2-0C.d.mts → versioning-B07RgD27.d.mts} +2 -13
- package/dist/{versioning-DyV7mwtK.mjs → versioning-qYgqwOhL.mjs} +4 -7
- package/dist/{workScope-CmCBUmPR.mjs → workScope-C-1QHNmV.mjs} +2 -2
- package/llms.txt +2 -2
- package/package.json +42 -50
- package/skills/arc/references/api-reference.md +2 -2
- package/skills/arc/references/auth-better-auth.md +1 -0
- package/skills/arc/references/events-outbox.md +7 -4
- package/skills/arc/references/events.md +2 -2
- package/skills/arc/references/mcp-custom-tools.md +1 -1
- package/skills/arc/references/mcp-setup.md +11 -10
- package/skills/arc/references/mcp-testing.md +3 -3
- package/skills/arc/references/production-api.md +4 -0
- package/skills/arc/references/production-boot.md +2 -0
- package/skills/arc/references/production-idempotency.md +1 -1
- package/skills/arc/references/production-realtime.md +28 -2
- package/skills/arc/references/validation.md +4 -0
- package/skills/arc/references/writes-hooks-errors.md +1 -0
- package/dist/schemaIR-uS_RHqa3.mjs +0 -108
- package/dist/sseStream-BjSo9Ult.mjs +0 -57
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { c as DataPolicy, d as UserBase, l as PermissionCheck, m as normalizeRoles, p as getUserRoles, s as AuthorizationDecision, u as PermissionContext } from "../base-HXNgPQww.mjs";
|
|
3
3
|
import { a as applyFieldReadPermissions, c as resolveEffectiveRoles, i as FieldWritePermissionResult, n as FieldPermissionMap, o as applyFieldWritePermissions, r as FieldPermissionType, s as fields, t as FieldPermission } from "../fields-JTkrtO-r.mjs";
|
|
4
|
-
import { $ as deny, A as GrantResolution, B as explainAccess, C as requireScopeContext, D as createRoleHierarchy, E as RoleHierarchy, F as AccessExplanation, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, I as PermissionRequirement, J as PublicPolicy, K as createOrgPermissions, L as collectPublicSurface, M as modeSatisfies, N as requireGrant, O as GRANT_MODES, P as conjoinPolicyFilters, Q as anyOf, R as describePermission, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, V as ConnectEventsOptions, W as PermissionEventBus, X as allow, Y as allOf, Z as allowPublic, _ as publicRead, _t as requireMandate, a as PermissionMatrixRegistry, at as requireRoles, b as requireOrgInScope, c as introspectModule, ct as scopeOf, d as adminOnly, dt as evaluatePermissionDecision, et as denyAll, f as authenticated, ft as normalizeToDecision, g as presets_d_exports, gt as requireDPoP, h as permissionMatrix, ht as requireAgentScope, i as PermissionMatrixOptions, it as requirePlatformRole, j as RequireGrantOptions, k as GrantMode, l as introspectRegistry, lt as PermissionCheckReturn, m as ownerWithAdminBypass, mt as RequireMandateOptions, n as PermissionEntryType, nt as requireAuth, o as buildPermissionMatrix, ot as roles, p as fullPublic, pt as RequireAgentScopeOptions, q as AllowPublicOptions, r as PermissionMatrix, rt as requireOwnership, s as introspectCheck, st as when, t as PermissionEntry, tt as not, u as PermissionOverrides, ut as applyAuthorizationDecision, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly, z as describePermissionMap } from "../index-
|
|
5
|
-
import { a as createMemoryResourceRateLimiter, i as ResourceRateLimiter, n as ResourceRateLimitDecision, o as resolveResourceRateLimiter, r as ResourceRateLimitPolicy, t as ResourceRateLimitContext } from "../resourceRateLimit-
|
|
4
|
+
import { $ as deny, A as GrantResolution, B as explainAccess, C as requireScopeContext, D as createRoleHierarchy, E as RoleHierarchy, F as AccessExplanation, G as createDynamicPermissionMatrix, H as DynamicPermissionMatrix, I as PermissionRequirement, J as PublicPolicy, K as createOrgPermissions, L as collectPublicSurface, M as modeSatisfies, N as requireGrant, O as GRANT_MODES, P as conjoinPolicyFilters, Q as anyOf, R as describePermission, S as requireOrgRole, T as requireTeamMembership, U as DynamicPermissionMatrixConfig, V as ConnectEventsOptions, W as PermissionEventBus, X as allow, Y as allOf, Z as allowPublic, _ as publicRead, _t as requireMandate, a as PermissionMatrixRegistry, at as requireRoles, b as requireOrgInScope, c as introspectModule, ct as scopeOf, d as adminOnly, dt as evaluatePermissionDecision, et as denyAll, f as authenticated, ft as normalizeToDecision, g as presets_d_exports, gt as requireDPoP, h as permissionMatrix, ht as requireAgentScope, i as PermissionMatrixOptions, it as requirePlatformRole, j as RequireGrantOptions, k as GrantMode, l as introspectRegistry, lt as PermissionCheckReturn, m as ownerWithAdminBypass, mt as RequireMandateOptions, n as PermissionEntryType, nt as requireAuth, o as buildPermissionMatrix, ot as roles, p as fullPublic, pt as RequireAgentScopeOptions, q as AllowPublicOptions, r as PermissionMatrix, rt as requireOwnership, s as introspectCheck, st as when, t as PermissionEntry, tt as not, u as PermissionOverrides, ut as applyAuthorizationDecision, v as publicReadAdminWrite, w as requireServiceScope, x as requireOrgMembership, y as readOnly, z as describePermissionMap } from "../index-CMNpMBtW.mjs";
|
|
5
|
+
import { a as createMemoryResourceRateLimiter, i as ResourceRateLimiter, n as ResourceRateLimitDecision, o as resolveResourceRateLimiter, r as ResourceRateLimitPolicy, t as ResourceRateLimitContext } from "../resourceRateLimit-BPiESPtG.mjs";
|
|
6
6
|
export { type AccessExplanation, type AllowPublicOptions, type AuthorizationDecision, type ConnectEventsOptions, type DataPolicy, type DynamicPermissionMatrix, type DynamicPermissionMatrixConfig, type FieldPermission, type FieldPermissionMap, type FieldPermissionType, type FieldWritePermissionResult, GRANT_MODES, type GrantMode, type GrantResolution, type PermissionCheck, type PermissionCheckReturn, type PermissionContext, type PermissionEntry, type PermissionEntryType, type PermissionEventBus, type PermissionMatrix, type PermissionMatrixOptions, type PermissionMatrixRegistry, type PermissionOverrides, type PermissionRequirement, type PublicPolicy, type RequireAgentScopeOptions, type RequireGrantOptions, type RequireMandateOptions, type ResourceRateLimitContext, type ResourceRateLimitDecision, type ResourceRateLimitPolicy, type ResourceRateLimiter, type RoleHierarchy, type UserBase, adminOnly, allOf, allow, allowPublic, anyOf, applyAuthorizationDecision, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, buildPermissionMatrix, collectPublicSurface, conjoinPolicyFilters, createDynamicPermissionMatrix, createMemoryResourceRateLimiter, createOrgPermissions, createRoleHierarchy, deny, denyAll, describePermission, describePermissionMap, evaluatePermissionDecision, explainAccess, fields, fullPublic, getUserRoles, introspectCheck, introspectModule, introspectRegistry, modeSatisfies, normalizeRoles, normalizeToDecision, not, ownerWithAdminBypass, permissionMatrix, presets_d_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAgentScope, requireAuth, requireDPoP, requireGrant, requireMandate, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requirePlatformRole, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, resolveEffectiveRoles, resolveResourceRateLimiter, roles, scopeOf, when };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as conjoinPolicyFilters } from "../filter-merge-
|
|
3
|
-
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-
|
|
4
|
-
import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-
|
|
5
|
-
import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-
|
|
6
|
-
import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-
|
|
7
|
-
import { A as requireAgentScope, B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, H as requirePlatformRole, I as anyOf, K as scopeOf, L as deny, M as requireMandate, N as allOf, O as requireServiceScope, P as allow, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, W as roles, _ as requireGrant, a as adminOnly, b as describePermissionMap, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, g as modeSatisfies, h as GRANT_MODES, i as introspectRegistry, j as requireDPoP, k as requireTeamMembership, l as permissionMatrix, m as createRoleHierarchy, n as introspectCheck, o as authenticated, p as readOnly, r as introspectModule, s as fullPublic, t as buildPermissionMatrix, u as presets_exports, v as collectPublicSurface, w as requireOrgInScope, x as explainAccess, y as describePermission, z as not } from "../permissions-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "../filter-merge-B1eJ1pMx.mjs";
|
|
3
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-CBKx3XJN.mjs";
|
|
4
|
+
import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-CT1Erg7o.mjs";
|
|
5
|
+
import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-DHO94aV2.mjs";
|
|
6
|
+
import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-iSXF8rLH.mjs";
|
|
7
|
+
import { A as requireAgentScope, B as requireAuth, C as createOrgPermissions, D as requireScopeContext, E as requireOrgRole, F as allowPublic, G as when, H as requirePlatformRole, I as anyOf, K as scopeOf, L as deny, M as requireMandate, N as allOf, O as requireServiceScope, P as allow, R as denyAll, S as createDynamicPermissionMatrix, T as requireOrgMembership, U as requireRoles, V as requireOwnership, W as roles, _ as requireGrant, a as adminOnly, b as describePermissionMap, c as ownerWithAdminBypass, d as publicRead, f as publicReadAdminWrite, g as modeSatisfies, h as GRANT_MODES, i as introspectRegistry, j as requireDPoP, k as requireTeamMembership, l as permissionMatrix, m as createRoleHierarchy, n as introspectCheck, o as authenticated, p as readOnly, r as introspectModule, s as fullPublic, t as buildPermissionMatrix, u as presets_exports, v as collectPublicSurface, w as requireOrgInScope, x as explainAccess, y as describePermission, z as not } from "../permissions-CFsmdYUt.mjs";
|
|
8
8
|
export { GRANT_MODES, adminOnly, allOf, allow, allowPublic, anyOf, applyAuthorizationDecision, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, buildPermissionMatrix, collectPublicSurface, conjoinPolicyFilters, createDynamicPermissionMatrix, createMemoryResourceRateLimiter, createOrgPermissions, createRoleHierarchy, deny, denyAll, describePermission, describePermissionMap, evaluatePermissionDecision, explainAccess, fields, fullPublic, getUserRoles, introspectCheck, introspectModule, introspectRegistry, modeSatisfies, normalizeRoles, normalizeToDecision, not, ownerWithAdminBypass, permissionMatrix, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAgentScope, requireAuth, requireDPoP, requireGrant, requireMandate, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requirePlatformRole, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, resolveEffectiveRoles, resolveResourceRateLimiter, roles, scopeOf, when };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-gKJR3o-6.mjs";
|
|
3
|
+
import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-CrOlZ4rY.mjs";
|
|
4
|
+
import { i as normalizeToDecision } from "./authorizationDecision-DHO94aV2.mjs";
|
|
5
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-B1eJ1pMx.mjs";
|
|
6
|
+
import { n as getUserRoles } from "./userHelpers-CBKx3XJN.mjs";
|
|
7
|
+
import { t as MemoryCacheStore } from "./memory-C47xVsjX.mjs";
|
|
8
|
+
import { t as arcLog } from "./logger-UbknHqHy.mjs";
|
|
9
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-BQK-GrYe.mjs";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
// src/permissions/context.ts
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as ForbiddenError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-BpYV859Y.mjs";
|
|
3
3
|
// src/pipeline/pipe.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compose pipeline steps into an ordered array.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { St as Transform, Un as IControllerResponse, _t as NextFunction, bt as PipelineContext, gt as Interceptor, ht as Guard, vt as OperationFilter, xt as PipelineStep, yt as PipelineConfig } from "../index-DLCcLUQT.mjs";
|
|
3
3
|
interface GuardOptions {
|
|
4
4
|
operations?: OperationFilter;
|
|
5
5
|
handler: (ctx: PipelineContext) => boolean | Promise<boolean>;
|
package/dist/pipeline/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as pipe, t as executePipeline } from "../pipe-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-B_05AgGt.mjs";
|
|
3
3
|
// src/pipeline/guard.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a named guard.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { g as SYSTEM_FIELDS, o as DEFAULT_TENANT_FIELD, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
5
|
-
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-
|
|
6
|
-
import {
|
|
7
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
8
|
-
import { n as getUserRoles, t as getUserId } from "./userHelpers-
|
|
9
|
-
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-
|
|
10
|
-
import { r as resolveTenancy } from "./tenancy-
|
|
11
|
-
import { t as buildQueryKey } from "./keys
|
|
12
|
-
import { t as transactionContext } from "./transactionContext-
|
|
13
|
-
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-
|
|
14
|
-
import {
|
|
15
|
-
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-
|
|
16
|
-
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-
|
|
17
|
-
import {
|
|
18
|
-
import { a as withoutTenantInjection } from "./tenantPreparation-
|
|
19
|
-
import { t as hasEvents } from "./typeGuards-
|
|
20
|
-
import { n as idempotencyConfigProblem } from "./requirement
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { g as SYSTEM_FIELDS, o as DEFAULT_TENANT_FIELD, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-DOnfMd7i.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-UbknHqHy.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-B1eJ1pMx.mjs";
|
|
5
|
+
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-BpYV859Y.mjs";
|
|
6
|
+
import { n as simpleEqualityMatcher } from "./streamFrames-B3ZJfI02.mjs";
|
|
7
|
+
import { n as requireSingleHeaderValue } from "./headers-D4bncIOf.mjs";
|
|
8
|
+
import { n as getUserRoles, t as getUserId } from "./userHelpers-CBKx3XJN.mjs";
|
|
9
|
+
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-CrOlZ4rY.mjs";
|
|
10
|
+
import { r as resolveTenancy } from "./tenancy-_ukT0oBt.mjs";
|
|
11
|
+
import { t as buildQueryKey } from "./keys--l9n7aOC.mjs";
|
|
12
|
+
import { t as transactionContext } from "./transactionContext-DBbSTfY3.mjs";
|
|
13
|
+
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-CT1Erg7o.mjs";
|
|
14
|
+
import { O as ArcQueryParser, b as getDefaultCrudSchemas } from "./utils--HE8R8sH.mjs";
|
|
15
|
+
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-cIh4oX9a.mjs";
|
|
16
|
+
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-HZr63UiM.mjs";
|
|
17
|
+
import { C as createFastifyHandler, S as createCrudHandlers, _ as resolveRoutePreHandlers, a as resolveActionPermission, c as buildRouteConfig, f as buildPipelineHandler, g as buildRouteHooks, h as buildCrudPermissionMw, l as resolveRouterPluginMw, n as normalizeSchemaIR, o as tryRegisterRoute, p as resolvePipelineSteps, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, w as createRequestContext, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-BsY4y9VP.mjs";
|
|
18
|
+
import { a as withoutTenantInjection } from "./tenantPreparation-DSlQI53c.mjs";
|
|
19
|
+
import { t as hasEvents } from "./typeGuards-_6nNQqgq.mjs";
|
|
20
|
+
import { n as idempotencyConfigProblem } from "./requirement-0l2DApiQ.mjs";
|
|
21
21
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
22
22
|
import { policyRecordToFilter } from "@classytic/repo-core/filter";
|
|
23
23
|
import { retryingTransaction } from "@classytic/repo-core/repository";
|
|
@@ -1542,14 +1542,21 @@ var BaseCrudController = class {
|
|
|
1542
1542
|
* `existing` is the document the request was AUTHORISED against — handed over
|
|
1543
1543
|
* so the verb does not re-fetch and possibly observe a different document.
|
|
1544
1544
|
* `id` is the REPOSITORY PRIMARY KEY (`resolveRepoId` output), never the route param.
|
|
1545
|
+
* `cas` (update only, from {@link expectedVersion}) becomes `expectedVersion` /
|
|
1546
|
+
* `expectedVersionSource` when the resource declares `concurrency` and the loaded
|
|
1547
|
+
* document has a numeric version.
|
|
1545
1548
|
*/
|
|
1546
|
-
mutationWriteContext(req, id, existing, repo = this.repository, uow) {
|
|
1549
|
+
mutationWriteContext(req, id, existing, repo = this.repository, uow, cas) {
|
|
1547
1550
|
return {
|
|
1548
1551
|
req,
|
|
1549
1552
|
repository: repo,
|
|
1550
1553
|
id,
|
|
1551
1554
|
existing,
|
|
1552
|
-
...uow !== void 0 ? { uow } : {}
|
|
1555
|
+
...uow !== void 0 ? { uow } : {},
|
|
1556
|
+
...cas?.version !== void 0 ? {
|
|
1557
|
+
expectedVersion: cas.version,
|
|
1558
|
+
expectedVersionSource: cas.fromClient ? "if-match" : "loaded"
|
|
1559
|
+
} : {}
|
|
1553
1560
|
};
|
|
1554
1561
|
}
|
|
1555
1562
|
/**
|
|
@@ -1807,18 +1814,20 @@ var BaseCrudController = class {
|
|
|
1807
1814
|
id,
|
|
1808
1815
|
existing
|
|
1809
1816
|
};
|
|
1810
|
-
const cas = this.
|
|
1817
|
+
const cas = this.expectedVersion(req, existing);
|
|
1811
1818
|
const item = await this.runHookedOpUntilResult(req, {
|
|
1812
1819
|
op: "update",
|
|
1813
1820
|
input: data,
|
|
1814
1821
|
meta: hookMeta
|
|
1815
|
-
}, async (processed) => this.runWritePersistence((repo, uow) => this._writes?.update ? this._writes.update(repoId, processed, this.mutationWriteContext(req, repoId, existing, repo, uow)) : repo.update(repoId, processed, {
|
|
1822
|
+
}, async (processed) => this.runWritePersistence((repo, uow) => this._writes?.update ? this._writes.update(repoId, processed, this.mutationWriteContext(req, repoId, existing, repo, uow, cas)) : repo.update(repoId, processed, {
|
|
1816
1823
|
user,
|
|
1817
1824
|
context: arcContext,
|
|
1818
1825
|
...this.tenantRepoOptions(req),
|
|
1819
1826
|
...cas.version !== void 0 ? { ifVersion: cas.version } : {}
|
|
1820
1827
|
}))).catch((err) => {
|
|
1821
|
-
|
|
1828
|
+
const conflict = err;
|
|
1829
|
+
const onOtherDoc = this._writes?.update !== void 0 && conflict?.id !== void 0 && conflict.id !== null && String(conflict.id) !== String(repoId);
|
|
1830
|
+
if (cas.fromClient && conflict?.code === "version_conflict" && !onOtherDoc) throw createDomainError(ARC_ERROR_CODES.PRECONDITION_FAILED, "The resource changed since it was read — re-read and retry.", 412);
|
|
1822
1831
|
throw err;
|
|
1823
1832
|
});
|
|
1824
1833
|
const resolved = this._writes?.update ? item ?? await this.repository.getById(repoId, {
|
|
@@ -2643,10 +2652,13 @@ function isParseable(schema) {
|
|
|
2643
2652
|
return typeof schema === "object" && schema !== null && typeof schema.safeParse === "function";
|
|
2644
2653
|
}
|
|
2645
2654
|
/** Parse `value` with `schema`; zod issues become one `ValidationError` (400, `details[]`). */
|
|
2646
|
-
function parseOrThrow(schema, value) {
|
|
2655
|
+
function parseOrThrow(schema, value, mapIssues) {
|
|
2647
2656
|
const result = schema.safeParse(value);
|
|
2648
2657
|
if (result.success) return result.data;
|
|
2649
|
-
|
|
2658
|
+
const issues = result.error?.issues ?? [];
|
|
2659
|
+
const mapped = mapIssues?.(issues);
|
|
2660
|
+
if (mapped) throw mapped;
|
|
2661
|
+
throw new ValidationError("Validation failed", issues.map((issue) => ({
|
|
2650
2662
|
field: issue.path.map(String).join("."),
|
|
2651
2663
|
message: issue.message
|
|
2652
2664
|
})));
|
|
@@ -2655,7 +2667,8 @@ function parseOrThrow(schema, value) {
|
|
|
2655
2667
|
* Spread into a route entry: `{ method, path, permissions, ...routeInput({ body }), handler }`.
|
|
2656
2668
|
* `preHandler` is empty when no zod body/querystring/params slot is declared.
|
|
2657
2669
|
*/
|
|
2658
|
-
function routeInput(slots) {
|
|
2670
|
+
function routeInput(slots, options = {}) {
|
|
2671
|
+
const { mapIssues } = options;
|
|
2659
2672
|
const { body, querystring, params } = slots;
|
|
2660
2673
|
const parseBody = isParseable(body) ? body : void 0;
|
|
2661
2674
|
const parseQuery = isParseable(querystring) ? querystring : void 0;
|
|
@@ -2665,9 +2678,9 @@ function routeInput(slots) {
|
|
|
2665
2678
|
preHandler: []
|
|
2666
2679
|
};
|
|
2667
2680
|
const parse = async (request) => {
|
|
2668
|
-
if (parseParams) request.params = parseOrThrow(parseParams, request.params ?? {});
|
|
2669
|
-
if (parseQuery) request.query = parseOrThrow(parseQuery, request.query ?? {});
|
|
2670
|
-
if (parseBody) request.body = parseOrThrow(parseBody, request.body ?? {});
|
|
2681
|
+
if (parseParams) request.params = parseOrThrow(parseParams, request.params ?? {}, mapIssues);
|
|
2682
|
+
if (parseQuery) request.query = parseOrThrow(parseQuery, request.query ?? {}, mapIssues);
|
|
2683
|
+
if (parseBody) request.body = parseOrThrow(parseBody, request.body ?? {}, mapIssues);
|
|
2671
2684
|
};
|
|
2672
2685
|
return {
|
|
2673
2686
|
schema: slots,
|
|
@@ -2700,30 +2713,56 @@ const noPayloadSchema = Object.freeze({
|
|
|
2700
2713
|
function crudInput(input) {
|
|
2701
2714
|
const { create, update } = input;
|
|
2702
2715
|
const parseBody = (schema) => input.parse && isParseable(schema) ? [(async (request) => {
|
|
2703
|
-
request.body = parseOrThrow(schema, request.body ?? {});
|
|
2716
|
+
request.body = parseOrThrow(schema, request.body ?? {}, input.mapIssues);
|
|
2704
2717
|
})] : [];
|
|
2718
|
+
const customSchemas = {};
|
|
2719
|
+
const openApiSchemas = {};
|
|
2720
|
+
const middlewares = {};
|
|
2721
|
+
if (create) {
|
|
2722
|
+
customSchemas.create = { body: create };
|
|
2723
|
+
openApiSchemas.createBody = create;
|
|
2724
|
+
if (input.parse) middlewares.create = parseBody(create);
|
|
2725
|
+
}
|
|
2726
|
+
if (update) {
|
|
2727
|
+
customSchemas.update = { body: update };
|
|
2728
|
+
openApiSchemas.updateBody = update;
|
|
2729
|
+
if (input.parse) middlewares.update = parseBody(update);
|
|
2730
|
+
}
|
|
2705
2731
|
return {
|
|
2706
|
-
customSchemas
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
},
|
|
2710
|
-
openApiSchemas: {
|
|
2711
|
-
...create ? { createBody: create } : {},
|
|
2712
|
-
...update ? { updateBody: update } : {}
|
|
2713
|
-
},
|
|
2714
|
-
middlewares: {
|
|
2715
|
-
...create && input.parse ? { create: parseBody(create) } : {},
|
|
2716
|
-
...update && input.parse ? { update: parseBody(update) } : {}
|
|
2717
|
-
}
|
|
2732
|
+
customSchemas,
|
|
2733
|
+
openApiSchemas,
|
|
2734
|
+
middlewares
|
|
2718
2735
|
};
|
|
2719
2736
|
}
|
|
2737
|
+
/** True when the schema's object shape declares an `action` property. */
|
|
2738
|
+
function declaresAction(schema) {
|
|
2739
|
+
try {
|
|
2740
|
+
return "action" in normalizeSchemaIR(schema).properties;
|
|
2741
|
+
} catch {
|
|
2742
|
+
return false;
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2720
2745
|
/**
|
|
2721
2746
|
* Wrap an action handler so `data` is the zod schema's OUTPUT. Used by `ActionDefinition.parse`
|
|
2722
2747
|
* and `defineAction({ parse: true })`; a non-zod schema returns the handler unchanged.
|
|
2748
|
+
*
|
|
2749
|
+
* `data` never carries the `action` discriminator (arc owns it). A schema that DECLARES `action`
|
|
2750
|
+
* (`z.strictObject({ action: z.literal('issue'), ... })`, a contracts discriminated-union branch)
|
|
2751
|
+
* is parsed with `action: actionName` put back, so strictness and refinements that read it hold;
|
|
2752
|
+
* the handler still gets the output without `action`.
|
|
2723
2753
|
*/
|
|
2724
|
-
function withParsedInput(handler, schema) {
|
|
2754
|
+
function withParsedInput(handler, schema, actionName) {
|
|
2725
2755
|
if (!isParseable(schema)) return handler;
|
|
2726
|
-
return (id, data, req) => handler(id, parseOrThrow(schema, data), req);
|
|
2756
|
+
if (actionName === void 0 || !declaresAction(schema)) return (id, data, req) => handler(id, parseOrThrow(schema, data), req);
|
|
2757
|
+
return (id, data, req) => {
|
|
2758
|
+
const out = parseOrThrow(schema, {
|
|
2759
|
+
...data,
|
|
2760
|
+
action: actionName
|
|
2761
|
+
});
|
|
2762
|
+
if (out === null || typeof out !== "object" || Array.isArray(out)) return handler(id, out, req);
|
|
2763
|
+
const { action: _owned, ...rest } = out;
|
|
2764
|
+
return handler(id, rest, req);
|
|
2765
|
+
};
|
|
2727
2766
|
}
|
|
2728
2767
|
// src/core/defineResource/schemas.ts
|
|
2729
2768
|
/**
|
|
@@ -3041,7 +3080,7 @@ function normalizeActionsToRouterConfig(actions, resourceActionPermissions, tag,
|
|
|
3041
3080
|
if (typeof entry === "function") handlers[name] = entry;
|
|
3042
3081
|
else {
|
|
3043
3082
|
const def = entry;
|
|
3044
|
-
handlers[name] = def.parse ? withParsedInput(def.handler, def.schema) : def.handler;
|
|
3083
|
+
handlers[name] = def.parse ? withParsedInput(def.handler, def.schema, name) : def.handler;
|
|
3045
3084
|
if (def.schema) schemas[name] = def.schema;
|
|
3046
3085
|
if (def.id === false) idLessActionNames.push(name);
|
|
3047
3086
|
if (def.idempotency?.required === true) idempotentActionNames.push(name);
|
|
@@ -3177,7 +3216,7 @@ function buildResourcePlugin(resource) {
|
|
|
3177
3216
|
extensions: resource.extensions
|
|
3178
3217
|
});
|
|
3179
3218
|
if (resource.actions && Object.keys(resource.actions).length > 0) {
|
|
3180
|
-
const { createActionRouter } = await import("./createActionRouter-
|
|
3219
|
+
const { createActionRouter } = await import("./createActionRouter-CpTn15dm.mjs").then((n) => n.n);
|
|
3181
3220
|
const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
|
|
3182
3221
|
const actionTarget = resolveActionTargetFence(resource, actionConfig);
|
|
3183
3222
|
createActionRouter(typedInstance, {
|
|
@@ -3197,7 +3236,11 @@ function buildResourcePlugin(resource) {
|
|
|
3197
3236
|
});
|
|
3198
3237
|
}
|
|
3199
3238
|
if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
|
|
3200
|
-
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([
|
|
3239
|
+
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }, { fieldTypesFromOpenApiSchemas }] = await Promise.all([
|
|
3240
|
+
import("./createAggregationRouter-CD_Hydp0.mjs"),
|
|
3241
|
+
import("./validate-BUeE2MLR.mjs").then((n) => n.r),
|
|
3242
|
+
import("./fieldTypes-EFWxCkZ5.mjs").then((n) => n.r)
|
|
3243
|
+
]);
|
|
3201
3244
|
const repoForAgg = resource.controller?.repository ?? resource.repository;
|
|
3202
3245
|
if (!adapterSupportsAggregate(repoForAgg)) {
|
|
3203
3246
|
const undispatchable = Object.entries(resource.aggregations).filter(([, cfg]) => !cfg.materialized).map(([name]) => name);
|
|
@@ -3219,7 +3262,8 @@ function buildResourcePlugin(resource) {
|
|
|
3219
3262
|
routeGuards: resource.routeGuards,
|
|
3220
3263
|
repository: repoForAgg,
|
|
3221
3264
|
buildOptions,
|
|
3222
|
-
middlewares: resource.middlewares?.aggregations
|
|
3265
|
+
middlewares: resource.middlewares?.aggregations,
|
|
3266
|
+
fieldTypes: fieldTypesFromOpenApiSchemas(resource._registryMeta?.openApiSchemas)
|
|
3223
3267
|
});
|
|
3224
3268
|
}
|
|
3225
3269
|
if (resource.events && Object.keys(resource.events).length > 0) typedInstance.log?.debug?.(`Resource '${resource.name}' defined ${Object.keys(resource.events).length} events`);
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as AnyRecord } from "../base-HXNgPQww.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as
|
|
3
|
+
import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-baQc3MaO.mjs";
|
|
4
|
+
import { i as registerSseStats, n as SseConnectionGauge, r as createSseConnectionGauge, t as SSEStats } from "../sseStats-DQqNN385.mjs";
|
|
5
|
+
import { _ as _default$2, a as MetricsOptions, c as RealtimeOptions, d as _default$9, f as CachingOptions, g as ShutdownState, h as GracefulShutdownOptions, i as MetricsCollector, l as _default$6, m as _default$1, n as _default$10, o as _default$4, p as CachingRule, r as MetricEntry, s as ChangeOperation, t as VersioningOptions, u as SSEOptions } from "../versioning-B07RgD27.mjs";
|
|
6
|
+
import { J as MiddlewareConfig, Ot as RouteDefinition, U as PresetHook, X as RouteSchemaOptions } from "../index-DLCcLUQT.mjs";
|
|
5
7
|
import { A as DailyLedger, C as ScheduleStats, D as DailyClock, E as DailyClaimInfo, F as HealthCheck, I as HealthOptions, L as _default$3, M as MemoryDailyLedger, N as createDailyGate, O as DailyGate, P as createMemoryDailyLedger, S as ScheduleRunContext, T as _default$8, b as DailyScheduleOptions, j as DailyRunOutcome, k as DailyGateOptions, w as SchedulesPluginOptions, x as ScheduleDefinition } from "../types-BeEJm-DV.mjs";
|
|
6
|
-
import { i as
|
|
7
|
-
import { _ as ShutdownState, a as MetricsOptions, c as RealtimeOptions, d as SSEStats, f as _default$9, g as GracefulShutdownOptions, h as _default$1, i as MetricsCollector, l as _default$6, m as CachingRule, n as _default$10, o as _default$4, p as CachingOptions, r as MetricEntry, s as ChangeOperation, t as VersioningOptions, u as SSEOptions, v as _default$2 } from "../versioning-S18y2-0C.mjs";
|
|
8
|
+
import { i as errorHandlerPlugin, n as ErrorMapper, r as defaultIsDuplicateKeyError, t as ErrorHandlerOptions } from "../errorHandler-B9r88jZV.mjs";
|
|
8
9
|
import { t as TracingOptions } from "../tracing-JSFiBl5r.mjs";
|
|
9
10
|
import { PaginatedResult } from "@classytic/repo-core/pagination";
|
|
10
11
|
import { FastifyInstance, FastifyPluginAsync } from "fastify";
|
|
@@ -218,4 +219,4 @@ export declare function createRequestIdGenerator(opts?: Pick<RequestIdOptions, "
|
|
|
218
219
|
headers: Record<string, string | string[] | undefined>;
|
|
219
220
|
}) => string;
|
|
220
221
|
declare const _default$7: FastifyPluginAsync<RequestIdOptions>;
|
|
221
|
-
export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type DailyClaimInfo, type DailyClock, type DailyGate, type DailyGateOptions, type DailyLedger, type DailyRunOutcome, type DailyScheduleOptions, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type MemoryDailyLedger, type MetricEntry, type MetricsCollector, type MetricsOptions, type PluginMeta, type PluginResourceResult, type PressureApi, type PressureOptions, type PressureSignal, type PressureSnapshot, type PressureState, type PressureThresholds, type RealtimeOptions, type RequestIdOptions, type SSEOptions, type SSEStats, type ScheduleDefinition, type ScheduleRunContext, type ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, createDailyGate, createMemoryDailyLedger, defaultIsDuplicateKeyError, errorHandlerPlugin, _default$2 as gracefulShutdownPlugin, _default$3 as healthPlugin, _default$4 as metricsPlugin, _default$5 as pressurePlugin, _default$6 as realtimePlugin, _default$7 as requestIdPlugin, _default$8 as schedulesPlugin, _default$9 as ssePlugin, _default$10 as versioningPlugin };
|
|
222
|
+
export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type DailyClaimInfo, type DailyClock, type DailyGate, type DailyGateOptions, type DailyLedger, type DailyRunOutcome, type DailyScheduleOptions, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, type MemoryDailyLedger, type MetricEntry, type MetricsCollector, type MetricsOptions, type PluginMeta, type PluginResourceResult, type PressureApi, type PressureOptions, type PressureSignal, type PressureSnapshot, type PressureState, type PressureThresholds, type RealtimeOptions, type RequestIdOptions, type SSEOptions, type SSEStats, type ScheduleDefinition, type ScheduleRunContext, type ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type SseConnectionGauge, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, createDailyGate, createMemoryDailyLedger, createSseConnectionGauge, defaultIsDuplicateKeyError, errorHandlerPlugin, _default$2 as gracefulShutdownPlugin, _default$3 as healthPlugin, _default$4 as metricsPlugin, _default$5 as pressurePlugin, _default$6 as realtimePlugin, registerSseStats, _default$7 as requestIdPlugin, _default$8 as schedulesPlugin, _default$9 as ssePlugin, _default$10 as versioningPlugin };
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { m as MUTATION_OPERATIONS } from "../constants-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as metrics_default } from "../metrics-
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { m as MUTATION_OPERATIONS } from "../constants-DOnfMd7i.mjs";
|
|
3
|
+
import { n as requestContext } from "../requestContext-tUgLt9Ky.mjs";
|
|
4
|
+
import { t as HookSystem } from "../HookSystem-DMoeJ6Do.mjs";
|
|
5
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-CP-iTcKy.mjs";
|
|
6
|
+
import { c as getOrgId } from "../types-CrOlZ4rY.mjs";
|
|
7
|
+
import { t as hasEvents } from "../typeGuards-_6nNQqgq.mjs";
|
|
8
|
+
import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-BxQW7hPq.mjs";
|
|
9
|
+
import { t as caching_default } from "../caching-COTX3sDa.mjs";
|
|
10
|
+
import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-D9iMVFhF.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-DA03vRqp.mjs";
|
|
12
|
+
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-BoFxrkJE.mjs";
|
|
13
|
+
import { t as metrics_default } from "../metrics-TJyAb1Xk.mjs";
|
|
14
|
+
import { t as arcLog } from "../logger-UbknHqHy.mjs";
|
|
15
|
+
import { t as realtime_default } from "../realtime-DXGBPtYK.mjs";
|
|
16
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-DliJNb0-.mjs";
|
|
17
|
+
import { t as sse_default } from "../sse-ofvlcTQQ.mjs";
|
|
18
|
+
import { t as versioning_default } from "../versioning-qYgqwOhL.mjs";
|
|
18
19
|
import fp from "fastify-plugin";
|
|
19
20
|
import { performance as performance$1 } from "node:perf_hooks";
|
|
20
21
|
// src/core/arcCorePlugin.ts
|
|
@@ -386,4 +387,4 @@ var pressure_default = fp(pressurePlugin, {
|
|
|
386
387
|
name: "arc-pressure",
|
|
387
388
|
fastify: "5.x"
|
|
388
389
|
});
|
|
389
|
-
export { arcCorePlugin_default as arcCorePlugin, caching_default as cachingPlugin, createDailyGate, createMemoryDailyLedger, createPlugin, createRequestIdGenerator, defaultIsDuplicateKeyError, errorHandlerPlugin, gracefulShutdown_default as gracefulShutdownPlugin, health_default as healthPlugin, metrics_default as metricsPlugin, pressure_default as pressurePlugin, realtime_default as realtimePlugin, replyHelpersPlugin, requestId_default as requestIdPlugin, sanitizeRequestId, schedules_default as schedulesPlugin, sse_default as ssePlugin, versioning_default as versioningPlugin };
|
|
390
|
+
export { arcCorePlugin_default as arcCorePlugin, caching_default as cachingPlugin, createDailyGate, createMemoryDailyLedger, createPlugin, createRequestIdGenerator, createSseConnectionGauge, defaultIsDuplicateKeyError, errorHandlerPlugin, gracefulShutdown_default as gracefulShutdownPlugin, health_default as healthPlugin, metrics_default as metricsPlugin, pressure_default as pressurePlugin, realtime_default as realtimePlugin, registerSseStats, replyHelpersPlugin, requestId_default as requestIdPlugin, sanitizeRequestId, schedules_default as schedulesPlugin, sse_default as ssePlugin, versioning_default as versioningPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-C51EUUOm.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-BQK-GrYe.mjs";
|
|
4
|
+
import { t as hasEvents } from "../typeGuards-_6nNQqgq.mjs";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
// src/plugins/response-cache.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
// src/plugins/tracing.ts
|
|
@@ -59,7 +59,7 @@ try {
|
|
|
59
59
|
function createTracerProvider(options) {
|
|
60
60
|
if (!isAvailable || !NodeTracerProvider || !BatchSpanProcessor || !OTLPTraceExporter) return null;
|
|
61
61
|
const { serviceName = "@classytic/arc", serviceVersion, exporterUrl = "http://localhost:4318/v1/traces" } = options;
|
|
62
|
-
const resolvedVersion = serviceVersion ?? "2.
|
|
62
|
+
const resolvedVersion = serviceVersion ?? "2.49.0";
|
|
63
63
|
const exporter = new OTLPTraceExporter({ url: exporterUrl });
|
|
64
64
|
const provider = new NodeTracerProvider({ resource: { attributes: {
|
|
65
65
|
"service.name": serviceName,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { i as RequestScope } from "../types-DnkIALZ8.mjs";
|
|
3
3
|
import { l as PermissionCheck } from "../base-HXNgPQww.mjs";
|
|
4
|
-
import { W as PresetResult } from "../index-
|
|
4
|
+
import { W as PresetResult } from "../index-DLCcLUQT.mjs";
|
|
5
5
|
import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-odC5MNKN.mjs";
|
|
6
6
|
export interface FilesUploadPresetRoutes {
|
|
7
7
|
upload?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as multipartBody } from "../multipartBody-BdG1qbn1.mjs";
|
|
3
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-CFsmdYUt.mjs";
|
|
4
|
+
import { c as getOrgId, g as getUserId } from "../types-CrOlZ4rY.mjs";
|
|
5
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-BpYV859Y.mjs";
|
|
6
6
|
// src/presets/filesUpload.ts
|
|
7
7
|
const DEFAULT_FIELD_NAME = "file";
|
|
8
8
|
const DEFAULT_MAX_FILE_SIZE = 10485760;
|
package/dist/presets/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as AnyRecord } from "../base-HXNgPQww.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { L as ResourceConfig, Un as IControllerResponse, W as PresetResult, Wn as IRequestContext, i as PaginationResult } from "../index-DLCcLUQT.mjs";
|
|
4
4
|
import { FilesUploadPresetOptions, FilesUploadPresetPermissions, FilesUploadPresetRoutes, filesUploadPreset } from "./filesUpload.mjs";
|
|
5
|
-
import { n as multiTenantPreset, r as TenantFieldSpec, t as MultiTenantOptions } from "../multiTenant-
|
|
5
|
+
import { n as multiTenantPreset, r as TenantFieldSpec, t as MultiTenantOptions } from "../multiTenant-QtDzxx_K.mjs";
|
|
6
6
|
import { SearchHandler, SearchPresetOptions, SearchRouteConfig, searchPreset } from "./search.mjs";
|
|
7
7
|
interface AuditedPresetOptions {
|
|
8
8
|
/** Field name for creator (default: 'createdBy') */
|
package/dist/presets/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { a as treePreset, c as ownedByUserPreset, i as registerPreset, l as bulkPreset, n as getAvailablePresets, o as softDeletePreset, r as getPreset, s as slugLookupPreset, t as applyPresets, u as auditedPreset } from "../presets-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as treePreset, c as ownedByUserPreset, i as registerPreset, l as bulkPreset, n as getAvailablePresets, o as softDeletePreset, r as getPreset, s as slugLookupPreset, t as applyPresets, u as auditedPreset } from "../presets-CUd3L7v6.mjs";
|
|
3
3
|
import { filesUploadPreset } from "./filesUpload.mjs";
|
|
4
4
|
import { multiTenantPreset } from "./multiTenant.mjs";
|
|
5
5
|
import { searchPreset } from "./search.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as multiTenantPreset, r as TenantFieldSpec, t as MultiTenantOptions } from "../multiTenant-
|
|
2
|
+
import { n as multiTenantPreset, r as TenantFieldSpec, t as MultiTenantOptions } from "../multiTenant-QtDzxx_K.mjs";
|
|
3
3
|
export { MultiTenantOptions, type TenantFieldSpec, multiTenantPreset };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as getRequestScope } from "../types-
|
|
5
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-DOnfMd7i.mjs";
|
|
3
|
+
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-DSlQI53c.mjs";
|
|
4
|
+
import { u as getRequestScope } from "../types-CrOlZ4rY.mjs";
|
|
5
|
+
import { t as ArcError } from "../errors-BpYV859Y.mjs";
|
|
6
6
|
// src/presets/multiTenant.ts
|
|
7
7
|
function createTenantMiddleware(specs, mode) {
|
|
8
8
|
const preparation = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { l as PermissionCheck } from "../base-HXNgPQww.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Ot as RouteDefinition, W as PresetResult, kt as RouteMcpConfig, zn as ControllerHandler } from "../index-DLCcLUQT.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Search Preset — backend-agnostic search / vector / embed routes
|
|
6
6
|
*
|
package/dist/presets/search.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-CFsmdYUt.mjs";
|
|
3
3
|
// src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import {
|
|
3
|
-
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-DZHqOuJE.mjs";
|
|
4
|
-
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-BBy4bOGi.mjs";
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-CFsmdYUt.mjs";
|
|
5
3
|
import { multiTenantPreset } from "./presets/multiTenant.mjs";
|
|
4
|
+
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-CrOlZ4rY.mjs";
|
|
5
|
+
import { l as UnauthorizedError } from "./errors-BpYV859Y.mjs";
|
|
6
6
|
// src/presets/audited.ts
|
|
7
7
|
/**
|
|
8
8
|
* Audited preset - adds createdBy/updatedBy tracking
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
|
+
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-CrOlZ4rY.mjs";
|
|
3
3
|
// src/scope/projection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute the request-scope projection. Returns `undefined` when no
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.49.0 | MIT | https://classytic.com */
|
|
2
2
|
// src/http-cache/purgers/purger.types.ts
|
|
3
3
|
/** A purge the CDN refused or never answered: a closed code plus the provider's own codes, never a credential. */
|
|
4
4
|
var CachePurgeError = class extends Error {
|