@oursprivacy/platform-sdk 1.51.0 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/allowed-events.d.mts +9 -7
  10. package/resources/allowed-events.d.mts.map +1 -1
  11. package/resources/allowed-events.d.ts +9 -7
  12. package/resources/allowed-events.d.ts.map +1 -1
  13. package/resources/allowed-events.js +9 -7
  14. package/resources/allowed-events.js.map +1 -1
  15. package/resources/allowed-events.mjs +9 -7
  16. package/resources/allowed-events.mjs.map +1 -1
  17. package/resources/analytics.d.mts +4 -2
  18. package/resources/analytics.d.mts.map +1 -1
  19. package/resources/analytics.d.ts +4 -2
  20. package/resources/analytics.d.ts.map +1 -1
  21. package/resources/analytics.js +4 -2
  22. package/resources/analytics.js.map +1 -1
  23. package/resources/analytics.mjs +4 -2
  24. package/resources/analytics.mjs.map +1 -1
  25. package/resources/attribution.d.mts +8 -5
  26. package/resources/attribution.d.mts.map +1 -1
  27. package/resources/attribution.d.ts +8 -5
  28. package/resources/attribution.d.ts.map +1 -1
  29. package/resources/attribution.js +8 -5
  30. package/resources/attribution.js.map +1 -1
  31. package/resources/attribution.mjs +8 -5
  32. package/resources/attribution.mjs.map +1 -1
  33. package/resources/audience-conversion-reports.d.mts +11 -9
  34. package/resources/audience-conversion-reports.d.mts.map +1 -1
  35. package/resources/audience-conversion-reports.d.ts +11 -9
  36. package/resources/audience-conversion-reports.d.ts.map +1 -1
  37. package/resources/audience-conversion-reports.js +11 -9
  38. package/resources/audience-conversion-reports.js.map +1 -1
  39. package/resources/audience-conversion-reports.mjs +11 -9
  40. package/resources/audience-conversion-reports.mjs.map +1 -1
  41. package/resources/consent-analytics.d.mts +2 -1
  42. package/resources/consent-analytics.d.mts.map +1 -1
  43. package/resources/consent-analytics.d.ts +2 -1
  44. package/resources/consent-analytics.d.ts.map +1 -1
  45. package/resources/consent-analytics.js +2 -1
  46. package/resources/consent-analytics.js.map +1 -1
  47. package/resources/consent-analytics.mjs +2 -1
  48. package/resources/consent-analytics.mjs.map +1 -1
  49. package/resources/consent-settings.d.mts +220 -120
  50. package/resources/consent-settings.d.mts.map +1 -1
  51. package/resources/consent-settings.d.ts +220 -120
  52. package/resources/consent-settings.d.ts.map +1 -1
  53. package/resources/consent-settings.js +72 -34
  54. package/resources/consent-settings.js.map +1 -1
  55. package/resources/consent-settings.mjs +72 -34
  56. package/resources/consent-settings.mjs.map +1 -1
  57. package/resources/conversion-journey-summaries.d.mts +10 -5
  58. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  59. package/resources/conversion-journey-summaries.d.ts +10 -5
  60. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  61. package/resources/conversion-journey-summaries.js +10 -5
  62. package/resources/conversion-journey-summaries.js.map +1 -1
  63. package/resources/conversion-journey-summaries.mjs +10 -5
  64. package/resources/conversion-journey-summaries.mjs.map +1 -1
  65. package/resources/data-governance.d.mts +8 -6
  66. package/resources/data-governance.d.mts.map +1 -1
  67. package/resources/data-governance.d.ts +8 -6
  68. package/resources/data-governance.d.ts.map +1 -1
  69. package/resources/data-governance.js +8 -6
  70. package/resources/data-governance.js.map +1 -1
  71. package/resources/data-governance.mjs +8 -6
  72. package/resources/data-governance.mjs.map +1 -1
  73. package/resources/default-mappings.d.mts +6 -5
  74. package/resources/default-mappings.d.mts.map +1 -1
  75. package/resources/default-mappings.d.ts +6 -5
  76. package/resources/default-mappings.d.ts.map +1 -1
  77. package/resources/default-mappings.js +6 -5
  78. package/resources/default-mappings.js.map +1 -1
  79. package/resources/default-mappings.mjs +6 -5
  80. package/resources/default-mappings.mjs.map +1 -1
  81. package/resources/destinations.d.mts +17 -12
  82. package/resources/destinations.d.mts.map +1 -1
  83. package/resources/destinations.d.ts +17 -12
  84. package/resources/destinations.d.ts.map +1 -1
  85. package/resources/destinations.js +12 -7
  86. package/resources/destinations.js.map +1 -1
  87. package/resources/destinations.mjs +12 -7
  88. package/resources/destinations.mjs.map +1 -1
  89. package/resources/experiment-settings.d.mts +9 -6
  90. package/resources/experiment-settings.d.mts.map +1 -1
  91. package/resources/experiment-settings.d.ts +9 -6
  92. package/resources/experiment-settings.d.ts.map +1 -1
  93. package/resources/experiment-settings.js +9 -6
  94. package/resources/experiment-settings.js.map +1 -1
  95. package/resources/experiment-settings.mjs +9 -6
  96. package/resources/experiment-settings.mjs.map +1 -1
  97. package/resources/experiment-variants.d.mts +9 -5
  98. package/resources/experiment-variants.d.mts.map +1 -1
  99. package/resources/experiment-variants.d.ts +9 -5
  100. package/resources/experiment-variants.d.ts.map +1 -1
  101. package/resources/experiment-variants.js +9 -5
  102. package/resources/experiment-variants.js.map +1 -1
  103. package/resources/experiment-variants.mjs +9 -5
  104. package/resources/experiment-variants.mjs.map +1 -1
  105. package/resources/experiments.d.mts +30 -19
  106. package/resources/experiments.d.mts.map +1 -1
  107. package/resources/experiments.d.ts +30 -19
  108. package/resources/experiments.d.ts.map +1 -1
  109. package/resources/experiments.js +30 -19
  110. package/resources/experiments.js.map +1 -1
  111. package/resources/experiments.mjs +30 -19
  112. package/resources/experiments.mjs.map +1 -1
  113. package/resources/funnels.d.mts +11 -10
  114. package/resources/funnels.d.mts.map +1 -1
  115. package/resources/funnels.d.ts +11 -10
  116. package/resources/funnels.d.ts.map +1 -1
  117. package/resources/funnels.js +11 -10
  118. package/resources/funnels.js.map +1 -1
  119. package/resources/funnels.mjs +11 -10
  120. package/resources/funnels.mjs.map +1 -1
  121. package/resources/heatmap-pages.d.mts +3 -2
  122. package/resources/heatmap-pages.d.mts.map +1 -1
  123. package/resources/heatmap-pages.d.ts +3 -2
  124. package/resources/heatmap-pages.d.ts.map +1 -1
  125. package/resources/heatmap-pages.js +3 -2
  126. package/resources/heatmap-pages.js.map +1 -1
  127. package/resources/heatmap-pages.mjs +3 -2
  128. package/resources/heatmap-pages.mjs.map +1 -1
  129. package/resources/index.d.mts +1 -1
  130. package/resources/index.d.mts.map +1 -1
  131. package/resources/index.d.ts +1 -1
  132. package/resources/index.d.ts.map +1 -1
  133. package/resources/index.js.map +1 -1
  134. package/resources/index.mjs.map +1 -1
  135. package/resources/journey-flows.d.mts +17 -12
  136. package/resources/journey-flows.d.mts.map +1 -1
  137. package/resources/journey-flows.d.ts +17 -12
  138. package/resources/journey-flows.d.ts.map +1 -1
  139. package/resources/journey-flows.js +17 -12
  140. package/resources/journey-flows.js.map +1 -1
  141. package/resources/journey-flows.mjs +17 -12
  142. package/resources/journey-flows.mjs.map +1 -1
  143. package/resources/locations.d.mts +6 -5
  144. package/resources/locations.d.mts.map +1 -1
  145. package/resources/locations.d.ts +6 -5
  146. package/resources/locations.d.ts.map +1 -1
  147. package/resources/locations.js +6 -5
  148. package/resources/locations.js.map +1 -1
  149. package/resources/locations.mjs +6 -5
  150. package/resources/locations.mjs.map +1 -1
  151. package/resources/mappings.d.mts +18 -12
  152. package/resources/mappings.d.mts.map +1 -1
  153. package/resources/mappings.d.ts +18 -12
  154. package/resources/mappings.d.ts.map +1 -1
  155. package/resources/mappings.js +18 -12
  156. package/resources/mappings.js.map +1 -1
  157. package/resources/mappings.mjs +18 -12
  158. package/resources/mappings.mjs.map +1 -1
  159. package/resources/personalization-properties.d.mts +10 -7
  160. package/resources/personalization-properties.d.mts.map +1 -1
  161. package/resources/personalization-properties.d.ts +10 -7
  162. package/resources/personalization-properties.d.ts.map +1 -1
  163. package/resources/personalization-properties.js +10 -7
  164. package/resources/personalization-properties.js.map +1 -1
  165. package/resources/personalization-properties.mjs +10 -7
  166. package/resources/personalization-properties.mjs.map +1 -1
  167. package/resources/replay-settings.d.mts +9 -6
  168. package/resources/replay-settings.d.mts.map +1 -1
  169. package/resources/replay-settings.d.ts +9 -6
  170. package/resources/replay-settings.d.ts.map +1 -1
  171. package/resources/replay-settings.js +9 -6
  172. package/resources/replay-settings.js.map +1 -1
  173. package/resources/replay-settings.mjs +9 -6
  174. package/resources/replay-settings.mjs.map +1 -1
  175. package/resources/session-replays.d.mts +4 -2
  176. package/resources/session-replays.d.mts.map +1 -1
  177. package/resources/session-replays.d.ts +4 -2
  178. package/resources/session-replays.d.ts.map +1 -1
  179. package/resources/session-replays.js +4 -2
  180. package/resources/session-replays.js.map +1 -1
  181. package/resources/session-replays.mjs +4 -2
  182. package/resources/session-replays.mjs.map +1 -1
  183. package/resources/short-links.d.mts +11 -7
  184. package/resources/short-links.d.mts.map +1 -1
  185. package/resources/short-links.d.ts +11 -7
  186. package/resources/short-links.d.ts.map +1 -1
  187. package/resources/short-links.js +11 -7
  188. package/resources/short-links.js.map +1 -1
  189. package/resources/short-links.mjs +11 -7
  190. package/resources/short-links.mjs.map +1 -1
  191. package/resources/sources.d.mts +12 -6
  192. package/resources/sources.d.mts.map +1 -1
  193. package/resources/sources.d.ts +12 -6
  194. package/resources/sources.d.ts.map +1 -1
  195. package/resources/sources.js +12 -6
  196. package/resources/sources.js.map +1 -1
  197. package/resources/sources.mjs +12 -6
  198. package/resources/sources.mjs.map +1 -1
  199. package/resources/tag-manager-asset-folders.d.mts +2 -1
  200. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  201. package/resources/tag-manager-asset-folders.d.ts +2 -1
  202. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  203. package/resources/tag-manager-asset-folders.js +2 -1
  204. package/resources/tag-manager-asset-folders.js.map +1 -1
  205. package/resources/tag-manager-asset-folders.mjs +2 -1
  206. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  207. package/resources/tag-manager-folders.d.mts +9 -7
  208. package/resources/tag-manager-folders.d.mts.map +1 -1
  209. package/resources/tag-manager-folders.d.ts +9 -7
  210. package/resources/tag-manager-folders.d.ts.map +1 -1
  211. package/resources/tag-manager-folders.js +9 -7
  212. package/resources/tag-manager-folders.js.map +1 -1
  213. package/resources/tag-manager-folders.mjs +9 -7
  214. package/resources/tag-manager-folders.mjs.map +1 -1
  215. package/resources/tag-manager-tags.d.mts +11 -7
  216. package/resources/tag-manager-tags.d.mts.map +1 -1
  217. package/resources/tag-manager-tags.d.ts +11 -7
  218. package/resources/tag-manager-tags.d.ts.map +1 -1
  219. package/resources/tag-manager-tags.js +10 -6
  220. package/resources/tag-manager-tags.js.map +1 -1
  221. package/resources/tag-manager-tags.mjs +10 -6
  222. package/resources/tag-manager-tags.mjs.map +1 -1
  223. package/resources/tag-manager-triggers.d.mts +12 -7
  224. package/resources/tag-manager-triggers.d.mts.map +1 -1
  225. package/resources/tag-manager-triggers.d.ts +12 -7
  226. package/resources/tag-manager-triggers.d.ts.map +1 -1
  227. package/resources/tag-manager-triggers.js +11 -6
  228. package/resources/tag-manager-triggers.js.map +1 -1
  229. package/resources/tag-manager-triggers.mjs +11 -6
  230. package/resources/tag-manager-triggers.mjs.map +1 -1
  231. package/resources/tag-manager-variables.d.mts +27 -23
  232. package/resources/tag-manager-variables.d.mts.map +1 -1
  233. package/resources/tag-manager-variables.d.ts +27 -23
  234. package/resources/tag-manager-variables.d.ts.map +1 -1
  235. package/resources/tag-manager-variables.js +10 -6
  236. package/resources/tag-manager-variables.js.map +1 -1
  237. package/resources/tag-manager-variables.mjs +10 -6
  238. package/resources/tag-manager-variables.mjs.map +1 -1
  239. package/resources/tag-managers.d.mts +10 -5
  240. package/resources/tag-managers.d.mts.map +1 -1
  241. package/resources/tag-managers.d.ts +10 -5
  242. package/resources/tag-managers.d.ts.map +1 -1
  243. package/resources/tag-managers.js +10 -5
  244. package/resources/tag-managers.js.map +1 -1
  245. package/resources/tag-managers.mjs +10 -5
  246. package/resources/tag-managers.mjs.map +1 -1
  247. package/resources/test-events.d.mts +351 -12
  248. package/resources/test-events.d.mts.map +1 -1
  249. package/resources/test-events.d.ts +351 -12
  250. package/resources/test-events.d.ts.map +1 -1
  251. package/resources/test-events.js +11 -8
  252. package/resources/test-events.js.map +1 -1
  253. package/resources/test-events.mjs +11 -8
  254. package/resources/test-events.mjs.map +1 -1
  255. package/resources/translation-widgets.d.mts +7 -6
  256. package/resources/translation-widgets.d.mts.map +1 -1
  257. package/resources/translation-widgets.d.ts +7 -6
  258. package/resources/translation-widgets.d.ts.map +1 -1
  259. package/resources/translation-widgets.js +7 -6
  260. package/resources/translation-widgets.js.map +1 -1
  261. package/resources/translation-widgets.mjs +7 -6
  262. package/resources/translation-widgets.mjs.map +1 -1
  263. package/resources/versions.d.mts +21 -11
  264. package/resources/versions.d.mts.map +1 -1
  265. package/resources/versions.d.ts +21 -11
  266. package/resources/versions.d.ts.map +1 -1
  267. package/resources/versions.js +16 -11
  268. package/resources/versions.js.map +1 -1
  269. package/resources/versions.mjs +16 -11
  270. package/resources/versions.mjs.map +1 -1
  271. package/resources/video-channels.d.mts +15 -9
  272. package/resources/video-channels.d.mts.map +1 -1
  273. package/resources/video-channels.d.ts +15 -9
  274. package/resources/video-channels.d.ts.map +1 -1
  275. package/resources/video-channels.js +15 -9
  276. package/resources/video-channels.js.map +1 -1
  277. package/resources/video-channels.mjs +15 -9
  278. package/resources/video-channels.mjs.map +1 -1
  279. package/resources/videos.d.mts +21 -14
  280. package/resources/videos.d.mts.map +1 -1
  281. package/resources/videos.d.ts +21 -14
  282. package/resources/videos.d.ts.map +1 -1
  283. package/resources/videos.js +21 -14
  284. package/resources/videos.js.map +1 -1
  285. package/resources/videos.mjs +21 -14
  286. package/resources/videos.mjs.map +1 -1
  287. package/resources/web-analytics.d.mts +14 -9
  288. package/resources/web-analytics.d.mts.map +1 -1
  289. package/resources/web-analytics.d.ts +14 -9
  290. package/resources/web-analytics.d.ts.map +1 -1
  291. package/resources/web-analytics.js +14 -9
  292. package/resources/web-analytics.js.map +1 -1
  293. package/resources/web-analytics.mjs +14 -9
  294. package/resources/web-analytics.mjs.map +1 -1
  295. package/resources/web-scanner-rules.d.mts +10 -6
  296. package/resources/web-scanner-rules.d.mts.map +1 -1
  297. package/resources/web-scanner-rules.d.ts +10 -6
  298. package/resources/web-scanner-rules.d.ts.map +1 -1
  299. package/resources/web-scanner-rules.js +10 -6
  300. package/resources/web-scanner-rules.js.map +1 -1
  301. package/resources/web-scanner-rules.mjs +10 -6
  302. package/resources/web-scanner-rules.mjs.map +1 -1
  303. package/resources/web-scanners.d.mts +26 -19
  304. package/resources/web-scanners.d.mts.map +1 -1
  305. package/resources/web-scanners.d.ts +26 -19
  306. package/resources/web-scanners.d.ts.map +1 -1
  307. package/resources/web-scanners.js +25 -18
  308. package/resources/web-scanners.js.map +1 -1
  309. package/resources/web-scanners.mjs +25 -18
  310. package/resources/web-scanners.mjs.map +1 -1
  311. package/src/client.ts +8 -0
  312. package/src/resources/allowed-events.ts +9 -7
  313. package/src/resources/analytics.ts +4 -2
  314. package/src/resources/attribution.ts +8 -5
  315. package/src/resources/audience-conversion-reports.ts +11 -9
  316. package/src/resources/consent-analytics.ts +2 -1
  317. package/src/resources/consent-settings.ts +264 -120
  318. package/src/resources/conversion-journey-summaries.ts +10 -5
  319. package/src/resources/data-governance.ts +8 -6
  320. package/src/resources/default-mappings.ts +6 -5
  321. package/src/resources/destinations.ts +17 -7
  322. package/src/resources/experiment-settings.ts +9 -6
  323. package/src/resources/experiment-variants.ts +9 -5
  324. package/src/resources/experiments.ts +30 -19
  325. package/src/resources/funnels.ts +11 -10
  326. package/src/resources/heatmap-pages.ts +3 -2
  327. package/src/resources/index.ts +4 -0
  328. package/src/resources/journey-flows.ts +17 -12
  329. package/src/resources/locations.ts +6 -5
  330. package/src/resources/mappings.ts +18 -12
  331. package/src/resources/personalization-properties.ts +10 -7
  332. package/src/resources/replay-settings.ts +9 -6
  333. package/src/resources/session-replays.ts +4 -2
  334. package/src/resources/short-links.ts +11 -7
  335. package/src/resources/sources.ts +12 -6
  336. package/src/resources/tag-manager-asset-folders.ts +2 -1
  337. package/src/resources/tag-manager-folders.ts +9 -7
  338. package/src/resources/tag-manager-tags.ts +11 -7
  339. package/src/resources/tag-manager-triggers.ts +12 -7
  340. package/src/resources/tag-manager-variables.ts +23 -19
  341. package/src/resources/tag-managers.ts +10 -5
  342. package/src/resources/test-events.ts +429 -12
  343. package/src/resources/translation-widgets.ts +7 -6
  344. package/src/resources/versions.ts +22 -11
  345. package/src/resources/video-channels.ts +15 -9
  346. package/src/resources/videos.ts +21 -14
  347. package/src/resources/web-analytics.ts +14 -9
  348. package/src/resources/web-scanner-rules.ts +10 -6
  349. package/src/resources/web-scanners.ts +26 -19
  350. package/src/version.ts +1 -1
  351. package/version.d.mts +1 -1
  352. package/version.d.ts +1 -1
  353. package/version.js +1 -1
  354. package/version.mjs +1 -1
