@oursprivacy/platform-sdk 1.52.0 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (354) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/allowed-events.d.mts +9 -7
  10. package/resources/allowed-events.d.mts.map +1 -1
  11. package/resources/allowed-events.d.ts +9 -7
  12. package/resources/allowed-events.d.ts.map +1 -1
  13. package/resources/allowed-events.js +9 -7
  14. package/resources/allowed-events.js.map +1 -1
  15. package/resources/allowed-events.mjs +9 -7
  16. package/resources/allowed-events.mjs.map +1 -1
  17. package/resources/analytics.d.mts +4 -2
  18. package/resources/analytics.d.mts.map +1 -1
  19. package/resources/analytics.d.ts +4 -2
  20. package/resources/analytics.d.ts.map +1 -1
  21. package/resources/analytics.js +4 -2
  22. package/resources/analytics.js.map +1 -1
  23. package/resources/analytics.mjs +4 -2
  24. package/resources/analytics.mjs.map +1 -1
  25. package/resources/attribution.d.mts +8 -5
  26. package/resources/attribution.d.mts.map +1 -1
  27. package/resources/attribution.d.ts +8 -5
  28. package/resources/attribution.d.ts.map +1 -1
  29. package/resources/attribution.js +8 -5
  30. package/resources/attribution.js.map +1 -1
  31. package/resources/attribution.mjs +8 -5
  32. package/resources/attribution.mjs.map +1 -1
  33. package/resources/audience-conversion-reports.d.mts +11 -9
  34. package/resources/audience-conversion-reports.d.mts.map +1 -1
  35. package/resources/audience-conversion-reports.d.ts +11 -9
  36. package/resources/audience-conversion-reports.d.ts.map +1 -1
  37. package/resources/audience-conversion-reports.js +11 -9
  38. package/resources/audience-conversion-reports.js.map +1 -1
  39. package/resources/audience-conversion-reports.mjs +11 -9
  40. package/resources/audience-conversion-reports.mjs.map +1 -1
  41. package/resources/consent-analytics.d.mts +2 -1
  42. package/resources/consent-analytics.d.mts.map +1 -1
  43. package/resources/consent-analytics.d.ts +2 -1
  44. package/resources/consent-analytics.d.ts.map +1 -1
  45. package/resources/consent-analytics.js +2 -1
  46. package/resources/consent-analytics.js.map +1 -1
  47. package/resources/consent-analytics.mjs +2 -1
  48. package/resources/consent-analytics.mjs.map +1 -1
  49. package/resources/consent-settings.d.mts +220 -120
  50. package/resources/consent-settings.d.mts.map +1 -1
  51. package/resources/consent-settings.d.ts +220 -120
  52. package/resources/consent-settings.d.ts.map +1 -1
  53. package/resources/consent-settings.js +72 -34
  54. package/resources/consent-settings.js.map +1 -1
  55. package/resources/consent-settings.mjs +72 -34
  56. package/resources/consent-settings.mjs.map +1 -1
  57. package/resources/conversion-journey-summaries.d.mts +10 -5
  58. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  59. package/resources/conversion-journey-summaries.d.ts +10 -5
  60. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  61. package/resources/conversion-journey-summaries.js +10 -5
  62. package/resources/conversion-journey-summaries.js.map +1 -1
  63. package/resources/conversion-journey-summaries.mjs +10 -5
  64. package/resources/conversion-journey-summaries.mjs.map +1 -1
  65. package/resources/data-governance.d.mts +8 -6
  66. package/resources/data-governance.d.mts.map +1 -1
  67. package/resources/data-governance.d.ts +8 -6
  68. package/resources/data-governance.d.ts.map +1 -1
  69. package/resources/data-governance.js +8 -6
  70. package/resources/data-governance.js.map +1 -1
  71. package/resources/data-governance.mjs +8 -6
  72. package/resources/data-governance.mjs.map +1 -1
  73. package/resources/default-mappings.d.mts +6 -5
  74. package/resources/default-mappings.d.mts.map +1 -1
  75. package/resources/default-mappings.d.ts +6 -5
  76. package/resources/default-mappings.d.ts.map +1 -1
  77. package/resources/default-mappings.js +6 -5
  78. package/resources/default-mappings.js.map +1 -1
  79. package/resources/default-mappings.mjs +6 -5
  80. package/resources/default-mappings.mjs.map +1 -1
  81. package/resources/destinations.d.mts +17 -12
  82. package/resources/destinations.d.mts.map +1 -1
  83. package/resources/destinations.d.ts +17 -12
  84. package/resources/destinations.d.ts.map +1 -1
  85. package/resources/destinations.js +12 -7
  86. package/resources/destinations.js.map +1 -1
  87. package/resources/destinations.mjs +12 -7
  88. package/resources/destinations.mjs.map +1 -1
  89. package/resources/experiment-settings.d.mts +9 -6
  90. package/resources/experiment-settings.d.mts.map +1 -1
  91. package/resources/experiment-settings.d.ts +9 -6
  92. package/resources/experiment-settings.d.ts.map +1 -1
  93. package/resources/experiment-settings.js +9 -6
  94. package/resources/experiment-settings.js.map +1 -1
  95. package/resources/experiment-settings.mjs +9 -6
  96. package/resources/experiment-settings.mjs.map +1 -1
  97. package/resources/experiment-variants.d.mts +9 -5
  98. package/resources/experiment-variants.d.mts.map +1 -1
  99. package/resources/experiment-variants.d.ts +9 -5
  100. package/resources/experiment-variants.d.ts.map +1 -1
  101. package/resources/experiment-variants.js +9 -5
  102. package/resources/experiment-variants.js.map +1 -1
  103. package/resources/experiment-variants.mjs +9 -5
  104. package/resources/experiment-variants.mjs.map +1 -1
  105. package/resources/experiments.d.mts +30 -19
  106. package/resources/experiments.d.mts.map +1 -1
  107. package/resources/experiments.d.ts +30 -19
  108. package/resources/experiments.d.ts.map +1 -1
  109. package/resources/experiments.js +30 -19
  110. package/resources/experiments.js.map +1 -1
  111. package/resources/experiments.mjs +30 -19
  112. package/resources/experiments.mjs.map +1 -1
  113. package/resources/funnels.d.mts +11 -10
  114. package/resources/funnels.d.mts.map +1 -1
  115. package/resources/funnels.d.ts +11 -10
  116. package/resources/funnels.d.ts.map +1 -1
  117. package/resources/funnels.js +11 -10
  118. package/resources/funnels.js.map +1 -1
  119. package/resources/funnels.mjs +11 -10
  120. package/resources/funnels.mjs.map +1 -1
  121. package/resources/heatmap-pages.d.mts +3 -2
  122. package/resources/heatmap-pages.d.mts.map +1 -1
  123. package/resources/heatmap-pages.d.ts +3 -2
  124. package/resources/heatmap-pages.d.ts.map +1 -1
  125. package/resources/heatmap-pages.js +3 -2
  126. package/resources/heatmap-pages.js.map +1 -1
  127. package/resources/heatmap-pages.mjs +3 -2
  128. package/resources/heatmap-pages.mjs.map +1 -1
  129. package/resources/index.d.mts +1 -1
  130. package/resources/index.d.mts.map +1 -1
  131. package/resources/index.d.ts +1 -1
  132. package/resources/index.d.ts.map +1 -1
  133. package/resources/index.js.map +1 -1
  134. package/resources/index.mjs.map +1 -1
  135. package/resources/journey-flows.d.mts +17 -12
  136. package/resources/journey-flows.d.mts.map +1 -1
  137. package/resources/journey-flows.d.ts +17 -12
  138. package/resources/journey-flows.d.ts.map +1 -1
  139. package/resources/journey-flows.js +17 -12
  140. package/resources/journey-flows.js.map +1 -1
  141. package/resources/journey-flows.mjs +17 -12
  142. package/resources/journey-flows.mjs.map +1 -1
  143. package/resources/locations.d.mts +6 -5
  144. package/resources/locations.d.mts.map +1 -1
  145. package/resources/locations.d.ts +6 -5
  146. package/resources/locations.d.ts.map +1 -1
  147. package/resources/locations.js +6 -5
  148. package/resources/locations.js.map +1 -1
  149. package/resources/locations.mjs +6 -5
  150. package/resources/locations.mjs.map +1 -1
  151. package/resources/mappings.d.mts +18 -12
  152. package/resources/mappings.d.mts.map +1 -1
  153. package/resources/mappings.d.ts +18 -12
  154. package/resources/mappings.d.ts.map +1 -1
  155. package/resources/mappings.js +18 -12
  156. package/resources/mappings.js.map +1 -1
  157. package/resources/mappings.mjs +18 -12
  158. package/resources/mappings.mjs.map +1 -1
  159. package/resources/personalization-properties.d.mts +10 -7
  160. package/resources/personalization-properties.d.mts.map +1 -1
  161. package/resources/personalization-properties.d.ts +10 -7
  162. package/resources/personalization-properties.d.ts.map +1 -1
  163. package/resources/personalization-properties.js +10 -7
  164. package/resources/personalization-properties.js.map +1 -1
  165. package/resources/personalization-properties.mjs +10 -7
  166. package/resources/personalization-properties.mjs.map +1 -1
  167. package/resources/replay-settings.d.mts +9 -6
  168. package/resources/replay-settings.d.mts.map +1 -1
  169. package/resources/replay-settings.d.ts +9 -6
  170. package/resources/replay-settings.d.ts.map +1 -1
  171. package/resources/replay-settings.js +9 -6
  172. package/resources/replay-settings.js.map +1 -1
  173. package/resources/replay-settings.mjs +9 -6
  174. package/resources/replay-settings.mjs.map +1 -1
  175. package/resources/session-replays.d.mts +4 -2
  176. package/resources/session-replays.d.mts.map +1 -1
  177. package/resources/session-replays.d.ts +4 -2
  178. package/resources/session-replays.d.ts.map +1 -1
  179. package/resources/session-replays.js +4 -2
  180. package/resources/session-replays.js.map +1 -1
  181. package/resources/session-replays.mjs +4 -2
  182. package/resources/session-replays.mjs.map +1 -1
  183. package/resources/short-links.d.mts +11 -7
  184. package/resources/short-links.d.mts.map +1 -1
  185. package/resources/short-links.d.ts +11 -7
  186. package/resources/short-links.d.ts.map +1 -1
  187. package/resources/short-links.js +11 -7
  188. package/resources/short-links.js.map +1 -1
  189. package/resources/short-links.mjs +11 -7
  190. package/resources/short-links.mjs.map +1 -1
  191. package/resources/sources.d.mts +12 -6
  192. package/resources/sources.d.mts.map +1 -1
  193. package/resources/sources.d.ts +12 -6
  194. package/resources/sources.d.ts.map +1 -1
  195. package/resources/sources.js +12 -6
  196. package/resources/sources.js.map +1 -1
  197. package/resources/sources.mjs +12 -6
  198. package/resources/sources.mjs.map +1 -1
  199. package/resources/tag-manager-asset-folders.d.mts +2 -1
  200. package/resources/tag-manager-asset-folders.d.mts.map +1 -1
  201. package/resources/tag-manager-asset-folders.d.ts +2 -1
  202. package/resources/tag-manager-asset-folders.d.ts.map +1 -1
  203. package/resources/tag-manager-asset-folders.js +2 -1
  204. package/resources/tag-manager-asset-folders.js.map +1 -1
  205. package/resources/tag-manager-asset-folders.mjs +2 -1
  206. package/resources/tag-manager-asset-folders.mjs.map +1 -1
  207. package/resources/tag-manager-folders.d.mts +9 -7
  208. package/resources/tag-manager-folders.d.mts.map +1 -1
  209. package/resources/tag-manager-folders.d.ts +9 -7
  210. package/resources/tag-manager-folders.d.ts.map +1 -1
  211. package/resources/tag-manager-folders.js +9 -7
  212. package/resources/tag-manager-folders.js.map +1 -1
  213. package/resources/tag-manager-folders.mjs +9 -7
  214. package/resources/tag-manager-folders.mjs.map +1 -1
  215. package/resources/tag-manager-tags.d.mts +11 -7
  216. package/resources/tag-manager-tags.d.mts.map +1 -1
  217. package/resources/tag-manager-tags.d.ts +11 -7
  218. package/resources/tag-manager-tags.d.ts.map +1 -1
  219. package/resources/tag-manager-tags.js +10 -6
  220. package/resources/tag-manager-tags.js.map +1 -1
  221. package/resources/tag-manager-tags.mjs +10 -6
  222. package/resources/tag-manager-tags.mjs.map +1 -1
  223. package/resources/tag-manager-triggers.d.mts +12 -7
  224. package/resources/tag-manager-triggers.d.mts.map +1 -1
  225. package/resources/tag-manager-triggers.d.ts +12 -7
  226. package/resources/tag-manager-triggers.d.ts.map +1 -1
  227. package/resources/tag-manager-triggers.js +11 -6
  228. package/resources/tag-manager-triggers.js.map +1 -1
  229. package/resources/tag-manager-triggers.mjs +11 -6
  230. package/resources/tag-manager-triggers.mjs.map +1 -1
  231. package/resources/tag-manager-variables.d.mts +27 -23
  232. package/resources/tag-manager-variables.d.mts.map +1 -1
  233. package/resources/tag-manager-variables.d.ts +27 -23
  234. package/resources/tag-manager-variables.d.ts.map +1 -1
  235. package/resources/tag-manager-variables.js +10 -6
  236. package/resources/tag-manager-variables.js.map +1 -1
  237. package/resources/tag-manager-variables.mjs +10 -6
  238. package/resources/tag-manager-variables.mjs.map +1 -1
  239. package/resources/tag-managers.d.mts +10 -5
  240. package/resources/tag-managers.d.mts.map +1 -1
  241. package/resources/tag-managers.d.ts +10 -5
  242. package/resources/tag-managers.d.ts.map +1 -1
  243. package/resources/tag-managers.js +10 -5
  244. package/resources/tag-managers.js.map +1 -1
  245. package/resources/tag-managers.mjs +10 -5
  246. package/resources/tag-managers.mjs.map +1 -1
  247. package/resources/test-events.d.mts +6 -4
  248. package/resources/test-events.d.mts.map +1 -1
  249. package/resources/test-events.d.ts +6 -4
  250. package/resources/test-events.d.ts.map +1 -1
  251. package/resources/test-events.js +6 -4
  252. package/resources/test-events.js.map +1 -1
  253. package/resources/test-events.mjs +6 -4
  254. package/resources/test-events.mjs.map +1 -1
  255. package/resources/translation-widgets.d.mts +7 -6
  256. package/resources/translation-widgets.d.mts.map +1 -1
  257. package/resources/translation-widgets.d.ts +7 -6
  258. package/resources/translation-widgets.d.ts.map +1 -1
  259. package/resources/translation-widgets.js +7 -6
  260. package/resources/translation-widgets.js.map +1 -1
  261. package/resources/translation-widgets.mjs +7 -6
  262. package/resources/translation-widgets.mjs.map +1 -1
  263. package/resources/versions.d.mts +21 -11
  264. package/resources/versions.d.mts.map +1 -1
  265. package/resources/versions.d.ts +21 -11
  266. package/resources/versions.d.ts.map +1 -1
  267. package/resources/versions.js +16 -11
  268. package/resources/versions.js.map +1 -1
  269. package/resources/versions.mjs +16 -11
  270. package/resources/versions.mjs.map +1 -1
  271. package/resources/video-channels.d.mts +15 -9
  272. package/resources/video-channels.d.mts.map +1 -1
  273. package/resources/video-channels.d.ts +15 -9
  274. package/resources/video-channels.d.ts.map +1 -1
  275. package/resources/video-channels.js +15 -9
  276. package/resources/video-channels.js.map +1 -1
  277. package/resources/video-channels.mjs +15 -9
  278. package/resources/video-channels.mjs.map +1 -1
  279. package/resources/videos.d.mts +21 -14
  280. package/resources/videos.d.mts.map +1 -1
  281. package/resources/videos.d.ts +21 -14
  282. package/resources/videos.d.ts.map +1 -1
  283. package/resources/videos.js +21 -14
  284. package/resources/videos.js.map +1 -1
  285. package/resources/videos.mjs +21 -14
  286. package/resources/videos.mjs.map +1 -1
  287. package/resources/web-analytics.d.mts +14 -9
  288. package/resources/web-analytics.d.mts.map +1 -1
  289. package/resources/web-analytics.d.ts +14 -9
  290. package/resources/web-analytics.d.ts.map +1 -1
  291. package/resources/web-analytics.js +14 -9
  292. package/resources/web-analytics.js.map +1 -1
  293. package/resources/web-analytics.mjs +14 -9
  294. package/resources/web-analytics.mjs.map +1 -1
  295. package/resources/web-scanner-rules.d.mts +10 -6
  296. package/resources/web-scanner-rules.d.mts.map +1 -1
  297. package/resources/web-scanner-rules.d.ts +10 -6
  298. package/resources/web-scanner-rules.d.ts.map +1 -1
  299. package/resources/web-scanner-rules.js +10 -6
  300. package/resources/web-scanner-rules.js.map +1 -1
  301. package/resources/web-scanner-rules.mjs +10 -6
  302. package/resources/web-scanner-rules.mjs.map +1 -1
  303. package/resources/web-scanners.d.mts +26 -19
  304. package/resources/web-scanners.d.mts.map +1 -1
  305. package/resources/web-scanners.d.ts +26 -19
  306. package/resources/web-scanners.d.ts.map +1 -1
  307. package/resources/web-scanners.js +25 -18
  308. package/resources/web-scanners.js.map +1 -1
  309. package/resources/web-scanners.mjs +25 -18
  310. package/resources/web-scanners.mjs.map +1 -1
  311. package/src/client.ts +8 -0
  312. package/src/resources/allowed-events.ts +9 -7
  313. package/src/resources/analytics.ts +4 -2
  314. package/src/resources/attribution.ts +8 -5
  315. package/src/resources/audience-conversion-reports.ts +11 -9
  316. package/src/resources/consent-analytics.ts +2 -1
  317. package/src/resources/consent-settings.ts +264 -120
  318. package/src/resources/conversion-journey-summaries.ts +10 -5
  319. package/src/resources/data-governance.ts +8 -6
  320. package/src/resources/default-mappings.ts +6 -5
  321. package/src/resources/destinations.ts +17 -7
  322. package/src/resources/experiment-settings.ts +9 -6
  323. package/src/resources/experiment-variants.ts +9 -5
  324. package/src/resources/experiments.ts +30 -19
  325. package/src/resources/funnels.ts +11 -10
  326. package/src/resources/heatmap-pages.ts +3 -2
  327. package/src/resources/index.ts +4 -0
  328. package/src/resources/journey-flows.ts +17 -12
  329. package/src/resources/locations.ts +6 -5
  330. package/src/resources/mappings.ts +18 -12
  331. package/src/resources/personalization-properties.ts +10 -7
  332. package/src/resources/replay-settings.ts +9 -6
  333. package/src/resources/session-replays.ts +4 -2
  334. package/src/resources/short-links.ts +11 -7
  335. package/src/resources/sources.ts +12 -6
  336. package/src/resources/tag-manager-asset-folders.ts +2 -1
  337. package/src/resources/tag-manager-folders.ts +9 -7
  338. package/src/resources/tag-manager-tags.ts +11 -7
  339. package/src/resources/tag-manager-triggers.ts +12 -7
  340. package/src/resources/tag-manager-variables.ts +23 -19
  341. package/src/resources/tag-managers.ts +10 -5
  342. package/src/resources/test-events.ts +6 -4
  343. package/src/resources/translation-widgets.ts +7 -6
  344. package/src/resources/versions.ts +22 -11
  345. package/src/resources/video-channels.ts +15 -9
  346. package/src/resources/videos.ts +21 -14
  347. package/src/resources/web-analytics.ts +14 -9
  348. package/src/resources/web-scanner-rules.ts +10 -6
  349. package/src/resources/web-scanners.ts +26 -19
  350. package/src/version.ts +1 -1
  351. package/version.d.mts +1 -1
  352. package/version.d.ts +1 -1
  353. package/version.js +1 -1
  354. package/version.mjs +1 -1
