@oursprivacy/platform-sdk 1.52.0 → 1.54.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 (376) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/resources/allowed-events.d.mts +9 -7
  12. package/resources/allowed-events.d.mts.map +1 -1
  13. package/resources/allowed-events.d.ts +9 -7
  14. package/resources/allowed-events.d.ts.map +1 -1
  15. package/resources/allowed-events.js +9 -7
  16. package/resources/allowed-events.js.map +1 -1
  17. package/resources/allowed-events.mjs +9 -7
  18. package/resources/allowed-events.mjs.map +1 -1
  19. package/resources/analytics.d.mts +4 -2
  20. package/resources/analytics.d.mts.map +1 -1
  21. package/resources/analytics.d.ts +4 -2
  22. package/resources/analytics.d.ts.map +1 -1
  23. package/resources/analytics.js +4 -2
  24. package/resources/analytics.js.map +1 -1
  25. package/resources/analytics.mjs +4 -2
  26. package/resources/analytics.mjs.map +1 -1
  27. package/resources/attribution.d.mts +8 -5
  28. package/resources/attribution.d.mts.map +1 -1
  29. package/resources/attribution.d.ts +8 -5
  30. package/resources/attribution.d.ts.map +1 -1
  31. package/resources/attribution.js +8 -5
  32. package/resources/attribution.js.map +1 -1
  33. package/resources/attribution.mjs +8 -5
  34. package/resources/attribution.mjs.map +1 -1
  35. package/resources/audience-conversion-reports.d.mts +11 -9
  36. package/resources/audience-conversion-reports.d.mts.map +1 -1
  37. package/resources/audience-conversion-reports.d.ts +11 -9
  38. package/resources/audience-conversion-reports.d.ts.map +1 -1
  39. package/resources/audience-conversion-reports.js +11 -9
  40. package/resources/audience-conversion-reports.js.map +1 -1
  41. package/resources/audience-conversion-reports.mjs +11 -9
  42. package/resources/audience-conversion-reports.mjs.map +1 -1
  43. package/resources/consent-analytics.d.mts +2 -1
  44. package/resources/consent-analytics.d.mts.map +1 -1
  45. package/resources/consent-analytics.d.ts +2 -1
  46. package/resources/consent-analytics.d.ts.map +1 -1
  47. package/resources/consent-analytics.js +2 -1
  48. package/resources/consent-analytics.js.map +1 -1
  49. package/resources/consent-analytics.mjs +2 -1
  50. package/resources/consent-analytics.mjs.map +1 -1
  51. package/resources/consent-settings.d.mts +6238 -650
  52. package/resources/consent-settings.d.mts.map +1 -1
  53. package/resources/consent-settings.d.ts +6238 -650
  54. package/resources/consent-settings.d.ts.map +1 -1
  55. package/resources/consent-settings.js +72 -34
  56. package/resources/consent-settings.js.map +1 -1
  57. package/resources/consent-settings.mjs +72 -34
  58. package/resources/consent-settings.mjs.map +1 -1
  59. package/resources/conversion-journey-summaries.d.mts +10 -5
  60. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  61. package/resources/conversion-journey-summaries.d.ts +10 -5
  62. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  63. package/resources/conversion-journey-summaries.js +10 -5
  64. package/resources/conversion-journey-summaries.js.map +1 -1
  65. package/resources/conversion-journey-summaries.mjs +10 -5
  66. package/resources/conversion-journey-summaries.mjs.map +1 -1
  67. package/resources/custom-domains.d.mts +301 -0
  68. package/resources/custom-domains.d.mts.map +1 -0
  69. package/resources/custom-domains.d.ts +301 -0
  70. package/resources/custom-domains.d.ts.map +1 -0
  71. package/resources/custom-domains.js +55 -0
  72. package/resources/custom-domains.js.map +1 -0
  73. package/resources/custom-domains.mjs +51 -0
  74. package/resources/custom-domains.mjs.map +1 -0
  75. package/resources/data-governance.d.mts +83 -21
  76. package/resources/data-governance.d.mts.map +1 -1
  77. package/resources/data-governance.d.ts +83 -21
  78. package/resources/data-governance.d.ts.map +1 -1
  79. package/resources/data-governance.js +8 -6
  80. package/resources/data-governance.js.map +1 -1
  81. package/resources/data-governance.mjs +8 -6
  82. package/resources/data-governance.mjs.map +1 -1
  83. package/resources/default-mappings.d.mts +213 -8
  84. package/resources/default-mappings.d.mts.map +1 -1
  85. package/resources/default-mappings.d.ts +213 -8
  86. package/resources/default-mappings.d.ts.map +1 -1
  87. package/resources/default-mappings.js +6 -5
  88. package/resources/default-mappings.js.map +1 -1
  89. package/resources/default-mappings.mjs +6 -5
  90. package/resources/default-mappings.mjs.map +1 -1
  91. package/resources/destinations.d.mts +45 -20
  92. package/resources/destinations.d.mts.map +1 -1
  93. package/resources/destinations.d.ts +45 -20
  94. package/resources/destinations.d.ts.map +1 -1
  95. package/resources/destinations.js +12 -7
  96. package/resources/destinations.js.map +1 -1
  97. package/resources/destinations.mjs +12 -7
  98. package/resources/destinations.mjs.map +1 -1
  99. package/resources/experiment-settings.d.mts +9 -6
  100. package/resources/experiment-settings.d.mts.map +1 -1
  101. package/resources/experiment-settings.d.ts +9 -6
  102. package/resources/experiment-settings.d.ts.map +1 -1
  103. package/resources/experiment-settings.js +9 -6
  104. package/resources/experiment-settings.js.map +1 -1
  105. package/resources/experiment-settings.mjs +9 -6
  106. package/resources/experiment-settings.mjs.map +1 -1
  107. package/resources/experiment-variants.d.mts +126 -19
  108. package/resources/experiment-variants.d.mts.map +1 -1
  109. package/resources/experiment-variants.d.ts +126 -19
  110. package/resources/experiment-variants.d.ts.map +1 -1
  111. package/resources/experiment-variants.js +9 -5
  112. package/resources/experiment-variants.js.map +1 -1
  113. package/resources/experiment-variants.mjs +9 -5
  114. package/resources/experiment-variants.mjs.map +1 -1
  115. package/resources/experiments.d.mts +4009 -272
  116. package/resources/experiments.d.mts.map +1 -1
  117. package/resources/experiments.d.ts +4009 -272
  118. package/resources/experiments.d.ts.map +1 -1
  119. package/resources/experiments.js +30 -19
  120. package/resources/experiments.js.map +1 -1
  121. package/resources/experiments.mjs +30 -19
  122. package/resources/experiments.mjs.map +1 -1
  123. package/resources/funnels.d.mts +659 -17
  124. package/resources/funnels.d.mts.map +1 -1
  125. package/resources/funnels.d.ts +659 -17
  126. package/resources/funnels.d.ts.map +1 -1
  127. package/resources/funnels.js +11 -10
  128. package/resources/funnels.js.map +1 -1
  129. package/resources/funnels.mjs +11 -10
  130. package/resources/funnels.mjs.map +1 -1
  131. package/resources/heatmap-pages.d.mts +3 -2
  132. package/resources/heatmap-pages.d.mts.map +1 -1
  133. package/resources/heatmap-pages.d.ts +3 -2
  134. package/resources/heatmap-pages.d.ts.map +1 -1
  135. package/resources/heatmap-pages.js +3 -2
  136. package/resources/heatmap-pages.js.map +1 -1
  137. package/resources/heatmap-pages.mjs +3 -2
  138. package/resources/heatmap-pages.mjs.map +1 -1
  139. package/resources/index.d.mts +5 -3
  140. package/resources/index.d.mts.map +1 -1
  141. package/resources/index.d.ts +5 -3
  142. package/resources/index.d.ts.map +1 -1
  143. package/resources/index.js +5 -1
  144. package/resources/index.js.map +1 -1
  145. package/resources/index.mjs +2 -0
  146. package/resources/index.mjs.map +1 -1
  147. package/resources/journey-flows.d.mts +597 -28
  148. package/resources/journey-flows.d.mts.map +1 -1
  149. package/resources/journey-flows.d.ts +597 -28
  150. package/resources/journey-flows.d.ts.map +1 -1
  151. package/resources/journey-flows.js +17 -12
  152. package/resources/journey-flows.js.map +1 -1
  153. package/resources/journey-flows.mjs +17 -12
  154. package/resources/journey-flows.mjs.map +1 -1
  155. package/resources/locations.d.mts +31 -10
  156. package/resources/locations.d.mts.map +1 -1
  157. package/resources/locations.d.ts +31 -10
  158. package/resources/locations.d.ts.map +1 -1
  159. package/resources/locations.js +6 -5
  160. package/resources/locations.js.map +1 -1
  161. package/resources/locations.mjs +6 -5
  162. package/resources/locations.mjs.map +1 -1
  163. package/resources/mappings.d.mts +558 -24
  164. package/resources/mappings.d.mts.map +1 -1
  165. package/resources/mappings.d.ts +558 -24
  166. package/resources/mappings.d.ts.map +1 -1
  167. package/resources/mappings.js +40 -12
  168. package/resources/mappings.js.map +1 -1
  169. package/resources/mappings.mjs +40 -12
  170. package/resources/mappings.mjs.map +1 -1
  171. package/resources/me.d.mts +29 -0
  172. package/resources/me.d.mts.map +1 -0
  173. package/resources/me.d.ts +29 -0
  174. package/resources/me.d.ts.map +1 -0
  175. package/resources/me.js +17 -0
  176. package/resources/me.js.map +1 -0
  177. package/resources/me.mjs +13 -0
  178. package/resources/me.mjs.map +1 -0
  179. package/resources/personalization-properties.d.mts +10 -7
  180. package/resources/personalization-properties.d.mts.map +1 -1
  181. package/resources/personalization-properties.d.ts +10 -7
  182. package/resources/personalization-properties.d.ts.map +1 -1
  183. package/resources/personalization-properties.js +10 -7
  184. package/resources/personalization-properties.js.map +1 -1
  185. package/resources/personalization-properties.mjs +10 -7
  186. package/resources/personalization-properties.mjs.map +1 -1
  187. package/resources/replay-settings.d.mts +126 -9
  188. package/resources/replay-settings.d.mts.map +1 -1
  189. package/resources/replay-settings.d.ts +126 -9
  190. package/resources/replay-settings.d.ts.map +1 -1
  191. package/resources/replay-settings.js +9 -6
  192. package/resources/replay-settings.js.map +1 -1
  193. package/resources/replay-settings.mjs +9 -6
  194. package/resources/replay-settings.mjs.map +1 -1
  195. package/resources/session-replays.d.mts +9 -2
  196. package/resources/session-replays.d.mts.map +1 -1
  197. package/resources/session-replays.d.ts +9 -2
  198. package/resources/session-replays.d.ts.map +1 -1
  199. package/resources/session-replays.js +4 -2
  200. package/resources/session-replays.js.map +1 -1
  201. package/resources/session-replays.mjs +4 -2
  202. package/resources/session-replays.mjs.map +1 -1
  203. package/resources/short-links.d.mts +733 -17
  204. package/resources/short-links.d.mts.map +1 -1
  205. package/resources/short-links.d.ts +733 -17
  206. package/resources/short-links.d.ts.map +1 -1
  207. package/resources/short-links.js +11 -7
  208. package/resources/short-links.js.map +1 -1
  209. package/resources/short-links.mjs +11 -7
  210. package/resources/short-links.mjs.map +1 -1
  211. package/resources/sources.d.mts +98 -17
  212. package/resources/sources.d.mts.map +1 -1
  213. package/resources/sources.d.ts +98 -17
  214. package/resources/sources.d.ts.map +1 -1
  215. package/resources/sources.js +12 -6
  216. package/resources/sources.js.map +1 -1
  217. package/resources/sources.mjs +12 -6
  218. package/resources/sources.mjs.map +1 -1
  219. package/resources/tag-manager-asset-folders.d.mts +2 -1
  220. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  221. package/resources/tag-manager-asset-folders.d.ts +2 -1
  222. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  223. package/resources/tag-manager-asset-folders.js +2 -1
  224. package/resources/tag-manager-asset-folders.js.map +1 -1
  225. package/resources/tag-manager-asset-folders.mjs +2 -1
  226. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  227. package/resources/tag-manager-folders.d.mts +9 -7
  228. package/resources/tag-manager-folders.d.mts.map +1 -1
  229. package/resources/tag-manager-folders.d.ts +9 -7
  230. package/resources/tag-manager-folders.d.ts.map +1 -1
  231. package/resources/tag-manager-folders.js +9 -7
  232. package/resources/tag-manager-folders.js.map +1 -1
  233. package/resources/tag-manager-folders.mjs +9 -7
  234. package/resources/tag-manager-folders.mjs.map +1 -1
  235. package/resources/tag-manager-tags.d.mts +13 -7
  236. package/resources/tag-manager-tags.d.mts.map +1 -1
  237. package/resources/tag-manager-tags.d.ts +13 -7
  238. package/resources/tag-manager-tags.d.ts.map +1 -1
  239. package/resources/tag-manager-tags.js +10 -6
  240. package/resources/tag-manager-tags.js.map +1 -1
  241. package/resources/tag-manager-tags.mjs +10 -6
  242. package/resources/tag-manager-tags.mjs.map +1 -1
  243. package/resources/tag-manager-triggers.d.mts +14 -7
  244. package/resources/tag-manager-triggers.d.mts.map +1 -1
  245. package/resources/tag-manager-triggers.d.ts +14 -7
  246. package/resources/tag-manager-triggers.d.ts.map +1 -1
  247. package/resources/tag-manager-triggers.js +11 -6
  248. package/resources/tag-manager-triggers.js.map +1 -1
  249. package/resources/tag-manager-triggers.mjs +11 -6
  250. package/resources/tag-manager-triggers.mjs.map +1 -1
  251. package/resources/tag-manager-variables.d.mts +53 -23
  252. package/resources/tag-manager-variables.d.mts.map +1 -1
  253. package/resources/tag-manager-variables.d.ts +53 -23
  254. package/resources/tag-manager-variables.d.ts.map +1 -1
  255. package/resources/tag-manager-variables.js +10 -6
  256. package/resources/tag-manager-variables.js.map +1 -1
  257. package/resources/tag-manager-variables.mjs +10 -6
  258. package/resources/tag-manager-variables.mjs.map +1 -1
  259. package/resources/tag-managers.d.mts +24 -6
  260. package/resources/tag-managers.d.mts.map +1 -1
  261. package/resources/tag-managers.d.ts +24 -6
  262. package/resources/tag-managers.d.ts.map +1 -1
  263. package/resources/tag-managers.js +18 -5
  264. package/resources/tag-managers.js.map +1 -1
  265. package/resources/tag-managers.mjs +18 -5
  266. package/resources/tag-managers.mjs.map +1 -1
  267. package/resources/test-events.d.mts +73 -15
  268. package/resources/test-events.d.mts.map +1 -1
  269. package/resources/test-events.d.ts +73 -15
  270. package/resources/test-events.d.ts.map +1 -1
  271. package/resources/test-events.js +6 -4
  272. package/resources/test-events.js.map +1 -1
  273. package/resources/test-events.mjs +6 -4
  274. package/resources/test-events.mjs.map +1 -1
  275. package/resources/translation-widgets.d.mts +7 -6
  276. package/resources/translation-widgets.d.mts.map +1 -1
  277. package/resources/translation-widgets.d.ts +7 -6
  278. package/resources/translation-widgets.d.ts.map +1 -1
  279. package/resources/translation-widgets.js +7 -6
  280. package/resources/translation-widgets.js.map +1 -1
  281. package/resources/translation-widgets.mjs +7 -6
  282. package/resources/translation-widgets.mjs.map +1 -1
  283. package/resources/versions.d.mts +102 -47
  284. package/resources/versions.d.mts.map +1 -1
  285. package/resources/versions.d.ts +102 -47
  286. package/resources/versions.d.ts.map +1 -1
  287. package/resources/versions.js +20 -15
  288. package/resources/versions.js.map +1 -1
  289. package/resources/versions.mjs +20 -15
  290. package/resources/versions.mjs.map +1 -1
  291. package/resources/video-channels.d.mts +47 -13
  292. package/resources/video-channels.d.mts.map +1 -1
  293. package/resources/video-channels.d.ts +47 -13
  294. package/resources/video-channels.d.ts.map +1 -1
  295. package/resources/video-channels.js +15 -9
  296. package/resources/video-channels.js.map +1 -1
  297. package/resources/video-channels.mjs +15 -9
  298. package/resources/video-channels.mjs.map +1 -1
  299. package/resources/videos.d.mts +21 -14
  300. package/resources/videos.d.mts.map +1 -1
  301. package/resources/videos.d.ts +21 -14
  302. package/resources/videos.d.ts.map +1 -1
  303. package/resources/videos.js +21 -14
  304. package/resources/videos.js.map +1 -1
  305. package/resources/videos.mjs +21 -14
  306. package/resources/videos.mjs.map +1 -1
  307. package/resources/web-analytics.d.mts +14 -9
  308. package/resources/web-analytics.d.mts.map +1 -1
  309. package/resources/web-analytics.d.ts +14 -9
  310. package/resources/web-analytics.d.ts.map +1 -1
  311. package/resources/web-analytics.js +14 -9
  312. package/resources/web-analytics.js.map +1 -1
  313. package/resources/web-analytics.mjs +14 -9
  314. package/resources/web-analytics.mjs.map +1 -1
  315. package/resources/web-scanner-rules.d.mts +10 -6
  316. package/resources/web-scanner-rules.d.mts.map +1 -1
  317. package/resources/web-scanner-rules.d.ts +10 -6
  318. package/resources/web-scanner-rules.d.ts.map +1 -1
  319. package/resources/web-scanner-rules.js +10 -6
  320. package/resources/web-scanner-rules.js.map +1 -1
  321. package/resources/web-scanner-rules.mjs +10 -6
  322. package/resources/web-scanner-rules.mjs.map +1 -1
  323. package/resources/web-scanners.d.mts +26 -19
  324. package/resources/web-scanners.d.mts.map +1 -1
  325. package/resources/web-scanners.d.ts +26 -19
  326. package/resources/web-scanners.d.ts.map +1 -1
  327. package/resources/web-scanners.js +25 -18
  328. package/resources/web-scanners.js.map +1 -1
  329. package/resources/web-scanners.mjs +25 -18
  330. package/resources/web-scanners.mjs.map +1 -1
  331. package/src/client.ts +44 -0
  332. package/src/resources/allowed-events.ts +9 -7
  333. package/src/resources/analytics.ts +4 -2
  334. package/src/resources/attribution.ts +8 -5
  335. package/src/resources/audience-conversion-reports.ts +11 -9
  336. package/src/resources/consent-analytics.ts +2 -1
  337. package/src/resources/consent-settings.ts +7576 -519
  338. package/src/resources/conversion-journey-summaries.ts +10 -5
  339. package/src/resources/custom-domains.ts +450 -0
  340. package/src/resources/data-governance.ts +53 -21
  341. package/src/resources/default-mappings.ts +309 -8
  342. package/src/resources/destinations.ts +40 -15
  343. package/src/resources/experiment-settings.ts +9 -6
  344. package/src/resources/experiment-variants.ts +140 -19
  345. package/src/resources/experiments.ts +8051 -462
  346. package/src/resources/funnels.ts +1366 -17
  347. package/src/resources/heatmap-pages.ts +3 -2
  348. package/src/resources/index.ts +19 -0
  349. package/src/resources/journey-flows.ts +1241 -28
  350. package/src/resources/locations.ts +41 -10
  351. package/src/resources/mappings.ts +812 -31
  352. package/src/resources/me.ts +37 -0
  353. package/src/resources/personalization-properties.ts +10 -7
  354. package/src/resources/replay-settings.ts +147 -9
  355. package/src/resources/session-replays.ts +10 -2
  356. package/src/resources/short-links.ts +883 -17
  357. package/src/resources/sources.ts +108 -17
  358. package/src/resources/tag-manager-asset-folders.ts +2 -1
  359. package/src/resources/tag-manager-folders.ts +9 -7
  360. package/src/resources/tag-manager-tags.ts +17 -7
  361. package/src/resources/tag-manager-triggers.ts +18 -7
  362. package/src/resources/tag-manager-variables.ts +101 -19
  363. package/src/resources/tag-managers.ts +35 -5
  364. package/src/resources/test-events.ts +53 -15
  365. package/src/resources/translation-widgets.ts +7 -6
  366. package/src/resources/versions.ts +104 -47
  367. package/src/resources/video-channels.ts +59 -13
  368. package/src/resources/videos.ts +21 -14
  369. package/src/resources/web-analytics.ts +14 -9
  370. package/src/resources/web-scanner-rules.ts +10 -6
  371. package/src/resources/web-scanners.ts +26 -19
  372. package/src/version.ts +1 -1
  373. package/version.d.mts +1 -1
  374. package/version.d.ts +1 -1
  375. package/version.js +1 -1
  376. package/version.mjs +1 -1
