@walkeros/core 4.6.0 → 4.7.0-next-1790187973605
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 +59 -0
- package/dist/dev.d.mts +548 -58
- package/dist/dev.d.ts +548 -58
- 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 +439 -72
- package/dist/index.d.ts +439 -72
- 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/dev.d.mts
CHANGED
|
@@ -544,8 +544,9 @@ declare const ValuesSchema: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTy
|
|
|
544
544
|
* Loop - Tuple for array processing
|
|
545
545
|
* Format: [source, transform]
|
|
546
546
|
*
|
|
547
|
-
* IMPORTANT:
|
|
548
|
-
*
|
|
547
|
+
* IMPORTANT: the JSON Schema carries minItems/maxItems = 2, set explicitly in
|
|
548
|
+
* meta because z.tuple() emits neither for draft-7, which makes Ajv strict mode
|
|
549
|
+
* warn about the tuple.
|
|
549
550
|
*
|
|
550
551
|
* Example: ['nested', { map: { id: 'data.id' } }]
|
|
551
552
|
* Means: Iterate over event.nested array, transform each item
|
|
@@ -3484,6 +3485,7 @@ declare const ConfigSchema$4: z.ZodObject<{
|
|
|
3484
3485
|
queueMax: z.ZodOptional<z.ZodNumber>;
|
|
3485
3486
|
name: z.ZodOptional<z.ZodString>;
|
|
3486
3487
|
release: z.ZodOptional<z.ZodString>;
|
|
3488
|
+
next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
3487
3489
|
}, z.core.$strip>;
|
|
3488
3490
|
/**
|
|
3489
3491
|
* SessionData - Session state management
|
|
@@ -3536,6 +3538,7 @@ declare const InitConfigSchema: z.ZodObject<{
|
|
|
3536
3538
|
queueMax: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3537
3539
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3538
3540
|
release: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3541
|
+
next: z.ZodOptional<z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
3539
3542
|
consent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
3540
3543
|
user: z.ZodOptional<z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>, z.ZodObject<{
|
|
3541
3544
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -3720,6 +3723,7 @@ declare const InstanceSchema$1: z.ZodObject<{
|
|
|
3720
3723
|
queueMax: z.ZodOptional<z.ZodNumber>;
|
|
3721
3724
|
name: z.ZodOptional<z.ZodString>;
|
|
3722
3725
|
release: z.ZodOptional<z.ZodString>;
|
|
3726
|
+
next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
3723
3727
|
}, z.core.$strip>;
|
|
3724
3728
|
consent: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
3725
3729
|
custom: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
@@ -4995,7 +4999,7 @@ declare const BundleSchema: z.ZodObject<{
|
|
|
4995
4999
|
* {
|
|
4996
5000
|
* "code": {
|
|
4997
5001
|
* "type": "enricher",
|
|
4998
|
-
* "push": "$code:(event) => ({ ...event, data: { ...event.data, enriched: true } })"
|
|
5002
|
+
* "push": "$code:(event) => ({ event: { ...event, data: { ...event.data, enriched: true } } })"
|
|
4999
5003
|
* }
|
|
5000
5004
|
* }
|
|
5001
5005
|
* ```
|
|
@@ -5080,6 +5084,23 @@ declare const SourceSchema: z.ZodObject<{
|
|
|
5080
5084
|
import: z.ZodOptional<z.ZodString>;
|
|
5081
5085
|
config: z.ZodOptional<z.ZodObject<{
|
|
5082
5086
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
5087
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5088
|
+
mode: z.ZodEnum<{
|
|
5089
|
+
set: "set";
|
|
5090
|
+
get: "get";
|
|
5091
|
+
}>;
|
|
5092
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5093
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5094
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5095
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5096
|
+
mode: z.ZodEnum<{
|
|
5097
|
+
set: "set";
|
|
5098
|
+
get: "get";
|
|
5099
|
+
}>;
|
|
5100
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5101
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5102
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5103
|
+
}, z.core.$strip>>]>>;
|
|
5083
5104
|
}, z.core.$loose>>;
|
|
5084
5105
|
env: z.ZodOptional<z.ZodUnknown>;
|
|
5085
5106
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5115,6 +5136,23 @@ declare const SourceSchema: z.ZodObject<{
|
|
|
5115
5136
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5116
5137
|
}, z.core.$strip>>;
|
|
5117
5138
|
}, z.core.$strip>>;
|
|
5139
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5140
|
+
mode: z.ZodEnum<{
|
|
5141
|
+
set: "set";
|
|
5142
|
+
get: "get";
|
|
5143
|
+
}>;
|
|
5144
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5145
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5146
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5147
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5148
|
+
mode: z.ZodEnum<{
|
|
5149
|
+
set: "set";
|
|
5150
|
+
get: "get";
|
|
5151
|
+
}>;
|
|
5152
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5153
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5154
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5155
|
+
}, z.core.$strip>>]>>;
|
|
5118
5156
|
}, z.core.$strict>;
|
|
5119
5157
|
/**
|
|
5120
5158
|
* Transformer reference schema (Flow.Transformer).
|
|
@@ -5161,6 +5199,24 @@ declare const TransformerSchema: z.ZodObject<{
|
|
|
5161
5199
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5162
5200
|
}, z.core.$strip>>;
|
|
5163
5201
|
}, z.core.$strip>>;
|
|
5202
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5203
|
+
mode: z.ZodEnum<{
|
|
5204
|
+
set: "set";
|
|
5205
|
+
get: "get";
|
|
5206
|
+
}>;
|
|
5207
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5208
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5209
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5210
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5211
|
+
mode: z.ZodEnum<{
|
|
5212
|
+
set: "set";
|
|
5213
|
+
get: "get";
|
|
5214
|
+
}>;
|
|
5215
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5216
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5217
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5218
|
+
}, z.core.$strip>>]>>;
|
|
5219
|
+
mapping: z.ZodOptional<z.ZodUnknown>;
|
|
5164
5220
|
}, z.core.$strip>;
|
|
5165
5221
|
/**
|
|
5166
5222
|
* Destination reference schema (Flow.Destination).
|
|
@@ -5209,6 +5265,23 @@ declare const DestinationSchema: z.ZodObject<{
|
|
|
5209
5265
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5210
5266
|
}, z.core.$strip>>;
|
|
5211
5267
|
}, z.core.$strip>>;
|
|
5268
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5269
|
+
mode: z.ZodEnum<{
|
|
5270
|
+
set: "set";
|
|
5271
|
+
get: "get";
|
|
5272
|
+
}>;
|
|
5273
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5274
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5275
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5276
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5277
|
+
mode: z.ZodEnum<{
|
|
5278
|
+
set: "set";
|
|
5279
|
+
get: "get";
|
|
5280
|
+
}>;
|
|
5281
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5282
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5283
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5284
|
+
}, z.core.$strip>>]>>;
|
|
5212
5285
|
}, z.core.$strip>;
|
|
5213
5286
|
/**
|
|
5214
5287
|
* Store reference schema (Flow.Store).
|
|
@@ -5387,6 +5460,23 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
5387
5460
|
import: z.ZodOptional<z.ZodString>;
|
|
5388
5461
|
config: z.ZodOptional<z.ZodObject<{
|
|
5389
5462
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
5463
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5464
|
+
mode: z.ZodEnum<{
|
|
5465
|
+
set: "set";
|
|
5466
|
+
get: "get";
|
|
5467
|
+
}>;
|
|
5468
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5469
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5470
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5471
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5472
|
+
mode: z.ZodEnum<{
|
|
5473
|
+
set: "set";
|
|
5474
|
+
get: "get";
|
|
5475
|
+
}>;
|
|
5476
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5477
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5478
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5479
|
+
}, z.core.$strip>>]>>;
|
|
5390
5480
|
}, z.core.$loose>>;
|
|
5391
5481
|
env: z.ZodOptional<z.ZodUnknown>;
|
|
5392
5482
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5422,6 +5512,23 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
5422
5512
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5423
5513
|
}, z.core.$strip>>;
|
|
5424
5514
|
}, z.core.$strip>>;
|
|
5515
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5516
|
+
mode: z.ZodEnum<{
|
|
5517
|
+
set: "set";
|
|
5518
|
+
get: "get";
|
|
5519
|
+
}>;
|
|
5520
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5521
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5522
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5523
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5524
|
+
mode: z.ZodEnum<{
|
|
5525
|
+
set: "set";
|
|
5526
|
+
get: "get";
|
|
5527
|
+
}>;
|
|
5528
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5529
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5530
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5531
|
+
}, z.core.$strip>>]>>;
|
|
5425
5532
|
}, z.core.$strict>>>;
|
|
5426
5533
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5427
5534
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5467,6 +5574,23 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
5467
5574
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5468
5575
|
}, z.core.$strip>>;
|
|
5469
5576
|
}, z.core.$strip>>;
|
|
5577
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5578
|
+
mode: z.ZodEnum<{
|
|
5579
|
+
set: "set";
|
|
5580
|
+
get: "get";
|
|
5581
|
+
}>;
|
|
5582
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5583
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5584
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5585
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5586
|
+
mode: z.ZodEnum<{
|
|
5587
|
+
set: "set";
|
|
5588
|
+
get: "get";
|
|
5589
|
+
}>;
|
|
5590
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5591
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5592
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5593
|
+
}, z.core.$strip>>]>>;
|
|
5470
5594
|
}, z.core.$strip>>>;
|
|
5471
5595
|
transformers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5472
5596
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5510,6 +5634,24 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
5510
5634
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5511
5635
|
}, z.core.$strip>>;
|
|
5512
5636
|
}, z.core.$strip>>;
|
|
5637
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5638
|
+
mode: z.ZodEnum<{
|
|
5639
|
+
set: "set";
|
|
5640
|
+
get: "get";
|
|
5641
|
+
}>;
|
|
5642
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5643
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5644
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5645
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5646
|
+
mode: z.ZodEnum<{
|
|
5647
|
+
set: "set";
|
|
5648
|
+
get: "get";
|
|
5649
|
+
}>;
|
|
5650
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5651
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5652
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5653
|
+
}, z.core.$strip>>]>>;
|
|
5654
|
+
mapping: z.ZodOptional<z.ZodUnknown>;
|
|
5513
5655
|
}, z.core.$strip>>>;
|
|
5514
5656
|
stores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5515
5657
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5551,7 +5693,9 @@ declare const FlowSchema: z.ZodObject<{
|
|
|
5551
5693
|
}>>;
|
|
5552
5694
|
}, z.core.$strip>>>;
|
|
5553
5695
|
}, z.core.$strip>>>;
|
|
5554
|
-
collector: z.ZodOptional<z.
|
|
5696
|
+
collector: z.ZodOptional<z.ZodObject<{
|
|
5697
|
+
next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5698
|
+
}, z.core.$loose>>;
|
|
5555
5699
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5556
5700
|
}, z.core.$strip>;
|
|
5557
5701
|
/**
|
|
@@ -5611,6 +5755,23 @@ declare const JsonSchema$1: z.ZodObject<{
|
|
|
5611
5755
|
import: z.ZodOptional<z.ZodString>;
|
|
5612
5756
|
config: z.ZodOptional<z.ZodObject<{
|
|
5613
5757
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
5758
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5759
|
+
mode: z.ZodEnum<{
|
|
5760
|
+
set: "set";
|
|
5761
|
+
get: "get";
|
|
5762
|
+
}>;
|
|
5763
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5764
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5765
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5766
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5767
|
+
mode: z.ZodEnum<{
|
|
5768
|
+
set: "set";
|
|
5769
|
+
get: "get";
|
|
5770
|
+
}>;
|
|
5771
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5772
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5773
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5774
|
+
}, z.core.$strip>>]>>;
|
|
5614
5775
|
}, z.core.$loose>>;
|
|
5615
5776
|
env: z.ZodOptional<z.ZodUnknown>;
|
|
5616
5777
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5646,6 +5807,23 @@ declare const JsonSchema$1: z.ZodObject<{
|
|
|
5646
5807
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5647
5808
|
}, z.core.$strip>>;
|
|
5648
5809
|
}, z.core.$strip>>;
|
|
5810
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5811
|
+
mode: z.ZodEnum<{
|
|
5812
|
+
set: "set";
|
|
5813
|
+
get: "get";
|
|
5814
|
+
}>;
|
|
5815
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5816
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5817
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5818
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5819
|
+
mode: z.ZodEnum<{
|
|
5820
|
+
set: "set";
|
|
5821
|
+
get: "get";
|
|
5822
|
+
}>;
|
|
5823
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5824
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5825
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5826
|
+
}, z.core.$strip>>]>>;
|
|
5649
5827
|
}, z.core.$strict>>>;
|
|
5650
5828
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5651
5829
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5691,6 +5869,23 @@ declare const JsonSchema$1: z.ZodObject<{
|
|
|
5691
5869
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5692
5870
|
}, z.core.$strip>>;
|
|
5693
5871
|
}, z.core.$strip>>;
|
|
5872
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5873
|
+
mode: z.ZodEnum<{
|
|
5874
|
+
set: "set";
|
|
5875
|
+
get: "get";
|
|
5876
|
+
}>;
|
|
5877
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5878
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5879
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5880
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5881
|
+
mode: z.ZodEnum<{
|
|
5882
|
+
set: "set";
|
|
5883
|
+
get: "get";
|
|
5884
|
+
}>;
|
|
5885
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5886
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5887
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5888
|
+
}, z.core.$strip>>]>>;
|
|
5694
5889
|
}, z.core.$strip>>>;
|
|
5695
5890
|
transformers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5696
5891
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5734,6 +5929,24 @@ declare const JsonSchema$1: z.ZodObject<{
|
|
|
5734
5929
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
5735
5930
|
}, z.core.$strip>>;
|
|
5736
5931
|
}, z.core.$strip>>;
|
|
5932
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
5933
|
+
mode: z.ZodEnum<{
|
|
5934
|
+
set: "set";
|
|
5935
|
+
get: "get";
|
|
5936
|
+
}>;
|
|
5937
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5938
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5939
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5940
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
5941
|
+
mode: z.ZodEnum<{
|
|
5942
|
+
set: "set";
|
|
5943
|
+
get: "get";
|
|
5944
|
+
}>;
|
|
5945
|
+
store: z.ZodOptional<z.ZodString>;
|
|
5946
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
5947
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5948
|
+
}, z.core.$strip>>]>>;
|
|
5949
|
+
mapping: z.ZodOptional<z.ZodUnknown>;
|
|
5737
5950
|
}, z.core.$strip>>>;
|
|
5738
5951
|
stores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5739
5952
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -5775,7 +5988,9 @@ declare const JsonSchema$1: z.ZodObject<{
|
|
|
5775
5988
|
}>>;
|
|
5776
5989
|
}, z.core.$strip>>>;
|
|
5777
5990
|
}, z.core.$strip>>>;
|
|
5778
|
-
collector: z.ZodOptional<z.
|
|
5991
|
+
collector: z.ZodOptional<z.ZodObject<{
|
|
5992
|
+
next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
5993
|
+
}, z.core.$loose>>;
|
|
5779
5994
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5780
5995
|
}, z.core.$strip>>;
|
|
5781
5996
|
}, z.core.$strip>;
|
|
@@ -5837,6 +6052,17 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
|
|
|
5837
6052
|
config?: {
|
|
5838
6053
|
[x: string]: unknown;
|
|
5839
6054
|
setup?: boolean | Record<string, unknown> | undefined;
|
|
6055
|
+
state?: {
|
|
6056
|
+
mode: "set" | "get";
|
|
6057
|
+
key: unknown;
|
|
6058
|
+
store?: string | undefined;
|
|
6059
|
+
value?: unknown;
|
|
6060
|
+
} | {
|
|
6061
|
+
mode: "set" | "get";
|
|
6062
|
+
key: unknown;
|
|
6063
|
+
store?: string | undefined;
|
|
6064
|
+
value?: unknown;
|
|
6065
|
+
}[] | undefined;
|
|
5840
6066
|
} | undefined;
|
|
5841
6067
|
env?: unknown;
|
|
5842
6068
|
primary?: boolean | undefined;
|
|
@@ -5867,6 +6093,17 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
|
|
|
5867
6093
|
store?: string | undefined;
|
|
5868
6094
|
namespace?: string | undefined;
|
|
5869
6095
|
} | undefined;
|
|
6096
|
+
state?: {
|
|
6097
|
+
mode: "set" | "get";
|
|
6098
|
+
key: unknown;
|
|
6099
|
+
store?: string | undefined;
|
|
6100
|
+
value?: unknown;
|
|
6101
|
+
} | {
|
|
6102
|
+
mode: "set" | "get";
|
|
6103
|
+
key: unknown;
|
|
6104
|
+
store?: string | undefined;
|
|
6105
|
+
value?: unknown;
|
|
6106
|
+
}[] | undefined;
|
|
5870
6107
|
}> | undefined;
|
|
5871
6108
|
destinations?: Record<string, {
|
|
5872
6109
|
package?: string | undefined;
|
|
@@ -5908,6 +6145,17 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
|
|
|
5908
6145
|
store?: string | undefined;
|
|
5909
6146
|
namespace?: string | undefined;
|
|
5910
6147
|
} | undefined;
|
|
6148
|
+
state?: {
|
|
6149
|
+
mode: "set" | "get";
|
|
6150
|
+
key: unknown;
|
|
6151
|
+
store?: string | undefined;
|
|
6152
|
+
value?: unknown;
|
|
6153
|
+
} | {
|
|
6154
|
+
mode: "set" | "get";
|
|
6155
|
+
key: unknown;
|
|
6156
|
+
store?: string | undefined;
|
|
6157
|
+
value?: unknown;
|
|
6158
|
+
}[] | undefined;
|
|
5911
6159
|
}> | undefined;
|
|
5912
6160
|
transformers?: Record<string, {
|
|
5913
6161
|
package?: string | undefined;
|
|
@@ -5946,6 +6194,18 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
|
|
|
5946
6194
|
store?: string | undefined;
|
|
5947
6195
|
namespace?: string | undefined;
|
|
5948
6196
|
} | undefined;
|
|
6197
|
+
state?: {
|
|
6198
|
+
mode: "set" | "get";
|
|
6199
|
+
key: unknown;
|
|
6200
|
+
store?: string | undefined;
|
|
6201
|
+
value?: unknown;
|
|
6202
|
+
} | {
|
|
6203
|
+
mode: "set" | "get";
|
|
6204
|
+
key: unknown;
|
|
6205
|
+
store?: string | undefined;
|
|
6206
|
+
value?: unknown;
|
|
6207
|
+
}[] | undefined;
|
|
6208
|
+
mapping?: unknown;
|
|
5949
6209
|
}> | undefined;
|
|
5950
6210
|
stores?: Record<string, {
|
|
5951
6211
|
package?: string | undefined;
|
|
@@ -5983,7 +6243,10 @@ declare function safeParseConfig(data: unknown): z.ZodSafeParseResult<{
|
|
|
5983
6243
|
command?: "consent" | "config" | "user" | "run" | undefined;
|
|
5984
6244
|
}> | undefined;
|
|
5985
6245
|
}> | undefined;
|
|
5986
|
-
collector?:
|
|
6246
|
+
collector?: {
|
|
6247
|
+
[x: string]: unknown;
|
|
6248
|
+
next?: unknown;
|
|
6249
|
+
} | undefined;
|
|
5987
6250
|
variables?: Record<string, unknown> | undefined;
|
|
5988
6251
|
}>;
|
|
5989
6252
|
$schema?: string | undefined;
|
|
@@ -6040,6 +6303,17 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
|
|
|
6040
6303
|
config?: {
|
|
6041
6304
|
[x: string]: unknown;
|
|
6042
6305
|
setup?: boolean | Record<string, unknown> | undefined;
|
|
6306
|
+
state?: {
|
|
6307
|
+
mode: "set" | "get";
|
|
6308
|
+
key: unknown;
|
|
6309
|
+
store?: string | undefined;
|
|
6310
|
+
value?: unknown;
|
|
6311
|
+
} | {
|
|
6312
|
+
mode: "set" | "get";
|
|
6313
|
+
key: unknown;
|
|
6314
|
+
store?: string | undefined;
|
|
6315
|
+
value?: unknown;
|
|
6316
|
+
}[] | undefined;
|
|
6043
6317
|
} | undefined;
|
|
6044
6318
|
env?: unknown;
|
|
6045
6319
|
primary?: boolean | undefined;
|
|
@@ -6070,6 +6344,17 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
|
|
|
6070
6344
|
store?: string | undefined;
|
|
6071
6345
|
namespace?: string | undefined;
|
|
6072
6346
|
} | undefined;
|
|
6347
|
+
state?: {
|
|
6348
|
+
mode: "set" | "get";
|
|
6349
|
+
key: unknown;
|
|
6350
|
+
store?: string | undefined;
|
|
6351
|
+
value?: unknown;
|
|
6352
|
+
} | {
|
|
6353
|
+
mode: "set" | "get";
|
|
6354
|
+
key: unknown;
|
|
6355
|
+
store?: string | undefined;
|
|
6356
|
+
value?: unknown;
|
|
6357
|
+
}[] | undefined;
|
|
6073
6358
|
}> | undefined;
|
|
6074
6359
|
destinations?: Record<string, {
|
|
6075
6360
|
package?: string | undefined;
|
|
@@ -6111,6 +6396,17 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
|
|
|
6111
6396
|
store?: string | undefined;
|
|
6112
6397
|
namespace?: string | undefined;
|
|
6113
6398
|
} | undefined;
|
|
6399
|
+
state?: {
|
|
6400
|
+
mode: "set" | "get";
|
|
6401
|
+
key: unknown;
|
|
6402
|
+
store?: string | undefined;
|
|
6403
|
+
value?: unknown;
|
|
6404
|
+
} | {
|
|
6405
|
+
mode: "set" | "get";
|
|
6406
|
+
key: unknown;
|
|
6407
|
+
store?: string | undefined;
|
|
6408
|
+
value?: unknown;
|
|
6409
|
+
}[] | undefined;
|
|
6114
6410
|
}> | undefined;
|
|
6115
6411
|
transformers?: Record<string, {
|
|
6116
6412
|
package?: string | undefined;
|
|
@@ -6149,6 +6445,18 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
|
|
|
6149
6445
|
store?: string | undefined;
|
|
6150
6446
|
namespace?: string | undefined;
|
|
6151
6447
|
} | undefined;
|
|
6448
|
+
state?: {
|
|
6449
|
+
mode: "set" | "get";
|
|
6450
|
+
key: unknown;
|
|
6451
|
+
store?: string | undefined;
|
|
6452
|
+
value?: unknown;
|
|
6453
|
+
} | {
|
|
6454
|
+
mode: "set" | "get";
|
|
6455
|
+
key: unknown;
|
|
6456
|
+
store?: string | undefined;
|
|
6457
|
+
value?: unknown;
|
|
6458
|
+
}[] | undefined;
|
|
6459
|
+
mapping?: unknown;
|
|
6152
6460
|
}> | undefined;
|
|
6153
6461
|
stores?: Record<string, {
|
|
6154
6462
|
package?: string | undefined;
|
|
@@ -6186,7 +6494,10 @@ declare function safeParseFlow(data: unknown): z.ZodSafeParseResult<{
|
|
|
6186
6494
|
command?: "consent" | "config" | "user" | "run" | undefined;
|
|
6187
6495
|
}> | undefined;
|
|
6188
6496
|
}> | undefined;
|
|
6189
|
-
collector?:
|
|
6497
|
+
collector?: {
|
|
6498
|
+
[x: string]: unknown;
|
|
6499
|
+
next?: unknown;
|
|
6500
|
+
} | undefined;
|
|
6190
6501
|
variables?: Record<string, unknown> | undefined;
|
|
6191
6502
|
}>;
|
|
6192
6503
|
/**
|
|
@@ -6246,6 +6557,23 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
|
|
|
6246
6557
|
import: z.ZodOptional<z.ZodString>;
|
|
6247
6558
|
config: z.ZodOptional<z.ZodObject<{
|
|
6248
6559
|
setup: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
6560
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
6561
|
+
mode: z.ZodEnum<{
|
|
6562
|
+
set: "set";
|
|
6563
|
+
get: "get";
|
|
6564
|
+
}>;
|
|
6565
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6566
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6567
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6568
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
6569
|
+
mode: z.ZodEnum<{
|
|
6570
|
+
set: "set";
|
|
6571
|
+
get: "get";
|
|
6572
|
+
}>;
|
|
6573
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6574
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6575
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6576
|
+
}, z.core.$strip>>]>>;
|
|
6249
6577
|
}, z.core.$loose>>;
|
|
6250
6578
|
env: z.ZodOptional<z.ZodUnknown>;
|
|
6251
6579
|
primary: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6281,6 +6609,23 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
|
|
|
6281
6609
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
6282
6610
|
}, z.core.$strip>>;
|
|
6283
6611
|
}, z.core.$strip>>;
|
|
6612
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
6613
|
+
mode: z.ZodEnum<{
|
|
6614
|
+
set: "set";
|
|
6615
|
+
get: "get";
|
|
6616
|
+
}>;
|
|
6617
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6618
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6619
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6620
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
6621
|
+
mode: z.ZodEnum<{
|
|
6622
|
+
set: "set";
|
|
6623
|
+
get: "get";
|
|
6624
|
+
}>;
|
|
6625
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6626
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6627
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6628
|
+
}, z.core.$strip>>]>>;
|
|
6284
6629
|
}, z.core.$strict>>>;
|
|
6285
6630
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6286
6631
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -6326,6 +6671,23 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
|
|
|
6326
6671
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
6327
6672
|
}, z.core.$strip>>;
|
|
6328
6673
|
}, z.core.$strip>>;
|
|
6674
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
6675
|
+
mode: z.ZodEnum<{
|
|
6676
|
+
set: "set";
|
|
6677
|
+
get: "get";
|
|
6678
|
+
}>;
|
|
6679
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6680
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6681
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6682
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
6683
|
+
mode: z.ZodEnum<{
|
|
6684
|
+
set: "set";
|
|
6685
|
+
get: "get";
|
|
6686
|
+
}>;
|
|
6687
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6688
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6689
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6690
|
+
}, z.core.$strip>>]>>;
|
|
6329
6691
|
}, z.core.$strip>>>;
|
|
6330
6692
|
transformers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6331
6693
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -6369,6 +6731,24 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
|
|
|
6369
6731
|
update: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
6370
6732
|
}, z.core.$strip>>;
|
|
6371
6733
|
}, z.core.$strip>>;
|
|
6734
|
+
state: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
6735
|
+
mode: z.ZodEnum<{
|
|
6736
|
+
set: "set";
|
|
6737
|
+
get: "get";
|
|
6738
|
+
}>;
|
|
6739
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6740
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6741
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6742
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
6743
|
+
mode: z.ZodEnum<{
|
|
6744
|
+
set: "set";
|
|
6745
|
+
get: "get";
|
|
6746
|
+
}>;
|
|
6747
|
+
store: z.ZodOptional<z.ZodString>;
|
|
6748
|
+
key: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
6749
|
+
value: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6750
|
+
}, z.core.$strip>>]>>;
|
|
6751
|
+
mapping: z.ZodOptional<z.ZodUnknown>;
|
|
6372
6752
|
}, z.core.$strip>>>;
|
|
6373
6753
|
stores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6374
6754
|
package: z.ZodOptional<z.ZodString>;
|
|
@@ -6410,7 +6790,9 @@ declare const configJsonSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<
|
|
|
6410
6790
|
}>>;
|
|
6411
6791
|
}, z.core.$strip>>>;
|
|
6412
6792
|
}, z.core.$strip>>>;
|
|
6413
|
-
collector: z.ZodOptional<z.
|
|
6793
|
+
collector: z.ZodOptional<z.ZodObject<{
|
|
6794
|
+
next: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
6795
|
+
}, z.core.$loose>>;
|
|
6414
6796
|
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6415
6797
|
}, z.core.$strip>>;
|
|
6416
6798
|
}, z.core.$strip>>;
|
|
@@ -6694,21 +7076,6 @@ declare namespace cache {
|
|
|
6694
7076
|
export { cache_CacheRuleSchema as CacheRuleSchema, cache_CacheSchema as CacheSchema, cache_EventCacheRuleSchema as EventCacheRuleSchema, cache_EventCacheSchema as EventCacheSchema, cache_StoreCacheRuleSchema as StoreCacheRuleSchema, cache_StoreCacheSchema as StoreCacheSchema };
|
|
6695
7077
|
}
|
|
6696
7078
|
|
|
6697
|
-
/**
|
|
6698
|
-
* StateSchema — declarative store get/set operation.
|
|
6699
|
-
*
|
|
6700
|
-
* Mirrors: types/state.ts → State
|
|
6701
|
-
*
|
|
6702
|
-
* - mode: 'get' | 'set' direction ('delete' is reserved for a later release).
|
|
6703
|
-
* - store: optional store id; defaults to the in-memory `__cache` store.
|
|
6704
|
-
* - key: Mapping.Value resolving (against the event) to the store key.
|
|
6705
|
-
* - value: Mapping.Value. For `set` it resolves to the payload to store; for
|
|
6706
|
-
* `get` its bare-string path (or `.key`) is the event write-target. Optional
|
|
6707
|
-
* at the type level (to keep a future `delete` mode non-breaking) but
|
|
6708
|
-
* validation requires it for `get`/`set`, and for `get` it must be a bare
|
|
6709
|
-
* string or a ValueConfig with a `key` (no `value`/`fn`/`map`/`loop`/`set`,
|
|
6710
|
-
* and no `*` wildcard in the path).
|
|
6711
|
-
*/
|
|
6712
7079
|
declare const StateSchema: z.ZodObject<{
|
|
6713
7080
|
mode: z.ZodEnum<{
|
|
6714
7081
|
set: "set";
|
|
@@ -6721,13 +7088,11 @@ declare const StateSchema: z.ZodObject<{
|
|
|
6721
7088
|
|
|
6722
7089
|
declare const MatchExpressionSchema: z.ZodType;
|
|
6723
7090
|
declare const RouteSchema: z.ZodType;
|
|
6724
|
-
declare const RouteWithoutManySchema: z.ZodType;
|
|
6725
7091
|
|
|
6726
7092
|
declare const matcher_MatchExpressionSchema: typeof MatchExpressionSchema;
|
|
6727
7093
|
declare const matcher_RouteSchema: typeof RouteSchema;
|
|
6728
|
-
declare const matcher_RouteWithoutManySchema: typeof RouteWithoutManySchema;
|
|
6729
7094
|
declare namespace matcher {
|
|
6730
|
-
export { matcher_MatchExpressionSchema as MatchExpressionSchema, matcher_RouteSchema as RouteSchema
|
|
7095
|
+
export { matcher_MatchExpressionSchema as MatchExpressionSchema, matcher_RouteSchema as RouteSchema };
|
|
6731
7096
|
}
|
|
6732
7097
|
|
|
6733
7098
|
declare const CodeSchema: z.ZodObject<{
|
|
@@ -7131,7 +7496,6 @@ declare const index_RequiredBoolean: typeof RequiredBoolean;
|
|
|
7131
7496
|
declare const index_RequiredNumber: typeof RequiredNumber;
|
|
7132
7497
|
declare const index_RequiredString: typeof RequiredString;
|
|
7133
7498
|
declare const index_RouteSchema: typeof RouteSchema;
|
|
7134
|
-
declare const index_RouteWithoutManySchema: typeof RouteWithoutManySchema;
|
|
7135
7499
|
declare const index_RuleSchema: typeof RuleSchema;
|
|
7136
7500
|
declare const index_RulesSchema: typeof RulesSchema;
|
|
7137
7501
|
declare const index_RuntimeInstanceConfig: typeof RuntimeInstanceConfig;
|
|
@@ -7194,7 +7558,7 @@ declare const index_valueJsonSchema: typeof valueJsonSchema;
|
|
|
7194
7558
|
declare const index_z: typeof z;
|
|
7195
7559
|
declare const index_zodToSchema: typeof zodToSchema;
|
|
7196
7560
|
declare namespace index {
|
|
7197
|
-
export { index_BaseContextConfig as BaseContextConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_CredentialsSchema as CredentialsSchema, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventCacheRuleSchema as EventCacheRuleSchema, index_EventCacheSchema as EventCacheSchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema$1 as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RouteSchema as RouteSchema,
|
|
7561
|
+
export { index_BaseContextConfig as BaseContextConfig, index_CacheRuleSchema as CacheRuleSchema, index_CacheSchema as CacheSchema, cache as CacheSchemas, index_ClickIdEntrySchema as ClickIdEntrySchema, index_CodeSchema as CodeSchema, collector as CollectorSchemas, index_ConsentSchema as ConsentSchema, index_ContractActionsSchema as ContractActionsSchema, index_ContractRuleSchema as ContractRuleSchema, index_ContractSchema as ContractSchema, index_ContractSchemaEntry as ContractSchemaEntry, index_Counter as Counter, index_CredentialsSchema as CredentialsSchema, index_DeepPartialEventSchema as DeepPartialEventSchema, destination as DestinationSchemas, index_DestinationsMapConfig as DestinationsMapConfig, index_EntitiesSchema as EntitiesSchema, index_EntitySchema as EntitySchema, index_EventCacheRuleSchema as EventCacheRuleSchema, index_EventCacheSchema as EventCacheSchema, index_EventSchema as EventSchema, BundlePackageSchema as FlowBundlePackageSchema, BundleSchema as FlowBundleSchema, CodeSchema$1 as FlowCodeSchema, ConfigSchema as FlowConfigSchema, DestinationSchema as FlowDestinationSchema, JsonSchema$1 as FlowJsonSchema, index_FlowSchema as FlowSchema, flow as FlowSchemas, SourceSchema as FlowSourceSchema, StoreSchema as FlowStoreSchema, TransformerSchema as FlowTransformerSchema, index_GenericEnvConfig as GenericEnvConfig, index_GenericSettingsConfig as GenericSettingsConfig, index_HandlersConfig as HandlersConfig, index_HintSchema as HintSchema, index_HintsSchema as HintsSchema, index_IdConfig as IdConfig, index_Identifier as Identifier, InitConfig$1 as InitConfig, type index_IntelliSenseContext as IntelliSenseContext, type index_JSONSchema as JSONSchema, index_LoggerConfigSchema as LoggerConfigSchema, index_LoggerHandlerSchema as LoggerHandlerSchema, index_LoopSchema as LoopSchema, index_MapSchema as MapSchema, ResultSchema$1 as MappingResultSchema, mapping as MappingSchemas, index_MatchExpressionSchema as MatchExpressionSchema, matcher as MatcherSchemas, index_OptionalPrimitiveValue as OptionalPrimitiveValue, index_OrderedPropertiesSchema as OrderedPropertiesSchema, type index_PackageInfo as PackageInfo, index_PartialEventSchema as PartialEventSchema, index_PolicySchema as PolicySchema, index_PrimaryConfig as PrimaryConfig, index_PrimitiveValue as PrimitiveValue, index_ProcessingControlConfig as ProcessingControlConfig, index_PropertiesSchema as PropertiesSchema, type index_PropertyDef as PropertyDef, index_PropertySchema as PropertySchema, index_PropertyTypeSchema as PropertyTypeSchema, index_QueueConfig as QueueConfig, index_RequiredBoolean as RequiredBoolean, index_RequiredNumber as RequiredNumber, index_RequiredString as RequiredString, index_RouteSchema as RouteSchema, index_RuleSchema as RuleSchema, index_RulesSchema as RulesSchema, index_RuntimeInstanceConfig as RuntimeInstanceConfig, index_ServiceAccountSchema as ServiceAccountSchema, index_SetSchema as SetSchema, SourceSchema$1 as SourceSchema, source as SourceSchemas, index_SourceTypeSchema as SourceTypeSchema, index_SourcesMapConfig as SourcesMapConfig, index_StateSchema as StateSchema, index_StoreCacheRuleSchema as StoreCacheRuleSchema, index_StoreCacheSchema as StoreCacheSchema, store as StoreSchemas, index_Timestamp as Timestamp, transformer as TransformerSchemas, index_UserSchema as UserSchema, utilities as UtilitySchemas, index_ValidateEventsSchema as ValidateEventsSchema, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_ValueConfigSchema as ValueConfigSchema, index_ValueSchema as ValueSchema, index_ValuesSchema as ValuesSchema, index_VerboseConfig as VerboseConfig, walkeros as WalkerOSSchemas, index_configJsonSchema as configJsonSchema, index_consentJsonSchema as consentJsonSchema, index_contractJsonSchema as contractJsonSchema, index_contractRuleJsonSchema as contractRuleJsonSchema, index_createArraySchema as createArraySchema, index_createConsentConfig as createConsentConfig, index_createDataTransformationConfig as createDataTransformationConfig, index_createEnumSchema as createEnumSchema, index_createMappingRulesConfig as createMappingRulesConfig, index_createObjectSchema as createObjectSchema, index_createPolicyConfig as createPolicyConfig, index_createTupleSchema as createTupleSchema, index_credentialsJsonSchema as credentialsJsonSchema, index_destinationJsonSchema as destinationJsonSchema, index_entityJsonSchema as entityJsonSchema, index_eventJsonSchema as eventJsonSchema, index_flowConfigJsonSchema as flowConfigJsonSchema, index_flowJsonSchema as flowJsonSchema, index_loopJsonSchema as loopJsonSchema, index_mapJsonSchema as mapJsonSchema, index_orderedPropertiesJsonSchema as orderedPropertiesJsonSchema, index_parseConfig as parseConfig, index_parseFlow as parseFlow, index_partialEventJsonSchema as partialEventJsonSchema, index_policyJsonSchema as policyJsonSchema, index_propertiesJsonSchema as propertiesJsonSchema, index_ruleJsonSchema as ruleJsonSchema, index_rulesJsonSchema as rulesJsonSchema, index_safeParseConfig as safeParseConfig, index_safeParseFlow as safeParseFlow, index_setJsonSchema as setJsonSchema, index_sourceJsonSchema as sourceJsonSchema, index_sourceTypeJsonSchema as sourceTypeJsonSchema, index_storeJsonSchema as storeJsonSchema, index_transformerJsonSchema as transformerJsonSchema, index_userJsonSchema as userJsonSchema, index_validateEventsJsonSchema as validateEventsJsonSchema, index_validateFlowConfig as validateFlowConfig, index_valueConfigJsonSchema as valueConfigJsonSchema, index_valueJsonSchema as valueJsonSchema, index_z as z, index_zodToSchema as zodToSchema };
|
|
7198
7562
|
}
|
|
7199
7563
|
|
|
7200
7564
|
type PackageType = 'source' | 'destination' | 'transformer' | 'store';
|
|
@@ -7301,6 +7665,18 @@ interface ValueConfig {
|
|
|
7301
7665
|
validate?: Validate;
|
|
7302
7666
|
value?: PropertyType;
|
|
7303
7667
|
}
|
|
7668
|
+
/**
|
|
7669
|
+
* Resolution root for paths that can address both the event and the
|
|
7670
|
+
* pipeline ingest: state, cache keys and route matchers. Paths name their
|
|
7671
|
+
* side explicitly, `event.data.id` or `ingest.site`. Every route resolves
|
|
7672
|
+
* with the event its position holds. `event` is absent only for the
|
|
7673
|
+
* request-scoped source cache key (one check per request, before per-event
|
|
7674
|
+
* work) and in static tooling that has no event.
|
|
7675
|
+
*/
|
|
7676
|
+
type Root = {
|
|
7677
|
+
event?: DeepPartialEvent;
|
|
7678
|
+
ingest: Record<string, unknown>;
|
|
7679
|
+
};
|
|
7304
7680
|
interface Context$5 {
|
|
7305
7681
|
event: DeepPartialEvent;
|
|
7306
7682
|
/** The surrounding mapping config: a Value (value-level) or a Rule (rule-level). */
|
|
@@ -7507,7 +7883,7 @@ interface FlowState {
|
|
|
7507
7883
|
/** For phase === 'flush', the batch size + entry index. */
|
|
7508
7884
|
batch?: FlowStateBatch;
|
|
7509
7885
|
/** Discriminator when phase === 'skip'. */
|
|
7510
|
-
skipReason?: 'consent' | 'cache_hit' | 'sampled_out' | 'disabled' | 'unknown';
|
|
7886
|
+
skipReason?: 'consent' | 'cache_hit' | 'sampled_out' | 'disabled' | 'dropped' | 'unknown';
|
|
7511
7887
|
/** Free-form metadata: store key/value, cached: true, etc. */
|
|
7512
7888
|
meta?: Record<string, unknown>;
|
|
7513
7889
|
}
|
|
@@ -7576,6 +7952,14 @@ interface Config$6 {
|
|
|
7576
7952
|
name?: string;
|
|
7577
7953
|
/** Config release id stamped into event.source.release for this flow. */
|
|
7578
7954
|
release?: string;
|
|
7955
|
+
/**
|
|
7956
|
+
* The collector's own transformer chain. Runs once per completed event,
|
|
7957
|
+
* after enrichment and before the destination fan-out, with the full route
|
|
7958
|
+
* grammar. A `stop` (or a transformer returning `false`) drops the event for
|
|
7959
|
+
* every destination; per-destination filtering belongs on
|
|
7960
|
+
* `destination.before`. Swappable at runtime via `walker config`.
|
|
7961
|
+
*/
|
|
7962
|
+
next?: Route;
|
|
7579
7963
|
}
|
|
7580
7964
|
/**
|
|
7581
7965
|
* Initialization configuration that extends Config with initial state
|
|
@@ -7713,7 +8097,7 @@ interface Sources {
|
|
|
7713
8097
|
interface Destinations {
|
|
7714
8098
|
[id: string]: Instance$4;
|
|
7715
8099
|
}
|
|
7716
|
-
interface Transformers {
|
|
8100
|
+
interface Transformers$1 {
|
|
7717
8101
|
[id: string]: Instance$2;
|
|
7718
8102
|
}
|
|
7719
8103
|
interface Stores {
|
|
@@ -7728,7 +8112,11 @@ interface PushOptions {
|
|
|
7728
8112
|
ingest?: Ingest;
|
|
7729
8113
|
respond?: RespondFn;
|
|
7730
8114
|
mapping?: Config$7;
|
|
7731
|
-
|
|
8115
|
+
/**
|
|
8116
|
+
* Pre-collector chain (the source's `next` route, or a continuation of
|
|
8117
|
+
* it). Resolved hop by hop by the chain runner with `{ ingest, event }`.
|
|
8118
|
+
*/
|
|
8119
|
+
preChain?: Route;
|
|
7732
8120
|
include?: string[];
|
|
7733
8121
|
exclude?: string[];
|
|
7734
8122
|
}
|
|
@@ -7783,7 +8171,7 @@ interface Instance$5 {
|
|
|
7783
8171
|
custom: Properties;
|
|
7784
8172
|
sources: Sources;
|
|
7785
8173
|
destinations: Destinations;
|
|
7786
|
-
transformers: Transformers;
|
|
8174
|
+
transformers: Transformers$1;
|
|
7787
8175
|
stores: Stores;
|
|
7788
8176
|
globals: Properties;
|
|
7789
8177
|
hooks: Functions;
|
|
@@ -7929,18 +8317,21 @@ interface Base<C = unknown, E = unknown> {
|
|
|
7929
8317
|
|
|
7930
8318
|
/**
|
|
7931
8319
|
* Declarative store operation. Replaces `$code:` for simple fetch/stash.
|
|
7932
|
-
* key
|
|
8320
|
+
* key names the store slot, value the event or ingest side, mode the
|
|
8321
|
+
* direction. Paths resolve against `{ event, ingest }`: `event.user.session`,
|
|
8322
|
+
* `ingest.site`.
|
|
7933
8323
|
*/
|
|
7934
8324
|
interface State {
|
|
7935
8325
|
/** Direction. 'delete' is reserved for a later release. */
|
|
7936
8326
|
mode: 'get' | 'set';
|
|
7937
8327
|
/** Store id; defaults to the in-memory `__cache` store when omitted. */
|
|
7938
8328
|
store?: string;
|
|
7939
|
-
/** Resolves against
|
|
8329
|
+
/** Resolves against `{ event, ingest }` to the store key. */
|
|
7940
8330
|
key: Value;
|
|
7941
8331
|
/**
|
|
7942
|
-
* set: resolves to the payload to store.
|
|
7943
|
-
* get: its
|
|
8332
|
+
* set: resolves against `{ event, ingest }` to the payload to store.
|
|
8333
|
+
* get: its string path (or `key`) is the write target, `event.` onto the
|
|
8334
|
+
* event or `ingest.` into the ingest.
|
|
7944
8335
|
* Optional at the type level to keep a future `delete` mode non-breaking;
|
|
7945
8336
|
* validation requires it for get/set.
|
|
7946
8337
|
*/
|
|
@@ -8067,7 +8458,7 @@ interface Config$5<T extends TypesGeneric$3 = Types$4> {
|
|
|
8067
8458
|
mapping?: Rules<Rule<Mapping$1<T>>>;
|
|
8068
8459
|
/** Pre-processing rules applied to all events before mapping; modifies events in-place. */
|
|
8069
8460
|
policy?: Policy;
|
|
8070
|
-
/** Whether
|
|
8461
|
+
/** Whether a destination added after events were pushed receives the current run's earlier events (from `collector.queue`); defaults to true. Consent-denied events are queued regardless. */
|
|
8071
8462
|
queue?: boolean;
|
|
8072
8463
|
/** Defer destination initialization until these collector events fire (e.g., `['consent']`). */
|
|
8073
8464
|
require?: string[];
|
|
@@ -8479,46 +8870,70 @@ type OnFn<T extends TypesGeneric$3 = Types$4> = (type: Types$3, context: Context
|
|
|
8479
8870
|
/**
|
|
8480
8871
|
* Unified route grammar for Flow v4. A `Route` is one of:
|
|
8481
8872
|
* - a transformer ID string (`"redact"`)
|
|
8482
|
-
* - a sequence of routes (`["a", "b", "c"]
|
|
8483
|
-
* - a `RouteConfig
|
|
8873
|
+
* - a sequence of routes (`["a", "b", "c"]`, run in order)
|
|
8874
|
+
* - a `RouteConfig`: a gated / dispatching node.
|
|
8875
|
+
*
|
|
8876
|
+
* Exception: an array made only of route configs (no id, no nested array)
|
|
8877
|
+
* is an implicit `one`, first match wins (`[gateA, gateB]` runs at most one
|
|
8878
|
+
* of them). Write `{ one: [...] }` to say so, or add an id to make it a
|
|
8879
|
+
* sequence (`["x", gateA, gateB]` evaluates both gates in order).
|
|
8484
8880
|
*
|
|
8485
|
-
* `RouteConfig` is a disjoint union
|
|
8486
|
-
* `many`, or
|
|
8487
|
-
* sibling properties at the type level and `z.strictObject` at the
|
|
8488
|
-
* level.
|
|
8881
|
+
* `RouteConfig` is a disjoint union: set exactly one of `next`, `one`,
|
|
8882
|
+
* `many`, `stop`, or none of them (pure gate). The disjointness is enforced
|
|
8883
|
+
* by `never` sibling properties at the type level and `z.strictObject` at the
|
|
8884
|
+
* schema level.
|
|
8489
8885
|
*
|
|
8490
8886
|
* Operators:
|
|
8491
8887
|
* - `next`: single continuation.
|
|
8492
8888
|
* - `one`: first-match dispatch (walk entries, first whose match passes wins).
|
|
8493
|
-
* - `many`: all-match
|
|
8494
|
-
*
|
|
8495
|
-
*
|
|
8889
|
+
* - `many`: all-match fan-out. Every matching entry is its own copy of the
|
|
8890
|
+
* event that finishes the rest of the path on its own. Valid in every chain
|
|
8891
|
+
* field.
|
|
8892
|
+
* - `stop`: ends the running copy of the event (optionally gated by `match`).
|
|
8893
|
+
*
|
|
8894
|
+
* Sequences resolve lazily: a conditional segment is evaluated only when its
|
|
8895
|
+
* position is reached, so it sees what earlier steps wrote.
|
|
8496
8896
|
*/
|
|
8497
8897
|
type Route = string | Route[] | RouteConfig;
|
|
8498
|
-
type RouteConfig = RouteNextConfig | RouteOneConfig | RouteManyConfig | RouteGateConfig;
|
|
8898
|
+
type RouteConfig = RouteNextConfig | RouteOneConfig | RouteManyConfig | RouteStopConfig | RouteGateConfig;
|
|
8499
8899
|
interface RouteNextConfig {
|
|
8500
8900
|
match?: MatchExpression;
|
|
8501
8901
|
next: Route;
|
|
8502
8902
|
one?: never;
|
|
8503
8903
|
many?: never;
|
|
8904
|
+
stop?: never;
|
|
8504
8905
|
}
|
|
8505
8906
|
interface RouteOneConfig {
|
|
8506
8907
|
match?: MatchExpression;
|
|
8507
8908
|
one: Route[];
|
|
8508
8909
|
next?: never;
|
|
8509
8910
|
many?: never;
|
|
8911
|
+
stop?: never;
|
|
8510
8912
|
}
|
|
8511
8913
|
interface RouteManyConfig {
|
|
8512
8914
|
match?: MatchExpression;
|
|
8513
8915
|
many: Route[];
|
|
8514
8916
|
next?: never;
|
|
8515
8917
|
one?: never;
|
|
8918
|
+
stop?: never;
|
|
8919
|
+
}
|
|
8920
|
+
/**
|
|
8921
|
+
* Ends the running copy of the event. Without `match` the stop is
|
|
8922
|
+
* unconditional; with `match` a failing match falls through like a gate.
|
|
8923
|
+
*/
|
|
8924
|
+
interface RouteStopConfig {
|
|
8925
|
+
match?: MatchExpression;
|
|
8926
|
+
stop: true;
|
|
8927
|
+
next?: never;
|
|
8928
|
+
one?: never;
|
|
8929
|
+
many?: never;
|
|
8516
8930
|
}
|
|
8517
8931
|
interface RouteGateConfig {
|
|
8518
8932
|
match: MatchExpression;
|
|
8519
8933
|
next?: never;
|
|
8520
8934
|
one?: never;
|
|
8521
8935
|
many?: never;
|
|
8936
|
+
stop?: never;
|
|
8522
8937
|
}
|
|
8523
8938
|
/**
|
|
8524
8939
|
* Base environment interface for walkerOS transformers.
|
|
@@ -8685,6 +9100,12 @@ type InitTransformer<T extends TypesGeneric$2 = Types$2> = {
|
|
|
8685
9100
|
interface InitTransformers {
|
|
8686
9101
|
[transformerId: string]: InitTransformer<any>;
|
|
8687
9102
|
}
|
|
9103
|
+
/**
|
|
9104
|
+
* Active transformer instances registry.
|
|
9105
|
+
*/
|
|
9106
|
+
interface Transformers {
|
|
9107
|
+
[transformerId: string]: Instance$2;
|
|
9108
|
+
}
|
|
8688
9109
|
|
|
8689
9110
|
/**
|
|
8690
9111
|
* Base Env interface for dependency injection into sources.
|
|
@@ -9184,20 +9605,24 @@ type ValidateEvents = Record<string, Record<string, JsonSchema>>;
|
|
|
9184
9605
|
* Sources use `before` for consent-exempt pre-source preprocessing
|
|
9185
9606
|
* (decode, validate, authenticate raw input before the source.next chain).
|
|
9186
9607
|
*
|
|
9187
|
-
*
|
|
9608
|
+
* The collector uses `next` for its own chain: it runs once per completed
|
|
9609
|
+
* event, before the destination fan-out, so a `stop` there drops the event
|
|
9610
|
+
* for every destination.
|
|
9611
|
+
*
|
|
9612
|
+
* Destinations use `before` to connect to transformers (per-destination chain).
|
|
9188
9613
|
* Destinations use `next` for post-push processing.
|
|
9189
9614
|
*
|
|
9190
9615
|
* Transformers use `next` to chain to other transformers. The same transformer
|
|
9191
9616
|
* pool is shared by both pre-collector and post-collector chains.
|
|
9192
9617
|
*
|
|
9193
|
-
* The collector is
|
|
9194
|
-
*
|
|
9618
|
+
* The collector is never referenced as a target in connections. It sits
|
|
9619
|
+
* between the source chain and the destination chains automatically.
|
|
9195
9620
|
*
|
|
9196
|
-
* Circular `next` references are
|
|
9197
|
-
*
|
|
9621
|
+
* Circular member `next` references are cut at runtime by the chain
|
|
9622
|
+
* runner's cycle guard (`advanceChain`) and bounded by its path cap.
|
|
9198
9623
|
*
|
|
9199
9624
|
* ```
|
|
9200
|
-
* Source → [before → Preprocessing] → [next → Transformer chain] → Collector → [before → Transformer chain] → Destination → [next → Post-push]
|
|
9625
|
+
* Source → [before → Preprocessing] → [next → Transformer chain] → Collector → [collector.next → Transformer chain] → [before → Transformer chain] → Destination → [next → Post-push]
|
|
9201
9626
|
* ```
|
|
9202
9627
|
*
|
|
9203
9628
|
* @packageDocumentation
|
|
@@ -9244,9 +9669,10 @@ interface Flow {
|
|
|
9244
9669
|
/**
|
|
9245
9670
|
* Transformer configurations (event transformation).
|
|
9246
9671
|
*
|
|
9247
|
-
* Pre-collector (source.next)
|
|
9672
|
+
* Pre-collector (source.next), collector-level (collector.next, once per
|
|
9673
|
+
* event for every destination) or per destination (destination.before).
|
|
9248
9674
|
*
|
|
9249
|
-
* Key = unique transformer identifier (referenced by
|
|
9675
|
+
* Key = unique transformer identifier (referenced by any chain field)
|
|
9250
9676
|
* Value = transformer reference with package and config
|
|
9251
9677
|
*/
|
|
9252
9678
|
transformers?: Record<string, Flow.Transformer>;
|
|
@@ -9558,6 +9984,8 @@ declare namespace Flow {
|
|
|
9558
9984
|
next?: Route;
|
|
9559
9985
|
/** Cache configuration for this source. */
|
|
9560
9986
|
cache?: Cache<EventCacheRule>;
|
|
9987
|
+
/** Declarative store get/set. Paths resolve against `{ event, ingest }`. */
|
|
9988
|
+
state?: State | State[];
|
|
9561
9989
|
/**
|
|
9562
9990
|
* Source-level variables (highest priority in cascade).
|
|
9563
9991
|
* Overrides flow and root variables.
|
|
@@ -9623,6 +10051,8 @@ declare namespace Flow {
|
|
|
9623
10051
|
next?: Route;
|
|
9624
10052
|
/** Cache configuration for this destination. */
|
|
9625
10053
|
cache?: Cache<EventCacheRule>;
|
|
10054
|
+
/** Declarative store get/set. Paths resolve against `{ event, ingest }`. */
|
|
10055
|
+
state?: State | State[];
|
|
9626
10056
|
/** Destination-level variables (highest priority in cascade). */
|
|
9627
10057
|
variables?: Variables;
|
|
9628
10058
|
/**
|
|
@@ -9676,12 +10106,20 @@ declare namespace Flow {
|
|
|
9676
10106
|
* In a pre-collector chain (source.next), terminates at the collector.
|
|
9677
10107
|
* In a post-collector chain (destination.before), terminates at the destination.
|
|
9678
10108
|
* If omitted, the chain ends and control passes to the next pipeline stage.
|
|
9679
|
-
* Array values define an explicit chain
|
|
9680
|
-
* are
|
|
10109
|
+
* Array values define an explicit chain; a member's own `next` is
|
|
10110
|
+
* inserted right after it. Circular references are cut at runtime by the
|
|
10111
|
+
* chain runner's cycle guard (`advanceChain`).
|
|
9681
10112
|
*/
|
|
9682
10113
|
next?: Route;
|
|
9683
10114
|
/** Cache configuration for this transformer. */
|
|
9684
10115
|
cache?: Cache<EventCacheRule>;
|
|
10116
|
+
/** Declarative store get/set. Paths resolve against `{ event, ingest }`. */
|
|
10117
|
+
state?: State | State[];
|
|
10118
|
+
/**
|
|
10119
|
+
* Event mapping for a code-free transformer. The collector synthesizes a
|
|
10120
|
+
* push that applies it to the event (a rule with `ignore: true` drops it).
|
|
10121
|
+
*/
|
|
10122
|
+
mapping?: Config$7;
|
|
9685
10123
|
/** Transformer-level variables (highest priority in cascade). */
|
|
9686
10124
|
variables?: Variables;
|
|
9687
10125
|
/**
|
|
@@ -9881,4 +10319,56 @@ type StepOut = Flow.StepOut;
|
|
|
9881
10319
|
*/
|
|
9882
10320
|
declare function formatOut(out: StepOut): string;
|
|
9883
10321
|
|
|
9884
|
-
|
|
10322
|
+
/**
|
|
10323
|
+
* Shared route cases, exported from `@walkeros/core/dev` as `routeCases` so
|
|
10324
|
+
* every package tests its chain runner against the same cases. Each case is a start route, the member `next`s of the
|
|
10325
|
+
* transformers it can reach, a root set (every matcher passes for one root
|
|
10326
|
+
* and fails for another), and optional per-step ingest writes (what a step
|
|
10327
|
+
* leaves behind for the routes after it, e.g. `state` or a transformer).
|
|
10328
|
+
*
|
|
10329
|
+
* `expected[i]` lists, for `roots[i]`, the ids every copy visits in order;
|
|
10330
|
+
* a copy that ended on a stop ends with `STOP`.
|
|
10331
|
+
*
|
|
10332
|
+
* Reused by the chain tests, the resolver-vs-enumeration superset test and
|
|
10333
|
+
* the runtime/simulate parity tests.
|
|
10334
|
+
*/
|
|
10335
|
+
declare const STOP = "(stop)";
|
|
10336
|
+
interface RouteCase {
|
|
10337
|
+
name: string;
|
|
10338
|
+
spec: Route;
|
|
10339
|
+
nexts?: Record<string, Route>;
|
|
10340
|
+
sets?: Record<string, Record<string, unknown>>;
|
|
10341
|
+
roots: Root[];
|
|
10342
|
+
expected: string[][][];
|
|
10343
|
+
}
|
|
10344
|
+
declare function eq(key: string, value: string): MatchExpression;
|
|
10345
|
+
declare function makeTransformers(nexts?: Record<string, Route>): Transformers;
|
|
10346
|
+
declare const routeCases: RouteCase[];
|
|
10347
|
+
interface Copy {
|
|
10348
|
+
ids: string[];
|
|
10349
|
+
stopped: boolean;
|
|
10350
|
+
/** `from>to` for every hop, `from` empty at the head. */
|
|
10351
|
+
edges: string[];
|
|
10352
|
+
}
|
|
10353
|
+
/**
|
|
10354
|
+
* Tiny pure interpreter: loops `advanceChain`, records the ids each copy
|
|
10355
|
+
* visits, applies the per-step ingest writes, runs forks as independent
|
|
10356
|
+
* copies. No transformer executes.
|
|
10357
|
+
*/
|
|
10358
|
+
declare function interpret(routeCase: RouteCase, root: Root, onRun?: (id: string) => void): Copy[];
|
|
10359
|
+
/** Visited ids per copy, `STOP` appended to stopped copies. */
|
|
10360
|
+
declare function visits(copies: Copy[]): string[][];
|
|
10361
|
+
|
|
10362
|
+
type routeCases$1_Copy = Copy;
|
|
10363
|
+
type routeCases$1_RouteCase = RouteCase;
|
|
10364
|
+
declare const routeCases$1_STOP: typeof STOP;
|
|
10365
|
+
declare const routeCases$1_eq: typeof eq;
|
|
10366
|
+
declare const routeCases$1_interpret: typeof interpret;
|
|
10367
|
+
declare const routeCases$1_makeTransformers: typeof makeTransformers;
|
|
10368
|
+
declare const routeCases$1_routeCases: typeof routeCases;
|
|
10369
|
+
declare const routeCases$1_visits: typeof visits;
|
|
10370
|
+
declare namespace routeCases$1 {
|
|
10371
|
+
export { type routeCases$1_Copy as Copy, type routeCases$1_RouteCase as RouteCase, routeCases$1_STOP as STOP, routeCases$1_eq as eq, routeCases$1_interpret as interpret, routeCases$1_makeTransformers as makeTransformers, routeCases$1_routeCases as routeCases, routeCases$1_visits as visits };
|
|
10372
|
+
}
|
|
10373
|
+
|
|
10374
|
+
export { ClickIdEntrySchema, Flow, type JSONSchema, formatOut, mergeConfigSchema, resolveBaseSchema, routeCases$1 as routeCases, index as schemas, zodToSchema };
|