@@ -3,62 +3,97 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class ConsentSettings extends APIResource {
5
5
  /**
6
- * List all consent settings. Requires scope: consentSettings:list
6
+ * List all consent settings. Requires API-key scope or current OAuth user
7
+ * permission: consentSettings:list
7
8
  */
8
9
  list(options?: RequestOptions): APIPromise<ConsentSettingListResponse>;
9
10
  /**
10
- * Create a new consent settings record. POST takes no request body — the server
11
- * initializes the record with defaults (Disabled status, opt-out default rule,
12
- * English translations, necessary/analytics/advertising categories, no regions, no
13
- * whitelisted domains). Configure the record afterward with PATCH (partial update)
14
- * or PUT (full replacement). Returns the same shape as GET so you can read the
15
- * server-assigned `id`, default rule, and categories without a follow-up fetch.
16
- * Requires scope: consentSettings:create
11
+ * Create a new consent setting. POST takes no request body. The new draft is
12
+ * Disabled with no allowed domains, an opt-out default rule, English translations,
13
+ * necessary/analytics/advertising categories, and no regions. Configure it with
14
+ * PATCH or PUT before enabling it. Returns the same fields as GET, including its
15
+ * `id`, default rule, and categories. Requires API-key scope or current OAuth user
16
+ * permission: consentSettings:create
17
17
  */
18
18
  create(options?: RequestOptions): APIPromise<ConsentSettingCreateResponse>;
19
19
  /**
20
- * Find a single consent setting by ID. Requires scope: consentSettings:find
20
+ * Find a single consent setting by ID. Requires API-key scope or current OAuth
21
+ * user permission: consentSettings:find
21
22
  */
22
23
  retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse | null>;
23
24
  /**
24
- * Replace a consent setting. Send the full ConsentSettingsInput body — omitted
25
- * optional fields are reset. Use PATCH for partial updates. Requires scope:
25
+ * Update a consent setting with all required fields. Omitted optional top-level
26
+ * fields retain their saved values; the required default rule and lists are
27
+ * replaced by supplied values. Send null or [] to clear an optional field when
28
+ * allowed. Enabled requires at least one allowed domain in this request. Omitting
29
+ * or clearing `whitelistDomains` with null or [] while Enabled returns an HTTP 400
30
+ * validation error. Disabled settings may have no allowed domains. Use PATCH for
31
+ * partial updates. Requires API-key scope or current OAuth user permission:
26
32
  * consentSettings:update
27
33
  */
28
34
  replace(id: string, body: ConsentSettingReplaceParams, options?: RequestOptions): APIPromise<ConsentSettingReplaceResponse>;
29
35
  /**
30
- * Partially update a consent setting. Send only the fields you want to change —
31
- * every field is optional and unspecified fields are preserved. List-valued fields
32
- * (services, categories, regions) are replaced wholesale when sent. Requires
33
- * scope: consentSettings:update
36
+ * Partially update a consent setting. Omitted fields keep their saved values.
37
+ * List-valued fields (services, categories, regions) are replaced in full when
38
+ * sent. Omitting `whitelistDomains` preserves saved domains; sending it replaces
39
+ * the list. Clear allowed domains with null or [] only when the resulting status
40
+ * is Disabled. Enabled requires at least one allowed domain, either already saved
41
+ * or sent with this request. Invalid combinations return HTTP 400 validation
42
+ * errors. Requires API-key scope or current OAuth user permission:
43
+ * consentSettings:update
34
44
  */
35
45
  update(id: string, body: ConsentSettingUpdateParams, options?: RequestOptions): APIPromise<ConsentSettingUpdateResponse>;
36
46
  /**
37
- * Delete a consent setting. Requires scope: consentSettings:delete
47
+ * Delete a consent setting. Requires API-key scope or current OAuth user
48
+ * permission: consentSettings:delete
38
49
  */
39
50
  delete(id: string, options?: RequestOptions): APIPromise<ConsentSettingDeleteResponse>;
40
51
  /**
41
52
  * Time-series consent analytics for a single consent settings record: banner
42
53
  * views, opt-ins, opt-outs, close-icon clicks, and derived opt-in/out rates per
43
- * UTC day (or per UTC hour with `granularity=HOURLY`). The window is zero-filled
54
+ * UTC hour, day, Monday-based week, or calendar month. The window is zero-filled
44
55
  * so callers get a contiguous series, and rates are person-level
45
- * (`COUNT(DISTINCT visitor_id)`). Use the optional `pagePath` and `region` filters
46
- * to scope to one page or one visitor region; use `compareWithPreviousPeriod=true`
47
- * to also receive the matching prior window. `DAILY` allows a 90-day window;
48
- * `HOURLY` is capped at 14 days. Requires the API-key scope
49
- * `report:consent-analytics` (this endpoint returns consent analytics report data,
50
- * which is PHI-bearing and gated separately from consent-settings management).
51
- * Requires scope: report:consent-analytics
56
+ * (`COUNT(DISTINCT visitor_id)`). Use the JSON-encoded shared analytics `filter`
57
+ * to scope events by source, page, visitor, or session properties; use
58
+ * `compareWithPreviousPeriod=true` to also receive the matching prior window.
59
+ * Included days: at most 180 days for `DAILY`, 365 for `WEEKLY`, 365 for
60
+ * `MONTHLY`, or 14 for `HOURLY`. Partial buckets identify their actual selected
61
+ * dates. Previous-period comparisons are supported for daily and hourly output.
62
+ * Requires the API-key scope `report:consent-analytics` (this endpoint returns
63
+ * consent analytics report data, which is PHI-bearing and gated separately from
64
+ * consent-settings management). Requires API-key scope or current OAuth user
65
+ * permission: report:consent-analytics
52
66
  */
53
67
  analytics(id: string, query: ConsentSettingAnalyticsParams, options?: RequestOptions): APIPromise<ConsentSettingAnalyticsResponse>;
68
+ /**
69
+ * Monthly consent trends over up to 365 included days. Returns unique visitor
70
+ * counts within each UTC calendar month, event counts for dismissals, rates, and
71
+ * partial-month bounds. Uses the same shared analytics filter as the other consent
72
+ * reports. This series-only output omits whole-window totals and breakdowns.
73
+ * Requires API-key scope or current OAuth user permission:
74
+ * report:consent-analytics
75
+ */
76
+ analyticsMonthly(id: string, query: ConsentSettingAnalyticsMonthlyParams, options?: RequestOptions): APIPromise<ConsentSettingAnalyticsMonthlyResponse>;
77
+ /**
78
+ * Returns interval limits for a Consent report kind: SUMMARY, TRENDS, or PAGES.
79
+ * The organization is determined by the API key. Default included days: at most
80
+ * 180 days for `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`;
81
+ * organization limits may narrow these allowances. TRENDS requires
82
+ * report:consent-analytics, PAGES requires report:consent-page-analysis, and
83
+ * SUMMARY requires both. Dates, filters, search and pagination are not part of
84
+ * this request. Requires API-key scope or current OAuth user permission:
85
+ * report:consent-analytics or report:consent-page-analysis
86
+ */
87
+ analyticsCapabilities(query?: ConsentSettingAnalyticsCapabilitiesParams | null | undefined, options?: RequestOptions): APIPromise<ConsentSettingAnalyticsCapabilitiesResponse>;
54
88
  /**
55
89
  * Per-page consent breakdown for one consent settings record, ranked by opt-outs
56
90
  * (descending). Each row bundles banner views, opt-outs, close-icon clicks, and
57
- * the derived opt-out rate. Documented exception to the cursor-pagination
58
- * standard: this endpoint paginates with `limit` and `offset` rather than
59
- * `cursor`. `search` is a substring match against `pathname`; `region` filters to
60
- * one visitor region. Requires the API-key scope `report:consent-page-analysis`
61
- * (PHI-bearing report data). Requires scope: report:consent-page-analysis
91
+ * the derived opt-out rate. Returns `{ entities, pagination }`. Continue with
92
+ * `pagination.nextCursor`; results sort by opt-outs descending, then page path
93
+ * ascending. `search` is a substring match against `pathname`; the JSON-encoded
94
+ * shared analytics `filter` scopes the underlying events. Requires the API-key
95
+ * scope `report:consent-page-analysis` (PHI-bearing report data). Requires API-key
96
+ * scope or current OAuth user permission: report:consent-page-analysis
62
97
  */
63
98
  pageAnalysis(id: string, query: ConsentSettingPageAnalysisParams, options?: RequestOptions): APIPromise<ConsentSettingPageAnalysisResponse>;
64
99
  /**
@@ -66,11 +101,10 @@ export declare class ConsentSettings extends APIResource {
66
101
  * close-icon clicks, and derived rates per visitor `country_region_name`, ranked
67
102
  * by banner views (descending). Visitors whose region cannot be resolved (e.g. bot
68
103
  * traffic, IP geo failure) are bucketed under the literal `Unknown` so per-region
69
- * counts always sum to the global totals. Use this to discover the region names
70
- * you can later pass to the `region` filter on
71
- * `GET /rest/v1/consent-settings/{id}/analytics`. Requires the API-key scope
72
- * `report:consent-analytics` (PHI-bearing report data). Requires scope:
73
- * report:consent-analytics
104
+ * counts always sum to the global totals. Use the JSON-encoded shared analytics
105
+ * `filter` to scope the underlying events. Requires the API-key scope
106
+ * `report:consent-analytics` (PHI-bearing report data). Requires API-key scope or
107
+ * current OAuth user permission: report:consent-analytics
74
108
  */
75
109
  analyticsByRegion(id: string, query: ConsentSettingAnalyticsByRegionParams, options?: RequestOptions): APIPromise<ConsentSettingAnalyticsByRegionResponse>;
76
110
  }
