@oursprivacy/platform-sdk 1.51.0 → 1.53.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 (354) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/allowed-events.d.mts +9 -7
  10. package/resources/allowed-events.d.mts.map +1 -1
  11. package/resources/allowed-events.d.ts +9 -7
  12. package/resources/allowed-events.d.ts.map +1 -1
  13. package/resources/allowed-events.js +9 -7
  14. package/resources/allowed-events.js.map +1 -1
  15. package/resources/allowed-events.mjs +9 -7
  16. package/resources/allowed-events.mjs.map +1 -1
  17. package/resources/analytics.d.mts +4 -2
  18. package/resources/analytics.d.mts.map +1 -1
  19. package/resources/analytics.d.ts +4 -2
  20. package/resources/analytics.d.ts.map +1 -1
  21. package/resources/analytics.js +4 -2
  22. package/resources/analytics.js.map +1 -1
  23. package/resources/analytics.mjs +4 -2
  24. package/resources/analytics.mjs.map +1 -1
  25. package/resources/attribution.d.mts +8 -5
  26. package/resources/attribution.d.mts.map +1 -1
  27. package/resources/attribution.d.ts +8 -5
  28. package/resources/attribution.d.ts.map +1 -1
  29. package/resources/attribution.js +8 -5
  30. package/resources/attribution.js.map +1 -1
  31. package/resources/attribution.mjs +8 -5
  32. package/resources/attribution.mjs.map +1 -1
  33. package/resources/audience-conversion-reports.d.mts +11 -9
  34. package/resources/audience-conversion-reports.d.mts.map +1 -1
  35. package/resources/audience-conversion-reports.d.ts +11 -9
  36. package/resources/audience-conversion-reports.d.ts.map +1 -1
  37. package/resources/audience-conversion-reports.js +11 -9
  38. package/resources/audience-conversion-reports.js.map +1 -1
  39. package/resources/audience-conversion-reports.mjs +11 -9
  40. package/resources/audience-conversion-reports.mjs.map +1 -1
  41. package/resources/consent-analytics.d.mts +2 -1
  42. package/resources/consent-analytics.d.mts.map +1 -1
  43. package/resources/consent-analytics.d.ts +2 -1
  44. package/resources/consent-analytics.d.ts.map +1 -1
  45. package/resources/consent-analytics.js +2 -1
  46. package/resources/consent-analytics.js.map +1 -1
  47. package/resources/consent-analytics.mjs +2 -1
  48. package/resources/consent-analytics.mjs.map +1 -1
  49. package/resources/consent-settings.d.mts +220 -120
  50. package/resources/consent-settings.d.mts.map +1 -1
  51. package/resources/consent-settings.d.ts +220 -120
  52. package/resources/consent-settings.d.ts.map +1 -1
  53. package/resources/consent-settings.js +72 -34
  54. package/resources/consent-settings.js.map +1 -1
  55. package/resources/consent-settings.mjs +72 -34
  56. package/resources/consent-settings.mjs.map +1 -1
  57. package/resources/conversion-journey-summaries.d.mts +10 -5
  58. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  59. package/resources/conversion-journey-summaries.d.ts +10 -5
  60. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  61. package/resources/conversion-journey-summaries.js +10 -5
  62. package/resources/conversion-journey-summaries.js.map +1 -1
  63. package/resources/conversion-journey-summaries.mjs +10 -5
  64. package/resources/conversion-journey-summaries.mjs.map +1 -1
  65. package/resources/data-governance.d.mts +8 -6
  66. package/resources/data-governance.d.mts.map +1 -1
  67. package/resources/data-governance.d.ts +8 -6
  68. package/resources/data-governance.d.ts.map +1 -1
  69. package/resources/data-governance.js +8 -6
  70. package/resources/data-governance.js.map +1 -1
  71. package/resources/data-governance.mjs +8 -6
  72. package/resources/data-governance.mjs.map +1 -1
  73. package/resources/default-mappings.d.mts +6 -5
  74. package/resources/default-mappings.d.mts.map +1 -1
  75. package/resources/default-mappings.d.ts +6 -5
  76. package/resources/default-mappings.d.ts.map +1 -1
  77. package/resources/default-mappings.js +6 -5
  78. package/resources/default-mappings.js.map +1 -1
  79. package/resources/default-mappings.mjs +6 -5
  80. package/resources/default-mappings.mjs.map +1 -1
  81. package/resources/destinations.d.mts +17 -12
  82. package/resources/destinations.d.mts.map +1 -1
  83. package/resources/destinations.d.ts +17 -12
  84. package/resources/destinations.d.ts.map +1 -1
  85. package/resources/destinations.js +12 -7
  86. package/resources/destinations.js.map +1 -1
  87. package/resources/destinations.mjs +12 -7
  88. package/resources/destinations.mjs.map +1 -1
  89. package/resources/experiment-settings.d.mts +9 -6
  90. package/resources/experiment-settings.d.mts.map +1 -1
  91. package/resources/experiment-settings.d.ts +9 -6
  92. package/resources/experiment-settings.d.ts.map +1 -1
  93. package/resources/experiment-settings.js +9 -6
  94. package/resources/experiment-settings.js.map +1 -1
  95. package/resources/experiment-settings.mjs +9 -6
  96. package/resources/experiment-settings.mjs.map +1 -1
  97. package/resources/experiment-variants.d.mts +9 -5
  98. package/resources/experiment-variants.d.mts.map +1 -1
  99. package/resources/experiment-variants.d.ts +9 -5
  100. package/resources/experiment-variants.d.ts.map +1 -1
  101. package/resources/experiment-variants.js +9 -5
  102. package/resources/experiment-variants.js.map +1 -1
  103. package/resources/experiment-variants.mjs +9 -5
  104. package/resources/experiment-variants.mjs.map +1 -1
  105. package/resources/experiments.d.mts +30 -19
  106. package/resources/experiments.d.mts.map +1 -1
  107. package/resources/experiments.d.ts +30 -19
  108. package/resources/experiments.d.ts.map +1 -1
  109. package/resources/experiments.js +30 -19
  110. package/resources/experiments.js.map +1 -1
  111. package/resources/experiments.mjs +30 -19
  112. package/resources/experiments.mjs.map +1 -1
  113. package/resources/funnels.d.mts +11 -10
  114. package/resources/funnels.d.mts.map +1 -1
  115. package/resources/funnels.d.ts +11 -10
  116. package/resources/funnels.d.ts.map +1 -1
  117. package/resources/funnels.js +11 -10
  118. package/resources/funnels.js.map +1 -1
  119. package/resources/funnels.mjs +11 -10
  120. package/resources/funnels.mjs.map +1 -1
  121. package/resources/heatmap-pages.d.mts +3 -2
  122. package/resources/heatmap-pages.d.mts.map +1 -1
  123. package/resources/heatmap-pages.d.ts +3 -2
  124. package/resources/heatmap-pages.d.ts.map +1 -1
  125. package/resources/heatmap-pages.js +3 -2
  126. package/resources/heatmap-pages.js.map +1 -1
  127. package/resources/heatmap-pages.mjs +3 -2
  128. package/resources/heatmap-pages.mjs.map +1 -1
  129. package/resources/index.d.mts +1 -1
  130. package/resources/index.d.mts.map +1 -1
  131. package/resources/index.d.ts +1 -1
  132. package/resources/index.d.ts.map +1 -1
  133. package/resources/index.js.map +1 -1
  134. package/resources/index.mjs.map +1 -1
  135. package/resources/journey-flows.d.mts +17 -12
  136. package/resources/journey-flows.d.mts.map +1 -1
  137. package/resources/journey-flows.d.ts +17 -12
  138. package/resources/journey-flows.d.ts.map +1 -1
  139. package/resources/journey-flows.js +17 -12
  140. package/resources/journey-flows.js.map +1 -1
  141. package/resources/journey-flows.mjs +17 -12
  142. package/resources/journey-flows.mjs.map +1 -1
  143. package/resources/locations.d.mts +6 -5
  144. package/resources/locations.d.mts.map +1 -1
  145. package/resources/locations.d.ts +6 -5
  146. package/resources/locations.d.ts.map +1 -1
  147. package/resources/locations.js +6 -5
  148. package/resources/locations.js.map +1 -1
  149. package/resources/locations.mjs +6 -5
  150. package/resources/locations.mjs.map +1 -1
  151. package/resources/mappings.d.mts +18 -12
  152. package/resources/mappings.d.mts.map +1 -1
  153. package/resources/mappings.d.ts +18 -12
  154. package/resources/mappings.d.ts.map +1 -1
  155. package/resources/mappings.js +18 -12
  156. package/resources/mappings.js.map +1 -1
  157. package/resources/mappings.mjs +18 -12
  158. package/resources/mappings.mjs.map +1 -1
  159. package/resources/personalization-properties.d.mts +10 -7
  160. package/resources/personalization-properties.d.mts.map +1 -1
  161. package/resources/personalization-properties.d.ts +10 -7
  162. package/resources/personalization-properties.d.ts.map +1 -1
  163. package/resources/personalization-properties.js +10 -7
  164. package/resources/personalization-properties.js.map +1 -1
  165. package/resources/personalization-properties.mjs +10 -7
  166. package/resources/personalization-properties.mjs.map +1 -1
  167. package/resources/replay-settings.d.mts +9 -6
  168. package/resources/replay-settings.d.mts.map +1 -1
  169. package/resources/replay-settings.d.ts +9 -6
  170. package/resources/replay-settings.d.ts.map +1 -1
  171. package/resources/replay-settings.js +9 -6
  172. package/resources/replay-settings.js.map +1 -1
  173. package/resources/replay-settings.mjs +9 -6
  174. package/resources/replay-settings.mjs.map +1 -1
  175. package/resources/session-replays.d.mts +4 -2
  176. package/resources/session-replays.d.mts.map +1 -1
  177. package/resources/session-replays.d.ts +4 -2
  178. package/resources/session-replays.d.ts.map +1 -1
  179. package/resources/session-replays.js +4 -2
  180. package/resources/session-replays.js.map +1 -1
  181. package/resources/session-replays.mjs +4 -2
  182. package/resources/session-replays.mjs.map +1 -1
  183. package/resources/short-links.d.mts +11 -7
  184. package/resources/short-links.d.mts.map +1 -1
  185. package/resources/short-links.d.ts +11 -7
  186. package/resources/short-links.d.ts.map +1 -1
  187. package/resources/short-links.js +11 -7
  188. package/resources/short-links.js.map +1 -1
  189. package/resources/short-links.mjs +11 -7
  190. package/resources/short-links.mjs.map +1 -1
  191. package/resources/sources.d.mts +12 -6
  192. package/resources/sources.d.mts.map +1 -1
  193. package/resources/sources.d.ts +12 -6
  194. package/resources/sources.d.ts.map +1 -1
  195. package/resources/sources.js +12 -6
  196. package/resources/sources.js.map +1 -1
  197. package/resources/sources.mjs +12 -6
  198. package/resources/sources.mjs.map +1 -1
  199. package/resources/tag-manager-asset-folders.d.mts +2 -1
  200. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  201. package/resources/tag-manager-asset-folders.d.ts +2 -1
  202. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  203. package/resources/tag-manager-asset-folders.js +2 -1
  204. package/resources/tag-manager-asset-folders.js.map +1 -1
  205. package/resources/tag-manager-asset-folders.mjs +2 -1
  206. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  207. package/resources/tag-manager-folders.d.mts +9 -7
  208. package/resources/tag-manager-folders.d.mts.map +1 -1
  209. package/resources/tag-manager-folders.d.ts +9 -7
  210. package/resources/tag-manager-folders.d.ts.map +1 -1
  211. package/resources/tag-manager-folders.js +9 -7
  212. package/resources/tag-manager-folders.js.map +1 -1
  213. package/resources/tag-manager-folders.mjs +9 -7
  214. package/resources/tag-manager-folders.mjs.map +1 -1
  215. package/resources/tag-manager-tags.d.mts +11 -7
  216. package/resources/tag-manager-tags.d.mts.map +1 -1
  217. package/resources/tag-manager-tags.d.ts +11 -7
  218. package/resources/tag-manager-tags.d.ts.map +1 -1
  219. package/resources/tag-manager-tags.js +10 -6
  220. package/resources/tag-manager-tags.js.map +1 -1
  221. package/resources/tag-manager-tags.mjs +10 -6
  222. package/resources/tag-manager-tags.mjs.map +1 -1
  223. package/resources/tag-manager-triggers.d.mts +12 -7
  224. package/resources/tag-manager-triggers.d.mts.map +1 -1
  225. package/resources/tag-manager-triggers.d.ts +12 -7
  226. package/resources/tag-manager-triggers.d.ts.map +1 -1
  227. package/resources/tag-manager-triggers.js +11 -6
  228. package/resources/tag-manager-triggers.js.map +1 -1
  229. package/resources/tag-manager-triggers.mjs +11 -6
  230. package/resources/tag-manager-triggers.mjs.map +1 -1
  231. package/resources/tag-manager-variables.d.mts +27 -23
  232. package/resources/tag-manager-variables.d.mts.map +1 -1
  233. package/resources/tag-manager-variables.d.ts +27 -23
  234. package/resources/tag-manager-variables.d.ts.map +1 -1
  235. package/resources/tag-manager-variables.js +10 -6
  236. package/resources/tag-manager-variables.js.map +1 -1
  237. package/resources/tag-manager-variables.mjs +10 -6
  238. package/resources/tag-manager-variables.mjs.map +1 -1
  239. package/resources/tag-managers.d.mts +10 -5
  240. package/resources/tag-managers.d.mts.map +1 -1
  241. package/resources/tag-managers.d.ts +10 -5
  242. package/resources/tag-managers.d.ts.map +1 -1
  243. package/resources/tag-managers.js +10 -5
  244. package/resources/tag-managers.js.map +1 -1
  245. package/resources/tag-managers.mjs +10 -5
  246. package/resources/tag-managers.mjs.map +1 -1
  247. package/resources/test-events.d.mts +351 -12
  248. package/resources/test-events.d.mts.map +1 -1
  249. package/resources/test-events.d.ts +351 -12
  250. package/resources/test-events.d.ts.map +1 -1
  251. package/resources/test-events.js +11 -8
  252. package/resources/test-events.js.map +1 -1
  253. package/resources/test-events.mjs +11 -8
  254. package/resources/test-events.mjs.map +1 -1
  255. package/resources/translation-widgets.d.mts +7 -6
  256. package/resources/translation-widgets.d.mts.map +1 -1
  257. package/resources/translation-widgets.d.ts +7 -6
  258. package/resources/translation-widgets.d.ts.map +1 -1
  259. package/resources/translation-widgets.js +7 -6
  260. package/resources/translation-widgets.js.map +1 -1
  261. package/resources/translation-widgets.mjs +7 -6
  262. package/resources/translation-widgets.mjs.map +1 -1
  263. package/resources/versions.d.mts +21 -11
  264. package/resources/versions.d.mts.map +1 -1
  265. package/resources/versions.d.ts +21 -11
  266. package/resources/versions.d.ts.map +1 -1
  267. package/resources/versions.js +16 -11
  268. package/resources/versions.js.map +1 -1
  269. package/resources/versions.mjs +16 -11
  270. package/resources/versions.mjs.map +1 -1
  271. package/resources/video-channels.d.mts +15 -9
  272. package/resources/video-channels.d.mts.map +1 -1
  273. package/resources/video-channels.d.ts +15 -9
  274. package/resources/video-channels.d.ts.map +1 -1
  275. package/resources/video-channels.js +15 -9
  276. package/resources/video-channels.js.map +1 -1
  277. package/resources/video-channels.mjs +15 -9
  278. package/resources/video-channels.mjs.map +1 -1
  279. package/resources/videos.d.mts +21 -14
  280. package/resources/videos.d.mts.map +1 -1
  281. package/resources/videos.d.ts +21 -14
  282. package/resources/videos.d.ts.map +1 -1
  283. package/resources/videos.js +21 -14
  284. package/resources/videos.js.map +1 -1
  285. package/resources/videos.mjs +21 -14
  286. package/resources/videos.mjs.map +1 -1
  287. package/resources/web-analytics.d.mts +14 -9
  288. package/resources/web-analytics.d.mts.map +1 -1
  289. package/resources/web-analytics.d.ts +14 -9
  290. package/resources/web-analytics.d.ts.map +1 -1
  291. package/resources/web-analytics.js +14 -9
  292. package/resources/web-analytics.js.map +1 -1
  293. package/resources/web-analytics.mjs +14 -9
  294. package/resources/web-analytics.mjs.map +1 -1
  295. package/resources/web-scanner-rules.d.mts +10 -6
  296. package/resources/web-scanner-rules.d.mts.map +1 -1
  297. package/resources/web-scanner-rules.d.ts +10 -6
  298. package/resources/web-scanner-rules.d.ts.map +1 -1
  299. package/resources/web-scanner-rules.js +10 -6
  300. package/resources/web-scanner-rules.js.map +1 -1
  301. package/resources/web-scanner-rules.mjs +10 -6
  302. package/resources/web-scanner-rules.mjs.map +1 -1
  303. package/resources/web-scanners.d.mts +26 -19
  304. package/resources/web-scanners.d.mts.map +1 -1
  305. package/resources/web-scanners.d.ts +26 -19
  306. package/resources/web-scanners.d.ts.map +1 -1
  307. package/resources/web-scanners.js +25 -18
  308. package/resources/web-scanners.js.map +1 -1
  309. package/resources/web-scanners.mjs +25 -18
  310. package/resources/web-scanners.mjs.map +1 -1
  311. package/src/client.ts +8 -0
  312. package/src/resources/allowed-events.ts +9 -7
  313. package/src/resources/analytics.ts +4 -2
  314. package/src/resources/attribution.ts +8 -5
  315. package/src/resources/audience-conversion-reports.ts +11 -9
  316. package/src/resources/consent-analytics.ts +2 -1
  317. package/src/resources/consent-settings.ts +264 -120
  318. package/src/resources/conversion-journey-summaries.ts +10 -5
  319. package/src/resources/data-governance.ts +8 -6
  320. package/src/resources/default-mappings.ts +6 -5
  321. package/src/resources/destinations.ts +17 -7
  322. package/src/resources/experiment-settings.ts +9 -6
  323. package/src/resources/experiment-variants.ts +9 -5
  324. package/src/resources/experiments.ts +30 -19
  325. package/src/resources/funnels.ts +11 -10
  326. package/src/resources/heatmap-pages.ts +3 -2
  327. package/src/resources/index.ts +4 -0
  328. package/src/resources/journey-flows.ts +17 -12
  329. package/src/resources/locations.ts +6 -5
  330. package/src/resources/mappings.ts +18 -12
  331. package/src/resources/personalization-properties.ts +10 -7
  332. package/src/resources/replay-settings.ts +9 -6
  333. package/src/resources/session-replays.ts +4 -2
  334. package/src/resources/short-links.ts +11 -7
  335. package/src/resources/sources.ts +12 -6
  336. package/src/resources/tag-manager-asset-folders.ts +2 -1
  337. package/src/resources/tag-manager-folders.ts +9 -7
  338. package/src/resources/tag-manager-tags.ts +11 -7
  339. package/src/resources/tag-manager-triggers.ts +12 -7
  340. package/src/resources/tag-manager-variables.ts +23 -19
  341. package/src/resources/tag-managers.ts +10 -5
  342. package/src/resources/test-events.ts +429 -12
  343. package/src/resources/translation-widgets.ts +7 -6
  344. package/src/resources/versions.ts +22 -11
  345. package/src/resources/video-channels.ts +15 -9
  346. package/src/resources/videos.ts +21 -14
  347. package/src/resources/web-analytics.ts +14 -9
  348. package/src/resources/web-scanner-rules.ts +10 -6
  349. package/src/resources/web-scanners.ts +26 -19
  350. package/src/version.ts +1 -1
  351. package/version.d.mts +1 -1
  352. package/version.d.ts +1 -1
  353. package/version.js +1 -1
  354. package/version.mjs +1 -1
