@classytic/arc 2.37.0 → 2.37.1
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/{BaseController-B5GZfUBy.mjs → BaseController-Chkf0Aiw.mjs} +16 -15
- package/dist/{EventTransport-pGNNDQ__.mjs → EventTransport-CFdtK25P.mjs} +1 -1
- package/dist/{HookSystem-CuhHvcyZ.mjs → HookSystem-Csy31WS-.mjs} +2 -2
- package/dist/{ResourceRegistry-DFOmazXg.mjs → ResourceRegistry-OQA13slI.mjs} +2 -2
- package/dist/{actionPermissions-CQQrR4tu.mjs → actionPermissions-DGGqqSIV.mjs} +6 -6
- package/dist/audit/index.d.mts +1 -1
- package/dist/audit/index.mjs +2 -2
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.d.mts +1 -1
- package/dist/auth/index.mjs +79 -28
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/{authorizationDecision-DgyWdav8.mjs → authorizationDecision-BzZi2bsf.mjs} +2 -2
- package/dist/{buildHandler-D2DkqtiY.mjs → buildHandler-CIz0NsGS.mjs} +4 -4
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-BmC2T-pX.mjs → caching-DldVgnC9.mjs} +2 -2
- package/dist/cleanup/index.d.mts +1 -1
- package/dist/cleanup/index.mjs +4 -4
- package/dist/cli/commands/describe.d.mts +1 -1
- package/dist/cli/commands/describe.mjs +3 -3
- package/dist/cli/commands/docs.mjs +3 -3
- package/dist/cli/commands/doctor.mjs +1 -1
- package/dist/cli/commands/generate.mjs +2 -2
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/introspect.mjs +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{constants-CUpamQMJ.mjs → constants-DDKf25s4.mjs} +1 -1
- package/dist/context/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.mjs +7 -7
- package/dist/{core-C8GWw-Iu.mjs → core-uHQonaHf.mjs} +3 -3
- package/dist/{createActionRouter-CwDU_j2S.mjs → createActionRouter-C22Xn11N.mjs} +7 -7
- package/dist/{createAggregationRouter-d057xXX1.mjs → createAggregationRouter-DgyksLHH.mjs} +7 -7
- package/dist/{defineAggregation-cCitY2FA.mjs → defineAggregation-B1m-45Fe.mjs} +1 -1
- package/dist/{defineResource-WcbE1kJL.mjs → defineResource-DS3Uj2-8.mjs} +18 -18
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.d.mts +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-Bc6Gafv9.mjs → elevation-9X0lGzTQ.mjs} +4 -4
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-CB75oY5i.mjs → errorHandler-BmEGKyO9.mjs} +4 -4
- package/dist/{errors-DsdZc1Xv.mjs → errors-CbxCF9M0.mjs} +1 -1
- package/dist/{eventPlugin-DEIfV1iC.mjs → eventPlugin-B1ahehZH.mjs} +5 -5
- package/dist/events/index.mjs +5 -5
- package/dist/events/transports/redis-stream-entry.mjs +1 -1
- package/dist/events/transports/redis.mjs +1 -1
- package/dist/factory/index.d.mts +2 -2
- package/dist/factory/index.mjs +5 -5
- package/dist/{fastify-augmentation-CdY8FINU.d.mts → fastify-augmentation-CRsNNhuo.d.mts} +1 -1
- package/dist/{fields-DvGz47Ul.mjs → fields-f_MdWDl_.mjs} +1 -1
- package/dist/{generate-D7CIIWhS.mjs → generate-DxWn-XnM.mjs} +2 -2
- package/dist/{headers-BFu1st_i.mjs → headers-DivLPMHe.mjs} +2 -2
- package/dist/{health-Cc_sb94d.mjs → health-W_BjgWf0.mjs} +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/idempotency/index.mjs +4 -4
- package/dist/idempotency/redis.mjs +1 -1
- package/dist/{index-C01wWGJt.d.mts → index-BqRfP1kT.d.mts} +10 -1
- package/dist/{index-du18bJjH.d.mts → index-CEmPspAB.d.mts} +2 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +11 -11
- package/dist/{init-BMgU1wYR.mjs → init-BJ6fdYnp.mjs} +1 -1
- package/dist/integrations/event-gateway.mjs +2 -2
- package/dist/integrations/index.d.mts +1 -1
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.mjs +2 -2
- package/dist/integrations/mcp/index.d.mts +2 -2
- package/dist/integrations/mcp/index.mjs +2 -2
- package/dist/integrations/mcp/testing.d.mts +1 -1
- package/dist/integrations/mcp/testing.mjs +2 -2
- package/dist/integrations/streamline.mjs +3 -3
- package/dist/integrations/webhooks.mjs +3 -3
- package/dist/integrations/websocket-pushref-redis.mjs +1 -1
- package/dist/integrations/websocket-redis.mjs +1 -1
- package/dist/integrations/websocket.mjs +1 -1
- package/dist/{interface-CaPVHoVJ.mjs → interface-DeLndJ8G.mjs} +1 -1
- package/dist/{jsonBody-BuzxOZV8.mjs → jsonBody-kApktjTc.mjs} +2 -2
- package/dist/{keys-DoUI9-yP.mjs → keys-B1MgfDWi.mjs} +1 -1
- package/dist/{loadResources-CPlRWJCv.mjs → loadResources-ma-Aaxp1.mjs} +2 -2
- package/dist/{loadResourcesFromEntry-CPCZiX9n.mjs → loadResourcesFromEntry-xszlyXTs.mjs} +2 -2
- package/dist/logger/index.mjs +1 -1
- package/dist/{mcpPlugin-dxMxBPIg.mjs → mcpPlugin-97HuFA46.mjs} +15 -15
- package/dist/{memory-BnafVem_.mjs → memory-DvASzOn3.mjs} +2 -2
- package/dist/{metrics-CeAIcVMY.mjs → metrics-Dx-nkDE5.mjs} +2 -2
- package/dist/middleware/index.d.mts +1 -1
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-DIvG8qOg.mjs → module-CNKk_twm.mjs} +1 -1
- package/dist/{multipartBody-BVCoaTwu.mjs → multipartBody-TDaYOHGZ.mjs} +1 -1
- package/dist/{openapi-D_i6CifU.mjs → openapi-473gZ-8x.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +4 -4
- package/dist/{outbox-module-CKaLL5BH.mjs → outbox-module-DOAmyXOb.mjs} +4 -4
- package/dist/permissions/index.mjs +5 -5
- package/dist/{permissions-DWkl60hx.mjs → permissions-DnAc6zoZ.mjs} +6 -6
- package/dist/{pipe-Dbs3GhOZ.mjs → pipe-BoV-z4db.mjs} +2 -2
- package/dist/pipeline/index.d.mts +1 -1
- package/dist/pipeline/index.mjs +2 -2
- package/dist/plugins/index.d.mts +2 -2
- package/dist/plugins/index.mjs +16 -16
- package/dist/plugins/response-cache.mjs +2 -2
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-DgaYX91M.mjs → pluralize-BiU5ocWw.mjs} +1 -1
- package/dist/{preloadResources-BYFfYnjZ.d.mts → preloadResources-DHkyk3QN.d.mts} +1 -1
- package/dist/{preloadResources-BUoGKPaS.mjs → preloadResources-DJ7Lli0a.mjs} +21 -21
- package/dist/presets/filesUpload.d.mts +1 -1
- package/dist/presets/filesUpload.mjs +5 -5
- package/dist/presets/index.d.mts +1 -1
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.d.mts +1 -1
- package/dist/presets/multiTenant.mjs +3 -3
- package/dist/presets/search.d.mts +1 -1
- package/dist/presets/search.mjs +2 -2
- package/dist/{presets-Gbv9mNKD.mjs → presets-BMxH-Bb7.mjs} +4 -4
- package/dist/{projection-BunxoeON.mjs → projection-CRCM5S9T.mjs} +2 -2
- package/dist/{queryCachePlugin-BYqmg89O.mjs → queryCachePlugin-Cl3zLG7g.mjs} +5 -5
- package/dist/{rateLimitKey-DlqmDHA5.mjs → rateLimitKey-D4_rjP1K.mjs} +1 -1
- package/dist/{realtime-CiAp2-LH.mjs → realtime-BWuHi-UI.mjs} +9 -9
- package/dist/{registerRoute-dnf-JJf-.mjs → registerRoute-mvm6zY2H.mjs} +5 -5
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-ByC0UFNS.mjs → registry-3maEt__c.mjs} +2 -2
- package/dist/{renewingLease-C5Ta_ImD.mjs → renewingLease-C1-GAUpr.mjs} +1 -1
- package/dist/{replyHelpers-D1k0wHoO.mjs → replyHelpers-DVcUoled.mjs} +2 -2
- package/dist/{requestContext-DGM7EZRI.mjs → requestContext-KzIdSmN2.mjs} +1 -1
- package/dist/{rolldown-runtime-DrZrabOW.mjs → rolldown-runtime-NVzJrC-o.mjs} +1 -1
- package/dist/{runtimeCapabilities-c4Sc85X-.mjs → runtimeCapabilities-OrGatf7r.mjs} +1 -1
- package/dist/{schedules-CVtolEa-.mjs → schedules-DeRI03eo.mjs} +3 -3
- package/dist/{schemaConverter-C8zbW7tJ.mjs → schemaConverter-cXTayNOW.mjs} +1 -1
- package/dist/{schemaIR-BfI425RH.mjs → schemaIR-Cc9ZPVs2.mjs} +2 -2
- package/dist/schemas/index.mjs +1 -1
- package/dist/scim/index.mjs +2 -2
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-DFSOKc4T.mjs → scope-C2r7_WGs.mjs} +4 -4
- package/dist/{simpleEqualityMatcher-Bhp7WrRF.mjs → simpleEqualityMatcher-Cr1F8jKZ.mjs} +1 -1
- package/dist/{sse-vRuwDd6N.mjs → sse-BmZCVRGH.mjs} +5 -5
- package/dist/{sseStream-cWezGOk1.mjs → sseStream-nNPqvOeK.mjs} +2 -2
- package/dist/{store-helpers-bU8H5c-A.mjs → store-helpers-C1r3-6M0.mjs} +1 -1
- package/dist/{streaming-weWcFCk4.mjs → streaming-BxZDlH01.mjs} +1 -1
- package/dist/{subscribe-helpers-BrcG3NlV.mjs → subscribe-helpers-Dca7Fcz2.mjs} +2 -2
- package/dist/sync/changelog.mjs +1 -1
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +10 -10
- package/dist/testing/outboxStoreContract.mjs +1 -1
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{transactionContext-Ca5peQpc.mjs → transactionContext-6F7Gkbxg.mjs} +1 -1
- package/dist/{typeGuards-ALWme5WB.mjs → typeGuards-BrXgbFi-.mjs} +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-lDs9oF4z.mjs → types-khJmBErP.mjs} +4 -4
- package/dist/{types-BXnTOsXP.d.mts → types-rzNprqbE.d.mts} +1 -1
- package/dist/usage/index.mjs +0 -0
- package/dist/{userHelpers-DU_Z5OBA.mjs → userHelpers-Bi97zMEl.mjs} +1 -1
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.mjs +11 -11
- package/dist/{utils-sXGFLegw.mjs → utils-WlLDIKuw.mjs} +1230 -1230
- package/dist/{validate-qK_-7MVk.mjs → validate-pMke_boy.mjs} +2 -2
- package/dist/{versioning-Dtw0MyX4.mjs → versioning-CFK3c04-.mjs} +3 -3
- package/package.json +7 -5
- package/skills/arc/references/auth.md +5 -2
- package/skills/arc/references/production.md +733 -733
- package/skills/arc-code-review/references/migration-recipes.md +16 -7
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { r as evaluatePermissionDecision } from "./authorizationDecision-
|
|
3
|
-
import { p as isArcError, t as ArcError } from "./errors-
|
|
4
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
5
|
-
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-
|
|
6
|
-
import { t as BaseController } from "./BaseController-
|
|
7
|
-
import { i as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { r as evaluatePermissionDecision } from "./authorizationDecision-BzZi2bsf.mjs";
|
|
3
|
+
import { p as isArcError, t as ArcError } from "./errors-CbxCF9M0.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue } from "./headers-DivLPMHe.mjs";
|
|
5
|
+
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-khJmBErP.mjs";
|
|
6
|
+
import { t as BaseController } from "./BaseController-Chkf0Aiw.mjs";
|
|
7
|
+
import { i as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-f_MdWDl_.mjs";
|
|
8
|
+
import { t as buildRequestScopeProjection } from "./projection-CRCM5S9T.mjs";
|
|
9
|
+
import { i as resolvePipelineSteps, t as resolveActionPermission } from "./actionPermissions-DGGqqSIV.mjs";
|
|
10
|
+
import { t as executePipeline } from "./pipe-BoV-z4db.mjs";
|
|
11
|
+
import { t as pluralize } from "./pluralize-BiU5ocWw.mjs";
|
|
12
|
+
import { t as createIdempotencyResult } from "./interface-DeLndJ8G.mjs";
|
|
13
|
+
import { r as shouldRejectAdditionalProperties, t as normalizeSchemaIR } from "./schemaIR-Cc9ZPVs2.mjs";
|
|
14
|
+
import { n as validateAggregations } from "./validate-pMke_boy.mjs";
|
|
15
|
+
import { n as executeAggregation } from "./buildHandler-CIz0NsGS.mjs";
|
|
16
16
|
import { isHttpError, toErrorContract } from "@classytic/repo-core/errors";
|
|
17
17
|
import { createHash, randomUUID } from "node:crypto";
|
|
18
18
|
import fp from "fastify-plugin";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
3
|
//#region src/cache/memory.ts
|
|
4
4
|
var memory_exports = /* @__PURE__ */ __exportAll({ MemoryCacheStore: () => MemoryCacheStore });
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/plugins/metrics.ts
|
|
5
5
|
var metrics_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { I as MiddlewareHandler, L as RequestWithExtras, Q as MiddlewareConfig } from "../index-
|
|
2
|
+
import { I as MiddlewareHandler, L as RequestWithExtras, Q as MiddlewareConfig } from "../index-BqRfP1kT.mjs";
|
|
3
3
|
import { RouteHandlerMethod } from "fastify";
|
|
4
4
|
//#region src/middleware/middleware.d.ts
|
|
5
5
|
interface NamedMiddleware {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "../constants-
|
|
3
|
-
import { t as multipartBody } from "../multipartBody-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "../constants-DDKf25s4.mjs";
|
|
3
|
+
import { t as multipartBody } from "../multipartBody-TDaYOHGZ.mjs";
|
|
4
4
|
//#region src/middleware/middleware.ts
|
|
5
5
|
/**
|
|
6
6
|
* Named Middleware — Priority-based, conditional middleware execution.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as startRenewingLease } from "../renewingLease-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as startRenewingLease } from "../renewingLease-C1-GAUpr.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/migrations/index.ts
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
3
|
-
import { n as convertRouteSchema } from "./schemaConverter-
|
|
4
|
-
import { t as resolveActionPermission } from "./actionPermissions-
|
|
5
|
-
import { t as pluralize } from "./pluralize-
|
|
6
|
-
import { t as buildActionBodySchema } from "./createActionRouter-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { n as getUserRoles } from "./userHelpers-Bi97zMEl.mjs";
|
|
3
|
+
import { n as convertRouteSchema } from "./schemaConverter-cXTayNOW.mjs";
|
|
4
|
+
import { t as resolveActionPermission } from "./actionPermissions-DGGqqSIV.mjs";
|
|
5
|
+
import { t as pluralize } from "./pluralize-BiU5ocWw.mjs";
|
|
6
|
+
import { t as buildActionBodySchema } from "./createActionRouter-C22Xn11N.mjs";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
//#region src/docs/openapi/canonical-schemas.ts
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { i as NotFoundError, u as ValidationError } from "../errors-
|
|
3
|
-
import { t as defineResource } from "../defineResource-
|
|
4
|
-
import { n as getModuleExports, t as defineModule } from "../module-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-CbxCF9M0.mjs";
|
|
3
|
+
import { t as defineResource } from "../defineResource-DS3Uj2-8.mjs";
|
|
4
|
+
import { n as getModuleExports, t as defineModule } from "../module-CNKk_twm.mjs";
|
|
5
5
|
//#region src/outbox-admin/module.ts
|
|
6
6
|
/**
|
|
7
7
|
* Strip the domain payload and the stack unless explicitly opted in.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as transactionContext } from "./transactionContext-
|
|
3
|
-
import { i as resolveEventTransport } from "./EventTransport-
|
|
4
|
-
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as transactionContext } from "./transactionContext-6F7Gkbxg.mjs";
|
|
3
|
+
import { i as resolveEventTransport } from "./EventTransport-CFdtK25P.mjs";
|
|
4
|
+
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-C1r3-6M0.mjs";
|
|
5
5
|
import { and, anyOf, eq, lte, ne, or } from "@classytic/repo-core/filter";
|
|
6
6
|
import { randomBytes } from "node:crypto";
|
|
7
7
|
import { InvalidOutboxEventError, OutboxOwnershipError } from "@classytic/primitives/outbox";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { a as conjoinPolicyFilters, i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-
|
|
3
|
-
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-
|
|
4
|
-
import { i as resolveEffectiveRoles, n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "../fields-
|
|
5
|
-
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.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { a as conjoinPolicyFilters, i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-BzZi2bsf.mjs";
|
|
3
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-Bi97zMEl.mjs";
|
|
4
|
+
import { i as resolveEffectiveRoles, n as applyFieldWritePermissions, r as fields, t as applyFieldReadPermissions } from "../fields-f_MdWDl_.mjs";
|
|
5
|
+
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-DnAc6zoZ.mjs";
|
|
6
6
|
export { GRANT_MODES, adminOnly, allOf, allow, allowPublic, anyOf, applyAuthorizationDecision, applyFieldReadPermissions, applyFieldWritePermissions, authenticated, buildPermissionMatrix, collectPublicSurface, conjoinPolicyFilters, createDynamicPermissionMatrix, 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, roles, scopeOf, when };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
3
|
import { arcLog } from "./logger/index.mjs";
|
|
4
|
-
import { a as conjoinPolicyFilters, i as normalizeToDecision } from "./authorizationDecision-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
6
|
-
import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-
|
|
7
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
4
|
+
import { a as conjoinPolicyFilters, i as normalizeToDecision } from "./authorizationDecision-BzZi2bsf.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-Bi97zMEl.mjs";
|
|
6
|
+
import { C as isService, S as isOrgInScope, a as getDPoPJkt, b as isElevated, d as getScopeContext, f as getScopeContextMap, g as getUserId, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, u as getRequestScope, v as hasOrgAccess, x as isMember } from "./types-khJmBErP.mjs";
|
|
7
|
+
import { t as MemoryCacheStore } from "./memory-DvASzOn3.mjs";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
//#region src/permissions/context.ts
|
|
10
10
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { r as ForbiddenError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-CbxCF9M0.mjs";
|
|
3
3
|
//#region src/pipeline/pipe.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compose pipeline steps into an ordered array.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { Ct as PipelineStep, Fn as IControllerResponse, St as PipelineContext, _t as Guard, bt as OperationFilter, vt as Interceptor, wt as Transform, xt as PipelineConfig, yt as NextFunction } from "../index-
|
|
2
|
+
import { Ct as PipelineStep, Fn as IControllerResponse, St as PipelineContext, _t as Guard, bt as OperationFilter, vt as Interceptor, wt as Transform, xt as PipelineConfig, yt as NextFunction } from "../index-BqRfP1kT.mjs";
|
|
3
3
|
//#region src/pipeline/guard.d.ts
|
|
4
4
|
interface GuardOptions {
|
|
5
5
|
operations?: OperationFilter;
|
package/dist/pipeline/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { n as pipe, t as executePipeline } from "../pipe-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-BoV-z4db.mjs";
|
|
3
3
|
//#region src/pipeline/guard.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a named guard.
|
package/dist/plugins/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as AnyRecord } from "../base-C-NL2fTi.mjs";
|
|
3
|
-
import { At as RouteDefinition, J as PresetHook, Q as MiddlewareConfig, et as RouteSchemaOptions } from "../index-
|
|
3
|
+
import { At as RouteDefinition, J as PresetHook, Q as MiddlewareConfig, et as RouteSchemaOptions } from "../index-BqRfP1kT.mjs";
|
|
4
4
|
import { i as errorHandlerPlugin, n as ErrorMapper, r as defaultIsDuplicateKeyError, t as ErrorHandlerOptions } from "../errorHandler-DI5AN2b5.mjs";
|
|
5
5
|
import { _ as HealthCheck, b as healthPlugin, f as ScheduleDefinition, g as schedulesPlugin, h as _default$8, m as SchedulesPluginOptions, p as ScheduleStats, v as HealthOptions, y as _default$3 } from "../types-BMa2EPtv.mjs";
|
|
6
|
-
import { a as arcCorePlugin, i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-
|
|
6
|
+
import { a as arcCorePlugin, i as _default, n as ArcCorePluginOptions, r as PluginMeta, t as ArcCore } from "../fastify-augmentation-CRsNNhuo.mjs";
|
|
7
7
|
import { _ as CachingRule, a as MetricsCollector, c as metricsPlugin, d as _default$6, f as realtimePlugin, g as CachingOptions, h as ssePlugin, i as MetricEntry, l as ChangeOperation, m as _default$9, n as _default$10, o as MetricsOptions, p as SSEOptions, r as versioningPlugin, s as _default$4, t as VersioningOptions, u as RealtimeOptions, v as _default$1, y as cachingPlugin } from "../versioning-DEs-_hFi.mjs";
|
|
8
8
|
import { t as TracingOptions } from "../tracing-Dro5eH6j.mjs";
|
|
9
9
|
import { PaginatedResult } from "@classytic/repo-core/pagination";
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { p as MUTATION_OPERATIONS } from "../constants-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { p as MUTATION_OPERATIONS } from "../constants-DDKf25s4.mjs";
|
|
3
3
|
import { arcLog } from "../logger/index.mjs";
|
|
4
|
-
import { c as getOrgId } from "../types-
|
|
5
|
-
import { n as requestContext } from "../requestContext-
|
|
6
|
-
import { t as hasEvents } from "../typeGuards-
|
|
7
|
-
import { t as HookSystem } from "../HookSystem-
|
|
8
|
-
import { t as ResourceRegistry } from "../ResourceRegistry-
|
|
9
|
-
import { a as requestIdPlugin, i as createRequestIdGenerator, n as health_default, o as requestId_default, s as sanitizeRequestId, t as healthPlugin } from "../health-
|
|
10
|
-
import { n as caching_default, t as cachingPlugin } from "../caching-
|
|
11
|
-
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-
|
|
12
|
-
import { n as metrics_default, t as metricsPlugin } from "../metrics-
|
|
13
|
-
import { n as realtime_default, t as realtimePlugin } from "../realtime-
|
|
14
|
-
import { t as replyHelpersPlugin } from "../replyHelpers-
|
|
15
|
-
import { n as schedules_default, t as schedulesPlugin } from "../schedules-
|
|
16
|
-
import { n as sse_default, t as ssePlugin } from "../sse-
|
|
17
|
-
import { n as versioning_default, t as versioningPlugin } from "../versioning-
|
|
4
|
+
import { c as getOrgId } from "../types-khJmBErP.mjs";
|
|
5
|
+
import { n as requestContext } from "../requestContext-KzIdSmN2.mjs";
|
|
6
|
+
import { t as hasEvents } from "../typeGuards-BrXgbFi-.mjs";
|
|
7
|
+
import { t as HookSystem } from "../HookSystem-Csy31WS-.mjs";
|
|
8
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-OQA13slI.mjs";
|
|
9
|
+
import { a as requestIdPlugin, i as createRequestIdGenerator, n as health_default, o as requestId_default, s as sanitizeRequestId, t as healthPlugin } from "../health-W_BjgWf0.mjs";
|
|
10
|
+
import { n as caching_default, t as cachingPlugin } from "../caching-DldVgnC9.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-BmEGKyO9.mjs";
|
|
12
|
+
import { n as metrics_default, t as metricsPlugin } from "../metrics-Dx-nkDE5.mjs";
|
|
13
|
+
import { n as realtime_default, t as realtimePlugin } from "../realtime-BWuHi-UI.mjs";
|
|
14
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-DVcUoled.mjs";
|
|
15
|
+
import { n as schedules_default, t as schedulesPlugin } from "../schedules-DeRI03eo.mjs";
|
|
16
|
+
import { n as sse_default, t as ssePlugin } from "../sse-BmZCVRGH.mjs";
|
|
17
|
+
import { n as versioning_default, t as versioningPlugin } from "../versioning-CFK3c04-.mjs";
|
|
18
18
|
import fp from "fastify-plugin";
|
|
19
19
|
import { performance as performance$1 } from "node:perf_hooks";
|
|
20
20
|
//#region src/core/arcCorePlugin.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as hasEvents } from "../typeGuards-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as hasEvents } from "../typeGuards-BrXgbFi-.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/plugins/response-cache.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/plugins/tracing.ts
|
|
@@ -59,7 +59,7 @@ try {
|
|
|
59
59
|
function createTracerProvider(options) {
|
|
60
60
|
if (!isAvailable || !NodeTracerProvider || !BatchSpanProcessor || !OTLPTraceExporter) return null;
|
|
61
61
|
const { serviceName = "@classytic/arc", serviceVersion, exporterUrl = "http://localhost:4318/v1/traces" } = options;
|
|
62
|
-
const resolvedVersion = serviceVersion ?? "2.37.
|
|
62
|
+
const resolvedVersion = serviceVersion ?? "2.37.1";
|
|
63
63
|
const exporter = new OTLPTraceExporter({ url: exporterUrl });
|
|
64
64
|
const provider = new NodeTracerProvider({ resource: { attributes: {
|
|
65
65
|
"service.name": serviceName,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { It as Authenticator } from "./index-
|
|
2
|
+
import { It as Authenticator } from "./index-BqRfP1kT.mjs";
|
|
3
3
|
import { r as CacheStore } from "./interface-BOk3YnTz.mjs";
|
|
4
4
|
import { n as ElevationOptions } from "./elevation-BXCfVcNG.mjs";
|
|
5
5
|
import { a as EventTransport } from "./EventTransport-BEVP50ka.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
3
|
import { arcLog, configureArcLogger, createPinoWriter, enterArcLoggerScope, runWithArcLogger } from "./logger/index.mjs";
|
|
4
|
-
import { n as PUBLIC_SCOPE } from "./types-
|
|
5
|
-
import { t as auditRuntimeCapabilities } from "./runtimeCapabilities-
|
|
6
|
-
import { t as createTenantKeyGenerator } from "./rateLimitKey-
|
|
7
|
-
import { i as createRequestIdGenerator, r as mergeHealthChecks } from "./health-
|
|
8
|
-
import { t as parseJsonBody } from "./jsonBody-
|
|
9
|
-
import { r as wrapWithBoundary } from "./subscribe-helpers-
|
|
4
|
+
import { n as PUBLIC_SCOPE } from "./types-khJmBErP.mjs";
|
|
5
|
+
import { t as auditRuntimeCapabilities } from "./runtimeCapabilities-OrGatf7r.mjs";
|
|
6
|
+
import { t as createTenantKeyGenerator } from "./rateLimitKey-D4_rjP1K.mjs";
|
|
7
|
+
import { i as createRequestIdGenerator, r as mergeHealthChecks } from "./health-W_BjgWf0.mjs";
|
|
8
|
+
import { t as parseJsonBody } from "./jsonBody-kApktjTc.mjs";
|
|
9
|
+
import { r as wrapWithBoundary } from "./subscribe-helpers-Dca7Fcz2.mjs";
|
|
10
10
|
import { isProductionEnv } from "@classytic/primitives/environment";
|
|
11
11
|
import Fastify from "fastify";
|
|
12
12
|
import qs from "qs";
|
|
@@ -851,7 +851,7 @@ async function registerArcCore(fastify, config, trackPlugin) {
|
|
|
851
851
|
await fastify.register(arcCorePlugin, { emitEvents: config.arcPlugins?.emitEvents !== false });
|
|
852
852
|
trackPlugin("arc-core");
|
|
853
853
|
if (config.arcPlugins?.events !== false) {
|
|
854
|
-
const { default: eventPlugin } = await import("./eventPlugin-
|
|
854
|
+
const { default: eventPlugin } = await import("./eventPlugin-B1ahehZH.mjs").then((n) => n.n);
|
|
855
855
|
const eventOpts = typeof config.arcPlugins?.events === "object" ? config.arcPlugins.events : {};
|
|
856
856
|
await fastify.register(eventPlugin, {
|
|
857
857
|
/**
|
|
@@ -910,15 +910,15 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
910
910
|
trackPlugin("arc-graceful-shutdown");
|
|
911
911
|
}
|
|
912
912
|
if (config.arcPlugins?.caching) {
|
|
913
|
-
const { default: cachingPlugin } = await import("./caching-
|
|
913
|
+
const { default: cachingPlugin } = await import("./caching-DldVgnC9.mjs").then((n) => n.r);
|
|
914
914
|
const opts = config.arcPlugins.caching === true ? {} : config.arcPlugins.caching;
|
|
915
915
|
await fastify.register(cachingPlugin, opts);
|
|
916
916
|
trackPlugin("arc-caching", opts);
|
|
917
917
|
}
|
|
918
918
|
if (config.arcPlugins?.queryCache) {
|
|
919
|
-
const { queryCachePlugin } = await import("./queryCachePlugin-
|
|
919
|
+
const { queryCachePlugin } = await import("./queryCachePlugin-Cl3zLG7g.mjs").then((n) => n.n);
|
|
920
920
|
const opts = config.arcPlugins.queryCache === true ? {} : config.arcPlugins.queryCache;
|
|
921
|
-
const store = config.stores?.queryCache ?? new (await (import("./memory-
|
|
921
|
+
const store = config.stores?.queryCache ?? new (await (import("./memory-DvASzOn3.mjs").then((n) => n.n))).MemoryCacheStore();
|
|
922
922
|
await fastify.register(queryCachePlugin, {
|
|
923
923
|
store,
|
|
924
924
|
...opts
|
|
@@ -928,7 +928,7 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
928
928
|
if (config.arcPlugins?.sse) {
|
|
929
929
|
if (config.arcPlugins?.events === false) fastify.log.warn("SSE plugin requires events plugin (arcPlugins.events). SSE disabled.");
|
|
930
930
|
else {
|
|
931
|
-
const { default: ssePlugin } = await import("./sse-
|
|
931
|
+
const { default: ssePlugin } = await import("./sse-BmZCVRGH.mjs").then((n) => n.r);
|
|
932
932
|
const opts = config.arcPlugins.sse === true ? {} : config.arcPlugins.sse;
|
|
933
933
|
await fastify.register(ssePlugin, opts);
|
|
934
934
|
trackPlugin("arc-sse", opts);
|
|
@@ -937,20 +937,20 @@ async function registerArcPlugins(fastify, config, trackPlugin, modules, moduleH
|
|
|
937
937
|
if (config.arcPlugins?.realtime) {
|
|
938
938
|
if (config.arcPlugins?.events === false) fastify.log.warn("Realtime plugin requires events plugin (arcPlugins.events). Realtime disabled.");
|
|
939
939
|
else {
|
|
940
|
-
const { default: realtimePlugin } = await import("./realtime-
|
|
940
|
+
const { default: realtimePlugin } = await import("./realtime-BWuHi-UI.mjs").then((n) => n.r);
|
|
941
941
|
const opts = config.arcPlugins.realtime === true ? {} : config.arcPlugins.realtime;
|
|
942
942
|
await fastify.register(realtimePlugin, opts);
|
|
943
943
|
trackPlugin("arc-realtime", opts);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
if (config.arcPlugins?.metrics) {
|
|
947
|
-
const { default: metricsPlugin } = await import("./metrics-
|
|
947
|
+
const { default: metricsPlugin } = await import("./metrics-Dx-nkDE5.mjs").then((n) => n.r);
|
|
948
948
|
const opts = config.arcPlugins.metrics === true ? {} : config.arcPlugins.metrics;
|
|
949
949
|
await fastify.register(metricsPlugin, opts);
|
|
950
950
|
trackPlugin("arc-metrics", opts);
|
|
951
951
|
}
|
|
952
952
|
if (config.arcPlugins?.versioning) {
|
|
953
|
-
const { default: versioningPlugin } = await import("./versioning-
|
|
953
|
+
const { default: versioningPlugin } = await import("./versioning-CFK3c04-.mjs").then((n) => n.r);
|
|
954
954
|
await fastify.register(versioningPlugin, config.arcPlugins.versioning);
|
|
955
955
|
trackPlugin("arc-versioning", config.arcPlugins.versioning);
|
|
956
956
|
}
|
|
@@ -1027,7 +1027,7 @@ async function registerAuth(fastify, config, trackPlugin) {
|
|
|
1027
1027
|
*/
|
|
1028
1028
|
async function registerElevation(fastify, config, trackPlugin) {
|
|
1029
1029
|
if (!config.elevation) return;
|
|
1030
|
-
const { elevationPlugin } = await import("./elevation-
|
|
1030
|
+
const { elevationPlugin } = await import("./elevation-9X0lGzTQ.mjs").then((n) => n.r);
|
|
1031
1031
|
await fastify.register(elevationPlugin, config.elevation);
|
|
1032
1032
|
trackPlugin("arc-elevation", config.elevation);
|
|
1033
1033
|
fastify.log.debug("Elevation plugin enabled");
|
|
@@ -1042,7 +1042,7 @@ async function registerElevation(fastify, config, trackPlugin) {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
async function registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers) {
|
|
1044
1044
|
if (config.errorHandler === false) return;
|
|
1045
|
-
const { errorHandlerPlugin } = await import("./errorHandler-
|
|
1045
|
+
const { errorHandlerPlugin } = await import("./errorHandler-BmEGKyO9.mjs").then((n) => n.r);
|
|
1046
1046
|
/**
|
|
1047
1047
|
* DISCLOSURE DEFAULTS MERGE — they used to be REPLACED, and that was two bugs.
|
|
1048
1048
|
*
|
|
@@ -1266,7 +1266,7 @@ async function registerResources(fastify, config, preResolvedModules) {
|
|
|
1266
1266
|
let discoveryPath;
|
|
1267
1267
|
let discoveryYieldedZero = false;
|
|
1268
1268
|
if (resolvedResources === void 0 && config.resourceDir) {
|
|
1269
|
-
const { loadResources } = await import("./loadResources-
|
|
1269
|
+
const { loadResources } = await import("./loadResources-ma-Aaxp1.mjs").then((n) => n.n);
|
|
1270
1270
|
const { resolve, dirname } = await import("node:path");
|
|
1271
1271
|
const { fileURLToPath } = await import("node:url");
|
|
1272
1272
|
const rawDir = config.resourceDir;
|
|
@@ -1392,7 +1392,7 @@ Resources supplied by "${m.name}": ${provided}.`);
|
|
|
1392
1392
|
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.");
|
|
1393
1393
|
const frozenJobs = Object.freeze(scheduledJobs.map((job) => Object.freeze({ ...job })));
|
|
1394
1394
|
const scheduleOptions = typeof config.arcPlugins?.schedules === "object" ? config.arcPlugins.schedules : {};
|
|
1395
|
-
const { default: schedulesPlugin } = await import("./schedules-
|
|
1395
|
+
const { default: schedulesPlugin } = await import("./schedules-DeRI03eo.mjs").then((n) => n.r);
|
|
1396
1396
|
await fastify.register(schedulesPlugin, {
|
|
1397
1397
|
...scheduleOptions,
|
|
1398
1398
|
schedules: frozenJobs
|
|
@@ -1999,7 +1999,7 @@ async function buildApp(options, loggerScope, onInstance) {
|
|
|
1999
1999
|
await registerErrorHandler(fastify, config, trackPlugin, moduleErrorMappers);
|
|
2000
2000
|
await registerResources(fastify, config, resolvedModules);
|
|
2001
2001
|
if (config.replyHelpers) {
|
|
2002
|
-
const { replyHelpersPlugin } = await import("./replyHelpers-
|
|
2002
|
+
const { replyHelpersPlugin } = await import("./replyHelpers-DVcUoled.mjs").then((n) => n.n);
|
|
2003
2003
|
await fastify.register(replyHelpersPlugin);
|
|
2004
2004
|
}
|
|
2005
2005
|
if (config.serializeBigInt) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { i as RequestScope } from "../types-Ddl9OjmE.mjs";
|
|
3
3
|
import { l as PermissionCheck } from "../base-C-NL2fTi.mjs";
|
|
4
|
-
import { Y as PresetResult } from "../index-
|
|
4
|
+
import { Y as PresetResult } from "../index-BqRfP1kT.mjs";
|
|
5
5
|
import { a as StorageReadResult, i as StorageReadRange, n as StorageContext, o as StorageUploadInput, r as StorageFile, t as Storage } from "../storage-Cx9Sz3Ou.mjs";
|
|
6
6
|
//#region src/presets/filesUpload.d.ts
|
|
7
7
|
interface FilesUploadPresetRoutes {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { i as NotFoundError, u as ValidationError } from "../errors-
|
|
3
|
-
import { c as getOrgId, g as getUserId } from "../types-
|
|
4
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
5
|
-
import { t as multipartBody } from "../multipartBody-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-CbxCF9M0.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId } from "../types-khJmBErP.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-DnAc6zoZ.mjs";
|
|
5
|
+
import { t as multipartBody } from "../multipartBody-TDaYOHGZ.mjs";
|
|
6
6
|
//#region src/presets/filesUpload.ts
|
|
7
7
|
const DEFAULT_FIELD_NAME = "file";
|
|
8
8
|
const DEFAULT_MAX_FILE_SIZE = 10485760;
|
package/dist/presets/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as AnyRecord } from "../base-C-NL2fTi.mjs";
|
|
3
|
-
import { Fn as IControllerResponse, In as IRequestContext, U as ResourceConfig, Y as PresetResult, d as PaginationResult } from "../index-
|
|
3
|
+
import { Fn as IControllerResponse, In as IRequestContext, U as ResourceConfig, Y as PresetResult, d as PaginationResult } from "../index-BqRfP1kT.mjs";
|
|
4
4
|
import { FilesUploadPresetOptions, FilesUploadPresetPermissions, FilesUploadPresetRoutes, filesUploadPreset } from "./filesUpload.mjs";
|
|
5
5
|
import { MultiTenantOptions, TenantFieldSpec, multiTenantPreset } from "./multiTenant.mjs";
|
|
6
6
|
import { SearchHandler, SearchPresetOptions, SearchRouteConfig, searchPreset } from "./search.mjs";
|
package/dist/presets/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
2
|
import { multiTenantPreset } from "./multiTenant.mjs";
|
|
3
|
-
import { a as registerPreset, c as auditedPreset, d as ownedByUserPreset, i as getPreset, l as softDeletePreset, n as flexibleMultiTenantPreset, o as treePreset, r as getAvailablePresets, s as bulkPreset, t as applyPresets, u as slugLookupPreset } from "../presets-
|
|
3
|
+
import { a as registerPreset, c as auditedPreset, d as ownedByUserPreset, i as getPreset, l as softDeletePreset, n as flexibleMultiTenantPreset, o as treePreset, r as getAvailablePresets, s as bulkPreset, t as applyPresets, u as slugLookupPreset } from "../presets-BMxH-Bb7.mjs";
|
|
4
4
|
import { filesUploadPreset } from "./filesUpload.mjs";
|
|
5
5
|
import { searchPreset } from "./search.mjs";
|
|
6
6
|
export { applyPresets, auditedPreset, bulkPreset, filesUploadPreset, flexibleMultiTenantPreset, getAvailablePresets, getPreset, multiTenantPreset, ownedByUserPreset, registerPreset, searchPreset, slugLookupPreset, softDeletePreset, treePreset };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { X as CrudRouteKey, Y as PresetResult } from "../index-
|
|
2
|
+
import { X as CrudRouteKey, Y as PresetResult } from "../index-BqRfP1kT.mjs";
|
|
3
3
|
//#region src/presets/multiTenant.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* One tenant dimension for multi-field filtering. Discriminated by source:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, u as getRequestScope, v as hasOrgAccess } from "../types-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-DDKf25s4.mjs";
|
|
3
|
+
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, u as getRequestScope, v as hasOrgAccess } from "../types-khJmBErP.mjs";
|
|
4
4
|
//#region src/presets/multiTenant.ts
|
|
5
5
|
/**
|
|
6
6
|
* Resolve a single TenantFieldSpec against the current scope.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { l as PermissionCheck } from "../base-C-NL2fTi.mjs";
|
|
3
|
-
import { At as RouteDefinition, Y as PresetResult, jn as ControllerHandler, jt as RouteMcpConfig } from "../index-
|
|
3
|
+
import { At as RouteDefinition, Y as PresetResult, jn as ControllerHandler, jt as RouteMcpConfig } from "../index-BqRfP1kT.mjs";
|
|
4
4
|
//#region src/presets/search.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Search Preset — backend-agnostic search / vector / embed routes
|
package/dist/presets/search.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-DnAc6zoZ.mjs";
|
|
3
3
|
//#region src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { l as UnauthorizedError } from "./errors-
|
|
3
|
-
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-
|
|
4
|
-
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError } from "./errors-CbxCF9M0.mjs";
|
|
3
|
+
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-khJmBErP.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-DnAc6zoZ.mjs";
|
|
5
5
|
import { multiTenantPreset } from "./presets/multiTenant.mjs";
|
|
6
6
|
//#region src/presets/ownedByUser.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-khJmBErP.mjs";
|
|
3
3
|
//#region src/scope/projection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute the request-scope projection. Returns `undefined` when no
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
|
+
import { i as versionKey, r as tagVersionKey } from "./keys-B1MgfDWi.mjs";
|
|
4
|
+
import { t as hasEvents } from "./typeGuards-BrXgbFi-.mjs";
|
|
5
|
+
import { t as MemoryCacheStore } from "./memory-DvASzOn3.mjs";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
//#region src/cache/QueryCache.ts
|
|
8
8
|
var QueryCache = class {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-NVzJrC-o.mjs";
|
|
3
3
|
import { arcLog } from "./logger/index.mjs";
|
|
4
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
6
|
-
import { c as getOrgId } from "./types-
|
|
7
|
-
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-
|
|
8
|
-
import { t as applyFieldReadPermissions } from "./fields-
|
|
9
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
10
|
-
import { t as openSseStream } from "./sseStream-
|
|
4
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-BzZi2bsf.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-Bi97zMEl.mjs";
|
|
6
|
+
import { c as getOrgId } from "./types-khJmBErP.mjs";
|
|
7
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-Cr1F8jKZ.mjs";
|
|
8
|
+
import { t as applyFieldReadPermissions } from "./fields-f_MdWDl_.mjs";
|
|
9
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-BxZDlH01.mjs";
|
|
10
|
+
import { t as openSseStream } from "./sseStream-nNPqvOeK.mjs";
|
|
11
11
|
import fp from "fastify-plugin";
|
|
12
12
|
//#region src/plugins/realtime.ts
|
|
13
13
|
var realtime_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.37.
|
|
2
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
3
|
-
import { f as createError } from "./errors-
|
|
4
|
-
import { u as getRequestScope } from "./types-
|
|
5
|
-
import { n as requestContext } from "./requestContext-
|
|
1
|
+
/*! @classytic/arc v2.37.1 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-BzZi2bsf.mjs";
|
|
3
|
+
import { f as createError } from "./errors-CbxCF9M0.mjs";
|
|
4
|
+
import { u as getRequestScope } from "./types-khJmBErP.mjs";
|
|
5
|
+
import { n as requestContext } from "./requestContext-KzIdSmN2.mjs";
|
|
6
6
|
//#region src/core/middlewares/arcDecorator.ts
|
|
7
7
|
/**
|
|
8
8
|
* Build the `arcDecorator` preHandler for a resource.
|