@@ -114,7 +148,8 @@ export declare namespace ConsentSettingListResponse {
114
148
  */
115
149
  services: Array<Entity.Service>;
116
150
  /**
117
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
151
+ * Enabled serves the CMP on its allowed domains and requires at least one.
152
+ * Disabled does not serve the CMP and may have no allowed domains.
118
153
  */
119
154
  status: 'Disabled' | 'Enabled';
120
155
  /**
@@ -153,9 +188,9 @@ export declare namespace ConsentSettingListResponse {
153
188
  */
154
189
  webSDKToken?: string | null;
155
190
  /**
156
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
157
- * derive the broadest matching base domain so consent can persist across matching
158
- * subdomains.
191
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
192
+ * domain; with none configured, the CMP does not run. Matching domains may share
193
+ * consent across subdomains.
159
194
  */
160
195
  whitelistDomains?: Array<string> | null;
161
196
  }
@@ -481,7 +516,8 @@ export interface ConsentSettingCreateResponse {
481
516
  */
482
517
  services: Array<ConsentSettingCreateResponse.Service>;
483
518
  /**
484
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
519
+ * Enabled serves the CMP on its allowed domains and requires at least one.
520
+ * Disabled does not serve the CMP and may have no allowed domains.
485
521
  */
486
522
  status: 'Disabled' | 'Enabled';
487
523
  /**
@@ -520,9 +556,9 @@ export interface ConsentSettingCreateResponse {
520
556
  */
521
557
  webSDKToken?: string | null;
522
558
  /**
523
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
524
- * derive the broadest matching base domain so consent can persist across matching
525
- * subdomains.
559
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
560
+ * domain; with none configured, the CMP does not run. Matching domains may share
561
+ * consent across subdomains.
526
562
  */
527
563
  whitelistDomains?: Array<string> | null;
528
564
  }
