@walkeros/core 4.8.2 → 4.8.3-next-1793115089237
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 +48 -3
- package/dist/dev.d.mts +130 -10
- package/dist/dev.d.ts +130 -10
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.d.mts +101 -16
- package/dist/index.d.ts +101 -16
- 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/dist/index.d.mts
CHANGED
|
@@ -378,7 +378,7 @@ declare function observeFromEnv(env: Record<string, string | undefined>): Observ
|
|
|
378
378
|
* for inEvent/outEvent).
|
|
379
379
|
*/
|
|
380
380
|
type FlowStatePhase = 'init' | 'in' | 'out' | 'error' | 'skip' | 'flush';
|
|
381
|
-
type FlowStepType =
|
|
381
|
+
type FlowStepType = StepKind;
|
|
382
382
|
interface FlowStateBatch {
|
|
383
383
|
size: number;
|
|
384
384
|
index: number;
|
|
@@ -505,8 +505,17 @@ declare function createCauseLog(logger: CauseLogger, options?: CauseLogOptions):
|
|
|
505
505
|
*/
|
|
506
506
|
declare function reportCause(collector: Instance$6 | undefined, logger: CauseLogger, key: CauseKey, message: string, context: Record<string, unknown>, level?: 'error' | 'warn'): void;
|
|
507
507
|
|
|
508
|
+
/**
|
|
509
|
+
* The types of a step package (`walkerOS.type` in its package.json). A step
|
|
510
|
+
* package publishes an exports list, empty when it declares none, and a
|
|
511
|
+
* settings schema; the build checks both.
|
|
512
|
+
*/
|
|
513
|
+
declare const STEP_TYPES: readonly ["source", "transformer", "destination", "store"];
|
|
514
|
+
|
|
515
|
+
/** The kind of a step package: one of `STEP_TYPES`. */
|
|
516
|
+
type StepType = (typeof STEP_TYPES)[number];
|
|
508
517
|
/** Identifies which kind of step a stepId belongs to. */
|
|
509
|
-
type StepKind = 'collector' |
|
|
518
|
+
type StepKind = 'collector' | StepType;
|
|
510
519
|
/**
|
|
511
520
|
* Build a stepId for use as a key in `Status.dropped` /
|
|
512
521
|
* `Status.connectionErrors` (and future status maps). The collector-level
|
|
@@ -517,7 +526,7 @@ type StepKind = 'collector' | 'source' | 'transformer' | 'destination' | 'store'
|
|
|
517
526
|
* log messages ("collector.queue overflow", "destination.dlq overflow").
|
|
518
527
|
*/
|
|
519
528
|
declare function stepId(kind: 'collector'): 'collector';
|
|
520
|
-
declare function stepId(kind:
|
|
529
|
+
declare function stepId(kind: StepType, id: string): string;
|
|
521
530
|
/**
|
|
522
531
|
* Drop counters at a single step. Each buffer is optional: a step kind
|
|
523
532
|
* may have only `queue` (collector), only `dlq`, both (destinations
|
|
@@ -959,9 +968,10 @@ type collector_SourceStatus = SourceStatus;
|
|
|
959
968
|
type collector_Sources = Sources;
|
|
960
969
|
type collector_Status = Status;
|
|
961
970
|
type collector_StepKind = StepKind;
|
|
971
|
+
type collector_StepType = StepType;
|
|
962
972
|
declare const collector_stepId: typeof stepId;
|
|
963
973
|
declare namespace collector {
|
|
964
|
-
export { type collector_BreakerState as BreakerState, type collector_Cascade as Cascade, type collector_CommandFn as CommandFn, type collector_CommandType as CommandType, type Config$6 as Config, type collector_DestinationStatus as DestinationStatus, type Destinations$1 as Destinations, type collector_DroppedCounters as DroppedCounters, type collector_InitConfig as InitConfig, type collector_InitConfigOf as InitConfigOf, type Instance$6 as Instance, type PushFn$1 as PushFn, type collector_PushOptions as PushOptions, type collector_SessionData as SessionData, type collector_SourceStatus as SourceStatus, type collector_Sources as Sources, type collector_Status as Status, type collector_StepKind as StepKind, type Stores$1 as Stores, type Transformers$1 as Transformers, collector_stepId as stepId };
|
|
974
|
+
export { type collector_BreakerState as BreakerState, type collector_Cascade as Cascade, type collector_CommandFn as CommandFn, type collector_CommandType as CommandType, type Config$6 as Config, type collector_DestinationStatus as DestinationStatus, type Destinations$1 as Destinations, type collector_DroppedCounters as DroppedCounters, type collector_InitConfig as InitConfig, type collector_InitConfigOf as InitConfigOf, type Instance$6 as Instance, type PushFn$1 as PushFn, type collector_PushOptions as PushOptions, type collector_SessionData as SessionData, type collector_SourceStatus as SourceStatus, type collector_Sources as Sources, type collector_Status as Status, type collector_StepKind as StepKind, type collector_StepType as StepType, type Stores$1 as Stores, type Transformers$1 as Transformers, collector_stepId as stepId };
|
|
965
975
|
}
|
|
966
976
|
|
|
967
977
|
/**
|
|
@@ -1699,7 +1709,11 @@ interface PushResult {
|
|
|
1699
1709
|
dropped?: boolean;
|
|
1700
1710
|
/** Event was rejected as invalid input: a client/producer fault, not a pipeline failure. */
|
|
1701
1711
|
invalid?: boolean;
|
|
1702
|
-
/**
|
|
1712
|
+
/**
|
|
1713
|
+
* Human-readable message when the event was rejected or a step before the
|
|
1714
|
+
* destinations failed. A destination's own failure is in `failed`, under
|
|
1715
|
+
* its id with a `reason`, and leaves this unset.
|
|
1716
|
+
*/
|
|
1703
1717
|
error?: string;
|
|
1704
1718
|
/**
|
|
1705
1719
|
* Why the push failed when `ok` is false without a `failed` entry: a full
|
|
@@ -2491,7 +2505,8 @@ declare namespace Flow {
|
|
|
2491
2505
|
* Name of the transformer to execute after this source captures an event.
|
|
2492
2506
|
* Creates a pre-collector transformer chain. Chain ends at the collector.
|
|
2493
2507
|
* If omitted, events route directly to the collector.
|
|
2494
|
-
* Can be an array
|
|
2508
|
+
* Can be an array: its members run in order, and each member's own `next`
|
|
2509
|
+
* runs right after that member.
|
|
2495
2510
|
*/
|
|
2496
2511
|
next?: Route;
|
|
2497
2512
|
/** Cache configuration for this source. */
|
|
@@ -2801,12 +2816,15 @@ declare namespace Flow {
|
|
|
2801
2816
|
interface StepPageSession {
|
|
2802
2817
|
/** Page globals merged over an examples env's `push` (the document). */
|
|
2803
2818
|
globals: Record<string, unknown>;
|
|
2804
|
-
/**
|
|
2819
|
+
/**
|
|
2820
|
+
* Scripts added since `open`, with and without the loadVendor marker.
|
|
2821
|
+
* A marked script loads (`load`, once) unless `failScripts` fails it.
|
|
2822
|
+
*/
|
|
2805
2823
|
scripts(): {
|
|
2806
2824
|
marked: number;
|
|
2807
2825
|
unmarked: number;
|
|
2808
2826
|
};
|
|
2809
|
-
/** Fire `error` on every marked script (kit item 2, vendor-global). */
|
|
2827
|
+
/** Fire `error` on every marked script, loaded or not (kit item 2, vendor-global). */
|
|
2810
2828
|
failScripts(): void;
|
|
2811
2829
|
/** Restore the stubs and remove the scripts added since `open`. */
|
|
2812
2830
|
close(): void;
|
|
@@ -2828,7 +2846,10 @@ declare namespace Flow {
|
|
|
2828
2846
|
* Whether this example is meant for public consumption (docs, UI, MCP default output).
|
|
2829
2847
|
* Defaults to `true`. Set to `false` for test-only fixtures that should stay out of
|
|
2830
2848
|
* user-facing surfaces but still run in test suites and remain available to
|
|
2831
|
-
* `flow_simulate` / CLI `--simulate`.
|
|
2849
|
+
* `flow_simulate` / CLI `--simulate`. A failure example (`public: false`
|
|
2850
|
+
* with an `outcome`) is still listed on the docs page under "When it
|
|
2851
|
+
* fails", by its title, description and outcome; its fixture `in` is
|
|
2852
|
+
* never shown.
|
|
2832
2853
|
*/
|
|
2833
2854
|
public?: boolean;
|
|
2834
2855
|
in?: unknown;
|
|
@@ -2850,7 +2871,10 @@ declare namespace Flow {
|
|
|
2850
2871
|
/**
|
|
2851
2872
|
* The reported outcome of a failure or queue example (`public: false`):
|
|
2852
2873
|
* the step's status in the push result and its reason code. Absent means
|
|
2853
|
-
* the step must not fail.
|
|
2874
|
+
* the step must not fail. The docs page lists every example with an
|
|
2875
|
+
* outcome under "When it fails" by title, description and outcome, so it
|
|
2876
|
+
* needs a reader-facing `description` (the docs build fails without one);
|
|
2877
|
+
* its fixture `in` is never shown.
|
|
2854
2878
|
*/
|
|
2855
2879
|
outcome?: StepOutcome;
|
|
2856
2880
|
/** What the boundary answers for this example (a failure fixture). */
|
|
@@ -2873,6 +2897,64 @@ declare namespace Flow {
|
|
|
2873
2897
|
}
|
|
2874
2898
|
/** Named step examples keyed by scenario name. */
|
|
2875
2899
|
type StepExamples = Record<string, StepExample>;
|
|
2900
|
+
/**
|
|
2901
|
+
* The settings a package needs to deliver, published as `examples.minimal`
|
|
2902
|
+
* (for a package with several exports, as `exportExamples.<export>.minimal`).
|
|
2903
|
+
* `composeQuickstart` turns it into the install line, the integrated code
|
|
2904
|
+
* and a complete flow; the conformance kit runs it.
|
|
2905
|
+
*/
|
|
2906
|
+
interface MinimalExample {
|
|
2907
|
+
/**
|
|
2908
|
+
* Only the settings the schema requires, plus any that `init` refuses to
|
|
2909
|
+
* start without under `config`. A secret holds a placeholder value that
|
|
2910
|
+
* satisfies the schema; generated code never shows it.
|
|
2911
|
+
*/
|
|
2912
|
+
settings: Record<string, unknown>;
|
|
2913
|
+
/**
|
|
2914
|
+
* Server destinations: settings keys that hold credentials, mapped to the
|
|
2915
|
+
* secret name the reader sets (`A-Z`, `0-9` and `_`), for example
|
|
2916
|
+
* `{ accessToken: 'META_ACCESS_TOKEN' }`. Generated code reads them as
|
|
2917
|
+
* `process.env.<NAME>` (integrated) and `$secret.<NAME>` (flow). A web
|
|
2918
|
+
* destination holds no secret.
|
|
2919
|
+
*/
|
|
2920
|
+
secrets?: Record<string, string>;
|
|
2921
|
+
/**
|
|
2922
|
+
* Destination config the package needs to deliver beyond its settings:
|
|
2923
|
+
* `loadScript` for a web destination that loads its vendor script only
|
|
2924
|
+
* when asked to.
|
|
2925
|
+
*/
|
|
2926
|
+
config?: Pick<Config$5, 'loadScript'>;
|
|
2927
|
+
}
|
|
2928
|
+
/** The `$meta` of a package's walkerOS.json, as its build writes it. */
|
|
2929
|
+
interface PackageMeta {
|
|
2930
|
+
package: string;
|
|
2931
|
+
version: string;
|
|
2932
|
+
/** Step type: `source`, `transformer`, `destination` or `store`. */
|
|
2933
|
+
type?: string;
|
|
2934
|
+
platform?: string[];
|
|
2935
|
+
renderer?: string;
|
|
2936
|
+
/** Declared exports, export name to description. */
|
|
2937
|
+
exports?: Record<string, string>;
|
|
2938
|
+
docs?: string;
|
|
2939
|
+
source?: string;
|
|
2940
|
+
}
|
|
2941
|
+
/** A package's quickstart, composed from its `$meta` and minimal example. */
|
|
2942
|
+
interface Quickstart {
|
|
2943
|
+
/** The install command. */
|
|
2944
|
+
install: string;
|
|
2945
|
+
/** TypeScript source that starts a flow with the package. */
|
|
2946
|
+
integrated: string;
|
|
2947
|
+
/** A complete flow with the package as its only step of its type. */
|
|
2948
|
+
flow: Json;
|
|
2949
|
+
/**
|
|
2950
|
+
* What the conformance kit runs with: the settings (secrets as their
|
|
2951
|
+
* placeholders) and the minimal example's config.
|
|
2952
|
+
*/
|
|
2953
|
+
run: {
|
|
2954
|
+
settings: Record<string, unknown>;
|
|
2955
|
+
config?: Pick<Config$5, 'loadScript'>;
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2876
2958
|
}
|
|
2877
2959
|
|
|
2878
2960
|
type AnyFunction$1<P extends unknown[] = never[], R = unknown> = (...args: P) => R;
|
|
@@ -3240,7 +3322,7 @@ interface Config$1<T extends TypesGeneric$1 = Types$1> extends Config$7<Mapping<
|
|
|
3240
3322
|
async?: boolean | Record<string, boolean>;
|
|
3241
3323
|
/** Mark as primary source; its push function becomes the exported `elb` from startFlow. */
|
|
3242
3324
|
primary?: boolean;
|
|
3243
|
-
/**
|
|
3325
|
+
/** Collector events (e.g., `['consent']`) that must fire before the source receives on() calls; init and event capture are not delayed. */
|
|
3244
3326
|
require?: string[];
|
|
3245
3327
|
/**
|
|
3246
3328
|
* Provisioning options for `walkeros setup`. `boolean | object`.
|
|
@@ -4541,7 +4623,7 @@ declare function deepMerge<T extends Record<string, unknown>>(target: T, source:
|
|
|
4541
4623
|
* Names `getEvent` knows: the standard events plus the generic default
|
|
4542
4624
|
* `entity action`. Any other name does not compile.
|
|
4543
4625
|
*/
|
|
4544
|
-
type StandardEventName = 'entity action' | 'cart view' | 'checkout
|
|
4626
|
+
type StandardEventName = 'entity action' | 'cart view' | 'checkout start' | 'order complete' | 'page view' | 'product add' | 'product view' | 'product visible' | 'promotion visible' | 'session start';
|
|
4545
4627
|
/**
|
|
4546
4628
|
* Creates a complete event with default values.
|
|
4547
4629
|
* Used for testing and debugging.
|
|
@@ -5685,11 +5767,9 @@ interface ExampleSummary {
|
|
|
5685
5767
|
name: string;
|
|
5686
5768
|
description?: string;
|
|
5687
5769
|
}
|
|
5688
|
-
interface WalkerOSPackageMeta {
|
|
5770
|
+
interface WalkerOSPackageMeta extends Pick<Flow.PackageMeta, 'version' | 'type'> {
|
|
5689
5771
|
packageName: string;
|
|
5690
|
-
version: string;
|
|
5691
5772
|
description?: string;
|
|
5692
|
-
type?: string;
|
|
5693
5773
|
platform?: string | string[];
|
|
5694
5774
|
}
|
|
5695
5775
|
interface WalkerOSPackageInfo {
|
|
@@ -5727,6 +5807,11 @@ declare function fetchPackage(packageName: string, options?: {
|
|
|
5727
5807
|
baseUrl?: string;
|
|
5728
5808
|
client?: string;
|
|
5729
5809
|
}): Promise<WalkerOSPackage>;
|
|
5810
|
+
/**
|
|
5811
|
+
* The walkerOS metadata of a package, parsed from its walkerOS.json the same
|
|
5812
|
+
* way for every source: a CDN release or a local package on disk.
|
|
5813
|
+
*/
|
|
5814
|
+
declare function parseWalkerOSJson(walkerOSJson: Record<string, unknown>): Omit<WalkerOSPackage, 'packageName' | 'version' | 'description'>;
|
|
5730
5815
|
/**
|
|
5731
5816
|
* @deprecated Use fetchPackage instead.
|
|
5732
5817
|
* Still used by: entry.ts (validator), package-schemas.ts (MCP resource).
|
|
@@ -6626,4 +6711,4 @@ declare const REF_CODE_PREFIX = "$code:";
|
|
|
6626
6711
|
*/
|
|
6627
6712
|
declare function scanFlowRefs(value: unknown, into?: Set<string>): Set<string>;
|
|
6628
6713
|
|
|
6629
|
-
export { type Acknowledgement, type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, CONTRACT_RULE_KEYS, cache as Cache, type CacheEnvelope, type CacheResult, type CauseKey, type CauseLog, type CauseLogOptions, type CauseLogger, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, DEFAULT_DESTINATION_TIMEOUT_MS, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, EVENT_NOT_PROCESSED, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, type FailureReason, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, INTERNAL_SERVER_ERROR, 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, MAPPING_NO_OPS, MAX_SESSION_MS, MOIN_PARAM, MOIN_PRODUCTION, mapping as Mapping, type MappingPosition, type MarketingParameters, matcher as Matcher, type MockLogger, type MoinTarget, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveSlot, 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, type QueueReason, type QueuedReason, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_FLOW_INLINE, REF_FLOW_NAME, 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, STEP_FIELD_ROLES, STEP_FUNCTION_KEYS, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type StandardEventName, type State, type StepEntryErrorCode, type StepEntryValidation, StepError, type StepErrorOptions, type StepField, type StepFieldRole, type StepFunctionKey, type StepKind, type StorageType, store as Store, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, type TransformerMappingEntry, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, acknowledge, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createCauseLog, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingKeyPaths, getMappingNoOpMessage, getMappingNoOpPaths, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, getTransformerMapping, getTransformerMappingWarnings, getUnknownStepKeys, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, isThenable, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, networkErrorMessage, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, reportCause, requestToData, requestToParameter, resolveContracts, resolveDestinationTimeout, resolveSetup, resolveTelemetryOptions, scanFlowRefs, setByPath, setTraceUntil, startChain, stepCall, stepId, storeCache, throttle, throwError, toEventList, toFailureReason, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
|
6714
|
+
export { type Acknowledgement, type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, CONTRACT_RULE_KEYS, cache as Cache, type CacheEnvelope, type CacheResult, type CauseKey, type CauseLog, type CauseLogOptions, type CauseLogger, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, DEFAULT_DESTINATION_TIMEOUT_MS, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, EVENT_NOT_PROCESSED, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, type FailureReason, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, INTERNAL_SERVER_ERROR, 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, MAPPING_NO_OPS, MAX_SESSION_MS, MOIN_PARAM, MOIN_PRODUCTION, mapping as Mapping, type MappingPosition, type MarketingParameters, matcher as Matcher, type MockLogger, type MoinTarget, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveSlot, 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, type QueueReason, type QueuedReason, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_FLOW_INLINE, REF_FLOW_NAME, 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, STEP_FIELD_ROLES, STEP_FUNCTION_KEYS, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type StandardEventName, type State, type StepEntryErrorCode, type StepEntryValidation, StepError, type StepErrorOptions, type StepField, type StepFieldRole, type StepFunctionKey, type StepKind, type StepType, type StorageType, store as Store, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, type TransformerMappingEntry, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, acknowledge, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createCauseLog, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingKeyPaths, getMappingNoOpMessage, getMappingNoOpPaths, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, getTransformerMapping, getTransformerMappingWarnings, getUnknownStepKeys, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, isThenable, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, networkErrorMessage, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, parseWalkerOSJson, processEventMapping, pushResultToOutcome, readCacheEnvelope, reportCause, requestToData, requestToParameter, resolveContracts, resolveDestinationTimeout, resolveSetup, resolveTelemetryOptions, scanFlowRefs, setByPath, setTraceUntil, startChain, stepCall, stepId, storeCache, throttle, throwError, toEventList, toFailureReason, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
package/dist/index.d.ts
CHANGED
|
@@ -378,7 +378,7 @@ declare function observeFromEnv(env: Record<string, string | undefined>): Observ
|
|
|
378
378
|
* for inEvent/outEvent).
|
|
379
379
|
*/
|
|
380
380
|
type FlowStatePhase = 'init' | 'in' | 'out' | 'error' | 'skip' | 'flush';
|
|
381
|
-
type FlowStepType =
|
|
381
|
+
type FlowStepType = StepKind;
|
|
382
382
|
interface FlowStateBatch {
|
|
383
383
|
size: number;
|
|
384
384
|
index: number;
|
|
@@ -505,8 +505,17 @@ declare function createCauseLog(logger: CauseLogger, options?: CauseLogOptions):
|
|
|
505
505
|
*/
|
|
506
506
|
declare function reportCause(collector: Instance$6 | undefined, logger: CauseLogger, key: CauseKey, message: string, context: Record<string, unknown>, level?: 'error' | 'warn'): void;
|
|
507
507
|
|
|
508
|
+
/**
|
|
509
|
+
* The types of a step package (`walkerOS.type` in its package.json). A step
|
|
510
|
+
* package publishes an exports list, empty when it declares none, and a
|
|
511
|
+
* settings schema; the build checks both.
|
|
512
|
+
*/
|
|
513
|
+
declare const STEP_TYPES: readonly ["source", "transformer", "destination", "store"];
|
|
514
|
+
|
|
515
|
+
/** The kind of a step package: one of `STEP_TYPES`. */
|
|
516
|
+
type StepType = (typeof STEP_TYPES)[number];
|
|
508
517
|
/** Identifies which kind of step a stepId belongs to. */
|
|
509
|
-
type StepKind = 'collector' |
|
|
518
|
+
type StepKind = 'collector' | StepType;
|
|
510
519
|
/**
|
|
511
520
|
* Build a stepId for use as a key in `Status.dropped` /
|
|
512
521
|
* `Status.connectionErrors` (and future status maps). The collector-level
|
|
@@ -517,7 +526,7 @@ type StepKind = 'collector' | 'source' | 'transformer' | 'destination' | 'store'
|
|
|
517
526
|
* log messages ("collector.queue overflow", "destination.dlq overflow").
|
|
518
527
|
*/
|
|
519
528
|
declare function stepId(kind: 'collector'): 'collector';
|
|
520
|
-
declare function stepId(kind:
|
|
529
|
+
declare function stepId(kind: StepType, id: string): string;
|
|
521
530
|
/**
|
|
522
531
|
* Drop counters at a single step. Each buffer is optional: a step kind
|
|
523
532
|
* may have only `queue` (collector), only `dlq`, both (destinations
|
|
@@ -959,9 +968,10 @@ type collector_SourceStatus = SourceStatus;
|
|
|
959
968
|
type collector_Sources = Sources;
|
|
960
969
|
type collector_Status = Status;
|
|
961
970
|
type collector_StepKind = StepKind;
|
|
971
|
+
type collector_StepType = StepType;
|
|
962
972
|
declare const collector_stepId: typeof stepId;
|
|
963
973
|
declare namespace collector {
|
|
964
|
-
export { type collector_BreakerState as BreakerState, type collector_Cascade as Cascade, type collector_CommandFn as CommandFn, type collector_CommandType as CommandType, type Config$6 as Config, type collector_DestinationStatus as DestinationStatus, type Destinations$1 as Destinations, type collector_DroppedCounters as DroppedCounters, type collector_InitConfig as InitConfig, type collector_InitConfigOf as InitConfigOf, type Instance$6 as Instance, type PushFn$1 as PushFn, type collector_PushOptions as PushOptions, type collector_SessionData as SessionData, type collector_SourceStatus as SourceStatus, type collector_Sources as Sources, type collector_Status as Status, type collector_StepKind as StepKind, type Stores$1 as Stores, type Transformers$1 as Transformers, collector_stepId as stepId };
|
|
974
|
+
export { type collector_BreakerState as BreakerState, type collector_Cascade as Cascade, type collector_CommandFn as CommandFn, type collector_CommandType as CommandType, type Config$6 as Config, type collector_DestinationStatus as DestinationStatus, type Destinations$1 as Destinations, type collector_DroppedCounters as DroppedCounters, type collector_InitConfig as InitConfig, type collector_InitConfigOf as InitConfigOf, type Instance$6 as Instance, type PushFn$1 as PushFn, type collector_PushOptions as PushOptions, type collector_SessionData as SessionData, type collector_SourceStatus as SourceStatus, type collector_Sources as Sources, type collector_Status as Status, type collector_StepKind as StepKind, type collector_StepType as StepType, type Stores$1 as Stores, type Transformers$1 as Transformers, collector_stepId as stepId };
|
|
965
975
|
}
|
|
966
976
|
|
|
967
977
|
/**
|
|
@@ -1699,7 +1709,11 @@ interface PushResult {
|
|
|
1699
1709
|
dropped?: boolean;
|
|
1700
1710
|
/** Event was rejected as invalid input: a client/producer fault, not a pipeline failure. */
|
|
1701
1711
|
invalid?: boolean;
|
|
1702
|
-
/**
|
|
1712
|
+
/**
|
|
1713
|
+
* Human-readable message when the event was rejected or a step before the
|
|
1714
|
+
* destinations failed. A destination's own failure is in `failed`, under
|
|
1715
|
+
* its id with a `reason`, and leaves this unset.
|
|
1716
|
+
*/
|
|
1703
1717
|
error?: string;
|
|
1704
1718
|
/**
|
|
1705
1719
|
* Why the push failed when `ok` is false without a `failed` entry: a full
|
|
@@ -2491,7 +2505,8 @@ declare namespace Flow {
|
|
|
2491
2505
|
* Name of the transformer to execute after this source captures an event.
|
|
2492
2506
|
* Creates a pre-collector transformer chain. Chain ends at the collector.
|
|
2493
2507
|
* If omitted, events route directly to the collector.
|
|
2494
|
-
* Can be an array
|
|
2508
|
+
* Can be an array: its members run in order, and each member's own `next`
|
|
2509
|
+
* runs right after that member.
|
|
2495
2510
|
*/
|
|
2496
2511
|
next?: Route;
|
|
2497
2512
|
/** Cache configuration for this source. */
|
|
@@ -2801,12 +2816,15 @@ declare namespace Flow {
|
|
|
2801
2816
|
interface StepPageSession {
|
|
2802
2817
|
/** Page globals merged over an examples env's `push` (the document). */
|
|
2803
2818
|
globals: Record<string, unknown>;
|
|
2804
|
-
/**
|
|
2819
|
+
/**
|
|
2820
|
+
* Scripts added since `open`, with and without the loadVendor marker.
|
|
2821
|
+
* A marked script loads (`load`, once) unless `failScripts` fails it.
|
|
2822
|
+
*/
|
|
2805
2823
|
scripts(): {
|
|
2806
2824
|
marked: number;
|
|
2807
2825
|
unmarked: number;
|
|
2808
2826
|
};
|
|
2809
|
-
/** Fire `error` on every marked script (kit item 2, vendor-global). */
|
|
2827
|
+
/** Fire `error` on every marked script, loaded or not (kit item 2, vendor-global). */
|
|
2810
2828
|
failScripts(): void;
|
|
2811
2829
|
/** Restore the stubs and remove the scripts added since `open`. */
|
|
2812
2830
|
close(): void;
|
|
@@ -2828,7 +2846,10 @@ declare namespace Flow {
|
|
|
2828
2846
|
* Whether this example is meant for public consumption (docs, UI, MCP default output).
|
|
2829
2847
|
* Defaults to `true`. Set to `false` for test-only fixtures that should stay out of
|
|
2830
2848
|
* user-facing surfaces but still run in test suites and remain available to
|
|
2831
|
-
* `flow_simulate` / CLI `--simulate`.
|
|
2849
|
+
* `flow_simulate` / CLI `--simulate`. A failure example (`public: false`
|
|
2850
|
+
* with an `outcome`) is still listed on the docs page under "When it
|
|
2851
|
+
* fails", by its title, description and outcome; its fixture `in` is
|
|
2852
|
+
* never shown.
|
|
2832
2853
|
*/
|
|
2833
2854
|
public?: boolean;
|
|
2834
2855
|
in?: unknown;
|
|
@@ -2850,7 +2871,10 @@ declare namespace Flow {
|
|
|
2850
2871
|
/**
|
|
2851
2872
|
* The reported outcome of a failure or queue example (`public: false`):
|
|
2852
2873
|
* the step's status in the push result and its reason code. Absent means
|
|
2853
|
-
* the step must not fail.
|
|
2874
|
+
* the step must not fail. The docs page lists every example with an
|
|
2875
|
+
* outcome under "When it fails" by title, description and outcome, so it
|
|
2876
|
+
* needs a reader-facing `description` (the docs build fails without one);
|
|
2877
|
+
* its fixture `in` is never shown.
|
|
2854
2878
|
*/
|
|
2855
2879
|
outcome?: StepOutcome;
|
|
2856
2880
|
/** What the boundary answers for this example (a failure fixture). */
|
|
@@ -2873,6 +2897,64 @@ declare namespace Flow {
|
|
|
2873
2897
|
}
|
|
2874
2898
|
/** Named step examples keyed by scenario name. */
|
|
2875
2899
|
type StepExamples = Record<string, StepExample>;
|
|
2900
|
+
/**
|
|
2901
|
+
* The settings a package needs to deliver, published as `examples.minimal`
|
|
2902
|
+
* (for a package with several exports, as `exportExamples.<export>.minimal`).
|
|
2903
|
+
* `composeQuickstart` turns it into the install line, the integrated code
|
|
2904
|
+
* and a complete flow; the conformance kit runs it.
|
|
2905
|
+
*/
|
|
2906
|
+
interface MinimalExample {
|
|
2907
|
+
/**
|
|
2908
|
+
* Only the settings the schema requires, plus any that `init` refuses to
|
|
2909
|
+
* start without under `config`. A secret holds a placeholder value that
|
|
2910
|
+
* satisfies the schema; generated code never shows it.
|
|
2911
|
+
*/
|
|
2912
|
+
settings: Record<string, unknown>;
|
|
2913
|
+
/**
|
|
2914
|
+
* Server destinations: settings keys that hold credentials, mapped to the
|
|
2915
|
+
* secret name the reader sets (`A-Z`, `0-9` and `_`), for example
|
|
2916
|
+
* `{ accessToken: 'META_ACCESS_TOKEN' }`. Generated code reads them as
|
|
2917
|
+
* `process.env.<NAME>` (integrated) and `$secret.<NAME>` (flow). A web
|
|
2918
|
+
* destination holds no secret.
|
|
2919
|
+
*/
|
|
2920
|
+
secrets?: Record<string, string>;
|
|
2921
|
+
/**
|
|
2922
|
+
* Destination config the package needs to deliver beyond its settings:
|
|
2923
|
+
* `loadScript` for a web destination that loads its vendor script only
|
|
2924
|
+
* when asked to.
|
|
2925
|
+
*/
|
|
2926
|
+
config?: Pick<Config$5, 'loadScript'>;
|
|
2927
|
+
}
|
|
2928
|
+
/** The `$meta` of a package's walkerOS.json, as its build writes it. */
|
|
2929
|
+
interface PackageMeta {
|
|
2930
|
+
package: string;
|
|
2931
|
+
version: string;
|
|
2932
|
+
/** Step type: `source`, `transformer`, `destination` or `store`. */
|
|
2933
|
+
type?: string;
|
|
2934
|
+
platform?: string[];
|
|
2935
|
+
renderer?: string;
|
|
2936
|
+
/** Declared exports, export name to description. */
|
|
2937
|
+
exports?: Record<string, string>;
|
|
2938
|
+
docs?: string;
|
|
2939
|
+
source?: string;
|
|
2940
|
+
}
|
|
2941
|
+
/** A package's quickstart, composed from its `$meta` and minimal example. */
|
|
2942
|
+
interface Quickstart {
|
|
2943
|
+
/** The install command. */
|
|
2944
|
+
install: string;
|
|
2945
|
+
/** TypeScript source that starts a flow with the package. */
|
|
2946
|
+
integrated: string;
|
|
2947
|
+
/** A complete flow with the package as its only step of its type. */
|
|
2948
|
+
flow: Json;
|
|
2949
|
+
/**
|
|
2950
|
+
* What the conformance kit runs with: the settings (secrets as their
|
|
2951
|
+
* placeholders) and the minimal example's config.
|
|
2952
|
+
*/
|
|
2953
|
+
run: {
|
|
2954
|
+
settings: Record<string, unknown>;
|
|
2955
|
+
config?: Pick<Config$5, 'loadScript'>;
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2876
2958
|
}
|
|
2877
2959
|
|
|
2878
2960
|
type AnyFunction$1<P extends unknown[] = never[], R = unknown> = (...args: P) => R;
|
|
@@ -3240,7 +3322,7 @@ interface Config$1<T extends TypesGeneric$1 = Types$1> extends Config$7<Mapping<
|
|
|
3240
3322
|
async?: boolean | Record<string, boolean>;
|
|
3241
3323
|
/** Mark as primary source; its push function becomes the exported `elb` from startFlow. */
|
|
3242
3324
|
primary?: boolean;
|
|
3243
|
-
/**
|
|
3325
|
+
/** Collector events (e.g., `['consent']`) that must fire before the source receives on() calls; init and event capture are not delayed. */
|
|
3244
3326
|
require?: string[];
|
|
3245
3327
|
/**
|
|
3246
3328
|
* Provisioning options for `walkeros setup`. `boolean | object`.
|
|
@@ -4541,7 +4623,7 @@ declare function deepMerge<T extends Record<string, unknown>>(target: T, source:
|
|
|
4541
4623
|
* Names `getEvent` knows: the standard events plus the generic default
|
|
4542
4624
|
* `entity action`. Any other name does not compile.
|
|
4543
4625
|
*/
|
|
4544
|
-
type StandardEventName = 'entity action' | 'cart view' | 'checkout
|
|
4626
|
+
type StandardEventName = 'entity action' | 'cart view' | 'checkout start' | 'order complete' | 'page view' | 'product add' | 'product view' | 'product visible' | 'promotion visible' | 'session start';
|
|
4545
4627
|
/**
|
|
4546
4628
|
* Creates a complete event with default values.
|
|
4547
4629
|
* Used for testing and debugging.
|
|
@@ -5685,11 +5767,9 @@ interface ExampleSummary {
|
|
|
5685
5767
|
name: string;
|
|
5686
5768
|
description?: string;
|
|
5687
5769
|
}
|
|
5688
|
-
interface WalkerOSPackageMeta {
|
|
5770
|
+
interface WalkerOSPackageMeta extends Pick<Flow.PackageMeta, 'version' | 'type'> {
|
|
5689
5771
|
packageName: string;
|
|
5690
|
-
version: string;
|
|
5691
5772
|
description?: string;
|
|
5692
|
-
type?: string;
|
|
5693
5773
|
platform?: string | string[];
|
|
5694
5774
|
}
|
|
5695
5775
|
interface WalkerOSPackageInfo {
|
|
@@ -5727,6 +5807,11 @@ declare function fetchPackage(packageName: string, options?: {
|
|
|
5727
5807
|
baseUrl?: string;
|
|
5728
5808
|
client?: string;
|
|
5729
5809
|
}): Promise<WalkerOSPackage>;
|
|
5810
|
+
/**
|
|
5811
|
+
* The walkerOS metadata of a package, parsed from its walkerOS.json the same
|
|
5812
|
+
* way for every source: a CDN release or a local package on disk.
|
|
5813
|
+
*/
|
|
5814
|
+
declare function parseWalkerOSJson(walkerOSJson: Record<string, unknown>): Omit<WalkerOSPackage, 'packageName' | 'version' | 'description'>;
|
|
5730
5815
|
/**
|
|
5731
5816
|
* @deprecated Use fetchPackage instead.
|
|
5732
5817
|
* Still used by: entry.ts (validator), package-schemas.ts (MCP resource).
|
|
@@ -6626,4 +6711,4 @@ declare const REF_CODE_PREFIX = "$code:";
|
|
|
6626
6711
|
*/
|
|
6627
6712
|
declare function scanFlowRefs(value: unknown, into?: Set<string>): Set<string>;
|
|
6628
6713
|
|
|
6629
|
-
export { type Acknowledgement, type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, CONTRACT_RULE_KEYS, cache as Cache, type CacheEnvelope, type CacheResult, type CauseKey, type CauseLog, type CauseLogOptions, type CauseLogger, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, DEFAULT_DESTINATION_TIMEOUT_MS, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, EVENT_NOT_PROCESSED, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, type FailureReason, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, INTERNAL_SERVER_ERROR, 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, MAPPING_NO_OPS, MAX_SESSION_MS, MOIN_PARAM, MOIN_PRODUCTION, mapping as Mapping, type MappingPosition, type MarketingParameters, matcher as Matcher, type MockLogger, type MoinTarget, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveSlot, 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, type QueueReason, type QueuedReason, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_FLOW_INLINE, REF_FLOW_NAME, 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, STEP_FIELD_ROLES, STEP_FUNCTION_KEYS, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type StandardEventName, type State, type StepEntryErrorCode, type StepEntryValidation, StepError, type StepErrorOptions, type StepField, type StepFieldRole, type StepFunctionKey, type StepKind, type StorageType, store as Store, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, type TransformerMappingEntry, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, acknowledge, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createCauseLog, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingKeyPaths, getMappingNoOpMessage, getMappingNoOpPaths, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, getTransformerMapping, getTransformerMappingWarnings, getUnknownStepKeys, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, isThenable, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, networkErrorMessage, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, processEventMapping, pushResultToOutcome, readCacheEnvelope, reportCause, requestToData, requestToParameter, resolveContracts, resolveDestinationTimeout, resolveSetup, resolveTelemetryOptions, scanFlowRefs, setByPath, setTraceUntil, startChain, stepCall, stepId, storeCache, throttle, throwError, toEventList, toFailureReason, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|
|
6714
|
+
export { type Acknowledgement, type ActivationGrant, type AssembleJourneysOptions, type BatchResponse, type BatchedPosterOptions, type BreakerState, type BuildFlag, CLOCK_SKEW_MS, CONTRACT_RULE_KEYS, cache as Cache, type CacheEnvelope, type CacheResult, type CauseKey, type CauseLog, type CauseLogOptions, type CauseLogger, type ChainContinuation, type ChainFrame, type ChainStep, type ClickIdEntry, collector as Collector, type CompiledCache, Const, context as Context, type Credential, DEFAULT_DESTINATION_TIMEOUT_MS, type Debounced, destination as Destination, type DestroyContext, type DestroyFn, type DroppedCounters, ENV_MARKER_PREFIX, EVENT_NOT_PROCESSED, elb as Elb, type EmitFn, type EventOutcome, type ExampleSummary, type FailureReason, FatalError, Flow, type FlowConfigResolver, FlowCycleError, FlowReferenceError, type FlowState, type FlowStateBatch, type FlowStatePhase, type FlowStepType, type GetStore, hint as Hint, hooks as Hooks, INTERNAL_SERVER_ERROR, 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, MAPPING_NO_OPS, MAX_SESSION_MS, MOIN_PARAM, MOIN_PRODUCTION, mapping as Mapping, type MappingPosition, type MarketingParameters, matcher as Matcher, type MockLogger, type MoinTarget, type NextSteps, type NodeLikeRequest, OBSERVE_ENV_KEY, OBSERVE_STORAGE_KEY, type Observe, type ObserveCredential, type ObserveServer, type ObserveSlot, 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, type QueueReason, type QueuedReason, REF_CODE_PREFIX, REF_CONTRACT, REF_ENV, REF_FLOW, REF_FLOW_INLINE, REF_FLOW_NAME, 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, STEP_FIELD_ROLES, STEP_FUNCTION_KEYS, STEP_OPERATIVE_FIELDS, type ScheduleOptions, type SendDataValue, type SendHeaders, type SendResponse, type ServiceAccount, type SetupFn, simulation as Simulation, source as Source, type StandardEventName, type State, type StepEntryErrorCode, type StepEntryValidation, StepError, type StepErrorOptions, type StepField, type StepFieldRole, type StepFunctionKey, type StepKind, type StepType, type StorageType, store as Store, type TelemetryLevel, type TelemetryOptions, type TelemetryOptionsSupplier, type Timer, transformer as Transformer, type TransformerMappingEntry, trigger as Trigger, URL_WINDOW_MS, type ValidateEvents, type VerifyParams, type VerifyResult, walkeros as WalkerOS, type WalkerOSPackage, type WalkerOSPackageInfo, type WalkerOSPackageMeta, type WindowCollectorCheck, acknowledge, advanceChain, anonymizeIP, applyState, applyUpdate, assembleJourneys, assign, batchResponse, branch, buildScopeFromNodeRequest, castToProperty, castValue, checkCache, checkWindowCollector, clone, compileCache, compileMatcher, compileState, createBatchedPoster, createCauseLog, createDestination, createEvent, createIngest, createLogger, createMappingRoot, createMockContext, createMockLogger, createRespond, createTelemetryObserver, createTimer, debounce, deepMerge, defaultClickIds, deleteByPath, deriveSpanId, emitStep, fetchPackage, fetchPackageSchema, filterValues, flattenIncludeSections, formatOut, getBrowser, getBrowserVersion, getByPath, getDeviceType, getErrorMessage, getEvent, getFlowSettings, getGrantedConsent, getHeaders, getId, getMappingEvent, getMappingKeyPaths, getMappingNoOpMessage, getMappingNoOpPaths, getMappingValue, getMarketingParameters, getNextSteps, getOS, getOSVersion, getPlatform, getRouteGraph, getSpanId, getStepFieldRole, getStepRuntimeProps, getTraceId, getTraceUntil, getTransformerMapping, getTransformerMappingWarnings, getUnknownStepKeys, isArguments, isArray, isBatchBody, isBoolean, isChainContinuation, isCommand, isDefined, isEnvObserve, isFunction, isNumber, isObject, isPathStepEntry, isPropertyType, isRouteArray, isRouteConfigEntry, isRouteContinuation, isSameType, isSampled, isScope, isStoreValue, isString, isThenable, mcpError, mcpResult, mergeContractSchemas, mergeMappingRule, mockEnv, networkErrorMessage, normalizeBody, normalizeHeaders, normalizeQuery, observeEnv, observeFromEnv, packageNameToVariable, parseCallPath, parseGrant, parseObserveCredential, parseTraceparent, parseUserAgent, parseWalkerOSJson, processEventMapping, pushResultToOutcome, readCacheEnvelope, reportCause, requestToData, requestToParameter, resolveContracts, resolveDestinationTimeout, resolveSetup, resolveTelemetryOptions, scanFlowRefs, setByPath, setTraceUntil, startChain, stepCall, stepId, storeCache, throttle, throwError, toEventList, toFailureReason, transformData, traverseEnv, trim, tryCatch, tryCatchAsync, useHooks, validateStepEntry, verifyActivation, walkPath, wrapCacheEnvelope, wrapCondition, wrapFn, wrapValidate };
|