@lessly/sdk-app 105.3.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
  }
@@ -136024,7 +136193,7 @@ id: string
136024
136193
  */
136025
136194
  device: (string | null)
136026
136195
  /**
136027
- * Tracker events of the session, oldest first, at most 2000.
136196
+ * Tracker events of the recording itself — pages on the recording's hosts, from 5 s before its start to 5 s after its end — oldest first, at most 2000.
136028
136197
  */
136029
136198
  events: {
136030
136199
  /**
@@ -136144,9 +136313,30 @@ segmentCount: number
136144
136313
  */
136145
136314
  clockOffsetMs: number
136146
136315
  /**
136147
- * True when the session had more than 2000 events and the rest were left out.
136316
+ * True when the recording had more than 2000 events and the rest were left out.
136148
136317
  */
136149
136318
  eventsTruncated: boolean
136319
+ /**
136320
+ * The first conversion of the same session that is not in events: after the recording ended (up to 24 h later), or during it on a host the recording has no page of. Any host. Compare at with the span of the recording to tell which. Null when there is none.
136321
+ */
136322
+ laterConversion: ({
136323
+ /**
136324
+ * When it happened, ISO 8601, browser clock.
136325
+ */
136326
+ at: string
136327
+ /**
136328
+ * Event name of the conversion.
136329
+ */
136330
+ name: string
136331
+ /**
136332
+ * ISO 4217 code. Null when none.
136333
+ */
136334
+ currency: (string | null)
136335
+ /**
136336
+ * Amount in minor units. Null when the event carried none.
136337
+ */
136338
+ amountMinor: (number | null)
136339
+ } | null)
136150
136340
  }
136151
136341
 
136152
136342
  export interface TrackingRecordingsListInput {
@@ -136166,6 +136356,10 @@ limit?: number
136166
136356
  * Continue a previous page: pass the nextCursor it returned. Omit to start from the newest recording.
136167
136357
  */
136168
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")
136169
136363
  /**
136170
136364
  * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
136171
136365
  */