@@ -6,8 +6,8 @@ export declare class Mappings extends APIResource {
6
6
  /**
7
7
  * List mappings for an entity (a source or destination). Requires the `entityId`
8
8
  * query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
9
- * `priority` ascending, then by `id` for deterministic pagination. Requires scope:
10
- * mapping:list
9
+ * `priority` ascending, then by `id` for deterministic pagination. Requires
10
+ * API-key scope or current OAuth user permission: mapping:list
11
11
  */
12
12
  list(query: MappingListParams, options?: RequestOptions): PagePromise<MappingListResponsesCursor, MappingListResponse>;
13
13
  /**
@@ -22,30 +22,51 @@ export declare class Mappings extends APIResource {
22
22
  * `GET /rest/v1/mapping-templates?entityId=...` to discover the valid
23
23
  * `templateId` and `mappings[].property` values.
24
24
  *
25
- * Sending both `allowedEventId` and `templateId` returns 400. Requires scope:
26
- * mapping:create
25
+ * Sending both `allowedEventId` and `templateId` returns 400. Requires API-key
26
+ * scope or current OAuth user permission: mapping:create
27
27
  */
28
28
  create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse>;
29
29
  /**
30
- * Find a single mapping by ID. Requires scope: mapping:find
30
+ * Find a single mapping by ID. Requires API-key scope or current OAuth user
31
+ * permission: mapping:find
31
32
  */
32
33
  retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse>;
33
34
  /**
34
35
  * Partially update a mapping. Only the fields you send are changed. Send
35
36
  * `isEnabled: false` to pause the mapping without changing other fields (mirrors
36
37
  * `status` on destinations). `mappings[]` is replaced wholesale when sent.
37
- * Requires scope: mapping:update
38
+ * Requires API-key scope or current OAuth user permission: mapping:update
38
39
  */
39
40
  update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse>;
40
41
  /**
41
- * Delete a mapping. Requires scope: mapping:delete
42
+ * Delete a mapping. Requires API-key scope or current OAuth user permission:
43
+ * mapping:delete
42
44
  */
43
45
  delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse>;
46
+ /**
47
+ * Preview a destination-specific event rename before setting or clearing it. Check
48
+ * `supportsRenamedEvents` in `GET /rest/v1/destinations/types` first. If
49
+ * `willCascade` is true, review all `affectedEventNames` before calling
50
+ * `PUT /rest/v1/mappings/rename` with `confirmCascade: true`. Requires API-key
51
+ * scope or current OAuth user permission: mapping:find
52
+ */
53
+ renamePreview(query: MappingRenamePreviewParams, options?: RequestOptions): APIPromise<MappingRenamePreviewResponse>;
54
+ /**
55
+ * Set or clear a destination-specific allowed-event rename. Send
56
+ * `renamedEventName: null` to clear it; clearing an existing mapper also requires
57
+ * the `mapping:delete` scope. Preview first with
58
+ * `GET /rest/v1/mappings/rename-preview`; a shared mapper requires
59
+ * `confirmCascade: true`, and all affected events will change. Publish a new
60
+ * version to activate the change. Requires API-key scope or current OAuth user
61
+ * permission: mapping:update
62
+ */
63
+ rename(body: MappingRenameParams, options?: RequestOptions): APIPromise<MappingRenameResponse | null>;
44
64
  /**
45
65
  * Reassign `priority` for a set of mappings. Pass `{ uuids: [...] }` with the
46
66
  * mapping ids in their new order — index 0 becomes the highest-priority mapping.
47
67
  * All ids must belong to the same parent entity (source or destination); mixing
48
- * entities returns 400. Requires scope: mapping:update
68
+ * entities returns 400. Requires API-key scope or current OAuth user permission:
69
+ * mapping:update
49
70
  */
50
71
  reorder(body: MappingReorderParams, options?: RequestOptions): APIPromise<MappingReorderResponse>;
51
72
  /**
@@ -55,14 +76,15 @@ export declare class Mappings extends APIResource {
55
76
  * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
56
77
  * any enforced `options`. The `isDefault: true` entry is the destination's
57
78
  * built-in default template, configured via
58
- * `PUT /rest/v1/default-mappings/{destinationId}`. Requires scope: mapping:find
79
+ * `PUT /rest/v1/default-mappings/{destinationId}`. Requires API-key scope or
80
+ * current OAuth user permission: mapping:find
59
81
  */
60
82
  templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse>;
61
83
  /**
62
84
  * Lists the platform-provided variables that any mapping `value` can reference
63
85
  * (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
64
86
  * discovery — use these paths as the right-hand side of a mapping field. Requires
65
- * scope: variables:find-default
87
+ * API-key scope or current OAuth user permission: variables:find-default
66
88
  */
67
89
  defaultVariables(options?: RequestOptions): APIPromise<MappingDefaultVariablesResponse>;
68
90
  /**
@@ -70,14 +92,16 @@ export declare class Mappings extends APIResource {
70
92
  * 14 days). These are dot-paths under `event.event_properties.*` that callers can
71
93
  * target in mapping `value` fields. Newly seen properties may take a few minutes
72
94
  * to appear; an empty list means no custom properties have been observed yet for
73
- * this account. Requires scope: variables:find-custom
95
+ * this account. Requires API-key scope or current OAuth user permission:
96
+ * variables:find-custom
74
97
  */
75
98
  customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse>;
76
99
  /**
77
100
  * Lists every value accepted on a mapping field’s `modification` property, with a
78
101
  * human-readable label and one-sentence description. Account-agnostic. Use this
79
102
  * alongside `GET /rest/v1/mapping-templates` to render a labelled modification
80
- * picker without hardcoding the enum. Requires scope: variables:find-default
103
+ * picker without hardcoding the enum. Requires API-key scope or current OAuth user
104
+ * permission: variables:find-default
81
105
  */
82
106
  modifications(options?: RequestOptions): APIPromise<MappingModificationsResponse>;
83
107
  }
