@oursprivacy/platform-sdk 1.52.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 +7 -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 +6 -4
  248. package/resources/test-events.d.mts.map +1 -1
  249. package/resources/test-events.d.ts +6 -4
  250. package/resources/test-events.d.ts.map +1 -1
  251. package/resources/test-events.js +6 -4
  252. package/resources/test-events.js.map +1 -1
  253. package/resources/test-events.mjs +6 -4
  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 +6 -4
  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
@@ -7,35 +7,41 @@ import { path } from '../internal/utils/path';
7
7
 
8
8
  export class ConsentSettings extends APIResource {
9
9
  /**
10
- * List all consent settings. Requires scope: consentSettings:list
10
+ * List all consent settings. Requires API-key scope or current OAuth user
11
+ * permission: consentSettings:list
11
12
  */
12
13
  list(options?: RequestOptions): APIPromise<ConsentSettingListResponse> {
13
14
  return this._client.get('/rest/v1/consent-settings', options);
14
15
  }
15
16
 
16
17
  /**
17
- * Create a new consent settings record. POST takes no request body — the server
18
- * initializes the record with defaults (Disabled status, opt-out default rule,
19
- * English translations, necessary/analytics/advertising categories, no regions, no
20
- * whitelisted domains). Configure the record afterward with PATCH (partial update)
21
- * or PUT (full replacement). Returns the same shape as GET so you can read the
22
- * server-assigned `id`, default rule, and categories without a follow-up fetch.
23
- * Requires scope: consentSettings:create
18
+ * Create a new consent setting. POST takes no request body. The new draft is
19
+ * Disabled with no allowed domains, an opt-out default rule, English translations,
20
+ * necessary/analytics/advertising categories, and no regions. Configure it with
21
+ * PATCH or PUT before enabling it. Returns the same fields as GET, including its
22
+ * `id`, default rule, and categories. Requires API-key scope or current OAuth user
23
+ * permission: consentSettings:create
24
24
  */
25
25
  create(options?: RequestOptions): APIPromise<ConsentSettingCreateResponse> {
26
26
  return this._client.post('/rest/v1/consent-settings', options);
27
27
  }
28
28
 
29
29
  /**
30
- * Find a single consent setting by ID. Requires scope: consentSettings:find
30
+ * Find a single consent setting by ID. Requires API-key scope or current OAuth
31
+ * user permission: consentSettings:find
31
32
  */
32
33
  retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse | null> {
33
34
  return this._client.get(path`/rest/v1/consent-settings/${id}`, options);
34
35
  }
35
36
 
36
37
  /**
37
- * Replace a consent setting. Send the full ConsentSettingsInput body — omitted
38
- * optional fields are reset. Use PATCH for partial updates. Requires scope:
38
+ * Update a consent setting with all required fields. Omitted optional top-level
39
+ * fields retain their saved values; the required default rule and lists are
40
+ * replaced by supplied values. Send null or [] to clear an optional field when
41
+ * allowed. Enabled requires at least one allowed domain in this request. Omitting
42
+ * or clearing `whitelistDomains` with null or [] while Enabled returns an HTTP 400
43
+ * validation error. Disabled settings may have no allowed domains. Use PATCH for
44
+ * partial updates. Requires API-key scope or current OAuth user permission:
39
45
  * consentSettings:update
40
46
  */
41
47
  replace(
@@ -47,10 +53,14 @@ export class ConsentSettings extends APIResource {
47
53
  }
48
54
 
49
55
  /**
50
- * Partially update a consent setting. Send only the fields you want to change —
51
- * every field is optional and unspecified fields are preserved. List-valued fields
52
- * (services, categories, regions) are replaced wholesale when sent. Requires
53
- * scope: consentSettings:update
56
+ * Partially update a consent setting. Omitted fields keep their saved values.
57
+ * List-valued fields (services, categories, regions) are replaced in full when
58
+ * sent. Omitting `whitelistDomains` preserves saved domains; sending it replaces
59
+ * the list. Clear allowed domains with null or [] only when the resulting status
60
+ * is Disabled. Enabled requires at least one allowed domain, either already saved
61
+ * or sent with this request. Invalid combinations return HTTP 400 validation
62
+ * errors. Requires API-key scope or current OAuth user permission:
63
+ * consentSettings:update
54
64
  */
55
65
  update(
56
66
  id: string,
@@ -61,7 +71,8 @@ export class ConsentSettings extends APIResource {
61
71
  }
62
72
 
63
73
  /**
64
- * Delete a consent setting. Requires scope: consentSettings:delete
74
+ * Delete a consent setting. Requires API-key scope or current OAuth user
75
+ * permission: consentSettings:delete
65
76
  */
66
77
  delete(id: string, options?: RequestOptions): APIPromise<ConsentSettingDeleteResponse> {
67
78
  return this._client.delete(path`/rest/v1/consent-settings/${id}`, options);
@@ -70,15 +81,18 @@ export class ConsentSettings extends APIResource {
70
81
  /**
71
82
  * Time-series consent analytics for a single consent settings record: banner
72
83
  * views, opt-ins, opt-outs, close-icon clicks, and derived opt-in/out rates per
73
- * UTC day (or per UTC hour with `granularity=HOURLY`). The window is zero-filled
84
+ * UTC hour, day, Monday-based week, or calendar month. The window is zero-filled
74
85
  * so callers get a contiguous series, and rates are person-level
75
- * (`COUNT(DISTINCT visitor_id)`). Use the optional `pagePath` and `region` filters
76
- * to scope to one page or one visitor region; use `compareWithPreviousPeriod=true`
77
- * to also receive the matching prior window. `DAILY` allows a 90-day window;
78
- * `HOURLY` is capped at 14 days. Requires the API-key scope
79
- * `report:consent-analytics` (this endpoint returns consent analytics report data,
80
- * which is PHI-bearing and gated separately from consent-settings management).
81
- * Requires scope: report:consent-analytics
86
+ * (`COUNT(DISTINCT visitor_id)`). Use the JSON-encoded shared analytics `filter`
87
+ * to scope events by source, page, visitor, or session properties; use
88
+ * `compareWithPreviousPeriod=true` to also receive the matching prior window.
89
+ * Included days: at most 180 days for `DAILY`, 365 for `WEEKLY`, 365 for
90
+ * `MONTHLY`, or 14 for `HOURLY`. Partial buckets identify their actual selected
91
+ * dates. Previous-period comparisons are supported for daily and hourly output.
92
+ * Requires the API-key scope `report:consent-analytics` (this endpoint returns
93
+ * consent analytics report data, which is PHI-bearing and gated separately from
94
+ * consent-settings management). Requires API-key scope or current OAuth user
95
+ * permission: report:consent-analytics
82
96
  */
83
97
  analytics(
84
98
  id: string,
@@ -88,14 +102,48 @@ export class ConsentSettings extends APIResource {
88
102
  return this._client.get(path`/rest/v1/consent-settings/${id}/analytics`, { query, ...options });
89
103
  }
90
104
 
105
+ /**
106
+ * Monthly consent trends over up to 365 included days. Returns unique visitor
107
+ * counts within each UTC calendar month, event counts for dismissals, rates, and
108
+ * partial-month bounds. Uses the same shared analytics filter as the other consent
109
+ * reports. This series-only output omits whole-window totals and breakdowns.
110
+ * Requires API-key scope or current OAuth user permission:
111
+ * report:consent-analytics
112
+ */
113
+ analyticsMonthly(
114
+ id: string,
115
+ query: ConsentSettingAnalyticsMonthlyParams,
116
+ options?: RequestOptions,
117
+ ): APIPromise<ConsentSettingAnalyticsMonthlyResponse> {
118
+ return this._client.get(path`/rest/v1/consent-settings/${id}/analytics-monthly`, { query, ...options });
119
+ }
120
+
121
+ /**
122
+ * Returns interval limits for a Consent report kind: SUMMARY, TRENDS, or PAGES.
123
+ * The organization is determined by the API key. Default included days: at most
124
+ * 180 days for `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`;
125
+ * organization limits may narrow these allowances. TRENDS requires
126
+ * report:consent-analytics, PAGES requires report:consent-page-analysis, and
127
+ * SUMMARY requires both. Dates, filters, search and pagination are not part of
128
+ * this request. Requires API-key scope or current OAuth user permission:
129
+ * report:consent-analytics or report:consent-page-analysis
130
+ */
131
+ analyticsCapabilities(
132
+ query: ConsentSettingAnalyticsCapabilitiesParams | null | undefined = {},
133
+ options?: RequestOptions,
134
+ ): APIPromise<ConsentSettingAnalyticsCapabilitiesResponse> {
135
+ return this._client.get('/rest/v1/consent-settings/analytics-capabilities', { query, ...options });
136
+ }
137
+
91
138
  /**
92
139
  * Per-page consent breakdown for one consent settings record, ranked by opt-outs
93
140
  * (descending). Each row bundles banner views, opt-outs, close-icon clicks, and
94
- * the derived opt-out rate. Documented exception to the cursor-pagination
95
- * standard: this endpoint paginates with `limit` and `offset` rather than
96
- * `cursor`. `search` is a substring match against `pathname`; `region` filters to
97
- * one visitor region. Requires the API-key scope `report:consent-page-analysis`
98
- * (PHI-bearing report data). Requires scope: report:consent-page-analysis
141
+ * the derived opt-out rate. Returns `{ entities, pagination }`. Continue with
142
+ * `pagination.nextCursor`; results sort by opt-outs descending, then page path
143
+ * ascending. `search` is a substring match against `pathname`; the JSON-encoded
144
+ * shared analytics `filter` scopes the underlying events. Requires the API-key
145
+ * scope `report:consent-page-analysis` (PHI-bearing report data). Requires API-key
146
+ * scope or current OAuth user permission: report:consent-page-analysis
99
147
  */
100
148
  pageAnalysis(
101
149
  id: string,
@@ -110,11 +158,10 @@ export class ConsentSettings extends APIResource {
110
158
  * close-icon clicks, and derived rates per visitor `country_region_name`, ranked
111
159
  * by banner views (descending). Visitors whose region cannot be resolved (e.g. bot
112
160
  * traffic, IP geo failure) are bucketed under the literal `Unknown` so per-region
113
- * counts always sum to the global totals. Use this to discover the region names
114
- * you can later pass to the `region` filter on
115
- * `GET /rest/v1/consent-settings/{id}/analytics`. Requires the API-key scope
116
- * `report:consent-analytics` (PHI-bearing report data). Requires scope:
117
- * report:consent-analytics
161
+ * counts always sum to the global totals. Use the JSON-encoded shared analytics
162
+ * `filter` to scope the underlying events. Requires the API-key scope
163
+ * `report:consent-analytics` (PHI-bearing report data). Requires API-key scope or
164
+ * current OAuth user permission: report:consent-analytics
118
165
  */
119
166
  analyticsByRegion(
120
167
  id: string,
@@ -174,7 +221,8 @@ export namespace ConsentSettingListResponse {
174
221
  services: Array<Entity.Service>;
175
222
 
176
223
  /**
177
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
224
+ * Enabled serves the CMP on its allowed domains and requires at least one.
225
+ * Disabled does not serve the CMP and may have no allowed domains.
178
226
  */
179
227
  status: 'Disabled' | 'Enabled';
180
228
 
@@ -221,9 +269,9 @@ export namespace ConsentSettingListResponse {
221
269
  webSDKToken?: string | null;
222
270
 
223
271
  /**
224
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
225
- * derive the broadest matching base domain so consent can persist across matching
226
- * subdomains.
272
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
273
+ * domain; with none configured, the CMP does not run. Matching domains may share
274
+ * consent across subdomains.
227
275
  */
228
276
  whitelistDomains?: Array<string> | null;
229
277
  }
@@ -614,7 +662,8 @@ export interface ConsentSettingCreateResponse {
614
662
  services: Array<ConsentSettingCreateResponse.Service>;
615
663
 
616
664
  /**
617
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
665
+ * Enabled serves the CMP on its allowed domains and requires at least one.
666
+ * Disabled does not serve the CMP and may have no allowed domains.
618
667
  */
619
668
  status: 'Disabled' | 'Enabled';
620
669
 
@@ -661,9 +710,9 @@ export interface ConsentSettingCreateResponse {
661
710
  webSDKToken?: string | null;
662
711
 
663
712
  /**
664
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
665
- * derive the broadest matching base domain so consent can persist across matching
666
- * subdomains.
713
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
714
+ * domain; with none configured, the CMP does not run. Matching domains may share
715
+ * consent across subdomains.
667
716
  */
668
717
  whitelistDomains?: Array<string> | null;
669
718
  }
@@ -1053,7 +1102,8 @@ export interface ConsentSettingRetrieveResponse {
1053
1102
  services: Array<ConsentSettingRetrieveResponse.Service>;
1054
1103
 
1055
1104
  /**
1056
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1105
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1106
+ * Disabled does not serve the CMP and may have no allowed domains.
1057
1107
  */
1058
1108
  status: 'Disabled' | 'Enabled';
1059
1109
 
@@ -1100,9 +1150,9 @@ export interface ConsentSettingRetrieveResponse {
1100
1150
  webSDKToken?: string | null;
1101
1151
 
1102
1152
  /**
1103
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1104
- * derive the broadest matching base domain so consent can persist across matching
1105
- * subdomains.
1153
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
1154
+ * domain; with none configured, the CMP does not run. Matching domains may share
1155
+ * consent across subdomains.
1106
1156
  */
1107
1157
  whitelistDomains?: Array<string> | null;
1108
1158
  }
@@ -1492,7 +1542,8 @@ export interface ConsentSettingReplaceResponse {
1492
1542
  services: Array<ConsentSettingReplaceResponse.Service>;
1493
1543
 
1494
1544
  /**
1495
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1545
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1546
+ * Disabled does not serve the CMP and may have no allowed domains.
1496
1547
  */
1497
1548
  status: 'Disabled' | 'Enabled';
1498
1549
 
@@ -1539,9 +1590,9 @@ export interface ConsentSettingReplaceResponse {
1539
1590
  webSDKToken?: string | null;
1540
1591
 
1541
1592
  /**
1542
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1543
- * derive the broadest matching base domain so consent can persist across matching
1544
- * subdomains.
1593
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
1594
+ * domain; with none configured, the CMP does not run. Matching domains may share
1595
+ * consent across subdomains.
1545
1596
  */
1546
1597
  whitelistDomains?: Array<string> | null;
1547
1598
  }
@@ -1931,7 +1982,8 @@ export interface ConsentSettingUpdateResponse {
1931
1982
  services: Array<ConsentSettingUpdateResponse.Service>;
1932
1983
 
1933
1984
  /**
1934
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1985
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1986
+ * Disabled does not serve the CMP and may have no allowed domains.
1935
1987
  */
1936
1988
  status: 'Disabled' | 'Enabled';
1937
1989
 
@@ -1978,9 +2030,9 @@ export interface ConsentSettingUpdateResponse {
1978
2030
  webSDKToken?: string | null;
1979
2031
 
1980
2032
  /**
1981
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1982
- * derive the broadest matching base domain so consent can persist across matching
1983
- * subdomains.
2033
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
2034
+ * domain; with none configured, the CMP does not run. Matching domains may share
2035
+ * consent across subdomains.
1984
2036
  */
1985
2037
  whitelistDomains?: Array<string> | null;
1986
2038
  }
@@ -2370,7 +2422,8 @@ export interface ConsentSettingDeleteResponse {
2370
2422
  services: Array<ConsentSettingDeleteResponse.Service>;
2371
2423
 
2372
2424
  /**
2373
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
2425
+ * Enabled serves the CMP on its allowed domains and requires at least one.
2426
+ * Disabled does not serve the CMP and may have no allowed domains.
2374
2427
  */
2375
2428
  status: 'Disabled' | 'Enabled';
2376
2429
 
@@ -2417,9 +2470,9 @@ export interface ConsentSettingDeleteResponse {
2417
2470
  webSDKToken?: string | null;
2418
2471
 
2419
2472
  /**
2420
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
2421
- * derive the broadest matching base domain so consent can persist across matching
2422
- * subdomains.
2473
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
2474
+ * domain; with none configured, the CMP does not run. Matching domains may share
2475
+ * consent across subdomains.
2423
2476
  */
2424
2477
  whitelistDomains?: Array<string> | null;
2425
2478
  }
@@ -2767,9 +2820,9 @@ export namespace ConsentSettingDeleteResponse {
2767
2820
 
2768
2821
  export interface ConsentSettingAnalyticsResponse {
2769
2822
  /**
2770
- * One entry per time bucket (day or hour, depending on `granularity`) covering the
2771
- * full window — empty windows are zero-filled so callers can render contiguous
2772
- * time series without gap-handling logic.
2823
+ * One entry per time bucket (hour, day, week, or month, depending on
2824
+ * `granularity`) covering the full window — empty windows are zero-filled so
2825
+ * callers can render contiguous time series without gap-handling logic.
2773
2826
  */
2774
2827
  items: Array<ConsentSettingAnalyticsResponse.Item>;
2775
2828
 
@@ -2792,6 +2845,12 @@ export namespace ConsentSettingAnalyticsResponse {
2792
2845
 
2793
2846
  optOutRate: number;
2794
2847
 
2848
+ partialPeriod: boolean;
2849
+
2850
+ periodFrom: string;
2851
+
2852
+ periodTo: string;
2853
+
2795
2854
  percentageChangeBannerViews?: number | null;
2796
2855
 
2797
2856
  percentageChangeCloseIconClicks?: number | null;
@@ -2828,28 +2887,63 @@ export namespace ConsentSettingAnalyticsResponse {
2828
2887
  }
2829
2888
  }
2830
2889
 
2831
- export interface ConsentSettingPageAnalysisResponse {
2832
- /**
2833
- * True when at least one more page is available beyond the current window.
2834
- */
2835
- hasMore: boolean;
2890
+ export interface ConsentSettingAnalyticsMonthlyResponse {
2891
+ items: Array<ConsentSettingAnalyticsMonthlyResponse.Item>;
2892
+ }
2836
2893
 
2837
- /**
2838
- * Pages with consent activity in the window, ranked by opt-outs (descending). Each
2839
- * page bundles banner views, opt-outs, close-icon clicks, and the derived opt-out
2840
- * rate.
2841
- */
2842
- items: Array<ConsentSettingPageAnalysisResponse.Item>;
2894
+ export namespace ConsentSettingAnalyticsMonthlyResponse {
2895
+ export interface Item {
2896
+ bannerViews: number;
2897
+
2898
+ closeIconClicks: number;
2899
+
2900
+ dateTime: string;
2901
+
2902
+ explicitOptIns: number;
2903
+
2904
+ explicitOptOuts: number;
2905
+
2906
+ optInRate: number;
2907
+
2908
+ optOutRate: number;
2909
+
2910
+ partialPeriod: boolean;
2911
+
2912
+ periodFrom: string;
2913
+
2914
+ periodTo: string;
2915
+ }
2916
+ }
2917
+
2918
+ export interface ConsentSettingAnalyticsCapabilitiesResponse {
2919
+ expiresAt: string;
2920
+
2921
+ intervals: Array<ConsentSettingAnalyticsCapabilitiesResponse.Interval>;
2922
+
2923
+ policyVersion: string;
2924
+ }
2925
+
2926
+ export namespace ConsentSettingAnalyticsCapabilitiesResponse {
2927
+ export interface Interval {
2928
+ comparisonSupported: boolean;
2929
+
2930
+ granularity: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
2931
+
2932
+ maxIncludedDays: number;
2933
+ }
2934
+ }
2843
2935
 
2936
+ export interface ConsentSettingPageAnalysisResponse {
2844
2937
  /**
2845
- * Running count of pages loaded so far (`offset + items.length`). Approximate for
2846
- * load-more flows; query without `offset` to get the exact size of the first page.
2938
+ * Pages ranked by opt-outs descending, then page path ascending.
2847
2939
  */
2848
- total: number;
2940
+ entities: Array<ConsentSettingPageAnalysisResponse.Entity>;
2941
+
2942
+ pagination: ConsentSettingPageAnalysisResponse.Pagination;
2849
2943
  }
2850
2944
 
2851
2945
  export namespace ConsentSettingPageAnalysisResponse {
2852
- export interface Item {
2946
+ export interface Entity {
2853
2947
  bannerViews: number;
2854
2948
 
2855
2949
  closeIconClicks: number;
@@ -2860,6 +2954,12 @@ export namespace ConsentSettingPageAnalysisResponse {
2860
2954
 
2861
2955
  page: string;
2862
2956
  }
2957
+
2958
+ export interface Pagination {
2959
+ hasMore: boolean;
2960
+
2961
+ nextCursor?: string | null;
2962
+ }
2863
2963
  }
2864
2964
 
2865
2965
  export interface ConsentSettingAnalyticsByRegionResponse {
@@ -2919,7 +3019,7 @@ export interface ConsentSettingReplaceParams {
2919
3019
  services: Array<ConsentSettingReplaceParams.Service>;
2920
3020
 
2921
3021
  /**
2922
- * Enabled to serve the CMP, Disabled to take it offline.
3022
+ * Enabled requires at least one allowed domain. Disabled may have none.
2923
3023
  */
2924
3024
  status: 'Disabled' | 'Enabled';
2925
3025
 
@@ -2957,7 +3057,9 @@ export interface ConsentSettingReplaceParams {
2957
3057
  webSDKToken?: string | null;
2958
3058
 
2959
3059
  /**
2960
- * Allowlist of domains where this CMP runs. Pass null/[] to clear.
3060
+ * Domains where this CMP may run. Enabled requires at least one allowed domain;
3061
+ * omitting, null, or [] fails validation when status is Enabled. Disabled may have
3062
+ * none.
2961
3063
  */
2962
3064
  whitelistDomains?: Array<string> | null;
2963
3065
  }
@@ -3357,7 +3459,8 @@ export interface ConsentSettingUpdateParams {
3357
3459
  skipBlockingClassNames?: Array<string> | null;
3358
3460
 
3359
3461
  /**
3360
- * Toggle Enabled/Disabled without re-sending the rest of the config.
3462
+ * Set Enabled or Disabled. Enabling requires at least one allowed domain, either
3463
+ * already saved or sent with this request.
3361
3464
  */
3362
3465
  status?: 'Disabled' | 'Enabled';
3363
3466
 
@@ -3368,7 +3471,8 @@ export interface ConsentSettingUpdateParams {
3368
3471
  webSDKToken?: string | null;
3369
3472
 
3370
3473
  /**
3371
- * Replace the allowlist. Pass null/[] to clear.
3474
+ * Replace the allowed domains when sent. Omit to preserve saved domains. Pass null
3475
+ * or [] to clear only when the resulting status is Disabled.
3372
3476
  */
3373
3477
  whitelistDomains?: Array<string> | null;
3374
3478
  }
@@ -3717,22 +3821,22 @@ export namespace ConsentSettingUpdateParams {
3717
3821
  export interface ConsentSettingAnalyticsParams {
3718
3822
  /**
3719
3823
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3720
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3721
- * (14 for `HOURLY` granularity).
3824
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3825
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3722
3826
  */
3723
3827
  from: string;
3724
3828
 
3725
3829
  /**
3726
3830
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3727
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3728
- * (14 for `HOURLY` granularity).
3831
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3832
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3729
3833
  */
3730
3834
  to: string;
3731
3835
 
3732
3836
  /**
3733
- * When `true`, each bucket also returns the matching bucket from the immediately
3734
- * preceding window of equal length (in `previous*` and `percentageChange*`
3735
- * fields). Defaults to `false`.
3837
+ * Supported for DAILY and HOURLY. When `true`, each bucket also returns the
3838
+ * matching bucket from the immediately preceding window of equal length (in
3839
+ * `previous*` and `percentageChange*` fields). Defaults to `false`.
3736
3840
  */
3737
3841
  compareWithPreviousPeriod?: boolean;
3738
3842
 
@@ -3754,65 +3858,87 @@ export interface ConsentSettingAnalyticsParams {
3754
3858
  comparisonTo?: string;
3755
3859
 
3756
3860
  /**
3757
- * Bucket size for the time-series rollup. `DAILY` (default) buckets per UTC day;
3758
- * `HOURLY` buckets per UTC hour and limits the window to 14 days.
3861
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3862
+ * property IDs and operators, including event, session, and custom properties.
3863
+ */
3864
+ filter?: string;
3865
+
3866
+ /**
3867
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3868
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3869
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3870
+ * reports aggregate the entire selected range.
3871
+ */
3872
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3873
+ }
3874
+
3875
+ export interface ConsentSettingAnalyticsMonthlyParams {
3876
+ /**
3877
+ * Inclusive lower bound of the analytics window, as a UTC calendar day in
3878
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3879
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3759
3880
  */
3760
- granularity?: 'DAILY' | 'HOURLY';
3881
+ from: string;
3761
3882
 
3762
3883
  /**
3763
- * Filter to events whose `default_properties.pathname` equals this value (exact
3764
- * match, case-sensitive). Use this to drill into a single page.
3884
+ * Inclusive upper bound of the analytics window, as a UTC calendar day in
3885
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3886
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3765
3887
  */
3766
- pagePath?: string;
3888
+ to: string;
3767
3889
 
3768
3890
  /**
3769
- * Filter results to events whose `request_context.country_region_name` is in this
3770
- * set. Pass a single region (e.g. `California`) or a comma-separated list
3771
- * (`California,Texas`). Case-sensitive. Use
3772
- * `GET /rest/v1/consent-settings/{id}/analytics-by-region` to discover the region
3773
- * names available for an account.
3891
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3892
+ * property IDs and operators, including event, session, and custom properties.
3774
3893
  */
3775
- regions?: string;
3894
+ filter?: string;
3895
+ }
3896
+
3897
+ export interface ConsentSettingAnalyticsCapabilitiesParams {
3898
+ kind?: 'PAGES' | 'SUMMARY' | 'TRENDS';
3776
3899
  }
3777
3900
 
3778
3901
  export interface ConsentSettingPageAnalysisParams {
3779
3902
  /**
3780
3903
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3781
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3782
- * (14 for `HOURLY` granularity).
3904
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3905
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3783
3906
  */
3784
3907
  from: string;
3785
3908
 
3786
3909
  /**
3787
3910
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3788
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3789
- * (14 for `HOURLY` granularity).
3911
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3912
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3790
3913
  */
3791
3914
  to: string;
3792
3915
 
3793
3916
  /**
3794
- * Maximum number of pages to return. Defaults to 50.
3917
+ * Opaque cursor from pagination.nextCursor. Omit for the first page.
3795
3918
  */
3796
- limit?: number;
3919
+ cursor?: string;
3797
3920
 
3798
3921
  /**
3799
- * Skip this many top-ranked pages before returning. Use together with `limit` for
3800
- * load-more pagination.
3922
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3923
+ * property IDs and operators, including event, session, and custom properties.
3801
3924
  */
3802
- offset?: number | null;
3925
+ filter?: string;
3803
3926
 
3804
3927
  /**
3805
- * Filter results to events whose `request_context.country_region_name` is in this
3806
- * set. Pass a single region (e.g. `California`) or a comma-separated list
3807
- * (`California,Texas`). Case-sensitive. Use
3808
- * `GET /rest/v1/consent-settings/{id}/analytics-by-region` to discover the region
3809
- * names available for an account.
3928
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3929
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3930
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3931
+ * reports aggregate the entire selected range.
3810
3932
  */
3811
- regions?: string;
3933
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3812
3934
 
3813
3935
  /**
3814
- * Case-sensitive substring match against `default_properties.pathname`. Wrapped in
3815
- * `%...%` server-side.
3936
+ * Maximum number of pages to return. Defaults to 50; clamped to 1–200.
3937
+ */
3938
+ limit?: number | null;
3939
+
3940
+ /**
3941
+ * Case-sensitive substring match against the page path.
3816
3942
  */
3817
3943
  search?: string;
3818
3944
  }
@@ -3820,17 +3946,31 @@ export interface ConsentSettingPageAnalysisParams {
3820
3946
  export interface ConsentSettingAnalyticsByRegionParams {
3821
3947
  /**
3822
3948
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3823
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3824
- * (14 for `HOURLY` granularity).
3949
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3950
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3825
3951
  */
3826
3952
  from: string;
3827
3953
 
3828
3954
  /**
3829
3955
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3830
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3831
- * (14 for `HOURLY` granularity).
3956
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3957
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3832
3958
  */
3833
3959
  to: string;
3960
+
3961
+ /**
3962
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3963
+ * property IDs and operators, including event, session, and custom properties.
3964
+ */
3965
+ filter?: string;
3966
+
3967
+ /**
3968
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3969
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3970
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3971
+ * reports aggregate the entire selected range.
3972
+ */
3973
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3834
3974
  }
3835
3975
 
3836
3976
  export declare namespace ConsentSettings {
@@ -3842,11 +3982,15 @@ export declare namespace ConsentSettings {
3842
3982
  type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse,
3843
3983
  type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse,
3844
3984
  type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse,
3985
+ type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse,
3986
+ type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse,
3845
3987
  type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse,
3846
3988
  type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse,
3847
3989
  type ConsentSettingReplaceParams as ConsentSettingReplaceParams,
3848
3990
  type ConsentSettingUpdateParams as ConsentSettingUpdateParams,
3849
3991
  type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams,
3992
+ type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams,
3993
+ type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams,
3850
3994
  type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams,
3851
3995
  type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams,
3852
3996
  };