@classytic/arc 2.44.0 → 2.45.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-DZWDsaPa.mjs → EventTransport-Ci6hGO1Y.mjs} +2 -2
- package/dist/{HookSystem-yjEgn7Cm.mjs → HookSystem-CtnnYHME.mjs} +2 -2
- package/dist/{ResourceRegistry-DJxHUpE4.mjs → ResourceRegistry-BNoHOx-D.mjs} +2 -2
- package/dist/{acquire-BozJ-9yt.mjs → acquire-BW_2Dt60.mjs} +1 -1
- package/dist/{actionPermissions-5N04zBL4.mjs → actionPermissions-TAc_6LCw.mjs} +13 -13
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.mjs +10 -11
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/{authorizationDecision-wX3SA9w_.mjs → authorizationDecision-BixzgirP.mjs} +4 -4
- package/dist/{boundedMap-DWiKW7lP.mjs → boundedMap-DQfXgxMo.mjs} +1 -1
- package/dist/{buildHandler-Bswu_vNb.mjs → buildHandler-mEUmO2_u.mjs} +4 -4
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-Drp68DIS.mjs → caching-TQfW2QX7.mjs} +2 -2
- package/dist/{claimed-DYvQoZLv.mjs → claimed-CnEEOHuL.mjs} +1 -1
- package/dist/cleanup/index.mjs +4 -4
- 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-B2QHb6u6.mjs → constants-B90SnSQn.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.mjs +7 -7
- package/dist/{core-COcqo0Cp.mjs → core-DV9PSXtr.mjs} +3 -3
- package/dist/{createActionRouter-zG13rpPJ.mjs → createActionRouter-BgPCYU2U.mjs} +6 -6
- package/dist/{createAggregationRouter-CWRz96Vr.mjs → createAggregationRouter-lNCkDwKe.mjs} +7 -7
- package/dist/{createApp-BGLYtErt.mjs → createApp-BSBPntOQ.mjs} +28 -28
- package/dist/{defineAggregation--3xguLkk.mjs → defineAggregation-CwD8_XNd.mjs} +1 -1
- package/dist/{defineResource-gUp9ug66.mjs → defineResource-CRkhRRSj.mjs} +7 -7
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-BG4gnMsJ.mjs → elevation-BAfsnnO0.mjs} +5 -5
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-COHw3N1b.mjs → errorHandler-DbHGwrQM.mjs} +3 -3
- package/dist/{errors-CW4anJBy.mjs → errors-C9G4A8cN.mjs} +1 -1
- package/dist/{eventPlugin-BweHAVws.mjs → eventPlugin-Dghr7iL5.mjs} +8 -8
- package/dist/{eventTypes-N4-omQFR.mjs → eventTypes-DDy7BMAn.mjs} +2 -2
- package/dist/events/index.mjs +7 -7
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.mjs +2 -2
- package/dist/factory/index.d.mts +1 -1
- package/dist/factory/index.mjs +6 -6
- package/dist/{fields-A5crhsJb.mjs → fields-Da--1DNS.mjs} +1 -1
- package/dist/{filter-merge-DGM-GQ1J.mjs → filter-merge-BYKBa9b2.mjs} +1 -1
- package/dist/{generate-BXKo2Gc8.mjs → generate-Cm5Ct81v.mjs} +2 -2
- package/dist/{headers-DKZQKL-Z.mjs → headers-B6DRXXzT.mjs} +2 -2
- package/dist/{health-BYAwA6YS.mjs → health-hRGgxnOC.mjs} +1 -1
- package/dist/{health-CrqUp3sz.mjs → health-pLbfckGB.mjs} +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/idempotency/index.mjs +7 -7
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/{index-BkV55WlV.d.mts → index-uhkUA5-U.d.mts} +1 -1
- package/dist/index.mjs +11 -11
- package/dist/{init-BPzK5Lnr.mjs → init-lpaUB-Ph.mjs} +1 -1
- package/dist/integrations/event-gateway.mjs +2 -2
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.mjs +3 -3
- package/dist/integrations/mcp/index.mjs +2 -2
- package/dist/integrations/mcp/testing.mjs +2 -2
- package/dist/integrations/streamline.mjs +3 -3
- package/dist/integrations/webhooks.mjs +3 -3
- 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-YIq-vGLv.mjs → jsonBody-CzKHE-Fg.mjs} +2 -2
- package/dist/{keys-CpoiZ8hU.mjs → keys-BoZKnBel.mjs} +1 -1
- package/dist/{loadResources-6jO52-RR.mjs → loadResources-BEKG6bP9.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-MP8xEppu.mjs → loadResourcesFromEntry-BEPA0ptL.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-D4V1zGLI.mjs → logger-vxu0DXf_.mjs} +1 -1
- package/dist/{mcpPlugin-srPc7ItN.mjs → mcpPlugin-DP_UB0LK.mjs} +22 -22
- package/dist/{memory-CTa5pOCW.mjs → memory-DJN6kyC8.mjs} +3 -3
- package/dist/{metrics-DsZrvnpB.mjs → metrics-wfr7XFE7.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module--L0iBIZz.mjs → module-BtdcGn_E.mjs} +1 -1
- package/dist/{mongodb-memory-server-CHhYSq5y.mjs → mongodb-memory-server-Cn57YIsc.mjs} +3 -3
- package/dist/{mongoose-CYJCLyi-.mjs → mongoose-DzFjTtBN.mjs} +3 -3
- package/dist/{multipartBody-Cc7eZ9cq.mjs → multipartBody-NHGOuUnG.mjs} +1 -1
- package/dist/{node-D8UZv_8c.mjs → node-C0HB_V6E.mjs} +2 -2
- package/dist/{openapi-CMegfsm8.mjs → openapi-BCOaGAgE.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-Ryk270jd.mjs → outbox-module-BVDiMwXb.mjs} +9 -9
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-C5ijIz5Q.mjs → permissions-IdHJ0_5V.mjs} +9 -9
- package/dist/{pipe-D81zMtWs.mjs → pipe-BPJPifhi.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-CJGMKoui.mjs → plan-CEedaMlr.mjs} +1 -1
- package/dist/{plugin-DALd9dcF.mjs → plugin-BDBOS3-c.mjs} +22 -22
- package/dist/plugins/index.d.mts +2 -2
- package/dist/plugins/index.mjs +17 -17
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-COUNYo3d.mjs → pluralize-B4FcZEyI.mjs} +1 -1
- package/dist/presets/filesUpload.mjs +5 -5
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.mjs +5 -5
- package/dist/presets/search.mjs +2 -2
- package/dist/{presets-CONf2Qem.mjs → presets-BPjNc-Np.mjs} +4 -4
- package/dist/{projection-wFoLqdss.mjs → projection-BXUOYosj.mjs} +2 -2
- package/dist/{queryCachePlugin-BATECpyh.mjs → queryCachePlugin-s4pBvjFF.mjs} +6 -6
- package/dist/{rateLimitKey-DVEZ_UpV.mjs → rateLimitKey-C4mkCwQ-.mjs} +1 -1
- package/dist/{realtime-xyubMKSB.mjs → realtime-MPj6eIoV.mjs} +11 -11
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-Bdzg-hdm.mjs → registry-DIdh6mWE.mjs} +2 -2
- package/dist/{renewingLease-BFJxGPuh.mjs → renewingLease-boGRXWCr.mjs} +1 -1
- package/dist/{replyHelpers-Bnc6lJyy.mjs → replyHelpers-BW_p67QD.mjs} +2 -2
- package/dist/{requestContext-C10UeFe5.mjs → requestContext-B8JKbeb7.mjs} +1 -1
- package/dist/{requirement-Bu50QALH.mjs → requirement-tXpcD56f.mjs} +1 -1
- package/dist/{resourceRateLimit-urWPJxrt.mjs → resourceRateLimit-DWob9nQ8.mjs} +2 -2
- package/dist/{rolldown-runtime-MYrLNGnq.mjs → rolldown-runtime-AD16t29l.mjs} +1 -1
- package/dist/{routeValidator-DHtpzrzk.mjs → routeValidator-CnmenC4Y.mjs} +1 -1
- package/dist/{runtimeCapabilities-DIMKMV2G.mjs → runtimeCapabilities-C7gAbIxC.mjs} +1 -1
- package/dist/{schedules-CKTs5ys8.mjs → schedules-Dr9gNFzx.mjs} +5 -5
- package/dist/{schemaConverter-BVjkQ5DD.mjs → schemaConverter-rzBovk00.mjs} +2 -2
- package/dist/{schemaIR-BA0Hb21Y.mjs → schemaIR-GrOK1JO4.mjs} +2 -2
- package/dist/schemas/index.mjs +1 -1
- package/dist/scim/index.mjs +2 -2
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-DINaj7Ax.mjs → scope-DpOpxyHT.mjs} +4 -4
- package/dist/{shutdown-LpLMH8T1.mjs → shutdown-BW8qwgpx.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-DbwIM1f1.mjs → simpleEqualityMatcher-WdZw6GOt.mjs} +1 -1
- package/dist/sse-D8AgoUN3.mjs +212 -0
- package/dist/{sseStream-DQChzGTs.mjs → sseStream-B7rPhIQw.mjs} +2 -2
- package/dist/{store-helpers-Coj9RhOZ.mjs → store-helpers-Bxk7TDgG.mjs} +1 -1
- package/dist/{streaming-JzB5CAga.mjs → streaming-BLg1buwL.mjs} +1 -1
- package/dist/{subscriberIdentity-DeyppIif.mjs → subscriberIdentity-Cxp19Ked.mjs} +1 -1
- package/dist/{tenancy-DxV8OuX2.mjs → tenancy-D7jo78AP.mjs} +2 -2
- package/dist/{tenantPreparation-CBvvAcAj.mjs → tenantPreparation-DqJnokDW.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.d.mts +1 -1
- package/dist/testing/index.mjs +16 -16
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-CntavTlR.mjs → timing-Y6_ZpoYG.mjs} +1 -1
- package/dist/{transactionContext-orvnGu4F.mjs → transactionContext-BWp0MBGL.mjs} +1 -1
- package/dist/{typeGuards-kEaP_WmO.mjs → typeGuards-CtZJypJO.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-fvO6Ovzx.mjs → types-4JKkSvds.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-C76zD5pa.mjs → userHelpers-Nc5ePCsf.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-BpkVZ8rB.mjs → utils-QWSIKqAk.mjs} +4 -4
- package/dist/{validate-CWp-lsrm.mjs → validate-CT4umNhp.mjs} +3 -3
- package/dist/{versioning-Bsb51gGT.d.mts → versioning-Bqm_57Qt.d.mts} +23 -1
- package/dist/{versioning-CHhL9P3o.mjs → versioning-JIqxO64K.mjs} +3 -3
- package/dist/{workScope-n9a7d_lZ.mjs → workScope-BDjGXwU9.mjs} +2 -2
- package/package.json +17 -16
- package/dist/sse-BzJFPX_1.mjs +0 -89
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as transactionContext } from "./transactionContext-
|
|
3
|
-
import { n as requestContext } from "./requestContext-
|
|
4
|
-
import { n as evictToSize, r as touch } from "./boundedMap-
|
|
5
|
-
import { i as resolveEventTransport } from "./EventTransport-
|
|
6
|
-
import { t as emitObserved } from "./eventPlugin-
|
|
7
|
-
import { n as canReportHealth, r as readOutboxHealth } from "./health-
|
|
8
|
-
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-
|
|
9
|
-
import { t as claimedAttempts } from "./claimed-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as transactionContext } from "./transactionContext-BWp0MBGL.mjs";
|
|
3
|
+
import { n as requestContext } from "./requestContext-B8JKbeb7.mjs";
|
|
4
|
+
import { n as evictToSize, r as touch } from "./boundedMap-DQfXgxMo.mjs";
|
|
5
|
+
import { i as resolveEventTransport } from "./EventTransport-Ci6hGO1Y.mjs";
|
|
6
|
+
import { t as emitObserved } from "./eventPlugin-Dghr7iL5.mjs";
|
|
7
|
+
import { n as canReportHealth, r as readOutboxHealth } from "./health-hRGgxnOC.mjs";
|
|
8
|
+
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-Bxk7TDgG.mjs";
|
|
9
|
+
import { t as claimedAttempts } from "./claimed-CnEEOHuL.mjs";
|
|
10
10
|
import { and, anyOf, eq, lte, ne, or } from "@classytic/repo-core/filter";
|
|
11
11
|
import { randomBytes } from "node:crypto";
|
|
12
12
|
import { InvalidOutboxEventError, OutboxConflictError, OutboxOwnershipError, outboxPayloadFingerprint } from "@classytic/primitives/outbox";
|
|
@@ -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.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "../filter-merge-BYKBa9b2.mjs";
|
|
3
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-Nc5ePCsf.mjs";
|
|
4
|
+
import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-Da--1DNS.mjs";
|
|
5
|
+
import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-BixzgirP.mjs";
|
|
6
|
+
import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-DWob9nQ8.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-IdHJ0_5V.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 { r as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
6
|
-
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-
|
|
7
|
-
import { i as normalizeToDecision } from "./authorizationDecision-
|
|
8
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
9
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-vxu0DXf_.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-BYKBa9b2.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-Nc5ePCsf.mjs";
|
|
6
|
+
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-4JKkSvds.mjs";
|
|
7
|
+
import { i as normalizeToDecision } from "./authorizationDecision-BixzgirP.mjs";
|
|
8
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-C7gAbIxC.mjs";
|
|
9
|
+
import { t as MemoryCacheStore } from "./memory-DJN6kyC8.mjs";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
//#region 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.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-C9G4A8cN.mjs";
|
|
3
3
|
//#region src/pipeline/pipe.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compose pipeline steps into an ordered array.
|
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.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-BPJPifhi.mjs";
|
|
3
3
|
//#region 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 { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-
|
|
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 { E as ArcQueryParser, v as getDefaultCrudSchemas } from "./utils-
|
|
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 { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-
|
|
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.45.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-B90SnSQn.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-vxu0DXf_.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-BYKBa9b2.mjs";
|
|
5
|
+
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-C9G4A8cN.mjs";
|
|
6
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-WdZw6GOt.mjs";
|
|
7
|
+
import { n as requireSingleHeaderValue } from "./headers-B6DRXXzT.mjs";
|
|
8
|
+
import { n as getUserRoles, t as getUserId } from "./userHelpers-Nc5ePCsf.mjs";
|
|
9
|
+
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-4JKkSvds.mjs";
|
|
10
|
+
import { r as resolveTenancy } from "./tenancy-D7jo78AP.mjs";
|
|
11
|
+
import { t as buildQueryKey } from "./keys-BoZKnBel.mjs";
|
|
12
|
+
import { t as transactionContext } from "./transactionContext-BWp0MBGL.mjs";
|
|
13
|
+
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-Da--1DNS.mjs";
|
|
14
|
+
import { E as ArcQueryParser, v as getDefaultCrudSchemas } from "./utils-QWSIKqAk.mjs";
|
|
15
|
+
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-rzBovk00.mjs";
|
|
16
|
+
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-BLg1buwL.mjs";
|
|
17
|
+
import { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-TAc_6LCw.mjs";
|
|
18
|
+
import { a as withoutTenantInjection } from "./tenantPreparation-DqJnokDW.mjs";
|
|
19
|
+
import { t as hasEvents } from "./typeGuards-CtZJypJO.mjs";
|
|
20
|
+
import { n as idempotencyConfigProblem } from "./requirement-tXpcD56f.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";
|
|
@@ -3084,7 +3084,7 @@ function buildResourcePlugin(resource) {
|
|
|
3084
3084
|
extensions: resource.extensions
|
|
3085
3085
|
});
|
|
3086
3086
|
if (resource.actions && Object.keys(resource.actions).length > 0) {
|
|
3087
|
-
const { createActionRouter } = await import("./createActionRouter-
|
|
3087
|
+
const { createActionRouter } = await import("./createActionRouter-BgPCYU2U.mjs").then((n) => n.n);
|
|
3088
3088
|
const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
|
|
3089
3089
|
const actionTarget = resolveActionTargetFence(resource, actionConfig);
|
|
3090
3090
|
createActionRouter(typedInstance, {
|
|
@@ -3104,7 +3104,7 @@ function buildResourcePlugin(resource) {
|
|
|
3104
3104
|
});
|
|
3105
3105
|
}
|
|
3106
3106
|
if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
|
|
3107
|
-
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-
|
|
3107
|
+
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-lNCkDwKe.mjs"), import("./validate-CT4umNhp.mjs").then((n) => n.r)]);
|
|
3108
3108
|
const repoForAgg = resource.controller?.repository ?? resource.repository;
|
|
3109
3109
|
if (!adapterSupportsAggregate(repoForAgg)) {
|
|
3110
3110
|
const undispatchable = Object.entries(resource.aggregations).filter(([, cfg]) => !cfg.materialized).map(([name]) => name);
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { Et as RouteDefinition, J as MiddlewareConfig, U as PresetHook, X as Rou
|
|
|
4
4
|
import { i as errorHandlerPlugin, n as ErrorMapper, r as defaultIsDuplicateKeyError, t as ErrorHandlerOptions } from "../errorHandler--4rSMMvq.mjs";
|
|
5
5
|
import { C as _default$8, E as _default$3, S as SchedulesPluginOptions, T as HealthOptions, b as ScheduleDefinition, w as HealthCheck, x as ScheduleStats } from "../types-BJ-2XqVF.mjs";
|
|
6
6
|
import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-DRlCIWE9.mjs";
|
|
7
|
-
import { _ 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-Bqm_57Qt.mjs";
|
|
8
8
|
import { t as TracingOptions } from "../tracing-Dro5eH6j.mjs";
|
|
9
9
|
import { PaginatedResult } from "@classytic/repo-core/pagination";
|
|
10
10
|
import { FastifyInstance, FastifyPluginAsync } from "fastify";
|
|
@@ -226,4 +226,4 @@ export declare function createRequestIdGenerator(opts?: Pick<RequestIdOptions, "
|
|
|
226
226
|
}) => string;
|
|
227
227
|
declare const _default$7: FastifyPluginAsync<RequestIdOptions>;
|
|
228
228
|
//#endregion
|
|
229
|
-
export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, 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 ScheduleDefinition, type ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, 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 };
|
|
229
|
+
export { type ArcCore, type ArcCorePluginOptions, type ArcPlugin, type CachingOptions, type CachingRule, type ChangeOperation, type CreatePluginDefinition, type ErrorHandlerOptions, type ErrorMapper, type GracefulShutdownOptions, type HealthCheck, type HealthOptions, 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 ScheduleStats, type SchedulesPluginOptions, type ShutdownState, type TracingOptions, type VersioningOptions, _default as arcCorePlugin, _default$1 as cachingPlugin, 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 };
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { m as MUTATION_OPERATIONS } from "../constants-
|
|
3
|
-
import { t as arcLog } from "../logger-
|
|
4
|
-
import { c as getOrgId } from "../types-
|
|
5
|
-
import { n as requestContext } from "../requestContext-
|
|
6
|
-
import { t as hasEvents } from "../typeGuards-
|
|
7
|
-
import { t as HookSystem } from "../HookSystem-
|
|
8
|
-
import { t as ResourceRegistry } from "../ResourceRegistry-
|
|
9
|
-
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-
|
|
10
|
-
import { t as caching_default } from "../caching-
|
|
11
|
-
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-
|
|
12
|
-
import { t as metrics_default } from "../metrics-
|
|
13
|
-
import { t as realtime_default } from "../realtime-
|
|
14
|
-
import { t as replyHelpersPlugin } from "../replyHelpers-
|
|
15
|
-
import { t as schedules_default } from "../schedules-
|
|
16
|
-
import { t as sse_default } from "../sse-
|
|
17
|
-
import { t as versioning_default } from "../versioning-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { m as MUTATION_OPERATIONS } from "../constants-B90SnSQn.mjs";
|
|
3
|
+
import { t as arcLog } from "../logger-vxu0DXf_.mjs";
|
|
4
|
+
import { c as getOrgId } from "../types-4JKkSvds.mjs";
|
|
5
|
+
import { n as requestContext } from "../requestContext-B8JKbeb7.mjs";
|
|
6
|
+
import { t as hasEvents } from "../typeGuards-CtZJypJO.mjs";
|
|
7
|
+
import { t as HookSystem } from "../HookSystem-CtnnYHME.mjs";
|
|
8
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-BNoHOx-D.mjs";
|
|
9
|
+
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-pLbfckGB.mjs";
|
|
10
|
+
import { t as caching_default } from "../caching-TQfW2QX7.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-DbHGwrQM.mjs";
|
|
12
|
+
import { t as metrics_default } from "../metrics-wfr7XFE7.mjs";
|
|
13
|
+
import { t as realtime_default } from "../realtime-MPj6eIoV.mjs";
|
|
14
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-BW_p67QD.mjs";
|
|
15
|
+
import { t as schedules_default } from "../schedules-Dr9gNFzx.mjs";
|
|
16
|
+
import { t as sse_default } from "../sse-D8AgoUN3.mjs";
|
|
17
|
+
import { t as versioning_default } from "../versioning-JIqxO64K.mjs";
|
|
18
18
|
import fp from "fastify-plugin";
|
|
19
19
|
import { performance as performance$1 } from "node:perf_hooks";
|
|
20
20
|
//#region src/core/arcCorePlugin.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
3
|
-
import { t as hasEvents } from "../typeGuards-
|
|
4
|
-
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-C7gAbIxC.mjs";
|
|
3
|
+
import { t as hasEvents } from "../typeGuards-CtZJypJO.mjs";
|
|
4
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-DQfXgxMo.mjs";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
//#region src/plugins/response-cache.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region 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.45.0";
|
|
63
63
|
const exporter = new OTLPTraceExporter({ url: exporterUrl });
|
|
64
64
|
const provider = new NodeTracerProvider({ resource: { attributes: {
|
|
65
65
|
"service.name": serviceName,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { i as NotFoundError, u as ValidationError } from "../errors-
|
|
3
|
-
import { c as getOrgId, g as getUserId } from "../types-
|
|
4
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
5
|
-
import { t as multipartBody } from "../multipartBody-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-C9G4A8cN.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId } from "../types-4JKkSvds.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-IdHJ0_5V.mjs";
|
|
5
|
+
import { t as multipartBody } from "../multipartBody-NHGOuUnG.mjs";
|
|
6
6
|
//#region src/presets/filesUpload.ts
|
|
7
7
|
const DEFAULT_FIELD_NAME = "file";
|
|
8
8
|
const DEFAULT_MAX_FILE_SIZE = 10485760;
|
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.45.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-BPjNc-Np.mjs";
|
|
3
3
|
import { filesUploadPreset } from "./filesUpload.mjs";
|
|
4
4
|
import { multiTenantPreset } from "./multiTenant.mjs";
|
|
5
5
|
import { searchPreset } from "./search.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { t as ArcError } from "../errors-
|
|
4
|
-
import { u as getRequestScope } from "../types-
|
|
5
|
-
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-B90SnSQn.mjs";
|
|
3
|
+
import { t as ArcError } from "../errors-C9G4A8cN.mjs";
|
|
4
|
+
import { u as getRequestScope } from "../types-4JKkSvds.mjs";
|
|
5
|
+
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-DqJnokDW.mjs";
|
|
6
6
|
//#region src/presets/multiTenant.ts
|
|
7
7
|
function createTenantMiddleware(specs, mode) {
|
|
8
8
|
const preparation = {
|
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.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-IdHJ0_5V.mjs";
|
|
3
3
|
//#region src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { l as UnauthorizedError } from "./errors-
|
|
3
|
-
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-
|
|
4
|
-
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError } from "./errors-C9G4A8cN.mjs";
|
|
3
|
+
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-4JKkSvds.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-IdHJ0_5V.mjs";
|
|
5
5
|
import { multiTenantPreset } from "./presets/multiTenant.mjs";
|
|
6
6
|
//#region src/presets/audited.ts
|
|
7
7
|
/**
|
|
@@ -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.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-4JKkSvds.mjs";
|
|
3
3
|
//#region src/scope/projection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute the request-scope projection. Returns `undefined` when no
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { i as versionKey, r as tagVersionKey } from "./keys-
|
|
4
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
5
|
-
import { t as hasEvents } from "./typeGuards-
|
|
6
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
|
|
3
|
+
import { i as versionKey, r as tagVersionKey } from "./keys-BoZKnBel.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-C7gAbIxC.mjs";
|
|
5
|
+
import { t as hasEvents } from "./typeGuards-CtZJypJO.mjs";
|
|
6
|
+
import { t as MemoryCacheStore } from "./memory-DJN6kyC8.mjs";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
//#region src/cache/QueryCache.ts
|
|
9
9
|
const MISS = Object.freeze({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
6
|
-
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-
|
|
7
|
-
import { t as applyFieldReadPermissions } from "./fields-
|
|
8
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
9
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
10
|
-
import { t as openSseStream } from "./sseStream-
|
|
11
|
-
import { n as arcRouteValidatorCompiler } from "./routeValidator-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-vxu0DXf_.mjs";
|
|
4
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-WdZw6GOt.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-Nc5ePCsf.mjs";
|
|
6
|
+
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-D7jo78AP.mjs";
|
|
7
|
+
import { t as applyFieldReadPermissions } from "./fields-Da--1DNS.mjs";
|
|
8
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-BLg1buwL.mjs";
|
|
9
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-BixzgirP.mjs";
|
|
10
|
+
import { t as openSseStream } from "./sseStream-B7rPhIQw.mjs";
|
|
11
|
+
import { n as arcRouteValidatorCompiler } from "./routeValidator-CnmenC4Y.mjs";
|
|
12
12
|
import fp from "fastify-plugin";
|
|
13
13
|
//#region src/plugins/realtime.ts
|
|
14
14
|
var realtime_exports = /* @__PURE__ */ __exportAll({
|
package/dist/registry/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-
|
|
3
|
-
import { t as ResourceRegistry } from "../ResourceRegistry-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-DIdh6mWE.mjs";
|
|
3
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-BNoHOx-D.mjs";
|
|
4
4
|
export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "./constants-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "./constants-B90SnSQn.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/registry/assertNoTenantData.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
|
|
3
3
|
import { toCanonicalList } from "@classytic/repo-core/pagination";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
//#region src/plugins/replyHelpers.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
2
|
//#region src/idempotency/requirement.ts
|
|
3
3
|
/** What is wrong with a route's idempotency declaration, or `undefined` when it is sound. */
|
|
4
4
|
function idempotencyConfigProblem(config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as createTenantKeyGenerator } from "./rateLimitKey-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as createTenantKeyGenerator } from "./rateLimitKey-C4mkCwQ-.mjs";
|
|
3
3
|
//#region src/permissions/resourceRateLimit.ts
|
|
4
4
|
function decision(allowed, max, remaining, ttlSeconds) {
|
|
5
5
|
const reset = Math.max(1, ttlSeconds);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-
|
|
4
|
-
import { t as runWorkScope } from "./workScope-
|
|
5
|
-
import { t as startRenewingLease } from "./renewingLease-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as __exportAll } from "./rolldown-runtime-AD16t29l.mjs";
|
|
3
|
+
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BW8qwgpx.mjs";
|
|
4
|
+
import { t as runWorkScope } from "./workScope-BDjGXwU9.mjs";
|
|
5
|
+
import { t as startRenewingLease } from "./renewingLease-boGRXWCr.mjs";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
//#region src/plugins/schedules.ts
|
|
8
8
|
var schedules_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-vxu0DXf_.mjs";
|
|
3
3
|
//#region src/utils/schemaConverter.ts
|
|
4
4
|
/**
|
|
5
5
|
* Schema Converter — Detect-First, Convert-Only-When-Needed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { o as toJsonSchema } from "./schemaConverter-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { o as toJsonSchema } from "./schemaConverter-rzBovk00.mjs";
|
|
3
3
|
//#region src/core/schemaIR.ts
|
|
4
4
|
/**
|
|
5
5
|
* Schema IR — one canonical representation, two adapters.
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
2
|
import { errorContractSchema, errorDetailSchema } from "@classytic/repo-core/errors";
|
|
3
3
|
import { Type, Type as Type$1 } from "typebox";
|
|
4
4
|
//#region src/schemas/index.ts
|
package/dist/scim/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as parseJsonBody } from "../jsonBody-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as parseJsonBody } from "../jsonBody-CzKHE-Fg.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/scim/errors.ts
|
|
5
5
|
var ScimError = class extends Error {
|
package/dist/scope/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-
|
|
3
|
-
import { t as createTenantKeyGenerator } from "../rateLimitKey-
|
|
4
|
-
import { t as elevation_default } from "../elevation-
|
|
5
|
-
import { t as resolveOrgFromHeader } from "../scope-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-4JKkSvds.mjs";
|
|
3
|
+
import { t as createTenantKeyGenerator } from "../rateLimitKey-C4mkCwQ-.mjs";
|
|
4
|
+
import { t as elevation_default } from "../elevation-BAfsnnO0.mjs";
|
|
5
|
+
import { t as resolveOrgFromHeader } from "../scope-DpOpxyHT.mjs";
|
|
6
6
|
export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, createTenantKeyGenerator, elevation_default as elevationPlugin, getAncestorOrgIds, getClientId, getDPoPJkt, getMandate, getOrgContext, getOrgId, getOrgRoles, getRequestScope, getScopeContext, getScopeContextMap, getServiceScopes, getTeamId, getTenantFromRequest, getUserId, getUserRoles, hasOrgAccess, isAuthenticated, isElevated, isMember, isOrgInScope, isService, requireClientId, requireOrgId, requireTeamId, requireUserId, resolveOrgFromHeader, scopeFirstCtx };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-
|
|
3
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
4
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-C9G4A8cN.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-B6DRXXzT.mjs";
|
|
4
|
+
import { n as getUserRoles } from "./userHelpers-Nc5ePCsf.mjs";
|
|
5
5
|
//#region src/scope/resolveOrgFromHeader.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a preHandler hook that resolves org scope from a header.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.45.0 | MIT | https://classytic.com */
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
3
|
//#region src/utils/shutdown.ts
|
|
4
4
|
/** Stop admissions across every runtime before draining work and disposing domain engines. */
|