@@ -98,7 +122,7 @@ export interface MappingListResponse {
98
122
  *
99
123
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
100
124
  */
101
- logic?: unknown;
125
+ logic?: MappingListResponse.Logic | null;
102
126
  name?: string | null;
103
127
  priority?: number | null;
104
128
  sourceId?: string | null;
@@ -124,6 +148,74 @@ export declare namespace MappingListResponse {
124
148
  property: string;
125
149
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
126
150
  }
151
+ /**
152
+ * Condition tree gating when this mapping fires. A node is either a leaf
153
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
154
+ * themselves logic nodes, so trees nest arbitrarily.
155
+ *
156
+ * Example leaf:
157
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
158
+ *
159
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
160
+ */
161
+ interface Logic {
162
+ /**
163
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
164
+ * or combinator).
165
+ */
166
+ AND?: Array<{
167
+ [key: string]: string | null | number | boolean | Array<unknown> | {
168
+ [key: string]: unknown;
169
+ };
170
+ }> | null;
171
+ condition?: Logic.Condition | null;
172
+ /**
173
+ * Negates a single child logic node.
174
+ */
175
+ NOT?: {
176
+ [key: string]: string | null | number | boolean | Array<unknown> | {
177
+ [key: string]: unknown;
178
+ };
179
+ } | null;
180
+ /**
181
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
182
+ * or combinator).
183
+ */
184
+ OR?: Array<{
185
+ [key: string]: string | null | number | boolean | Array<unknown> | {
186
+ [key: string]: unknown;
187
+ };
188
+ }> | null;
189
+ }
190
+ namespace Logic {
191
+ interface Condition {
192
+ /**
193
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
194
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
195
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
196
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
197
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
198
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
199
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
200
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
201
+ */
202
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
203
+ /**
204
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
205
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
206
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
207
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
208
+ * and would be compared as a literal string.
209
+ */
210
+ property: string;
211
+ /**
212
+ * String compared against the resolved property. Operators that take no value
213
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
214
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
215
+ */
216
+ value: string;
217
+ }
218
+ }
127
219
  }