@@ -12,7 +12,7 @@ export class TagManagerTriggers extends APIResource {
12
12
  * parameter — triggers are always scoped to one parent container. Supports cursor
13
13
  * pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
14
14
  * can return the full set (the web-app workspace renders all triggers in one
15
- * shot). Requires scope: tagManagers:find
15
+ * shot). Requires API-key scope or current OAuth user permission: tagManagers:find
16
16
  */
17
17
  list(
18
18
  query: TagManagerTriggerListParams,
@@ -27,7 +27,8 @@ export class TagManagerTriggers extends APIResource {
27
27
  /**
28
28
  * Create a new trigger inside a tag manager. `tagManagerId` is required in the
29
29
  * body. Send `conditions: []` for an unconditional trigger; otherwise supply
30
- * type-specific condition objects. Requires scope: tagManagers:update
30
+ * type-specific condition objects. Requires API-key scope or current OAuth user
31
+ * permission: tagManagers:update
31
32
  */
32
33
  create(
33
34
  body: TagManagerTriggerCreateParams,
@@ -37,7 +38,8 @@ export class TagManagerTriggers extends APIResource {
37
38
  }
38
39
 
39
40
  /**
40
- * Find a single tag manager trigger by ID. Requires scope: tagManagers:find
41
+ * Find a single tag manager trigger by ID. Requires API-key scope or current OAuth
42
+ * user permission: tagManagers:find
41
43
  */
42
44
  retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerRetrieveResponse> {
43
45
  return this._client.get(path`/rest/v1/tag-manager-triggers/${id}`, options);
@@ -46,7 +48,8 @@ export class TagManagerTriggers extends APIResource {
46
48
  /**
47
49
  * Partially update a trigger. Only the fields you send are changed. `conditions`
48
50
  * is replaced wholesale when sent. To assign a trigger to a folder, use
49
- * `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
51
+ * `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
52
+ * OAuth user permission: tagManagers:update
50
53
  */
51
54
  update(
52
55
  id: string,
@@ -57,7 +60,8 @@ export class TagManagerTriggers extends APIResource {
57
60
  }
58
61
 
59
62
  /**
60
- * Delete a tag manager trigger. Requires scope: tagManagers:update
63
+ * Delete a tag manager trigger. Requires API-key scope or current OAuth user
64
+ * permission: tagManagers:update
61
65
  */
62
66
  delete(id: string, options?: RequestOptions): APIPromise<TagManagerTriggerDeleteResponse> {
63
67
  return this._client.delete(path`/rest/v1/tag-manager-triggers/${id}`, options);
@@ -68,7 +72,8 @@ export class TagManagerTriggers extends APIResource {
68
72
  * to send on create/patch, and the shape of the type-specific `parameters`
69
73
  * payload. Trigger `conditions` are evaluated at runtime (per-trigger, see the
70
74
  * resource docs) and are not part of this descriptor. Account-agnostic: the
71
- * response is the same for every API key. Requires scope: tagManagers:find
75
+ * response is the same for every API key. Requires API-key scope or current OAuth
76
+ * user permission: tagManagers:find
72
77
  */
73
78
  types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse> {
74
79
  return this._client.get('/rest/v1/tag-manager-triggers/types', options);
@@ -320,7 +325,7 @@ export namespace TagManagerTriggerTypesResponse {
320
325
  /**
321
326
  * Default value when the caller omits the parameter on create.
322
327
  */
323
- default?: { [key: string]: unknown };
328
+ default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
324
329
 
325
330
  description?: string | null;
326
331
 
@@ -12,7 +12,7 @@ export class TagManagerVariables extends APIResource {
12
12
  * parameter — variables are always scoped to one parent container. Supports cursor
13
13
  * pagination via `limit` and `cursor`; the limit clamp is 1000 so a single request
14
14
  * can return the full set (the web-app workspace renders all variables in one
15
- * shot). Requires scope: tagManagers:find
15
+ * shot). Requires API-key scope or current OAuth user permission: tagManagers:find
16
16
  */
17
17
  list(
18
18
  query: TagManagerVariableListParams,
@@ -28,7 +28,7 @@ export class TagManagerVariables extends APIResource {
28
28
  * Create a new variable inside a tag manager. `tagManagerId` is required in the
29
29
  * body. Known input failures (e.g. duplicate variable name within the tag manager)
30
30
  * are returned as HTTP 409 with the reason in the response `error` field. Requires
31
- * scope: tagManagers:update
31
+ * API-key scope or current OAuth user permission: tagManagers:update
32
32
  */
33
33
  create(
34
34
  body: TagManagerVariableCreateParams,
@@ -38,7 +38,8 @@ export class TagManagerVariables extends APIResource {
38
38
  }
39
39
 
40
40
  /**
41
- * Find a single tag manager variable by ID. Requires scope: tagManagers:find
41
+ * Find a single tag manager variable by ID. Requires API-key scope or current
42
+ * OAuth user permission: tagManagers:find
42
43
  */
43
44
  retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerVariableRetrieveResponse> {
44
45
  return this._client.get(path`/rest/v1/tag-manager-variables/${id}`, options);
@@ -48,7 +49,8 @@ export class TagManagerVariables extends APIResource {
48
49
  * Partially update a variable. Only the fields you send are changed. Name
49
50
  * collisions with other variables in the same tag manager return 409 with the
50
51
  * reason in the response `error` field. To assign a variable to a folder, use
51
- * `POST /rest/v1/tag-manager-asset-folders`. Requires scope: tagManagers:update
52
+ * `POST /rest/v1/tag-manager-asset-folders`. Requires API-key scope or current
53
+ * OAuth user permission: tagManagers:update
52
54
  */
53
55
  update(
54
56
  id: string,
@@ -59,7 +61,8 @@ export class TagManagerVariables extends APIResource {
59
61
  }
60
62
 
61
63
  /**
62
- * Delete a tag manager variable. Requires scope: tagManagers:update
64
+ * Delete a tag manager variable. Requires API-key scope or current OAuth user
65
+ * permission: tagManagers:update
63
66
  */
64
67
  delete(id: string, options?: RequestOptions): APIPromise<TagManagerVariableDeleteResponse> {
65
68
  return this._client.delete(path`/rest/v1/tag-manager-variables/${id}`, options);
@@ -70,7 +73,8 @@ export class TagManagerVariables extends APIResource {
70
73
  * to send on create/patch, the shape of the type-specific `parameters` payload,
71
74
  * and `supportsVariables` (whether the variable's own parameter fields may
72
75
  * reference `{{OtherVariable}}` at runtime). Account-agnostic: the response is the
73
- * same for every API key. Requires scope: tagManagers:find
76
+ * same for every API key. Requires API-key scope or current OAuth user permission:
77
+ * tagManagers:find
74
78
  */
75
79
  types(options?: RequestOptions): APIPromise<TagManagerVariableTypesResponse> {
76
80
  return this._client.get('/rest/v1/tag-manager-variables/types', options);
@@ -106,7 +110,7 @@ export interface TagManagerVariableListResponse {
106
110
  * Default value returned when no rule matches. JSON value — type depends on
107
111
  * `type`.
108
112
  */
109
- defaultValue?: { [key: string]: unknown };
113
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
110
114
 
111
115
  enabled?: boolean | null;
112
116
 
@@ -119,7 +123,7 @@ export interface TagManagerVariableListResponse {
119
123
  /**
120
124
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
121
125
  */
122
- lookUpTable?: { [key: string]: unknown };
126
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
123
127
 
124
128
  updatedAt?: string | null;
125
129
  }
@@ -151,7 +155,7 @@ export interface TagManagerVariableCreateResponse {
151
155
  * Default value returned when no rule matches. JSON value — type depends on
152
156
  * `type`.
153
157
  */
154
- defaultValue?: { [key: string]: unknown };
158
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
155
159
 
156
160
  enabled?: boolean | null;
157
161
 
@@ -164,7 +168,7 @@ export interface TagManagerVariableCreateResponse {
164
168
  /**
165
169
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
166
170
  */
167
- lookUpTable?: { [key: string]: unknown };
171
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
168
172
 
169
173
  updatedAt?: string | null;
170
174
  }
@@ -196,7 +200,7 @@ export interface TagManagerVariableRetrieveResponse {
196
200
  * Default value returned when no rule matches. JSON value — type depends on
197
201
  * `type`.
198
202
  */
199
- defaultValue?: { [key: string]: unknown };
203
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
200
204
 
201
205
  enabled?: boolean | null;
202
206
 
@@ -209,7 +213,7 @@ export interface TagManagerVariableRetrieveResponse {
209
213
  /**
210
214
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
211
215
  */
212
- lookUpTable?: { [key: string]: unknown };
216
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
213
217
 
214
218
  updatedAt?: string | null;
215
219
  }
@@ -241,7 +245,7 @@ export interface TagManagerVariableUpdateResponse {
241
245
  * Default value returned when no rule matches. JSON value — type depends on
242
246
  * `type`.
243
247
  */
244
- defaultValue?: { [key: string]: unknown };
248
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
245
249
 
246
250
  enabled?: boolean | null;
247
251
 
@@ -254,7 +258,7 @@ export interface TagManagerVariableUpdateResponse {
254
258
  /**
255
259
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
256
260
  */
257
- lookUpTable?: { [key: string]: unknown };
261
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
258
262
 
259
263
  updatedAt?: string | null;
260
264
  }
@@ -328,7 +332,7 @@ export namespace TagManagerVariableTypesResponse {
328
332
  /**
329
333
  * Default value when the caller omits the parameter on create.
330
334
  */
331
- default?: { [key: string]: unknown };
335
+ default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
332
336
 
333
337
  description?: string | null;
334
338
 
@@ -391,21 +395,21 @@ export interface TagManagerVariableCreateParams {
391
395
  /**
392
396
  * Optional default value. JSON value of any type.
393
397
  */
394
- defaultValue?: { [key: string]: unknown } | null;
398
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
395
399
 
396
400
  enabled?: boolean | null;
397
401
 
398
402
  /**
399
403
  * Optional lookup table for `LookUpTable` variables.
400
404
  */
401
- lookUpTable?: { [key: string]: unknown } | null;
405
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
402
406
  }
403
407
 
404
408
  export interface TagManagerVariableUpdateParams {
405
409
  /**
406
410
  * Updated default value. JSON value of any type.
407
411
  */
408
- defaultValue?: { [key: string]: unknown } | null;
412
+ defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
409
413
 
410
414
  /**
411
415
  * Pause/resume the variable without changing other fields.
@@ -415,7 +419,7 @@ export interface TagManagerVariableUpdateParams {
415
419
  /**
416
420
  * Updated lookup table payload.
417
421
  */
418
- lookUpTable?: { [key: string]: unknown } | null;
422
+ lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
419
423
 
420
424
  /**
421
425
  * Updated variable name.
@@ -10,7 +10,8 @@ export class TagManagers extends APIResource {
10
10
  * List every tag manager on this account. Each tag manager is a pixel-scoped
11
11
  * container of tags, triggers, variables, and folders. Not paginated — accounts
12
12
  * are capped at a small number of tag managers in practice, so the response fits
13
- * in a single page. Requires scope: tagManagers:list
13
+ * in a single page. Requires API-key scope or current OAuth user permission:
14
+ * tagManagers:list
14
15
  */
15
16
  list(options?: RequestOptions): APIPromise<TagManagerListResponse> {
16
17
  return this._client.get('/rest/v1/tag-managers', options);
@@ -23,7 +24,8 @@ export class TagManagers extends APIResource {
23
24
  * `GET /tag-manager-triggers?tagManagerId={id}` right after create to grab their
24
25
  * server-assigned ids so you can reuse them in `fireTriggerIds` instead of
25
26
  * redundantly creating a second `PageView`/`DomReady`/`Initialization`. Returns
26
- * the bare entity. Requires scope: tagManagers:create
27
+ * the bare entity. Requires API-key scope or current OAuth user permission:
28
+ * tagManagers:create
27
29
  */
28
30
  create(body: TagManagerCreateParams, options?: RequestOptions): APIPromise<TagManagerCreateResponse> {
29
31
  return this._client.post('/rest/v1/tag-managers', { body, ...options });
@@ -31,7 +33,8 @@ export class TagManagers extends APIResource {
31
33
 
32
34
  /**
33
35
  * Fetch a single tag manager by id, including its server-assigned `pixel` token
34
- * used by the install snippet. Requires scope: tagManagers:find
36
+ * used by the install snippet. Requires API-key scope or current OAuth user
37
+ * permission: tagManagers:find
35
38
  */
36
39
  retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerRetrieveResponse> {
37
40
  return this._client.get(path`/rest/v1/tag-managers/${id}`, options);
@@ -40,7 +43,8 @@ export class TagManagers extends APIResource {
40
43
  /**
41
44
  * Partially update a tag manager. Only the fields you send are changed; omitted
42
45
  * fields keep their current value. Send `dataLayerName: null` to clear the
43
- * override and fall back to the SDK default. Requires scope: tagManagers:update
46
+ * override and fall back to the SDK default. Requires API-key scope or current
47
+ * OAuth user permission: tagManagers:update
44
48
  */
45
49
  update(
46
50
  id: string,
@@ -52,7 +56,8 @@ export class TagManagers extends APIResource {
52
56
 
53
57
  /**
54
58
  * Delete a tag manager. Child tags, triggers, variables, and folders are
55
- * cascade-deleted with the container. Requires scope: tagManagers:delete
59
+ * cascade-deleted with the container. Requires API-key scope or current OAuth user
60
+ * permission: tagManagers:delete
56
61
  */
57
62
  delete(id: string, options?: RequestOptions): APIPromise<TagManagerDeleteResponse> {
58
63
  return this._client.delete(path`/rest/v1/tag-managers/${id}`, options);
@@ -13,7 +13,7 @@ export class TestEvents extends APIResource {
13
13
  * `isTestEvent` indicates whether a test token was used. Returns full event
14
14
  * properties. Pass an entity id unchanged to the detail or dispatch endpoint. Use
15
15
  * `limit` (default 25, maximum 100) and `cursor` to page through results. Requires
16
- * scope: report:list-events
16
+ * API-key scope or current OAuth user permission: report:list-events
17
17
  *
18
18
  * @example
19
19
  * ```ts
@@ -41,7 +41,8 @@ export class TestEvents extends APIResource {
41
41
  * Recent Events. Use the returned `id` with
42
42
  * `GET /rest/v1/test-events/{id}/dispatches` to retrieve recorded dispatches.
43
43
  * Supply `visitorId` and `distinctId` to choose the identity yourself; otherwise
44
- * they are generated and returned. Requires scope: test-event:create
44
+ * they are generated and returned. Requires API-key scope or current OAuth user
45
+ * permission: test-event:create
45
46
  *
46
47
  * @example
47
48
  * ```ts
@@ -58,7 +59,8 @@ export class TestEvents extends APIResource {
58
59
  * Retrieve one browser, server, or synthetic event captured in debug mode within
59
60
  * the last 48 hours. Use an id returned by the create or list endpoint. Events
60
61
  * that have not arrived, expired events, and events outside your account
61
- * return 404. Requires scope: report:view-event
62
+ * return 404. Requires API-key scope or current OAuth user permission:
63
+ * report:view-event
62
64
  *
63
65
  * @example
64
66
  * ```ts
@@ -78,7 +80,7 @@ export class TestEvents extends APIResource {
78
80
  * until dispatch records arrive, and may remain empty when no dispatch occurs.
79
81
  * Results can grow as processing continues; this endpoint does not predict
80
82
  * destinations or signal completion. Requires the report:view-dispatch scope.
81
- * Requires scope: report:view-dispatch
83
+ * Requires API-key scope or current OAuth user permission: report:view-dispatch
82
84
  *
83
85
  * @example
84
86
  * ```ts
@@ -9,8 +9,8 @@ export class TranslationWidgets extends APIResource {
9
9
  /**
10
10
  * List every translation widget configured on the account, including the domains
11
11
  * it runs on, its appearance settings, and the languages it offers. Not paginated
12
- * — widgets are capped by the account's translation widget limit. Requires scope:
13
- * translationWidget:list
12
+ * — widgets are capped by the account's translation widget limit. Requires API-key
13
+ * scope or current OAuth user permission: translationWidget:list
14
14
  *
15
15
  * @example
16
16
  * ```ts
@@ -27,7 +27,8 @@ export class TranslationWidgets extends APIResource {
27
27
  * back as `null` and the widget falls back to its built-in appearance, and
28
28
  * omitting `enabledLanguages` offers every supported language. Returns the full
29
29
  * widget, including its id, so it can be installed without a follow-up request.
30
- * Requires scope: translationWidget:create
30
+ * Requires API-key scope or current OAuth user permission:
31
+ * translationWidget:create
31
32
  *
32
33
  * @example
33
34
  * ```ts
@@ -44,7 +45,7 @@ export class TranslationWidgets extends APIResource {
44
45
 
45
46
  /**
46
47
  * Fetch one translation widget by its id. Returns 404 when it does not exist.
47
- * Requires scope: translationWidget:find
48
+ * Requires API-key scope or current OAuth user permission: translationWidget:find
48
49
  *
49
50
  * @example
50
51
  * ```ts
@@ -60,8 +61,8 @@ export class TranslationWidgets extends APIResource {
60
61
 
61
62
  /**
62
63
  * Return usage totals and language, host, and page breakdowns for one translation
63
- * widget over the requested date range. Requires scope:
64
- * report:translation-analytics
64
+ * widget over the requested date range. Requires API-key scope or current OAuth
65
+ * user permission: report:translation-analytics
65
66
  *
66
67
  * @example
67
68
  * ```ts
@@ -10,7 +10,8 @@ export class Versions extends APIResource {
10
10
  /**
11
11
  * List versions for this account, newest first. Supports cursor pagination and
12
12
  * filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
13
- * with AND semantics. Requires scope: version:list
13
+ * with AND semantics. Requires API-key scope or current OAuth user permission:
14
+ * version:list
14
15
  */
15
16
  list(
16
17
  query: VersionListParams | null | undefined = {},
@@ -35,14 +36,16 @@ export class Versions extends APIResource {
35
36
  * an entity-id allowlist for one collection — omit (or send `[]`) to include every
36
37
  * draft change in that collection, or send a non-empty array to whitelist only
37
38
  * those ids. Unlisted collections inherit wholesale from the latest published
38
- * version. Requires scope: version:publish
39
+ * version. Requires API-key scope or current OAuth user permission:
40
+ * version:publish
39
41
  */
40
42
  create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
41
43
  return this._client.post('/rest/v1/versions', { body, ...options });
42
44
  }
43
45
 
44
46
  /**
45
- * Find a single version by ID. Requires scope: version:find
47
+ * Find a single version by ID. Requires API-key scope or current OAuth user
48
+ * permission: version:find
46
49
  */
47
50
  retrieve(id: string, options?: RequestOptions): APIPromise<VersionRetrieveResponse> {
48
51
  return this._client.get(path`/rest/v1/versions/${id}`, options);
@@ -50,7 +53,7 @@ export class Versions extends APIResource {
50
53
 
51
54
  /**
52
55
  * Partially update a version. Only the fields you send are changed. Requires
53
- * scope: version:update
56
+ * API-key scope or current OAuth user permission: version:update
54
57
  */
55
58
  update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
56
59
  return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
@@ -61,7 +64,7 @@ export class Versions extends APIResource {
61
64
  * to an older snapshot. Returns 409 if the version is already published, was
62
65
  * created more than 45 days ago, or another publish is already in flight. To
63
66
  * create-and-publish from current draft state, use POST /rest/v1/versions instead.
64
- * Requires scope: version:publish
67
+ * Requires API-key scope or current OAuth user permission: version:publish
65
68
  */
66
69
  publish(id: string, options?: RequestOptions): APIPromise<VersionPublishResponse> {
67
70
  return this._client.post(path`/rest/v1/versions/${id}/publish`, options);
@@ -71,8 +74,8 @@ export class Versions extends APIResource {
71
74
  * Retrieve the full JSON snapshot captured by a version — every entity
72
75
  * (destinations, sources, mappings, consent settings, etc.) as it existed when
73
76
  * this version was published. Sensitive fields (API keys, tokens, secrets) are
74
- * redacted. Useful for IaC export, audit, and backup workflows. Requires scope:
75
- * version:find
77
+ * redacted. Useful for IaC export, audit, and backup workflows. Requires API-key
78
+ * scope or current OAuth user permission: version:find
76
79
  */
77
80
  snapshot(id: string, options?: RequestOptions): APIPromise<VersionSnapshotResponse> {
78
81
  return this._client.get(path`/rest/v1/versions/${id}/snapshot`, options);
@@ -97,7 +100,8 @@ export class Versions extends APIResource {
97
100
  * latest published version.
98
101
  * - `GET /rest/v1/versions/{id}/diff?against={otherId}` — compare two specific
99
102
  * versions. `otherId` may also be `draft` to diff a published snapshot against
100
- * the live draft state. Requires scope: version:find
103
+ * the live draft state. Requires API-key scope or current OAuth user permission:
104
+ * version:find
101
105
  */
102
106
  diff(
103
107
  id: 'draft' | (string & {}),
@@ -122,7 +126,7 @@ export class Versions extends APIResource {
122
126
  * `GET /rest/v1/versions/draft/diff` when you need the full change set instead of
123
127
  * one entity. (`draft` is a literal path segment identifying the live draft as the
124
128
  * target, which is why the entity is passed as `entityId` rather than `id`.)
125
- * Requires scope: version:find
129
+ * Requires API-key scope or current OAuth user permission: version:find
126
130
  */
127
131
  status(
128
132
  id: 'draft',
@@ -147,7 +151,8 @@ export class Versions extends APIResource {
147
151
  * use the experiment lifecycle endpoints (`/start`, `/stop`) for those — but
148
152
  * `experimentSettings` is supported. To discard every pending change at once, use
149
153
  * `POST /rest/v1/versions/draft/abandon`. (`draft` is a literal path segment
150
- * identifying the live draft as the target.) Requires scope: version:publish
154
+ * identifying the live draft as the target.) Requires API-key scope or current
155
+ * OAuth user permission: version:publish
151
156
  */
152
157
  revert(
153
158
  id: 'draft',
@@ -165,7 +170,7 @@ export class Versions extends APIResource {
165
170
  * version to revert to, or when another publish or abandon is already in flight.
166
171
  * To revert only specific changes, use `POST /rest/v1/versions/draft/revert`.
167
172
  * (`draft` is a literal path segment identifying the live draft as the target.)
168
- * Requires scope: version:publish
173
+ * Requires API-key scope or current OAuth user permission: version:publish
169
174
  */
170
175
  abandon(id: 'draft', options?: RequestOptions): APIPromise<VersionAbandonResponse> {
171
176
  return this._client.post(path`/rest/v1/versions/${id}/abandon`, options);
@@ -3213,6 +3218,12 @@ export interface VersionListParams extends CursorParams {
3213
3218
  }
3214
3219
 
3215
3220
  export interface VersionCreateParams {
3221
+ /**
3222
+ * Allow publishing web sources without allowed domains for this version. Defaults
3223
+ * to false. Sources without allowed domains accept events from any domain.
3224
+ */
3225
+ bypassWebSourceDomainValidation?: boolean | null;
3226
+
3216
3227
  /**
3217
3228
  * Cherry-pick: allowed event ids (slug-like strings) to include from the draft.
3218
3229
  * Omit or send `[]` to include all draft changes in this collection.
@@ -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,