@oursprivacy/platform-sdk 1.52.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +12 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/resources/allowed-events.d.mts +9 -7
  12. package/resources/allowed-events.d.mts.map +1 -1
  13. package/resources/allowed-events.d.ts +9 -7
  14. package/resources/allowed-events.d.ts.map +1 -1
  15. package/resources/allowed-events.js +9 -7
  16. package/resources/allowed-events.js.map +1 -1
  17. package/resources/allowed-events.mjs +9 -7
  18. package/resources/allowed-events.mjs.map +1 -1
  19. package/resources/analytics.d.mts +4 -2
  20. package/resources/analytics.d.mts.map +1 -1
  21. package/resources/analytics.d.ts +4 -2
  22. package/resources/analytics.d.ts.map +1 -1
  23. package/resources/analytics.js +4 -2
  24. package/resources/analytics.js.map +1 -1
  25. package/resources/analytics.mjs +4 -2
  26. package/resources/analytics.mjs.map +1 -1
  27. package/resources/attribution.d.mts +8 -5
  28. package/resources/attribution.d.mts.map +1 -1
  29. package/resources/attribution.d.ts +8 -5
  30. package/resources/attribution.d.ts.map +1 -1
  31. package/resources/attribution.js +8 -5
  32. package/resources/attribution.js.map +1 -1
  33. package/resources/attribution.mjs +8 -5
  34. package/resources/attribution.mjs.map +1 -1
  35. package/resources/audience-conversion-reports.d.mts +11 -9
  36. package/resources/audience-conversion-reports.d.mts.map +1 -1
  37. package/resources/audience-conversion-reports.d.ts +11 -9
  38. package/resources/audience-conversion-reports.d.ts.map +1 -1
  39. package/resources/audience-conversion-reports.js +11 -9
  40. package/resources/audience-conversion-reports.js.map +1 -1
  41. package/resources/audience-conversion-reports.mjs +11 -9
  42. package/resources/audience-conversion-reports.mjs.map +1 -1
  43. package/resources/consent-analytics.d.mts +2 -1
  44. package/resources/consent-analytics.d.mts.map +1 -1
  45. package/resources/consent-analytics.d.ts +2 -1
  46. package/resources/consent-analytics.d.ts.map +1 -1
  47. package/resources/consent-analytics.js +2 -1
  48. package/resources/consent-analytics.js.map +1 -1
  49. package/resources/consent-analytics.mjs +2 -1
  50. package/resources/consent-analytics.mjs.map +1 -1
  51. package/resources/consent-settings.d.mts +6238 -650
  52. package/resources/consent-settings.d.mts.map +1 -1
  53. package/resources/consent-settings.d.ts +6238 -650
  54. package/resources/consent-settings.d.ts.map +1 -1
  55. package/resources/consent-settings.js +72 -34
  56. package/resources/consent-settings.js.map +1 -1
  57. package/resources/consent-settings.mjs +72 -34
  58. package/resources/consent-settings.mjs.map +1 -1
  59. package/resources/conversion-journey-summaries.d.mts +10 -5
  60. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  61. package/resources/conversion-journey-summaries.d.ts +10 -5
  62. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  63. package/resources/conversion-journey-summaries.js +10 -5
  64. package/resources/conversion-journey-summaries.js.map +1 -1
  65. package/resources/conversion-journey-summaries.mjs +10 -5
  66. package/resources/conversion-journey-summaries.mjs.map +1 -1
  67. package/resources/custom-domains.d.mts +301 -0
  68. package/resources/custom-domains.d.mts.map +1 -0
  69. package/resources/custom-domains.d.ts +301 -0
  70. package/resources/custom-domains.d.ts.map +1 -0
  71. package/resources/custom-domains.js +55 -0
  72. package/resources/custom-domains.js.map +1 -0
  73. package/resources/custom-domains.mjs +51 -0
  74. package/resources/custom-domains.mjs.map +1 -0
  75. package/resources/data-governance.d.mts +83 -21
  76. package/resources/data-governance.d.mts.map +1 -1
  77. package/resources/data-governance.d.ts +83 -21
  78. package/resources/data-governance.d.ts.map +1 -1
  79. package/resources/data-governance.js +8 -6
  80. package/resources/data-governance.js.map +1 -1
  81. package/resources/data-governance.mjs +8 -6
  82. package/resources/data-governance.mjs.map +1 -1
  83. package/resources/default-mappings.d.mts +213 -8
  84. package/resources/default-mappings.d.mts.map +1 -1
  85. package/resources/default-mappings.d.ts +213 -8
  86. package/resources/default-mappings.d.ts.map +1 -1
  87. package/resources/default-mappings.js +6 -5
  88. package/resources/default-mappings.js.map +1 -1
  89. package/resources/default-mappings.mjs +6 -5
  90. package/resources/default-mappings.mjs.map +1 -1
  91. package/resources/destinations.d.mts +45 -20
  92. package/resources/destinations.d.mts.map +1 -1
  93. package/resources/destinations.d.ts +45 -20
  94. package/resources/destinations.d.ts.map +1 -1
  95. package/resources/destinations.js +12 -7
  96. package/resources/destinations.js.map +1 -1
  97. package/resources/destinations.mjs +12 -7
  98. package/resources/destinations.mjs.map +1 -1
  99. package/resources/experiment-settings.d.mts +9 -6
  100. package/resources/experiment-settings.d.mts.map +1 -1
  101. package/resources/experiment-settings.d.ts +9 -6
  102. package/resources/experiment-settings.d.ts.map +1 -1
  103. package/resources/experiment-settings.js +9 -6
  104. package/resources/experiment-settings.js.map +1 -1
  105. package/resources/experiment-settings.mjs +9 -6
  106. package/resources/experiment-settings.mjs.map +1 -1
  107. package/resources/experiment-variants.d.mts +126 -19
  108. package/resources/experiment-variants.d.mts.map +1 -1
  109. package/resources/experiment-variants.d.ts +126 -19
  110. package/resources/experiment-variants.d.ts.map +1 -1
  111. package/resources/experiment-variants.js +9 -5
  112. package/resources/experiment-variants.js.map +1 -1
  113. package/resources/experiment-variants.mjs +9 -5
  114. package/resources/experiment-variants.mjs.map +1 -1
  115. package/resources/experiments.d.mts +4009 -272
  116. package/resources/experiments.d.mts.map +1 -1
  117. package/resources/experiments.d.ts +4009 -272
  118. package/resources/experiments.d.ts.map +1 -1
  119. package/resources/experiments.js +30 -19
  120. package/resources/experiments.js.map +1 -1
  121. package/resources/experiments.mjs +30 -19
  122. package/resources/experiments.mjs.map +1 -1
  123. package/resources/funnels.d.mts +659 -17
  124. package/resources/funnels.d.mts.map +1 -1
  125. package/resources/funnels.d.ts +659 -17
  126. package/resources/funnels.d.ts.map +1 -1
  127. package/resources/funnels.js +11 -10
  128. package/resources/funnels.js.map +1 -1
  129. package/resources/funnels.mjs +11 -10
  130. package/resources/funnels.mjs.map +1 -1
  131. package/resources/heatmap-pages.d.mts +3 -2
  132. package/resources/heatmap-pages.d.mts.map +1 -1
  133. package/resources/heatmap-pages.d.ts +3 -2
  134. package/resources/heatmap-pages.d.ts.map +1 -1
  135. package/resources/heatmap-pages.js +3 -2
  136. package/resources/heatmap-pages.js.map +1 -1
  137. package/resources/heatmap-pages.mjs +3 -2
  138. package/resources/heatmap-pages.mjs.map +1 -1
  139. package/resources/index.d.mts +5 -3
  140. package/resources/index.d.mts.map +1 -1
  141. package/resources/index.d.ts +5 -3
  142. package/resources/index.d.ts.map +1 -1
  143. package/resources/index.js +5 -1
  144. package/resources/index.js.map +1 -1
  145. package/resources/index.mjs +2 -0
  146. package/resources/index.mjs.map +1 -1
  147. package/resources/journey-flows.d.mts +597 -28
  148. package/resources/journey-flows.d.mts.map +1 -1
  149. package/resources/journey-flows.d.ts +597 -28
  150. package/resources/journey-flows.d.ts.map +1 -1
  151. package/resources/journey-flows.js +17 -12
  152. package/resources/journey-flows.js.map +1 -1
  153. package/resources/journey-flows.mjs +17 -12
  154. package/resources/journey-flows.mjs.map +1 -1
  155. package/resources/locations.d.mts +31 -10
  156. package/resources/locations.d.mts.map +1 -1
  157. package/resources/locations.d.ts +31 -10
  158. package/resources/locations.d.ts.map +1 -1
  159. package/resources/locations.js +6 -5
  160. package/resources/locations.js.map +1 -1
  161. package/resources/locations.mjs +6 -5
  162. package/resources/locations.mjs.map +1 -1
  163. package/resources/mappings.d.mts +558 -24
  164. package/resources/mappings.d.mts.map +1 -1
  165. package/resources/mappings.d.ts +558 -24
  166. package/resources/mappings.d.ts.map +1 -1
  167. package/resources/mappings.js +40 -12
  168. package/resources/mappings.js.map +1 -1
  169. package/resources/mappings.mjs +40 -12
  170. package/resources/mappings.mjs.map +1 -1
  171. package/resources/me.d.mts +29 -0
  172. package/resources/me.d.mts.map +1 -0
  173. package/resources/me.d.ts +29 -0
  174. package/resources/me.d.ts.map +1 -0
  175. package/resources/me.js +17 -0
  176. package/resources/me.js.map +1 -0
  177. package/resources/me.mjs +13 -0
  178. package/resources/me.mjs.map +1 -0
  179. package/resources/personalization-properties.d.mts +10 -7
  180. package/resources/personalization-properties.d.mts.map +1 -1
  181. package/resources/personalization-properties.d.ts +10 -7
  182. package/resources/personalization-properties.d.ts.map +1 -1
  183. package/resources/personalization-properties.js +10 -7
  184. package/resources/personalization-properties.js.map +1 -1
  185. package/resources/personalization-properties.mjs +10 -7
  186. package/resources/personalization-properties.mjs.map +1 -1
  187. package/resources/replay-settings.d.mts +126 -9
  188. package/resources/replay-settings.d.mts.map +1 -1
  189. package/resources/replay-settings.d.ts +126 -9
  190. package/resources/replay-settings.d.ts.map +1 -1
  191. package/resources/replay-settings.js +9 -6
  192. package/resources/replay-settings.js.map +1 -1
  193. package/resources/replay-settings.mjs +9 -6
  194. package/resources/replay-settings.mjs.map +1 -1
  195. package/resources/session-replays.d.mts +9 -2
  196. package/resources/session-replays.d.mts.map +1 -1
  197. package/resources/session-replays.d.ts +9 -2
  198. package/resources/session-replays.d.ts.map +1 -1
  199. package/resources/session-replays.js +4 -2
  200. package/resources/session-replays.js.map +1 -1
  201. package/resources/session-replays.mjs +4 -2
  202. package/resources/session-replays.mjs.map +1 -1
  203. package/resources/short-links.d.mts +733 -17
  204. package/resources/short-links.d.mts.map +1 -1
  205. package/resources/short-links.d.ts +733 -17
  206. package/resources/short-links.d.ts.map +1 -1
  207. package/resources/short-links.js +11 -7
  208. package/resources/short-links.js.map +1 -1
  209. package/resources/short-links.mjs +11 -7
  210. package/resources/short-links.mjs.map +1 -1
  211. package/resources/sources.d.mts +98 -17
  212. package/resources/sources.d.mts.map +1 -1
  213. package/resources/sources.d.ts +98 -17
  214. package/resources/sources.d.ts.map +1 -1
  215. package/resources/sources.js +12 -6
  216. package/resources/sources.js.map +1 -1
  217. package/resources/sources.mjs +12 -6
  218. package/resources/sources.mjs.map +1 -1
  219. package/resources/tag-manager-asset-folders.d.mts +2 -1
  220. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  221. package/resources/tag-manager-asset-folders.d.ts +2 -1
  222. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  223. package/resources/tag-manager-asset-folders.js +2 -1
  224. package/resources/tag-manager-asset-folders.js.map +1 -1
  225. package/resources/tag-manager-asset-folders.mjs +2 -1
  226. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  227. package/resources/tag-manager-folders.d.mts +9 -7
  228. package/resources/tag-manager-folders.d.mts.map +1 -1
  229. package/resources/tag-manager-folders.d.ts +9 -7
  230. package/resources/tag-manager-folders.d.ts.map +1 -1
  231. package/resources/tag-manager-folders.js +9 -7
  232. package/resources/tag-manager-folders.js.map +1 -1
  233. package/resources/tag-manager-folders.mjs +9 -7
  234. package/resources/tag-manager-folders.mjs.map +1 -1
  235. package/resources/tag-manager-tags.d.mts +13 -7
  236. package/resources/tag-manager-tags.d.mts.map +1 -1
  237. package/resources/tag-manager-tags.d.ts +13 -7
  238. package/resources/tag-manager-tags.d.ts.map +1 -1
  239. package/resources/tag-manager-tags.js +10 -6
  240. package/resources/tag-manager-tags.js.map +1 -1
  241. package/resources/tag-manager-tags.mjs +10 -6
  242. package/resources/tag-manager-tags.mjs.map +1 -1
  243. package/resources/tag-manager-triggers.d.mts +14 -7
  244. package/resources/tag-manager-triggers.d.mts.map +1 -1
  245. package/resources/tag-manager-triggers.d.ts +14 -7
  246. package/resources/tag-manager-triggers.d.ts.map +1 -1
  247. package/resources/tag-manager-triggers.js +11 -6
  248. package/resources/tag-manager-triggers.js.map +1 -1
  249. package/resources/tag-manager-triggers.mjs +11 -6
  250. package/resources/tag-manager-triggers.mjs.map +1 -1
  251. package/resources/tag-manager-variables.d.mts +53 -23
  252. package/resources/tag-manager-variables.d.mts.map +1 -1
  253. package/resources/tag-manager-variables.d.ts +53 -23
  254. package/resources/tag-manager-variables.d.ts.map +1 -1
  255. package/resources/tag-manager-variables.js +10 -6
  256. package/resources/tag-manager-variables.js.map +1 -1
  257. package/resources/tag-manager-variables.mjs +10 -6
  258. package/resources/tag-manager-variables.mjs.map +1 -1
  259. package/resources/tag-managers.d.mts +24 -6
  260. package/resources/tag-managers.d.mts.map +1 -1
  261. package/resources/tag-managers.d.ts +24 -6
  262. package/resources/tag-managers.d.ts.map +1 -1
  263. package/resources/tag-managers.js +18 -5
  264. package/resources/tag-managers.js.map +1 -1
  265. package/resources/tag-managers.mjs +18 -5
  266. package/resources/tag-managers.mjs.map +1 -1
  267. package/resources/test-events.d.mts +73 -15
  268. package/resources/test-events.d.mts.map +1 -1
  269. package/resources/test-events.d.ts +73 -15
  270. package/resources/test-events.d.ts.map +1 -1
  271. package/resources/test-events.js +6 -4
  272. package/resources/test-events.js.map +1 -1
  273. package/resources/test-events.mjs +6 -4
  274. package/resources/test-events.mjs.map +1 -1
  275. package/resources/translation-widgets.d.mts +7 -6
  276. package/resources/translation-widgets.d.mts.map +1 -1
  277. package/resources/translation-widgets.d.ts +7 -6
  278. package/resources/translation-widgets.d.ts.map +1 -1
  279. package/resources/translation-widgets.js +7 -6
  280. package/resources/translation-widgets.js.map +1 -1
  281. package/resources/translation-widgets.mjs +7 -6
  282. package/resources/translation-widgets.mjs.map +1 -1
  283. package/resources/versions.d.mts +102 -47
  284. package/resources/versions.d.mts.map +1 -1
  285. package/resources/versions.d.ts +102 -47
  286. package/resources/versions.d.ts.map +1 -1
  287. package/resources/versions.js +20 -15
  288. package/resources/versions.js.map +1 -1
  289. package/resources/versions.mjs +20 -15
  290. package/resources/versions.mjs.map +1 -1
  291. package/resources/video-channels.d.mts +47 -13
  292. package/resources/video-channels.d.mts.map +1 -1
  293. package/resources/video-channels.d.ts +47 -13
  294. package/resources/video-channels.d.ts.map +1 -1
  295. package/resources/video-channels.js +15 -9
  296. package/resources/video-channels.js.map +1 -1
  297. package/resources/video-channels.mjs +15 -9
  298. package/resources/video-channels.mjs.map +1 -1
  299. package/resources/videos.d.mts +21 -14
  300. package/resources/videos.d.mts.map +1 -1
  301. package/resources/videos.d.ts +21 -14
  302. package/resources/videos.d.ts.map +1 -1
  303. package/resources/videos.js +21 -14
  304. package/resources/videos.js.map +1 -1
  305. package/resources/videos.mjs +21 -14
  306. package/resources/videos.mjs.map +1 -1
  307. package/resources/web-analytics.d.mts +14 -9
  308. package/resources/web-analytics.d.mts.map +1 -1
  309. package/resources/web-analytics.d.ts +14 -9
  310. package/resources/web-analytics.d.ts.map +1 -1
  311. package/resources/web-analytics.js +14 -9
  312. package/resources/web-analytics.js.map +1 -1
  313. package/resources/web-analytics.mjs +14 -9
  314. package/resources/web-analytics.mjs.map +1 -1
  315. package/resources/web-scanner-rules.d.mts +10 -6
  316. package/resources/web-scanner-rules.d.mts.map +1 -1
  317. package/resources/web-scanner-rules.d.ts +10 -6
  318. package/resources/web-scanner-rules.d.ts.map +1 -1
  319. package/resources/web-scanner-rules.js +10 -6
  320. package/resources/web-scanner-rules.js.map +1 -1
  321. package/resources/web-scanner-rules.mjs +10 -6
  322. package/resources/web-scanner-rules.mjs.map +1 -1
  323. package/resources/web-scanners.d.mts +26 -19
  324. package/resources/web-scanners.d.mts.map +1 -1
  325. package/resources/web-scanners.d.ts +26 -19
  326. package/resources/web-scanners.d.ts.map +1 -1
  327. package/resources/web-scanners.js +25 -18
  328. package/resources/web-scanners.js.map +1 -1
  329. package/resources/web-scanners.mjs +25 -18
  330. package/resources/web-scanners.mjs.map +1 -1
  331. package/src/client.ts +44 -0
  332. package/src/resources/allowed-events.ts +9 -7
  333. package/src/resources/analytics.ts +4 -2
  334. package/src/resources/attribution.ts +8 -5
  335. package/src/resources/audience-conversion-reports.ts +11 -9
  336. package/src/resources/consent-analytics.ts +2 -1
  337. package/src/resources/consent-settings.ts +7576 -519
  338. package/src/resources/conversion-journey-summaries.ts +10 -5
  339. package/src/resources/custom-domains.ts +450 -0
  340. package/src/resources/data-governance.ts +53 -21
  341. package/src/resources/default-mappings.ts +309 -8
  342. package/src/resources/destinations.ts +40 -15
  343. package/src/resources/experiment-settings.ts +9 -6
  344. package/src/resources/experiment-variants.ts +140 -19
  345. package/src/resources/experiments.ts +8051 -462
  346. package/src/resources/funnels.ts +1366 -17
  347. package/src/resources/heatmap-pages.ts +3 -2
  348. package/src/resources/index.ts +19 -0
  349. package/src/resources/journey-flows.ts +1241 -28
  350. package/src/resources/locations.ts +41 -10
  351. package/src/resources/mappings.ts +812 -31
  352. package/src/resources/me.ts +37 -0
  353. package/src/resources/personalization-properties.ts +10 -7
  354. package/src/resources/replay-settings.ts +147 -9
  355. package/src/resources/session-replays.ts +10 -2
  356. package/src/resources/short-links.ts +883 -17
  357. package/src/resources/sources.ts +108 -17
  358. package/src/resources/tag-manager-asset-folders.ts +2 -1
  359. package/src/resources/tag-manager-folders.ts +9 -7
  360. package/src/resources/tag-manager-tags.ts +17 -7
  361. package/src/resources/tag-manager-triggers.ts +18 -7
  362. package/src/resources/tag-manager-variables.ts +101 -19
  363. package/src/resources/tag-managers.ts +35 -5
  364. package/src/resources/test-events.ts +53 -15
  365. package/src/resources/translation-widgets.ts +7 -6
  366. package/src/resources/versions.ts +104 -47
  367. package/src/resources/video-channels.ts +59 -13
  368. package/src/resources/videos.ts +21 -14
  369. package/src/resources/web-analytics.ts +14 -9
  370. package/src/resources/web-scanner-rules.ts +10 -6
  371. package/src/resources/web-scanners.ts +26 -19
  372. package/src/version.ts +1 -1
  373. package/version.d.mts +1 -1
  374. package/version.d.ts +1 -1
  375. package/version.js +1 -1
  376. package/version.mjs +1 -1