@@ -847,7 +883,8 @@ export interface ConsentSettingRetrieveResponse {
847
883
  */
848
884
  services: Array<ConsentSettingRetrieveResponse.Service>;
849
885
  /**
850
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
886
+ * Enabled serves the CMP on its allowed domains and requires at least one.
887
+ * Disabled does not serve the CMP and may have no allowed domains.
851
888
  */
852
889
  status: 'Disabled' | 'Enabled';
853
890
  /**
@@ -886,9 +923,9 @@ export interface ConsentSettingRetrieveResponse {
886
923
  */
887
924
  webSDKToken?: string | null;
888
925
  /**
889
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
890
- * derive the broadest matching base domain so consent can persist across matching
891
- * subdomains.
926
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
927
+ * domain; with none configured, the CMP does not run. Matching domains may share
928
+ * consent across subdomains.
892
929
  */
893
930
  whitelistDomains?: Array<string> | null;
894
931
  }
@@ -1213,7 +1250,8 @@ export interface ConsentSettingReplaceResponse {
1213
1250
  */
1214
1251
  services: Array<ConsentSettingReplaceResponse.Service>;
1215
1252
  /**
1216
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1253
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1254
+ * Disabled does not serve the CMP and may have no allowed domains.
1217
1255
  */
1218
1256
  status: 'Disabled' | 'Enabled';
1219
1257
  /**
@@ -1252,9 +1290,9 @@ export interface ConsentSettingReplaceResponse {
1252
1290
  */
1253
1291
  webSDKToken?: string | null;
1254
1292
  /**
1255
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1256
- * derive the broadest matching base domain so consent can persist across matching
1257
- * subdomains.
1293
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
1294
+ * domain; with none configured, the CMP does not run. Matching domains may share
1295
+ * consent across subdomains.
1258
1296
  */
1259
1297
  whitelistDomains?: Array<string> | null;
1260
1298
  }
