@oursprivacy/platform-sdk 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +17 -14
  3. package/client.d.mts +12 -9
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -9
  6. package/client.d.ts.map +1 -1
  7. package/client.js +6 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +6 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/allowed-events.d.mts +206 -5
  13. package/resources/allowed-events.d.mts.map +1 -1
  14. package/resources/allowed-events.d.ts +206 -5
  15. package/resources/allowed-events.d.ts.map +1 -1
  16. package/resources/allowed-events.js +48 -4
  17. package/resources/allowed-events.js.map +1 -1
  18. package/resources/allowed-events.mjs +48 -4
  19. package/resources/allowed-events.mjs.map +1 -1
  20. package/resources/consent-analytics.d.mts +57 -0
  21. package/resources/consent-analytics.d.mts.map +1 -0
  22. package/resources/consent-analytics.d.ts +57 -0
  23. package/resources/consent-analytics.d.ts.map +1 -0
  24. package/resources/consent-analytics.js +22 -0
  25. package/resources/consent-analytics.js.map +1 -0
  26. package/resources/consent-analytics.mjs +18 -0
  27. package/resources/consent-analytics.mjs.map +1 -0
  28. package/resources/consent-settings.d.mts +198 -1
  29. package/resources/consent-settings.d.mts.map +1 -1
  30. package/resources/consent-settings.d.ts +198 -1
  31. package/resources/consent-settings.d.ts.map +1 -1
  32. package/resources/consent-settings.js +40 -0
  33. package/resources/consent-settings.js.map +1 -1
  34. package/resources/consent-settings.mjs +40 -0
  35. package/resources/consent-settings.mjs.map +1 -1
  36. package/resources/data-governance.d.mts +793 -0
  37. package/resources/data-governance.d.mts.map +1 -0
  38. package/resources/data-governance.d.ts +793 -0
  39. package/resources/data-governance.d.ts.map +1 -0
  40. package/resources/data-governance.js +70 -0
  41. package/resources/data-governance.js.map +1 -0
  42. package/resources/data-governance.mjs +66 -0
  43. package/resources/data-governance.mjs.map +1 -0
  44. package/resources/default-mappings.d.mts +60 -3
  45. package/resources/default-mappings.d.mts.map +1 -1
  46. package/resources/default-mappings.d.ts +60 -3
  47. package/resources/default-mappings.d.ts.map +1 -1
  48. package/resources/destinations.d.mts +7 -7
  49. package/resources/destinations.d.mts.map +1 -1
  50. package/resources/destinations.d.ts +7 -7
  51. package/resources/destinations.d.ts.map +1 -1
  52. package/resources/index.d.mts +5 -4
  53. package/resources/index.d.mts.map +1 -1
  54. package/resources/index.d.ts +5 -4
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +5 -3
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +2 -1
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/mappings.d.mts +174 -15
  61. package/resources/mappings.d.mts.map +1 -1
  62. package/resources/mappings.d.ts +174 -15
  63. package/resources/mappings.d.ts.map +1 -1
  64. package/resources/sources.d.mts +213 -45
  65. package/resources/sources.d.mts.map +1 -1
  66. package/resources/sources.d.ts +213 -45
  67. package/resources/sources.d.ts.map +1 -1
  68. package/resources/sources.js +18 -7
  69. package/resources/sources.js.map +1 -1
  70. package/resources/sources.mjs +18 -7
  71. package/resources/sources.mjs.map +1 -1
  72. package/src/client.ts +60 -27
  73. package/src/resources/allowed-events.ts +232 -4
  74. package/src/resources/consent-analytics.ts +76 -0
  75. package/src/resources/consent-settings.ts +272 -0
  76. package/src/resources/data-governance.ts +1091 -0
  77. package/src/resources/default-mappings.ts +60 -3
  78. package/src/resources/destinations.ts +9 -2
  79. package/src/resources/index.ts +27 -12
  80. package/src/resources/mappings.ts +174 -15
  81. package/src/resources/sources.ts +337 -88
  82. package/src/version.ts +1 -1
  83. package/version.d.mts +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.js +1 -1
  86. package/version.mjs +1 -1
  87. package/resources/global-dispatch-centers.d.mts +0 -349
  88. package/resources/global-dispatch-centers.d.mts.map +0 -1
  89. package/resources/global-dispatch-centers.d.ts +0 -349
  90. package/resources/global-dispatch-centers.d.ts.map +0 -1
  91. package/resources/global-dispatch-centers.js +0 -43
  92. package/resources/global-dispatch-centers.js.map +0 -1
  93. package/resources/global-dispatch-centers.mjs +0 -39
  94. package/resources/global-dispatch-centers.mjs.map +0 -1
  95. package/src/resources/global-dispatch-centers.ts +0 -458