128
220
  export interface MappingCreateResponse {
129
221
  id: string;
@@ -141,7 +233,7 @@ export interface MappingCreateResponse {
141
233
  *
142
234
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
143
235
  */
144
- logic?: unknown;
236
+ logic?: MappingCreateResponse.Logic | null;
145
237
  name?: string | null;
146
238
  priority?: number | null;
147
239
  sourceId?: string | null;
@@ -167,6 +259,74 @@ export declare namespace MappingCreateResponse {
167
259
  property: string;
168
260
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
169
261
  }
262
+ /**
263
+ * Condition tree gating when this mapping fires. A node is either a leaf
264
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
265
+ * themselves logic nodes, so trees nest arbitrarily.
266
+ *
267
+ * Example leaf:
268
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
269
+ *
270
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
271
+ */
272
+ interface Logic {
273
+ /**
274
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
275
+ * or combinator).
276
+ */
277
+ AND?: Array<{
278
+ [key: string]: string | null | number | boolean | Array<unknown> | {
279
+ [key: string]: unknown;
280
+ };
281
+ }> | null;
282
+ condition?: Logic.Condition | null;
283
+ /**
284
+ * Negates a single child logic node.
285
+ */
286
+ NOT?: {
287
+ [key: string]: string | null | number | boolean | Array<unknown> | {
288
+ [key: string]: unknown;
289
+ };
290
+ } | null;
291
+ /**
292
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
293
+ * or combinator).
294
+ */
295
+ OR?: Array<{
296
+ [key: string]: string | null | number | boolean | Array<unknown> | {
297
+ [key: string]: unknown;
298
+ };
299
+ }> | null;
300
+ }
301
+ namespace Logic {
302
+ interface Condition {
303
+ /**
304
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
305
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
306
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
307
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
308
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
309
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
310
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
311
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
312
+ */
313
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
314
+ /**
315
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
316
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
317
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
318
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
319
+ * and would be compared as a literal string.
320
+ */
321
+ property: string;
322
+ /**
323
+ * String compared against the resolved property. Operators that take no value
324
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
325
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
326
+ */
327
+ value: string;
328
+ }
329
+ }
170
330
  }
171
331
  export interface MappingRetrieveResponse {
172
332
  id: string;
@@ -184,7 +344,7 @@ export interface MappingRetrieveResponse {
184
344
  *
185
345
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
186
346
  */
187
- logic?: unknown;
347
+ logic?: MappingRetrieveResponse.Logic | null;
188
348
  name?: string | null;
189
349
  priority?: number | null;
190
350
  sourceId?: string | null;
@@ -210,6 +370,74 @@ export declare namespace MappingRetrieveResponse {
210
370
  property: string;
211
371
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
212
372
  }
373
+ /**
374
+ * Condition tree gating when this mapping fires. A node is either a leaf
375
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
376
+ * themselves logic nodes, so trees nest arbitrarily.
377
+ *
378
+ * Example leaf:
379
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
380
+ *
381
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
382
+ */
383
+ interface Logic {
384
+ /**
385
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
386
+ * or combinator).
387
+ */
388
+ AND?: Array<{
389
+ [key: string]: string | null | number | boolean | Array<unknown> | {
390
+ [key: string]: unknown;
391
+ };
392
+ }> | null;
393
+ condition?: Logic.Condition | null;
394
+ /**
395
+ * Negates a single child logic node.
396
+ */
397
+ NOT?: {
398
+ [key: string]: string | null | number | boolean | Array<unknown> | {
399
+ [key: string]: unknown;
400
+ };
401
+ } | null;
402
+ /**
403
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
404
+ * or combinator).
405
+ */
406
+ OR?: Array<{
407
+ [key: string]: string | null | number | boolean | Array<unknown> | {
408
+ [key: string]: unknown;
409
+ };
410
+ }> | null;
411
+ }
412
+ namespace Logic {
413
+ interface Condition {
414
+ /**
415
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
416
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
417
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
418
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
419
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
420
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
421
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
422
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
423
+ */
424
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
425
+ /**
426
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
427
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
428
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
429
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
430
+ * and would be compared as a literal string.
431
+ */
432
+ property: string;
433
+ /**
434
+ * String compared against the resolved property. Operators that take no value
435
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
436
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
437
+ */
438
+ value: string;
439
+ }
440
+ }
213
441
  }
214
442
  export interface MappingUpdateResponse {
215
443
  id: string;
@@ -227,7 +455,7 @@ export interface MappingUpdateResponse {
227
455
  *
228
456
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
229
457
  */
230
- logic?: unknown;
458
+ logic?: MappingUpdateResponse.Logic | null;
231
459
  name?: string | null;
232
460
  priority?: number | null;
233
461
  sourceId?: string | null;
@@ -253,8 +481,192 @@ export declare namespace MappingUpdateResponse {
253
481
  property: string;
254
482
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
255
483
  }
484
+ /**
485
+ * Condition tree gating when this mapping fires. A node is either a leaf
486
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
487
+ * themselves logic nodes, so trees nest arbitrarily.
488
+ *
489
+ * Example leaf:
490
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
491
+ *
492
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
493
+ */
494
+ interface Logic {
495
+ /**
496
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
497
+ * or combinator).
498
+ */
499
+ AND?: Array<{
500
+ [key: string]: string | null | number | boolean | Array<unknown> | {
501
+ [key: string]: unknown;
502
+ };
503
+ }> | null;
504
+ condition?: Logic.Condition | null;
505
+ /**
506
+ * Negates a single child logic node.
507
+ */
508
+ NOT?: {
509
+ [key: string]: string | null | number | boolean | Array<unknown> | {
510
+ [key: string]: unknown;
511
+ };
512
+ } | null;
513
+ /**
514
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
515
+ * or combinator).
516
+ */
517
+ OR?: Array<{
518
+ [key: string]: string | null | number | boolean | Array<unknown> | {
519
+ [key: string]: unknown;
520
+ };
521
+ }> | null;
522
+ }
523
+ namespace Logic {
524
+ interface Condition {
525
+ /**
526
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
527
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
528
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
529
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
530
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
531
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
532
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
533
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
534
+ */
535
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
536
+ /**
537
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
538
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
539
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
540
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
541
+ * and would be compared as a literal string.
542
+ */
543
+ property: string;
544
+ /**
545
+ * String compared against the resolved property. Operators that take no value
546
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
547
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
548
+ */
549
+ value: string;
550
+ }
551
+ }
256
552
  }
257
553
  export type MappingDeleteResponse = boolean;
554
+ export interface MappingRenamePreviewResponse {
555
+ affectedEventNames: Array<string>;
556
+ willCascade: boolean;
557
+ mapperName?: string | null;
558
+ }
559
+ export interface MappingRenameResponse {
560
+ id: string;
561
+ isEnabled: boolean;
562
+ mappings: Array<MappingRenameResponse.Mapping>;
563
+ destinationId?: string | null;
564
+ isDefaultMapping?: boolean | null;
565
+ /**
566
+ * Condition tree gating when this mapping fires. A node is either a leaf
567
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
568
+ * themselves logic nodes, so trees nest arbitrarily.
569
+ *
570
+ * Example leaf:
571
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
572
+ *
573
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
574
+ */
575
+ logic?: MappingRenameResponse.Logic | null;
576
+ name?: string | null;
577
+ priority?: number | null;
578
+ sourceId?: string | null;
579
+ templateId?: string | null;
580
+ templateName?: string | null;
581
+ updatedAt?: string | null;
582
+ }
583
+ export declare namespace MappingRenameResponse {
584
+ interface Mapping {
585
+ /**
586
+ * Source expression sent to the destination for this `property`. Use `{{...}}`
587
+ * template syntax to substitute values from the event/visitor record:
588
+ * `{{event.event}}`, `{{event.event_properties.value}}`, `{{visitor.email}}`. Bare
589
+ * strings (no `{{}}`) are sent verbatim. Note: `{{...}}` template syntax belongs
590
+ * HERE, NOT in `logic.condition.property` — logic conditions use bare dotted paths
591
+ * like `$event.event_properties.value`.
592
+ */
593
+ map: string;
594
+ /**
595
+ * Destination-side field name. Comes from the destination template — discover the
596
+ * valid set via `GET /rest/v1/mapping-templates?entityId=...`.
597
+ */
598
+ property: string;
599
+ modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
600
+ }
601
+ /**
602
+ * Condition tree gating when this mapping fires. A node is either a leaf
603
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
604
+ * themselves logic nodes, so trees nest arbitrarily.
605
+ *
606
+ * Example leaf:
607
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
608
+ *
609
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
610
+ */
611
+ interface Logic {
612
+ /**
613
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
614
+ * or combinator).
615
+ */
616
+ AND?: Array<{
617
+ [key: string]: string | null | number | boolean | Array<unknown> | {
618
+ [key: string]: unknown;
619
+ };
620
+ }> | null;
621
+ condition?: Logic.Condition | null;
622
+ /**
623
+ * Negates a single child logic node.
624
+ */
625
+ NOT?: {
626
+ [key: string]: string | null | number | boolean | Array<unknown> | {
627
+ [key: string]: unknown;
628
+ };
629
+ } | null;
630
+ /**
631
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
632
+ * or combinator).
633
+ */
634
+ OR?: Array<{
635
+ [key: string]: string | null | number | boolean | Array<unknown> | {
636
+ [key: string]: unknown;
637
+ };
638
+ }> | null;
639
+ }
640
+ namespace Logic {
641
+ interface Condition {
642
+ /**
643
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
644
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
645
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
646
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
647
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
648
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
649
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
650
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
651
+ */
652
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
653
+ /**
654
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
655
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
656
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
657
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
658
+ * and would be compared as a literal string.
659
+ */
660
+ property: string;
661
+ /**
662
+ * String compared against the resolved property. Operators that take no value
663
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
664
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
665
+ */
666
+ value: string;
667
+ }
668
+ }
669
+ }
258
670
  export interface MappingReorderResponse {
259
671
  entities: Array<MappingReorderResponse.Entity>;
260
672
  }
@@ -275,7 +687,7 @@ export declare namespace MappingReorderResponse {
275
687
  *
276
688
  * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
277
689
  */
278
- logic?: unknown;
690
+ logic?: Entity.Logic | null;
279
691
  name?: string | null;
280
692
  priority?: number | null;
281
693
  sourceId?: string | null;
@@ -301,6 +713,74 @@ export declare namespace MappingReorderResponse {
301
713
  property: string;
302
714
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
303
715
  }
716
+ /**
717
+ * Condition tree gating when this mapping fires. A node is either a leaf
718
+ * `condition` or a combinator (`AND`, `OR`, `NOT`). Combinator children are
719
+ * themselves logic nodes, so trees nest arbitrarily.
720
+ *
721
+ * Example leaf:
722
+ * `{ "condition": { "property": "$event.event", "operator": "Is", "value": "page_view" } }`.
723
+ *
724
+ * Example combinator: `{ "AND": [{ "condition": ... }, { "OR": [...] }] }`.
725
+ */
726
+ interface Logic {
727
+ /**
728
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
729
+ * or combinator).
730
+ */
731
+ AND?: Array<{
732
+ [key: string]: string | null | number | boolean | Array<unknown> | {
733
+ [key: string]: unknown;
734
+ };
735
+ }> | null;
736
+ condition?: Logic.Condition | null;
737
+ /**
738
+ * Negates a single child logic node.
739
+ */
740
+ NOT?: {
741
+ [key: string]: string | null | number | boolean | Array<unknown> | {
742
+ [key: string]: unknown;
743
+ };
744
+ } | null;
745
+ /**
746
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
747
+ * or combinator).
748
+ */
749
+ OR?: Array<{
750
+ [key: string]: string | null | number | boolean | Array<unknown> | {
751
+ [key: string]: unknown;
752
+ };
753
+ }> | null;
754
+ }
755
+ namespace Logic {
756
+ interface Condition {
757
+ /**
758
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
759
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
760
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
761
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
762
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
763
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
764
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
765
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
766
+ */
767
+ operator: 'Is' | 'IsNot' | 'Contains' | 'DoesNotContain' | 'StartsWith' | 'EndsWith' | 'IsFalsy' | 'IsTruthy' | 'IsNull' | 'IsNotNull' | 'IsUndefined' | 'IsNotUndefined' | 'IsGreaterThan' | 'IsGreaterThanOrEqual' | 'IsLessThan' | 'IsLessThanOrEqual' | 'IsIn' | 'IsNotIn' | 'IsFoundIn' | 'IsNotFoundIn' | 'IsTrue' | 'IsFalse' | 'IsBefore' | 'IsAfter' | 'IsBetween' | 'IsOnOrBefore' | 'IsOnOrAfter' | 'MatchesRegex' | 'MatchesRegexIgnoreCase' | 'DoesNotMatchRegex' | 'DoesNotMatchRegexIgnoreCase';
768
+ /**
769
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
770
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
771
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
772
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
773
+ * and would be compared as a literal string.
774
+ */
775
+ property: string;
776
+ /**
777
+ * String compared against the resolved property. Operators that take no value
778
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
779
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
780
+ */
781
+ value: string;
782
+ }
783
+ }
304
784
  }
305
785
  }
306
786
  export interface MappingTemplatesResponse {
@@ -527,17 +1007,29 @@ export declare namespace MappingCreateParams {
527
1007
  * All child nodes must match. Each child is itself a logic node (leaf `condition`
528
1008
  * or combinator).
529
1009
  */
530
- AND?: Array<unknown> | null;
1010
+ AND?: Array<{
1011
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1012
+ [key: string]: unknown;
1013
+ };
1014
+ }> | null;
531
1015
  condition?: Logic.Condition | null;
532
1016
  /**
533
1017
  * Negates a single child logic node.
534
1018
  */
535
- NOT?: unknown;
1019
+ NOT?: {
1020
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1021
+ [key: string]: unknown;
1022
+ };
1023
+ } | null;
536
1024
  /**
537
1025
  * Any child node must match. Each child is itself a logic node (leaf `condition`
538
1026
  * or combinator).
539
1027
  */
540
- OR?: Array<unknown> | null;
1028
+ OR?: Array<{
1029
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1030
+ [key: string]: unknown;
1031
+ };
1032
+ }> | null;
541
1033
  }
