@classytic/arc 2.49.0 → 2.50.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-DbHZK230.mjs → EventTransport-B18mcj_M.mjs} +2 -2
- package/dist/{HookSystem-DMoeJ6Do.mjs → HookSystem-FUBaLTRm.mjs} +2 -2
- package/dist/{ResourceRegistry-CP-iTcKy.mjs → ResourceRegistry-C5NM07fZ.mjs} +2 -2
- package/dist/{acquire-CB0va87C.mjs → acquire-MHCnbDtH.mjs} +1 -1
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.mjs +7 -7
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/{authorizationDecision-DHO94aV2.mjs → authorizationDecision-BD8K4jdQ.mjs} +4 -4
- package/dist/{boundedMap-C51EUUOm.mjs → boundedMap-CuCwos_X.mjs} +1 -1
- package/dist/{buildHandler-9DuwEKvr.mjs → buildHandler-BttjNkTM.mjs} +5 -5
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-COTX3sDa.mjs → caching-CxUQLHfR.mjs} +2 -2
- package/dist/{claimed-C7T1nHlo.mjs → claimed-CQ4ZpD8K.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-DOnfMd7i.mjs → constants-BZFsZwJh.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.mjs +7 -7
- package/dist/{core-BoEdFDDw.mjs → core-DWA1-5IE.mjs} +3 -3
- package/dist/{createActionRouter-CpTn15dm.mjs → createActionRouter-fP3l2xVF.mjs} +5 -5
- package/dist/{createAggregationRouter-CD_Hydp0.mjs → createAggregationRouter-BJZeOmBa.mjs} +7 -7
- package/dist/{createApp-Be6XTGD9.mjs → createApp-Db9JRumw.mjs} +29 -29
- package/dist/{defineAggregation-BI5pRb8c.mjs → defineAggregation-BskqRz8M.mjs} +1 -1
- package/dist/{defineResource-BAzNu5Um.mjs → defineResource-B2vTvKzW.mjs} +8 -8
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-DupGuM41.mjs → elevation-XoY0C73T.mjs} +5 -5
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-DA03vRqp.mjs → errorHandler-BYI-JQMm.mjs} +3 -3
- package/dist/{errors-BpYV859Y.mjs → errors-3xaK0i9n.mjs} +1 -1
- package/dist/{eventPlugin-D7LYtYzL.mjs → eventPlugin-CVQ9ddnL.mjs} +8 -8
- package/dist/{eventTypes-BqA-N-Uz.mjs → eventTypes-UPYg7gW1.mjs} +2 -2
- package/dist/events/index.mjs +8 -8
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.mjs +2 -2
- package/dist/factory/index.mjs +6 -6
- package/dist/{fieldTypes-EFWxCkZ5.mjs → fieldTypes-CxRvCaaZ.mjs} +2 -2
- package/dist/{fields-CT1Erg7o.mjs → fields-DLFcJiDe.mjs} +1 -1
- package/dist/{filter-merge-B1eJ1pMx.mjs → filter-merge-Bvjk_8dV.mjs} +1 -1
- package/dist/{generate-Cr0ULavs.mjs → generate-0OpCUjUv.mjs} +2 -2
- package/dist/{headers-D4bncIOf.mjs → headers-BROW65-r.mjs} +2 -2
- package/dist/{health-BoFxrkJE.mjs → health-Cfh-kYI_.mjs} +1 -1
- package/dist/{health-DN_pUVMX.mjs → health-Cy6aOg1i.mjs} +1 -1
- package/dist/hooks/index.mjs +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.mjs +7 -7
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/index.mjs +11 -11
- package/dist/{init-C4a24wD2.mjs → init-D7PQcvvL.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 +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-DoTt5BS6.mjs → jsonBody-C0oREwUc.mjs} +2 -2
- package/dist/{keys--l9n7aOC.mjs → keys-CGlPoVSn.mjs} +1 -1
- package/dist/{loadResources-rygByIQA.mjs → loadResources-Oi47dogA.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-ItNBIQ5w.mjs → loadResourcesFromEntry-BW-LexBz.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-UbknHqHy.mjs → logger-BagW7_YA.mjs} +1 -1
- package/dist/{mcpPlugin-CTkk4RP8.mjs → mcpPlugin-C6-wFsOX.mjs} +21 -21
- package/dist/{memory-C47xVsjX.mjs → memory-Bl7kv6TS.mjs} +3 -3
- package/dist/{metrics-TJyAb1Xk.mjs → metrics-CqnMJKrJ.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-CWiqsXnh.mjs → module-lbEbHUfI.mjs} +1 -1
- package/dist/{multipartBody-BdG1qbn1.mjs → multipartBody-CqNezaB3.mjs} +1 -1
- package/dist/{observeSend-DrA3ADFN.mjs → observeSend-BjilzlYl.mjs} +1 -1
- package/dist/{openapi-D6MAbYpv.mjs → openapi-DXNbadgd.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-D5QABFQW.mjs → outbox-module-k5rIszQ4.mjs} +7 -7
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-CFsmdYUt.mjs → permissions-BJylQopQ.mjs} +9 -9
- package/dist/{pipe-B_05AgGt.mjs → pipe-D1cq8hET.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-BnlNJhrj.mjs → plan-iEgaS5_H.mjs} +1 -1
- package/dist/{plugin-CrMPYbdj.mjs → plugin-DsLr6L4O.mjs} +24 -24
- package/dist/plugins/index.mjs +18 -18
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-oVIxJ4CY.mjs → pluralize-CX4ZvwCa.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-CUd3L7v6.mjs → presets-D_suT4OY.mjs} +4 -4
- package/dist/{projection-DowJlIto.mjs → projection-CmjGjFih.mjs} +2 -2
- package/dist/{purger.types-BjKy8869.mjs → purger.types-CZwkTZ7B.mjs} +1 -1
- package/dist/{queryCachePlugin-BvB3k_Fh.mjs → queryCachePlugin-BDOPEAmH.mjs} +6 -6
- package/dist/{rateLimitKey-56nH1cWN.mjs → rateLimitKey-igF1x64n.mjs} +1 -1
- package/dist/{realtime-DXGBPtYK.mjs → realtime-Cq_ugiWw.mjs} +67 -11
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-Biz-6sEZ.mjs → registry-DmF9Akvn.mjs} +2 -2
- package/dist/{relay-DEIoMntZ.mjs → relay-DA89IhFt.mjs} +5 -5
- package/dist/{renewingLease-BCJpW9-u.mjs → renewingLease-DBtGUt8T.mjs} +1 -1
- package/dist/{replyHelpers-DliJNb0-.mjs → replyHelpers-CUbeUc5q.mjs} +2 -2
- package/dist/{requestContext-tUgLt9Ky.mjs → requestContext-DO9Qv0gw.mjs} +1 -1
- package/dist/{requirement-0l2DApiQ.mjs → requirement-C3GaQmkR.mjs} +1 -1
- package/dist/{resourceRateLimit-iSXF8rLH.mjs → resourceRateLimit-KKn-sFhb.mjs} +2 -2
- package/dist/{rolldown-runtime-gKJR3o-6.mjs → rolldown-runtime-Ck1Tj4Ax.mjs} +1 -1
- package/dist/{routeValidator-xNYA4rr1.mjs → routeValidator-BF7n34xV.mjs} +1 -1
- package/dist/{runtimeCapabilities-BQK-GrYe.mjs → runtimeCapabilities-D0A4kkrC.mjs} +1 -1
- package/dist/{schedules-D9iMVFhF.mjs → schedules-CLrQRSTt.mjs} +5 -5
- package/dist/{schemaConverter-cIh4oX9a.mjs → schemaConverter-JEmU21fu.mjs} +2 -2
- package/dist/{schemaIR-BsY4y9VP.mjs → schemaIR-wOffQlbq.mjs} +14 -14
- package/dist/schemas/index.mjs +1 -1
- package/dist/scim/index.mjs +2 -2
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-QyhM9w8z.mjs → scope-CcTMRd7s.mjs} +4 -4
- package/dist/{shutdown-BM7Q0h4B.mjs → shutdown-BIR-QBYM.mjs} +1 -1
- package/dist/{streamFrames-B3ZJfI02.mjs → simpleEqualityMatcher-DqqJqovq.mjs} +2 -19
- package/dist/{sse-ofvlcTQQ.mjs → sse-OEuPpgss.mjs} +7 -7
- package/dist/{sseStream-BxQW7hPq.mjs → sseStream-DknHE2K5.mjs} +2 -2
- package/dist/{store-helpers-_FRhHDyv.mjs → store-helpers-D4vtEXt2.mjs} +1 -1
- package/dist/{streaming-HZr63UiM.mjs → streaming-CcIpcx02.mjs} +1 -1
- package/dist/{subscriberIdentity-DSgnoT_D.mjs → subscriberIdentity-PO6kimAl.mjs} +1 -1
- package/dist/{tenancy-_ukT0oBt.mjs → tenancy-CH2Kuksc.mjs} +2 -2
- package/dist/{tenantPreparation-DSlQI53c.mjs → tenantPreparation-BTGpblQW.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.mjs +11 -11
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-Z8p-Zlw1.mjs → timing-Dii5X7AP.mjs} +1 -1
- package/dist/{transactionContext-DBbSTfY3.mjs → transactionContext-DMPhYEOt.mjs} +1 -1
- package/dist/{typeGuards-_6nNQqgq.mjs → typeGuards-C1o_XEyp.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-CrOlZ4rY.mjs → types-BuV_cFqT.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-CBKx3XJN.mjs → userHelpers-D4m_pLSC.mjs} +1 -1
- package/dist/utils/index.d.mts +2 -48
- package/dist/utils/index.mjs +13 -13
- package/dist/{utils--HE8R8sH.mjs → utils-CxLMXGn5.mjs} +7 -7
- package/dist/{validate-BUeE2MLR.mjs → validate-CZ975J8N.mjs} +3 -3
- package/dist/{versioning-qYgqwOhL.mjs → versioning-B2_8SBZo.mjs} +3 -3
- package/dist/{workScope-C-1QHNmV.mjs → workScope-B3W3r35s.mjs} +2 -2
- package/package.json +3 -3
- package/skills/arc/references/api-reference.md +1 -1
- package/skills/arc/references/production-realtime.md +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as workSeedFromEvent, t as runWorkScope } from "./workScope-B3W3r35s.mjs";
|
|
3
3
|
import { createEvent as createEvent$1, createEventRouter } from "@classytic/primitives/events";
|
|
4
4
|
// src/events/EventTransport.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as buildRequestScopeProjection } from "./projection-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as buildRequestScopeProjection } from "./projection-CmjGjFih.mjs";
|
|
3
3
|
// src/hooks/HookSystem.ts
|
|
4
4
|
/**
|
|
5
5
|
* Hook System
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
2
|
// src/idempotency/acquire.ts
|
|
3
3
|
async function acquireIdempotencyKey(store, key, requestId, lockTtlMs) {
|
|
4
4
|
if (typeof store.acquire === "function") return store.acquire(key, requestId, lockTtlMs);
|
package/dist/audit/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as transactionContext } from "../transactionContext-
|
|
3
|
-
import { g as getUserId, i as getClientId } from "../types-
|
|
4
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as transactionContext } from "../transactionContext-DMPhYEOt.mjs";
|
|
3
|
+
import { g as getUserId, i as getClientId } from "../types-BuV_cFqT.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.mjs";
|
|
5
5
|
import { and, anyOf, eq, gte, lt, lte } from "@classytic/repo-core/filter";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
// src/audit/repository-audit-adapter.ts
|
package/dist/auth/audit.mjs
CHANGED
package/dist/auth/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-
|
|
3
|
-
import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-
|
|
4
|
-
import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-
|
|
5
|
-
import { n as requireSingleHeaderValue } from "../headers-
|
|
6
|
-
import { o as toJsonSchema } from "../schemaConverter-
|
|
7
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-D4m_pLSC.mjs";
|
|
3
|
+
import { d as createDomainError, l as UnauthorizedError, p as isArcError, t as ArcError } from "../errors-3xaK0i9n.mjs";
|
|
4
|
+
import { E as requireOrgRole, T as requireOrgMembership, k as requireTeamMembership } from "../permissions-BJylQopQ.mjs";
|
|
5
|
+
import { n as requireSingleHeaderValue } from "../headers-BROW65-r.mjs";
|
|
6
|
+
import { o as toJsonSchema } from "../schemaConverter-JEmU21fu.mjs";
|
|
7
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-D0A4kkrC.mjs";
|
|
8
8
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
9
9
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
10
10
|
import { createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
3
|
-
import { t as ArcError } from "./errors-
|
|
4
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-BagW7_YA.mjs";
|
|
3
|
+
import { t as ArcError } from "./errors-3xaK0i9n.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
|
|
5
5
|
// src/permissions/authorizationDecision.ts
|
|
6
6
|
const log = arcLog("permissions:enforce");
|
|
7
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
3
|
-
import { D as toRepositoryFilter } from "./plugin-
|
|
4
|
-
import { i as guessDate, t as coerceByType } from "./fieldTypes-
|
|
5
|
-
import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-Bvjk_8dV.mjs";
|
|
3
|
+
import { D as toRepositoryFilter } from "./plugin-DsLr6L4O.mjs";
|
|
4
|
+
import { i as guessDate, t as coerceByType } from "./fieldTypes-CxRvCaaZ.mjs";
|
|
5
|
+
import { i as compileAggRequest, t as adapterSupportsAggregate } from "./validate-CZ975J8N.mjs";
|
|
6
6
|
// src/core/aggregation/buildHandler.ts
|
|
7
7
|
/**
|
|
8
8
|
* Framework-agnostic aggregation execution. Runs safety guards,
|
package/dist/cache/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys
|
|
3
|
-
import { t as MemoryCacheStore } from "../memory-
|
|
4
|
-
import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { i as versionKey, n as hashParams, r as tagVersionKey, t as buildQueryKey } from "../keys-CGlPoVSn.mjs";
|
|
3
|
+
import { t as MemoryCacheStore } from "../memory-Bl7kv6TS.mjs";
|
|
4
|
+
import { r as QueryCache, t as queryCachePlugin } from "../queryCachePlugin-BDOPEAmH.mjs";
|
|
5
5
|
// src/cache/redis.ts
|
|
6
6
|
/**
|
|
7
7
|
* Redis-backed cache store.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
// src/plugins/caching.ts
|
|
5
5
|
var caching_exports = /* @__PURE__ */ __exportAll({ default: () => caching_default });
|
package/dist/cleanup/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as defineResource } from "../defineResource-
|
|
3
|
-
import { t as defineModule } from "../module-
|
|
4
|
-
import { g as getUserId } from "../types-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as defineResource } from "../defineResource-B2vTvKzW.mjs";
|
|
3
|
+
import { t as defineModule } from "../module-lbEbHUfI.mjs";
|
|
4
|
+
import { g as getUserId } from "../types-BuV_cFqT.mjs";
|
|
5
5
|
import { createPurgeEvidence } from "@classytic/primitives/retention";
|
|
6
6
|
import { canonicalJson, sha256Hex } from "@classytic/primitives/canonical";
|
|
7
7
|
// src/cleanup/errors.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "../../constants-
|
|
3
|
-
import { n as stringifyMeasureMap } from "../../ResourceRegistry-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "../../constants-BZFsZwJh.mjs";
|
|
3
|
+
import { n as stringifyMeasureMap } from "../../ResourceRegistry-C5NM07fZ.mjs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
// src/cli/commands/describe.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as buildOpenApiSpec } from "../../openapi-
|
|
3
|
-
import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as buildOpenApiSpec } from "../../openapi-DXNbadgd.mjs";
|
|
3
|
+
import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-BW-LexBz.mjs";
|
|
4
4
|
import { dirname, resolve } from "node:path";
|
|
5
5
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
6
6
|
// src/cli/commands/docs.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
export { t as generate } from "../../generate-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
export { t as generate } from "../../generate-0OpCUjUv.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
export { t as init } from "../../init-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
export { t as init } from "../../init-D7PQcvvL.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as loadResourcesFromEntry } from "../../loadResourcesFromEntry-BW-LexBz.mjs";
|
|
3
3
|
// src/cli/commands/introspect.ts
|
|
4
4
|
function describePermission(value) {
|
|
5
5
|
if (!value) return "none";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
2
|
import { describe } from "./commands/describe.mjs";
|
|
3
3
|
import { exportDocs } from "./commands/docs.mjs";
|
|
4
4
|
import { doctor } from "./commands/doctor.mjs";
|
|
5
|
-
import { t as generate } from "../generate-
|
|
6
|
-
import { t as init } from "../init-
|
|
5
|
+
import { t as generate } from "../generate-0OpCUjUv.mjs";
|
|
6
|
+
import { t as init } from "../init-D7PQcvvL.mjs";
|
|
7
7
|
import { introspect } from "./commands/introspect.mjs";
|
|
8
8
|
export { describe, doctor, exportDocs, generate, init, introspect };
|
package/dist/context/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as requestContext, t as getTraceHeaders } from "../requestContext-
|
|
3
|
-
import { n as evictToSize, r as touch } from "../boundedMap-
|
|
4
|
-
import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-
|
|
5
|
-
import { t as transactionContext } from "../transactionContext-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as requestContext, t as getTraceHeaders } from "../requestContext-DO9Qv0gw.mjs";
|
|
3
|
+
import { n as evictToSize, r as touch } from "../boundedMap-CuCwos_X.mjs";
|
|
4
|
+
import { n as scopedValue, r as workSeedFromEvent, t as runWorkScope } from "../workScope-B3W3r35s.mjs";
|
|
5
|
+
import { t as transactionContext } from "../transactionContext-DMPhYEOt.mjs";
|
|
6
6
|
// src/context/requestScopedCache.ts
|
|
7
7
|
/** The memo slot the per-scope store hangs off. */
|
|
8
8
|
const SLOT = Symbol.for("arc.requestScopedCache");
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "../constants-
|
|
3
|
-
import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-
|
|
4
|
-
import { t as defineAggregation } from "../defineAggregation-
|
|
5
|
-
import { C as createFastifyHandler, D as sendControllerResponse, E as getControllerScope, T as getControllerContext, w as createRequestContext } from "../schemaIR-
|
|
6
|
-
import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-
|
|
7
|
-
import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as DEFAULT_SORT, c as DEFAULT_VERSION_FIELD, d as MAX_FILTER_DEPTH, f as MAX_REGEX_LENGTH, g as SYSTEM_FIELDS, h as RESERVED_QUERY_PARAMS, i as DEFAULT_MAX_LIMIT, l as HOOK_OPERATIONS, m as MUTATION_OPERATIONS, n as DEFAULT_ID_FIELD, o as DEFAULT_TENANT_FIELD, p as MAX_SEARCH_LENGTH, r as DEFAULT_LIMIT, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS, u as HOOK_PHASES } from "../constants-BZFsZwJh.mjs";
|
|
3
|
+
import { E as nativePolicyFilter, T as AccessControl, _ as BaseCrudController, a as crudInput, b as isFieldReadable, c as routeInput, d as createPermissionMiddleware, f as BaseController, g as BulkMixin, h as SlugMixin, m as SoftDeleteMixin, o as noPayloadSchema, p as TreeMixin, s as parsed, u as createCrudRouter, v as QueryResolver, w as BodySanitizer, y as collectReadBlockedFields } from "../plugin-DsLr6L4O.mjs";
|
|
4
|
+
import { t as defineAggregation } from "../defineAggregation-BskqRz8M.mjs";
|
|
5
|
+
import { C as createFastifyHandler, D as sendControllerResponse, E as getControllerScope, T as getControllerContext, w as createRequestContext } from "../schemaIR-wOffQlbq.mjs";
|
|
6
|
+
import { a as defineResourceVariants, i as getEntityQuery, n as getEntityId, o as mergeResourceConfig, r as getEntityIdField, s as defineAction, t as getActionTarget } from "../core-DWA1-5IE.mjs";
|
|
7
|
+
import { a as ResourceDefinition, i as validateResourceConfig, n as assertValidConfig, r as formatValidationErrors, t as defineResource } from "../defineResource-B2vTvKzW.mjs";
|
|
8
8
|
export { AccessControl, BaseController, BaseCrudController, BodySanitizer, BulkMixin, CRUD_OPERATIONS, DEFAULT_ID_FIELD, DEFAULT_LIMIT, DEFAULT_MAX_LIMIT, DEFAULT_SORT, DEFAULT_TENANT_FIELD, DEFAULT_UPDATE_METHOD, DEFAULT_VERSION_FIELD, HOOK_OPERATIONS, HOOK_PHASES, MAX_FILTER_DEPTH, MAX_REGEX_LENGTH, MAX_SEARCH_LENGTH, MUTATION_OPERATIONS, QueryResolver, RESERVED_QUERY_PARAMS, ResourceDefinition, SYSTEM_FIELDS, SlugMixin, SoftDeleteMixin, TreeMixin, assertValidConfig, collectReadBlockedFields, createCrudRouter, createFastifyHandler, createPermissionMiddleware, createRequestContext, crudInput, defineAction, defineAggregation, defineResource, defineResourceVariants, formatValidationErrors, getActionTarget, getControllerContext, getControllerScope, getEntityId, getEntityIdField, getEntityQuery, isFieldReadable, mergeResourceConfig, nativePolicyFilter, noPayloadSchema, parsed, routeInput, sendControllerResponse, validateResourceConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import "./constants-
|
|
3
|
-
import { t as defineResource } from "./defineResource-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import "./constants-BZFsZwJh.mjs";
|
|
3
|
+
import { t as defineResource } from "./defineResource-B2vTvKzW.mjs";
|
|
4
4
|
// src/core/defineAction.ts
|
|
5
5
|
/**
|
|
6
6
|
* Build an `ActionDefinition` with a typed handler. The literal schema
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import "./constants-
|
|
4
|
-
import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-
|
|
5
|
-
import { D as sendControllerResponse, b as buildAuthMiddlewareForPermissions, c as buildRouteConfig, d as buildActionPipelineHandler, g as buildRouteHooks, l as resolveRouterPluginMw, m as buildActionPermissionMw, o as tryRegisterRoute, p as resolvePipelineSteps, r as schemaIRToJsonSchemaBranch, s as buildRateLimitConfig, t as actionSchemaIR, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator } from "./schemaIR-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
|
+
import "./constants-BZFsZwJh.mjs";
|
|
4
|
+
import { f as createError, i as NotFoundError, u as ValidationError } from "./errors-3xaK0i9n.mjs";
|
|
5
|
+
import { D as sendControllerResponse, b as buildAuthMiddlewareForPermissions, c as buildRouteConfig, d as buildActionPipelineHandler, g as buildRouteHooks, l as resolveRouterPluginMw, m as buildActionPermissionMw, o as tryRegisterRoute, p as resolvePipelineSteps, r as schemaIRToJsonSchemaBranch, s as buildRateLimitConfig, t as actionSchemaIR, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator } from "./schemaIR-wOffQlbq.mjs";
|
|
6
6
|
// src/core/createActionRouter.ts
|
|
7
7
|
var createActionRouter_exports = /* @__PURE__ */ __exportAll({ createActionRouter: () => createActionRouter });
|
|
8
8
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
3
|
-
import { u as getRequestScope } from "./types-
|
|
4
|
-
import { f as createError } from "./errors-
|
|
5
|
-
import { g as buildRouteHooks, l as resolveRouterPluginMw, o as tryRegisterRoute, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-
|
|
6
|
-
import { t as buildAggregationHandler } from "./buildHandler-
|
|
7
|
-
import { n as validateAggregations } from "./validate-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-BD8K4jdQ.mjs";
|
|
3
|
+
import { u as getRequestScope } from "./types-BuV_cFqT.mjs";
|
|
4
|
+
import { f as createError } from "./errors-3xaK0i9n.mjs";
|
|
5
|
+
import { g as buildRouteHooks, l as resolveRouterPluginMw, o as tryRegisterRoute, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-wOffQlbq.mjs";
|
|
6
|
+
import { t as buildAggregationHandler } from "./buildHandler-BttjNkTM.mjs";
|
|
7
|
+
import { n as validateAggregations } from "./validate-CZ975J8N.mjs";
|
|
8
8
|
// src/core/aggregation/createAggregationRouter.ts
|
|
9
9
|
/**
|
|
10
10
|
* Register one Fastify route per aggregation. No-op when the map is
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-
|
|
4
|
-
import { n as PUBLIC_SCOPE } from "./types-
|
|
5
|
-
import { t as runObservingSend } from "./observeSend-
|
|
6
|
-
import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-
|
|
7
|
-
import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-
|
|
8
|
-
import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-
|
|
9
|
-
import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-
|
|
10
|
-
import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-
|
|
11
|
-
import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-
|
|
12
|
-
import { t as parseJsonBody } from "./jsonBody-
|
|
13
|
-
import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-
|
|
14
|
-
import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-
|
|
15
|
-
import { r as withSubscriberId } from "./subscriberIdentity-
|
|
16
|
-
import { r as getOptionalModuleExports } from "./module-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
|
+
import { a as enterArcLoggerScope, i as runWithArcLogger, n as configureArcLogger, r as createPinoWriter, t as arcLog } from "./logger-BagW7_YA.mjs";
|
|
4
|
+
import { n as PUBLIC_SCOPE } from "./types-BuV_cFqT.mjs";
|
|
5
|
+
import { t as runObservingSend } from "./observeSend-BjilzlYl.mjs";
|
|
6
|
+
import { r as initRuntimeCapabilityRegistry, t as auditRuntimeCapabilities } from "./runtimeCapabilities-D0A4kkrC.mjs";
|
|
7
|
+
import { a as runShutdown, t as initShutdownRegistry } from "./shutdown-BIR-QBYM.mjs";
|
|
8
|
+
import { n as isScopeAwareKeyGenerator, t as createTenantKeyGenerator } from "./rateLimitKey-igF1x64n.mjs";
|
|
9
|
+
import { i as resolveResourceRateLimiter, n as markRateLimitingDisabled } from "./resourceRateLimit-KKn-sFhb.mjs";
|
|
10
|
+
import { i as markArcRootValidator, r as arcValidatorBuilder, t as arcAjvCustomOptions } from "./routeValidator-BF7n34xV.mjs";
|
|
11
|
+
import { c as createRequestIdGenerator, r as mergeHealthChecks } from "./health-Cfh-kYI_.mjs";
|
|
12
|
+
import { t as parseJsonBody } from "./jsonBody-C0oREwUc.mjs";
|
|
13
|
+
import { a as portsForModule, b as verifyEventDurability, f as resolveModuleArm, g as crudEventsOf, h as buildModuleGraph, m as analyzeModuleGraph, n as composeModules, x as verifyModuleGraph } from "./plan-iEgaS5_H.mjs";
|
|
14
|
+
import { c as wrapWithAttribution, f as defineEvent, l as wrapWithBoundary, r as CRUD_EVENT_SCHEMA } from "./eventTypes-UPYg7gW1.mjs";
|
|
15
|
+
import { r as withSubscriberId } from "./subscriberIdentity-PO6kimAl.mjs";
|
|
16
|
+
import { r as getOptionalModuleExports } from "./module-lbEbHUfI.mjs";
|
|
17
17
|
import { isProductionEnv, readEnv } from "@classytic/primitives/environment";
|
|
18
18
|
import Fastify from "fastify";
|
|
19
19
|
import qs from "qs";
|
|
@@ -766,7 +766,7 @@ async function registerArcCore(fastify, config, trackPlugin) {
|
|
|
766
766
|
await fastify.register(arcCorePlugin, { emitEvents: config.arcPlugins?.emitEvents !== false });
|
|
767
767
|
trackPlugin("arc-core");
|
|
768
768
|
if (config.arcPlugins?.events !== false) {
|
|
769
|
-
const { default: eventPlugin } = await import("./eventPlugin-
|
|
769
|
+
const { default: eventPlugin } = await import("./eventPlugin-CVQ9ddnL.mjs").then((n) => n.r);
|
|
770
770
|
const eventOpts = typeof config.arcPlugins?.events === "object" ? config.arcPlugins.events : {};
|
|
771
771
|
await fastify.register(eventPlugin, {
|
|
772
772
|
/**
|
|
@@ -821,15 +821,15 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
821
821
|
trackPlugin("arc-graceful-shutdown", shutdownOpts);
|
|
822
822
|
}
|
|
823
823
|
if (config.arcPlugins?.caching) {
|
|
824
|
-
const { default: cachingPlugin } = await import("./caching-
|
|
824
|
+
const { default: cachingPlugin } = await import("./caching-CxUQLHfR.mjs").then((n) => n.n);
|
|
825
825
|
const opts = config.arcPlugins.caching === true ? {} : config.arcPlugins.caching;
|
|
826
826
|
await fastify.register(cachingPlugin, opts);
|
|
827
827
|
trackPlugin("arc-caching", opts);
|
|
828
828
|
}
|
|
829
829
|
if (config.arcPlugins?.queryCache) {
|
|
830
|
-
const { queryCachePlugin } = await import("./queryCachePlugin-
|
|
830
|
+
const { queryCachePlugin } = await import("./queryCachePlugin-BDOPEAmH.mjs").then((n) => n.n);
|
|
831
831
|
const opts = config.arcPlugins.queryCache === true ? {} : config.arcPlugins.queryCache;
|
|
832
|
-
const store = config.stores?.queryCache ?? new (await (import("./memory-
|
|
832
|
+
const store = config.stores?.queryCache ?? new (await (import("./memory-Bl7kv6TS.mjs").then((n) => n.n))).MemoryCacheStore();
|
|
833
833
|
await fastify.register(queryCachePlugin, {
|
|
834
834
|
store,
|
|
835
835
|
...opts
|
|
@@ -839,7 +839,7 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
839
839
|
if (config.arcPlugins?.sse) {
|
|
840
840
|
if (config.arcPlugins?.events === false) fastify.log.warn("SSE plugin requires events plugin (arcPlugins.events). SSE disabled.");
|
|
841
841
|
else {
|
|
842
|
-
const { default: ssePlugin } = await import("./sse-
|
|
842
|
+
const { default: ssePlugin } = await import("./sse-OEuPpgss.mjs").then((n) => n.n);
|
|
843
843
|
const opts = config.arcPlugins.sse === true ? {} : config.arcPlugins.sse;
|
|
844
844
|
await fastify.register(ssePlugin, opts);
|
|
845
845
|
trackPlugin("arc-sse", opts);
|
|
@@ -848,20 +848,20 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
848
848
|
if (config.arcPlugins?.realtime) {
|
|
849
849
|
if (config.arcPlugins?.events === false) fastify.log.warn("Realtime plugin requires events plugin (arcPlugins.events). Realtime disabled.");
|
|
850
850
|
else {
|
|
851
|
-
const { default: realtimePlugin } = await import("./realtime-
|
|
851
|
+
const { default: realtimePlugin } = await import("./realtime-Cq_ugiWw.mjs").then((n) => n.n);
|
|
852
852
|
const opts = config.arcPlugins.realtime === true ? {} : config.arcPlugins.realtime;
|
|
853
853
|
await fastify.register(realtimePlugin, opts);
|
|
854
854
|
trackPlugin("arc-realtime", opts);
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
if (config.arcPlugins?.metrics) {
|
|
858
|
-
const { default: metricsPlugin } = await import("./metrics-
|
|
858
|
+
const { default: metricsPlugin } = await import("./metrics-CqnMJKrJ.mjs").then((n) => n.n);
|
|
859
859
|
const opts = config.arcPlugins.metrics === true ? {} : config.arcPlugins.metrics;
|
|
860
860
|
await fastify.register(metricsPlugin, opts);
|
|
861
861
|
trackPlugin("arc-metrics", opts);
|
|
862
862
|
}
|
|
863
863
|
if (config.arcPlugins?.versioning) {
|
|
864
|
-
const { default: versioningPlugin } = await import("./versioning-
|
|
864
|
+
const { default: versioningPlugin } = await import("./versioning-B2_8SBZo.mjs").then((n) => n.n);
|
|
865
865
|
await fastify.register(versioningPlugin, config.arcPlugins.versioning);
|
|
866
866
|
trackPlugin("arc-versioning", config.arcPlugins.versioning);
|
|
867
867
|
}
|
|
@@ -938,7 +938,7 @@ async function registerAuth(fastify, config, trackPlugin) {
|
|
|
938
938
|
*/
|
|
939
939
|
async function registerElevation(fastify, config, trackPlugin) {
|
|
940
940
|
if (!config.elevation) return;
|
|
941
|
-
const { elevationPlugin } = await import("./elevation-
|
|
941
|
+
const { elevationPlugin } = await import("./elevation-XoY0C73T.mjs").then((n) => n.n);
|
|
942
942
|
await fastify.register(elevationPlugin, config.elevation);
|
|
943
943
|
trackPlugin("arc-elevation", config.elevation);
|
|
944
944
|
fastify.log.debug("Elevation plugin enabled");
|
|
@@ -953,7 +953,7 @@ async function registerElevation(fastify, config, trackPlugin) {
|
|
|
953
953
|
*/
|
|
954
954
|
async function registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers) {
|
|
955
955
|
if (config.errorHandler === false) return;
|
|
956
|
-
const { errorHandlerPlugin } = await import("./errorHandler-
|
|
956
|
+
const { errorHandlerPlugin } = await import("./errorHandler-BYI-JQMm.mjs").then((n) => n.r);
|
|
957
957
|
/**
|
|
958
958
|
* DISCLOSURE DEFAULTS MERGE — they used to be REPLACED, and that was two bugs.
|
|
959
959
|
*
|
|
@@ -1172,7 +1172,7 @@ async function registerResources(fastify, config, preResolvedModules, skippedBri
|
|
|
1172
1172
|
let discoveryPath;
|
|
1173
1173
|
let discoveryYieldedZero = false;
|
|
1174
1174
|
if (resolvedResources === void 0 && config.resourceDir) {
|
|
1175
|
-
const { loadResources } = await import("./loadResources-
|
|
1175
|
+
const { loadResources } = await import("./loadResources-Oi47dogA.mjs").then((n) => n.n);
|
|
1176
1176
|
const { resolve, dirname } = await import("node:path");
|
|
1177
1177
|
const { fileURLToPath } = await import("node:url");
|
|
1178
1178
|
const rawDir = config.resourceDir;
|
|
@@ -1297,7 +1297,7 @@ Resources supplied by "${m.name}": ${provided}.`);
|
|
|
1297
1297
|
if (fastify.hasDecorator("getScheduleStats")) throw new Error("[arc] modules declare scheduledJobs but schedulesPlugin was already registered manually. Configure their runner through arcPlugins.schedules so Arc can compose one schedule table.");
|
|
1298
1298
|
const frozenJobs = Object.freeze(scheduledJobs.map((job) => Object.freeze({ ...job })));
|
|
1299
1299
|
const scheduleOptions = typeof config.arcPlugins?.schedules === "object" ? config.arcPlugins.schedules : {};
|
|
1300
|
-
const { default: schedulesPlugin } = await import("./schedules-
|
|
1300
|
+
const { default: schedulesPlugin } = await import("./schedules-CLrQRSTt.mjs").then((n) => n.n);
|
|
1301
1301
|
await fastify.register(schedulesPlugin, {
|
|
1302
1302
|
...scheduleOptions,
|
|
1303
1303
|
schedules: frozenJobs
|
|
@@ -2291,7 +2291,7 @@ async function buildApp(options, loggerScope, onInstance, onBootDisposer) {
|
|
|
2291
2291
|
await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
|
|
2292
2292
|
await registerResources(fastify, config, resolvedModules, skippedBridges);
|
|
2293
2293
|
if (config.replyHelpers) {
|
|
2294
|
-
const { replyHelpersPlugin } = await import("./replyHelpers-
|
|
2294
|
+
const { replyHelpersPlugin } = await import("./replyHelpers-CUbeUc5q.mjs").then((n) => n.n);
|
|
2295
2295
|
await fastify.register(replyHelpersPlugin);
|
|
2296
2296
|
}
|
|
2297
2297
|
if (config.serializeBigInt) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
3
|
-
import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-
|
|
4
|
-
import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-
|
|
5
|
-
import { B as requireAuth } from "./permissions-
|
|
6
|
-
import { n as getAvailablePresets, t as applyPresets } from "./presets-
|
|
7
|
-
import { t as pluralize } from "./pluralize-
|
|
8
|
-
import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-BagW7_YA.mjs";
|
|
3
|
+
import { C as isWriteVerbCapable, S as detectOverriddenWriteSlots, f as BaseController, i as resolveOpenApiSchemas, l as autoInjectTenantFieldRules, t as buildResourcePlugin } from "./plugin-DsLr6L4O.mjs";
|
|
4
|
+
import { m as MUTATION_OPERATIONS, t as CRUD_OPERATIONS } from "./constants-BZFsZwJh.mjs";
|
|
5
|
+
import { B as requireAuth } from "./permissions-BJylQopQ.mjs";
|
|
6
|
+
import { n as getAvailablePresets, t as applyPresets } from "./presets-D_suT4OY.mjs";
|
|
7
|
+
import { t as pluralize } from "./pluralize-CX4ZvwCa.mjs";
|
|
8
|
+
import { a as isZodSchema, i as isJsonSchema } from "./schemaConverter-JEmU21fu.mjs";
|
|
9
9
|
import { isReadOnlyRepo } from "@classytic/repo-core/repository";
|
|
10
10
|
import { readEnv } from "@classytic/primitives/environment";
|
|
11
11
|
// src/core/defineResource/writeVerbs.ts
|
package/dist/discovery/index.mjs
CHANGED
package/dist/docs/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-
|
|
3
|
-
import { n as getUserRoles } from "../userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as openapi_default, t as buildOpenApiSpec } from "../openapi-DXNbadgd.mjs";
|
|
3
|
+
import { n as getUserRoles } from "../userHelpers-D4m_pLSC.mjs";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
// src/docs/scalar.ts
|
|
6
6
|
const scalarPlugin = async (fastify, opts = {}) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-BagW7_YA.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue } from "./headers-BROW65-r.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-D4m_pLSC.mjs";
|
|
6
6
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
// src/scope/elevation.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ArcError } from "../errors-
|
|
3
|
-
import { t as parseJsonBody } from "../jsonBody-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "../errors-3xaK0i9n.mjs";
|
|
3
|
+
import { t as parseJsonBody } from "../jsonBody-C0oREwUc.mjs";
|
|
4
4
|
import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
// src/encryption/fieldCipher.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { m as statusToArcCode, p as isArcError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
|
+
import { m as statusToArcCode, p as isArcError } from "./errors-3xaK0i9n.mjs";
|
|
4
4
|
import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
|
|
5
5
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as requestContext } from "./requestContext-
|
|
4
|
-
import { t as arcLog } from "./logger-
|
|
5
|
-
import { d as createDomainError } from "./errors-
|
|
6
|
-
import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-
|
|
7
|
-
import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-
|
|
8
|
-
import { n as preserveSubscriberIdentity } from "./subscriberIdentity-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-Ck1Tj4Ax.mjs";
|
|
3
|
+
import { n as requestContext } from "./requestContext-DO9Qv0gw.mjs";
|
|
4
|
+
import { t as arcLog } from "./logger-BagW7_YA.mjs";
|
|
5
|
+
import { d as createDomainError } from "./errors-3xaK0i9n.mjs";
|
|
6
|
+
import { i as runAdmittedWork, n as isAdmittedWork, r as registerShutdownParticipant } from "./shutdown-BIR-QBYM.mjs";
|
|
7
|
+
import { n as MemoryEventTransport, r as createEvent, t as ARC_EVENT_TRANSPORT } from "./EventTransport-B18mcj_M.mjs";
|
|
8
|
+
import { n as preserveSubscriberIdentity } from "./subscriberIdentity-PO6kimAl.mjs";
|
|
9
9
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
10
10
|
import fp from "fastify-plugin";
|
|
11
11
|
import { NonDurablePublishError } from "@classytic/primitives/durable-events";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as createEvent } from "./EventTransport-
|
|
1
|
+
/*! @classytic/arc v2.50.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as createEvent } from "./EventTransport-B18mcj_M.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { durableEventMeta } from "@classytic/primitives/durable-events";
|
|
5
5
|
// src/events/defineEvent.ts
|