@classytic/arc 2.51.0 → 2.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EventTransport-K7Q9WPjm.mjs → EventTransport-DeNze_-C.mjs} +2 -2
- package/dist/{HookSystem-DBAu9uNT.mjs → HookSystem-DTffXM1X.mjs} +2 -2
- package/dist/{ResourceRegistry-BelzCRMy.mjs → ResourceRegistry-tlqXSZoK.mjs} +2 -2
- package/dist/{acquire-B0zhfGSm.mjs → acquire-7JKEkKnN.mjs} +1 -1
- package/dist/audit/index.mjs +4 -4
- package/dist/auth/audit.mjs +1 -1
- package/dist/auth/index.mjs +7 -7
- package/dist/auth/redis-session.mjs +1 -1
- package/dist/auth/social/index.mjs +1 -1
- package/dist/{authorizationDecision-Dxj_cy6N.mjs → authorizationDecision-DKmH4tZ-.mjs} +9 -7
- package/dist/{boundedMap-DOBai-H3.mjs → boundedMap-zxGBpXX0.mjs} +1 -1
- package/dist/{buildHandler-Dyl8P9j0.mjs → buildHandler-ZDV6LRZ_.mjs} +5 -5
- package/dist/cache/index.mjs +4 -4
- package/dist/{caching-CUmaNL8Y.mjs → caching-DceUN9Xk.mjs} +2 -2
- package/dist/{claimed-DJPk4VZr.mjs → claimed-DsP5Hi_f.mjs} +1 -1
- package/dist/cleanup/index.mjs +4 -4
- package/dist/cli/commands/describe.mjs +3 -3
- package/dist/cli/commands/docs.mjs +3 -3
- package/dist/cli/commands/doctor.mjs +1 -1
- package/dist/cli/commands/generate.mjs +2 -2
- package/dist/cli/commands/init.mjs +2 -2
- package/dist/cli/commands/introspect.mjs +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{constants-DH41jnNT.mjs → constants-Ca2IQFy2.mjs} +1 -1
- package/dist/context/index.mjs +5 -5
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +7 -7
- package/dist/{core-DPmRWlpx.mjs → core-M18RhMqi.mjs} +3 -3
- package/dist/{createActionRouter-B1xhER6i.mjs → createActionRouter-zXlrwWVs.mjs} +5 -5
- package/dist/{createAggregationRouter-CNntJL-z.mjs → createAggregationRouter-CN0Da9nC.mjs} +7 -7
- package/dist/{createApp-DpG26bCu.mjs → createApp-BC67ACu4.mjs} +29 -29
- package/dist/{defineAggregation-rI3EbZUg.mjs → defineAggregation-DqAGb5oI.mjs} +1 -1
- package/dist/{defineResource-5DcG_wlI.mjs → defineResource-DC5UqkQv.mjs} +8 -8
- package/dist/discovery/index.mjs +1 -1
- package/dist/docs/index.mjs +3 -3
- package/dist/{elevation-XFu7J3aj.mjs → elevation-DiXVg98q.mjs} +5 -5
- package/dist/encryption/index.d.mts +26 -1
- package/dist/encryption/index.mjs +56 -6
- package/dist/{errorHandler-xDVUWOMu.mjs → errorHandler-BUTm9P_f.mjs} +3 -3
- package/dist/{errors-KBZ3tQk5.mjs → errors-DxpHZBlW.mjs} +1 -1
- package/dist/{eventPlugin-C4lNj2Dw.mjs → eventPlugin-ZsIQPRso.mjs} +8 -8
- package/dist/{eventTypes-DZRoUAdk.mjs → eventTypes-D-pFtqT1.mjs} +2 -2
- package/dist/events/index.mjs +8 -8
- package/dist/events/transports/redis-stream-entry.mjs +4 -4
- package/dist/events/transports/redis.mjs +2 -2
- package/dist/factory/index.d.mts +4 -4
- package/dist/factory/index.mjs +7 -7
- package/dist/{fastify-augmentation-baQc3MaO.d.mts → fastify-augmentation-CPReFhZ1.d.mts} +1 -1
- package/dist/{fieldTypes-DrXUW1jc.mjs → fieldTypes-f-3TZgR3.mjs} +2 -2
- package/dist/{fields-C5J8WTd2.mjs → fields-kCbIDTjA.mjs} +1 -1
- package/dist/{filter-merge-DTjYoDrj.mjs → filter-merge-UJCgjbZR.mjs} +1 -1
- package/dist/{generate-SA8oMlLB.mjs → generate-CLpmzbJ_.mjs} +2 -2
- package/dist/{headers-D5wrBLOk.mjs → headers-Bh47h0XH.mjs} +2 -2
- package/dist/{health-BLal039H.mjs → health-CEpgVAl7.mjs} +1 -1
- package/dist/{health-vEo3fni4.mjs → health-W4S2yFBL.mjs} +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/http-cache/index.mjs +4 -4
- package/dist/http-cache/purgers/cloudflare.mjs +2 -2
- package/dist/http-cache/purgers/fastly.mjs +2 -2
- package/dist/http-cache/testing/index.mjs +1 -1
- package/dist/idempotency/index.mjs +7 -7
- package/dist/idempotency/redis.mjs +2 -2
- package/dist/{index-DexdFs1a.d.mts → index-CSbDhif4.d.mts} +19 -1
- package/dist/{index-DKM2p5w5.d.mts → index-DCH08eqQ.d.mts} +1 -1
- package/dist/{index-Dhrks-hM.d.mts → index-yXXCsKl7.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +11 -11
- package/dist/{init-DeKHaNZn.mjs → init-B43DXBpc.mjs} +1 -1
- package/dist/integrations/event-gateway.mjs +2 -2
- package/dist/integrations/index.mjs +1 -1
- package/dist/integrations/jobs/index.mjs +3 -3
- package/dist/integrations/mcp/index.mjs +2 -2
- package/dist/integrations/mcp/testing.mjs +2 -2
- package/dist/integrations/streamline.mjs +3 -3
- package/dist/integrations/webhooks.mjs +4 -4
- package/dist/integrations/websocket-pushref-redis.mjs +1 -1
- package/dist/integrations/websocket-redis.mjs +1 -1
- package/dist/integrations/websocket.mjs +2 -2
- package/dist/{jsonBody-rDPGT5A9.mjs → jsonBody-CkKs6dA_.mjs} +2 -2
- package/dist/{keys-t7i-lJ2r.mjs → keys-DHrHnT0f.mjs} +1 -1
- package/dist/{loadResources-CcupAVJH.mjs → loadResources-CFdzAWQZ.mjs} +3 -3
- package/dist/{loadResourcesFromEntry-BpjYlaoj.mjs → loadResourcesFromEntry-DkoSiJsI.mjs} +2 -2
- package/dist/logger/index.mjs +2 -2
- package/dist/{logger-IL7Btm-N.mjs → logger-DJwz_-Pl.mjs} +1 -1
- package/dist/{mcpPlugin-BsdH7Vot.mjs → mcpPlugin-CA_MDFlS.mjs} +21 -21
- package/dist/{memory-Dkp6ZD3F.mjs → memory-B9CFHbA_.mjs} +3 -3
- package/dist/{metrics-CDPqgdKr.mjs → metrics-DSKv-T9K.mjs} +3 -3
- package/dist/middleware/index.mjs +3 -3
- package/dist/migrations/index.mjs +2 -2
- package/dist/{module-KFxT1Iuk.mjs → module-C0JCsnO7.mjs} +17 -2
- package/dist/{multipartBody-BHktuarE.mjs → multipartBody-Bxz-q6hI.mjs} +1 -1
- package/dist/{observeSend-CY-sLanc.mjs → observeSend-DfNkdGww.mjs} +1 -1
- package/dist/{openapi-DbeXiy2v.mjs → openapi-Dmp7Ipsi.mjs} +6 -6
- package/dist/outbox-admin/index.mjs +5 -5
- package/dist/{outbox-module-BWqkTE8-.mjs → outbox-module-vT6PaThj.mjs} +7 -7
- package/dist/permissions/index.mjs +7 -7
- package/dist/{permissions-e5YMrFbm.mjs → permissions-Cga6KBOX.mjs} +9 -9
- package/dist/{pipe-CMnKfdF4.mjs → pipe-CqPweKdL.mjs} +2 -2
- package/dist/pipeline/index.mjs +2 -2
- package/dist/{plan-BvLJGm3U.mjs → plan-CbDTFbTj.mjs} +1 -1
- package/dist/{plugin-DYmu8uT4.mjs → plugin-8Z1khbAI.mjs} +24 -24
- package/dist/plugins/index.d.mts +1 -1
- package/dist/plugins/index.mjs +18 -18
- package/dist/plugins/response-cache.mjs +4 -4
- package/dist/plugins/tracing-entry.mjs +2 -2
- package/dist/{pluralize-ClwfBdIx.mjs → pluralize-D4vcPLVs.mjs} +1 -1
- package/dist/presets/filesUpload.mjs +5 -5
- package/dist/presets/index.mjs +2 -2
- package/dist/presets/multiTenant.mjs +5 -5
- package/dist/presets/search.mjs +2 -2
- package/dist/{presets-DX_lPabi.mjs → presets-D28IABZe.mjs} +4 -4
- package/dist/{projection-DnZiFPPE.mjs → projection-aHCtDQQ9.mjs} +2 -2
- package/dist/{purger.types-BEzTVDOU.mjs → purger.types-CNFmEtFu.mjs} +1 -1
- package/dist/{queryCachePlugin-C57-Nj-g.mjs → queryCachePlugin-CwpEjCwz.mjs} +6 -6
- package/dist/{rateLimitKey-B1RxyGt3.mjs → rateLimitKey-D9dl3FQn.mjs} +1 -1
- package/dist/{realtime-C-VIoXMg.mjs → realtime-Dvu8ES2z.mjs} +11 -11
- package/dist/registry/index.d.mts +1 -1
- package/dist/registry/index.mjs +3 -3
- package/dist/{registry-DbQvODPH.mjs → registry-DmxbzW7-.mjs} +2 -2
- package/dist/{relay-B61seKq1.mjs → relay-CEaCmUfG.mjs} +5 -5
- package/dist/{renewingLease-Dp7wmzNN.mjs → renewingLease-g2FjB3im.mjs} +1 -1
- package/dist/{replyHelpers-CHii_jIO.mjs → replyHelpers-CSByAX_Z.mjs} +2 -2
- package/dist/{requestContext-C_mbAm8o.mjs → requestContext-yc7MSgmq.mjs} +1 -1
- package/dist/{requirement-C8OsWLYp.mjs → requirement-Dm8njSoC.mjs} +1 -1
- package/dist/{resourceRateLimit-DhbQZjE2.mjs → resourceRateLimit-PQaY3HW1.mjs} +2 -2
- package/dist/{rolldown-runtime-HTi8KV7V.mjs → rolldown-runtime-BBBkGgwA.mjs} +1 -1
- package/dist/{routeValidator-DnQ2BGnH.mjs → routeValidator-fuG51bQA.mjs} +1 -1
- package/dist/{runtimeCapabilities-G9QXHov1.mjs → runtimeCapabilities-B8IT7xiQ.mjs} +1 -1
- package/dist/{schedules-DAthT5O3.mjs → schedules-0-aS4jDV.mjs} +5 -5
- package/dist/{schemaConverter-BOt_ed78.mjs → schemaConverter-Cs3SwP4R.mjs} +2 -2
- package/dist/{schemaIR-MZVVj6Cw.mjs → schemaIR-By8XiNeE.mjs} +14 -14
- package/dist/schemas/index.mjs +1 -1
- package/dist/scim/index.mjs +2 -2
- package/dist/scope/index.mjs +5 -5
- package/dist/{scope-btg-225w.mjs → scope-BWNAlBj0.mjs} +4 -4
- package/dist/{shutdown-Dfy8La90.mjs → shutdown-Cf-27xsS.mjs} +1 -1
- package/dist/{simpleEqualityMatcher-D5dOqbbj.mjs → simpleEqualityMatcher-e-dgJcUO.mjs} +1 -1
- package/dist/{sse-DivxX1m6.mjs → sse-C3bj5qWi.mjs} +7 -7
- package/dist/{sseStream-hQxQjvre.mjs → sseStream-BYZbpFDa.mjs} +2 -2
- package/dist/{store-helpers-DfqfssAw.mjs → store-helpers-B9HierHY.mjs} +1 -1
- package/dist/{streaming-CQiOktsh.mjs → streaming-EN8NJWxr.mjs} +1 -1
- package/dist/{subscriberIdentity-Bf8VLqA7.mjs → subscriberIdentity-DSqCh38x.mjs} +1 -1
- package/dist/{tenancy-Btmaf1MB.mjs → tenancy-CAqjGQcQ.mjs} +2 -2
- package/dist/{tenantPreparation-4e3qyb6q.mjs → tenantPreparation-CVBWarqs.mjs} +4 -4
- package/dist/testing/cleanupStoreContract.mjs +1 -1
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +11 -11
- package/dist/testing/outboxStoreContract.mjs +2 -2
- package/dist/testing/requiredPorts.mjs +2 -2
- package/dist/testing/storageContract.mjs +1 -1
- package/dist/{timing-DXx0IWyi.mjs → timing-CKI_Oyub.mjs} +1 -1
- package/dist/{transactionContext-DperjON1.mjs → transactionContext-D0UZFoSy.mjs} +1 -1
- package/dist/{typeGuards-eoQLIOh6.mjs → typeGuards-CLYkmBLT.mjs} +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/storage.mjs +1 -1
- package/dist/{types-CcpISJe8.mjs → types-Cunc4shv.mjs} +4 -4
- package/dist/usage/index.mjs +4 -4
- package/dist/{userHelpers-Cp5zqlEN.mjs → userHelpers-cT5j1kgp.mjs} +1 -1
- package/dist/utils/index.mjs +12 -12
- package/dist/{utils-dKN-_315.mjs → utils-DlNkm1dI.mjs} +6 -6
- package/dist/{validate-BZHaAdgy.mjs → validate-63QThRoS.mjs} +3 -3
- package/dist/{versioning-CPLP0VbB.mjs → versioning-f2YGmh4i.mjs} +3 -3
- package/dist/{workScope-BI72KXsI.mjs → workScope-DwspXz70.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
// src/http-cache/purgers/purger.types.ts
|
|
3
3
|
/** A purge the CDN refused or never answered: a closed code plus the provider's own codes, never a credential. */
|
|
4
4
|
var CachePurgeError = class extends Error {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as declareRuntimeCapability } from "./runtimeCapabilities-
|
|
4
|
-
import { t as hasEvents } from "./typeGuards-
|
|
5
|
-
import { t as MemoryCacheStore } from "./memory-
|
|
6
|
-
import { i as versionKey, r as tagVersionKey } from "./keys-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { n as declareRuntimeCapability } from "./runtimeCapabilities-B8IT7xiQ.mjs";
|
|
4
|
+
import { t as hasEvents } from "./typeGuards-CLYkmBLT.mjs";
|
|
5
|
+
import { t as MemoryCacheStore } from "./memory-B9CFHbA_.mjs";
|
|
6
|
+
import { i as versionKey, r as tagVersionKey } from "./keys-DHrHnT0f.mjs";
|
|
7
7
|
import fp from "fastify-plugin";
|
|
8
8
|
// src/cache/QueryCache.ts
|
|
9
9
|
const MISS = Object.freeze({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as arcRouteValidatorCompiler } from "./routeValidator-
|
|
4
|
-
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-
|
|
5
|
-
import { t as arcLog } from "./logger-
|
|
6
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
7
|
-
import { t as applyFieldReadPermissions } from "./fields-
|
|
8
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
9
|
-
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-
|
|
10
|
-
import { a as registerSseStats, r as openSseStream } from "./sseStream-
|
|
11
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { n as arcRouteValidatorCompiler } from "./routeValidator-fuG51bQA.mjs";
|
|
4
|
+
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CAqjGQcQ.mjs";
|
|
5
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
6
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-DKmH4tZ-.mjs";
|
|
7
|
+
import { t as applyFieldReadPermissions } from "./fields-kCbIDTjA.mjs";
|
|
8
|
+
import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
|
|
9
|
+
import { t as simpleEqualityMatcher } from "./simpleEqualityMatcher-e-dgJcUO.mjs";
|
|
10
|
+
import { a as registerSseStats, r as openSseStream } from "./sseStream-BYZbpFDa.mjs";
|
|
11
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-EN8NJWxr.mjs";
|
|
12
12
|
import { STREAM_FRAMES } from "@classytic/repo-core/sync";
|
|
13
13
|
import fp from "fastify-plugin";
|
|
14
14
|
// src/plugins/realtime.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import "../fastify-augmentation-
|
|
2
|
+
import "../fastify-augmentation-CPReFhZ1.mjs";
|
|
3
3
|
import { F as ResourceDefinition, G as CrudRouteKey, M as ResourceRegistry, N as RouteRow, S as IntrospectionPluginOptions, V as ResolvedTenantPurge, j as RegisterOptions, o as RegistryEntry } from "../index-DLCcLUQT.mjs";
|
|
4
4
|
import { TenantPurgeProgress, TenantPurgeStrategy } from "@classytic/repo-core/repository";
|
|
5
5
|
import { FastifyPluginAsync } from "fastify";
|
package/dist/registry/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
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.52.0 | 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-DmxbzW7-.mjs";
|
|
3
|
+
import { t as ResourceRegistry } from "../ResourceRegistry-tlqXSZoK.mjs";
|
|
4
4
|
export { ResourceRegistry, assertNoTenantData, buildResourceManifest, buildResourceManifestFromRegistry, cascadeDeleteForOrganization, getCascadingResources, getCascadingResourcesWithMetadata, introspectionPlugin_default as introspectionPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as CRUD_OPERATIONS } from "./constants-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as CRUD_OPERATIONS } from "./constants-Ca2IQFy2.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
// src/registry/assertNoTenantData.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
3
|
-
import { n as evictToSize, r as touch } from "./boundedMap-
|
|
4
|
-
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-
|
|
5
|
-
import { t as claimedAttempts } from "./claimed-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
3
|
+
import { n as evictToSize, r as touch } from "./boundedMap-zxGBpXX0.mjs";
|
|
4
|
+
import { n as createSafeGetOne, t as createIsDuplicateKeyError } from "./store-helpers-B9HierHY.mjs";
|
|
5
|
+
import { t as claimedAttempts } from "./claimed-DsP5Hi_f.mjs";
|
|
6
6
|
import { and, anyOf, eq, lte, ne, or } from "@classytic/repo-core/filter";
|
|
7
7
|
import { InvalidOutboxEventError, OutboxConflictError, OutboxOwnershipError, outboxPayloadFingerprint } from "@classytic/primitives/outbox";
|
|
8
8
|
import { update } from "@classytic/repo-core/update";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
3
|
import { toCanonicalList } from "@classytic/repo-core/pagination";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
// src/plugins/replyHelpers.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
// 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.
|
|
2
|
-
import { t as createTenantKeyGenerator } from "./rateLimitKey-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as createTenantKeyGenerator } from "./rateLimitKey-D9dl3FQn.mjs";
|
|
3
3
|
// 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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { t as runWorkScope } from "./workScope-
|
|
4
|
-
import { t as startRenewingLease } from "./renewingLease-
|
|
5
|
-
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { t as runWorkScope } from "./workScope-DwspXz70.mjs";
|
|
4
|
+
import { t as startRenewingLease } from "./renewingLease-g2FjB3im.mjs";
|
|
5
|
+
import { a as runShutdown, i as runAdmittedWork, r as registerShutdownParticipant } from "./shutdown-Cf-27xsS.mjs";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
import { civilDateOf, civilDateToInstant, isValidTimeZone, localTimeParts } from "@classytic/primitives/timezone";
|
|
8
8
|
// src/plugins/dailyGate.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as arcLog } from "./logger-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
3
3
|
// src/utils/schemaConverter.ts
|
|
4
4
|
/**
|
|
5
5
|
* Schema Converter — Detect-First, Convert-Only-When-Needed
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { f as createError } from "./errors-
|
|
3
|
-
import { n as getUserRoles } from "./userHelpers-
|
|
4
|
-
import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-
|
|
5
|
-
import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-
|
|
6
|
-
import { o as toJsonSchema } from "./schemaConverter-
|
|
7
|
-
import { t as buildRequestScopeProjection } from "./projection-
|
|
8
|
-
import { n as requestContext } from "./requestContext-
|
|
9
|
-
import { n as isTenantPreparation } from "./tenantPreparation-
|
|
10
|
-
import { n as evaluateAndApplyPermission } from "./authorizationDecision-
|
|
11
|
-
import { t as executePipeline } from "./pipe-
|
|
12
|
-
import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-
|
|
13
|
-
import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-
|
|
14
|
-
import { n as arcRouteValidatorCompiler } from "./routeValidator-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { f as createError } from "./errors-DxpHZBlW.mjs";
|
|
3
|
+
import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
|
|
4
|
+
import { b as isElevated, n as PUBLIC_SCOPE, u as getRequestScope, x as isMember } from "./types-Cunc4shv.mjs";
|
|
5
|
+
import { a as resolveEffectiveRoles, r as deriveHiddenFieldPermissions, t as applyFieldReadPermissions } from "./fields-kCbIDTjA.mjs";
|
|
6
|
+
import { o as toJsonSchema } from "./schemaConverter-Cs3SwP4R.mjs";
|
|
7
|
+
import { t as buildRequestScopeProjection } from "./projection-aHCtDQQ9.mjs";
|
|
8
|
+
import { n as requestContext } from "./requestContext-yc7MSgmq.mjs";
|
|
9
|
+
import { n as isTenantPreparation } from "./tenantPreparation-CVBWarqs.mjs";
|
|
10
|
+
import { n as evaluateAndApplyPermission } from "./authorizationDecision-DKmH4tZ-.mjs";
|
|
11
|
+
import { t as executePipeline } from "./pipe-CqPweKdL.mjs";
|
|
12
|
+
import { n as idempotencyConfigProblem, t as declaresIdempotencyFence } from "./requirement-Dm8njSoC.mjs";
|
|
13
|
+
import { i as resolveResourceRateLimiter, r as recordUnenforcedRateLimit } from "./resourceRateLimit-PQaY3HW1.mjs";
|
|
14
|
+
import { n as arcRouteValidatorCompiler } from "./routeValidator-fuG51bQA.mjs";
|
|
15
15
|
import { isPaginatedResult, toCanonicalList } from "@classytic/repo-core/pagination";
|
|
16
16
|
// src/core/fastifyAdapter.ts
|
|
17
17
|
/** Type guard for Mongoose-like documents with toObject() */
|
package/dist/schemas/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | 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
|
// src/schemas/index.ts
|
package/dist/scim/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as parseJsonBody } from "../jsonBody-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as parseJsonBody } from "../jsonBody-CkKs6dA_.mjs";
|
|
3
3
|
import fp from "fastify-plugin";
|
|
4
4
|
// 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.
|
|
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.52.0 | 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-Cunc4shv.mjs";
|
|
3
|
+
import { t as createTenantKeyGenerator } from "../rateLimitKey-D9dl3FQn.mjs";
|
|
4
|
+
import { t as elevation_default } from "../elevation-DiXVg98q.mjs";
|
|
5
|
+
import { t as resolveOrgFromHeader } from "../scope-BWNAlBj0.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.
|
|
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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { a as OrgAccessDeniedError, l as UnauthorizedError } from "./errors-DxpHZBlW.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
|
|
4
|
+
import { n as getUserRoles } from "./userHelpers-cT5j1kgp.mjs";
|
|
5
5
|
// 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.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
3
|
// 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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-
|
|
4
|
-
import { t as arcLog } from "./logger-
|
|
5
|
-
import { g as getUserId, n as PUBLIC_SCOPE } from "./types-
|
|
6
|
-
import { a as registerSseStats, r as openSseStream } from "./sseStream-
|
|
7
|
-
import { a as promoteStreamTokenToHeader } from "./streaming-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { n as isEventVisible, t as eventAudienceOf } from "./tenancy-CAqjGQcQ.mjs";
|
|
4
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
5
|
+
import { g as getUserId, n as PUBLIC_SCOPE } from "./types-Cunc4shv.mjs";
|
|
6
|
+
import { a as registerSseStats, r as openSseStream } from "./sseStream-BYZbpFDa.mjs";
|
|
7
|
+
import { a as promoteStreamTokenToHeader } from "./streaming-EN8NJWxr.mjs";
|
|
8
8
|
import fp from "fastify-plugin";
|
|
9
9
|
// src/plugins/sse.ts
|
|
10
10
|
var sse_exports = /* @__PURE__ */ __exportAll({ default: () => sse_default });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as forwardedStreamHeaders } from "./streaming-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as forwardedStreamHeaders } from "./streaming-EN8NJWxr.mjs";
|
|
3
3
|
// src/utils/sseStats.ts
|
|
4
4
|
/** Per-instance stats providers behind one `sseStats` decorator. */
|
|
5
5
|
const statsProviders = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
// 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.
|
|
2
|
-
import { b as isElevated, c as getOrgId } from "./types-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { b as isElevated, c as getOrgId } from "./types-Cunc4shv.mjs";
|
|
3
3
|
// 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.
|
|
2
|
-
import { t as conjoinPolicyFilters } from "./filter-merge-
|
|
3
|
-
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-
|
|
4
|
-
import { d as createDomainError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as conjoinPolicyFilters } from "./filter-merge-UJCgjbZR.mjs";
|
|
3
|
+
import { b as isElevated, c as getOrgId, d as getScopeContext, m as getTeamId, v as hasOrgAccess } from "./types-Cunc4shv.mjs";
|
|
4
|
+
import { d as createDomainError } from "./errors-DxpHZBlW.mjs";
|
|
5
5
|
// src/permissions/tenantPreparation.ts
|
|
6
6
|
/** Tenant preparation shared by HTTP middleware and direct transport invocation. */
|
|
7
7
|
const PREPARATION = Symbol.for("arc.tenantPreparation");
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { h as ModuleSetupContext, m as ModuleDisposer, o as ArcPorts, p as PortName, r as ArcModuleInput, u as ModuleName } from "../types-BeEJm-DV.mjs";
|
|
3
|
-
import "../index-
|
|
4
|
-
import { r as CreateAppOptions } from "../index-
|
|
3
|
+
import "../index-CSbDhif4.mjs";
|
|
4
|
+
import { r as CreateAppOptions } from "../index-yXXCsKl7.mjs";
|
|
5
5
|
import { i as RequestScope } from "../types-DnkIALZ8.mjs";
|
|
6
6
|
import { l as PermissionCheck, t as AnyRecord } from "../base-HXNgPQww.mjs";
|
|
7
7
|
import { F as ResourceDefinition } from "../index-DLCcLUQT.mjs";
|
package/dist/testing/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-
|
|
3
|
-
import { h as asModulePorts, r as createApp } from "../createApp-
|
|
4
|
-
import { n as getModuleExports } from "../module-
|
|
5
|
-
import { g as getUserId } from "../types-
|
|
6
|
-
import { t as defineAggregation } from "../defineAggregation-
|
|
7
|
-
import { f as BaseController } from "../plugin-
|
|
8
|
-
import { t as defineResource } from "../defineResource-
|
|
9
|
-
import { t as CRUD_OPERATIONS } from "../constants-
|
|
10
|
-
import { E as requireOrgRole } from "../permissions-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { d as resolveModule, l as isLazyBridge, o as resolveModuleClosure } from "../plan-CbDTFbTj.mjs";
|
|
3
|
+
import { h as asModulePorts, r as createApp } from "../createApp-BC67ACu4.mjs";
|
|
4
|
+
import { n as getModuleExports } from "../module-C0JCsnO7.mjs";
|
|
5
|
+
import { g as getUserId } from "../types-Cunc4shv.mjs";
|
|
6
|
+
import { t as defineAggregation } from "../defineAggregation-DqAGb5oI.mjs";
|
|
7
|
+
import { f as BaseController } from "../plugin-8Z1khbAI.mjs";
|
|
8
|
+
import { t as defineResource } from "../defineResource-DC5UqkQv.mjs";
|
|
9
|
+
import { t as CRUD_OPERATIONS } from "../constants-Ca2IQFy2.mjs";
|
|
10
|
+
import { E as requireOrgRole } from "../permissions-Cga6KBOX.mjs";
|
|
11
11
|
import { runStorageContract } from "./storageContract.mjs";
|
|
12
12
|
import Fastify from "fastify";
|
|
13
13
|
import { mkdir, mkdtemp, readFile, readdir, rm, stat } from "node:fs/promises";
|
|
@@ -1873,7 +1873,7 @@ function pickDefaultAuth(authMode, callerAuth) {
|
|
|
1873
1873
|
};
|
|
1874
1874
|
}
|
|
1875
1875
|
async function createTestApp(options = {}) {
|
|
1876
|
-
const { createApp } = await import("../createApp-
|
|
1876
|
+
const { createApp } = await import("../createApp-BC67ACu4.mjs").then((n) => n.i);
|
|
1877
1877
|
const { resources = [], db = "in-memory", connectMongoose = false, authMode = "jwt", defaultOrgId, plugins, auth: callerAuth, ...appOptions } = options;
|
|
1878
1878
|
let dbHandle;
|
|
1879
1879
|
let dbUri;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as claimedAttempts } from "../claimed-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as claimedAttempts } from "../claimed-DsP5Hi_f.mjs";
|
|
3
3
|
import { OutboxConflictError, OutboxOwnershipError } from "@classytic/primitives/outbox";
|
|
4
4
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
|
5
5
|
// src/testing/outboxStoreContract.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { c as declareModules, d as resolveModule, i as planModules, r as compositionProblems } from "../plan-CbDTFbTj.mjs";
|
|
3
3
|
// 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.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
// 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.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
export {};
|
package/dist/types/storage.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
2
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { l as UnauthorizedError, o as OrgRequiredError } from "./errors-DxpHZBlW.mjs";
|
|
3
|
+
import { n as requireSingleHeaderValue } from "./headers-Bh47h0XH.mjs";
|
|
4
|
+
import { t as getUserId$1 } from "./userHelpers-cT5j1kgp.mjs";
|
|
5
5
|
// 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.
|
|
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.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError } from "../errors-DxpHZBlW.mjs";
|
|
3
|
+
import { c as getOrgId, g as getUserId, i as getClientId } from "../types-Cunc4shv.mjs";
|
|
4
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
|
|
5
5
|
import { usagePeriod } from "@classytic/repo-core/usage";
|
|
6
6
|
import fp from "fastify-plugin";
|
|
7
7
|
// src/usage/requireQuota.ts
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
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 { A as MONGO_DIALECT, C as listResponse, D as responses, E as queryParams, O as ArcQueryParser, S as keysetListResponse, T as paginationSchema, _ as bareListResponse, a as defineGuard, b as getDefaultCrudSchemas, c as withCompensation, d as CircuitBreakerError, f as CircuitBreakerRegistry, g as aggregateListResponse, h as createCircuitBreakerRegistry, i as handleRaw, j as NEUTRAL_DIALECT, k as createQueryParser, l as RedisCircuitBreakerState, m as createCircuitBreaker, n as createReplayHub, o as defineErrorMapper, p as CircuitState, r as lastEventIdOf, s as defineCompensation, t as createStateMachine, u as CircuitBreaker, v as deleteResponse, w as offsetListResponse, x as getListQueryParams, y as errorContractSchema } 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 { a as registerSseStats, i as createSseConnectionGauge, n as SSE_DEFAULT_MAX_BUFFERED_BYTES, r as openSseStream, t as SSE_DEFAULT_DRAIN_TIMEOUT_MS } from "../sseStream-
|
|
10
|
-
import { n as declareRuntimeCapability } from "../runtimeCapabilities-
|
|
11
|
-
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-
|
|
12
|
-
import { t as hasEvents } from "../typeGuards-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | 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-DxpHZBlW.mjs";
|
|
3
|
+
import { t as simpleEqualityMatcher } from "../simpleEqualityMatcher-e-dgJcUO.mjs";
|
|
4
|
+
import { n as requireSingleHeaderValue, t as getHeader } from "../headers-Bh47h0XH.mjs";
|
|
5
|
+
import { n as getUserRoles, r as normalizeRoles, t as getUserId } from "../userHelpers-cT5j1kgp.mjs";
|
|
6
|
+
import { A as MONGO_DIALECT, C as listResponse, D as responses, E as queryParams, O as ArcQueryParser, S as keysetListResponse, T as paginationSchema, _ as bareListResponse, a as defineGuard, b as getDefaultCrudSchemas, c as withCompensation, d as CircuitBreakerError, f as CircuitBreakerRegistry, g as aggregateListResponse, h as createCircuitBreakerRegistry, i as handleRaw, j as NEUTRAL_DIALECT, k as createQueryParser, l as RedisCircuitBreakerState, m as createCircuitBreaker, n as createReplayHub, o as defineErrorMapper, p as CircuitState, r as lastEventIdOf, s as defineCompensation, t as createStateMachine, u as CircuitBreaker, v as deleteResponse, w as offsetListResponse, x as getListQueryParams, y as errorContractSchema } from "../utils-DlNkm1dI.mjs";
|
|
7
|
+
import { a as isZodSchema, i as isJsonSchema, n as convertRouteSchema, o as toJsonSchema, t as convertOpenApiSchemas } from "../schemaConverter-Cs3SwP4R.mjs";
|
|
8
|
+
import { a as promoteStreamTokenToHeader, i as pipeUIMessageStreamToReply, n as forwardedStreamHeaders, r as isReadableStream, t as UI_MESSAGE_STREAM_HEADERS } from "../streaming-EN8NJWxr.mjs";
|
|
9
|
+
import { a as registerSseStats, i as createSseConnectionGauge, n as SSE_DEFAULT_MAX_BUFFERED_BYTES, r as openSseStream, t as SSE_DEFAULT_DRAIN_TIMEOUT_MS } from "../sseStream-BYZbpFDa.mjs";
|
|
10
|
+
import { n as declareRuntimeCapability } from "../runtimeCapabilities-B8IT7xiQ.mjs";
|
|
11
|
+
import { i as runAdmittedWork, r as registerShutdownParticipant } from "../shutdown-Cf-27xsS.mjs";
|
|
12
|
+
import { t as hasEvents } from "../typeGuards-CLYkmBLT.mjs";
|
|
13
13
|
export { ArcError, ArcQueryParser, CircuitBreaker, CircuitBreakerError, CircuitBreakerRegistry, CircuitState, ConflictError, ForbiddenError, MONGO_DIALECT, NEUTRAL_DIALECT, NotFoundError, OrgAccessDeniedError, OrgRequiredError, RateLimitError, RedisCircuitBreakerState, SSE_DEFAULT_DRAIN_TIMEOUT_MS, SSE_DEFAULT_MAX_BUFFERED_BYTES, ServiceUnavailableError, UI_MESSAGE_STREAM_HEADERS, UnauthorizedError, ValidationError, aggregateListResponse, bareListResponse, convertOpenApiSchemas, convertRouteSchema, createCircuitBreaker, createCircuitBreakerRegistry, createDomainError, createError, createQueryParser, createReplayHub, createSseConnectionGauge, createStateMachine, declareRuntimeCapability, defineCompensation, defineErrorMapper, defineGuard, deleteResponse, errorContractSchema, forwardedStreamHeaders, getDefaultCrudSchemas, getHeader, getListQueryParams, getUserId, getUserRoles, handleRaw, hasEvents, isArcError, isJsonSchema, isReadableStream, isZodSchema, keysetListResponse, lastEventIdOf, listResponse, normalizeRoles, offsetListResponse, openSseStream, paginationSchema, pipeUIMessageStreamToReply, promoteStreamTokenToHeader, queryParams, registerShutdownParticipant, registerSseStats, requireSingleHeaderValue, responses, runAdmittedWork, simpleEqualityMatcher, toJsonSchema, withCompensation };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { t as ArcError, u as ValidationError } from "./errors-
|
|
3
|
-
import { t as runObservingSend } from "./observeSend-
|
|
4
|
-
import { h as RESERVED_QUERY_PARAMS } from "./constants-
|
|
5
|
-
import { t as arcLog } from "./logger-
|
|
6
|
-
import { a as registerSseStats } from "./sseStream-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as ArcError, u as ValidationError } from "./errors-DxpHZBlW.mjs";
|
|
3
|
+
import { t as runObservingSend } from "./observeSend-DfNkdGww.mjs";
|
|
4
|
+
import { h as RESERVED_QUERY_PARAMS } from "./constants-Ca2IQFy2.mjs";
|
|
5
|
+
import { t as arcLog } from "./logger-DJwz_-Pl.mjs";
|
|
6
|
+
import { a as registerSseStats } from "./sseStream-BYZbpFDa.mjs";
|
|
7
7
|
import { errorContractSchema as errorContractSchema$1 } from "@classytic/repo-core/errors";
|
|
8
8
|
import { readEnv } from "@classytic/primitives/environment";
|
|
9
9
|
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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { x as pathTouchesBlocked } from "./plugin-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { x as pathTouchesBlocked } from "./plugin-8Z1khbAI.mjs";
|
|
4
4
|
// 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.
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
3
|
-
import { d as createDomainError } from "./errors-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BBBkGgwA.mjs";
|
|
3
|
+
import { d as createDomainError } from "./errors-DxpHZBlW.mjs";
|
|
4
4
|
import fp from "fastify-plugin";
|
|
5
5
|
// src/plugins/versioning.ts
|
|
6
6
|
var versioning_exports = /* @__PURE__ */ __exportAll({ default: () => versioning_default });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @classytic/arc v2.
|
|
2
|
-
import { n as requestContext } from "./requestContext-
|
|
1
|
+
/*! @classytic/arc v2.52.0 | MIT | https://classytic.com */
|
|
2
|
+
import { n as requestContext } from "./requestContext-yc7MSgmq.mjs";
|
|
3
3
|
// src/context/workScope.ts
|
|
4
4
|
/** Enter a scope for `fn`, or run it inside the active one. */
|
|
5
5
|
function runWorkScope(seed, fn) {
|