@@ -61,8 +61,11 @@ export namespace DefaultMappingListResponse {
61
61
  /**
62
62
  * Condition tree gating when this mapping fires. A node is either a leaf
63
63
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
64
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
64
+ * themselves logic nodes, so trees nest arbitrarily.
65
+ *
66
+ * Example leaf:
65
67
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
68
+ *
66
69
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
67
70
  */
68
71
  logic?: unknown;
@@ -82,8 +85,20 @@ export namespace DefaultMappingListResponse {
82
85
 
83
86
  export namespace Entity {
84
87
  export interface Mapping {
88
+ /**
89
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
90
+ * template syntax to substitute values from the event/visitor record:
91
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
92
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
93
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
94
+ * like `$event.event_properties.value`.
95
+ */
85
96
  map: string;
86
97
 
98
+ /**
99
+ * Destination-side field name. Comes from the destination template — discover the
100
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
101
+ */
87
102
  property: string;
88
103
 
89
104
  modification?:
@@ -135,8 +150,11 @@ export interface DefaultMappingRetrieveResponse {
135
150
  /**
136
151
  * Condition tree gating when this mapping fires. A node is either a leaf
137
152
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
138
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
153
+ * themselves logic nodes, so trees nest arbitrarily.
154
+ *
155
+ * Example leaf:
139
156
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
157
+ *
140
158
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
141
159
  */
142
160
  logic?: unknown;
@@ -156,8 +174,20 @@ export interface DefaultMappingRetrieveResponse {
156
174
 
157
175
  export namespace DefaultMappingRetrieveResponse {
158
176
  export interface Mapping {
177
+ /**
178
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
179
+ * template syntax to substitute values from the event/visitor record:
180
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
181
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
182
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
183
+ * like `$event.event_properties.value`.
184
+ */
159
185
  map: string;
160
186
 
187
+ /**
188
+ * Destination-side field name. Comes from the destination template — discover the
189
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
190
+ */
161
191
  property: string;
162
192
 
163
193
  modification?:
@@ -208,8 +238,11 @@ export interface DefaultMappingReplaceResponse {
208
238
  /**
209
239
  * Condition tree gating when this mapping fires. A node is either a leaf
210
240
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
211
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
241
+ * themselves logic nodes, so trees nest arbitrarily.
242
+ *
243
+ * Example leaf:
212
244
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
245
+ *
213
246
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
214
247
  */
215
248
  logic?: unknown;
@@ -229,8 +262,20 @@ export interface DefaultMappingReplaceResponse {
229
262
 
230
263
  export namespace DefaultMappingReplaceResponse {
231
264
  export interface Mapping {
265
+ /**
266
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
267
+ * template syntax to substitute values from the event/visitor record:
268
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
269
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
270
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
271
+ * like `$event.event_properties.value`.
272
+ */
232
273
  map: string;
233
274
 
275
+ /**
276
+ * Destination-side field name. Comes from the destination template — discover the
277
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
278
+ */
234
279
  property: string;
235
280
 
236
281
  modification?:
@@ -284,8 +329,20 @@ export interface DefaultMappingReplaceParams {
284
329
 
285
330
  export namespace DefaultMappingReplaceParams {
286
331
  export interface Mapping {
332
+ /**
333
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
334
+ * template syntax to substitute values from the event/visitor record:
335
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
336
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
337
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
338
+ * like `$event.event_properties.value`.
339
+ */
287
340
  map: string;
288
341
 
342
+ /**
343
+ * Destination-side field name. Comes from the destination template — discover the
344
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
345
+ */
289
346
  property: string;
290
347
 
291
348
  modification?:
@@ -150,6 +150,7 @@ export interface DestinationListResponse {
150
150
  | 'Tatari'
151
151
  | 'TheTradeDesk'
152
152
  | 'TikTok'
153
+ | 'UniversalAds'
153
154
  | 'VWO'
154
155
  | 'Viant'
155
156
  | 'Vibe'
@@ -249,6 +250,7 @@ export interface DestinationCreateResponse {
249
250
  | 'Tatari'
250
251
  | 'TheTradeDesk'
251
252
  | 'TikTok'
253
+ | 'UniversalAds'
252
254
  | 'VWO'
253
255
  | 'Viant'
254
256
  | 'Vibe'
@@ -348,6 +350,7 @@ export interface DestinationRetrieveResponse {
348
350
  | 'Tatari'
349
351
  | 'TheTradeDesk'
350
352
  | 'TikTok'
353
+ | 'UniversalAds'
351
354
  | 'VWO'
352
355
  | 'Viant'
353
356
  | 'Vibe'
@@ -447,6 +450,7 @@ export interface DestinationUpdateResponse {
447
450
  | 'Tatari'
448
451
  | 'TheTradeDesk'
449
452
  | 'TikTok'
453
+ | 'UniversalAds'
450
454
  | 'VWO'
451
455
  | 'Viant'
452
456
  | 'Vibe'
@@ -540,7 +544,8 @@ export namespace DestinationTypesResponse {
540
544
  | 'RokuCAPI'
541
545
  | 'Everflow'
542
546
  | 'BeeswaxPostback'
543
- | 'AdobeAnalytics';
547
+ | 'AdobeAnalytics'
548
+ | 'UniversalAds';
544
549
 
545
550
  capabilities: Entity.Capabilities;
546
551
 
@@ -718,6 +723,7 @@ export interface DestinationListParams extends CursorParams {
718
723
  | 'Tatari'
719
724
  | 'TheTradeDesk'
720
725
  | 'TikTok'
726
+ | 'UniversalAds'
721
727
  | 'VWO'
722
728
  | 'Viant'
723
729
  | 'Vibe'
@@ -799,7 +805,8 @@ export interface DestinationCreateParams {
799
805
  | 'RokuCAPI'
800
806
  | 'Everflow'
801
807
  | 'BeeswaxPostback'
802
- | 'AdobeAnalytics';
808
+ | 'AdobeAnalytics'
809
+ | 'UniversalAds';
803
810
 
804
811
  name?: string | null;
805
812
 
@@ -5,9 +5,16 @@ export {
5
5
  type AllowedEventListResponse,
6
6
  type AllowedEventCreateResponse,
7
7
  type AllowedEventRetrieveResponse,
8
+ type AllowedEventUpdateResponse,
8
9
  type AllowedEventDeleteResponse,
9
10
  type AllowedEventCreateParams,
11
+ type AllowedEventUpdateParams,
10
12
  } from './allowed-events';
13
+ export {
14
+ ConsentAnalytics,
15
+ type ConsentAnalyticsListResponse,
16
+ type ConsentAnalyticsListParams,
17
+ } from './consent-analytics';
11
18
  export {
12
19
  ConsentSettings,
13
20
  type ConsentSettingListResponse,
@@ -16,9 +23,27 @@ export {
16
23
  type ConsentSettingReplaceResponse,
17
24
  type ConsentSettingUpdateResponse,
18
25
  type ConsentSettingDeleteResponse,
26
+ type ConsentSettingAnalyticsResponse,
27
+ type ConsentSettingPageAnalysisResponse,
28
+ type ConsentSettingAnalyticsByRegionResponse,
19
29
  type ConsentSettingReplaceParams,
20
30
  type ConsentSettingUpdateParams,
31
+ type ConsentSettingAnalyticsParams,
32
+ type ConsentSettingPageAnalysisParams,
33
+ type ConsentSettingAnalyticsByRegionParams,
21
34
  } from './consent-settings';
35
+ export {
36
+ DataGovernance,
37
+ type DataGovernanceListResponse,
38
+ type DataGovernanceCreateResponse,
39
+ type DataGovernanceRetrieveResponse,
40
+ type DataGovernanceUpdateResponse,
41
+ type DataGovernanceDeleteResponse,
42
+ type DataGovernanceListParams,
43
+ type DataGovernanceCreateParams,
44
+ type DataGovernanceUpdateParams,
45
+ type DataGovernanceListResponsesCursor,
46
+ } from './data-governance';
22
47
  export {
23
48
  DefaultMappings,
24
49
  type DefaultMappingListResponse,
@@ -87,18 +112,6 @@ export {
87
112
  type ExperimentSessionReplaysParams,
88
113
  type ExperimentListResponsesCursor,
89
114
  } from './experiments';
90
- export {
91
- GlobalDispatchCenters,
92
- type GlobalDispatchCenterListResponse,
93
- type GlobalDispatchCenterCreateResponse,
94
- type GlobalDispatchCenterRetrieveResponse,
95
- type GlobalDispatchCenterUpdateResponse,
96
- type GlobalDispatchCenterDeleteResponse,
97
- type GlobalDispatchCenterListParams,
98
- type GlobalDispatchCenterCreateParams,
99
- type GlobalDispatchCenterUpdateParams,
100
- type GlobalDispatchCenterListResponsesCursor,
101
- } from './global-dispatch-centers';
102
115
  export {
103
116
  HeatmapPages,
104
117
  type HeatmapPageListResponse,
@@ -156,8 +169,10 @@ export {
156
169
  type SourceUpdateResponse,
157
170
  type SourceDeleteResponse,
158
171
  type SourceTokensResponse,
172
+ type SourceListParams,
159
173
  type SourceCreateParams,
160
174
  type SourceUpdateParams,
175
+ type SourceListResponsesCursor,
161
176
  } from './sources';
162
177
  export {
163
178
  Versions,
@@ -135,8 +135,11 @@ export interface MappingListResponse {
135
135
  /**
136
136
  * Condition tree gating when this mapping fires. A node is either a leaf
137
137
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
138
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
138
+ * themselves logic nodes, so trees nest arbitrarily.
139
+ *
140
+ * Example leaf:
139
141
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
142
+ *
140
143
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
141
144
  */
142
145
  logic?: unknown;
@@ -156,8 +159,20 @@ export interface MappingListResponse {
156
159
 
157
160
  export namespace MappingListResponse {
158
161
  export interface Mapping {
162
+ /**
163
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
164
+ * template syntax to substitute values from the event/visitor record:
165
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
166
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
167
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
168
+ * like `$event.event_properties.value`.
169
+ */
159
170
  map: string;
160
171
 
172
+ /**
173
+ * Destination-side field name. Comes from the destination template — discover the
174
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
175
+ */
161
176
  property: string;
162
177
 
163
178
  modification?:
@@ -208,8 +223,11 @@ export interface MappingCreateResponse {
208
223
  /**
209
224
  * Condition tree gating when this mapping fires. A node is either a leaf
210
225
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
211
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
226
+ * themselves logic nodes, so trees nest arbitrarily.
227
+ *
228
+ * Example leaf:
212
229
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
230
+ *
213
231
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
214
232
  */
215
233
  logic?: unknown;
@@ -229,8 +247,20 @@ export interface MappingCreateResponse {
229
247
 
230
248
  export namespace MappingCreateResponse {
231
249
  export interface Mapping {
250
+ /**
251
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
252
+ * template syntax to substitute values from the event/visitor record:
253
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
254
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
255
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
256
+ * like `$event.event_properties.value`.
257
+ */
232
258
  map: string;
233
259
 
260
+ /**
261
+ * Destination-side field name. Comes from the destination template — discover the
262
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
263
+ */
234
264
  property: string;
235
265
 
236
266
  modification?:
@@ -281,8 +311,11 @@ export interface MappingRetrieveResponse {
281
311
  /**
282
312
  * Condition tree gating when this mapping fires. A node is either a leaf
283
313
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
284
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
314
+ * themselves logic nodes, so trees nest arbitrarily.
315
+ *
316
+ * Example leaf:
285
317
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
318
+ *
286
319
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
287
320
  */
288
321
  logic?: unknown;
@@ -302,8 +335,20 @@ export interface MappingRetrieveResponse {
302
335
 
303
336
  export namespace MappingRetrieveResponse {
304
337
  export interface Mapping {
338
+ /**
339
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
340
+ * template syntax to substitute values from the event/visitor record:
341
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
342
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
343
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
344
+ * like `$event.event_properties.value`.
345
+ */
305
346
  map: string;
306
347
 
348
+ /**
349
+ * Destination-side field name. Comes from the destination template — discover the
350
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
351
+ */
307
352
  property: string;
308
353
 
309
354
  modification?:
@@ -354,8 +399,11 @@ export interface MappingUpdateResponse {
354
399
  /**
355
400
  * Condition tree gating when this mapping fires. A node is either a leaf
356
401
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
357
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
402
+ * themselves logic nodes, so trees nest arbitrarily.
403
+ *
404
+ * Example leaf:
358
405
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
406
+ *
359
407
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
360
408
  */
361
409
  logic?: unknown;
@@ -375,8 +423,20 @@ export interface MappingUpdateResponse {
375
423
 
376
424
  export namespace MappingUpdateResponse {
377
425
  export interface Mapping {
426
+ /**
427
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
428
+ * template syntax to substitute values from the event/visitor record:
429
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
430
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
431
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
432
+ * like `$event.event_properties.value`.
433
+ */
378
434
  map: string;
379
435
 
436
+ /**
437
+ * Destination-side field name. Comes from the destination template — discover the
438
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
439
+ */
380
440
  property: string;
381
441
 
382
442
  modification?:
@@ -434,8 +494,11 @@ export namespace MappingReorderResponse {
434
494
  /**
435
495
  * Condition tree gating when this mapping fires. A node is either a leaf
436
496
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
437
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
497
+ * themselves logic nodes, so trees nest arbitrarily.
498
+ *
499
+ * Example leaf:
438
500
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
501
+ *
439
502
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
440
503
  */
441
504
  logic?: unknown;
@@ -455,8 +518,20 @@ export namespace MappingReorderResponse {
455
518
 
456
519
  export namespace Entity {
457
520
  export interface Mapping {
521
+ /**
522
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
523
+ * template syntax to substitute values from the event/visitor record:
524
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
525
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
526
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
527
+ * like `$event.event_properties.value`.
528
+ */
458
529
  map: string;
459
530
 
531
+ /**
532
+ * Destination-side field name. Comes from the destination template — discover the
533
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
534
+ */
460
535
  property: string;
461
536
 
462
537
  modification?:
@@ -821,8 +896,11 @@ export interface MappingCreateParams {
821
896
  /**
822
897
  * Condition tree gating when this mapping fires. A node is either a leaf
823
898
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
824
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
899
+ * themselves logic nodes, so trees nest arbitrarily.
900
+ *
901
+ * Example leaf:
825
902
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
903
+ *
826
904
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
827
905
  */
828
906
  logic?: MappingCreateParams.Logic;
@@ -851,31 +929,46 @@ export namespace MappingCreateParams {
851
929
  /**
852
930
  * Condition tree gating when this mapping fires. A node is either a leaf
853
931
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
854
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
932
+ * themselves logic nodes, so trees nest arbitrarily.
933
+ *
934
+ * Example leaf:
855
935
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
936
+ *
856
937
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
857
938
  */
858
939
  export interface Logic {
859
940
  /**
860
- * All child nodes must match. Each child is a `MappingLogic` node.
941
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
942
+ * or combinator).
861
943
  */
862
944
  AND?: Array<unknown> | null;
863
945
 
864
946
  condition?: Logic.Condition;
865
947
 
866
948
  /**
867
- * Negates a single child `MappingLogic` node.
949
+ * Negates a single child logic node.
868
950
  */
869
951
  NOT?: unknown;
870
952
 
871
953
  /**
872
- * Any child node must match. Each child is a `MappingLogic` node.
954
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
955
+ * or combinator).
873
956
  */
874
957
  OR?: Array<unknown> | null;
875
958
  }
876
959
 
877
960
  export namespace Logic {
878
961
  export interface Condition {
962
+ /**
963
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
964
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
965
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
966
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
967
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
968
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
969
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
970
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
971
+ */
879
972
  operator:
880
973
  | 'Is'
881
974
  | 'IsNot'
@@ -909,15 +1002,39 @@ export namespace MappingCreateParams {
909
1002
  | 'DoesNotMatchRegex'
910
1003
  | 'DoesNotMatchRegexIgnoreCase';
911
1004
 
1005
+ /**
1006
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
1007
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
1008
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
1009
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
1010
+ * and would be compared as a literal string.
1011
+ */
912
1012
  property: string;
913
1013
 
1014
+ /**
1015
+ * String compared against the resolved property. Operators that take no value
1016
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
1017
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
1018
+ */
914
1019
  value: string;
915
1020
  }
916
1021
  }
917
1022
 
918
1023
  export interface Mapping {
1024
+ /**
1025
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
1026
+ * template syntax to substitute values from the event/visitor record:
1027
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
1028
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
1029
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
1030
+ * like `$event.event_properties.value`.
1031
+ */
919
1032
  map: string;
920
1033
 
1034
+ /**
1035
+ * Destination-side field name. Comes from the destination template — discover the
1036
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
1037
+ */
921
1038
  property: string;
922
1039
 
923
1040
  modification?:
@@ -964,8 +1081,11 @@ export interface MappingUpdateParams {
964
1081
  /**
965
1082
  * Condition tree gating when this mapping fires. A node is either a leaf
966
1083
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
967
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
1084
+ * themselves logic nodes, so trees nest arbitrarily.
1085
+ *
1086
+ * Example leaf:
968
1087
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
1088
+ *
969
1089
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
970
1090
  */
971
1091
  logic?: MappingUpdateParams.Logic;
@@ -979,31 +1099,46 @@ export namespace MappingUpdateParams {
979
1099
  /**
980
1100
  * Condition tree gating when this mapping fires. A node is either a leaf
981
1101
  * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
982
- * themselves `MappingLogic` nodes, so trees nest arbitrarily. Example leaf:
1102
+ * themselves logic nodes, so trees nest arbitrarily.
1103
+ *
1104
+ * Example leaf:
983
1105
  * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
1106
+ *
984
1107
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
985
1108
  */
986
1109
  export interface Logic {
987
1110
  /**
988
- * All child nodes must match. Each child is a `MappingLogic` node.
1111
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
1112
+ * or combinator).
989
1113
  */
990
1114
  AND?: Array<unknown> | null;
991
1115
 
992
1116
  condition?: Logic.Condition;
993
1117
 
994
1118
  /**
995
- * Negates a single child `MappingLogic` node.
1119
+ * Negates a single child logic node.
996
1120
  */
997
1121
  NOT?: unknown;
998
1122
 
999
1123
  /**
1000
- * Any child node must match. Each child is a `MappingLogic` node.
1124
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
1125
+ * or combinator).
1001
1126
  */
1002
1127
  OR?: Array<unknown> | null;
1003
1128
  }
1004
1129
 
1005
1130
  export namespace Logic {
1006
1131
  export interface Condition {
1132
+ /**
1133
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
1134
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
1135
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
1136
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
1137
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
1138
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
1139
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
1140
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
1141
+ */
1007
1142
  operator:
1008
1143
  | 'Is'
1009
1144
  | 'IsNot'
@@ -1037,15 +1172,39 @@ export namespace MappingUpdateParams {
1037
1172
  | 'DoesNotMatchRegex'
1038
1173
  | 'DoesNotMatchRegexIgnoreCase';
1039
1174
 
1175
+ /**
1176
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
1177
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
1178
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
1179
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
1180
+ * and would be compared as a literal string.
1181
+ */
1040
1182
  property: string;
1041
1183
 
1184
+ /**
1185
+ * String compared against the resolved property. Operators that take no value
1186
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
1187
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
1188
+ */
1042
1189
  value: string;
1043
1190
  }
1044
1191
  }
1045
1192
 
1046
1193
  export interface Mapping {
1194
+ /**
1195
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
1196
+ * template syntax to substitute values from the event/visitor record:
1197
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
1198
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
1199
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
1200
+ * like `$event.event_properties.value`.
1201
+ */
1047
1202
  map: string;
1048
1203
 
1204
+ /**
1205
+ * Destination-side field name. Comes from the destination template — discover the
1206
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
1207
+ */
1049
1208
  property: string;
1050
1209
 
1051
1210
  modification?: