@oursprivacy/platform-sdk 1.45.0 → 1.47.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 (178) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +25 -13
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -13
  5. package/client.d.ts.map +1 -1
  6. package/client.js +14 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +14 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/attribution.d.mts +9 -1
  12. package/resources/attribution.d.mts.map +1 -1
  13. package/resources/attribution.d.ts +9 -1
  14. package/resources/attribution.d.ts.map +1 -1
  15. package/resources/consent-settings.d.mts +48 -0
  16. package/resources/consent-settings.d.mts.map +1 -1
  17. package/resources/consent-settings.d.ts +48 -0
  18. package/resources/consent-settings.d.ts.map +1 -1
  19. package/resources/conversion-journey-summaries.d.mts +38 -0
  20. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  21. package/resources/conversion-journey-summaries.d.ts +38 -0
  22. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  23. package/resources/conversion-journey-summaries.js +38 -0
  24. package/resources/conversion-journey-summaries.js.map +1 -1
  25. package/resources/conversion-journey-summaries.mjs +38 -0
  26. package/resources/conversion-journey-summaries.mjs.map +1 -1
  27. package/resources/data-governance.d.mts +5 -5
  28. package/resources/data-governance.d.mts.map +1 -1
  29. package/resources/data-governance.d.ts +5 -5
  30. package/resources/data-governance.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +7 -27
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +7 -27
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +4 -2
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +4 -2
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +677 -102
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +677 -102
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/experiments.js +32 -2
  44. package/resources/experiments.js.map +1 -1
  45. package/resources/experiments.mjs +32 -2
  46. package/resources/experiments.mjs.map +1 -1
  47. package/resources/funnels.d.mts +172 -22
  48. package/resources/funnels.d.mts.map +1 -1
  49. package/resources/funnels.d.ts +172 -22
  50. package/resources/funnels.d.ts.map +1 -1
  51. package/resources/funnels.js +10 -2
  52. package/resources/funnels.js.map +1 -1
  53. package/resources/funnels.mjs +10 -2
  54. package/resources/funnels.mjs.map +1 -1
  55. package/resources/heatmap-pages.d.mts +42 -14
  56. package/resources/heatmap-pages.d.mts.map +1 -1
  57. package/resources/heatmap-pages.d.ts +42 -14
  58. package/resources/heatmap-pages.d.ts.map +1 -1
  59. package/resources/heatmap-pages.js +11 -7
  60. package/resources/heatmap-pages.js.map +1 -1
  61. package/resources/heatmap-pages.mjs +11 -7
  62. package/resources/heatmap-pages.mjs.map +1 -1
  63. package/resources/index.d.mts +10 -6
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +10 -6
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +9 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +4 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/mappings.d.mts +2 -2
  72. package/resources/mappings.d.mts.map +1 -1
  73. package/resources/mappings.d.ts +2 -2
  74. package/resources/mappings.d.ts.map +1 -1
  75. package/resources/personalization-properties.d.mts +547 -0
  76. package/resources/personalization-properties.d.mts.map +1 -0
  77. package/resources/personalization-properties.d.ts +547 -0
  78. package/resources/personalization-properties.d.ts.map +1 -0
  79. package/resources/personalization-properties.js +100 -0
  80. package/resources/personalization-properties.js.map +1 -0
  81. package/resources/personalization-properties.mjs +96 -0
  82. package/resources/personalization-properties.mjs.map +1 -0
  83. package/resources/session-replays.d.mts +91 -0
  84. package/resources/session-replays.d.mts.map +1 -0
  85. package/resources/session-replays.d.ts +91 -0
  86. package/resources/session-replays.d.ts.map +1 -0
  87. package/resources/session-replays.js +24 -0
  88. package/resources/session-replays.js.map +1 -0
  89. package/resources/session-replays.mjs +20 -0
  90. package/resources/session-replays.mjs.map +1 -0
  91. package/resources/short-links.d.mts +138 -37
  92. package/resources/short-links.d.mts.map +1 -1
  93. package/resources/short-links.d.ts +138 -37
  94. package/resources/short-links.d.ts.map +1 -1
  95. package/resources/short-links.js +27 -12
  96. package/resources/short-links.js.map +1 -1
  97. package/resources/short-links.mjs +27 -12
  98. package/resources/short-links.mjs.map +1 -1
  99. package/resources/sources.d.mts +10 -6
  100. package/resources/sources.d.mts.map +1 -1
  101. package/resources/sources.d.ts +10 -6
  102. package/resources/sources.d.ts.map +1 -1
  103. package/resources/tag-manager-tags.d.mts +2 -2
  104. package/resources/tag-manager-tags.d.ts +2 -2
  105. package/resources/tag-manager-tags.js +2 -2
  106. package/resources/tag-manager-tags.mjs +2 -2
  107. package/resources/tag-manager-triggers.d.mts +18 -1
  108. package/resources/tag-manager-triggers.d.mts.map +1 -1
  109. package/resources/tag-manager-triggers.d.ts +18 -1
  110. package/resources/tag-manager-triggers.d.ts.map +1 -1
  111. package/resources/translation-widgets.d.mts +62 -0
  112. package/resources/translation-widgets.d.mts.map +1 -0
  113. package/resources/translation-widgets.d.ts +62 -0
  114. package/resources/translation-widgets.d.ts.map +1 -0
  115. package/resources/translation-widgets.js +18 -0
  116. package/resources/translation-widgets.js.map +1 -0
  117. package/resources/translation-widgets.mjs +14 -0
  118. package/resources/translation-widgets.mjs.map +1 -0
  119. package/resources/versions.d.mts +52 -1
  120. package/resources/versions.d.mts.map +1 -1
  121. package/resources/versions.d.ts +52 -1
  122. package/resources/versions.d.ts.map +1 -1
  123. package/resources/versions.js +20 -0
  124. package/resources/versions.js.map +1 -1
  125. package/resources/versions.mjs +20 -0
  126. package/resources/versions.mjs.map +1 -1
  127. package/resources/video-channels.d.mts +17 -17
  128. package/resources/video-channels.d.mts.map +1 -1
  129. package/resources/video-channels.d.ts +17 -17
  130. package/resources/video-channels.d.ts.map +1 -1
  131. package/resources/video-channels.js +17 -16
  132. package/resources/video-channels.js.map +1 -1
  133. package/resources/video-channels.mjs +17 -16
  134. package/resources/video-channels.mjs.map +1 -1
  135. package/resources/web-analytics.d.mts +345 -0
  136. package/resources/web-analytics.d.mts.map +1 -0
  137. package/resources/web-analytics.d.ts +345 -0
  138. package/resources/web-analytics.d.ts.map +1 -0
  139. package/resources/web-analytics.js +61 -0
  140. package/resources/web-analytics.js.map +1 -0
  141. package/resources/web-analytics.mjs +57 -0
  142. package/resources/web-analytics.mjs.map +1 -0
  143. package/resources/web-scanners.d.mts +314 -14
  144. package/resources/web-scanners.d.mts.map +1 -1
  145. package/resources/web-scanners.d.ts +314 -14
  146. package/resources/web-scanners.d.ts.map +1 -1
  147. package/resources/web-scanners.js +139 -13
  148. package/resources/web-scanners.js.map +1 -1
  149. package/resources/web-scanners.mjs +139 -13
  150. package/resources/web-scanners.mjs.map +1 -1
  151. package/src/client.ts +147 -19
  152. package/src/resources/attribution.ts +11 -1
  153. package/src/resources/consent-settings.ts +56 -0
  154. package/src/resources/conversion-journey-summaries.ts +38 -0
  155. package/src/resources/data-governance.ts +5 -5
  156. package/src/resources/destinations.ts +18 -115
  157. package/src/resources/experiment-variants.ts +4 -2
  158. package/src/resources/experiments.ts +812 -101
  159. package/src/resources/funnels.ts +276 -21
  160. package/src/resources/heatmap-pages.ts +49 -14
  161. package/src/resources/index.ts +61 -3
  162. package/src/resources/mappings.ts +2 -2
  163. package/src/resources/personalization-properties.ts +662 -0
  164. package/src/resources/session-replays.ts +138 -0
  165. package/src/resources/short-links.ts +164 -36
  166. package/src/resources/sources.ts +11 -0
  167. package/src/resources/tag-manager-tags.ts +2 -2
  168. package/src/resources/tag-manager-triggers.ts +18 -1
  169. package/src/resources/translation-widgets.ts +97 -0
  170. package/src/resources/versions.ts +95 -0
  171. package/src/resources/video-channels.ts +19 -18
  172. package/src/resources/web-analytics.ts +494 -0
  173. package/src/resources/web-scanners.ts +443 -13
  174. package/src/version.ts +1 -1
  175. package/version.d.mts +1 -1
  176. package/version.d.ts +1 -1
  177. package/version.js +1 -1
  178. package/version.mjs +1 -1
@@ -51,13 +51,22 @@ export class Funnels extends APIResource {
51
51
  return this._client.delete(path`/rest/v1/funnels/${id}`, options);
52
52
  }
53
53
 
54
+ /**
55
+ * Duplicate a funnel configuration in the same account. The copy keeps the funnel
56
+ * steps and settings, receives a new ID, and is named `Copy of …`. Requires scope:
57
+ * web-analytics:write
58
+ */
59
+ duplicate(id: string, options?: RequestOptions): APIPromise<FunnelDuplicateResponse> {
60
+ return this._client.post(path`/rest/v1/funnels/${id}/duplicate`, options);
61
+ }
62
+
54
63
  /**
55
64
  * Compute funnel step analytics for a funnel over a date window. Returns per-step
56
65
  * visitor counts, conversion rates, drop-off rates, average time to next step, and
57
66
  * sample session IDs for replay. Results are computed on demand from event data at
58
67
  * request time, so any date window within the supported range returns current
59
- * results. `to` must be on or after `from`, and the window may span at most 31 days
60
- * including both endpoints. Requires scope: web-analytics:view
68
+ * results. `to` must be on or after `from`, and the window may span at most 31
69
+ * days including both endpoints. Requires scope: web-analytics:view
61
70
  */
62
71
  results(
63
72
  id: string,
@@ -148,7 +157,7 @@ export namespace FunnelListResponse {
148
157
  */
149
158
  AND?: Array<unknown> | null;
150
159
 
151
- condition?: Logic.Condition;
160
+ condition?: Logic.Condition | null;
152
161
 
153
162
  /**
154
163
  * Negates a single child logic node.
@@ -243,7 +252,7 @@ export namespace FunnelListResponse {
243
252
  */
244
253
  AND?: Array<unknown> | null;
245
254
 
246
- condition?: GlobalLogic.Condition;
255
+ condition?: GlobalLogic.Condition | null;
247
256
 
248
257
  /**
249
258
  * Negates a single child logic node.
@@ -328,9 +337,6 @@ export namespace FunnelListResponse {
328
337
  }
329
338
  }
330
339
 
331
- /**
332
- * Created funnel configuration
333
- */
334
340
  export interface FunnelCreateResponse {
335
341
  createdAt: string;
336
342
 
@@ -403,7 +409,7 @@ export namespace FunnelCreateResponse {
403
409
  */
404
410
  AND?: Array<unknown> | null;
405
411
 
406
- condition?: Logic.Condition;
412
+ condition?: Logic.Condition | null;
407
413
 
408
414
  /**
409
415
  * Negates a single child logic node.
@@ -498,7 +504,7 @@ export namespace FunnelCreateResponse {
498
504
  */
499
505
  AND?: Array<unknown> | null;
500
506
 
501
- condition?: GlobalLogic.Condition;
507
+ condition?: GlobalLogic.Condition | null;
502
508
 
503
509
  /**
504
510
  * Negates a single child logic node.
@@ -657,7 +663,7 @@ export namespace FunnelRetrieveResponse {
657
663
  */
658
664
  AND?: Array<unknown> | null;
659
665
 
660
- condition?: Logic.Condition;
666
+ condition?: Logic.Condition | null;
661
667
 
662
668
  /**
663
669
  * Negates a single child logic node.
@@ -752,7 +758,7 @@ export namespace FunnelRetrieveResponse {
752
758
  */
753
759
  AND?: Array<unknown> | null;
754
760
 
755
- condition?: GlobalLogic.Condition;
761
+ condition?: GlobalLogic.Condition | null;
756
762
 
757
763
  /**
758
764
  * Negates a single child logic node.
@@ -836,9 +842,6 @@ export namespace FunnelRetrieveResponse {
836
842
  }
837
843
  }
838
844
 
839
- /**
840
- * Updated funnel configuration
841
- */
842
845
  export interface FunnelUpdateResponse {
843
846
  createdAt: string;
844
847
 
@@ -911,7 +914,7 @@ export namespace FunnelUpdateResponse {
911
914
  */
912
915
  AND?: Array<unknown> | null;
913
916
 
914
- condition?: Logic.Condition;
917
+ condition?: Logic.Condition | null;
915
918
 
916
919
  /**
917
920
  * Negates a single child logic node.
@@ -1006,7 +1009,7 @@ export namespace FunnelUpdateResponse {
1006
1009
  */
1007
1010
  AND?: Array<unknown> | null;
1008
1011
 
1009
- condition?: GlobalLogic.Condition;
1012
+ condition?: GlobalLogic.Condition | null;
1010
1013
 
1011
1014
  /**
1012
1015
  * Negates a single child logic node.
@@ -1091,9 +1094,260 @@ export namespace FunnelUpdateResponse {
1091
1094
  }
1092
1095
 
1093
1096
  export interface FunnelDeleteResponse {
1097
+ id: string;
1098
+
1094
1099
  deleted: true;
1100
+ }
1095
1101
 
1096
- id: string;
1102
+ export interface FunnelDuplicateResponse {
1103
+ createdAt: string;
1104
+
1105
+ funnelId: string;
1106
+
1107
+ funnelType: 'SESSION_BASED' | 'VISITOR_BASED';
1108
+
1109
+ name: string;
1110
+
1111
+ status: 'READY' | 'PROCESSING';
1112
+
1113
+ steps: Array<FunnelDuplicateResponse.Step>;
1114
+
1115
+ updatedAt: string;
1116
+
1117
+ conversionWindow?: FunnelDuplicateResponse.ConversionWindow | null;
1118
+
1119
+ countingMethod?: 'UNIQUES' | 'TOTALS' | 'SESSIONS' | null;
1120
+
1121
+ description?: string | null;
1122
+
1123
+ /**
1124
+ * Nested visitor logic for the entire funnel. When supplied, this replaces legacy
1125
+ * UTM filters.
1126
+ */
1127
+ globalLogic?: FunnelDuplicateResponse.GlobalLogic | null;
1128
+
1129
+ reportDateRange?: FunnelDuplicateResponse.ReportDateRange | null;
1130
+
1131
+ stepOrder?: 'EXACT' | 'ANY' | null;
1132
+
1133
+ /**
1134
+ * Legacy exact-match UTM filters. Do not combine with globalLogic; globalLogic
1135
+ * takes precedence.
1136
+ */
1137
+ utmFilters?: unknown | null;
1138
+
1139
+ watched?: boolean | null;
1140
+ }
1141
+
1142
+ export namespace FunnelDuplicateResponse {
1143
+ export interface Step {
1144
+ eventName: string;
1145
+
1146
+ name: string;
1147
+
1148
+ order: number;
1149
+
1150
+ stepId: string;
1151
+
1152
+ /**
1153
+ * Step-level event filters (JSON object).
1154
+ */
1155
+ filters?: unknown;
1156
+
1157
+ /**
1158
+ * Step-level event logic.
1159
+ */
1160
+ logic?: Step.Logic | null;
1161
+ }
1162
+
1163
+ export namespace Step {
1164
+ /**
1165
+ * Step-level event logic.
1166
+ */
1167
+ export interface Logic {
1168
+ /**
1169
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
1170
+ * or combinator).
1171
+ */
1172
+ AND?: Array<unknown> | null;
1173
+
1174
+ condition?: Logic.Condition | null;
1175
+
1176
+ /**
1177
+ * Negates a single child logic node.
1178
+ */
1179
+ NOT?: unknown;
1180
+
1181
+ /**
1182
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
1183
+ * or combinator).
1184
+ */
1185
+ OR?: Array<unknown> | null;
1186
+ }
1187
+
1188
+ export namespace Logic {
1189
+ export interface Condition {
1190
+ /**
1191
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
1192
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
1193
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
1194
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
1195
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
1196
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
1197
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
1198
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
1199
+ */
1200
+ operator:
1201
+ | 'Is'
1202
+ | 'IsNot'
1203
+ | 'Contains'
1204
+ | 'DoesNotContain'
1205
+ | 'StartsWith'
1206
+ | 'EndsWith'
1207
+ | 'IsFalsy'
1208
+ | 'IsTruthy'
1209
+ | 'IsNull'
1210
+ | 'IsNotNull'
1211
+ | 'IsUndefined'
1212
+ | 'IsNotUndefined'
1213
+ | 'IsGreaterThan'
1214
+ | 'IsGreaterThanOrEqual'
1215
+ | 'IsLessThan'
1216
+ | 'IsLessThanOrEqual'
1217
+ | 'IsIn'
1218
+ | 'IsNotIn'
1219
+ | 'IsFoundIn'
1220
+ | 'IsNotFoundIn'
1221
+ | 'IsTrue'
1222
+ | 'IsFalse'
1223
+ | 'IsBefore'
1224
+ | 'IsAfter'
1225
+ | 'IsBetween'
1226
+ | 'IsOnOrBefore'
1227
+ | 'IsOnOrAfter'
1228
+ | 'MatchesRegex'
1229
+ | 'MatchesRegexIgnoreCase'
1230
+ | 'DoesNotMatchRegex'
1231
+ | 'DoesNotMatchRegexIgnoreCase';
1232
+
1233
+ /**
1234
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
1235
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
1236
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
1237
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
1238
+ * and would be compared as a literal string.
1239
+ */
1240
+ property: string;
1241
+
1242
+ /**
1243
+ * String compared against the resolved property. Operators that take no value
1244
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
1245
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
1246
+ */
1247
+ value: string;
1248
+ }
1249
+ }
1250
+ }
1251
+
1252
+ export interface ConversionWindow {
1253
+ unit: 'MINUTES' | 'HOURS' | 'DAYS';
1254
+
1255
+ value: number;
1256
+ }
1257
+
1258
+ /**
1259
+ * Nested visitor logic for the entire funnel. When supplied, this replaces legacy
1260
+ * UTM filters.
1261
+ */
1262
+ export interface GlobalLogic {
1263
+ /**
1264
+ * All child nodes must match. Each child is itself a logic node (leaf `condition`
1265
+ * or combinator).
1266
+ */
1267
+ AND?: Array<unknown> | null;
1268
+
1269
+ condition?: GlobalLogic.Condition | null;
1270
+
1271
+ /**
1272
+ * Negates a single child logic node.
1273
+ */
1274
+ NOT?: unknown;
1275
+
1276
+ /**
1277
+ * Any child node must match. Each child is itself a logic node (leaf `condition`
1278
+ * or combinator).
1279
+ */
1280
+ OR?: Array<unknown> | null;
1281
+ }
1282
+
1283
+ export namespace GlobalLogic {
1284
+ export interface Condition {
1285
+ /**
1286
+ * Comparison verb in PascalCase. Equality/text: `Is`, `IsNot`, `Contains`,
1287
+ * `DoesNotContain`, `StartsWith`, `EndsWith`. Truthiness/nullability: `IsFalsy`,
1288
+ * `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`, `IsTrue`,
1289
+ * `IsFalse`. Numeric: `IsGreaterThan`, `IsGreaterThanOrEqual`, `IsLessThan`,
1290
+ * `IsLessThanOrEqual`. Set membership: `IsIn`, `IsNotIn`, `IsFoundIn`,
1291
+ * `IsNotFoundIn`. Date: `IsBefore`, `IsAfter`, `IsBetween`, `IsOnOrBefore`,
1292
+ * `IsOnOrAfter`. Regex: `MatchesRegex`, `MatchesRegexIgnoreCase`,
1293
+ * `DoesNotMatchRegex`, `DoesNotMatchRegexIgnoreCase`.
1294
+ */
1295
+ operator:
1296
+ | 'Is'
1297
+ | 'IsNot'
1298
+ | 'Contains'
1299
+ | 'DoesNotContain'
1300
+ | 'StartsWith'
1301
+ | 'EndsWith'
1302
+ | 'IsFalsy'
1303
+ | 'IsTruthy'
1304
+ | 'IsNull'
1305
+ | 'IsNotNull'
1306
+ | 'IsUndefined'
1307
+ | 'IsNotUndefined'
1308
+ | 'IsGreaterThan'
1309
+ | 'IsGreaterThanOrEqual'
1310
+ | 'IsLessThan'
1311
+ | 'IsLessThanOrEqual'
1312
+ | 'IsIn'
1313
+ | 'IsNotIn'
1314
+ | 'IsFoundIn'
1315
+ | 'IsNotFoundIn'
1316
+ | 'IsTrue'
1317
+ | 'IsFalse'
1318
+ | 'IsBefore'
1319
+ | 'IsAfter'
1320
+ | 'IsBetween'
1321
+ | 'IsOnOrBefore'
1322
+ | 'IsOnOrAfter'
1323
+ | 'MatchesRegex'
1324
+ | 'MatchesRegexIgnoreCase'
1325
+ | 'DoesNotMatchRegex'
1326
+ | 'DoesNotMatchRegexIgnoreCase';
1327
+
1328
+ /**
1329
+ * Bare dotted path into the event/visitor record. Examples: `$event.event`,
1330
+ * `$event.event_properties.value`, `visitor.consent.marketing`. The leading `$` is
1331
+ * optional and stripped before lookup. Do **not** use `{{...}}` here — that
1332
+ * template syntax is for mapping values (`mappings[].map`), not logic conditions,
1333
+ * and would be compared as a literal string.
1334
+ */
1335
+ property: string;
1336
+
1337
+ /**
1338
+ * String compared against the resolved property. Operators that take no value
1339
+ * (`IsFalsy`, `IsTruthy`, `IsNull`, `IsNotNull`, `IsUndefined`, `IsNotUndefined`,
1340
+ * `IsTrue`, `IsFalse`) ignore this field — send `""`.
1341
+ */
1342
+ value: string;
1343
+ }
1344
+ }
1345
+
1346
+ export interface ReportDateRange {
1347
+ from: string;
1348
+
1349
+ to: string;
1350
+ }
1097
1351
  }
1098
1352
 
1099
1353
  export interface FunnelResultsResponse {
@@ -1203,7 +1457,7 @@ export namespace FunnelCreateParams {
1203
1457
  */
1204
1458
  AND?: Array<unknown> | null;
1205
1459
 
1206
- condition?: Logic.Condition;
1460
+ condition?: Logic.Condition | null;
1207
1461
 
1208
1462
  /**
1209
1463
  * Negates a single child logic node.
@@ -1292,7 +1546,7 @@ export namespace FunnelCreateParams {
1292
1546
  */
1293
1547
  AND?: Array<unknown> | null;
1294
1548
 
1295
- condition?: GlobalLogic.Condition;
1549
+ condition?: GlobalLogic.Condition | null;
1296
1550
 
1297
1551
  /**
1298
1552
  * Negates a single child logic node.
@@ -1412,7 +1666,7 @@ export namespace FunnelUpdateParams {
1412
1666
  */
1413
1667
  AND?: Array<unknown> | null;
1414
1668
 
1415
- condition?: GlobalLogic.Condition;
1669
+ condition?: GlobalLogic.Condition | null;
1416
1670
 
1417
1671
  /**
1418
1672
  * Negates a single child logic node.
@@ -1509,7 +1763,7 @@ export namespace FunnelUpdateParams {
1509
1763
  */
1510
1764
  AND?: Array<unknown> | null;
1511
1765
 
1512
- condition?: Logic.Condition;
1766
+ condition?: Logic.Condition | null;
1513
1767
 
1514
1768
  /**
1515
1769
  * Negates a single child logic node.
@@ -1657,6 +1911,7 @@ export declare namespace Funnels {
1657
1911
  type FunnelRetrieveResponse as FunnelRetrieveResponse,
1658
1912
  type FunnelUpdateResponse as FunnelUpdateResponse,
1659
1913
  type FunnelDeleteResponse as FunnelDeleteResponse,
1914
+ type FunnelDuplicateResponse as FunnelDuplicateResponse,
1660
1915
  type FunnelResultsResponse as FunnelResultsResponse,
1661
1916
  type FunnelCreateParams as FunnelCreateParams,
1662
1917
  type FunnelUpdateParams as FunnelUpdateParams,
@@ -8,12 +8,14 @@ import { RequestOptions } from '../internal/request-options';
8
8
  export class HeatmapPages extends APIResource {
9
9
  /**
10
10
  * List pages with heatmap coverage in a date window, ranked for triage. Each
11
- * entity is identified by `pageKey` (origin + pathname, query string stripped);
12
- * use that value to drill into `GET /rest/v1/heatmap-pages/summary`. Supports
13
- * cursor pagination, with cursor depth capped at roughly 10,000 entries; if you
14
- * need pages beyond that, narrow `from`/`to` or add filters rather than paginating
15
- * further. `from`/`to` are UTC calendar days in `YYYY-MM-DD`; the window must be
16
- * 60 days or fewer. Requires scope: web-analytics:view
11
+ * entity is identified by `pageKey`, normally origin + pathname with the query
12
+ * string stripped; an account-configured split may include one significant query
13
+ * parameter. Preserve the returned `pageKey` when calling
14
+ * `GET /rest/v1/heatmap-pages/summary`. Supports cursor pagination, with cursor
15
+ * depth capped at roughly 10,000 entries; if you need pages beyond that, narrow
16
+ * `from`/`to` or add filters rather than paginating further. `from`/`to` are UTC
17
+ * calendar days in `YYYY-MM-DD`; the window must be 60 days or fewer. Requires
18
+ * scope: web-analytics:view
17
19
  */
18
20
  list(
19
21
  query: HeatmapPageListParams,
@@ -35,7 +37,9 @@ export class HeatmapPages extends APIResource {
35
37
  * is a documented derived-read exception. `breakpoint` scopes the bin/scroll
36
38
  * aggregations; replays are returned across all breakpoints regardless of
37
39
  * `breakpoint` (weighted to cover multiple viewports) so callers can compare
38
- * devices. Requires scope: web-analytics:view
40
+ * devices. `clickGrid` always supplies fine click positions for rendering.
41
+ * `clickBins` derives compatible 64×64 counts from the same grid; its totals must
42
+ * not be added to them. Requires scope: web-analytics:view
39
43
  */
40
44
  summary(query: HeatmapPageSummaryParams, options?: RequestOptions): APIPromise<HeatmapPageSummaryResponse> {
41
45
  return this._client.get('/rest/v1/heatmap-pages/summary', { query, ...options });
@@ -54,9 +58,10 @@ export interface HeatmapPageListResponse {
54
58
  issueScore: number;
55
59
 
56
60
  /**
57
- * Stable per-page identifier (origin + pathname, query string stripped). Use this
58
- * as the `pageKey` argument to `GET /rest/v1/heatmap-pages/summary` and the
59
- * heatmap MCP tools.
61
+ * Stable per-page identifier. It is normally origin + pathname with the query
62
+ * string stripped, but an account-configured split may include one significant
63
+ * query parameter. Preserve the returned value when calling
64
+ * `GET /rest/v1/heatmap-pages/summary` and the heatmap MCP tools.
60
65
  */
61
66
  pageKey: string;
62
67
 
@@ -77,11 +82,17 @@ export namespace HeatmapPageListResponse {
77
82
 
78
83
  export interface HeatmapPageSummaryResponse {
79
84
  /**
80
- * Aggregated click positions for the requested breakpoint, bucketed into a 64×64
81
- * grid normalized to the page viewport.
85
+ * Compatibility click counts for the requested breakpoint in a 64×64
86
+ * document-normalized grid. Use clickGrid for painting.
82
87
  */
83
88
  clickBins: Array<HeatmapPageSummaryResponse.ClickBin>;
84
89
 
90
+ /**
91
+ * Document-normalized click positions at 64×512 resolution. These are the same
92
+ * clicks as clickBins; do not add their totals together.
93
+ */
94
+ clickGrid: HeatmapPageSummaryResponse.ClickGrid;
95
+
85
96
  /**
86
97
  * Click positions where no interactive element was hit. `topElement` is the
87
98
  * most-frequently-clicked non-interactive ancestor tag at that bucket, if
@@ -117,6 +128,28 @@ export namespace HeatmapPageSummaryResponse {
117
128
  clicks: number;
118
129
  }
119
130
 
131
+ /**
132
+ * Document-normalized click positions at 64×512 resolution. These are the same
133
+ * clicks as clickBins; do not add their totals together.
134
+ */
135
+ export interface ClickGrid {
136
+ bins: Array<ClickGrid.Bin>;
137
+
138
+ columns: 64;
139
+
140
+ rows: 512;
141
+ }
142
+
143
+ export namespace ClickGrid {
144
+ export interface Bin {
145
+ binX: number;
146
+
147
+ binY: number;
148
+
149
+ clicks: number;
150
+ }
151
+ }
152
+
120
153
  export interface DeadClick {
121
154
  binX: number;
122
155
 
@@ -219,8 +252,10 @@ export interface HeatmapPageSummaryParams {
219
252
  from: string;
220
253
 
221
254
  /**
222
- * Page identifier returned by `GET /rest/v1/heatmap-pages`. Origin + pathname with
223
- * the query string stripped (e.g. `https://example.com/pricing`).
255
+ * Page identifier returned by `GET /rest/v1/heatmap-pages`. It is normally
256
+ * origin + pathname with the query string stripped, but may include one
257
+ * account-configured significant query parameter. Pass the returned value
258
+ * unchanged.
224
259
  */
225
260
  pageKey: string;
226
261
 
@@ -131,6 +131,7 @@ export {
131
131
  type ExperimentRetrieveResponse,
132
132
  type ExperimentUpdateResponse,
133
133
  type ExperimentDeleteResponse,
134
+ type ExperimentDuplicateResponse,
134
135
  type ExperimentStartResponse,
135
136
  type ExperimentStopResponse,
136
137
  type ExperimentRolloutResponse,
@@ -139,6 +140,7 @@ export {
139
140
  type ExperimentPauseResponse,
140
141
  type ExperimentResumeResponse,
141
142
  type ExperimentResultsResponse,
143
+ type ExperimentAnalysisResponse,
142
144
  type ExperimentResultsTimeSeriesResponse,
143
145
  type ExperimentSessionReplaysResponse,
144
146
  type ExperimentListParams,
@@ -151,6 +153,7 @@ export {
151
153
  type ExperimentPauseParams,
152
154
  type ExperimentResumeParams,
153
155
  type ExperimentResultsParams,
156
+ type ExperimentAnalysisParams,
154
157
  type ExperimentResultsTimeSeriesParams,
155
158
  type ExperimentSessionReplaysParams,
156
159
  type ExperimentListResponsesCursor,
@@ -162,6 +165,7 @@ export {
162
165
  type FunnelRetrieveResponse,
163
166
  type FunnelUpdateResponse,
164
167
  type FunnelDeleteResponse,
168
+ type FunnelDuplicateResponse,
165
169
  type FunnelResultsResponse,
166
170
  type FunnelCreateParams,
167
171
  type FunnelUpdateParams,
@@ -204,6 +208,18 @@ export {
204
208
  type MappingTemplatesParams,
205
209
  type MappingListResponsesCursor,
206
210
  } from './mappings';
211
+ export {
212
+ PersonalizationProperties,
213
+ type PersonalizationPropertyListResponse,
214
+ type PersonalizationPropertyCreateResponse,
215
+ type PersonalizationPropertyRetrieveResponse,
216
+ type PersonalizationPropertyUpdateResponse,
217
+ type PersonalizationPropertyDeleteResponse,
218
+ type PersonalizationPropertyListParams,
219
+ type PersonalizationPropertyCreateParams,
220
+ type PersonalizationPropertyUpdateParams,
221
+ type PersonalizationPropertyListResponsesCursor,
222
+ } from './personalization-properties';
207
223
  export {
208
224
  ReplaySettings,
209
225
  type ReplaySettingListResponse,
@@ -216,6 +232,13 @@ export {
216
232
  type ReplaySettingUpdateParams,
217
233
  type ReplaySettingListResponsesCursor,
218
234
  } from './replay-settings';
235
+ export {
236
+ SessionReplays,
237
+ type SessionReplayListResponse,
238
+ type SessionReplayOverviewResponse,
239
+ type SessionReplayListParams,
240
+ type SessionReplayOverviewParams,
241
+ } from './session-replays';
219
242
  export {
220
243
  ShortLinks,
221
244
  type ShortLinkListResponse,
@@ -223,6 +246,7 @@ export {
223
246
  type ShortLinkRetrieveResponse,
224
247
  type ShortLinkUpdateResponse,
225
248
  type ShortLinkDeleteResponse,
249
+ type ShortLinkCloneResponse,
226
250
  type ShortLinkResultsResponse,
227
251
  type ShortLinkListParams,
228
252
  type ShortLinkCreateParams,
@@ -309,6 +333,11 @@ export {
309
333
  type TagManagerCreateParams,
310
334
  type TagManagerUpdateParams,
311
335
  } from './tag-managers';
336
+ export {
337
+ TranslationWidgets,
338
+ type TranslationWidgetAnalyticsResponse,
339
+ type TranslationWidgetAnalyticsParams,
340
+ } from './translation-widgets';
312
341
  export {
313
342
  Versions,
314
343
  type VersionListResponse,
@@ -318,12 +347,14 @@ export {
318
347
  type VersionPublishResponse,
319
348
  type VersionSnapshotResponse,
320
349
  type VersionDiffResponse,
350
+ type VersionStatusResponse,
321
351
  type VersionRevertResponse,
322
352
  type VersionAbandonResponse,
323
353
  type VersionListParams,
324
354
  type VersionCreateParams,
325
355
  type VersionUpdateParams,
326
356
  type VersionDiffParams,
357
+ type VersionStatusParams,
327
358
  type VersionRevertParams,
328
359
  type VersionListResponsesCursor,
329
360
  } from './versions';
@@ -353,18 +384,37 @@ export {
353
384
  type VideoRetrieveResponse,
354
385
  type VideoUpdateResponse,
355
386
  type VideoDeleteResponse,
356
- type VideoAnalyticsResponse,
357
- type VideoAnalyticsTimeseriesResponse,
387
+ type VideoUploadResponse,
358
388
  type VideoTranscriptResponse,
359
389
  type VideoUpdateTranscriptResponse,
390
+ type VideoAnalyticsResponse,
391
+ type VideoAnalyticsTimeseriesResponse,
360
392
  type VideoListParams,
361
393
  type VideoCreateParams,
362
394
  type VideoUpdateParams,
395
+ type VideoUploadParams,
396
+ type VideoUpdateTranscriptParams,
363
397
  type VideoAnalyticsParams,
364
398
  type VideoAnalyticsTimeseriesParams,
365
- type VideoUpdateTranscriptParams,
366
399
  type VideoListResponsesCursor,
367
400
  } from './videos';
401
+ export {
402
+ WebAnalytics,
403
+ type WebAnalyticsOverviewResponse,
404
+ type WebAnalyticsSourcesResponse,
405
+ type WebAnalyticsPagesResponse,
406
+ type WebAnalyticsLocationsResponse,
407
+ type WebAnalyticsDevicesResponse,
408
+ type WebAnalyticsCurrentVisitorsResponse,
409
+ type WebAnalyticsJourneyResponse,
410
+ type WebAnalyticsOverviewParams,
411
+ type WebAnalyticsSourcesParams,
412
+ type WebAnalyticsPagesParams,
413
+ type WebAnalyticsLocationsParams,
414
+ type WebAnalyticsDevicesParams,
415
+ type WebAnalyticsCurrentVisitorsParams,
416
+ type WebAnalyticsJourneyParams,
417
+ } from './web-analytics';
368
418
  export {
369
419
  WebScannerRules,
370
420
  type WebScannerRuleListResponse,
@@ -384,11 +434,19 @@ export {
384
434
  type WebScannerUpdateResponse,
385
435
  type WebScannerDeleteResponse,
386
436
  type WebScannerTriggerResponse,
437
+ type WebScannerAuthenticatedScanResponse,
438
+ type WebScannerTargetedScanResponse,
439
+ type WebScannerVerificationRunResponse,
440
+ type WebScannerVerificationRunsResponse,
387
441
  type WebScannerFindingsResponse,
388
442
  type WebScannerCookiesResponse,
389
443
  type WebScannerSummaryResponse,
390
444
  type WebScannerCreateParams,
391
445
  type WebScannerUpdateParams,
446
+ type WebScannerAuthenticatedScanParams,
447
+ type WebScannerTargetedScanParams,
448
+ type WebScannerVerificationRunParams,
449
+ type WebScannerVerificationRunsParams,
392
450
  type WebScannerFindingsParams,
393
451
  type WebScannerCookiesParams,
394
452
  type WebScannerSummaryParams,
@@ -942,7 +942,7 @@ export namespace MappingCreateParams {
942
942
  */
943
943
  AND?: Array<unknown> | null;
944
944
 
945
- condition?: Logic.Condition;
945
+ condition?: Logic.Condition | null;
946
946
 
947
947
  /**
948
948
  * Negates a single child logic node.
@@ -1112,7 +1112,7 @@ export namespace MappingUpdateParams {
1112
1112
  */
1113
1113
  AND?: Array<unknown> | null;
1114
1114
 
1115
- condition?: Logic.Condition;
1115
+ condition?: Logic.Condition | null;
1116
1116
 
1117
1117
  /**
1118
1118
  * Negates a single child logic node.