@classytic/arc 2.45.0 → 2.45.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/{EventTransport-Ci6hGO1Y.mjs → EventTransport-4b0noGwa.mjs} +2 -2
- package/dist/{HookSystem-CtnnYHME.mjs → HookSystem-4pABQnGn.mjs} +2 -2
- package/dist/{ResourceRegistry-BNoHOx-D.mjs → ResourceRegistry-BBaN_Ne-.mjs} +2 -2
- package/dist/{acquire-BW_2Dt60.mjs → acquire-kiZzy5bX.mjs} +1 -1
- package/dist/{actionPermissions-TAc_6LCw.mjs → actionPermissions-BLnbDA6g.mjs} +13 -13
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.mjs +7 -7
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/{authorizationDecision-BixzgirP.mjs → authorizationDecision-CVlaTjAX.mjs} +4 -4
- package/dist/{boundedMap-DQfXgxMo.mjs → boundedMap-DSy7KkeX.mjs} +1 -1
- package/dist/{buildHandler-mEUmO2_u.mjs → buildHandler-B4IhILv9.mjs} +4 -4
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-TQfW2QX7.mjs → caching-DqakP2vY.mjs} +2 -2
- package/dist/{claimed-CnEEOHuL.mjs → claimed-XoiVrWZ2.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-B90SnSQn.mjs → constants-CtWkmWn3.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.mjs +7 -7
- package/dist/{core-DV9PSXtr.mjs → core-Cro2v5a7.mjs} +3 -3
- package/dist/{createActionRouter-BgPCYU2U.mjs → createActionRouter-k-gwiPv6.mjs} +6 -6
- package/dist/{createAggregationRouter-lNCkDwKe.mjs → createAggregationRouter-BqWqhAPG.mjs} +7 -7
- package/dist/{createApp-BSBPntOQ.mjs → createApp-Dw7L72Hz.mjs} +28 -28
- package/dist/{defineAggregation-CwD8_XNd.mjs → defineAggregation-pxbd7BBK.mjs} +1 -1
- package/dist/{defineResource-CRkhRRSj.mjs → defineResource-DwgEjLCO.mjs} +7 -7
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-BAfsnnO0.mjs → elevation-B9wF2Z1F.mjs} +5 -5
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-DbHGwrQM.mjs → errorHandler-Dr2nG0Ui.mjs} +3 -3
- package/dist/{errors-C9G4A8cN.mjs → errors-BtHzrSA6.mjs} +1 -1
- package/dist/{eventPlugin-Dghr7iL5.mjs → eventPlugin-Dvs7OBw8.mjs} +8 -8
- package/dist/{eventTypes-DDy7BMAn.mjs → eventTypes-BVoCTG5c.mjs} +2 -2
- package/dist/events/index.mjs +7 -7
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.mjs +2 -2
- package/dist/factory/index.mjs +6 -6
- package/dist/{fields-Da--1DNS.mjs → fields-C1e_7Fwi.mjs} +1 -1
- package/dist/{filter-merge-BYKBa9b2.mjs → filter-merge-xaiEKtz8.mjs} +1 -1
- package/dist/{generate-Cm5Ct81v.mjs → generate-DJiJMaXN.mjs} +2 -2
- package/dist/{headers-B6DRXXzT.mjs → headers-Dr-wt6Tr.mjs} +2 -2
- package/dist/{health-pLbfckGB.mjs → health-BLYn_Hds.mjs} +1 -1
- package/dist/{health-hRGgxnOC.mjs → health-DkkWbJtQ.mjs} +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/idempotency/index.mjs +7 -7
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/index.mjs +11 -11
- package/dist/{init-lpaUB-Ph.mjs → init-CW3kJqNW.mjs} +1 -1
- package/dist/integrations/event-gateway.mjs +2 -2
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.mjs +3 -3
- package/dist/integrations/mcp/index.mjs +2 -2
- package/dist/integrations/mcp/testing.mjs +2 -2
- package/dist/integrations/streamline.mjs +3 -3
- package/dist/integrations/webhooks.mjs +3 -3
- package/dist/integrations/websocket-pushref-redis.mjs +1 -1
- package/dist/integrations/websocket-redis.mjs +1 -1
- package/dist/integrations/websocket.mjs +2 -2
- package/dist/{jsonBody-CzKHE-Fg.mjs → jsonBody-DPU8yYwA.mjs} +2 -2
- package/dist/{keys-BoZKnBel.mjs → keys-Dgn6OYhl.mjs} +1 -1
- package/dist/{loadResources-BEKG6bP9.mjs → loadResources-BtKj6P1P.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-BEPA0ptL.mjs → loadResourcesFromEntry-Bmq6TnB7.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-vxu0DXf_.mjs → logger-qQNLlOAU.mjs} +1 -1
- package/dist/{mcpPlugin-DP_UB0LK.mjs → mcpPlugin-DDfe8jAP.mjs} +22 -22
- package/dist/{memory-DJN6kyC8.mjs → memory-C0Blueoh.mjs} +3 -3
- package/dist/{metrics-wfr7XFE7.mjs → metrics-DYka72iN.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-BtdcGn_E.mjs → module-BszSyWbd.mjs} +1 -1
- package/dist/{multipartBody-NHGOuUnG.mjs → multipartBody-RHvIkNmc.mjs} +1 -1
- package/dist/{openapi-BCOaGAgE.mjs → openapi-BrFPc3Ny.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-BVDiMwXb.mjs → outbox-module-DF4Bu_Qa.mjs} +9 -9
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-IdHJ0_5V.mjs → permissions-DN1CWH56.mjs} +9 -9
- package/dist/{pipe-BPJPifhi.mjs → pipe-B8uq865o.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-CEedaMlr.mjs → plan-DUGfynNg.mjs} +1 -1
- package/dist/{plugin-BDBOS3-c.mjs → plugin-ByU3h-bR.mjs} +22 -22
- package/dist/plugins/index.mjs +17 -17
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-B4FcZEyI.mjs → pluralize-Cdya8zYt.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-BPjNc-Np.mjs → presets-CCOlKTZw.mjs} +4 -4
- package/dist/{projection-BXUOYosj.mjs → projection-BGty6ie4.mjs} +2 -2
- package/dist/{queryCachePlugin-s4pBvjFF.mjs → queryCachePlugin-B7itTkWu.mjs} +6 -6
- package/dist/{rateLimitKey-C4mkCwQ-.mjs → rateLimitKey-DBWO59H9.mjs} +1 -1
- package/dist/{realtime-MPj6eIoV.mjs → realtime-_59Rlje8.mjs} +11 -11
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-DIdh6mWE.mjs → registry-uG4wr541.mjs} +2 -2
- package/dist/{renewingLease-boGRXWCr.mjs → renewingLease-CiU3ZynH.mjs} +1 -1
- package/dist/{replyHelpers-BW_p67QD.mjs → replyHelpers-Dr2pnXZg.mjs} +2 -2
- package/dist/{requestContext-B8JKbeb7.mjs → requestContext-DBKIdmDi.mjs} +1 -1
- package/dist/{requirement-tXpcD56f.mjs → requirement-DxOaghWD.mjs} +1 -1
- package/dist/{resourceRateLimit-DWob9nQ8.mjs → resourceRateLimit-BBdj5yRq.mjs} +2 -2
- package/dist/rolldown-runtime-DpVPUeXF.mjs +15 -0
- package/dist/{routeValidator-CnmenC4Y.mjs → routeValidator-BNTqM1Eh.mjs} +1 -1
- package/dist/{runtimeCapabilities-C7gAbIxC.mjs → runtimeCapabilities-D_3eUO6V.mjs} +1 -1
- package/dist/{schedules-Dr9gNFzx.mjs → schedules-CVS7c1nv.mjs} +5 -5
- package/dist/{schemaConverter-rzBovk00.mjs → schemaConverter-BQbg7loK.mjs} +2 -2
- package/dist/{schemaIR-GrOK1JO4.mjs → schemaIR-CUI3hPQR.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-DpOpxyHT.mjs → scope-DFXngazv.mjs} +4 -4
- package/dist/{shutdown-BW8qwgpx.mjs → shutdown-BCXCwghd.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-WdZw6GOt.mjs → simpleEqualityMatcher-5jOzYQ_L.mjs} +1 -1
- package/dist/{sse-D8AgoUN3.mjs → sse-BilBz766.mjs} +7 -7
- package/dist/{sseStream-B7rPhIQw.mjs → sseStream-BG_uJL6J.mjs} +2 -2
- package/dist/{store-helpers-Bxk7TDgG.mjs → store-helpers-CzLZdVa1.mjs} +1 -1
- package/dist/{streaming-BLg1buwL.mjs → streaming-DgUvMWlv.mjs} +1 -1
- package/dist/{subscriberIdentity-Cxp19Ked.mjs → subscriberIdentity-EWnIZ-U8.mjs} +1 -1
- package/dist/{tenancy-D7jo78AP.mjs → tenancy-CVMvO5DH.mjs} +2 -2
- package/dist/{tenantPreparation-DqJnokDW.mjs → tenantPreparation-DIH-GX4g.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.mjs +15 -16
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-Y6_ZpoYG.mjs → timing-q9NITK04.mjs} +1 -1
- package/dist/{transactionContext-BWp0MBGL.mjs → transactionContext-NHmhDIOF.mjs} +1 -1
- package/dist/{typeGuards-CtZJypJO.mjs → typeGuards-CPYR9RCg.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-4JKkSvds.mjs → types-BI4sbUJ3.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-Nc5ePCsf.mjs → userHelpers-oBTU3a_k.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-QWSIKqAk.mjs → utils-BmE8zRrh.mjs} +4 -4
- package/dist/{validate-CT4umNhp.mjs → validate-Dby08LhR.mjs} +3 -3
- package/dist/{versioning-JIqxO64K.mjs → versioning-P6JMNcJr.mjs} +3 -3
- package/dist/{workScope-BDjGXwU9.mjs → workScope-BcMLKa3G.mjs} +2 -2
- package/package.json +1 -1
- package/dist/mongodb-memory-server-Cn57YIsc.mjs +0 -35539
- package/dist/mongoose-DzFjTtBN.mjs +0 -67451
- package/dist/node-C0HB_V6E.mjs +0 -41236
- package/dist/rolldown-runtime-AD16t29l.mjs +0 -45
package/dist/testing/index.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { n as getModuleExports } from "../module-BtdcGn_E.mjs";
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "../constants-CtWkmWn3.mjs";
|
|
3
|
+
import { c as BaseController } from "../plugin-ByU3h-bR.mjs";
|
|
4
|
+
import { g as getUserId } from "../types-BI4sbUJ3.mjs";
|
|
5
|
+
import { t as defineAggregation } from "../defineAggregation-pxbd7BBK.mjs";
|
|
6
|
+
import { t as defineResource } from "../defineResource-DwgEjLCO.mjs";
|
|
7
|
+
import { E as requireOrgRole } from "../permissions-DN1CWH56.mjs";
|
|
8
|
+
import { h as asModulePorts, r as createApp } from "../createApp-Dw7L72Hz.mjs";
|
|
9
|
+
import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-DUGfynNg.mjs";
|
|
10
|
+
import { n as getModuleExports } from "../module-BszSyWbd.mjs";
|
|
12
11
|
import { runStorageContract } from "./storageContract.mjs";
|
|
13
12
|
import Fastify from "fastify";
|
|
14
13
|
import { afterAll, describe, expect, it, vi } from "vitest";
|
|
@@ -266,13 +265,13 @@ function testActorAuth(defaultActor) {
|
|
|
266
265
|
async function mongoMemoryDatabase(opts) {
|
|
267
266
|
let mms;
|
|
268
267
|
try {
|
|
269
|
-
mms = await import("
|
|
268
|
+
mms = await import("mongodb-memory-server");
|
|
270
269
|
} catch {
|
|
271
270
|
throw new Error("[arc-testing] bootModuleApp's default database is in-memory MongoDB — install 'mongodb-memory-server' + 'mongoose' as devDependencies, or inject your own `database` factory for a different store");
|
|
272
271
|
}
|
|
273
272
|
const server = opts.replset ? await mms.MongoMemoryReplSet.create({ replSet: { count: 1 } }) : await mms.MongoMemoryServer.create();
|
|
274
273
|
const uri = server.getUri();
|
|
275
|
-
const mongoose = (await import("
|
|
274
|
+
const mongoose = (await import("mongoose")).default;
|
|
276
275
|
if (mongoose.connection.readyState !== 0) await mongoose.disconnect();
|
|
277
276
|
await mongoose.connect(uri);
|
|
278
277
|
mongoose.connection.deleteModel(/.*/);
|
|
@@ -1548,7 +1547,7 @@ function scopeRoleGate(...allowed) {
|
|
|
1548
1547
|
*/
|
|
1549
1548
|
async function startInMemoryMongo() {
|
|
1550
1549
|
try {
|
|
1551
|
-
const { MongoMemoryServer } = await import("
|
|
1550
|
+
const { MongoMemoryServer } = await import("mongodb-memory-server");
|
|
1552
1551
|
const mongod = await MongoMemoryServer.create();
|
|
1553
1552
|
return {
|
|
1554
1553
|
uri: mongod.getUri(),
|
|
@@ -1562,7 +1561,7 @@ async function startInMemoryMongo() {
|
|
|
1562
1561
|
}
|
|
1563
1562
|
async function connectMongooseToUri(uri) {
|
|
1564
1563
|
try {
|
|
1565
|
-
const mongoose = (await import("
|
|
1564
|
+
const mongoose = (await import("mongoose")).default;
|
|
1566
1565
|
await mongoose.connect(uri);
|
|
1567
1566
|
return { async disconnect() {
|
|
1568
1567
|
await mongoose.disconnect();
|
|
@@ -1579,7 +1578,7 @@ function pickDefaultAuth(authMode, callerAuth) {
|
|
|
1579
1578
|
};
|
|
1580
1579
|
}
|
|
1581
1580
|
async function createTestApp(options = {}) {
|
|
1582
|
-
const { createApp } = await import("../createApp-
|
|
1581
|
+
const { createApp } = await import("../createApp-Dw7L72Hz.mjs").then((n) => n.i);
|
|
1583
1582
|
const { resources = [], db = "in-memory", connectMongoose = false, authMode = "jwt", defaultOrgId, plugins, auth: callerAuth, ...appOptions } = options;
|
|
1584
1583
|
let dbHandle;
|
|
1585
1584
|
let dbUri;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as claimedAttempts } from "../claimed-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as claimedAttempts } from "../claimed-XoiVrWZ2.mjs";
|
|
3
3
|
import { OutboxConflictError, OutboxOwnershipError } from "@classytic/primitives/outbox";
|
|
4
4
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
|
5
5
|
//#region src/testing/outboxStoreContract.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-DUGfynNg.mjs";
|
|
3
3
|
//#region src/testing/requiredPorts.ts
|
|
4
4
|
/**
|
|
5
5
|
* Assert a module declares EXACTLY `ports` as required, and that composing it without any one of
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
//#region src/utils/operationIdentity.ts
|
|
4
4
|
/** Security context included in idempotency identities across transports. */
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
2
|
export {};
|
package/dist/types/storage.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
2
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-
|
|
3
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
4
|
-
import { t as getUserId$1 } from "./userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-BtHzrSA6.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-Dr-wt6Tr.mjs";
|
|
4
|
+
import { t as getUserId$1 } from "./userHelpers-oBTU3a_k.mjs";
|
|
5
5
|
//#region src/scope/types.ts
|
|
6
6
|
/**
|
|
7
7
|
* Request Scope — The One Standard
|
package/dist/usage/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as ArcError } from "../errors-
|
|
3
|
-
import { c as getOrgId, g as getUserId, i as getClientId } from "../types-
|
|
4
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "../errors-BtHzrSA6.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId, i as getClientId } from "../types-BI4sbUJ3.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-D_3eUO6V.mjs";
|
|
5
5
|
import { usagePeriod } from "@classytic/repo-core/usage";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
//#region src/usage/requireQuota.ts
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-
|
|
3
|
-
import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-
|
|
4
|
-
import { n as requireSingleHeaderValue, t as getHeader } from "../headers-
|
|
5
|
-
import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-
|
|
6
|
-
import { C as paginationSchema, D as createQueryParser, E as ArcQueryParser, O as MONGO_DIALECT, S as offsetListResponse, T as responses, _ as errorContractSchema, a as defineCompensation, b as keysetListResponse, c as CircuitBreaker, d as CircuitState, f as createCircuitBreaker, g as deleteResponse, h as bareListResponse, i as defineErrorMapper, k as NEUTRAL_DIALECT, l as CircuitBreakerError, m as aggregateListResponse, n as handleRaw, o as withCompensation, p as createCircuitBreakerRegistry, r as defineGuard, s as RedisCircuitBreakerState, t as createStateMachine, u as CircuitBreakerRegistry, v as getDefaultCrudSchemas, w as queryParams, x as listResponse, y as getListQueryParams } from "../utils-
|
|
7
|
-
import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-
|
|
8
|
-
import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-
|
|
9
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
10
|
-
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-
|
|
11
|
-
import { t as openSseStream } from "../sseStream-
|
|
12
|
-
import { t as hasEvents } from "../typeGuards-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { a as OrgAccessDeniedError, c as ServiceUnavailableError, d as createDomainError, f as createError, i as NotFoundError, l as UnauthorizedError, n as ConflictError, o as OrgRequiredError, p as isArcError, r as ForbiddenError, s as RateLimitError, t as ArcError, u as ValidationError } from "../errors-BtHzrSA6.mjs";
|
|
3
|
+
import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-5jOzYQ_L.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue, t as getHeader } from "../headers-Dr-wt6Tr.mjs";
|
|
5
|
+
import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-oBTU3a_k.mjs";
|
|
6
|
+
import { C as paginationSchema, D as createQueryParser, E as ArcQueryParser, O as MONGO_DIALECT, S as offsetListResponse, T as responses, _ as errorContractSchema, a as defineCompensation, b as keysetListResponse, c as CircuitBreaker, d as CircuitState, f as createCircuitBreaker, g as deleteResponse, h as bareListResponse, i as defineErrorMapper, k as NEUTRAL_DIALECT, l as CircuitBreakerError, m as aggregateListResponse, n as handleRaw, o as withCompensation, p as createCircuitBreakerRegistry, r as defineGuard, s as RedisCircuitBreakerState, t as createStateMachine, u as CircuitBreakerRegistry, v as getDefaultCrudSchemas, w as queryParams, x as listResponse, y as getListQueryParams } from "../utils-BmE8zRrh.mjs";
|
|
7
|
+
import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-BQbg7loK.mjs";
|
|
8
|
+
import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-DgUvMWlv.mjs";
|
|
9
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-D_3eUO6V.mjs";
|
|
10
|
+
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-BCXCwghd.mjs";
|
|
11
|
+
import { t as openSseStream } from "../sseStream-BG_uJL6J.mjs";
|
|
12
|
+
import { t as hasEvents } from "../typeGuards-CPYR9RCg.mjs";
|
|
13
13
|
export { ArcError, ArcQueryParser, CircuitBreaker, CircuitBreakerError, CircuitBreakerRegistry, CircuitState, ConflictError, ForbiddenError, MONGO_DIALECT, NEUTRAL_DIALECT, NotFoundError, OrgAccessDeniedError, OrgRequiredError, RateLimitError, RedisCircuitBreakerState, ServiceUnavailableError, UI_MESSAGE_STREAM_HEADERS, UnauthorizedError, ValidationError, aggregateListResponse, bareListResponse, convertOpenApiSchemas, convertRouteSchema, createCircuitBreaker, createCircuitBreakerRegistry, createDomainError, createError, createQueryParser, createStateMachine, declareRuntimeCapability, defineCompensation, defineErrorMapper, defineGuard, deleteResponse, errorContractSchema, forwardedStreamHeaders, getDefaultCrudSchemas, getHeader, getListQueryParams, getUserId, getUserRoles, handleRaw, hasEvents, isArcError, isJsonSchema, isReadableStream, isZodSchema, keysetListResponse, listResponse, normalizeRoles, offsetListResponse, openSseStream, paginationSchema, pipeUIMessageStreamToReply, promoteStreamTokenToHeader, queryParams, registerShutdownParticipant, requireSingleHeaderValue, responses, runAdmittedWork, simpleEqualityMatcher, toJsonSchema, withCompensation };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { h as RESERVED_QUERY_PARAMS } from "./constants-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as ArcError, u as ValidationError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { h as RESERVED_QUERY_PARAMS } from "./constants-CtWkmWn3.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-qQNLlOAU.mjs";
|
|
4
|
+
import { t as ArcError, u as ValidationError } from "./errors-BtHzrSA6.mjs";
|
|
5
5
|
import { errorContractSchema as errorContractSchema$1 } from "@classytic/repo-core/errors";
|
|
6
6
|
import { readEnv } from "@classytic/primitives/environment";
|
|
7
7
|
import { OPERATOR_DESCRIPTIONS, URL_OPERATORS, escapeRegex, isQueryGrammarError, readFilterClauses, readPageRequest, readSearch, readSelect, readSort } from "@classytic/repo-core/query-parser";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import {
|
|
3
|
-
import { _ as pathTouchesBlocked } from "./plugin-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
|
|
3
|
+
import { _ as pathTouchesBlocked } from "./plugin-ByU3h-bR.mjs";
|
|
4
4
|
//#region src/core/aggregation/normalize.ts
|
|
5
5
|
/**
|
|
6
6
|
* Framework cap on URL-driven aggregation limits when the host opts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import {
|
|
3
|
-
import { d as createDomainError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-DpVPUeXF.mjs";
|
|
3
|
+
import { d as createDomainError } from "./errors-BtHzrSA6.mjs";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
//#region src/plugins/versioning.ts
|
|
6
6
|
var versioning_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { n as requestContext } from "./requestContext-
|
|
1
|
+
/*! @classytic/arc v2.45.1 | MIT | https://classytic.com */
|
|
2
|
+
import { n as requestContext } from "./requestContext-DBKIdmDi.mjs";
|
|
3
3
|
//#region src/context/workScope.ts
|
|
4
4
|
/** Enter a scope for `fn`, or run it inside the active one. */
|
|
5
5
|
function runWorkScope(seed, fn) {
|