@walkeros/core 4.7.0 → 4.7.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/CHANGELOG.md +10 -0
- package/dist/dev.d.mts +33 -0
- package/dist/dev.d.ts +33 -0
- package/dist/index.d.mts +38 -4
- package/dist/index.d.ts +38 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @walkeros/core
|
|
2
2
|
|
|
3
|
+
## 4.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0635330: Adds build-time flags that let a bundler leave unused features out of
|
|
8
|
+
a browser bundle. Nothing changes when they are not set.
|
|
9
|
+
- 91e9aeb: A `consent` key on a `loop` item neither unlocks nor holds back a
|
|
10
|
+
value inside that loop; the event's consent decides. This applies to
|
|
11
|
+
destination, source and state mappings alike.
|
|
12
|
+
|
|
3
13
|
## 4.7.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/dist/dev.d.mts
CHANGED
|
@@ -7690,6 +7690,39 @@ declare function mergeConfigSchema(type: PackageType, packageSchemas: PackageSch
|
|
|
7690
7690
|
*/
|
|
7691
7691
|
declare function resolveBaseSchema(baseSchema: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
|
|
7692
7692
|
|
|
7693
|
+
/**
|
|
7694
|
+
* Build-time feature flags.
|
|
7695
|
+
*
|
|
7696
|
+
* A bundler may `define` any of these as `false` to fold the matching feature
|
|
7697
|
+
* out of a bundle; the walkerOS CLI does so for browser bundles whose flow does
|
|
7698
|
+
* not use the feature. Left undefined (npm installs, plain bundlers) every
|
|
7699
|
+
* feature is on and behaviour is unchanged.
|
|
7700
|
+
*
|
|
7701
|
+
* A guard reads the flag inline, in block or `&&` form:
|
|
7702
|
+
* `if (typeof __WALKEROS_STATE__ === 'undefined' || __WALKEROS_STATE__) {...}`.
|
|
7703
|
+
* esbuild folds that shape away when the flag is defined false. It does not
|
|
7704
|
+
* fold an early `if (!flag) return;` or a module-level const holding the flag.
|
|
7705
|
+
*
|
|
7706
|
+
* When a flag is not defined at build time, each guard is a global lookup at
|
|
7707
|
+
* runtime, so a page could set `window.__WALKEROS_STORES__ = false` before the
|
|
7708
|
+
* collector starts. That only switches a feature off for that page (accepted,
|
|
7709
|
+
* low risk).
|
|
7710
|
+
*
|
|
7711
|
+
* The global type is frozen: an install with two copies of @walkeros/core
|
|
7712
|
+
* declares these `var`s twice, and TypeScript rejects differing types
|
|
7713
|
+
* (TS2403). Consumers must not redeclare the names as `const` (TS2451).
|
|
7714
|
+
*/
|
|
7715
|
+
declare global {
|
|
7716
|
+
/** Observe: telemetry posting and trace-level vendor-call capture. */
|
|
7717
|
+
var __WALKEROS_OBSERVE__: boolean | undefined;
|
|
7718
|
+
/** Declared flow stores. The default `__cache` store always exists. */
|
|
7719
|
+
var __WALKEROS_STORES__: boolean | undefined;
|
|
7720
|
+
/** Declarative step `state`. */
|
|
7721
|
+
var __WALKEROS_STATE__: boolean | undefined;
|
|
7722
|
+
/** Runtime validation of transformer step entries. */
|
|
7723
|
+
var __WALKEROS_VALIDATE__: boolean | undefined;
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7693
7726
|
type MatchExpression = MatchCondition | {
|
|
7694
7727
|
and: MatchExpression[];
|
|
7695
7728
|
} | {
|
package/dist/dev.d.ts
CHANGED
|
@@ -7690,6 +7690,39 @@ declare function mergeConfigSchema(type: PackageType, packageSchemas: PackageSch
|
|
|
7690
7690
|
*/
|
|
7691
7691
|
declare function resolveBaseSchema(baseSchema: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
|
|
7692
7692
|
|
|
7693
|
+
/**
|
|
7694
|
+
* Build-time feature flags.
|
|
7695
|
+
*
|
|
7696
|
+
* A bundler may `define` any of these as `false` to fold the matching feature
|
|
7697
|
+
* out of a bundle; the walkerOS CLI does so for browser bundles whose flow does
|
|
7698
|
+
* not use the feature. Left undefined (npm installs, plain bundlers) every
|
|
7699
|
+
* feature is on and behaviour is unchanged.
|
|
7700
|
+
*
|
|
7701
|
+
* A guard reads the flag inline, in block or `&&` form:
|
|
7702
|
+
* `if (typeof __WALKEROS_STATE__ === 'undefined' || __WALKEROS_STATE__) {...}`.
|
|
7703
|
+
* esbuild folds that shape away when the flag is defined false. It does not
|
|
7704
|
+
* fold an early `if (!flag) return;` or a module-level const holding the flag.
|
|
7705
|
+
*
|
|
7706
|
+
* When a flag is not defined at build time, each guard is a global lookup at
|
|
7707
|
+
* runtime, so a page could set `window.__WALKEROS_STORES__ = false` before the
|
|
7708
|
+
* collector starts. That only switches a feature off for that page (accepted,
|
|
7709
|
+
* low risk).
|
|
7710
|
+
*
|
|
7711
|
+
* The global type is frozen: an install with two copies of @walkeros/core
|
|
7712
|
+
* declares these `var`s twice, and TypeScript rejects differing types
|
|
7713
|
+
* (TS2403). Consumers must not redeclare the names as `const` (TS2451).
|
|
7714
|
+
*/
|
|
7715
|
+
declare global {
|
|
7716
|
+
/** Observe: telemetry posting and trace-level vendor-call capture. */
|
|
7717
|
+
var __WALKEROS_OBSERVE__: boolean | undefined;
|
|
7718
|
+
/** Declared flow stores. The default `__cache` store always exists. */
|
|
7719
|
+
var __WALKEROS_STORES__: boolean | undefined;
|
|
7720
|
+
/** Declarative step `state`. */
|
|
7721
|
+
var __WALKEROS_STATE__: boolean | undefined;
|
|
7722
|
+
/** Runtime validation of transformer step entries. */
|
|
7723
|
+
var __WALKEROS_VALIDATE__: boolean | undefined;
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7693
7726
|
type MatchExpression = MatchCondition | {
|
|
7694
7727
|
and: MatchExpression[];
|
|
7695
7728
|
} | {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-time feature flags.
|
|
3
|
+
*
|
|
4
|
+
* A bundler may `define` any of these as `false` to fold the matching feature
|
|
5
|
+
* out of a bundle; the walkerOS CLI does so for browser bundles whose flow does
|
|
6
|
+
* not use the feature. Left undefined (npm installs, plain bundlers) every
|
|
7
|
+
* feature is on and behaviour is unchanged.
|
|
8
|
+
*
|
|
9
|
+
* A guard reads the flag inline, in block or `&&` form:
|
|
10
|
+
* `if (typeof __WALKEROS_STATE__ === 'undefined' || __WALKEROS_STATE__) {...}`.
|
|
11
|
+
* esbuild folds that shape away when the flag is defined false. It does not
|
|
12
|
+
* fold an early `if (!flag) return;` or a module-level const holding the flag.
|
|
13
|
+
*
|
|
14
|
+
* When a flag is not defined at build time, each guard is a global lookup at
|
|
15
|
+
* runtime, so a page could set `window.__WALKEROS_STORES__ = false` before the
|
|
16
|
+
* collector starts. That only switches a feature off for that page (accepted,
|
|
17
|
+
* low risk).
|
|
18
|
+
*
|
|
19
|
+
* The global type is frozen: an install with two copies of @walkeros/core
|
|
20
|
+
* declares these `var`s twice, and TypeScript rejects differing types
|
|
21
|
+
* (TS2403). Consumers must not redeclare the names as `const` (TS2451).
|
|
22
|
+
*/
|
|
23
|
+
declare global {
|
|
24
|
+
/** Observe: telemetry posting and trace-level vendor-call capture. */
|
|
25
|
+
var __WALKEROS_OBSERVE__: boolean | undefined;
|
|
26
|
+
/** Declared flow stores. The default `__cache` store always exists. */
|
|
27
|
+
var __WALKEROS_STORES__: boolean | undefined;
|
|
28
|
+
/** Declarative step `state`. */
|
|
29
|
+
var __WALKEROS_STATE__: boolean | undefined;
|
|
30
|
+
/** Runtime validation of transformer step entries. */
|
|
31
|
+
var __WALKEROS_VALIDATE__: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
/** Names of the build-time feature flags a bundler may `define`. */
|
|
34
|
+
type BuildFlag = '__WALKEROS_OBSERVE__' | '__WALKEROS_STORES__' | '__WALKEROS_STATE__' | '__WALKEROS_VALIDATE__';
|
|
35
|
+
|
|
1
36
|
type MatchExpression = MatchCondition | {
|
|
2
37
|
and: MatchExpression[];
|
|
3
38
|
} | {
|
|
@@ -5902,9 +5937,8 @@ declare function compileState(state: State | State[]): State[];
|
|
|
5902
5937
|
* an empty result writes nothing. An object result merges into an object
|
|
5903
5938
|
* target (get: the `value` path, set: the stored entry), anything else
|
|
5904
5939
|
* replaces it. The set merge reads then writes, it is not atomic. Consent
|
|
5905
|
-
* gates on the event's consent,
|
|
5906
|
-
*
|
|
5907
|
-
* itself gates that item's mapping.
|
|
5940
|
+
* gates on the event's consent, never on a stored `consent` key, also not
|
|
5941
|
+
* on one inside a `loop` item.
|
|
5908
5942
|
*
|
|
5909
5943
|
* Each entry is fail-open: a store or resolution error is logged and the
|
|
5910
5944
|
* event is left unmutated, the chain continues. An unknown store logs an
|
|
@@ -6041,4 +6075,4 @@ declare const REF_CODE_PREFIX = "$code:";
|
|
|
6041
6075
|
*/
|
|
6042
6076
|
declare function scanFlowRefs(value: unknown, into?: Set<string>): Set<string>;
|
|
6043
6077
|
|
|
6044
|
-
export { type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, CLOCK_SKEW_MS, cache as Cache, type CacheEnvelope, type CacheResult, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, type Ingest, type IngestEnvelope, type IngestMeta, InvalidEventError, type Journey, type JourneyAssembly, type JourneyBranch, type JourneyCorrelation, type JourneyEntry, type JourneyGap, type JourneyHop, type JourneyHopStatus, type JourneyPlatform, type JourneyStatus, type JourneyTopology, type JourneyTopologyNode, type JourneyUnattributed, type JsonSchema, Level, lifecycle as Lifecycle, type LifecycleContext, logger as Logger, MAX_SESSION_MS, mapping as Mapping, type MarketingParameters, matcher as Matcher, type MockLogger, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveWeb, type ObservedEnv, type ObserverFn, on as On, type ParsedGrant, type ParsedTraceparent, type PosterFetch, type PosterResponse, type PreviewCrypto, type PreviewFailure, type PreviewKey, type PreviewSubtle, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_SECRET, REF_STORE, REF_VAR_FULL, REF_VAR_INLINE, RESERVED_WINDOW_GLOBALS, request as Request, type ResolveContractsOptions, type ResolveOptions, type RespondFn, type RespondOptions, type RouteContinuation, type RouteDecision, type RouteGraphNode, type RouteLabel, SECRET_MARKER_PREFIX, SESSION_STORAGE_KEY, STEP_FIELD_ROLES, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type State, type StepEntryErrorCode, type StepEntryValidation, type StepField, type StepFieldRole, type StepKind, type StorageType, store as Store, StoreCodecError, type SwapActivatorConfig, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, browserSwapActivator, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, deserializeStoreValue, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isElementOrDocument, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, requestToData, requestToParameter, resolveContracts, resolveSetup, resolveTelemetryOptions, scanFlowRefs, serializeStoreValue, setByPath, setTraceUntil, startChain, stepId, storeCache, throttle, throwError, toEventList, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
|
6078
|
+
export { type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, cache as Cache, type CacheEnvelope, type CacheResult, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, type Ingest, type IngestEnvelope, type IngestMeta, InvalidEventError, type Journey, type JourneyAssembly, type JourneyBranch, type JourneyCorrelation, type JourneyEntry, type JourneyGap, type JourneyHop, type JourneyHopStatus, type JourneyPlatform, type JourneyStatus, type JourneyTopology, type JourneyTopologyNode, type JourneyUnattributed, type JsonSchema, Level, lifecycle as Lifecycle, type LifecycleContext, logger as Logger, MAX_SESSION_MS, mapping as Mapping, type MarketingParameters, matcher as Matcher, type MockLogger, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveWeb, type ObservedEnv, type ObserverFn, on as On, type ParsedGrant, type ParsedTraceparent, type PosterFetch, type PosterResponse, type PreviewCrypto, type PreviewFailure, type PreviewKey, type PreviewSubtle, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_SECRET, REF_STORE, REF_VAR_FULL, REF_VAR_INLINE, RESERVED_WINDOW_GLOBALS, request as Request, type ResolveContractsOptions, type ResolveOptions, type RespondFn, type RespondOptions, type RouteContinuation, type RouteDecision, type RouteGraphNode, type RouteLabel, SECRET_MARKER_PREFIX, SESSION_STORAGE_KEY, STEP_FIELD_ROLES, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type State, type StepEntryErrorCode, type StepEntryValidation, type StepField, type StepFieldRole, type StepKind, type StorageType, store as Store, StoreCodecError, type SwapActivatorConfig, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, browserSwapActivator, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, deserializeStoreValue, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isElementOrDocument, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, requestToData, requestToParameter, resolveContracts, resolveSetup, resolveTelemetryOptions, scanFlowRefs, serializeStoreValue, setByPath, setTraceUntil, startChain, stepId, storeCache, throttle, throwError, toEventList, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build-time feature flags.
|
|
3
|
+
*
|
|
4
|
+
* A bundler may `define` any of these as `false` to fold the matching feature
|
|
5
|
+
* out of a bundle; the walkerOS CLI does so for browser bundles whose flow does
|
|
6
|
+
* not use the feature. Left undefined (npm installs, plain bundlers) every
|
|
7
|
+
* feature is on and behaviour is unchanged.
|
|
8
|
+
*
|
|
9
|
+
* A guard reads the flag inline, in block or `&&` form:
|
|
10
|
+
* `if (typeof __WALKEROS_STATE__ === 'undefined' || __WALKEROS_STATE__) {...}`.
|
|
11
|
+
* esbuild folds that shape away when the flag is defined false. It does not
|
|
12
|
+
* fold an early `if (!flag) return;` or a module-level const holding the flag.
|
|
13
|
+
*
|
|
14
|
+
* When a flag is not defined at build time, each guard is a global lookup at
|
|
15
|
+
* runtime, so a page could set `window.__WALKEROS_STORES__ = false` before the
|
|
16
|
+
* collector starts. That only switches a feature off for that page (accepted,
|
|
17
|
+
* low risk).
|
|
18
|
+
*
|
|
19
|
+
* The global type is frozen: an install with two copies of @walkeros/core
|
|
20
|
+
* declares these `var`s twice, and TypeScript rejects differing types
|
|
21
|
+
* (TS2403). Consumers must not redeclare the names as `const` (TS2451).
|
|
22
|
+
*/
|
|
23
|
+
declare global {
|
|
24
|
+
/** Observe: telemetry posting and trace-level vendor-call capture. */
|
|
25
|
+
var __WALKEROS_OBSERVE__: boolean | undefined;
|
|
26
|
+
/** Declared flow stores. The default `__cache` store always exists. */
|
|
27
|
+
var __WALKEROS_STORES__: boolean | undefined;
|
|
28
|
+
/** Declarative step `state`. */
|
|
29
|
+
var __WALKEROS_STATE__: boolean | undefined;
|
|
30
|
+
/** Runtime validation of transformer step entries. */
|
|
31
|
+
var __WALKEROS_VALIDATE__: boolean | undefined;
|
|
32
|
+
}
|
|
33
|
+
/** Names of the build-time feature flags a bundler may `define`. */
|
|
34
|
+
type BuildFlag = '__WALKEROS_OBSERVE__' | '__WALKEROS_STORES__' | '__WALKEROS_STATE__' | '__WALKEROS_VALIDATE__';
|
|
35
|
+
|
|
1
36
|
type MatchExpression = MatchCondition | {
|
|
2
37
|
and: MatchExpression[];
|
|
3
38
|
} | {
|
|
@@ -5902,9 +5937,8 @@ declare function compileState(state: State | State[]): State[];
|
|
|
5902
5937
|
* an empty result writes nothing. An object result merges into an object
|
|
5903
5938
|
* target (get: the `value` path, set: the stored entry), anything else
|
|
5904
5939
|
* replaces it. The set merge reads then writes, it is not atomic. Consent
|
|
5905
|
-
* gates on the event's consent,
|
|
5906
|
-
*
|
|
5907
|
-
* itself gates that item's mapping.
|
|
5940
|
+
* gates on the event's consent, never on a stored `consent` key, also not
|
|
5941
|
+
* on one inside a `loop` item.
|
|
5908
5942
|
*
|
|
5909
5943
|
* Each entry is fail-open: a store or resolution error is logged and the
|
|
5910
5944
|
* event is left unmutated, the chain continues. An unknown store logs an
|
|
@@ -6041,4 +6075,4 @@ declare const REF_CODE_PREFIX = "$code:";
|
|
|
6041
6075
|
*/
|
|
6042
6076
|
declare function scanFlowRefs(value: unknown, into?: Set<string>): Set<string>;
|
|
6043
6077
|
|
|
6044
|
-
export { type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, CLOCK_SKEW_MS, cache as Cache, type CacheEnvelope, type CacheResult, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, type Ingest, type IngestEnvelope, type IngestMeta, InvalidEventError, type Journey, type JourneyAssembly, type JourneyBranch, type JourneyCorrelation, type JourneyEntry, type JourneyGap, type JourneyHop, type JourneyHopStatus, type JourneyPlatform, type JourneyStatus, type JourneyTopology, type JourneyTopologyNode, type JourneyUnattributed, type JsonSchema, Level, lifecycle as Lifecycle, type LifecycleContext, logger as Logger, MAX_SESSION_MS, mapping as Mapping, type MarketingParameters, matcher as Matcher, type MockLogger, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveWeb, type ObservedEnv, type ObserverFn, on as On, type ParsedGrant, type ParsedTraceparent, type PosterFetch, type PosterResponse, type PreviewCrypto, type PreviewFailure, type PreviewKey, type PreviewSubtle, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_SECRET, REF_STORE, REF_VAR_FULL, REF_VAR_INLINE, RESERVED_WINDOW_GLOBALS, request as Request, type ResolveContractsOptions, type ResolveOptions, type RespondFn, type RespondOptions, type RouteContinuation, type RouteDecision, type RouteGraphNode, type RouteLabel, SECRET_MARKER_PREFIX, SESSION_STORAGE_KEY, STEP_FIELD_ROLES, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type State, type StepEntryErrorCode, type StepEntryValidation, type StepField, type StepFieldRole, type StepKind, type StorageType, store as Store, StoreCodecError, type SwapActivatorConfig, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, browserSwapActivator, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, deserializeStoreValue, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isElementOrDocument, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, requestToData, requestToParameter, resolveContracts, resolveSetup, resolveTelemetryOptions, scanFlowRefs, serializeStoreValue, setByPath, setTraceUntil, startChain, stepId, storeCache, throttle, throwError, toEventList, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
|
6078
|
+
export { type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, cache as Cache, type CacheEnvelope, type CacheResult, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, type Ingest, type IngestEnvelope, type IngestMeta, InvalidEventError, type Journey, type JourneyAssembly, type JourneyBranch, type JourneyCorrelation, type JourneyEntry, type JourneyGap, type JourneyHop, type JourneyHopStatus, type JourneyPlatform, type JourneyStatus, type JourneyTopology, type JourneyTopologyNode, type JourneyUnattributed, type JsonSchema, Level, lifecycle as Lifecycle, type LifecycleContext, logger as Logger, MAX_SESSION_MS, mapping as Mapping, type MarketingParameters, matcher as Matcher, type MockLogger, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveWeb, type ObservedEnv, type ObserverFn, on as On, type ParsedGrant, type ParsedTraceparent, type PosterFetch, type PosterResponse, type PreviewCrypto, type PreviewFailure, type PreviewKey, type PreviewSubtle, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_SECRET, REF_STORE, REF_VAR_FULL, REF_VAR_INLINE, RESERVED_WINDOW_GLOBALS, request as Request, type ResolveContractsOptions, type ResolveOptions, type RespondFn, type RespondOptions, type RouteContinuation, type RouteDecision, type RouteGraphNode, type RouteLabel, SECRET_MARKER_PREFIX, SESSION_STORAGE_KEY, STEP_FIELD_ROLES, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type State, type StepEntryErrorCode, type StepEntryValidation, type StepField, type StepFieldRole, type StepKind, type StorageType, store as Store, StoreCodecError, type SwapActivatorConfig, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, browserSwapActivator, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, deserializeStoreValue, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isElementOrDocument, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, requestToData, requestToParameter, resolveContracts, resolveSetup, resolveTelemetryOptions, scanFlowRefs, serializeStoreValue, setByPath, setTraceUntil, startChain, stepId, storeCache, throttle, throwError, toEventList, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|