@@ -1579,7 +1617,8 @@ export interface ConsentSettingUpdateResponse {
1579
1617
  */
1580
1618
  services: Array<ConsentSettingUpdateResponse.Service>;
1581
1619
  /**
1582
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1620
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1621
+ * Disabled does not serve the CMP and may have no allowed domains.
1583
1622
  */
1584
1623
  status: 'Disabled' | 'Enabled';
1585
1624
  /**
@@ -1618,9 +1657,9 @@ export interface ConsentSettingUpdateResponse {
1618
1657
  */
1619
1658
  webSDKToken?: string | null;
1620
1659
  /**
1621
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1622
- * derive the broadest matching base domain so consent can persist across matching
1623
- * subdomains.
1660
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
1661
+ * domain; with none configured, the CMP does not run. Matching domains may share
1662
+ * consent across subdomains.
1624
1663
  */
1625
1664
  whitelistDomains?: Array<string> | null;
1626
1665
  }
@@ -1945,7 +1984,8 @@ export interface ConsentSettingDeleteResponse {
1945
1984
  */
1946
1985
  services: Array<ConsentSettingDeleteResponse.Service>;
1947
1986
  /**
1948
- * Enabled means the CMP serves on whitelisted domains; Disabled means it does not.
1987
+ * Enabled serves the CMP on its allowed domains and requires at least one.
1988
+ * Disabled does not serve the CMP and may have no allowed domains.
1949
1989
  */
1950
1990
  status: 'Disabled' | 'Enabled';
1951
1991
  /**
@@ -1984,9 +2024,9 @@ export interface ConsentSettingDeleteResponse {
1984
2024
  */
1985
2025
  webSDKToken?: string | null;
1986
2026
  /**
1987
- * Allowlist of domains where this CMP configuration may run. Used at runtime to
1988
- * derive the broadest matching base domain so consent can persist across matching
1989
- * subdomains.
2027
+ * Domains where this CMP may run. An Enabled CMP requires at least one allowed
2028
+ * domain; with none configured, the CMP does not run. Matching domains may share
2029
+ * consent across subdomains.
1990
2030
  */
1991
2031
  whitelistDomains?: Array<string> | null;
1992
2032
  }
