@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
@@ -8,7 +8,7 @@ class WebScanners extends resource_1.APIResource {
8
8
  /**
9
9
  * List every web scanner for this account. Not paginated — accounts have a small
10
10
  * number of scanners in practice, so the response always fits in a single page.
11
- * Requires scope: webScanner:list
11
+ * Requires API-key scope or current OAuth user permission: webScanner:list
12
12
  *
13
13
  * @example
14
14
  * ```ts
@@ -26,10 +26,10 @@ class WebScanners extends resource_1.APIResource {
26
26
  * automatically after creation on a best-effort basis; the returned entity may not
27
27
  * yet reflect asynchronous scan-state changes. `rootDomain` is required; missing,
28
28
  * empty, or malformed values are rejected as HTTP 400. Everything else falls back
29
- * to defaults (`status: Enabled`, `urlLimit: 100`, `scanSchedule: weekly`, no
29
+ * to defaults (`status: Enabled`, `urlLimit: 1000`, `scanSchedule: weekly`, no
30
30
  * excluded patterns, no extra seed URLs). Invalid configuration or account limits
31
- * return HTTP 409. Requires scope: `webScanner:create`. Requires scope:
32
- * webScanner:create
31
+ * return HTTP 409. Requires scope: `webScanner:create`. Requires API-key scope or
32
+ * current OAuth user permission: webScanner:create
33
33
  *
34
34
  * @example
35
35
  * ```ts
@@ -42,7 +42,8 @@ class WebScanners extends resource_1.APIResource {
42
42
  return this._client.post('/rest/v1/web-scanners', { body, ...options });
43
43
  }
44
44
  /**
45
- * Find a single web scanner by ID. Requires scope: webScanner:find
45
+ * Find a single web scanner by ID. Requires API-key scope or current OAuth user
46
+ * permission: webScanner:find
46
47
  *
47
48
  * @example
48
49
  * ```ts
@@ -58,7 +59,7 @@ class WebScanners extends resource_1.APIResource {
58
59
  * `includedUrls`) are replaced wholesale when sent. If `rootDomain` is provided
59
60
  * and malformed, the request is rejected as HTTP 400. Use
60
61
  * `POST /rest/v1/web-scanners/{id}/trigger` to start a new scan after edits.
61
- * Requires scope: webScanner:update
62
+ * Requires API-key scope or current OAuth user permission: webScanner:update
62
63
  *
63
64
  * @example
64
65
  * ```ts
@@ -70,7 +71,8 @@ class WebScanners extends resource_1.APIResource {
70
71
  }
71
72
  /**
72
73
  * Delete a web scanner. Associated suppression rules are deleted in the same
73
- * operation. Requires scope: webScanner:delete
74
+ * operation. Requires API-key scope or current OAuth user permission:
75
+ * webScanner:delete
74
76
  *
75
77
  * @example
76
78
  * ```ts
@@ -88,7 +90,7 @@ class WebScanners extends resource_1.APIResource {
88
90
  * rate-limited: a 409 is returned if another scan is already in flight, or if this
89
91
  * production monitor has `urlLimit >= 5000` and its previous scan completed within
90
92
  * the last 10 minutes; the reason is in the response `error` field. Requires
91
- * scope: webScanner:trigger
93
+ * API-key scope or current OAuth user permission: webScanner:trigger
92
94
  *
93
95
  * @example
94
96
  * ```ts
@@ -103,7 +105,7 @@ class WebScanners extends resource_1.APIResource {
103
105
  * scheduler. Every in-scope page in this scan uses the credentials. Set
104
106
  * `scanSchedule` to `manual` when your scheduler should be the only source of
105
107
  * scans. Credential values are not returned or included in scan results. Requires
106
- * scope: webScanner:trigger
108
+ * API-key scope or current OAuth user permission: webScanner:trigger
107
109
  *
108
110
  * @example
109
111
  * ```ts
@@ -129,7 +131,8 @@ class WebScanners extends resource_1.APIResource {
129
131
  * Queue an isolated verification capture for one exact in-scope page. This does
130
132
  * not update monitor history, inventory counts, or the monitor-wide last-scanned
131
133
  * timestamp. Poll the verification-run endpoint with the returned id for terminal
132
- * evidence. Requires scope: webScanner:trigger
134
+ * evidence. Requires API-key scope or current OAuth user permission:
135
+ * webScanner:trigger
133
136
  *
134
137
  * @example
135
138
  * ```ts
@@ -145,7 +148,7 @@ class WebScanners extends resource_1.APIResource {
145
148
  /**
146
149
  * Read a UUID-addressed one-page verification run. The run is isolated from normal
147
150
  * monitor history and is returned only when it belongs to the requested scanner.
148
- * Requires scope: webScanner:find
151
+ * Requires API-key scope or current OAuth user permission: webScanner:find
149
152
  *
150
153
  * @example
151
154
  * ```ts
@@ -162,7 +165,8 @@ class WebScanners extends resource_1.APIResource {
162
165
  * List the one-page verification runs recorded for this scanner, newest first,
163
166
  * each with its own capture counts. Verification runs are isolated from monitor
164
167
  * history and never affect inventory counts or the monitor-wide last-scanned
165
- * timestamp. Requires scope: webScanner:find
168
+ * timestamp. Requires API-key scope or current OAuth user permission:
169
+ * webScanner:find
166
170
  *
167
171
  * @example
168
172
  * ```ts
@@ -188,7 +192,8 @@ class WebScanners extends resource_1.APIResource {
188
192
  * a suppression rule still needs a triage decision — resolve it by adding the host
189
193
  * to a CMP consent service or by creating a suppression rule with
190
194
  * `POST /rest/v1/web-scanner-rules`. Use `GET /rest/v1/web-scanners/{id}/summary`
191
- * for the rolled-up counts. Requires scope: webScanner:find
195
+ * for the rolled-up counts. Requires API-key scope or current OAuth user
196
+ * permission: webScanner:find
192
197
  *
193
198
  * @example
194
199
  * ```ts
@@ -204,7 +209,7 @@ class WebScanners extends resource_1.APIResource {
204
209
  * used to select the run) to read an earlier run. Cookies paginate with `limit`
205
210
  * and `offset` (a documented exception to the cursor-pagination standard, since
206
211
  * each run is an immutable snapshot); local-storage entries are returned in full.
207
- * Requires scope: webScanner:find
212
+ * Requires API-key scope or current OAuth user permission: webScanner:find
208
213
  *
209
214
  * @example
210
215
  * ```ts
@@ -227,8 +232,8 @@ class WebScanners extends resource_1.APIResource {
227
232
  * the calendar day is used to select the run) to read an earlier run. Clear a host
228
233
  * that needs a decision by adding it to a CMP consent service or creating a
229
234
  * suppression rule with `POST /rest/v1/web-scanner-rules`. When the scanner has no
230
- * completed runs, every count is 0 and `runDate` is null. Requires scope:
231
- * webScanner:find
235
+ * completed runs, every count is 0 and `runDate` is null. Requires API-key scope
236
+ * or current OAuth user permission: webScanner:find
232
237
  *
233
238
  * @example
234
239
  * ```ts
@@ -244,7 +249,8 @@ class WebScanners extends resource_1.APIResource {
244
249
  * are sorted by risk and hostname. Continue with pagination.nextCursor while
245
250
  * preserving runRevision and coverageRevision; changed evidence returns HTTP 400
246
251
  * and requires restarting from the first page. Historical runs are evaluated
247
- * against current coverage configuration. Requires scope: webScanner:find
252
+ * against current coverage configuration. Requires API-key scope or current OAuth
253
+ * user permission: webScanner:find
248
254
  *
249
255
  * @example
250
256
  * ```ts
@@ -260,7 +266,8 @@ class WebScanners extends resource_1.APIResource {
260
266
  * Resolve one hostname from a revision-bound Web Scanner decision queue by
261
267
  * creating an exact-host suppression rule. The request is bound to the reviewed
262
268
  * run, and retrying the same idempotency key returns the recorded outcome without
263
- * repeating the write. Requires scope: webScanner:update
269
+ * repeating the write. Requires API-key scope or current OAuth user permission:
270
+ * webScanner:update
264
271
  *
265
272
  * @example
266
273
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"web-scanners.js","sourceRoot":"","sources":["../src/resources/web-scanners.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAU,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,OAAO,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;;;;;;;;;;;;OAoBG;IACH,OAAO,CACL,EAAU,EACV,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CACX,EAAU,EACV,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,CAChB,EAAU,EACV,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;CACF;AA/UD,kCA+UC"}
@@ -5,7 +5,7 @@ export class WebScanners extends APIResource {
5
5
  /**
6
6
  * List every web scanner for this account. Not paginated — accounts have a small
7
7
  * number of scanners in practice, so the response always fits in a single page.
8
- * Requires scope: webScanner:list
8
+ * Requires API-key scope or current OAuth user permission: webScanner:list
9
9
  *
10
10
  * @example
11
11
  * ```ts
@@ -23,10 +23,10 @@ export class WebScanners extends APIResource {
23
23
  * automatically after creation on a best-effort basis; the returned entity may not
24
24
  * yet reflect asynchronous scan-state changes. `rootDomain` is required; missing,
25
25
  * empty, or malformed values are rejected as HTTP 400. Everything else falls back
26
- * to defaults (`status: Enabled`, `urlLimit: 100`, `scanSchedule: weekly`, no
26
+ * to defaults (`status: Enabled`, `urlLimit: 1000`, `scanSchedule: weekly`, no
27
27
  * excluded patterns, no extra seed URLs). Invalid configuration or account limits
28
- * return HTTP 409. Requires scope: `webScanner:create`. Requires scope:
29
- * webScanner:create
28
+ * return HTTP 409. Requires scope: `webScanner:create`. Requires API-key scope or
29
+ * current OAuth user permission: webScanner:create
30
30
  *
31
31
  * @example
32
32
  * ```ts
@@ -39,7 +39,8 @@ export class WebScanners extends APIResource {
39
39
  return this._client.post('/rest/v1/web-scanners', { body, ...options });
40
40
  }
41
41
  /**
42
- * Find a single web scanner by ID. Requires scope: webScanner:find
42
+ * Find a single web scanner by ID. Requires API-key scope or current OAuth user
43
+ * permission: webScanner:find
43
44
  *
44
45
  * @example
45
46
  * ```ts
@@ -55,7 +56,7 @@ export class WebScanners extends APIResource {
55
56
  * `includedUrls`) are replaced wholesale when sent. If `rootDomain` is provided
56
57
  * and malformed, the request is rejected as HTTP 400. Use
57
58
  * `POST /rest/v1/web-scanners/{id}/trigger` to start a new scan after edits.
58
- * Requires scope: webScanner:update
59
+ * Requires API-key scope or current OAuth user permission: webScanner:update
59
60
  *
60
61
  * @example
61
62
  * ```ts
@@ -67,7 +68,8 @@ export class WebScanners extends APIResource {
67
68
  }
68
69
  /**
69
70
  * Delete a web scanner. Associated suppression rules are deleted in the same
70
- * operation. Requires scope: webScanner:delete
71
+ * operation. Requires API-key scope or current OAuth user permission:
72
+ * webScanner:delete
71
73
  *
72
74
  * @example
73
75
  * ```ts
@@ -85,7 +87,7 @@ export class WebScanners extends APIResource {
85
87
  * rate-limited: a 409 is returned if another scan is already in flight, or if this
86
88
  * production monitor has `urlLimit >= 5000` and its previous scan completed within
87
89
  * the last 10 minutes; the reason is in the response `error` field. Requires
88
- * scope: webScanner:trigger
90
+ * API-key scope or current OAuth user permission: webScanner:trigger
89
91
  *
90
92
  * @example
91
93
  * ```ts
@@ -100,7 +102,7 @@ export class WebScanners extends APIResource {
100
102
  * scheduler. Every in-scope page in this scan uses the credentials. Set
101
103
  * `scanSchedule` to `manual` when your scheduler should be the only source of
102
104
  * scans. Credential values are not returned or included in scan results. Requires
103
- * scope: webScanner:trigger
105
+ * API-key scope or current OAuth user permission: webScanner:trigger
104
106
  *
105
107
  * @example
106
108
  * ```ts
@@ -126,7 +128,8 @@ export class WebScanners extends APIResource {
126
128
  * Queue an isolated verification capture for one exact in-scope page. This does
127
129
  * not update monitor history, inventory counts, or the monitor-wide last-scanned
128
130
  * timestamp. Poll the verification-run endpoint with the returned id for terminal
129
- * evidence. Requires scope: webScanner:trigger
131
+ * evidence. Requires API-key scope or current OAuth user permission:
132
+ * webScanner:trigger
130
133
  *
131
134
  * @example
132
135
  * ```ts
@@ -142,7 +145,7 @@ export class WebScanners extends APIResource {
142
145
  /**
143
146
  * Read a UUID-addressed one-page verification run. The run is isolated from normal
144
147
  * monitor history and is returned only when it belongs to the requested scanner.
145
- * Requires scope: webScanner:find
148
+ * Requires API-key scope or current OAuth user permission: webScanner:find
146
149
  *
147
150
  * @example
148
151
  * ```ts
@@ -159,7 +162,8 @@ export class WebScanners extends APIResource {
159
162
  * List the one-page verification runs recorded for this scanner, newest first,
160
163
  * each with its own capture counts. Verification runs are isolated from monitor
161
164
  * history and never affect inventory counts or the monitor-wide last-scanned
162
- * timestamp. Requires scope: webScanner:find
165
+ * timestamp. Requires API-key scope or current OAuth user permission:
166
+ * webScanner:find
163
167
  *
164
168
  * @example
165
169
  * ```ts
@@ -185,7 +189,8 @@ export class WebScanners extends APIResource {
185
189
  * a suppression rule still needs a triage decision — resolve it by adding the host
186
190
  * to a CMP consent service or by creating a suppression rule with
187
191
  * `POST /rest/v1/web-scanner-rules`. Use `GET /rest/v1/web-scanners/{id}/summary`
188
- * for the rolled-up counts. Requires scope: webScanner:find
192
+ * for the rolled-up counts. Requires API-key scope or current OAuth user
193
+ * permission: webScanner:find
189
194
  *
190
195
  * @example
191
196
  * ```ts
@@ -201,7 +206,7 @@ export class WebScanners extends APIResource {
201
206
  * used to select the run) to read an earlier run. Cookies paginate with `limit`
202
207
  * and `offset` (a documented exception to the cursor-pagination standard, since
203
208
  * each run is an immutable snapshot); local-storage entries are returned in full.
204
- * Requires scope: webScanner:find
209
+ * Requires API-key scope or current OAuth user permission: webScanner:find
205
210
  *
206
211
  * @example
207
212
  * ```ts
@@ -224,8 +229,8 @@ export class WebScanners extends APIResource {
224
229
  * the calendar day is used to select the run) to read an earlier run. Clear a host
225
230
  * that needs a decision by adding it to a CMP consent service or creating a
226
231
  * suppression rule with `POST /rest/v1/web-scanner-rules`. When the scanner has no
227
- * completed runs, every count is 0 and `runDate` is null. Requires scope:
228
- * webScanner:find
232
+ * completed runs, every count is 0 and `runDate` is null. Requires API-key scope
233
+ * or current OAuth user permission: webScanner:find
229
234
  *
230
235
  * @example
231
236
  * ```ts
@@ -241,7 +246,8 @@ export class WebScanners extends APIResource {
241
246
  * are sorted by risk and hostname. Continue with pagination.nextCursor while
242
247
  * preserving runRevision and coverageRevision; changed evidence returns HTTP 400
243
248
  * and requires restarting from the first page. Historical runs are evaluated
244
- * against current coverage configuration. Requires scope: webScanner:find
249
+ * against current coverage configuration. Requires API-key scope or current OAuth
250
+ * user permission: webScanner:find
245
251
  *
246
252
  * @example
247
253
  * ```ts
@@ -257,7 +263,8 @@ export class WebScanners extends APIResource {
257
263
  * Resolve one hostname from a revision-bound Web Scanner decision queue by
258
264
  * creating an exact-host suppression rule. The request is bound to the reviewed
259
265
  * run, and retrying the same idempotency key returns the recorded outcome without
260
- * repeating the write. Requires scope: webScanner:update
266
+ * repeating the write. Requires API-key scope or current OAuth user permission:
267
+ * webScanner:update
261
268
  *
262
269
  * @example
263
270
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"web-scanners.mjs","sourceRoot":"","sources":["../src/resources/web-scanners.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,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iB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,CAChB,EAAU,EACV,IAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,yBAAyB,EAAE,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -68,6 +68,10 @@ import {
68
68
  import {
69
69
  ConsentSettingAnalyticsByRegionParams,
70
70
  ConsentSettingAnalyticsByRegionResponse,
71
+ ConsentSettingAnalyticsCapabilitiesParams,
72
+ ConsentSettingAnalyticsCapabilitiesResponse,
73
+ ConsentSettingAnalyticsMonthlyParams,
74
+ ConsentSettingAnalyticsMonthlyResponse,
71
75
  ConsentSettingAnalyticsParams,
72
76
  ConsentSettingAnalyticsResponse,
73
77
  ConsentSettingCreateResponse,
@@ -94,6 +98,14 @@ import {
94
98
  ConversionJourneySummaryUpdateParams,
95
99
  ConversionJourneySummaryUpdateResponse,
96
100
  } from './resources/conversion-journey-summaries';
101
+ import {
102
+ CustomDomainCreateResponse,
103
+ CustomDomainReconcileCertificateResponse,
104
+ CustomDomainReplaceParams,
105
+ CustomDomainReplaceResponse,
106
+ CustomDomainStatusResponse,
107
+ CustomDomains,
108
+ } from './resources/custom-domains';
97
109
  import {
98
110
  DataGovernance,
99
111
  DataGovernanceCreateParams,
@@ -244,6 +256,10 @@ import {
244
256
  MappingListResponse,
245
257
  MappingListResponsesCursor,
246
258
  MappingModificationsResponse,
259
+ MappingRenameParams,
260
+ MappingRenamePreviewParams,
261
+ MappingRenamePreviewResponse,
262
+ MappingRenameResponse,
247
263
  MappingReorderParams,
248
264
  MappingReorderResponse,
249
265
  MappingRetrieveResponse,
@@ -253,6 +269,7 @@ import {
253
269
  MappingUpdateResponse,
254
270
  Mappings,
255
271
  } from './resources/mappings';
272
+ import { Me, MeRetrieveResponse } from './resources/me';
256
273
  import {
257
274
  PersonalizationProperties,
258
275
  PersonalizationPropertyCreateParams,
@@ -373,6 +390,8 @@ import {
373
390
  TagManagerCreateResponse,
374
391
  TagManagerDeleteResponse,
375
392
  TagManagerListResponse,
393
+ TagManagerPreviewParams,
394
+ TagManagerPreviewResponse,
376
395
  TagManagerRetrieveResponse,
377
396
  TagManagerUpdateParams,
378
397
  TagManagerUpdateResponse,
@@ -1296,7 +1315,9 @@ export class OursPrivacyPlatform {
1296
1315
  webAnalytics: API.WebAnalytics = new API.WebAnalytics(this);
1297
1316
  webScannerRules: API.WebScannerRules = new API.WebScannerRules(this);
1298
1317
  webScanners: API.WebScanners = new API.WebScanners(this);
1318
+ me: API.Me = new API.Me(this);
1299
1319
  personalizationProperties: API.PersonalizationProperties = new API.PersonalizationProperties(this);
1320
+ customDomains: API.CustomDomains = new API.CustomDomains(this);
1300
1321
  analytics: API.Analytics = new API.Analytics(this);
1301
1322
  journeyFlows: API.JourneyFlows = new API.JourneyFlows(this);
1302
1323
  testEvents: API.TestEvents = new API.TestEvents(this);
@@ -1335,7 +1356,9 @@ OursPrivacyPlatform.VideoChannels = VideoChannels;
1335
1356
  OursPrivacyPlatform.WebAnalytics = WebAnalytics;
1336
1357
  OursPrivacyPlatform.WebScannerRules = WebScannerRules;
1337
1358
  OursPrivacyPlatform.WebScanners = WebScanners;
1359
+ OursPrivacyPlatform.Me = Me;
1338
1360
  OursPrivacyPlatform.PersonalizationProperties = PersonalizationProperties;
1361
+ OursPrivacyPlatform.CustomDomains = CustomDomains;
1339
1362
  OursPrivacyPlatform.Analytics = Analytics;
1340
1363
  OursPrivacyPlatform.JourneyFlows = JourneyFlows;
1341
1364
  OursPrivacyPlatform.TestEvents = TestEvents;
@@ -1399,11 +1422,15 @@ export declare namespace OursPrivacyPlatform {
1399
1422
  type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
1400
1423
  type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
1401
1424
  type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
1425
+ type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse,
1426
+ type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse,
1402
1427
  type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
1403
1428
  type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse,
1404
1429
  type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
1405
1430
  type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
1406
1431
  type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
1432
+ type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams,
1433
+ type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams,
1407
1434
  type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
1408
1435
  type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams,
1409
1436
  };
@@ -1557,6 +1584,8 @@ export declare namespace OursPrivacyPlatform {
1557
1584
  type MappingRetrieveResponse as MappingRetrieveResponse,
1558
1585
  type MappingUpdateResponse as MappingUpdateResponse,
1559
1586
  type MappingDeleteResponse as MappingDeleteResponse,
1587
+ type MappingRenamePreviewResponse as MappingRenamePreviewResponse,
1588
+ type MappingRenameResponse as MappingRenameResponse,
1560
1589
  type MappingReorderResponse as MappingReorderResponse,
1561
1590
  type MappingTemplatesResponse as MappingTemplatesResponse,
1562
1591
  type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
@@ -1566,6 +1595,8 @@ export declare namespace OursPrivacyPlatform {
1566
1595
  type MappingListParams as MappingListParams,
1567
1596
  type MappingCreateParams as MappingCreateParams,
1568
1597
  type MappingUpdateParams as MappingUpdateParams,
1598
+ type MappingRenamePreviewParams as MappingRenamePreviewParams,
1599
+ type MappingRenameParams as MappingRenameParams,
1569
1600
  type MappingReorderParams as MappingReorderParams,
1570
1601
  type MappingTemplatesParams as MappingTemplatesParams,
1571
1602
  };
@@ -1623,11 +1654,13 @@ export declare namespace OursPrivacyPlatform {
1623
1654
 
1624
1655
  export {
1625
1656
  TagManagers as TagManagers,
1657
+ type TagManagerPreviewResponse as TagManagerPreviewResponse,
1626
1658
  type TagManagerListResponse as TagManagerListResponse,
1627
1659
  type TagManagerCreateResponse as TagManagerCreateResponse,
1628
1660
  type TagManagerRetrieveResponse as TagManagerRetrieveResponse,
1629
1661
  type TagManagerUpdateResponse as TagManagerUpdateResponse,
1630
1662
  type TagManagerDeleteResponse as TagManagerDeleteResponse,
1663
+ type TagManagerPreviewParams as TagManagerPreviewParams,
1631
1664
  type TagManagerCreateParams as TagManagerCreateParams,
1632
1665
  type TagManagerUpdateParams as TagManagerUpdateParams,
1633
1666
  };
@@ -1831,6 +1864,8 @@ export declare namespace OursPrivacyPlatform {
1831
1864
  type WebScannerResolveCoverageGapParams as WebScannerResolveCoverageGapParams,
1832
1865
  };
1833
1866
 
1867
+ export { Me as Me, type MeRetrieveResponse as MeRetrieveResponse };
1868
+
1834
1869
  export {
1835
1870
  PersonalizationProperties as PersonalizationProperties,
1836
1871
  type PersonalizationPropertyListResponse as PersonalizationPropertyListResponse,
@@ -1844,6 +1879,15 @@ export declare namespace OursPrivacyPlatform {
1844
1879
  type PersonalizationPropertyUpdateParams as PersonalizationPropertyUpdateParams,
1845
1880
  };
1846
1881
 
1882
+ export {
1883
+ CustomDomains as CustomDomains,
1884
+ type CustomDomainStatusResponse as CustomDomainStatusResponse,
1885
+ type CustomDomainCreateResponse as CustomDomainCreateResponse,
1886
+ type CustomDomainReplaceResponse as CustomDomainReplaceResponse,
1887
+ type CustomDomainReconcileCertificateResponse as CustomDomainReconcileCertificateResponse,
1888
+ type CustomDomainReplaceParams as CustomDomainReplaceParams,
1889
+ };
1890
+
1847
1891
  export {
1848
1892
  Analytics as Analytics,
1849
1893
  type AnalyticsQueryCatalogResponse as AnalyticsQueryCatalogResponse,
@@ -13,8 +13,8 @@ export class AllowedEvents extends APIResource {
13
13
  * event's `destinationIds`. Events without a matching allowed event are dropped.
14
14
  * The list is not paginated; the per-account count is bounded. System events
15
15
  * (names beginning with `$`, e.g. `$heatmap_click`) are hidden from the response —
16
- * only `$identify` is creatable as an allowed event. Requires scope:
17
- * allowedEvent:list
16
+ * only `$identify` is creatable as an allowed event. Requires API-key scope or
17
+ * current OAuth user permission: allowedEvent:list
18
18
  */
19
19
  list(options?: RequestOptions): APIPromise<AllowedEventListResponse> {
20
20
  return this._client.get('/rest/v1/allowed-events', options);
@@ -35,7 +35,7 @@ export class AllowedEvents extends APIResource {
35
35
  * `createdAt`, and the filtered `destinationIds` without a follow-up GET. Known
36
36
  * input failures (duplicate name, name length, `$`-prefix reservation, empty name)
37
37
  * are returned as HTTP 409 with the reason in the response `error` field. Requires
38
- * scope: allowedEvent:create
38
+ * API-key scope or current OAuth user permission: allowedEvent:create
39
39
  */
40
40
  create(body: AllowedEventCreateParams, options?: RequestOptions): APIPromise<AllowedEventCreateResponse> {
41
41
  return this._client.post('/rest/v1/allowed-events', { body, ...options });
@@ -43,8 +43,8 @@ export class AllowedEvents extends APIResource {
43
43
 
44
44
  /**
45
45
  * Fetch a single allowed event by id. Returns 404 when no record matches the
46
- * supplied id or it belongs to a different account. Requires scope:
47
- * allowedEvent:find
46
+ * supplied id or it belongs to a different account. Requires API-key scope or
47
+ * current OAuth user permission: allowedEvent:find
48
48
  */
49
49
  retrieve(id: string, options?: RequestOptions): APIPromise<AllowedEventRetrieveResponse> {
50
50
  return this._client.get(path`/rest/v1/allowed-events/${id}`, options);
@@ -64,7 +64,8 @@ export class AllowedEvents extends APIResource {
64
64
  *
65
65
  * Returns the full entity. Known input failures (duplicate name, length,
66
66
  * `$`-prefix, empty name) are returned as HTTP 409 with the reason in the response
67
- * `error` field. Requires scope: allowedEvent:update
67
+ * `error` field. Requires API-key scope or current OAuth user permission:
68
+ * allowedEvent:update
68
69
  */
69
70
  update(
70
71
  id: string,
@@ -77,7 +78,8 @@ export class AllowedEvents extends APIResource {
77
78
  /**
78
79
  * Delete an allowed event. After deletion, inbound events whose `event` field
79
80
  * matches the deleted name are no longer routed and are dropped at the allow-list
80
- * stage of the dispatch flow. Requires scope: allowedEvent:delete
81
+ * stage of the dispatch flow. Requires API-key scope or current OAuth user
82
+ * permission: allowedEvent:delete
81
83
  */
82
84
  delete(id: string, options?: RequestOptions): APIPromise<AllowedEventDeleteResponse> {
83
85
  return this._client.delete(path`/rest/v1/allowed-events/${id}`, options);
@@ -7,7 +7,8 @@ import { RequestOptions } from '../internal/request-options';
7
7
  export class Analytics extends APIResource {
8
8
  /**
9
9
  * Discover the filter properties, operators, and providers available to analytics
10
- * query definitions. Requires scope: variables:find-default
10
+ * query definitions. Requires API-key scope or current OAuth user permission:
11
+ * variables:find-default
11
12
  */
12
13
  queryCatalog(options?: RequestOptions): APIPromise<AnalyticsQueryCatalogResponse> {
13
14
  return this._client.get('/rest/v1/analytics/query-catalog', options);
@@ -17,7 +18,8 @@ export class Analytics extends APIResource {
17
18
  * Discover property paths recently observed in event data. Results are suggestions
18
19
  * from a fixed recent 30-day sample and may be incomplete; callers can still use
19
20
  * manually entered paths. Use `eventName` and `sourceId` to narrow the
20
- * suggestions. Requires scope: variables:find-custom, web-analytics:view
21
+ * suggestions. Requires API-key scope or current OAuth user permission:
22
+ * variables:find-custom, web-analytics:view
21
23
  */
22
24
  propertySuggestions(
23
25
  query: AnalyticsPropertySuggestionsParams | null | undefined = {},
@@ -12,7 +12,7 @@ export class Attribution extends APIResource {
12
12
  * analysis window (max 60 days). Optionally filter to a specific UTM combo with
13
13
  * `utmSource`, `utmMedium`, etc. The counts represent unique visitors who
14
14
  * performed the specified `eventName` and were attributed to each UTM value.
15
- * Requires scope: web-analytics:view
15
+ * Requires API-key scope or current OAuth user permission: web-analytics:view
16
16
  */
17
17
  initial(query: AttributionInitialParams, options?: RequestOptions): APIPromise<AttributionInitialResponse> {
18
18
  return this._client.get('/rest/v1/attribution/initial', { query, ...options });
@@ -24,7 +24,8 @@ export class Attribution extends APIResource {
24
24
  * a last-touch basis for the given date window. Use `from`/`to` to set the
25
25
  * analysis window (max 60 days). The counts represent unique visitors who
26
26
  * performed the specified `eventName` and were attributed to each UTM value on
27
- * their most recent session. Requires scope: web-analytics:view
27
+ * their most recent session. Requires API-key scope or current OAuth user
28
+ * permission: web-analytics:view
28
29
  */
29
30
  lastTouch(
30
31
  query: AttributionLastTouchParams,
@@ -38,7 +39,8 @@ export class Attribution extends APIResource {
38
39
  * hierarchy with attributed converter credits distributed according to the
39
40
  * selected `attributionModel`. Scoped to all web sources by default; optionally
40
41
  * narrow to a single web source via `webSourceId`. Date range is capped at 31
41
- * days; lookback window is capped at 60 days. Requires scope: web-analytics:view
42
+ * days; lookback window is capped at 60 days. Requires API-key scope or current
43
+ * OAuth user permission: web-analytics:view
42
44
  */
43
45
  conversion(
44
46
  query: AttributionConversionParams,
@@ -52,7 +54,8 @@ export class Attribution extends APIResource {
52
54
  * conversion rate for the selected event and date window, a per-day timeseries,
53
55
  * and a UTM source/medium/campaign breakdown. Optionally compare against the
54
56
  * preceding period of equal length when `attributionWindow` is `IN_RANGE`. Date
55
- * range is capped at 60 days. Requires scope: web-analytics:view
57
+ * range is capped at 60 days. Requires API-key scope or current OAuth user
58
+ * permission: web-analytics:view
56
59
  */
57
60
  audienceConversion(
58
61
  query: AttributionAudienceConversionParams,
@@ -68,7 +71,7 @@ export class Attribution extends APIResource {
68
71
  * `web-analytics:view` and `report:event-count-by-day` API-key scopes. Date range
69
72
  * is capped at 31 days. Pass `combos` as a single JSON-encoded array:
70
73
  * `combos=[{"utmSource":"google","utmMedium":"cpc"},{"utmSource":"meta"}]`.
71
- * Requires scope: web-analytics:view
74
+ * Requires API-key scope or current OAuth user permission: web-analytics:view
72
75
  */
73
76
  utmComparison(
74
77
  query: AttributionUtmComparisonParams,
@@ -8,7 +8,8 @@ import { path } from '../internal/utils/path';
8
8
  export class AudienceConversionReports extends APIResource {
9
9
  /**
10
10
  * List saved Audience Performance report configurations, most recently updated
11
- * first. Requires scope: web-analytics:view
11
+ * first. Requires API-key scope or current OAuth user permission:
12
+ * web-analytics:view
12
13
  */
13
14
  list(options?: RequestOptions): APIPromise<AudienceConversionReportListResponse> {
14
15
  return this._client.get('/rest/v1/audience-conversion-reports', options);
@@ -16,8 +17,8 @@ export class AudienceConversionReports extends APIResource {
16
17
 
17
18
  /**
18
19
  * Save an Audience Performance report configuration. Returns the full report so
19
- * callers can run or update it without another request. Requires scope:
20
- * web-analytics:write
20
+ * callers can run or update it without another request. Requires API-key scope or
21
+ * current OAuth user permission: web-analytics:write
21
22
  */
22
23
  create(
23
24
  body: AudienceConversionReportCreateParams,
@@ -27,8 +28,8 @@ export class AudienceConversionReports extends APIResource {
27
28
  }
28
29
 
29
30
  /**
30
- * Fetch a saved Audience Performance report by id. Requires scope:
31
- * web-analytics:view
31
+ * Fetch a saved Audience Performance report by id. Requires API-key scope or
32
+ * current OAuth user permission: web-analytics:view
32
33
  */
33
34
  retrieve(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportRetrieveResponse> {
34
35
  return this._client.get(path`/rest/v1/audience-conversion-reports/${id}`, options);
@@ -37,7 +38,7 @@ export class AudienceConversionReports extends APIResource {
37
38
  /**
38
39
  * Update a saved Audience Performance report. Omitted fields remain unchanged,
39
40
  * `filters: []` clears all filters, and dates must be sent or cleared as a pair.
40
- * Requires scope: web-analytics:write
41
+ * Requires API-key scope or current OAuth user permission: web-analytics:write
41
42
  */
42
43
  update(
43
44
  id: string,
@@ -48,8 +49,8 @@ export class AudienceConversionReports extends APIResource {
48
49
  }
49
50
 
50
51
  /**
51
- * Delete a saved Audience Performance report configuration. Requires scope:
52
- * web-analytics:write
52
+ * Delete a saved Audience Performance report configuration. Requires API-key scope
53
+ * or current OAuth user permission: web-analytics:write
53
54
  */
54
55
  delete(id: string, options?: RequestOptions): APIPromise<AudienceConversionReportDeleteResponse> {
55
56
  return this._client.delete(path`/rest/v1/audience-conversion-reports/${id}`, options);
@@ -58,7 +59,8 @@ export class AudienceConversionReports extends APIResource {
58
59
  /**
59
60
  * Run a saved Audience Performance report. `from` and `to` override the saved date
60
61
  * range when provided together. Returns 400 when neither a saved range nor an
61
- * override is available. Requires scope: web-analytics:view
62
+ * override is available. Requires API-key scope or current OAuth user permission:
63
+ * web-analytics:view
62
64
  */
63
65
  results(
64
66
  id: string,
@@ -15,7 +15,8 @@ export class ConsentAnalytics extends APIResource {
15
15
  * derived-read exception. Requires the API-key scope
16
16
  * `report:global-consent-center-analytics` (this is the account-wide consent
17
17
  * analytics report and is gated separately from consent-settings list). Requires
18
- * scope: report:global-consent-center-analytics
18
+ * API-key scope or current OAuth user permission:
19
+ * report:global-consent-center-analytics
19
20
  */
20
21
  list(
21
22
  query: ConsentAnalyticsListParams,