@classytic/arc 2.45.1 → 2.45.2
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-4b0noGwa.mjs → EventTransport-DHb1tpu-.mjs} +2 -2
- package/dist/{HookSystem-4pABQnGn.mjs → HookSystem-C1u0EUnt.mjs} +2 -2
- package/dist/{ResourceRegistry-BBaN_Ne-.mjs → ResourceRegistry-D2jXWVN_.mjs} +2 -2
- package/dist/{acquire-kiZzy5bX.mjs → acquire-DTkA8Lme.mjs} +1 -1
- package/dist/{actionPermissions-BLnbDA6g.mjs → actionPermissions-DRVk6m7x.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-CVlaTjAX.mjs → authorizationDecision-D48fUJv1.mjs} +4 -4
- package/dist/{boundedMap-DSy7KkeX.mjs → boundedMap-DkKiPifd.mjs} +1 -1
- package/dist/{buildHandler-B4IhILv9.mjs → buildHandler-BiZ4VATS.mjs} +4 -4
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-DqakP2vY.mjs → caching-Cj0as-P1.mjs} +2 -2
- package/dist/{claimed-XoiVrWZ2.mjs → claimed-ChI13rUR.mjs} +1 -1
- package/dist/cleanup/index.d.mts +6 -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-CtWkmWn3.mjs → constants-D_aiew34.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.mjs +7 -7
- package/dist/{core-Cro2v5a7.mjs → core-QIZ2560Y.mjs} +3 -3
- package/dist/{createActionRouter-k-gwiPv6.mjs → createActionRouter-CvH84dyx.mjs} +6 -6
- package/dist/{createAggregationRouter-BqWqhAPG.mjs → createAggregationRouter-DGyK2Hp6.mjs} +7 -7
- package/dist/{createApp-Dw7L72Hz.mjs → createApp-CKjZpmq9.mjs} +28 -28
- package/dist/{defineAggregation-pxbd7BBK.mjs → defineAggregation-BLza7Ca4.mjs} +1 -1
- package/dist/{defineResource-DwgEjLCO.mjs → defineResource-CEo0gDCb.mjs} +7 -7
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-B9wF2Z1F.mjs → elevation-BJTsSnke.mjs} +5 -5
- package/dist/encryption/index.mjs +3 -3
- package/dist/{errorHandler-Dr2nG0Ui.mjs → errorHandler-2p4SL5zm.mjs} +3 -3
- package/dist/{errors-BtHzrSA6.mjs → errors-grZkIA8N.mjs} +1 -1
- package/dist/{eventPlugin-Dvs7OBw8.mjs → eventPlugin-ItcYBGUs.mjs} +8 -8
- package/dist/{eventTypes-BVoCTG5c.mjs → eventTypes-Ck6fD3ne.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-C1e_7Fwi.mjs → fields-BRX0Krcj.mjs} +1 -1
- package/dist/{filter-merge-xaiEKtz8.mjs → filter-merge-CDc7YMwX.mjs} +1 -1
- package/dist/{generate-DJiJMaXN.mjs → generate-hvg7V2g1.mjs} +2 -2
- package/dist/{headers-Dr-wt6Tr.mjs → headers-Cqkg4LzI.mjs} +2 -2
- package/dist/{health-BLYn_Hds.mjs → health-DyeP3mTW.mjs} +1 -1
- package/dist/{health-DkkWbJtQ.mjs → health-PVt0VjOx.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-CW3kJqNW.mjs → init-jC3rMPzb.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-DPU8yYwA.mjs → jsonBody-ptwyzZQ-.mjs} +2 -2
- package/dist/{keys-Dgn6OYhl.mjs → keys-C1vFuSbv.mjs} +1 -1
- package/dist/{loadResources-BtKj6P1P.mjs → loadResources-CHPDyIPn.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-Bmq6TnB7.mjs → loadResourcesFromEntry-BkHHTu_B.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-qQNLlOAU.mjs → logger-C5bvCiAK.mjs} +1 -1
- package/dist/{mcpPlugin-DDfe8jAP.mjs → mcpPlugin-C9qohJCF.mjs} +22 -22
- package/dist/{memory-C0Blueoh.mjs → memory-CxiTwT0j.mjs} +3 -3
- package/dist/{metrics-DYka72iN.mjs → metrics-Ckp2zRy-.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-BszSyWbd.mjs → module-CfnKuIuH.mjs} +1 -1
- package/dist/{multipartBody-RHvIkNmc.mjs → multipartBody-BFasGtP9.mjs} +1 -1
- package/dist/{openapi-BrFPc3Ny.mjs → openapi-DAPxjYHX.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-DF4Bu_Qa.mjs → outbox-module-B4FAkx3A.mjs} +9 -9
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-DN1CWH56.mjs → permissions-B14c3OMp.mjs} +9 -9
- package/dist/{pipe-B8uq865o.mjs → pipe-CQv7PsAK.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-DUGfynNg.mjs → plan-CpnTykjb.mjs} +1 -1
- package/dist/{plugin-ByU3h-bR.mjs → plugin-DXTjVg_Q.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-Cdya8zYt.mjs → pluralize-C3VJKRGp.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-CCOlKTZw.mjs → presets-CquqYJPy.mjs} +4 -4
- package/dist/{projection-BGty6ie4.mjs → projection-CgfSLOSM.mjs} +2 -2
- package/dist/{queryCachePlugin-B7itTkWu.mjs → queryCachePlugin-D0HUISHJ.mjs} +6 -6
- package/dist/{rateLimitKey-DBWO59H9.mjs → rateLimitKey-AvkBOMkl.mjs} +1 -1
- package/dist/{realtime-_59Rlje8.mjs → realtime-CbWtVbqK.mjs} +11 -11
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-uG4wr541.mjs → registry-BVwpAuFI.mjs} +2 -2
- package/dist/{renewingLease-CiU3ZynH.mjs → renewingLease-CykpeNcQ.mjs} +1 -1
- package/dist/{replyHelpers-Dr2pnXZg.mjs → replyHelpers-DA51IZio.mjs} +2 -2
- package/dist/{requestContext-DBKIdmDi.mjs → requestContext-DIWHKDtQ.mjs} +1 -1
- package/dist/{requirement-DxOaghWD.mjs → requirement-Cp_fsMDL.mjs} +1 -1
- package/dist/{resourceRateLimit-BBdj5yRq.mjs → resourceRateLimit-BFuluodF.mjs} +2 -2
- package/dist/{rolldown-runtime-DpVPUeXF.mjs → rolldown-runtime-D_lMdYOd.mjs} +1 -1
- package/dist/{routeValidator-BNTqM1Eh.mjs → routeValidator-DuLonYwr.mjs} +1 -1
- package/dist/{runtimeCapabilities-D_3eUO6V.mjs → runtimeCapabilities-CydRfm0i.mjs} +1 -1
- package/dist/{schedules-CVS7c1nv.mjs → schedules-B693KXxa.mjs} +5 -5
- package/dist/{schemaConverter-BQbg7loK.mjs → schemaConverter-DNvZWTV6.mjs} +2 -2
- package/dist/{schemaIR-CUI3hPQR.mjs → schemaIR-REV2y7Wd.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-DFXngazv.mjs → scope-Bevxy_ST.mjs} +4 -4
- package/dist/{shutdown-BCXCwghd.mjs → shutdown-CfrqPR7A.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-5jOzYQ_L.mjs → simpleEqualityMatcher-BJwfuRKP.mjs} +1 -1
- package/dist/{sse-BilBz766.mjs → sse-CuNNWr2z.mjs} +7 -7
- package/dist/{sseStream-BG_uJL6J.mjs → sseStream-C_2ujAVY.mjs} +2 -2
- package/dist/{store-helpers-CzLZdVa1.mjs → store-helpers-C8uBGCbb.mjs} +1 -1
- package/dist/{streaming-DgUvMWlv.mjs → streaming-Bdq_M4d5.mjs} +1 -1
- package/dist/{subscriberIdentity-EWnIZ-U8.mjs → subscriberIdentity-B-KpZkdl.mjs} +1 -1
- package/dist/{tenancy-CVMvO5DH.mjs → tenancy-C5PCvm1h.mjs} +2 -2
- package/dist/{tenantPreparation-DIH-GX4g.mjs → tenantPreparation-dYvWrgNa.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-q9NITK04.mjs → timing-DCqsezX8.mjs} +1 -1
- package/dist/{transactionContext-NHmhDIOF.mjs → transactionContext-DrcNyjpv.mjs} +1 -1
- package/dist/{typeGuards-CPYR9RCg.mjs → typeGuards-CEl10KPy.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-BI4sbUJ3.mjs → types-D9NWjpYc.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-oBTU3a_k.mjs → userHelpers-BHig1kHq.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-BmE8zRrh.mjs → utils-BG5P7_Vb.mjs} +4 -4
- package/dist/{validate-Dby08LhR.mjs → validate-D_mdOCir.mjs} +3 -3
- package/dist/{versioning-P6JMNcJr.mjs → versioning-DBGHjPh7.mjs} +3 -3
- package/dist/{workScope-BcMLKa3G.mjs → workScope-DPPfM4m6.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
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 { i as normalizeToDecision } from "./authorizationDecision-
|
|
8
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
9
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C5bvCiAK.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-CDc7YMwX.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-BHig1kHq.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-D9NWjpYc.mjs";
|
|
7
|
+
import { i as normalizeToDecision } from "./authorizationDecision-D48fUJv1.mjs";
|
|
8
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-CydRfm0i.mjs";
|
|
9
|
+
import { t as MemoryCacheStore } from "./memory-CxiTwT0j.mjs";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
//#region src/permissions/context.ts
|
|
12
12
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { r as ForbiddenError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { r as ForbiddenError } from "./errors-grZkIA8N.mjs";
|
|
3
3
|
//#region 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.45.
|
|
2
|
-
import { n as pipe, t as executePipeline } from "../pipe-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { n as pipe, t as executePipeline } from "../pipe-CQv7PsAK.mjs";
|
|
3
3
|
//#region src/pipeline/guard.ts
|
|
4
4
|
/**
|
|
5
5
|
* Create a named guard.
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
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 { E as ArcQueryParser, v 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 { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-
|
|
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.45.2 | 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-D_aiew34.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C5bvCiAK.mjs";
|
|
4
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-CDc7YMwX.mjs";
|
|
5
|
+
import { d as createDomainError, f as createError, i as NotFoundError, p as isArcError, r as ForbiddenError, u as ValidationError } from "./errors-grZkIA8N.mjs";
|
|
6
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-BJwfuRKP.mjs";
|
|
7
|
+
import { n as requireSingleHeaderValue } from "./headers-Cqkg4LzI.mjs";
|
|
8
|
+
import { n as getUserRoles, t as getUserId } from "./userHelpers-BHig1kHq.mjs";
|
|
9
|
+
import { b as isElevated, c as getOrgId, n as PUBLIC_SCOPE, x as isMember } from "./types-D9NWjpYc.mjs";
|
|
10
|
+
import { r as resolveTenancy } from "./tenancy-C5PCvm1h.mjs";
|
|
11
|
+
import { t as buildQueryKey } from "./keys-C1vFuSbv.mjs";
|
|
12
|
+
import { t as transactionContext } from "./transactionContext-DrcNyjpv.mjs";
|
|
13
|
+
import { a as resolveEffectiveRoles, n as applyFieldWritePermissions } from "./fields-BRX0Krcj.mjs";
|
|
14
|
+
import { E as ArcQueryParser, v as getDefaultCrudSchemas } from "./utils-BG5P7_Vb.mjs";
|
|
15
|
+
import { n as convertRouteSchema, r as ensureSchemaConverter, t as convertOpenApiSchemas } from "./schemaConverter-DNvZWTV6.mjs";
|
|
16
|
+
import { i as pipeUIMessageStreamToReply, r as isReadableStream } from "./streaming-Bdq_M4d5.mjs";
|
|
17
|
+
import { _ as buildArcDecorator, a as resolveRouterPluginMw, b as createRequestContext, c as buildPipelineHandler, d as buildCrudPermissionMw, f as buildRouteHooks, h as buildAuthMiddleware, i as buildRouteConfig, l as resolvePipelineSteps, m as routeHookOptions, n as tryRegisterRoute, o as selectPluginMw, p as resolveRoutePreHandlers, r as buildRateLimitConfig, t as resolveActionPermission, v as createCrudHandlers, y as createFastifyHandler } from "./actionPermissions-DRVk6m7x.mjs";
|
|
18
|
+
import { a as withoutTenantInjection } from "./tenantPreparation-dYvWrgNa.mjs";
|
|
19
|
+
import { t as hasEvents } from "./typeGuards-CEl10KPy.mjs";
|
|
20
|
+
import { n as idempotencyConfigProblem } from "./requirement-Cp_fsMDL.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";
|
|
@@ -3084,7 +3084,7 @@ function buildResourcePlugin(resource) {
|
|
|
3084
3084
|
extensions: resource.extensions
|
|
3085
3085
|
});
|
|
3086
3086
|
if (resource.actions && Object.keys(resource.actions).length > 0) {
|
|
3087
|
-
const { createActionRouter } = await import("./createActionRouter-
|
|
3087
|
+
const { createActionRouter } = await import("./createActionRouter-CvH84dyx.mjs").then((n) => n.n);
|
|
3088
3088
|
const actionConfig = normalizeActionsToRouterConfig(resource.actions, resource.actionPermissions, resource.tag, resource.permissions, resource.name, typedInstance.log);
|
|
3089
3089
|
const actionTarget = resolveActionTargetFence(resource, actionConfig);
|
|
3090
3090
|
createActionRouter(typedInstance, {
|
|
@@ -3104,7 +3104,7 @@ function buildResourcePlugin(resource) {
|
|
|
3104
3104
|
});
|
|
3105
3105
|
}
|
|
3106
3106
|
if (resource.aggregations && Object.keys(resource.aggregations).length > 0) {
|
|
3107
|
-
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-
|
|
3107
|
+
const [{ createAggregationRouter }, { adapterSupportsAggregate, ArcAggregationConfigError }] = await Promise.all([import("./createAggregationRouter-DGyK2Hp6.mjs"), import("./validate-D_mdOCir.mjs").then((n) => n.r)]);
|
|
3108
3108
|
const repoForAgg = resource.controller?.repository ?? resource.repository;
|
|
3109
3109
|
if (!adapterSupportsAggregate(repoForAgg)) {
|
|
3110
3110
|
const undispatchable = Object.entries(resource.aggregations).filter(([, cfg]) => !cfg.materialized).map(([name]) => name);
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { m as MUTATION_OPERATIONS } from "../constants-
|
|
3
|
-
import { t as arcLog } from "../logger-
|
|
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 { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-
|
|
10
|
-
import { t as caching_default } from "../caching-
|
|
11
|
-
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-
|
|
12
|
-
import { t as metrics_default } from "../metrics-
|
|
13
|
-
import { t as realtime_default } from "../realtime-
|
|
14
|
-
import { t as replyHelpersPlugin } from "../replyHelpers-
|
|
15
|
-
import { t as schedules_default } from "../schedules-
|
|
16
|
-
import { t as sse_default } from "../sse-
|
|
17
|
-
import { t as versioning_default } from "../versioning-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { m as MUTATION_OPERATIONS } from "../constants-D_aiew34.mjs";
|
|
3
|
+
import { t as arcLog } from "../logger-C5bvCiAK.mjs";
|
|
4
|
+
import { c as getOrgId } from "../types-D9NWjpYc.mjs";
|
|
5
|
+
import { n as requestContext } from "../requestContext-DIWHKDtQ.mjs";
|
|
6
|
+
import { t as hasEvents } from "../typeGuards-CEl10KPy.mjs";
|
|
7
|
+
import { t as HookSystem } from "../HookSystem-C1u0EUnt.mjs";
|
|
8
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-D2jXWVN_.mjs";
|
|
9
|
+
import { c as createRequestIdGenerator, l as requestId_default, n as health_default, u as sanitizeRequestId } from "../health-DyeP3mTW.mjs";
|
|
10
|
+
import { t as caching_default } from "../caching-Cj0as-P1.mjs";
|
|
11
|
+
import { n as errorHandlerPlugin, t as defaultIsDuplicateKeyError } from "../errorHandler-2p4SL5zm.mjs";
|
|
12
|
+
import { t as metrics_default } from "../metrics-Ckp2zRy-.mjs";
|
|
13
|
+
import { t as realtime_default } from "../realtime-CbWtVbqK.mjs";
|
|
14
|
+
import { t as replyHelpersPlugin } from "../replyHelpers-DA51IZio.mjs";
|
|
15
|
+
import { t as schedules_default } from "../schedules-B693KXxa.mjs";
|
|
16
|
+
import { t as sse_default } from "../sse-CuNNWr2z.mjs";
|
|
17
|
+
import { t as versioning_default } from "../versioning-DBGHjPh7.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,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
3
|
-
import { t as hasEvents } from "../typeGuards-
|
|
4
|
-
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-CydRfm0i.mjs";
|
|
3
|
+
import { t as hasEvents } from "../typeGuards-CEl10KPy.mjs";
|
|
4
|
+
import { n as evictToSize, r as touch, t as assertCapacity } from "../boundedMap-DkKiPifd.mjs";
|
|
5
5
|
import fp from "fastify-plugin";
|
|
6
6
|
//#region src/plugins/response-cache.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.2 | 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.45.
|
|
62
|
+
const resolvedVersion = serviceVersion ?? "2.45.2";
|
|
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.45.
|
|
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.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { i as NotFoundError, u as ValidationError } from "../errors-grZkIA8N.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId } from "../types-D9NWjpYc.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-B14c3OMp.mjs";
|
|
5
|
+
import { t as multipartBody } from "../multipartBody-BFasGtP9.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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
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.45.2 | 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-CquqYJPy.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.45.
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { t as ArcError } from "../errors-
|
|
4
|
-
import { u as getRequestScope } from "../types-
|
|
5
|
-
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import "../constants-D_aiew34.mjs";
|
|
3
|
+
import { t as ArcError } from "../errors-grZkIA8N.mjs";
|
|
4
|
+
import { u as getRequestScope } from "../types-D9NWjpYc.mjs";
|
|
5
|
+
import { i as tagTenantPreparation, t as applyTenantPreparation } from "../tenantPreparation-dYvWrgNa.mjs";
|
|
6
6
|
//#region 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.45.
|
|
2
|
-
import { B as requireAuth, F as allowPublic } from "../permissions-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { B as requireAuth, F as allowPublic } from "../permissions-B14c3OMp.mjs";
|
|
3
3
|
//#region src/presets/search.ts
|
|
4
4
|
const BUILTINS = [
|
|
5
5
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
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.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError } from "./errors-grZkIA8N.mjs";
|
|
3
|
+
import { b as isElevated, n as PUBLIC_SCOPE } from "./types-D9NWjpYc.mjs";
|
|
4
|
+
import { B as requireAuth, F as allowPublic, U as requireRoles } from "./permissions-B14c3OMp.mjs";
|
|
5
5
|
import { multiTenantPreset } from "./presets/multiTenant.mjs";
|
|
6
6
|
//#region src/presets/audited.ts
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { c as getOrgId, f as getScopeContextMap, g as getUserId, m as getTeamId, x as isMember } from "./types-D9NWjpYc.mjs";
|
|
3
3
|
//#region src/scope/projection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Compute the request-scope projection. Returns `undefined` when no
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { i as versionKey, r as tagVersionKey } from "./keys-
|
|
4
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
5
|
-
import { t as hasEvents } from "./typeGuards-
|
|
6
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
|
+
import { i as versionKey, r as tagVersionKey } from "./keys-C1vFuSbv.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-CydRfm0i.mjs";
|
|
5
|
+
import { t as hasEvents } from "./typeGuards-CEl10KPy.mjs";
|
|
6
|
+
import { t as MemoryCacheStore } from "./memory-CxiTwT0j.mjs";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
//#region src/cache/QueryCache.ts
|
|
9
9
|
const MISS = Object.freeze({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-
|
|
5
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
6
|
-
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-
|
|
7
|
-
import { t as applyFieldReadPermissions } from "./fields-
|
|
8
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
9
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
10
|
-
import { t as openSseStream } from "./sseStream-
|
|
11
|
-
import { n as arcRouteValidatorCompiler } from "./routeValidator-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C5bvCiAK.mjs";
|
|
4
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-BJwfuRKP.mjs";
|
|
5
|
+
import { n as getUserRoles } from "./userHelpers-BHig1kHq.mjs";
|
|
6
|
+
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-C5PCvm1h.mjs";
|
|
7
|
+
import { t as applyFieldReadPermissions } from "./fields-BRX0Krcj.mjs";
|
|
8
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-Bdq_M4d5.mjs";
|
|
9
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-D48fUJv1.mjs";
|
|
10
|
+
import { t as openSseStream } from "./sseStream-C_2ujAVY.mjs";
|
|
11
|
+
import { n as arcRouteValidatorCompiler } from "./routeValidator-DuLonYwr.mjs";
|
|
12
12
|
import fp from "fastify-plugin";
|
|
13
13
|
//#region src/plugins/realtime.ts
|
|
14
14
|
var realtime_exports = /* @__PURE__ */ __exportAll({
|
package/dist/registry/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-
|
|
3
|
-
import { t as ResourceRegistry } from "../ResourceRegistry-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { a as getCascadingResources, i as cascadeDeleteForOrganization, n as buildResourceManifestFromRegistry, o as getCascadingResourcesWithMetadata, r as introspectionPlugin_default, s as assertNoTenantData, t as buildResourceManifest } from "../registry-BVwpAuFI.mjs";
|
|
3
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-D2jXWVN_.mjs";
|
|
4
4
|
export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "./constants-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "./constants-D_aiew34.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/registry/assertNoTenantData.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
3
|
import { toCanonicalList } from "@classytic/repo-core/pagination";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
//#region src/plugins/replyHelpers.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
2
|
//#region src/idempotency/requirement.ts
|
|
3
3
|
/** What is wrong with a route's idempotency declaration, or `undefined` when it is sound. */
|
|
4
4
|
function idempotencyConfigProblem(config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as createTenantKeyGenerator } from "./rateLimitKey-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as createTenantKeyGenerator } from "./rateLimitKey-AvkBOMkl.mjs";
|
|
3
3
|
//#region src/permissions/resourceRateLimit.ts
|
|
4
4
|
function decision(allowed, max, remaining, ttlSeconds) {
|
|
5
5
|
const reset = Math.max(1, ttlSeconds);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-
|
|
4
|
-
import { t as runWorkScope } from "./workScope-
|
|
5
|
-
import { t as startRenewingLease } from "./renewingLease-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
|
+
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-CfrqPR7A.mjs";
|
|
4
|
+
import { t as runWorkScope } from "./workScope-DPPfM4m6.mjs";
|
|
5
|
+
import { t as startRenewingLease } from "./renewingLease-CykpeNcQ.mjs";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
//#region src/plugins/schedules.ts
|
|
8
8
|
var schedules_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-C5bvCiAK.mjs";
|
|
3
3
|
//#region src/utils/schemaConverter.ts
|
|
4
4
|
/**
|
|
5
5
|
* Schema Converter — Detect-First, Convert-Only-When-Needed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { o as toJsonSchema } from "./schemaConverter-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { o as toJsonSchema } from "./schemaConverter-DNvZWTV6.mjs";
|
|
3
3
|
//#region src/core/schemaIR.ts
|
|
4
4
|
/**
|
|
5
5
|
* Schema IR — one canonical representation, two adapters.
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
2
|
import { errorContractSchema, errorDetailSchema } from "@classytic/repo-core/errors";
|
|
3
3
|
import { Type, Type as Type$1 } from "typebox";
|
|
4
4
|
//#region src/schemas/index.ts
|
package/dist/scim/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as parseJsonBody } from "../jsonBody-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as parseJsonBody } from "../jsonBody-ptwyzZQ-.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
//#region src/scim/errors.ts
|
|
5
5
|
var ScimError = class extends Error {
|
package/dist/scope/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-
|
|
3
|
-
import { t as createTenantKeyGenerator } from "../rateLimitKey-
|
|
4
|
-
import { t as elevation_default } from "../elevation-
|
|
5
|
-
import { t as resolveOrgFromHeader } from "../scope-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { C as isService, D as requireUserId, E as requireTeamId, O as scopeFirstCtx, S as isOrgInScope, T as requireOrgId, _ as getUserRoles, a as getDPoPJkt, b as isElevated, c as getOrgId, d as getScopeContext, f as getScopeContextMap, g as getUserId, h as getTenantFromRequest, i as getClientId, l as getOrgRoles, m as getTeamId, n as PUBLIC_SCOPE, o as getMandate, p as getServiceScopes, r as getAncestorOrgIds, s as getOrgContext, t as AUTHENTICATED_SCOPE, u as getRequestScope, v as hasOrgAccess, w as requireClientId, x as isMember, y as isAuthenticated } from "../types-D9NWjpYc.mjs";
|
|
3
|
+
import { t as createTenantKeyGenerator } from "../rateLimitKey-AvkBOMkl.mjs";
|
|
4
|
+
import { t as elevation_default } from "../elevation-BJTsSnke.mjs";
|
|
5
|
+
import { t as resolveOrgFromHeader } from "../scope-Bevxy_ST.mjs";
|
|
6
6
|
export { AUTHENTICATED_SCOPE, PUBLIC_SCOPE, createTenantKeyGenerator, elevation_default as elevationPlugin, getAncestorOrgIds, getClientId, getDPoPJkt, getMandate, getOrgContext, getOrgId, getOrgRoles, getRequestScope, getScopeContext, getScopeContextMap, getServiceScopes, getTeamId, getTenantFromRequest, getUserId, getUserRoles, hasOrgAccess, isAuthenticated, isElevated, isMember, isOrgInScope, isService, requireClientId, requireOrgId, requireTeamId, requireUserId, resolveOrgFromHeader, scopeFirstCtx };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-
|
|
3
|
-
import { n as requireSingleHeaderValue } from "./headers-
|
|
4
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-grZkIA8N.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-Cqkg4LzI.mjs";
|
|
4
|
+
import { n as getUserRoles } from "./userHelpers-BHig1kHq.mjs";
|
|
5
5
|
//#region src/scope/resolveOrgFromHeader.ts
|
|
6
6
|
/**
|
|
7
7
|
* Create a preHandler hook that resolves org scope from a header.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
3
|
//#region src/utils/shutdown.ts
|
|
4
4
|
/** Stop admissions across every runtime before draining work and disposing domain engines. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as arcLog } from "./logger-
|
|
4
|
-
import { g as getUserId, n as PUBLIC_SCOPE } from "./types-
|
|
5
|
-
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-
|
|
6
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
7
|
-
import { t as openSseStream } from "./sseStream-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-D_lMdYOd.mjs";
|
|
3
|
+
import { t as arcLog } from "./logger-C5bvCiAK.mjs";
|
|
4
|
+
import { g as getUserId, n as PUBLIC_SCOPE } from "./types-D9NWjpYc.mjs";
|
|
5
|
+
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-C5PCvm1h.mjs";
|
|
6
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-Bdq_M4d5.mjs";
|
|
7
|
+
import { t as openSseStream } from "./sseStream-C_2ujAVY.mjs";
|
|
8
8
|
import fp from "fastify-plugin";
|
|
9
9
|
//#region src/plugins/sse.ts
|
|
10
10
|
var sse_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { n as forwardedStreamHeaders } from "./streaming-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { n as forwardedStreamHeaders } from "./streaming-Bdq_M4d5.mjs";
|
|
3
3
|
//#region src/utils/sseStream.ts
|
|
4
4
|
/**
|
|
5
5
|
* Take over the reply socket and open an SSE stream. Call ONLY after every
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
2
|
//#region src/events/subscriberIdentity.ts
|
|
3
3
|
const SUBSCRIBER_ID = Symbol.for("@classytic/arc/subscriber-id");
|
|
4
4
|
/** Assign a deployment-stable identity for durable per-handler progress; never use an index. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { b as isElevated, c as getOrgId } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { b as isElevated, c as getOrgId } from "./types-D9NWjpYc.mjs";
|
|
3
3
|
//#region src/core/tenancy.ts
|
|
4
4
|
function eventAudienceOf(scope) {
|
|
5
5
|
const tenancy = resolveTenancy({ _scope: scope }, "organizationId");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.45.
|
|
2
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
3
|
-
import { d as createDomainError } from "./errors-
|
|
4
|
-
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.45.2 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-CDc7YMwX.mjs";
|
|
3
|
+
import { d as createDomainError } from "./errors-grZkIA8N.mjs";
|
|
4
|
+
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-D9NWjpYc.mjs";
|
|
5
5
|
//#region src/permissions/tenantPreparation.ts
|
|
6
6
|
/** Tenant preparation shared by HTTP middleware and direct transport invocation. */
|
|
7
7
|
const PREPARATION = Symbol.for("arc.tenantPreparation");
|