542
1034
  namespace Logic {
543
1035
  interface Condition {
@@ -622,17 +1114,29 @@ export declare namespace MappingUpdateParams {
622
1114
  * All child nodes must match. Each child is itself a logic node (leaf `condition`
623
1115
  * or combinator).
624
1116
  */
625
- AND?: Array<unknown> | null;
1117
+ AND?: Array<{
1118
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1119
+ [key: string]: unknown;
1120
+ };
1121
+ }> | null;
626
1122
  condition?: Logic.Condition | null;
627
1123
  /**
628
1124
  * Negates a single child logic node.
629
1125
  */
630
- NOT?: unknown;
1126
+ NOT?: {
1127
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1128
+ [key: string]: unknown;
1129
+ };
1130
+ } | null;
631
1131
  /**
632
1132
  * Any child node must match. Each child is itself a logic node (leaf `condition`
633
1133
  * or combinator).
634
1134
  */
635
- OR?: Array<unknown> | null;
1135
+ OR?: Array<{
1136
+ [key: string]: string | null | number | boolean | Array<unknown> | {
1137
+ [key: string]: unknown;
1138
+ };
1139
+ }> | null;
636
1140
  }
637
1141
  namespace Logic {
638
1142
  interface Condition {
@@ -681,6 +1185,36 @@ export declare namespace MappingUpdateParams {
681
1185
  modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
682
1186
  }
683
1187
  }
1188
+ export interface MappingRenamePreviewParams {
1189
+ /**
1190
+ * Allowed event id to preview for this destination.
1191
+ */
1192
+ allowedEventId: string;
1193
+ /**
1194
+ * Destination id. Discover renaming support through
1195
+ * `GET /rest/v1/destinations/types`.
1196
+ */
1197
+ destinationId: string;
1198
+ }
1199
+ export interface MappingRenameParams {
1200
+ /**
1201
+ * Allowed event id to rename for this destination.
1202
+ */
1203
+ allowedEventId: string;
1204
+ /**
1205
+ * Destination id for the rename.
1206
+ */
1207
+ destinationId: string;
1208
+ /**
1209
+ * Name sent to the destination. Send `null` to clear the rename.
1210
+ */
1211
+ renamedEventName: string | null;
1212
+ /**
1213
+ * Set to `true` only after preview confirms which allowed events a shared mapper
1214
+ * will change. Defaults to `false`.
1215
+ */
1216
+ confirmCascade?: boolean;
1217
+ }
684
1218
  export interface MappingReorderParams {
685
1219
  /**
686
1220
  * Mapping ids in their new priority order, low priority index first. All ids must
@@ -695,6 +1229,6 @@ export interface MappingTemplatesParams {
695
1229
  entityId: string;
696
1230
  }
697
1231
  export declare namespace Mappings {
698
- export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingReorderResponse as MappingReorderResponse, type MappingTemplatesResponse as MappingTemplatesResponse, type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse, type MappingCustomVariablesResponse as MappingCustomVariablesResponse, type MappingModificationsResponse as MappingModificationsResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, type MappingReorderParams as MappingReorderParams, type MappingTemplatesParams as MappingTemplatesParams, };
1232
+ export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingRenamePreviewResponse as MappingRenamePreviewResponse, type MappingRenameResponse as MappingRenameResponse, type MappingReorderResponse as MappingReorderResponse, type MappingTemplatesResponse as MappingTemplatesResponse, type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse, type MappingCustomVariablesResponse as MappingCustomVariablesResponse, type MappingModificationsResponse as MappingModificationsResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, type MappingRenamePreviewParams as MappingRenamePreviewParams, type MappingRenameParams as MappingRenameParams, type MappingReorderParams as MappingReorderParams, type MappingTemplatesParams as MappingTemplatesParams, };
699
1233
  }
700
1234
  //# sourceMappingURL=mappings.d.ts.map