@@ -9,11 +9,11 @@ import { path } from '../internal/utils/path';
9
9
  export class TestEvents extends APIResource {
10
10
  /**
11
11
  * List browser, server, and synthetic events captured with debug mode during the
12
- * last 48 hours, newest received first. Includes live-token events as well as
13
- * synthetic test events; `isTestEvent` distinguishes them. Returns full event
12
+ * last 48 hours, newest received first. Includes live-token and test-token events;
13
+ * `isTestEvent` indicates whether a test token was used. Returns full event
14
14
  * properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
15
15
  * `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
16
- * scope: report:list-events
16
+ * API-key scope or current OAuth user permission: report:list-events
17
17
  *
18
18
  * @example
19
19
  * ```ts
@@ -35,12 +35,14 @@ export class TestEvents extends APIResource {
35
35
 
36
36
  /**
37
37
  * Send a test event through the same processing your production events go through,
38
- * without delivering it to any destination. The response acknowledges acceptance
39
- * for processing; it does not contain processing results. The event is captured in
38
+ * using the source’s live token with debug capture enabled. This can deliver real
39
+ * data to configured destinations. The response acknowledges acceptance for
40
+ * processing; it does not contain processing results. The event is captured in
40
41
  * Recent Events. Use the returned `id` with
41
42
  * `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
42
43
  * Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
43
- * they are generated and returned. Requires scope: test-event:create
44
+ * they are generated and returned. Requires API-key scope or current OAuth user
45
+ * permission: test-event:create
44
46
  *
45
47
  * @example
46
48
  * ```ts
@@ -57,7 +59,8 @@ export class TestEvents extends APIResource {
57
59
  * Retrieve one browser, server, or synthetic event captured in debug mode within
58
60
  * the last 48 hours. Use an id returned by the create or list endpoint. Events
59
61
  * that have not arrived, expired events, and events outside your account
60
- * return 404. Requires scope: report:view-event
62
+ * return 404. Requires API-key scope or current OAuth user permission:
63
+ * report:view-event
61
64
  *
62
65
  * @example
63
66
  * ```ts
@@ -77,7 +80,7 @@ export class TestEvents extends APIResource {
77
80
  * until dispatch records arrive, and may remain empty when no dispatch occurs.
78
81
  * Results can grow as processing continues; this endpoint does not predict
79
82
  * destinations or signal completion. Requires the report:view-dispatch scope.
80
- * Requires scope: report:view-dispatch
83
+ * Requires API-key scope or current OAuth user permission: report:view-dispatch
81
84
  *
82
85
  * @example
83
86
  * ```ts
@@ -186,7 +189,8 @@ export interface TestEventDispatchesResponse {
186
189
 
187
190
  /**
188
191
  * Dispatches recorded so far. Empty until dispatches arrive; no predicted
189
- * destinations or completion signal. Synthetic events are never delivered live.
192
+ * destinations or completion signal. Events created through this API can be
193
+ * delivered to live destinations.
190
194
  */
191
195
  entities: Array<TestEventDispatchesResponse.Entity>;
192
196
  }
