@lessly/sdk-app 105.4.0 → 105.5.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.
@@ -135113,6 +135113,175 @@ lookbackDays: number
135113
135113
  costLastSyncedAt: (string | null)
135114
135114
  }
135115
135115
 
135116
+ export interface TrackingHeatmapsGetInput {
135117
+ /**
135118
+ * End of the period, ISO 8601: recordings that started at or before it.
135119
+ */
135120
+ to: string
135121
+ /**
135122
+ * Start of the period, ISO 8601 (e.g. 2026-10-01T00:00:00Z): recordings that started at or after it. At most 30 days before `to`.
135123
+ */
135124
+ from: string
135125
+ /**
135126
+ * Required: a map is drawn for one kind of device (desktop, tablet or mobile), since layouts differ.
135127
+ */
135128
+ device: ("desktop" | "tablet" | "mobile")
135129
+ /**
135130
+ * The page, as tracking_heatmaps_pages returns it: host + normalized path, e.g. shop.example.com/pricing.
135131
+ */
135132
+ pageKey: string
135133
+ /**
135134
+ * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
135135
+ */
135136
+ converted?: boolean
135137
+ /**
135138
+ * Only recordings whose entry page carried this utm_source, e.g. google.
135139
+ */
135140
+ utmSource?: string
135141
+ /**
135142
+ * Only recordings whose entry page carried this utm_campaign, e.g. spring.
135143
+ */
135144
+ utmCampaign?: string
135145
+ }
135146
+
135147
+ export interface TrackingHeatmapsGetOutput {
135148
+ /**
135149
+ * At most 300 elements, most clicked first.
135150
+ */
135151
+ clicks: {
135152
+ /**
135153
+ * Clicks on it.
135154
+ */
135155
+ count: number
135156
+ /**
135157
+ * Clicks on a 50x50 grid laid over the element; empty cells left out.
135158
+ */
135159
+ points: {
135160
+ /**
135161
+ * Cell centre across the element, 0 (left edge) to 1 (right edge).
135162
+ */
135163
+ rx: number
135164
+ /**
135165
+ * Cell centre down the element, 0 (top) to 1 (bottom).
135166
+ */
135167
+ ry: number
135168
+ /**
135169
+ * Clicks in the cell.
135170
+ */
135171
+ count: number
135172
+ }[]
135173
+ /**
135174
+ * CSS selector of the clicked element, as built in the browser.
135175
+ */
135176
+ selector: string
135177
+ /**
135178
+ * Recordings with at least one click on it.
135179
+ */
135180
+ sessions: number
135181
+ }[]
135182
+ /**
135183
+ * How far down the page the sessions scrolled.
135184
+ */
135185
+ scroll: {
135186
+ /**
135187
+ * 20 shares (0..1): reached[i] is the share of the sessions that reported a scroll depth on the page whose deepest point is at least (i+1)*5% of the page height (reached[9] = the 50% line). Empty below the threshold.
135188
+ */
135189
+ reached: number[]
135190
+ /**
135191
+ * Median page height in px over those sessions. Null below the threshold or without any scroll sample.
135192
+ */
135193
+ medianDocHeight: (number | null)
135194
+ }
135195
+ /**
135196
+ * Recordings of the period, device and filters with a click or a scroll sample on this page.
135197
+ */
135198
+ sessions: number
135199
+ /**
135200
+ * The latest recording of this device (any time in retention) whose segment loaded this page with a full snapshot at its start. Null when none: a page only ever reached by in-app navigation has no picture of its own.
135201
+ */
135202
+ background: ({
135203
+ /**
135204
+ * Page load of the segment.
135205
+ */
135206
+ pid: string
135207
+ /**
135208
+ * Consent (re)start of the segment.
135209
+ */
135210
+ seg: number
135211
+ /**
135212
+ * Recording to draw the page from. Pass to tracking_recordings_chunks_get with pid and seg.
135213
+ */
135214
+ recordingId: string
135215
+ } | null)
135216
+ /**
135217
+ * True when sessions < 10: clicks and scroll.reached are then empty and medianDocHeight null.
135218
+ */
135219
+ belowThreshold: boolean
135220
+ }
135221
+
135222
+ export interface TrackingHeatmapsPagesInput {
135223
+ /**
135224
+ * Only pages whose key contains this text, case-insensitively, e.g. /pricing.
135225
+ */
135226
+ q?: string
135227
+ /**
135228
+ * End of the period, ISO 8601: recordings that started at or before it.
135229
+ */
135230
+ to: string
135231
+ /**
135232
+ * Start of the period, ISO 8601 (e.g. 2026-10-01T00:00:00Z): recordings that started at or after it. At most 30 days before `to`.
135233
+ */
135234
+ from: string
135235
+ /**
135236
+ * Pages per page of results, 1 to 100 (default 50).
135237
+ */
135238
+ limit?: number
135239
+ /**
135240
+ * Continue a previous page: pass the nextCursor it returned.
135241
+ */
135242
+ cursor?: string
135243
+ /**
135244
+ * Only recordings from this kind of device: desktop, tablet or mobile. Omit for all.
135245
+ */
135246
+ device?: ("desktop" | "tablet" | "mobile")
135247
+ /**
135248
+ * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
135249
+ */
135250
+ converted?: boolean
135251
+ /**
135252
+ * Only recordings whose entry page carried this utm_source, e.g. google.
135253
+ */
135254
+ utmSource?: string
135255
+ /**
135256
+ * Only recordings whose entry page carried this utm_campaign, e.g. spring.
135257
+ */
135258
+ utmCampaign?: string
135259
+ }
135260
+
135261
+ export interface TrackingHeatmapsPagesOutput {
135262
+ /**
135263
+ * Most sessions first.
135264
+ */
135265
+ pages: {
135266
+ /**
135267
+ * Clicks on this page in those recordings.
135268
+ */
135269
+ clicks: number
135270
+ /**
135271
+ * host + normalized path: no query, no hash, ids and hashes replaced by *. Pass it to tracking_heatmaps_get.
135272
+ */
135273
+ pageKey: string
135274
+ /**
135275
+ * Recordings of the period and filters with a click or a scroll sample on this page.
135276
+ */
135277
+ sessions: number
135278
+ }[]
135279
+ /**
135280
+ * Pass back as cursor for the next page. Null on the last page.
135281
+ */
135282
+ nextCursor: (string | null)
135283
+ }
135284
+
135116
135285
  export interface TrackingIdentityHealthInput {
135117
135286
 
135118
135287
  }
@@ -136187,6 +136356,10 @@ limit?: number
136187
136356
  * Continue a previous page: pass the nextCursor it returned. Omit to start from the newest recording.
136188
136357
  */
136189
136358
  cursor?: string
136359
+ /**
136360
+ * Only recordings from this kind of device, as classified on ingest: desktop, tablet or mobile.
136361
+ */
136362
+ device?: ("desktop" | "tablet" | "mobile")
136190
136363
  /**
136191
136364
  * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
136192
136365
  */