@classytic/arc 2.51.0 → 2.52.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-K7Q9WPjm.mjs → EventTransport-DeNze_-C.mjs} +2 -2
- package/dist/{HookSystem-DBAu9uNT.mjs → HookSystem-DTffXM1X.mjs} +2 -2
- package/dist/{ResourceRegistry-BelzCRMy.mjs → ResourceRegistry-tlqXSZoK.mjs} +2 -2
- package/dist/{acquire-B0zhfGSm.mjs → acquire-7JKEkKnN.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/auth/social/index.mjs +1 -1
- package/dist/{authorizationDecision-Dxj_cy6N.mjs → authorizationDecision-DKmH4tZ-.mjs} +9 -7
- package/dist/{boundedMap-DOBai-H3.mjs → boundedMap-zxGBpXX0.mjs} +1 -1
- package/dist/{buildHandler-Dyl8P9j0.mjs → buildHandler-ZDV6LRZ_.mjs} +5 -5
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-CUmaNL8Y.mjs → caching-DceUN9Xk.mjs} +2 -2
- package/dist/{claimed-DJPk4VZr.mjs → claimed-DsP5Hi_f.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-DH41jnNT.mjs → constants-Ca2IQFy2.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +7 -7
- package/dist/{core-DPmRWlpx.mjs → core-M18RhMqi.mjs} +3 -3
- package/dist/{createActionRouter-B1xhER6i.mjs → createActionRouter-zXlrwWVs.mjs} +5 -5
- package/dist/{createAggregationRouter-CNntJL-z.mjs → createAggregationRouter-CN0Da9nC.mjs} +7 -7
- package/dist/{createApp-DpG26bCu.mjs → createApp-BC67ACu4.mjs} +29 -29
- package/dist/{defineAggregation-rI3EbZUg.mjs → defineAggregation-DqAGb5oI.mjs} +1 -1
- package/dist/{defineResource-5DcG_wlI.mjs → defineResource-DC5UqkQv.mjs} +8 -8
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-XFu7J3aj.mjs → elevation-DiXVg98q.mjs} +5 -5
- package/dist/encryption/index.d.mts +26 -1
- package/dist/encryption/index.mjs +56 -6
- package/dist/{errorHandler-xDVUWOMu.mjs → errorHandler-BUTm9P_f.mjs} +3 -3
- package/dist/{errors-KBZ3tQk5.mjs → errors-DxpHZBlW.mjs} +1 -1
- package/dist/{eventPlugin-C4lNj2Dw.mjs → eventPlugin-ZsIQPRso.mjs} +8 -8
- package/dist/{eventTypes-DZRoUAdk.mjs → eventTypes-D-pFtqT1.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.d.mts +4 -4
- package/dist/factory/index.mjs +7 -7
- package/dist/{fastify-augmentation-baQc3MaO.d.mts → fastify-augmentation-CPReFhZ1.d.mts} +1 -1
- package/dist/{fieldTypes-DrXUW1jc.mjs → fieldTypes-f-3TZgR3.mjs} +2 -2
- package/dist/{fields-C5J8WTd2.mjs → fields-kCbIDTjA.mjs} +1 -1
- package/dist/{filter-merge-DTjYoDrj.mjs → filter-merge-UJCgjbZR.mjs} +1 -1
- package/dist/{generate-SA8oMlLB.mjs → generate-CLpmzbJ_.mjs} +2 -2
- package/dist/{headers-D5wrBLOk.mjs → headers-Bh47h0XH.mjs} +2 -2
- package/dist/{health-BLal039H.mjs → health-CEpgVAl7.mjs} +1 -1
- package/dist/{health-vEo3fni4.mjs → health-W4S2yFBL.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-DexdFs1a.d.mts → index-CSbDhif4.d.mts} +19 -1
- package/dist/{index-DKM2p5w5.d.mts → index-DCH08eqQ.d.mts} +1 -1
- package/dist/{index-Dhrks-hM.d.mts → index-yXXCsKl7.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +11 -11
- package/dist/{init-DeKHaNZn.mjs → init-B43DXBpc.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-rDPGT5A9.mjs → jsonBody-CkKs6dA_.mjs} +2 -2
- package/dist/{keys-t7i-lJ2r.mjs → keys-DHrHnT0f.mjs} +1 -1
- package/dist/{loadResources-CcupAVJH.mjs → loadResources-CFdzAWQZ.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-BpjYlaoj.mjs → loadResourcesFromEntry-DkoSiJsI.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-IL7Btm-N.mjs → logger-DJwz_-Pl.mjs} +1 -1
- package/dist/{mcpPlugin-BsdH7Vot.mjs → mcpPlugin-CA_MDFlS.mjs} +21 -21
- package/dist/{memory-Dkp6ZD3F.mjs → memory-B9CFHbA_.mjs} +3 -3
- package/dist/{metrics-CDPqgdKr.mjs → metrics-DSKv-T9K.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-KFxT1Iuk.mjs → module-C0JCsnO7.mjs} +17 -2
- package/dist/{multipartBody-BHktuarE.mjs → multipartBody-Bxz-q6hI.mjs} +1 -1
- package/dist/{observeSend-CY-sLanc.mjs → observeSend-DfNkdGww.mjs} +1 -1
- package/dist/{openapi-DbeXiy2v.mjs → openapi-Dmp7Ipsi.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-BWqkTE8-.mjs → outbox-module-vT6PaThj.mjs} +7 -7
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-e5YMrFbm.mjs → permissions-Cga6KBOX.mjs} +9 -9
- package/dist/{pipe-CMnKfdF4.mjs → pipe-CqPweKdL.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-BvLJGm3U.mjs → plan-CbDTFbTj.mjs} +1 -1
- package/dist/{plugin-DYmu8uT4.mjs → plugin-8Z1khbAI.mjs} +24 -24
- package/dist/plugins/index.d.mts +1 -1
- 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-ClwfBdIx.mjs → pluralize-D4vcPLVs.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-DX_lPabi.mjs → presets-D28IABZe.mjs} +4 -4
- package/dist/{projection-DnZiFPPE.mjs → projection-aHCtDQQ9.mjs} +2 -2
- package/dist/{purger.types-BEzTVDOU.mjs → purger.types-CNFmEtFu.mjs} +1 -1
- package/dist/{queryCachePlugin-C57-Nj-g.mjs → queryCachePlugin-CwpEjCwz.mjs} +6 -6
- package/dist/{rateLimitKey-B1RxyGt3.mjs → rateLimitKey-D9dl3FQn.mjs} +1 -1
- package/dist/{realtime-C-VIoXMg.mjs → realtime-Dvu8ES2z.mjs} +11 -11
- package/dist/registry/index.d.mts +1 -1
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-DbQvODPH.mjs → registry-DmxbzW7-.mjs} +2 -2
- package/dist/{relay-B61seKq1.mjs → relay-CEaCmUfG.mjs} +5 -5
- package/dist/{renewingLease-Dp7wmzNN.mjs → renewingLease-g2FjB3im.mjs} +1 -1
- package/dist/{replyHelpers-CHii_jIO.mjs → replyHelpers-CSByAX_Z.mjs} +2 -2
- package/dist/{requestContext-C_mbAm8o.mjs → requestContext-yc7MSgmq.mjs} +1 -1
- package/dist/{requirement-C8OsWLYp.mjs → requirement-Dm8njSoC.mjs} +1 -1
- package/dist/{resourceRateLimit-DhbQZjE2.mjs → resourceRateLimit-PQaY3HW1.mjs} +2 -2
- package/dist/{rolldown-runtime-HTi8KV7V.mjs → rolldown-runtime-BBBkGgwA.mjs} +1 -1
- package/dist/{routeValidator-DnQ2BGnH.mjs → routeValidator-fuG51bQA.mjs} +1 -1
- package/dist/{runtimeCapabilities-G9QXHov1.mjs → runtimeCapabilities-B8IT7xiQ.mjs} +1 -1
- package/dist/{schedules-DAthT5O3.mjs → schedules-0-aS4jDV.mjs} +5 -5
- package/dist/{schemaConverter-BOt_ed78.mjs → schemaConverter-Cs3SwP4R.mjs} +2 -2
- package/dist/{schemaIR-MZVVj6Cw.mjs → schemaIR-By8XiNeE.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-btg-225w.mjs → scope-BWNAlBj0.mjs} +4 -4
- package/dist/{shutdown-Dfy8La90.mjs → shutdown-Cf-27xsS.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-D5dOqbbj.mjs → simpleEqualityMatcher-e-dgJcUO.mjs} +1 -1
- package/dist/{sse-DivxX1m6.mjs → sse-C3bj5qWi.mjs} +7 -7
- package/dist/{sseStream-hQxQjvre.mjs → sseStream-BYZbpFDa.mjs} +2 -2
- package/dist/{store-helpers-DfqfssAw.mjs → store-helpers-B9HierHY.mjs} +1 -1
- package/dist/{streaming-CQiOktsh.mjs → streaming-EN8NJWxr.mjs} +1 -1
- package/dist/{subscriberIdentity-Bf8VLqA7.mjs → subscriberIdentity-DSqCh38x.mjs} +1 -1
- package/dist/{tenancy-Btmaf1MB.mjs → tenancy-CAqjGQcQ.mjs} +2 -2
- package/dist/{tenantPreparation-4e3qyb6q.mjs → tenantPreparation-CVBWarqs.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.d.mts +2 -2
- 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-DXx0IWyi.mjs → timing-CKI_Oyub.mjs} +1 -1
- package/dist/{transactionContext-DperjON1.mjs → transactionContext-D0UZFoSy.mjs} +1 -1
- package/dist/{typeGuards-eoQLIOh6.mjs → typeGuards-CLYkmBLT.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-CcpISJe8.mjs → types-Cunc4shv.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-Cp5zqlEN.mjs → userHelpers-cT5j1kgp.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-dKN-_315.mjs → utils-DlNkm1dI.mjs} +6 -6
- package/dist/{validate-BZHaAdgy.mjs → validate-63QThRoS.mjs} +3 -3
- package/dist/{versioning-CPLP0VbB.mjs → versioning-f2YGmh4i.mjs} +3 -3
- package/dist/{workScope-BI72KXsI.mjs → workScope-DwspXz70.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-
|
|
3
|
-
import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-DxpHZBlW.mjs";
|
|
3
|
+
import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-EN8NJWxr.mjs";
|
|
4
4
|
import { ARC_ERROR_CODES } from "@classytic/repo-core/errors";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
// src/integrations/streamline.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as exponentialBackoff } from "../relay-
|
|
3
|
-
import { t as createOutboxModule } from "../outbox-module-
|
|
4
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as exponentialBackoff } from "../relay-CEaCmUfG.mjs";
|
|
3
|
+
import { t as createOutboxModule } from "../outbox-module-vT6PaThj.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
|
|
5
5
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
import { createChildEvent, matchEventPattern } from "@classytic/primitives/events";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import sjson from "secure-json-parse";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ArcError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "./errors-DxpHZBlW.mjs";
|
|
3
3
|
import sjson from "secure-json-parse";
|
|
4
4
|
// src/utils/jsonBody.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
4
4
|
import { readdir } from "node:fs/promises";
|
|
5
5
|
import { dirname, join, resolve } from "node:path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ResourceRegistry } from "./ResourceRegistry-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ResourceRegistry } from "./ResourceRegistry-tlqXSZoK.mjs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
// src/cli/utils/loadResourcesFromEntry.ts
|
package/dist/logger/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-DJwz_-Pl.mjs";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-
|
|
3
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
4
|
-
import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-
|
|
5
|
-
import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-
|
|
6
|
-
import { a as resolveActionPermission, i as shouldRejectAdditionalProperties, n as normalizeSchemaIR, p as resolvePipelineSteps, t as actionSchemaIR } from "./schemaIR-
|
|
7
|
-
import { n as fieldTypesFromOpenApiSchemas } from "./fieldTypes-
|
|
8
|
-
import { f as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-
|
|
9
|
-
import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-
|
|
10
|
-
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-
|
|
11
|
-
import { t as pluralize } from "./pluralize-
|
|
12
|
-
import { t as buildRequestScopeProjection } from "./projection-
|
|
13
|
-
import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-
|
|
14
|
-
import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-
|
|
15
|
-
import { t as arcLog } from "./logger-
|
|
16
|
-
import { r as evaluatePermissionDecision } from "./authorizationDecision-
|
|
17
|
-
import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-
|
|
18
|
-
import { n as executeAggregation } from "./buildHandler-
|
|
19
|
-
import { n as validateAggregations } from "./validate-
|
|
20
|
-
import { o as toJsonSchema } from "./schemaConverter-
|
|
21
|
-
import { t as executePipeline } from "./pipe-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-PQaY3HW1.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-B8IT7xiQ.mjs";
|
|
4
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-zxGBpXX0.mjs";
|
|
5
|
+
import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-DxpHZBlW.mjs";
|
|
6
|
+
import { a as resolveActionPermission, i as shouldRejectAdditionalProperties, n as normalizeSchemaIR, p as resolvePipelineSteps, t as actionSchemaIR } from "./schemaIR-By8XiNeE.mjs";
|
|
7
|
+
import { n as fieldTypesFromOpenApiSchemas } from "./fieldTypes-f-3TZgR3.mjs";
|
|
8
|
+
import { f as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-8Z1khbAI.mjs";
|
|
9
|
+
import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-CVBWarqs.mjs";
|
|
10
|
+
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-Cunc4shv.mjs";
|
|
11
|
+
import { t as pluralize } from "./pluralize-D4vcPLVs.mjs";
|
|
12
|
+
import { t as buildRequestScopeProjection } from "./projection-aHCtDQQ9.mjs";
|
|
13
|
+
import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-7JKEkKnN.mjs";
|
|
14
|
+
import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-CKI_Oyub.mjs";
|
|
15
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
16
|
+
import { r as evaluatePermissionDecision } from "./authorizationDecision-DKmH4tZ-.mjs";
|
|
17
|
+
import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-kCbIDTjA.mjs";
|
|
18
|
+
import { n as executeAggregation } from "./buildHandler-ZDV6LRZ_.mjs";
|
|
19
|
+
import { n as validateAggregations } from "./validate-63QThRoS.mjs";
|
|
20
|
+
import { o as toJsonSchema } from "./schemaConverter-Cs3SwP4R.mjs";
|
|
21
|
+
import { t as executePipeline } from "./pipe-CqPweKdL.mjs";
|
|
22
22
|
import { ARC_ERROR_CODES, isHttpError, toErrorContract } from "@classytic/repo-core/errors";
|
|
23
23
|
import { createHash, randomUUID } from "node:crypto";
|
|
24
24
|
import fp from "fastify-plugin";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as evictToSize } from "./boundedMap-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { n as evictToSize } from "./boundedMap-zxGBpXX0.mjs";
|
|
4
4
|
// src/cache/memory.ts
|
|
5
5
|
var memory_exports = /* @__PURE__ */ __exportAll({ MemoryCacheStore: () => MemoryCacheStore });
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-W4S2yFBL.mjs";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
// src/plugins/metrics.ts
|
|
6
6
|
var metrics_exports = /* @__PURE__ */ __exportAll({ default: () => metrics_default });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "../constants-
|
|
3
|
-
import { t as multipartBody } from "../multipartBody-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "../constants-Ca2IQFy2.mjs";
|
|
3
|
+
import { t as multipartBody } from "../multipartBody-Bxz-q6hI.mjs";
|
|
4
4
|
// src/middleware/middleware.ts
|
|
5
5
|
/**
|
|
6
6
|
* Named Middleware — Priority-based, conditional middleware execution.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as startRenewingLease } from "../renewingLease-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as startRenewingLease } from "../renewingLease-g2FjB3im.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
// src/migrations/index.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
// src/factory/module/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Identity helper for authoring a typed module — mirrors `defineResource`.
|
|
@@ -74,4 +74,19 @@ Composed modules: ${composed.length ? composed.join(", ") : "(none)"}.`);
|
|
|
74
74
|
return resolved;
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
function moduleHandleRef(name) {
|
|
78
|
+
let app;
|
|
79
|
+
const booted = () => {
|
|
80
|
+
if (!app) throw new Error(`[arc] module handle "${name}" was read before the consuming module's app booted`);
|
|
81
|
+
return app;
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
plugins: (fastify) => {
|
|
85
|
+
app = fastify;
|
|
86
|
+
},
|
|
87
|
+
get: () => getModuleExports(booted(), name),
|
|
88
|
+
find: () => getOptionalModuleExports(booted(), name),
|
|
89
|
+
booted: () => app !== void 0
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export { lazyModuleExports as a, hasModuleExports as i, getModuleExports as n, lazyRequiredModuleExports as o, getOptionalModuleExports as r, moduleHandleRef as s, defineModule as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
// src/utils/observeSend.ts
|
|
3
3
|
/** Run `fn`, reporting whether it called `reply.send` (or the reply is already sent). */
|
|
4
4
|
async function runObservingSend(reply, fn) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
3
|
-
import { a as resolveActionPermission } from "./schemaIR-
|
|
4
|
-
import { t as buildActionBodySchema } from "./createActionRouter-
|
|
5
|
-
import { t as pluralize } from "./pluralize-
|
|
6
|
-
import { n as convertRouteSchema } from "./schemaConverter-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
|
|
3
|
+
import { a as resolveActionPermission } from "./schemaIR-By8XiNeE.mjs";
|
|
4
|
+
import { t as buildActionBodySchema } from "./createActionRouter-zXlrwWVs.mjs";
|
|
5
|
+
import { t as pluralize } from "./pluralize-D4vcPLVs.mjs";
|
|
6
|
+
import { n as convertRouteSchema } from "./schemaConverter-Cs3SwP4R.mjs";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
// src/docs/openapi/canonical-schemas.ts
|
|
9
9
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as defineResource } from "../defineResource-
|
|
3
|
-
import { r as readOutboxHealth } from "../health-
|
|
4
|
-
import { n as getModuleExports, t as defineModule } from "../module-
|
|
5
|
-
import { i as NotFoundError, u as ValidationError } from "../errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as defineResource } from "../defineResource-DC5UqkQv.mjs";
|
|
3
|
+
import { r as readOutboxHealth } from "../health-CEpgVAl7.mjs";
|
|
4
|
+
import { n as getModuleExports, t as defineModule } from "../module-C0JCsnO7.mjs";
|
|
5
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-DxpHZBlW.mjs";
|
|
6
6
|
// src/outbox-admin/module.ts
|
|
7
7
|
/**
|
|
8
8
|
* Strip the domain payload and the stack unless explicitly opted in.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as requestContext } from "./requestContext-
|
|
3
|
-
import { t as transactionContext } from "./transactionContext-
|
|
4
|
-
import { i as resolveEventTransport } from "./EventTransport-
|
|
5
|
-
import { t as emitObserved } from "./eventPlugin-
|
|
6
|
-
import { n as canReportHealth, r as readOutboxHealth } from "./health-
|
|
7
|
-
import { t as EventOutbox } from "./relay-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as requestContext } from "./requestContext-yc7MSgmq.mjs";
|
|
3
|
+
import { t as transactionContext } from "./transactionContext-D0UZFoSy.mjs";
|
|
4
|
+
import { i as resolveEventTransport } from "./EventTransport-DeNze_-C.mjs";
|
|
5
|
+
import { t as emitObserved } from "./eventPlugin-ZsIQPRso.mjs";
|
|
6
|
+
import { n as canReportHealth, r as readOutboxHealth } from "./health-CEpgVAl7.mjs";
|
|
7
|
+
import { t as EventOutbox } from "./relay-CEaCmUfG.mjs";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
import { hostname } from "node:os";
|
|
10
10
|
// src/events/outbox-module.ts
|
|
@@ -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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "../filter-merge-UJCgjbZR.mjs";
|
|
3
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-cT5j1kgp.mjs";
|
|
4
|
+
import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-kCbIDTjA.mjs";
|
|
5
|
+
import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-DKmH4tZ-.mjs";
|
|
6
|
+
import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-PQaY3HW1.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-Cga6KBOX.mjs";
|
|
8
8
|
export { GRANT_MODES, adminOnly, allOf, allow, allowPublic, anyOf, applyAuthorizationDecision, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, buildPermissionMatrix, collectPublicSurface, conjoinPolicyFilters, createDynamicPermissionMatrix, createMemoryResourceRateLimiter, createOrgPermissions, createRoleHierarchy, deny, denyAll, describePermission, describePermissionMap, evaluatePermissionDecision, explainAccess, fields, fullPublic, getUserRoles, introspectCheck, introspectModule, introspectRegistry, modeSatisfies, normalizeRoles, normalizeToDecision, not, ownerWithAdminBypass, permissionMatrix, presets_exports as permissions, publicRead, publicReadAdminWrite, readOnly, requireAgentScope, requireAuth, requireDPoP, requireGrant, requireMandate, requireOrgInScope, requireOrgMembership, requireOrgRole, requireOwnership, requirePlatformRole, requireRoles, requireScopeContext, requireServiceScope, requireTeamMembership, resolveEffectiveRoles, resolveResourceRateLimiter, roles, scopeOf, when };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { 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-
|
|
4
|
-
import { i as normalizeToDecision } from "./authorizationDecision-
|
|
5
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
6
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
7
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
8
|
-
import { t as arcLog } from "./logger-
|
|
9
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-Cunc4shv.mjs";
|
|
4
|
+
import { i as normalizeToDecision } from "./authorizationDecision-DKmH4tZ-.mjs";
|
|
5
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-UJCgjbZR.mjs";
|
|
6
|
+
import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
|
|
7
|
+
import { t as MemoryCacheStore } from "./memory-B9CFHbA_.mjs";
|
|
8
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
9
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-B8IT7xiQ.mjs";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
// src/permissions/context.ts
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { r as ForbiddenError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-DxpHZBlW.mjs";
|
|
3
3
|
// 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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-CqPweKdL.mjs";
|
|
3
3
|
// src/pipeline/guard.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a named guard.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { g as SYSTEM_FIELDS, o as DEFAULT_TENANT_FIELD, s as DEFAULT_UPDATE_METHOD, t as CRUD_OPERATIONS } from "./constants-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
5
|
-
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-
|
|
6
|
-
import { 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 { O as ArcQueryParser, b 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 { C as createFastifyHandler, S as createCrudHandlers, _ as resolveRoutePreHandlers, a as resolveActionPermission, c as buildRouteConfig, f as buildPipelineHandler, g as buildRouteHooks, h as buildCrudPermissionMw, l as resolveRouterPluginMw, n as normalizeSchemaIR, o as tryRegisterRoute, p as resolvePipelineSteps, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, w as createRequestContext, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-
|
|
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.52.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-Ca2IQFy2.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-UJCgjbZR.mjs";
|
|
5
|
+
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-DxpHZBlW.mjs";
|
|
6
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-e-dgJcUO.mjs";
|
|
7
|
+
import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
|
|
8
|
+
import { n as getUserRoles, t as getUserId } from "./userHelpers-cT5j1kgp.mjs";
|
|
9
|
+
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-Cunc4shv.mjs";
|
|
10
|
+
import { r as resolveTenancy } from "./tenancy-CAqjGQcQ.mjs";
|
|
11
|
+
import { t as buildQueryKey } from "./keys-DHrHnT0f.mjs";
|
|
12
|
+
import { t as transactionContext } from "./transactionContext-D0UZFoSy.mjs";
|
|
13
|
+
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-kCbIDTjA.mjs";
|
|
14
|
+
import { O as ArcQueryParser, b as getDefaultCrudSchemas } from "./utils-DlNkm1dI.mjs";
|
|
15
|
+
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-Cs3SwP4R.mjs";
|
|
16
|
+
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-EN8NJWxr.mjs";
|
|
17
|
+
import { C as createFastifyHandler, S as createCrudHandlers, _ as resolveRoutePreHandlers, a as resolveActionPermission, c as buildRouteConfig, f as buildPipelineHandler, g as buildRouteHooks, h as buildCrudPermissionMw, l as resolveRouterPluginMw, n as normalizeSchemaIR, o as tryRegisterRoute, p as resolvePipelineSteps, s as buildRateLimitConfig, u as selectPluginMw, v as routeHookOptions, w as createRequestContext, x as buildArcDecorator, y as buildAuthMiddleware } from "./schemaIR-By8XiNeE.mjs";
|
|
18
|
+
import { a as withoutTenantInjection } from "./tenantPreparation-CVBWarqs.mjs";
|
|
19
|
+
import { t as hasEvents } from "./typeGuards-CLYkmBLT.mjs";
|
|
20
|
+
import { n as idempotencyConfigProblem } from "./requirement-Dm8njSoC.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";
|
|
@@ -3216,7 +3216,7 @@ function buildResourcePlugin(resource) {
|
|
|
3216
3216
|
extensions: resource.extensions
|
|
3217
3217
|
});
|
|
3218
3218
|
if (resource.actions && Object.keys(resource.actions).length > 0) {
|
|
3219
|
-
const { createActionRouter } = await import("./createActionRouter-
|
|
3219
|
+
const { createActionRouter } = await import("./createActionRouter-zXlrwWVs.mjs").then((n) => n.n);
|
|
3220
3220
|
const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
|
|
3221
3221
|
const actionTarget = resolveActionTargetFence(resource, actionConfig);
|
|
3222
3222
|
createActionRouter(typedInstance, {
|
|
@@ -3237,9 +3237,9 @@ function buildResourcePlugin(resource) {
|
|
|
3237
3237
|
}
|
|
3238
3238
|
if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
|
|
3239
3239
|
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }, { fieldTypesFromOpenApiSchemas }] = await Promise.all([
|
|
3240
|
-
import("./createAggregationRouter-
|
|
3241
|
-
import("./validate-
|
|
3242
|
-
import("./fieldTypes-
|
|
3240
|
+
import("./createAggregationRouter-CN0Da9nC.mjs"),
|
|
3241
|
+
import("./validate-63QThRoS.mjs").then((n) => n.r),
|
|
3242
|
+
import("./fieldTypes-f-3TZgR3.mjs").then((n) => n.r)
|
|
3243
3243
|
]);
|
|
3244
3244
|
const repoForAgg = resource.controller?.repository ?? resource.repository;
|
|
3245
3245
|
if (!adapterSupportsAggregate(repoForAgg)) {
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as AnyRecord } from "../base-HXNgPQww.mjs";
|
|
3
|
-
import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-
|
|
3
|
+
import { i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-CPReFhZ1.mjs";
|
|
4
4
|
import { i as registerSseStats, n as SseConnectionGauge, r as createSseConnectionGauge, t as SSEStats } from "../sseStats-DQqNN385.mjs";
|
|
5
5
|
import { _ as _default$2, a as MetricsOptions, c as RealtimeOptions, d as _default$9, f as CachingOptions, g as ShutdownState, h as GracefulShutdownOptions, i as MetricsCollector, l as _default$6, m as _default$1, n as _default$10, o as _default$4, p as CachingRule, r as MetricEntry, s as ChangeOperation, t as VersioningOptions, u as SSEOptions } from "../versioning-B07RgD27.mjs";
|
|
6
6
|
import { J as MiddlewareConfig, Ot as RouteDefinition, U as PresetHook, X as RouteSchemaOptions } from "../index-DLCcLUQT.mjs";
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { m as MUTATION_OPERATIONS } from "../constants-
|
|
3
|
-
import { n as requestContext } from "../requestContext-
|
|
4
|
-
import { t as HookSystem } from "../HookSystem-
|
|
5
|
-
import { t as ResourceRegistry } from "../ResourceRegistry-
|
|
6
|
-
import { c as getOrgId } from "../types-
|
|
7
|
-
import { t as hasEvents } from "../typeGuards-
|
|
8
|
-
import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-
|
|
9
|
-
import { t as caching_default } from "../caching-
|
|
10
|
-
import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-
|
|
11
|
-
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-
|
|
12
|
-
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-
|
|
13
|
-
import { t as metrics_default } from "../metrics-
|
|
14
|
-
import { t as arcLog } from "../logger-
|
|
15
|
-
import { t as realtime_default } from "../realtime-
|
|
16
|
-
import { t as replyHelpersPlugin } from "../replyHelpers-
|
|
17
|
-
import { t as sse_default } from "../sse-
|
|
18
|
-
import { t as versioning_default } from "../versioning-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { m as MUTATION_OPERATIONS } from "../constants-Ca2IQFy2.mjs";
|
|
3
|
+
import { n as requestContext } from "../requestContext-yc7MSgmq.mjs";
|
|
4
|
+
import { t as HookSystem } from "../HookSystem-DTffXM1X.mjs";
|
|
5
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-tlqXSZoK.mjs";
|
|
6
|
+
import { c as getOrgId } from "../types-Cunc4shv.mjs";
|
|
7
|
+
import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
|
|
8
|
+
import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-BYZbpFDa.mjs";
|
|
9
|
+
import { t as caching_default } from "../caching-DceUN9Xk.mjs";
|
|
10
|
+
import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-0-aS4jDV.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-BUTm9P_f.mjs";
|
|
12
|
+
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-W4S2yFBL.mjs";
|
|
13
|
+
import { t as metrics_default } from "../metrics-DSKv-T9K.mjs";
|
|
14
|
+
import { t as arcLog } from "../logger-DJwz_-Pl.mjs";
|
|
15
|
+
import { t as realtime_default } from "../realtime-Dvu8ES2z.mjs";
|
|
16
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-CSByAX_Z.mjs";
|
|
17
|
+
import { t as sse_default } from "../sse-C3bj5qWi.mjs";
|
|
18
|
+
import { t as versioning_default } from "../versioning-f2YGmh4i.mjs";
|
|
19
19
|
import fp from "fastify-plugin";
|
|
20
20
|
import { performance as performance$1 } from "node:perf_hooks";
|
|
21
21
|
// src/core/arcCorePlugin.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-
|
|
3
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
4
|
-
import { t as hasEvents } from "../typeGuards-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-zxGBpXX0.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
|
|
4
|
+
import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
// src/plugins/response-cache.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
// src/plugins/tracing.ts
|
|
@@ -59,7 +59,7 @@ try {
|
|
|
59
59
|
function createTracerProvider(options) {
|
|
60
60
|
if (!isAvailable || !NodeTracerProvider || !BatchSpanProcessor || !OTLPTraceExporter) return null;
|
|
61
61
|
const { serviceName = "@classytic/arc", serviceVersion, exporterUrl = "http://localhost:4318/v1/traces" } = options;
|
|
62
|
-
const resolvedVersion = serviceVersion ?? "2.
|
|
62
|
+
const resolvedVersion = serviceVersion ?? "2.52.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 { t as multipartBody } from "../multipartBody-
|
|
3
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
4
|
-
import { c as getOrgId, g as getUserId } from "../types-
|
|
5
|
-
import { i as NotFoundError, u as ValidationError } from "../errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as multipartBody } from "../multipartBody-Bxz-q6hI.mjs";
|
|
3
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-Cga6KBOX.mjs";
|
|
4
|
+
import { c as getOrgId, g as getUserId } from "../types-Cunc4shv.mjs";
|
|
5
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-DxpHZBlW.mjs";
|
|
6
6
|
// src/presets/filesUpload.ts
|
|
7
7
|
const DEFAULT_FIELD_NAME = "file";
|
|
8
8
|
const DEFAULT_MAX_FILE_SIZE = 10485760;
|
package/dist/presets/index.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.52.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-D28IABZe.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 { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-
|
|
4
|
-
import { u as getRequestScope } from "../types-
|
|
5
|
-
import { t as ArcError } from "../errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-Ca2IQFy2.mjs";
|
|
3
|
+
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-CVBWarqs.mjs";
|
|
4
|
+
import { u as getRequestScope } from "../types-Cunc4shv.mjs";
|
|
5
|
+
import { t as ArcError } from "../errors-DxpHZBlW.mjs";
|
|
6
6
|
// 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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-Cga6KBOX.mjs";
|
|
3
3
|
// src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-Cga6KBOX.mjs";
|
|
3
3
|
import { multiTenantPreset } from "./presets/multiTenant.mjs";
|
|
4
|
-
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-
|
|
5
|
-
import { l as UnauthorizedError } from "./errors-
|
|
4
|
+
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-Cunc4shv.mjs";
|
|
5
|
+
import { l as UnauthorizedError } from "./errors-DxpHZBlW.mjs";
|
|
6
6
|
// src/presets/audited.ts
|
|
7
7
|
/**
|
|
8
8
|
* Audited preset - adds createdBy/updatedBy tracking
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-Cunc4shv.mjs";
|
|
3
3
|
// src/scope/projection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute the request-scope projection. Returns `undefined` when no
|