@@ -10,7 +10,8 @@ export class Versions extends APIResource {
10
10
  /**
11
11
  * List versions for this account, newest first. Supports cursor pagination and
12
12
  * filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
13
- * with AND semantics. Requires scope: version:list
13
+ * with AND semantics. Requires API-key scope or current OAuth user permission:
14
+ * version:list
14
15
  */
15
16
  list(
16
17
  query: VersionListParams | null | undefined = {},
@@ -31,18 +32,20 @@ export class Versions extends APIResource {
31
32
  * To re-publish an existing version, use POST /rest/v1/versions/{id}/publish
32
33
  * instead.
33
34
  *
34
- * Supports cherry-picking via the `include*` body fields. Each `include*` field is
35
- * an entity-id allowlist for one collection — omit (or send `[]`) to include every
36
- * draft change in that collection, or send a non-empty array to whitelist only
37
- * those ids. Unlisted collections inherit wholesale from the latest published
38
- * version. Requires scope: version:publish
35
+ * Supports cherry-picking via the `include*` body fields, each an entity-id
36
+ * allowlist for one collection. Omit every `include*` field (or send each as `[]`)
37
+ * to publish all draft changes. Once any `include*` field lists ids, only the
38
+ * listed changes publish, and every collection you omit or send as `[]` keeps its
39
+ * published state. Requires API-key scope or current OAuth user permission:
40
+ * version:publish
39
41
  */
40
42
  create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
41
43
  return this._client.post('/rest/v1/versions', { body, ...options });
42
44
  }
43
45
 
44
46
  /**
45
- * Find a single version by ID. Requires scope: version:find
47
+ * Find a single version by ID. Requires API-key scope or current OAuth user
48
+ * permission: version:find
46
49
  */
47
50
  retrieve(id: string, options?: RequestOptions): APIPromise<VersionRetrieveResponse> {
48
51
  return this._client.get(path`/rest/v1/versions/${id}`, options);
@@ -50,7 +53,7 @@ export class Versions extends APIResource {
50
53
 
51
54
  /**
52
55
  * Partially update a version. Only the fields you send are changed. Requires
53
- * scope: version:update
56
+ * API-key scope or current OAuth user permission: version:update
54
57
  */
55
58
  update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
56
59
  return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
@@ -61,7 +64,7 @@ export class Versions extends APIResource {
61
64
  * to an older snapshot. Returns 409 if the version is already published, was
62
65
  * created more than 45 days ago, or another publish is already in flight. To
63
66
  * create-and-publish from current draft state, use POST /rest/v1/versions instead.
64
- * Requires scope: version:publish
67
+ * Requires API-key scope or current OAuth user permission: version:publish
65
68
  */
66
69
  publish(id: string, options?: RequestOptions): APIPromise<VersionPublishResponse> {
67
70
  return this._client.post(path`/rest/v1/versions/${id}/publish`, options);
@@ -71,8 +74,8 @@ export class Versions extends APIResource {
71
74
  * Retrieve the full JSON snapshot captured by a version — every entity
72
75
  * (destinations, sources, mappings, consent settings, etc.) as it existed when
73
76
  * this version was published. Sensitive fields (API keys, tokens, secrets) are
74
- * redacted. Useful for IaC export, audit, and backup workflows. Requires scope:
75
- * version:find
77
+ * redacted. Useful for IaC export, audit, and backup workflows. Requires API-key
78
+ * scope or current OAuth user permission: version:find
76
79
  */
77
80
  snapshot(id: string, options?: RequestOptions): APIPromise<VersionSnapshotResponse> {
78
81
  return this._client.get(path`/rest/v1/versions/${id}/snapshot`, options);
@@ -97,7 +100,8 @@ export class Versions extends APIResource {
97
100
  * latest published version.
98
101
  * - `GET /rest/v1/versions/{id}/diff?against={otherId}` — compare two specific
99
102
  * versions. `otherId` may also be `draft` to diff a published snapshot against
100
- * the live draft state. Requires scope: version:find
103
+ * the live draft state. Requires API-key scope or current OAuth user permission:
104
+ * version:find
101
105
  */
102
106
  diff(
103
107
  id: 'draft' | (string & {}),
@@ -122,7 +126,7 @@ export class Versions extends APIResource {
122
126
  * `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
123
127
  * one entity. (`draft` is a literal path segment identifying the live draft as the
124
128
  * target, which is why the entity is passed as `entityId` rather than `id`.)
125
- * Requires scope: version:find
129
+ * Requires API-key scope or current OAuth user permission: version:find
126
130
  */
127
131
  status(
128
132
  id: 'draft',
@@ -147,7 +151,8 @@ export class Versions extends APIResource {
147
151
  * use the experiment lifecycle endpoints (`/start`, `/stop`) for those — but
148
152
  * `experimentSettings` is supported. To discard every pending change at once, use
149
153
  * `POST /rest/v1/versions/draft/abandon`. (`draft` is a literal path segment
150
- * identifying the live draft as the target.) Requires scope: version:publish
154
+ * identifying the live draft as the target.) Requires API-key scope or current
155
+ * OAuth user permission: version:publish
151
156
  */
152
157
  revert(
153
158
  id: 'draft',
@@ -165,7 +170,7 @@ export class Versions extends APIResource {
165
170
  * version to revert to, or when another publish or abandon is already in flight.
166
171
  * To revert only specific changes, use `POST /rest/v1/versions/draft/revert`.
167
172
  * (`draft` is a literal path segment identifying the live draft as the target.)
168
- * Requires scope: version:publish
173
+ * Requires API-key scope or current OAuth user permission: version:publish
169
174
  */
170
175
  abandon(id: 'draft', options?: RequestOptions): APIPromise<VersionAbandonResponse> {
171
176
  return this._client.post(path`/rest/v1/versions/${id}/abandon`, options);
@@ -344,7 +349,7 @@ export interface VersionSnapshotResponse {
344
349
  * entities as they existed at publish time. Sensitive fields (API keys, tokens,
345
350
  * secrets) are redacted. Returns null when the version snapshot has been pruned.
346
351
  */
347
- jsonContent: { [key: string]: unknown };
352
+ jsonContent: { [key: string]: unknown } | null;
348
353
 
349
354
  versionNumber: number;
350
355
  }
@@ -3213,99 +3218,151 @@ export interface VersionListParams extends CursorParams {
3213
3218
  }
3214
3219
 
3215
3220
  export interface VersionCreateParams {
3221
+ /**
3222
+ * Allow publishing web sources without allowed domains for this version. Defaults
3223
+ * to false. Sources without allowed domains accept events from any domain.
3224
+ */
3225
+ bypassWebSourceDomainValidation?: boolean | null;
3226
+
3216
3227
  /**
3217
3228
  * Cherry-pick: allowed event ids (slug-like strings) to include from the draft.
3218
- * Omit or send `[]` to include all draft changes in this collection.
3229
+ * Omit every `include*` field (or send each as `[]`) to publish all draft changes.
3230
+ * Once any `include*` field lists ids, only the listed changes publish, and every
3231
+ * collection you omit or send as `[]` keeps its published state.
3219
3232
  */
3220
3233
  includeAllowedEvents?: Array<string> | null;
3221
3234
 
3222
3235
  /**
3223
- * Cherry-pick: consent settings ids to include from the draft. Omit or send `[]`
3224
- * to include all draft changes in this collection.
3236
+ * Cherry-pick: consent settings ids to include from the draft. Omit every
3237
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3238
+ * `include*` field lists ids, only the listed changes publish, and every
3239
+ * collection you omit or send as `[]` keeps its published state.
3225
3240
  */
3226
3241
  includeConsentSettings?: Array<string> | null;
3227
3242
 
3228
3243
  /**
3229
- * Cherry-pick: data governance event UUIDs to include from the draft. Omit or send
3230
- * `[]` to include all draft changes in this collection.
3244
+ * Cherry-pick: data governance event UUIDs to include from the draft. Omit every
3245
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3246
+ * `include*` field lists ids, only the listed changes publish, and every
3247
+ * collection you omit or send as `[]` keeps its published state.
3231
3248
  */
3232
3249
  includeDataGovernanceEvents?: Array<string> | null;
3233
3250
 
3234
3251
  /**
3235
- * Cherry-pick: data governance rule UUIDs to include from the draft. Omit or send
3236
- * `[]` to include all draft changes in this collection.
3252
+ * Cherry-pick: data governance rule UUIDs to include from the draft. Omit every
3253
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3254
+ * `include*` field lists ids, only the listed changes publish, and every
3255
+ * collection you omit or send as `[]` keeps its published state.
3237
3256
  */
3238
3257
  includeDataGovernanceRules?: Array<string> | null;
3239
3258
 
3240
3259
  /**
3241
- * Cherry-pick: destination UUIDs to include from the draft. Omit or send `[]` to
3242
- * include all draft changes in this collection.
3260
+ * Cherry-pick: destination UUIDs to include from the draft. Omit every `include*`
3261
+ * field (or send each as `[]`) to publish all draft changes. Once any `include*`
3262
+ * field lists ids, only the listed changes publish, and every collection you omit
3263
+ * or send as `[]` keeps its published state.
3243
3264
  */
3244
3265
  includeDestinations?: Array<string> | null;
3245
3266
 
3246
3267
  /**
3247
- * Cherry-pick: experiment UUIDs to include from the draft. Omit or send `[]` to
3248
- * include all draft changes in this collection.
3268
+ * Cherry-pick: experiment UUIDs to include from the draft. Omit every `include*`
3269
+ * field (or send each as `[]`) to publish all draft changes. Once any `include*`
3270
+ * field lists ids, only the listed changes publish, and every collection you omit
3271
+ * or send as `[]` keeps its published state.
3249
3272
  */
3250
3273
  includeExperiments?: Array<string> | null;
3251
3274
 
3252
3275
  /**
3253
- * Cherry-pick: experiment settings UUIDs to include from the draft. Omit or send
3254
- * `[]` to include all draft changes in this collection.
3276
+ * Cherry-pick: experiment settings UUIDs to include from the draft. Omit every
3277
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3278
+ * `include*` field lists ids, only the listed changes publish, and every
3279
+ * collection you omit or send as `[]` keeps its published state.
3255
3280
  */
3256
3281
  includeExperimentSettings?: Array<string> | null;
3257
3282
 
3258
3283
  /**
3259
- * Cherry-pick: experiment variant UUIDs to include from the draft. Omit or send
3260
- * `[]` to include all draft changes in this collection.
3284
+ * Cherry-pick: experiment variant UUIDs to include from the draft. Omit every
3285
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3286
+ * `include*` field lists ids, only the listed changes publish, and every
3287
+ * collection you omit or send as `[]` keeps its published state.
3261
3288
  */
3262
3289
  includeExperimentVariants?: Array<string> | null;
3263
3290
 
3264
3291
  /**
3265
- * Cherry-pick: external allowed event data ids to include from the draft. Omit or
3266
- * send `[]` to include all draft changes in this collection.
3292
+ * Cherry-pick: external allowed event data ids to include from the draft. Omit
3293
+ * every `include*` field (or send each as `[]`) to publish all draft changes. Once
3294
+ * any `include*` field lists ids, only the listed changes publish, and every
3295
+ * collection you omit or send as `[]` keeps its published state.
3267
3296
  */
3268
3297
  includeExternalAllowedEventData?: Array<string> | null;
3269
3298
 
3270
3299
  /**
3271
- * Cherry-pick: global dispatch center ids to include from the draft. Omit or send
3272
- * `[]` to include all draft changes in this collection.
3300
+ * Cherry-pick: global dispatch center ids to include from the draft. Omit every
3301
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3302
+ * `include*` field lists ids, only the listed changes publish, and every
3303
+ * collection you omit or send as `[]` keeps its published state.
3273
3304
  */
3274
3305
  includeGlobalDispatchCenters?: Array<string> | null;
3275
3306
 
3276
3307
  /**
3277
- * Cherry-pick: mapping ids to include from the draft. Omit or send `[]` to include
3278
- * all draft changes in this collection.
3308
+ * Cherry-pick: mapping ids to include from the draft. Omit every `include*` field
3309
+ * (or send each as `[]`) to publish all draft changes. Once any `include*` field
3310
+ * lists ids, only the listed changes publish, and every collection you omit or
3311
+ * send as `[]` keeps its published state.
3279
3312
  */
3280
3313
  includeMappings?: Array<string> | null;
3281
3314
 
3282
3315
  /**
3283
- * Cherry-pick: replay settings ids to include from the draft. Omit or send `[]` to
3284
- * include all draft changes in this collection.
3316
+ * Cherry-pick: replay settings ids to include from the draft. Omit every
3317
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3318
+ * `include*` field lists ids, only the listed changes publish, and every
3319
+ * collection you omit or send as `[]` keeps its published state.
3285
3320
  */
3286
3321
  includeReplaySettings?: Array<string> | null;
3287
3322
 
3288
3323
  /**
3289
- * Cherry-pick: source UUIDs to include from the draft. Omit or send `[]` to
3290
- * include all draft changes in this collection.
3324
+ * Cherry-pick: source UUIDs to include from the draft. Omit every `include*` field
3325
+ * (or send each as `[]`) to publish all draft changes. Once any `include*` field
3326
+ * lists ids, only the listed changes publish, and every collection you omit or
3327
+ * send as `[]` keeps its published state.
3291
3328
  */
3292
3329
  includeSources?: Array<string> | null;
3293
3330
 
3294
3331
  /**
3295
- * Cherry-pick: tag manager tag UUIDs to include from the draft. Omit or send `[]`
3296
- * to include all draft changes in this collection.
3332
+ * Cherry-pick: tag manager container UUIDs to include from the draft. Selecting a
3333
+ * container publishes its own settings only; list its tags, triggers, and
3334
+ * variables to publish their changes. Selecting a container deleted from the draft
3335
+ * also removes its tags, triggers, and variables. Omit every `include*` field (or
3336
+ * send each as `[]`) to publish all draft changes. Once any `include*` field lists
3337
+ * ids, only the listed changes publish, and every collection you omit or send as
3338
+ * `[]` keeps its published state.
3339
+ */
3340
+ includeTagManagers?: Array<string> | null;
3341
+
3342
+ /**
3343
+ * Cherry-pick: tag manager tag UUIDs to include from the draft. If the item's
3344
+ * container has never been published, the container publishes with it. Omit every
3345
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3346
+ * `include*` field lists ids, only the listed changes publish, and every
3347
+ * collection you omit or send as `[]` keeps its published state.
3297
3348
  */
3298
3349
  includeTagManagerTags?: Array<string> | null;
3299
3350
 
3300
3351
  /**
3301
- * Cherry-pick: tag manager trigger UUIDs to include from the draft. Omit or send
3302
- * `[]` to include all draft changes in this collection.
3352
+ * Cherry-pick: tag manager trigger UUIDs to include from the draft. If the item's
3353
+ * container has never been published, the container publishes with it. Omit every
3354
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3355
+ * `include*` field lists ids, only the listed changes publish, and every
3356
+ * collection you omit or send as `[]` keeps its published state.
3303
3357
  */
3304
3358
  includeTagManagerTriggers?: Array<string> | null;
3305
3359
 
3306
3360
  /**
3307
- * Cherry-pick: tag manager variable UUIDs to include from the draft. Omit or send
3308
- * `[]` to include all draft changes in this collection.
3361
+ * Cherry-pick: tag manager variable UUIDs to include from the draft. If the item's
3362
+ * container has never been published, the container publishes with it. Omit every
3363
+ * `include*` field (or send each as `[]`) to publish all draft changes. Once any
3364
+ * `include*` field lists ids, only the listed changes publish, and every
3365
+ * collection you omit or send as `[]` keeps its published state.
3309
3366
  */
3310
3367
  includeTagManagerVariables?: Array<string> | null;
3311
3368
 
@@ -11,7 +11,8 @@ export class VideoChannels extends APIResource {
11
11
  * List video channels for the account, sorted by name. Supports cursor pagination
12
12
  * via `limit` and `cursor`; the limit clamp is 1000 so a single request can return
13
13
  * the full set. Entries omit `resolvedValues` — fetch a channel by id for its
14
- * video count and embed output. Requires scope: videoChannel:list
14
+ * video count and embed output. Requires API-key scope or current OAuth user
15
+ * permission: videoChannel:list
15
16
  */
16
17
  list(
17
18
  query: VideoChannelListParams | null | undefined = {},
@@ -27,7 +28,8 @@ export class VideoChannels extends APIResource {
27
28
  * Create a video channel. Only `name` is accepted here; set branding and publish
28
29
  * it with PATCH, and add videos with `POST /rest/v1/video-channels/{id}/media`.
29
30
  * New channels start unpublished, so the page is not reachable until you send
30
- * `isPublished: true`. Requires scope: videoChannel:create
31
+ * `isPublished: true`. Requires API-key scope or current OAuth user permission:
32
+ * videoChannel:create
31
33
  */
32
34
  create(body: VideoChannelCreateParams, options?: RequestOptions): APIPromise<VideoChannelCreateResponse> {
33
35
  return this._client.post('/rest/v1/video-channels', { body, ...options });
@@ -35,7 +37,8 @@ export class VideoChannels extends APIResource {
35
37
 
36
38
  /**
37
39
  * Fetch a channel with its branding, publish state, video count, shareable page
38
- * URL, and paste-ready embed code. Requires scope: videoChannel:find
40
+ * URL, and paste-ready embed code. Requires API-key scope or current OAuth user
41
+ * permission: videoChannel:find
39
42
  */
40
43
  retrieve(id: string, options?: RequestOptions): APIPromise<VideoChannelRetrieveResponse> {
41
44
  return this._client.get(path`/rest/v1/video-channels/${id}`, options);
@@ -46,7 +49,7 @@ export class VideoChannels extends APIResource {
46
49
  * to clear a nullable field. Sending `isPublished: true` makes the channel page
47
50
  * reachable and renders it from the current videos and branding; `false` takes it
48
51
  * offline. `logoMediaId` must reference an image in your media library. Requires
49
- * scope: videoChannel:update
52
+ * API-key scope or current OAuth user permission: videoChannel:update
50
53
  */
51
54
  update(
52
55
  id: string,
@@ -58,7 +61,8 @@ export class VideoChannels extends APIResource {
58
61
 
59
62
  /**
60
63
  * Delete a channel and take its page offline. The videos it listed are not deleted
61
- * — only their membership in this channel. Requires scope: videoChannel:delete
64
+ * — only their membership in this channel. Requires API-key scope or current OAuth
65
+ * user permission: videoChannel:delete
62
66
  */
63
67
  delete(id: string, options?: RequestOptions): APIPromise<VideoChannelDeleteResponse> {
64
68
  return this._client.delete(path`/rest/v1/video-channels/${id}`, options);
@@ -68,7 +72,8 @@ export class VideoChannels extends APIResource {
68
72
  * List the videos in a channel, ordered by their position on the page. Not
69
73
  * paginated: a channel holds a bounded set of videos, so the full ordered list is
70
74
  * always returned. Videos whose media no longer resolves are omitted rather than
71
- * returned as broken entries. Requires scope: videoChannel:find
75
+ * returned as broken entries. Requires API-key scope or current OAuth user
76
+ * permission: videoChannel:find
72
77
  */
73
78
  media(id: string, options?: RequestOptions): APIPromise<VideoChannelMediaResponse> {
74
79
  return this._client.get(path`/rest/v1/video-channels/${id}/media`, options);
@@ -80,7 +85,7 @@ export class VideoChannels extends APIResource {
80
85
  * Calling this again for a video already in the channel updates its position
81
86
  * instead of adding a duplicate, and keeps its current slot when `position` is
82
87
  * omitted. The returned `id` is a composite membership key, not a UUID. Requires
83
- * scope: videoChannel:update
88
+ * API-key scope or current OAuth user permission: videoChannel:update
84
89
  */
85
90
  assignMedia(
86
91
  id: string,
@@ -94,7 +99,8 @@ export class VideoChannels extends APIResource {
94
99
  * Remove one video from a channel, identified by the `mediaId` query parameter.
95
100
  * The video itself is not deleted and stays in any other channel it belongs to.
96
101
  * Idempotent — removing a video that is not in the channel succeeds and returns
97
- * the channel unchanged. Requires scope: videoChannel:update
102
+ * the channel unchanged. Requires API-key scope or current OAuth user permission:
103
+ * videoChannel:update
98
104
  */
99
105
  removeMedia(
100
106
  id: string,
@@ -110,7 +116,7 @@ export class VideoChannels extends APIResource {
110
116
  * the channel in the order you want them shown — index 0 appears first. A partial
111
117
  * list, or an id that is not in the channel, returns 400 so a caller working from
112
118
  * a stale view learns it is out of date instead of getting a partial write.
113
- * Requires scope: videoChannel:update
119
+ * Requires API-key scope or current OAuth user permission: videoChannel:update
114
120
  */
115
121
  reorder(
116
122
  id: string,
@@ -186,11 +192,21 @@ export interface VideoChannelRetrieveResponse {
186
192
 
187
193
  logoMediaId?: string | null;
188
194
 
189
- resolvedValues?: unknown | null;
195
+ resolvedValues?: VideoChannelRetrieveResponse.ResolvedValues | null;
190
196
 
191
197
  updatedAt?: string | null;
192
198
  }
193
199
 
200
+ export namespace VideoChannelRetrieveResponse {
201
+ export interface ResolvedValues {
202
+ embedCode: string;
203
+
204
+ embedUrl: string;
205
+
206
+ mediaCount: number;
207
+ }
208
+ }
209
+
194
210
  export interface VideoChannelUpdateResponse {
195
211
  id: string;
196
212
 
@@ -210,11 +226,21 @@ export interface VideoChannelUpdateResponse {
210
226
 
211
227
  logoMediaId?: string | null;
212
228
 
213
- resolvedValues?: unknown | null;
229
+ resolvedValues?: VideoChannelUpdateResponse.ResolvedValues | null;
214
230
 
215
231
  updatedAt?: string | null;
216
232
  }
217
233
 
234
+ export namespace VideoChannelUpdateResponse {
235
+ export interface ResolvedValues {
236
+ embedCode: string;
237
+
238
+ embedUrl: string;
239
+
240
+ mediaCount: number;
241
+ }
242
+ }
243
+
218
244
  export interface VideoChannelDeleteResponse {
219
245
  id: string;
220
246
 
@@ -312,11 +338,21 @@ export interface VideoChannelRemoveMediaResponse {
312
338
 
313
339
  logoMediaId?: string | null;
314
340
 
315
- resolvedValues?: unknown | null;
341
+ resolvedValues?: VideoChannelRemoveMediaResponse.ResolvedValues | null;
316
342
 
317
343
  updatedAt?: string | null;
318
344
  }
319
345
 
346
+ export namespace VideoChannelRemoveMediaResponse {
347
+ export interface ResolvedValues {
348
+ embedCode: string;
349
+
350
+ embedUrl: string;
351
+
352
+ mediaCount: number;
353
+ }
354
+ }
355
+
320
356
  export interface VideoChannelReorderResponse {
321
357
  id: string;
322
358
 
@@ -336,11 +372,21 @@ export interface VideoChannelReorderResponse {
336
372
 
337
373
  logoMediaId?: string | null;
338
374
 
339
- resolvedValues?: unknown | null;
375
+ resolvedValues?: VideoChannelReorderResponse.ResolvedValues | null;
340
376
 
341
377
  updatedAt?: string | null;
342
378
  }
343
379
 
380
+ export namespace VideoChannelReorderResponse {
381
+ export interface ResolvedValues {
382
+ embedCode: string;
383
+
384
+ embedUrl: string;
385
+
386
+ mediaCount: number;
387
+ }
388
+ }
389
+
344
390
  export interface VideoChannelListParams extends CursorParams {}
345
391
 
346
392
  export interface VideoChannelCreateParams {
@@ -9,7 +9,8 @@ import { path } from '../internal/utils/path';
9
9
  export class Videos extends APIResource {
10
10
  /**
11
11
  * List videos for the account, newest first. Supports cursor pagination and an
12
- * optional case-insensitive title filter. Requires scope: media:list
12
+ * optional case-insensitive title filter. Requires API-key scope or current OAuth
13
+ * user permission: media:list
13
14
  *
14
15
  * @example
15
16
  * ```ts
@@ -30,7 +31,7 @@ export class Videos extends APIResource {
30
31
  * Create a video record and return a temporary upload target for the original MP4
31
32
  * or WebM file. Upload the file directly using the returned URL and matching
32
33
  * content type, then poll the video to observe processing progress. Requires
33
- * scope: media:create
34
+ * API-key scope or current OAuth user permission: media:create
34
35
  *
35
36
  * @example
36
37
  * ```ts
@@ -45,8 +46,8 @@ export class Videos extends APIResource {
45
46
 
46
47
  /**
47
48
  * Fetch a video and its current playback asset availability. The processed video,
48
- * poster, and transcript are prepared asynchronously after upload. Requires scope:
49
- * media:find
49
+ * poster, and transcript are prepared asynchronously after upload. Requires
50
+ * API-key scope or current OAuth user permission: media:find
50
51
  *
51
52
  * @example
52
53
  * ```ts
@@ -59,7 +60,8 @@ export class Videos extends APIResource {
59
60
 
60
61
  /**
61
62
  * Partially update video metadata. Only fields included in the body change; send
62
- * `null` to clear a nullable field. Requires scope: media:update
63
+ * `null` to clear a nullable field. Requires API-key scope or current OAuth user
64
+ * permission: media:update
63
65
  *
64
66
  * @example
65
67
  * ```ts
@@ -71,7 +73,8 @@ export class Videos extends APIResource {
71
73
  }
72
74
 
73
75
  /**
74
- * Delete a video and its related assets. Requires scope: media:delete
76
+ * Delete a video and its related assets. Requires API-key scope or current OAuth
77
+ * user permission: media:delete
75
78
  *
76
79
  * @example
77
80
  * ```ts
@@ -85,8 +88,8 @@ export class Videos extends APIResource {
85
88
  /**
86
89
  * Return a temporary upload target for replacing this video’s original MP4 or WebM
87
90
  * source. Upload the file directly using the returned URL and matching content
88
- * type, then poll the video to observe processing progress. Requires scope:
89
- * media:update
91
+ * type, then poll the video to observe processing progress. Requires API-key scope
92
+ * or current OAuth user permission: media:update
90
93
  *
91
94
  * @example
92
95
  * ```ts
@@ -102,7 +105,7 @@ export class Videos extends APIResource {
102
105
  /**
103
106
  * Read the current WebVTT transcript. Transcript text is available wherever the
104
107
  * video is embedded, so do not include PHI or other confidential information.
105
- * Requires scope: media:find
108
+ * Requires API-key scope or current OAuth user permission: media:find
106
109
  *
107
110
  * @example
108
111
  * ```ts
@@ -120,7 +123,8 @@ export class Videos extends APIResource {
120
123
  /**
121
124
  * Replace the transcript with VTT or SRT text. SRT is normalized to WebVTT.
122
125
  * Transcript text is available wherever the video is embedded, so do not include
123
- * PHI or other confidential information. Requires scope: media:update
126
+ * PHI or other confidential information. Requires API-key scope or current OAuth
127
+ * user permission: media:update
124
128
  *
125
129
  * @example
126
130
  * ```ts
@@ -140,7 +144,8 @@ export class Videos extends APIResource {
140
144
 
141
145
  /**
142
146
  * Queue a target-language caption translation. Specify replace to explicitly
143
- * overwrite a track. Requires scope: media:update
147
+ * overwrite a track. Requires API-key scope or current OAuth user permission:
148
+ * media:update
144
149
  *
145
150
  * @example
146
151
  * ```ts
@@ -160,7 +165,7 @@ export class Videos extends APIResource {
160
165
 
161
166
  /**
162
167
  * Cancel a queued or in-progress language translation without modifying other
163
- * tracks. Requires scope: media:update
168
+ * tracks. Requires API-key scope or current OAuth user permission: media:update
164
169
  *
165
170
  * @example
166
171
  * ```ts
@@ -183,7 +188,8 @@ export class Videos extends APIResource {
183
188
  * for a date window. Optionally filter to one video with `videoId`; omit it to
184
189
  * include all account videos. This derived report uses `limit` and `offset`
185
190
  * pagination; `total` is the number of rows returned through the current offset,
186
- * not a total match count. Requires scope: report:video-analytics
191
+ * not a total match count. Requires API-key scope or current OAuth user
192
+ * permission: report:video-analytics
187
193
  *
188
194
  * @example
189
195
  * ```ts
@@ -200,7 +206,8 @@ export class Videos extends APIResource {
200
206
  /**
201
207
  * Return daily or hourly starts, unique viewers, completions, and completion rate
202
208
  * for one video. Daily windows support up to 90 days; hourly windows support up to
203
- * 14 days. Requires scope: report:video-analytics
209
+ * 14 days. Requires API-key scope or current OAuth user permission:
210
+ * report:video-analytics
204
211
  *
205
212
  * @example
206
213
  * ```ts
@@ -8,8 +8,8 @@ export class WebAnalytics extends APIResource {
8
8
  /**
9
9
  * Return privacy-first traffic metrics and a timeseries for the requested date
10
10
  * range. Filter by source, geography, page, campaign, device, or other supported
11
- * dimensions with the JSON-encoded `filters` query parameter. Requires scope:
12
- * web-analytics:view
11
+ * dimensions with the JSON-encoded `filters` query parameter. Requires API-key
12
+ * scope or current OAuth user permission: web-analytics:view
13
13
  */
14
14
  overview(
15
15
  query: WebAnalyticsOverviewParams,
@@ -20,7 +20,8 @@ export class WebAnalytics extends APIResource {
20
20
 
21
21
  /**
22
22
  * Return visitor counts grouped by referrer or UTM source dimension for the
23
- * requested date range. Requires scope: web-analytics:view
23
+ * requested date range. Requires API-key scope or current OAuth user permission:
24
+ * web-analytics:view
24
25
  */
25
26
  sources(
26
27
  query: WebAnalyticsSourcesParams,
@@ -31,7 +32,8 @@ export class WebAnalytics extends APIResource {
31
32
 
32
33
  /**
33
34
  * Return page-level traffic metrics for top pages, entry pages, or exit pages in
34
- * the requested date range. Requires scope: web-analytics:view
35
+ * the requested date range. Requires API-key scope or current OAuth user
36
+ * permission: web-analytics:view
35
37
  */
36
38
  pages(query: WebAnalyticsPagesParams, options?: RequestOptions): APIPromise<WebAnalyticsPagesResponse> {
37
39
  return this._client.get('/rest/v1/web-analytics/pages', { query, ...options });
@@ -39,7 +41,8 @@ export class WebAnalytics extends APIResource {
39
41
 
40
42
  /**
41
43
  * Return visitor counts grouped by country, region, or city for the requested date
42
- * range. Requires scope: web-analytics:view
44
+ * range. Requires API-key scope or current OAuth user permission:
45
+ * web-analytics:view
43
46
  */
44
47
  locations(
45
48
  query: WebAnalyticsLocationsParams,
@@ -50,7 +53,8 @@ export class WebAnalytics extends APIResource {
50
53
 
51
54
  /**
52
55
  * Return visitor counts grouped by device type, browser, or operating system for
53
- * the requested date range. Requires scope: web-analytics:view
56
+ * the requested date range. Requires API-key scope or current OAuth user
57
+ * permission: web-analytics:view
54
58
  */
55
59
  devices(
56
60
  query: WebAnalyticsDevicesParams,
@@ -61,7 +65,8 @@ export class WebAnalytics extends APIResource {
61
65
 
62
66
  /**
63
67
  * Return the distinct visitors active in the most recent 15-minute window,
64
- * optionally scoped to one web source. Requires scope: web-analytics:view
68
+ * optionally scoped to one web source. Requires API-key scope or current OAuth
69
+ * user permission: web-analytics:view
65
70
  */
66
71
  currentVisitors(
67
72
  query: WebAnalyticsCurrentVisitorsParams | null | undefined = {},
@@ -72,8 +77,8 @@ export class WebAnalytics extends APIResource {
72
77
 
73
78
  /**
74
79
  * Return the next or previous journey steps for a pinned path. The `path` and
75
- * `filters` query parameters are JSON-encoded arrays. Requires scope:
76
- * web-analytics:view
80
+ * `filters` query parameters are JSON-encoded arrays. Requires API-key scope or
81
+ * current OAuth user permission: web-analytics:view
77
82
  */
78
83
  pathExplorer(
79
84
  query: WebAnalyticsPathExplorerParams,