@@ -239,10 +243,10 @@ export interface TestEventCreateParams {
239
243
  eventName: string;
240
244
 
241
245
  /**
242
- * Context properties normally collected automatically, such as page URL or
243
- * referrer.
246
+ * Known context properties used by ingest and destination mappings. Use
247
+ * current_url for the page URL. Unknown properties are ignored.
244
248
  */
245
- defaultProperties?: unknown | null;
249
+ defaultProperties?: TestEventCreateParams.DefaultProperties | null;
246
250
 
247
251
  /**
248
252
  * Event identity for this specific event. Generated when omitted. Letters,
@@ -273,6 +277,419 @@ export interface TestEventCreateParams {
273
277
  visitorId?: string | null;
274
278
  }
275
279
 
280
+ export namespace TestEventCreateParams {
281
+ /**
282
+ * Known context properties used by ingest and destination mappings. Use
283
+ * current_url for the page URL. Unknown properties are ignored.
284
+ */
285
+ export interface DefaultProperties {
286
+ /**
287
+ * The Everflow affiliate Click (Transaction) ID, captured from the
288
+ * `_ef_transaction_id` URL parameter. Ex: ef_click_abc123
289
+ */
290
+ _ef_transaction_id?: string | null;
291
+
292
+ /**
293
+ * The active time in milliseconds that the user had this tab active
294
+ */
295
+ activeDuration?: number | null;
296
+
297
+ /**
298
+ * The ad id for detected in the session. This is set by the web sdk automatically.
299
+ */
300
+ ad_id?: string | null;
301
+
302
+ /**
303
+ * The Admitad (Mitgo) affiliate Click ID. Ex: admitad_uid_abc123
304
+ */
305
+ admitad_uid?: string | null;
306
+
307
+ /**
308
+ * The adset id for detected in the session. This is set by the web sdk
309
+ * automatically.
310
+ */
311
+ adset_id?: string | null;
312
+
313
+ /**
314
+ * The AppLovin alart query parameter. Ex: alart123
315
+ */
316
+ alart?: string | null;
317
+
318
+ /**
319
+ * The AppLovin aleid query parameter. Ex: aleid123
320
+ */
321
+ aleid?: string | null;
322
+
323
+ /**
324
+ * The AppLovin pixel cookie value (\_axwrt). Web-only.
325
+ */
326
+ axwrt?: string | null;
327
+
328
+ /**
329
+ * The Basis DSP Click ID. Ex: basis_cid123
330
+ */
331
+ basis_cid?: string | null;
332
+
333
+ /**
334
+ * The Beeswax (FreeWheel Buyer Cloud) auction ID, captured from the
335
+ * `{{AUCTION_ID}}` macro on creative click URLs. Ex: bx-auc-abc123
336
+ */
337
+ beeswax_auction_id?: string | null;
338
+
339
+ /**
340
+ * The language of the browser. Ex: en-US
341
+ */
342
+ browser_language?: string | null;
343
+
344
+ /**
345
+ * The name of the browser. Ex: Chrome
346
+ */
347
+ browser_name?: string | null;
348
+
349
+ /**
350
+ * The version of the browser. Ex: 114.0
351
+ */
352
+ browser_version?: string | null;
353
+
354
+ /**
355
+ * The campaign id for detected in the session. This is set by the web sdk
356
+ * automatically.
357
+ */
358
+ campaign_id?: string | null;
359
+
360
+ /**
361
+ * The Click ID. Ex: clickid123
362
+ */
363
+ clickid?: string | null;
364
+
365
+ /**
366
+ * The Generic Click ID. Ex: clid123
367
+ */
368
+ clid?: string | null;
369
+
370
+ /**
371
+ * The architecture of the CPU. Ex: x64
372
+ */
373
+ cpu_architecture?: string | null;
374
+
375
+ /**
376
+ * The full url (including query params) of the current page
377
+ */
378
+ current_url?: string | null;
379
+
380
+ /**
381
+ * The DoubleClick Click ID. Ex: dclid123
382
+ */
383
+ dclid?: string | null;
384
+
385
+ /**
386
+ * The model of the device. Ex: iPhone 13
387
+ */
388
+ device_model?: string | null;
389
+
390
+ /**
391
+ * The type of device the user is using. Ex: mobile
392
+ */
393
+ device_type?: string | null;
394
+
395
+ /**
396
+ * The vendor of the device. Ex: Apple
397
+ */
398
+ device_vendor?: string | null;
399
+
400
+ /**
401
+ * The time in milliseconds since the page was loaded // script was loaded
402
+ */
403
+ duration?: number | null;
404
+
405
+ /**
406
+ * The browsers encoding. Ex: UTF-8
407
+ */
408
+ encoding?: string | null;
409
+
410
+ /**
411
+ * The name of the browser engine. Ex: Blink
412
+ */
413
+ engine_name?: string | null;
414
+
415
+ /**
416
+ * The version of the browser engine. Ex: 114.0
417
+ */
418
+ engine_version?: string | null;
419
+
420
+ /**
421
+ * The Pinterest Click ID. Ex: epik456
422
+ */
423
+ epik?: string | null;
424
+
425
+ /**
426
+ * Facebook Click ID with prefix format for Conversions API tracking. Ex:
427
+ * fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
428
+ */
429
+ fbc?: string | null;
430
+
431
+ /**
432
+ * Raw Facebook Click ID query parameter without prefix from ad clicks. Ex:
433
+ * AbCdEfGhIjKlMnOpQrStUvWxYz1234567890
434
+ */
435
+ fbclid?: string | null;
436
+
437
+ /**
438
+ * Facebook Browser ID parameter for identifying browsers and attributing events.
439
+ * Ex: fb.1.1554763741205.1098115397
440
+ */
441
+ fbp?: string | null;
442
+
443
+ /**
444
+ * Deprecated
445
+ */
446
+ fv?: boolean | null;
447
+
448
+ /**
449
+ * The Google Ad Source. Ex: google
450
+ */
451
+ gad_source?: string | null;
452
+
453
+ /**
454
+ * The Google Braid ID. Ex: gbraid123
455
+ */
456
+ gbraid?: string | null;
457
+
458
+ /**
459
+ * The Google Click ID. Ex: gclid123
460
+ */
461
+ gclid?: string | null;
462
+
463
+ /**
464
+ * The host of the current page. Ex: example.com
465
+ */
466
+ host?: string | null;
467
+
468
+ /**
469
+ * Whether the user is in an iframe. Ex: true
470
+ */
471
+ iframe?: boolean | null;
472
+
473
+ /**
474
+ * The Impact Click ID reference. Ex: im_ref123
475
+ */
476
+ im_ref?: string | null;
477
+
478
+ /**
479
+ * The IP address of the user. Ex: 127.0.0.1
480
+ */
481
+ ip?: string | null;
482
+
483
+ /**
484
+ * The Impact Click ID. Ex: irclickid123
485
+ */
486
+ irclickid?: string | null;
487
+
488
+ /**
489
+ * Whether we have detected that the user is a bot. This is set automatically by
490
+ * the Ours server primarily for events tracked through the web SDK.
491
+ */
492
+ is_bot?: boolean | null;
493
+
494
+ /**
495
+ * The LinkedIn Click ID. Ex: li_fat_id123
496
+ */
497
+ li_fat_id?: string | null;
498
+
499
+ /**
500
+ * The Microsoft Click ID. Ex: msclkid123
501
+ */
502
+ msclkid?: string | null;
503
+
504
+ /**
505
+ * The NextDoor Click ID. Ex: ndclid123
506
+ */
507
+ ndclid?: string | null;
508
+
509
+ /**
510
+ * Deprecated
511
+ */
512
+ new_s?: boolean | null;
513
+
514
+ /**
515
+ * The Outbrain click ID, captured from the `ob_click_id` URL parameter (Outbrain
516
+ * `{{ob_click_id}}` macro) on the landing page. Ex: ob_click_abc123
517
+ */
518
+ ob_click_id?: string | null;
519
+
520
+ /**
521
+ * The OpenAI Ads privacy-preserving reference, captured from the `oppref` URL
522
+ * parameter on landing pages (the OpenAI Pixel also stores it in a `__oppref`
523
+ * cookie). Sent to OpenAI Ads on Conversions API events for attribution. Ex:
524
+ * oppref_abc
525
+ */
526
+ oppref?: string | null;
527
+
528
+ /**
529
+ * The name of the operating system. Ex: Windows
530
+ */
531
+ os_name?: string | null;
532
+
533
+ /**
534
+ * The version of the operating system. Ex: 10.0
535
+ */
536
+ os_version?: string | null;
537
+
538
+ /**
539
+ * A random set of numbers for the page load
540
+ */
541
+ page_hash?: number | null;
542
+
543
+ /**
544
+ * The pathname of the current page. Ex: /home
545
+ */
546
+ pathname?: string | null;
547
+
548
+ /**
549
+ * The Quora Click ID. Ex: qclid123
550
+ */
551
+ qclid?: string | null;
552
+
553
+ /**
554
+ * The Reddit Click ID. Ex: rdt_cid123
555
+ */
556
+ rdt_cid?: string | null;
557
+
558
+ /**
559
+ * The time the event was received by an Ours server in ISO format
560
+ */
561
+ received_at?: string | null;
562
+
563
+ /**
564
+ * The referrer URL of the current page
565
+ */
566
+ referrer?: string | null;
567
+
568
+ /**
569
+ * The referring domain of the current page
570
+ */
571
+ referring_domain?: string | null;
572
+
573
+ /**
574
+ * The StackAdapt Tracking ID. Ex: sacid123
575
+ */
576
+ sacid?: string | null;
577
+
578
+ /**
579
+ * The SnapChat Click ID. Ex: sccid123
580
+ */
581
+ sccid?: string | null;
582
+
583
+ /**
584
+ * The height of the screen. Ex: 1080
585
+ */
586
+ screen_height?: number | null;
587
+
588
+ /**
589
+ * The width of the screen. Ex: 1920
590
+ */
591
+ screen_width?: number | null;
592
+
593
+ /**
594
+ * The number of sessions the user has had. Ex: 3
595
+ */
596
+ sessionCount?: number | null;
597
+
598
+ /**
599
+ * The session ID as assigned automatically by the web SDK. This is required for
600
+ * session replay
601
+ */
602
+ sid?: string | null;
603
+
604
+ sr?: string | null;
605
+
606
+ /**
607
+ * The title of the current page
608
+ */
609
+ title?: string | null;
610
+
611
+ /**
612
+ * The TikTok Click ID. Ex: ttclid123
613
+ */
614
+ ttclid?: string | null;
615
+
616
+ /**
617
+ * The Twitter Click ID. Ex: twclid123
618
+ */
619
+ twclid?: string | null;
620
+
621
+ /**
622
+ * User agent as a full list of strings.
623
+ */
624
+ uafvl?: string | null;
625
+
626
+ /**
627
+ * The user agent of the browser
628
+ */
629
+ user_agent?: string | null;
630
+
631
+ /**
632
+ * The UTM Campaign. The web SDK automatically captures this from the query params.
633
+ */
634
+ utm_campaign?: string | null;
635
+
636
+ /**
637
+ * The UTM Content. The web SDK automatically captures this from the query params.
638
+ */
639
+ utm_content?: string | null;
640
+
641
+ /**
642
+ * The UTM Medium. The web SDK automatically captures this from the query params.
643
+ */
644
+ utm_medium?: string | null;
645
+
646
+ /**
647
+ * The UTM Name. The web SDK automatically captures this from the query params.
648
+ */
649
+ utm_name?: string | null;
650
+
651
+ /**
652
+ * The UTM Source. The web SDK automatically captures this from the query params.
653
+ */
654
+ utm_source?: string | null;
655
+
656
+ /**
657
+ * The UTM Term. The web SDK automatically captures this from the query params.
658
+ */
659
+ utm_term?: string | null;
660
+
661
+ /**
662
+ * The SDK version (e.g., web SDK or ingest-sdk-\* via generated SDK headers)
663
+ */
664
+ version?: string | null;
665
+
666
+ /**
667
+ * The Viant (Adelphic) Click ID, captured from the `viant_click_id` URL parameter
668
+ * (Viant `${ADELPHIC_CLICKID}` macro). Sent as `xid` on Viant postbacks. Ex:
669
+ * viant_click_abc123
670
+ */
671
+ viant_click_id?: string | null;
672
+
673
+ /**
674
+ * The Viant (Adelphic) Impression ID, captured from the `viant_impression_id` URL
675
+ * parameter (Viant `${ADELPHIC_IMPRESSIONID}` macro). Sent as `imp_id` on Viant
676
+ * postbacks for post-view attribution. Ex: viant_imp_abc123
677
+ */
678
+ viant_impression_id?: string | null;
679
+
680
+ /**
681
+ * The WBRAID Identifier. The web SDK automatically captures this from the query
682
+ * params.
683
+ */
684
+ wbraid?: string | null;
685
+
686
+ /**
687
+ * Whether the user is in a webview. Ex: true
688
+ */
689
+ webview?: boolean | null;
690
+ }
691
+ }
692
+
276
693
  export declare namespace TestEvents {
277
694
  export {
278
695
  type TestEventListResponse as TestEventListResponse,
@@ -9,8 +9,8 @@ export class TranslationWidgets extends APIResource {
9
9
  /**
10
10
  * List every translation widget configured on the account, including the domains
11
11
  * it runs on, its appearance settings, and the languages it offers. Not paginated
12
- * — widgets are capped by the account's translation widget limit. Requires scope:
13
- * translationWidget:list
12
+ * — widgets are capped by the account's translation widget limit. Requires API-key
13
+ * scope or current OAuth user permission: translationWidget:list
14
14
  *
15
15
  * @example
16
16
  * ```ts
@@ -27,7 +27,8 @@ export class TranslationWidgets extends APIResource {
27
27
  * back as `null` and the widget falls back to its built-in appearance, and
28
28
  * omitting `enabledLanguages` offers every supported language. Returns the full
29
29
  * widget, including its id, so it can be installed without a follow-up request.
30
- * Requires scope: translationWidget:create
30
+ * Requires API-key scope or current OAuth user permission:
31
+ * translationWidget:create
31
32
  *
32
33
  * @example
33
34
  * ```ts
@@ -44,7 +45,7 @@ export class TranslationWidgets extends APIResource {
44
45
 
45
46
  /**
46
47
  * Fetch one translation widget by its id. Returns 404 when it does not exist.
47
- * Requires scope: translationWidget:find
48
+ * Requires API-key scope or current OAuth user permission: translationWidget:find
48
49
  *
49
50
  * @example
50
51
  * ```ts
@@ -60,8 +61,8 @@ export class TranslationWidgets extends APIResource {
60
61
 
61
62
  /**
62
63
  * Return usage totals and language, host, and page breakdowns for one translation
63
- * widget over the requested date range. Requires scope:
64
- * report:translation-analytics
64
+ * widget over the requested date range. Requires API-key scope or current OAuth
65
+ * user permission: report:translation-analytics
65
66
  *
66
67
  * @example
67
68
  * ```ts
@@ -10,7 +10,8 @@ export class Versions extends APIResource {
10
10
  /**
11
11
  * List versions for this account, newest first. Supports cursor pagination and
12
12
  * filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
13
- * with AND semantics. Requires scope: version:list
13
+ * with AND semantics. Requires API-key scope or current OAuth user permission:
14
+ * version:list
14
15
  */
15
16
  list(
16
17
  query: VersionListParams | null | undefined = {},
@@ -35,14 +36,16 @@ export class Versions extends APIResource {
35
36
  * an entity-id allowlist for one collection — omit (or send `[]`) to include every
36
37
  * draft change in that collection, or send a non-empty array to whitelist only
37
38
  * those ids. Unlisted collections inherit wholesale from the latest published
38
- * version. Requires scope: version:publish
39
+ * version. Requires API-key scope or current OAuth user permission:
40
+ * version:publish
39
41
  */
40
42
  create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
41
43
  return this._client.post('/rest/v1/versions', { body, ...options });
42
44
  }
43
45
 
44
46
  /**
45
- * Find a single version by ID. Requires scope: version:find
47
+ * Find a single version by ID. Requires API-key scope or current OAuth user
48
+ * permission: version:find
46
49
  */
47
50
  retrieve(id: string, options?: RequestOptions): APIPromise<VersionRetrieveResponse> {
48
51
  return this._client.get(path`/rest/v1/versions/${id}`, options);
@@ -50,7 +53,7 @@ export class Versions extends APIResource {
50
53
 
51
54
  /**
52
55
  * Partially update a version. Only the fields you send are changed. Requires
53
- * scope: version:update
56
+ * API-key scope or current OAuth user permission: version:update
54
57
  */
55
58
  update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
56
59
  return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
@@ -61,7 +64,7 @@ export class Versions extends APIResource {
61
64
  * to an older snapshot. Returns 409 if the version is already published, was
62
65
  * created more than 45 days ago, or another publish is already in flight. To
63
66
  * create-and-publish from current draft state, use POST /rest/v1/versions instead.
64
- * Requires scope: version:publish
67
+ * Requires API-key scope or current OAuth user permission: version:publish
65
68
  */
66
69
  publish(id: string, options?: RequestOptions): APIPromise<VersionPublishResponse> {
67
70
  return this._client.post(path`/rest/v1/versions/${id}/publish`, options);
@@ -71,8 +74,8 @@ export class Versions extends APIResource {
71
74
  * Retrieve the full JSON snapshot captured by a version — every entity
72
75
  * (destinations, sources, mappings, consent settings, etc.) as it existed when
73
76
  * this version was published. Sensitive fields (API keys, tokens, secrets) are
74
- * redacted. Useful for IaC export, audit, and backup workflows. Requires scope:
75
- * version:find
77
+ * redacted. Useful for IaC export, audit, and backup workflows. Requires API-key
78
+ * scope or current OAuth user permission: version:find
76
79
  */
77
80
  snapshot(id: string, options?: RequestOptions): APIPromise<VersionSnapshotResponse> {
78
81
  return this._client.get(path`/rest/v1/versions/${id}/snapshot`, options);
@@ -97,7 +100,8 @@ export class Versions extends APIResource {
97
100
  * latest published version.
98
101
  * - `GET /rest/v1/versions/{id}/diff?against={otherId}` — compare two specific
99
102
  * versions. `otherId` may also be `draft` to diff a published snapshot against
100
- * the live draft state. Requires scope: version:find
103
+ * the live draft state. Requires API-key scope or current OAuth user permission:
104
+ * version:find
101
105
  */
102
106
  diff(
103
107
  id: 'draft' | (string & {}),
@@ -122,7 +126,7 @@ export class Versions extends APIResource {
122
126
  * `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
123
127
  * one entity. (`draft` is a literal path segment identifying the live draft as the
124
128
  * target, which is why the entity is passed as `entityId` rather than `id`.)
125
- * Requires scope: version:find
129
+ * Requires API-key scope or current OAuth user permission: version:find
126
130
  */
127
131
  status(
128
132
  id: 'draft',
@@ -147,7 +151,8 @@ export class Versions extends APIResource {
147
151
  * use the experiment lifecycle endpoints (`/start`, `/stop`) for those — but
148
152
  * `experimentSettings` is supported. To discard every pending change at once, use
149
153
  * `POST /rest/v1/versions/draft/abandon`. (`draft` is a literal path segment
150
- * identifying the live draft as the target.) Requires scope: version:publish
154
+ * identifying the live draft as the target.) Requires API-key scope or current
155
+ * OAuth user permission: version:publish
151
156
  */
152
157
  revert(
153
158
  id: 'draft',
@@ -165,7 +170,7 @@ export class Versions extends APIResource {
165
170
  * version to revert to, or when another publish or abandon is already in flight.
166
171
  * To revert only specific changes, use `POST /rest/v1/versions/draft/revert`.
167
172
  * (`draft` is a literal path segment identifying the live draft as the target.)
168
- * Requires scope: version:publish
173
+ * Requires API-key scope or current OAuth user permission: version:publish
169
174
  */
170
175
  abandon(id: 'draft', options?: RequestOptions): APIPromise<VersionAbandonResponse> {
171
176
  return this._client.post(path`/rest/v1/versions/${id}/abandon`, options);
@@ -3213,6 +3218,12 @@ export interface VersionListParams extends CursorParams {
3213
3218
  }
3214
3219
 
3215
3220
  export interface VersionCreateParams {
3221
+ /**
3222
+ * Allow publishing web sources without allowed domains for this version. Defaults
3223
+ * to false. Sources without allowed domains accept events from any domain.
3224
+ */
3225
+ bypassWebSourceDomainValidation?: boolean | null;
3226
+
3216
3227
  /**
3217
3228
  * Cherry-pick: allowed event ids (slug-like strings) to include from the draft.
3218
3229
  * Omit or send `[]` to include all draft changes in this collection.