@classytic/arc 2.50.0 → 2.51.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-B18mcj_M.mjs → EventTransport-K7Q9WPjm.mjs} +2 -2
- package/dist/{HookSystem-FUBaLTRm.mjs → HookSystem-DBAu9uNT.mjs} +2 -2
- package/dist/{ResourceRegistry-C5NM07fZ.mjs → ResourceRegistry-BelzCRMy.mjs} +2 -2
- package/dist/{acquire-MHCnbDtH.mjs → acquire-B0zhfGSm.mjs} +1 -1
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.d.mts +30 -0
- package/dist/auth/index.mjs +172 -32
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/auth/social/index.d.mts +42 -0
- package/dist/auth/social/index.mjs +311 -0
- package/dist/{authorizationDecision-BD8K4jdQ.mjs → authorizationDecision-Dxj_cy6N.mjs} +4 -4
- package/dist/{boundedMap-CuCwos_X.mjs → boundedMap-DOBai-H3.mjs} +1 -1
- package/dist/{buildHandler-BttjNkTM.mjs → buildHandler-Dyl8P9j0.mjs} +5 -5
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-CxUQLHfR.mjs → caching-CUmaNL8Y.mjs} +2 -2
- package/dist/{claimed-CQ4ZpD8K.mjs → claimed-DJPk4VZr.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-BZFsZwJh.mjs → constants-DH41jnNT.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.mjs +7 -7
- package/dist/{core-DWA1-5IE.mjs → core-DPmRWlpx.mjs} +3 -3
- package/dist/{createActionRouter-fP3l2xVF.mjs → createActionRouter-B1xhER6i.mjs} +5 -5
- package/dist/{createAggregationRouter-BJZeOmBa.mjs → createAggregationRouter-CNntJL-z.mjs} +7 -7
- package/dist/{createApp-Db9JRumw.mjs → createApp-DpG26bCu.mjs} +29 -29
- package/dist/{defineAggregation-BskqRz8M.mjs → defineAggregation-rI3EbZUg.mjs} +1 -1
- package/dist/{defineResource-B2vTvKzW.mjs → defineResource-5DcG_wlI.mjs} +8 -8
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-XoY0C73T.mjs → elevation-XFu7J3aj.mjs} +5 -5
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-BYI-JQMm.mjs → errorHandler-xDVUWOMu.mjs} +3 -3
- package/dist/{errors-3xaK0i9n.mjs → errors-KBZ3tQk5.mjs} +1 -1
- package/dist/{eventPlugin-CVQ9ddnL.mjs → eventPlugin-C4lNj2Dw.mjs} +8 -8
- package/dist/{eventTypes-UPYg7gW1.mjs → eventTypes-DZRoUAdk.mjs} +2 -2
- package/dist/events/index.mjs +8 -8
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.mjs +2 -2
- package/dist/factory/index.mjs +6 -6
- package/dist/{fieldTypes-CxRvCaaZ.mjs → fieldTypes-DrXUW1jc.mjs} +2 -2
- package/dist/{fields-DLFcJiDe.mjs → fields-C5J8WTd2.mjs} +1 -1
- package/dist/{filter-merge-Bvjk_8dV.mjs → filter-merge-DTjYoDrj.mjs} +1 -1
- package/dist/{generate-0OpCUjUv.mjs → generate-SA8oMlLB.mjs} +2 -2
- package/dist/{headers-BROW65-r.mjs → headers-D5wrBLOk.mjs} +2 -2
- package/dist/{health-Cy6aOg1i.mjs → health-BLal039H.mjs} +1 -1
- package/dist/{health-Cfh-kYI_.mjs → health-vEo3fni4.mjs} +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/http-cache/index.mjs +4 -4
- package/dist/http-cache/purgers/cloudflare.mjs +2 -2
- package/dist/http-cache/purgers/fastly.mjs +2 -2
- package/dist/http-cache/testing/index.mjs +1 -1
- package/dist/idempotency/index.mjs +7 -7
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/index.mjs +11 -11
- package/dist/{init-D7PQcvvL.mjs → init-DeKHaNZn.mjs} +22 -22
- 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-C0oREwUc.mjs → jsonBody-rDPGT5A9.mjs} +2 -2
- package/dist/{keys-CGlPoVSn.mjs → keys-t7i-lJ2r.mjs} +1 -1
- package/dist/{loadResources-Oi47dogA.mjs → loadResources-CcupAVJH.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-BW-LexBz.mjs → loadResourcesFromEntry-BpjYlaoj.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-BagW7_YA.mjs → logger-IL7Btm-N.mjs} +1 -1
- package/dist/{mcpPlugin-C6-wFsOX.mjs → mcpPlugin-BsdH7Vot.mjs} +21 -21
- package/dist/{memory-Bl7kv6TS.mjs → memory-Dkp6ZD3F.mjs} +3 -3
- package/dist/{metrics-CqnMJKrJ.mjs → metrics-CDPqgdKr.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-lbEbHUfI.mjs → module-KFxT1Iuk.mjs} +1 -1
- package/dist/{multipartBody-CqNezaB3.mjs → multipartBody-BHktuarE.mjs} +1 -1
- package/dist/{observeSend-BjilzlYl.mjs → observeSend-CY-sLanc.mjs} +1 -1
- package/dist/{openapi-DXNbadgd.mjs → openapi-DbeXiy2v.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-k5rIszQ4.mjs → outbox-module-BWqkTE8-.mjs} +7 -7
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-BJylQopQ.mjs → permissions-e5YMrFbm.mjs} +9 -9
- package/dist/{pipe-D1cq8hET.mjs → pipe-CMnKfdF4.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-iEgaS5_H.mjs → plan-BvLJGm3U.mjs} +1 -1
- package/dist/{plugin-DsLr6L4O.mjs → plugin-DYmu8uT4.mjs} +24 -24
- package/dist/plugins/index.mjs +18 -18
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-CX4ZvwCa.mjs → pluralize-ClwfBdIx.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-D_suT4OY.mjs → presets-DX_lPabi.mjs} +4 -4
- package/dist/{projection-CmjGjFih.mjs → projection-DnZiFPPE.mjs} +2 -2
- package/dist/{purger.types-CZwkTZ7B.mjs → purger.types-BEzTVDOU.mjs} +1 -1
- package/dist/{queryCachePlugin-BDOPEAmH.mjs → queryCachePlugin-C57-Nj-g.mjs} +6 -6
- package/dist/{rateLimitKey-igF1x64n.mjs → rateLimitKey-B1RxyGt3.mjs} +1 -1
- package/dist/{realtime-Cq_ugiWw.mjs → realtime-C-VIoXMg.mjs} +11 -11
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-DmF9Akvn.mjs → registry-DbQvODPH.mjs} +2 -2
- package/dist/{relay-DA89IhFt.mjs → relay-B61seKq1.mjs} +5 -5
- package/dist/{renewingLease-DBtGUt8T.mjs → renewingLease-Dp7wmzNN.mjs} +1 -1
- package/dist/{replyHelpers-CUbeUc5q.mjs → replyHelpers-CHii_jIO.mjs} +2 -2
- package/dist/{requestContext-DO9Qv0gw.mjs → requestContext-C_mbAm8o.mjs} +1 -1
- package/dist/{requirement-C3GaQmkR.mjs → requirement-C8OsWLYp.mjs} +1 -1
- package/dist/{resourceRateLimit-KKn-sFhb.mjs → resourceRateLimit-DhbQZjE2.mjs} +2 -2
- package/dist/{rolldown-runtime-Ck1Tj4Ax.mjs → rolldown-runtime-HTi8KV7V.mjs} +1 -1
- package/dist/{routeValidator-BF7n34xV.mjs → routeValidator-DnQ2BGnH.mjs} +1 -1
- package/dist/{runtimeCapabilities-D0A4kkrC.mjs → runtimeCapabilities-G9QXHov1.mjs} +1 -1
- package/dist/{schedules-CLrQRSTt.mjs → schedules-DAthT5O3.mjs} +5 -5
- package/dist/{schemaConverter-JEmU21fu.mjs → schemaConverter-BOt_ed78.mjs} +2 -2
- package/dist/{schemaIR-wOffQlbq.mjs → schemaIR-MZVVj6Cw.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-CcTMRd7s.mjs → scope-btg-225w.mjs} +4 -4
- package/dist/{shutdown-BIR-QBYM.mjs → shutdown-Dfy8La90.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-DqqJqovq.mjs → simpleEqualityMatcher-D5dOqbbj.mjs} +1 -1
- package/dist/{sse-OEuPpgss.mjs → sse-DivxX1m6.mjs} +7 -7
- package/dist/{sseStream-DknHE2K5.mjs → sseStream-hQxQjvre.mjs} +2 -2
- package/dist/{store-helpers-D4vtEXt2.mjs → store-helpers-DfqfssAw.mjs} +1 -1
- package/dist/{streaming-CcIpcx02.mjs → streaming-CQiOktsh.mjs} +1 -1
- package/dist/{subscriberIdentity-PO6kimAl.mjs → subscriberIdentity-Bf8VLqA7.mjs} +1 -1
- package/dist/{tenancy-CH2Kuksc.mjs → tenancy-Btmaf1MB.mjs} +2 -2
- package/dist/{tenantPreparation-BTGpblQW.mjs → tenantPreparation-4e3qyb6q.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.mjs +11 -11
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-Dii5X7AP.mjs → timing-DXx0IWyi.mjs} +1 -1
- package/dist/{transactionContext-DMPhYEOt.mjs → transactionContext-DperjON1.mjs} +1 -1
- package/dist/{typeGuards-C1o_XEyp.mjs → typeGuards-eoQLIOh6.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-BuV_cFqT.mjs → types-CcpISJe8.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-D4m_pLSC.mjs → userHelpers-Cp5zqlEN.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-CxLMXGn5.mjs → utils-dKN-_315.mjs} +6 -6
- package/dist/{validate-CZ975J8N.mjs → validate-BZHaAdgy.mjs} +3 -3
- package/dist/{versioning-B2_8SBZo.mjs → versioning-CPLP0VbB.mjs} +3 -3
- package/dist/{workScope-B3W3r35s.mjs → workScope-BI72KXsI.mjs} +2 -2
- package/package.json +17 -12
- package/skills/arc/references/auth-better-auth.md +27 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
|
|
2
2
|
import fp from "fastify-plugin";
|
|
3
3
|
// src/integrations/event-gateway.ts
|
|
4
4
|
const eventGatewayPluginImpl = async (fastify, opts = {}) => {
|
|
5
5
|
const { auth = true, orgScoped, roomPolicy, maxMessageBytes, maxSubscriptionsPerClient, authenticate } = opts;
|
|
6
6
|
if (auth && !authenticate && !fastify.hasDecorator("authenticate")) throw new Error("[arc-event-gateway] auth is true but fastify.authenticate is not registered. Register an auth plugin first, provide a custom authenticate function, or set auth: false.");
|
|
7
7
|
if (opts.sse !== false) {
|
|
8
|
-
const { default: ssePlugin } = await import("../sse-
|
|
8
|
+
const { default: ssePlugin } = await import("../sse-DivxX1m6.mjs").then((n) => n.n);
|
|
9
9
|
await fastify.register(ssePlugin, {
|
|
10
10
|
path: opts.sse?.path ?? "/events/stream",
|
|
11
11
|
requireAuth: auth,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
|
|
2
2
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as evaluateAndApplyPermission } from "../../authorizationDecision-
|
|
3
|
-
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-
|
|
1
|
+
/*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evaluateAndApplyPermission } from "../../authorizationDecision-Dxj_cy6N.mjs";
|
|
3
|
+
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../../shutdown-Dfy8La90.mjs";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
// src/integrations/jobs/execution.ts
|
|
6
6
|
async function executeTimedHandler(options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { _ as createMcpServer, a as isZodTypeSchema, c as defaultCrudDescription, d as mcpHandlerAdapter, f as permissionDeniedResult, g as buildRequestContext, h as toCallToolSuccess, i as resourceToTools, l as resolveCrudDescription, m as toCallToolResult, n as filterResourcesForMcp, o as toolInputShape, p as toCallToolError, r as mcpPlugin, s as fieldRulesToZod, u as invokeController, v as resolveToolCollisions } from "../../mcpPlugin-
|
|
1
|
+
/*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { _ as createMcpServer, a as isZodTypeSchema, c as defaultCrudDescription, d as mcpHandlerAdapter, f as permissionDeniedResult, g as buildRequestContext, h as toCallToolSuccess, i as resourceToTools, l as resolveCrudDescription, m as toCallToolResult, n as filterResourcesForMcp, o as toolInputShape, p as toCallToolError, r as mcpPlugin, s as fieldRulesToZod, u as invokeController, v as resolveToolCollisions } from "../../mcpPlugin-BsdH7Vot.mjs";
|
|
3
3
|
// src/integrations/mcp/defineTool.ts
|
|
4
4
|
/**
|
|
5
5
|
* Define a type-safe MCP tool.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { _ as createMcpServer, i as resourceToTools, n as filterResourcesForMcp, t as MCP_PROTOCOL_VERSION } from "../../mcpPlugin-
|
|
1
|
+
/*! @classytic/arc v2.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { _ as createMcpServer, i as resourceToTools, n as filterResourcesForMcp, t as MCP_PROTOCOL_VERSION } from "../../mcpPlugin-BsdH7Vot.mjs";
|
|
3
3
|
// src/integrations/mcp/testing.ts
|
|
4
4
|
/**
|
|
5
5
|
* Connect a 2026-07-28 client to an already-built `McpServer`.
|
|
@@ -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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { f as createError, i as NotFoundError, r as ForbiddenError } from "../errors-KBZ3tQk5.mjs";
|
|
3
|
+
import { a as promoteStreamTokenToHeader, n as forwardedStreamHeaders } from "../streaming-CQiOktsh.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as exponentialBackoff } from "../relay-B61seKq1.mjs";
|
|
3
|
+
import { t as createOutboxModule } from "../outbox-module-BWqkTE8-.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-G9QXHov1.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-G9QXHov1.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "./errors-KBZ3tQk5.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-IL7Btm-N.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ResourceRegistry } from "./ResourceRegistry-BelzCRMy.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
export { t as arcLog, n as configureArcLogger, r as createPinoWriter, i as runWithArcLogger } from "../logger-IL7Btm-N.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as resourceRateLimitWindowMs, i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "./resourceRateLimit-DhbQZjE2.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-G9QXHov1.mjs";
|
|
4
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "./boundedMap-DOBai-H3.mjs";
|
|
5
|
+
import { i as NotFoundError, p as isArcError, t as ArcError } from "./errors-KBZ3tQk5.mjs";
|
|
6
|
+
import { a as resolveActionPermission, i as shouldRejectAdditionalProperties, n as normalizeSchemaIR, p as resolvePipelineSteps, t as actionSchemaIR } from "./schemaIR-MZVVj6Cw.mjs";
|
|
7
|
+
import { n as fieldTypesFromOpenApiSchemas } from "./fieldTypes-DrXUW1jc.mjs";
|
|
8
|
+
import { f as BaseController, n as normalizeActionsToRouterConfig, r as resolveActionTargetFence } from "./plugin-DYmu8uT4.mjs";
|
|
9
|
+
import { a as withoutTenantInjection, r as prepareTenantContext } from "./tenantPreparation-4e3qyb6q.mjs";
|
|
10
|
+
import { b as isElevated, c as getOrgId, g as getUserId, x as isMember } from "./types-CcpISJe8.mjs";
|
|
11
|
+
import { t as pluralize } from "./pluralize-ClwfBdIx.mjs";
|
|
12
|
+
import { t as buildRequestScopeProjection } from "./projection-DnZiFPPE.mjs";
|
|
13
|
+
import { n as acquireIdempotencyKey, r as releaseIdempotencyLock } from "./acquire-B0zhfGSm.mjs";
|
|
14
|
+
import { n as createIdempotencyResult, r as operationIdentity, t as resolveIdempotencyTiming } from "./timing-DXx0IWyi.mjs";
|
|
15
|
+
import { t as arcLog } from "./logger-IL7Btm-N.mjs";
|
|
16
|
+
import { r as evaluatePermissionDecision } from "./authorizationDecision-Dxj_cy6N.mjs";
|
|
17
|
+
import { a as resolveEffectiveRoles, t as applyFieldReadPermissions } from "./fields-C5J8WTd2.mjs";
|
|
18
|
+
import { n as executeAggregation } from "./buildHandler-Dyl8P9j0.mjs";
|
|
19
|
+
import { n as validateAggregations } from "./validate-BZHaAdgy.mjs";
|
|
20
|
+
import { o as toJsonSchema } from "./schemaConverter-BOt_ed78.mjs";
|
|
21
|
+
import { t as executePipeline } from "./pipe-CMnKfdF4.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
|
|
3
|
+
import { n as evictToSize } from "./boundedMap-DOBai-H3.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.mjs";
|
|
3
|
+
import { a as MetricHistogram, i as DURATION_BUCKETS_SECONDS, o as MetricSeries, s as renderMetricSample } from "./health-vEo3fni4.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "../constants-DH41jnNT.mjs";
|
|
3
|
+
import { t as multipartBody } from "../multipartBody-BHktuarE.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as startRenewingLease } from "../renewingLease-Dp7wmzNN.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.51.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as getUserRoles } from "./userHelpers-Cp5zqlEN.mjs";
|
|
3
|
+
import { a as resolveActionPermission } from "./schemaIR-MZVVj6Cw.mjs";
|
|
4
|
+
import { t as buildActionBodySchema } from "./createActionRouter-B1xhER6i.mjs";
|
|
5
|
+
import { t as pluralize } from "./pluralize-ClwfBdIx.mjs";
|
|
6
|
+
import { n as convertRouteSchema } from "./schemaConverter-BOt_ed78.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as defineResource } from "../defineResource-5DcG_wlI.mjs";
|
|
3
|
+
import { r as readOutboxHealth } from "../health-BLal039H.mjs";
|
|
4
|
+
import { n as getModuleExports, t as defineModule } from "../module-KFxT1Iuk.mjs";
|
|
5
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-KBZ3tQk5.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as requestContext } from "./requestContext-C_mbAm8o.mjs";
|
|
3
|
+
import { t as transactionContext } from "./transactionContext-DperjON1.mjs";
|
|
4
|
+
import { i as resolveEventTransport } from "./EventTransport-K7Q9WPjm.mjs";
|
|
5
|
+
import { t as emitObserved } from "./eventPlugin-C4lNj2Dw.mjs";
|
|
6
|
+
import { n as canReportHealth, r as readOutboxHealth } from "./health-BLal039H.mjs";
|
|
7
|
+
import { t as EventOutbox } from "./relay-B61seKq1.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "../filter-merge-DTjYoDrj.mjs";
|
|
3
|
+
import { n as getUserRoles, r as normalizeRoles } from "../userHelpers-Cp5zqlEN.mjs";
|
|
4
|
+
import { a as resolveEffectiveRoles, i as fields, n as applyFieldWritePermissions, t as applyFieldReadPermissions } from "../fields-C5J8WTd2.mjs";
|
|
5
|
+
import { i as normalizeToDecision, r as evaluatePermissionDecision, t as applyAuthorizationDecision } from "../authorizationDecision-Dxj_cy6N.mjs";
|
|
6
|
+
import { i as resolveResourceRateLimiter, t as createMemoryResourceRateLimiter } from "../resourceRateLimit-DhbQZjE2.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-e5YMrFbm.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-HTi8KV7V.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-CcpISJe8.mjs";
|
|
4
|
+
import { i as normalizeToDecision } from "./authorizationDecision-Dxj_cy6N.mjs";
|
|
5
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-DTjYoDrj.mjs";
|
|
6
|
+
import { n as getUserRoles } from "./userHelpers-Cp5zqlEN.mjs";
|
|
7
|
+
import { t as MemoryCacheStore } from "./memory-Dkp6ZD3F.mjs";
|
|
8
|
+
import { t as arcLog } from "./logger-IL7Btm-N.mjs";
|
|
9
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-G9QXHov1.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-KBZ3tQk5.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-CMnKfdF4.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.51.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-DH41jnNT.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-IL7Btm-N.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-DTjYoDrj.mjs";
|
|
5
|
+
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-KBZ3tQk5.mjs";
|
|
6
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-D5dOqbbj.mjs";
|
|
7
|
+
import { n as requireSingleHeaderValue } from "./headers-D5wrBLOk.mjs";
|
|
8
|
+
import { n as getUserRoles, t as getUserId } from "./userHelpers-Cp5zqlEN.mjs";
|
|
9
|
+
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-CcpISJe8.mjs";
|
|
10
|
+
import { r as resolveTenancy } from "./tenancy-Btmaf1MB.mjs";
|
|
11
|
+
import { t as buildQueryKey } from "./keys-t7i-lJ2r.mjs";
|
|
12
|
+
import { t as transactionContext } from "./transactionContext-DperjON1.mjs";
|
|
13
|
+
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-C5J8WTd2.mjs";
|
|
14
|
+
import { O as ArcQueryParser, b as getDefaultCrudSchemas } from "./utils-dKN-_315.mjs";
|
|
15
|
+
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-BOt_ed78.mjs";
|
|
16
|
+
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-CQiOktsh.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-MZVVj6Cw.mjs";
|
|
18
|
+
import { a as withoutTenantInjection } from "./tenantPreparation-4e3qyb6q.mjs";
|
|
19
|
+
import { t as hasEvents } from "./typeGuards-eoQLIOh6.mjs";
|
|
20
|
+
import { n as idempotencyConfigProblem } from "./requirement-C8OsWLYp.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-B1xhER6i.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-CNntJL-z.mjs"),
|
|
3241
|
+
import("./validate-BZHaAdgy.mjs").then((n) => n.r),
|
|
3242
|
+
import("./fieldTypes-DrXUW1jc.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.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { m as MUTATION_OPERATIONS } from "../constants-DH41jnNT.mjs";
|
|
3
|
+
import { n as requestContext } from "../requestContext-C_mbAm8o.mjs";
|
|
4
|
+
import { t as HookSystem } from "../HookSystem-DBAu9uNT.mjs";
|
|
5
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-BelzCRMy.mjs";
|
|
6
|
+
import { c as getOrgId } from "../types-CcpISJe8.mjs";
|
|
7
|
+
import { t as hasEvents } from "../typeGuards-eoQLIOh6.mjs";
|
|
8
|
+
import { a as registerSseStats, i as createSseConnectionGauge } from "../sseStream-hQxQjvre.mjs";
|
|
9
|
+
import { t as caching_default } from "../caching-CUmaNL8Y.mjs";
|
|
10
|
+
import { i as createMemoryDailyLedger, r as createDailyGate, t as schedules_default } from "../schedules-DAthT5O3.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-xDVUWOMu.mjs";
|
|
12
|
+
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-vEo3fni4.mjs";
|
|
13
|
+
import { t as metrics_default } from "../metrics-CDPqgdKr.mjs";
|
|
14
|
+
import { t as arcLog } from "../logger-IL7Btm-N.mjs";
|
|
15
|
+
import { t as realtime_default } from "../realtime-C-VIoXMg.mjs";
|
|
16
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-CHii_jIO.mjs";
|
|
17
|
+
import { t as sse_default } from "../sse-DivxX1m6.mjs";
|
|
18
|
+
import { t as versioning_default } from "../versioning-CPLP0VbB.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-DOBai-H3.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-G9QXHov1.mjs";
|
|
4
|
+
import { t as hasEvents } from "../typeGuards-eoQLIOh6.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.51.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.51.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as multipartBody } from "../multipartBody-BHktuarE.mjs";
|
|
3
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-e5YMrFbm.mjs";
|
|
4
|
+
import { c as getOrgId, g as getUserId } from "../types-CcpISJe8.mjs";
|
|
5
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-KBZ3tQk5.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.51.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-DX_lPabi.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-DH41jnNT.mjs";
|
|
3
|
+
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-4e3qyb6q.mjs";
|
|
4
|
+
import { u as getRequestScope } from "../types-CcpISJe8.mjs";
|
|
5
|
+
import { t as ArcError } from "../errors-KBZ3tQk5.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.51.0 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-e5YMrFbm.mjs";
|
|
3
3
|
// src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|