@@ -2277,9 +2317,9 @@ export declare namespace ConsentSettingDeleteResponse {
2277
2317
  }
2278
2318
  export interface ConsentSettingAnalyticsResponse {
2279
2319
  /**
2280
- * One entry per time bucket (day or hour, depending on `granularity`) covering the
2281
- * full window — empty windows are zero-filled so callers can render contiguous
2282
- * time series without gap-handling logic.
2320
+ * One entry per time bucket (hour, day, week, or month, depending on
2321
+ * `granularity`) covering the full window — empty windows are zero-filled so
2322
+ * callers can render contiguous time series without gap-handling logic.
2283
2323
  */
2284
2324
  items: Array<ConsentSettingAnalyticsResponse.Item>;
2285
2325
  totals: ConsentSettingAnalyticsResponse.Totals;
@@ -2293,6 +2333,9 @@ export declare namespace ConsentSettingAnalyticsResponse {
2293
2333
  explicitOptOuts: number;
2294
2334
  optInRate: number;
2295
2335
  optOutRate: number;
2336
+ partialPeriod: boolean;
2337
+ periodFrom: string;
2338
+ periodTo: string;
2296
2339
  percentageChangeBannerViews?: number | null;
2297
2340
  percentageChangeCloseIconClicks?: number | null;
2298
2341
  percentageChangeExplicitOptIns?: number | null;
@@ -2313,31 +2356,54 @@ export declare namespace ConsentSettingAnalyticsResponse {
2313
2356
  optOutRate: number;
2314
2357
  }
2315
2358
  }
2359
+ export interface ConsentSettingAnalyticsMonthlyResponse {
2360
+ items: Array<ConsentSettingAnalyticsMonthlyResponse.Item>;
2361
+ }
2362
+ export declare namespace ConsentSettingAnalyticsMonthlyResponse {
2363
+ interface Item {
2364
+ bannerViews: number;
2365
+ closeIconClicks: number;
2366
+ dateTime: string;
2367
+ explicitOptIns: number;
2368
+ explicitOptOuts: number;
2369
+ optInRate: number;
2370
+ optOutRate: number;
2371
+ partialPeriod: boolean;
2372
+ periodFrom: string;
2373
+ periodTo: string;
2374
+ }
2375
+ }
2376
+ export interface ConsentSettingAnalyticsCapabilitiesResponse {
2377
+ expiresAt: string;
2378
+ intervals: Array<ConsentSettingAnalyticsCapabilitiesResponse.Interval>;
2379
+ policyVersion: string;
2380
+ }
2381
+ export declare namespace ConsentSettingAnalyticsCapabilitiesResponse {
2382
+ interface Interval {
2383
+ comparisonSupported: boolean;
2384
+ granularity: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
2385
+ maxIncludedDays: number;
2386
+ }
2387
+ }
2316
2388
  export interface ConsentSettingPageAnalysisResponse {
2317
2389
  /**
2318
- * True when at least one more page is available beyond the current window.
2319
- */
2320
- hasMore: boolean;
2321
- /**
2322
- * Pages with consent activity in the window, ranked by opt-outs (descending). Each
2323
- * page bundles banner views, opt-outs, close-icon clicks, and the derived opt-out
2324
- * rate.
2325
- */
2326
- items: Array<ConsentSettingPageAnalysisResponse.Item>;
2327
- /**
2328
- * Running count of pages loaded so far (`offset + items.length`). Approximate for
2329
- * load-more flows; query without `offset` to get the exact size of the first page.
2390
+ * Pages ranked by opt-outs descending, then page path ascending.
2330
2391
  */
2331
- total: number;
2392
+ entities: Array<ConsentSettingPageAnalysisResponse.Entity>;
2393
+ pagination: ConsentSettingPageAnalysisResponse.Pagination;
2332
2394
  }
2333
2395
  export declare namespace ConsentSettingPageAnalysisResponse {
2334
- interface Item {
2396
+ interface Entity {
2335
2397
  bannerViews: number;
2336
2398
  closeIconClicks: number;
2337
2399
  optOutRate: number;
2338
2400
  optOuts: number;
2339
2401
  page: string;
2340
2402
  }
2403
+ interface Pagination {
2404
+ hasMore: boolean;
2405
+ nextCursor?: string | null;
2406
+ }
2341
2407
  }
2342
2408
  export interface ConsentSettingAnalyticsByRegionResponse {
2343
2409
  /**
@@ -2383,7 +2449,7 @@ export interface ConsentSettingReplaceParams {
2383
2449
  */
2384
2450
  services: Array<ConsentSettingReplaceParams.Service>;
2385
2451
  /**
2386
- * Enabled to serve the CMP, Disabled to take it offline.
2452
+ * Enabled requires at least one allowed domain. Disabled may have none.
2387
2453
  */
2388
2454
  status: 'Disabled' | 'Enabled';
2389
2455
  /**
@@ -2414,7 +2480,9 @@ export interface ConsentSettingReplaceParams {
2414
2480
  */
2415
2481
  webSDKToken?: string | null;
2416
2482
  /**
2417
- * Allowlist of domains where this CMP runs. Pass null/[] to clear.
2483
+ * Domains where this CMP may run. Enabled requires at least one allowed domain;
2484
+ * omitting, null, or [] fails validation when status is Enabled. Disabled may have
2485
+ * none.
2418
2486
  */
2419
2487
  whitelistDomains?: Array<string> | null;
2420
2488
  }
@@ -2747,7 +2815,8 @@ export interface ConsentSettingUpdateParams {
2747
2815
  */
2748
2816
  skipBlockingClassNames?: Array<string> | null;
2749
2817
  /**
2750
- * Toggle Enabled/Disabled without re-sending the rest of the config.
2818
+ * Set Enabled or Disabled. Enabling requires at least one allowed domain, either
2819
+ * already saved or sent with this request.
2751
2820
  */
2752
2821
  status?: 'Disabled' | 'Enabled';
2753
2822
  /**
@@ -2756,7 +2825,8 @@ export interface ConsentSettingUpdateParams {
2756
2825
  */
2757
2826
  webSDKToken?: string | null;
2758
2827
  /**
2759
- * Replace the allowlist. Pass null/[] to clear.
2828
+ * Replace the allowed domains when sent. Omit to preserve saved domains. Pass null
2829
+ * or [] to clear only when the resulting status is Disabled.
2760
2830
  */
2761
2831
  whitelistDomains?: Array<string> | null;
2762
2832
  }
@@ -3048,20 +3118,20 @@ export declare namespace ConsentSettingUpdateParams {
3048
3118
  export interface ConsentSettingAnalyticsParams {
3049
3119
  /**
3050
3120
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3051
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3052
- * (14 for `HOURLY` granularity).
3121
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3122
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3053
3123
  */
3054
3124
  from: string;
3055
3125
  /**
3056
3126
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3057
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3058
- * (14 for `HOURLY` granularity).
3127
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3128
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3059
3129
  */
3060
3130
  to: string;
3061
3131
  /**
3062
- * When `true`, each bucket also returns the matching bucket from the immediately
3063
- * preceding window of equal length (in `previous*` and `percentageChange*`
3064
- * fields). Defaults to `false`.
3132
+ * Supported for DAILY and HOURLY. When `true`, each bucket also returns the
3133
+ * matching bucket from the immediately preceding window of equal length (in
3134
+ * `previous*` and `percentageChange*` fields). Defaults to `false`.
3065
3135
  */
3066
3136
  compareWithPreviousPeriod?: boolean;
3067
3137
  /**
@@ -3080,75 +3150,105 @@ export interface ConsentSettingAnalyticsParams {
3080
3150
  */
3081
3151
  comparisonTo?: string;
3082
3152
  /**
3083
- * Bucket size for the time-series rollup. `DAILY` (default) buckets per UTC day;
3084
- * `HOURLY` buckets per UTC hour and limits the window to 14 days.
3153
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3154
+ * property IDs and operators, including event, session, and custom properties.
3155
+ */
3156
+ filter?: string;
3157
+ /**
3158
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3159
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3160
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3161
+ * reports aggregate the entire selected range.
3162
+ */
3163
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3164
+ }
3165
+ export interface ConsentSettingAnalyticsMonthlyParams {
3166
+ /**
3167
+ * Inclusive lower bound of the analytics window, as a UTC calendar day in
3168
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3169
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3085
3170
  */
3086
- granularity?: 'DAILY' | 'HOURLY';
3171
+ from: string;
3087
3172
  /**
3088
- * Filter to events whose `default_properties.pathname` equals this value (exact
3089
- * match, case-sensitive). Use this to drill into a single page.
3173
+ * Inclusive upper bound of the analytics window, as a UTC calendar day in
3174
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3175
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3090
3176
  */
3091
- pagePath?: string;
3177
+ to: string;
3092
3178
  /**
3093
- * Filter results to events whose `request_context.country_region_name` is in this
3094
- * set. Pass a single region (e.g. `California`) or a comma-separated list
3095
- * (`California,Texas`). Case-sensitive. Use
3096
- * `GET /rest/v1/consent-settings/{id}/analytics-by-region` to discover the region
3097
- * names available for an account.
3179
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3180
+ * property IDs and operators, including event, session, and custom properties.
3098
3181
  */
3099
- regions?: string;
3182
+ filter?: string;
3183
+ }
3184
+ export interface ConsentSettingAnalyticsCapabilitiesParams {
3185
+ kind?: 'PAGES' | 'SUMMARY' | 'TRENDS';
3100
3186
  }
3101
3187
  export interface ConsentSettingPageAnalysisParams {
3102
3188
  /**
3103
3189
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3104
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3105
- * (14 for `HOURLY` granularity).
3190
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3191
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3106
3192
  */
3107
3193
  from: string;
3108
3194
  /**
3109
3195
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3110
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3111
- * (14 for `HOURLY` granularity).
3196
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3197
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3112
3198
  */
3113
3199
  to: string;
3114
3200
  /**
3115
- * Maximum number of pages to return. Defaults to 50.
3201
+ * Opaque cursor from pagination.nextCursor. Omit for the first page.
3116
3202
  */
3117
- limit?: number;
3203
+ cursor?: string;
3118
3204
  /**
3119
- * Skip this many top-ranked pages before returning. Use together with `limit` for
3120
- * load-more pagination.
3205
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3206
+ * property IDs and operators, including event, session, and custom properties.
3121
3207
  */
3122
- offset?: number | null;
3208
+ filter?: string;
3123
3209
  /**
3124
- * Filter results to events whose `request_context.country_region_name` is in this
3125
- * set. Pass a single region (e.g. `California`) or a comma-separated list
3126
- * (`California,Texas`). Case-sensitive. Use
3127
- * `GET /rest/v1/consent-settings/{id}/analytics-by-region` to discover the region
3128
- * names available for an account.
3210
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3211
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3212
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3213
+ * reports aggregate the entire selected range.
3129
3214
  */
3130
- regions?: string;
3215
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3131
3216
  /**
3132
- * Case-sensitive substring match against `default_properties.pathname`. Wrapped in
3133
- * `%...%` server-side.
3217
+ * Maximum number of pages to return. Defaults to 50; clamped to 1–200.
3218
+ */
3219
+ limit?: number | null;
3220
+ /**
3221
+ * Case-sensitive substring match against the page path.
3134
3222
  */
3135
3223
  search?: string;
3136
3224
  }
3137
3225
  export interface ConsentSettingAnalyticsByRegionParams {
3138
3226
  /**
3139
3227
  * Inclusive lower bound of the analytics window, as a UTC calendar day in
3140
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3141
- * (14 for `HOURLY` granularity).
3228
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3229
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3142
3230
  */
3143
3231
  from: string;
3144
3232
  /**
3145
3233
  * Inclusive upper bound of the analytics window, as a UTC calendar day in
3146
- * `YYYY-MM-DD` format. The window between `from` and `to` must be 90 days or fewer
3147
- * (14 for `HOURLY` granularity).
3234
+ * `YYYY-MM-DD` format. Count both selected dates: at most 180 days for `DAILY`,
3235
+ * 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`.
3148
3236
  */
3149
3237
  to: string;
3238
+ /**
3239
+ * JSON-encoded versioned analytics filter. Uses the shared analytics catalog
3240
+ * property IDs and operators, including event, session, and custom properties.
3241
+ */
3242
+ filter?: string;
3243
+ /**
3244
+ * Reporting interval: DAILY (default), WEEKLY (UTC weeks starting Monday), MONTHLY
3245
+ * (UTC calendar months), or HOURLY. Included-day limits: at most 180 days for
3246
+ * `DAILY`, 365 for `WEEKLY`, 365 for `MONTHLY`, or 14 for `HOURLY`. Breakdown
3247
+ * reports aggregate the entire selected range.
3248
+ */
3249
+ granularity?: 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
3150
3250
  }
3151
3251
  export declare namespace ConsentSettings {
3152
- export { type ConsentSettingListResponse as ConsentSettingListResponse, type ConsentSettingCreateResponse as ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse as ConsentSettingRetrieveResponse, type ConsentSettingReplaceResponse as ConsentSettingReplaceResponse, type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse, type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse, type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse, type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse, type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse, type ConsentSettingReplaceParams as ConsentSettingReplaceParams, type ConsentSettingUpdateParams as ConsentSettingUpdateParams, type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams, type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams, type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams, };
3252
+ export { type ConsentSettingListResponse as ConsentSettingListResponse, type ConsentSettingCreateResponse as ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse as ConsentSettingRetrieveResponse, type ConsentSettingReplaceResponse as ConsentSettingReplaceResponse, type ConsentSettingUpdateResponse as ConsentSettingUpdateResponse, type ConsentSettingDeleteResponse as ConsentSettingDeleteResponse, type ConsentSettingAnalyticsResponse as ConsentSettingAnalyticsResponse, type ConsentSettingAnalyticsMonthlyResponse as ConsentSettingAnalyticsMonthlyResponse, type ConsentSettingAnalyticsCapabilitiesResponse as ConsentSettingAnalyticsCapabilitiesResponse, type ConsentSettingPageAnalysisResponse as ConsentSettingPageAnalysisResponse, type ConsentSettingAnalyticsByRegionResponse as ConsentSettingAnalyticsByRegionResponse, type ConsentSettingReplaceParams as ConsentSettingReplaceParams, type ConsentSettingUpdateParams as ConsentSettingUpdateParams, type ConsentSettingAnalyticsParams as ConsentSettingAnalyticsParams, type ConsentSettingAnalyticsMonthlyParams as ConsentSettingAnalyticsMonthlyParams, type ConsentSettingAnalyticsCapabilitiesParams as ConsentSettingAnalyticsCapabilitiesParams, type ConsentSettingPageAnalysisParams as ConsentSettingPageAnalysisParams, type ConsentSettingAnalyticsByRegionParams as ConsentSettingAnalyticsByRegionParams, };
3153
3253
  }
3154
3254
  //# sourceMappingURL=consent-settings.d.ts.map