@lessly/sdk-app 103.0.0 → 104.0.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 (35) hide show
  1. package/CHANGELOG.md +10 -32
  2. package/dist/_types/gen/client.gen.d.ts +49 -1
  3. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  4. package/dist/_types/gen/playground/connect.gen.d.ts +3 -0
  5. package/dist/_types/gen/playground/index.d.ts +3 -0
  6. package/dist/_types/gen/playground/queryOptions.gen.d.ts +70 -0
  7. package/dist/_types/gen/tracking/index.d.ts +1 -1
  8. package/dist/_types/gen/tracking/queryOptions.gen.d.ts +21 -1
  9. package/dist/_types/gen/types.gen.d.ts +699 -10
  10. package/dist/chunk-FSDRL4AE.js +12083 -0
  11. package/dist/chunk-FSDRL4AE.js.map +1 -0
  12. package/dist/index.cjs +359 -46
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +32 -11788
  15. package/dist/index.js.map +1 -1
  16. package/dist/playground/index.cjs +106 -0
  17. package/dist/playground/index.cjs.map +1 -0
  18. package/dist/playground/index.d.cts +1 -0
  19. package/dist/playground/index.d.ts +1 -0
  20. package/dist/playground/index.js +78 -0
  21. package/dist/playground/index.js.map +1 -0
  22. package/dist/tracking/index.cjs +25 -0
  23. package/dist/tracking/index.cjs.map +1 -1
  24. package/dist/tracking/index.js +21 -1
  25. package/dist/tracking/index.js.map +1 -1
  26. package/package.json +12 -2
  27. package/src/gen/bindings.gen.ts +338 -46
  28. package/src/gen/client.gen.ts +92 -0
  29. package/src/gen/manifest.gen.ts +31 -2
  30. package/src/gen/playground/connect.gen.ts +9 -0
  31. package/src/gen/playground/index.ts +4 -0
  32. package/src/gen/playground/queryOptions.gen.ts +119 -0
  33. package/src/gen/tracking/index.ts +1 -1
  34. package/src/gen/tracking/queryOptions.gen.ts +34 -0
  35. package/src/gen/types.gen.ts +756 -10
@@ -26,12 +26,6 @@ export interface AnalyticsCatalogGetOutput {
26
26
  }[];
27
27
  product_id: string;
28
28
  generated_at: string;
29
- dropped_metrics?: {
30
- type: string;
31
- metric: string;
32
- reason: ("type_unknown" | "aggregate_unknown" | "column_missing");
33
- view_name: string;
34
- }[];
35
29
  }
36
30
  export interface AnalyticsDashboardCreateInput {
37
31
  name: string;
@@ -117620,6 +117614,332 @@ export interface OrganizationYoutubeInstallInput {
117620
117614
  export interface OrganizationYoutubeInstallOutput {
117621
117615
  url: string;
117622
117616
  }
117617
+ export interface PlaygroundAnalyticsOverviewInput {
117618
+ /**
117619
+ * Max records per entity in recent[]; omit for the endpoint default
117620
+ */
117621
+ limit?: number;
117622
+ }
117623
+ export interface PlaygroundAnalyticsOverviewOutput {
117624
+ ok: boolean;
117625
+ minted: boolean;
117626
+ overview?: unknown;
117627
+ http_status: number;
117628
+ }
117629
+ export interface PlaygroundBillingEntitlementsInput {
117630
+ }
117631
+ export interface PlaygroundBillingEntitlementsOutput {
117632
+ ok: boolean;
117633
+ minted: boolean;
117634
+ http_status: number;
117635
+ entitlements?: unknown;
117636
+ }
117637
+ export interface PlaygroundBillingRecordUsageInput {
117638
+ /**
117639
+ * Quantity of events to record against playground-events (SUM); defaults to 1
117640
+ */
117641
+ value?: number;
117642
+ }
117643
+ export interface PlaygroundBillingRecordUsageOutput {
117644
+ minted: boolean;
117645
+ accepted: (number | null);
117646
+ recorded: boolean;
117647
+ duplicates: (number | null);
117648
+ http_status: number;
117649
+ }
117650
+ export interface PlaygroundClickupCreateTaskInput {
117651
+ /**
117652
+ * Task title; defaults to a fixture label
117653
+ */
117654
+ name?: string;
117655
+ /**
117656
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
117657
+ */
117658
+ listId?: string;
117659
+ }
117660
+ export interface PlaygroundClickupCreateTaskOutput {
117661
+ minted: boolean;
117662
+ task_id: (string | null);
117663
+ list_status: number;
117664
+ vend_status: number;
117665
+ clickup_status: number;
117666
+ installation_count: number;
117667
+ }
117668
+ export interface PlaygroundClickupGetLastWebhookInput {
117669
+ }
117670
+ export type PlaygroundClickupGetLastWebhookOutput = ({
117671
+ payload: string;
117672
+ event_id: string;
117673
+ provider: string;
117674
+ verified: boolean;
117675
+ product_id: string;
117676
+ occurred_at: string;
117677
+ connector_id: string;
117678
+ clickup_event: (string | null);
117679
+ receipt_count: number;
117680
+ } | {
117681
+ found: false;
117682
+ });
117683
+ export interface PlaygroundClickupGetOverviewInput {
117684
+ }
117685
+ export interface PlaygroundClickupGetOverviewOutput {
117686
+ team: ({
117687
+ teamId: string;
117688
+ teamName: string;
117689
+ } | null);
117690
+ lists: PlaygroundClickupGetOverviewOutputItems[];
117691
+ tasks: {
117692
+ id: string;
117693
+ name: string;
117694
+ status: (string | null);
117695
+ }[];
117696
+ minted: boolean;
117697
+ spaces: PlaygroundClickupGetOverviewOutputItems[];
117698
+ list_status: number;
117699
+ vend_status: number;
117700
+ lists_status: number;
117701
+ tasks_status: number;
117702
+ spaces_status: number;
117703
+ folders_status: number;
117704
+ installation_count: number;
117705
+ }
117706
+ export interface PlaygroundClickupGetOverviewOutputItems {
117707
+ id: string;
117708
+ name: string;
117709
+ }
117710
+ export interface PlaygroundEchoPingInput {
117711
+ /**
117712
+ * The text to echo back, 1–1024 characters
117713
+ */
117714
+ message: string;
117715
+ }
117716
+ export interface PlaygroundEchoPingOutput {
117717
+ /**
117718
+ * The message exactly as it was received
117719
+ */
117720
+ message: string;
117721
+ /**
117722
+ * The product the call was resolved to
117723
+ */
117724
+ productId: string;
117725
+ /**
117726
+ * ISO-8601 instant (UTC) at which the call reached the service
117727
+ */
117728
+ receivedAt: string;
117729
+ }
117730
+ export interface PlaygroundGdriveGetLastChangeInput {
117731
+ }
117732
+ export type PlaygroundGdriveGetLastChangeOutput = ({
117733
+ file_id: string;
117734
+ removed: boolean;
117735
+ file_name: (string | null);
117736
+ mime_type: (string | null);
117737
+ product_id: string;
117738
+ occurred_at: string;
117739
+ connector_id: string;
117740
+ resource_state: string;
117741
+ } | {
117742
+ found: false;
117743
+ });
117744
+ export interface PlaygroundGdriveReadFileInput {
117745
+ /**
117746
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
117747
+ */
117748
+ fileId?: string;
117749
+ }
117750
+ export interface PlaygroundGdriveReadFileOutput {
117751
+ minted: boolean;
117752
+ file_id: (string | null);
117753
+ file_name: (string | null);
117754
+ mime_type: (string | null);
117755
+ file_count: number;
117756
+ get_status: number;
117757
+ list_status: number;
117758
+ vend_status: number;
117759
+ content_bytes: (number | null);
117760
+ }
117761
+ export interface PlaygroundGoogleadsReadCustomerInput {
117762
+ }
117763
+ export interface PlaygroundGoogleadsReadCustomerOutput {
117764
+ minted: boolean;
117765
+ vended: boolean;
117766
+ customer_id: (string | null);
117767
+ vend_status: number;
117768
+ result_count: number;
117769
+ search_status: number;
117770
+ login_customer_id: (string | null);
117771
+ }
117772
+ export interface PlaygroundLifecycleGetStateInput {
117773
+ }
117774
+ export interface PlaygroundLifecycleGetStateOutput {
117775
+ blocked: boolean;
117776
+ archived: boolean;
117777
+ productId: string;
117778
+ lastBlockTransition: ({
117779
+ eventId: string;
117780
+ eventName: string;
117781
+ productId: string;
117782
+ occurredAt: string;
117783
+ recordedAt: string;
117784
+ receiptCount: number;
117785
+ organizationId: string;
117786
+ cascadedFromOrg: boolean;
117787
+ } | null);
117788
+ lastArchiveTransition: ({
117789
+ eventId: string;
117790
+ eventName: string;
117791
+ productId: string;
117792
+ occurredAt: string;
117793
+ recordedAt: string;
117794
+ receiptCount: number;
117795
+ organizationId: string;
117796
+ cascadedFromOrg: boolean;
117797
+ } | null);
117798
+ }
117799
+ export interface PlaygroundLifecycleListEventsInput {
117800
+ }
117801
+ export type PlaygroundLifecycleListEventsOutput = {
117802
+ eventId: string;
117803
+ eventName: string;
117804
+ productId: string;
117805
+ occurredAt: string;
117806
+ recordedAt: string;
117807
+ receiptCount: number;
117808
+ organizationId: string;
117809
+ cascadedFromOrg: boolean;
117810
+ }[];
117811
+ export interface PlaygroundWebhookGetLastInput {
117812
+ }
117813
+ export type PlaygroundWebhookGetLastOutput = ({
117814
+ payload?: unknown;
117815
+ event_id: string;
117816
+ provider: string;
117817
+ verified: boolean;
117818
+ product_id: string;
117819
+ occurred_at: string;
117820
+ connector_id: string;
117821
+ delivery_count: number;
117822
+ } | {
117823
+ found: false;
117824
+ });
117825
+ export interface PlaygroundWorkflowEchoInput {
117826
+ /**
117827
+ * The text to store, 1–1024 characters
117828
+ */
117829
+ note: string;
117830
+ /**
117831
+ * Optional labels stored alongside the note, at most 20
117832
+ *
117833
+ * @maxItems 20
117834
+ */
117835
+ tags?: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
117836
+ }
117837
+ export interface PlaygroundWorkflowEchoOutput {
117838
+ /**
117839
+ * Identifier of the stored echo
117840
+ */
117841
+ id: string;
117842
+ /**
117843
+ * The note exactly as it was received
117844
+ */
117845
+ note: string;
117846
+ /**
117847
+ * The tags exactly as they were received
117848
+ */
117849
+ tags: string[];
117850
+ /**
117851
+ * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
117852
+ */
117853
+ echo_id: string;
117854
+ /**
117855
+ * ISO-8601 instant (UTC) at which the echo was stored
117856
+ */
117857
+ received_at: string;
117858
+ }
117859
+ export interface PlaygroundWorkflowEchoListInput {
117860
+ }
117861
+ export type PlaygroundWorkflowEchoListOutput = {
117862
+ /**
117863
+ * Identifier of the stored echo
117864
+ */
117865
+ id: string;
117866
+ /**
117867
+ * The note exactly as it was received
117868
+ */
117869
+ note: string;
117870
+ /**
117871
+ * The tags exactly as they were received
117872
+ */
117873
+ tags: string[];
117874
+ /**
117875
+ * ISO-8601 instant (UTC) at which the echo was stored
117876
+ */
117877
+ received_at: string;
117878
+ }[];
117879
+ export interface PlaygroundWorkflowPingInput {
117880
+ /**
117881
+ * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
117882
+ */
117883
+ kind?: string;
117884
+ }
117885
+ export interface PlaygroundWorkflowPingOutput {
117886
+ /**
117887
+ * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
117888
+ */
117889
+ id: string;
117890
+ /**
117891
+ * The name of the event that was published
117892
+ */
117893
+ event: string;
117894
+ }
117895
+ export interface PlaygroundWorkflowSubjectsListInput {
117896
+ /**
117897
+ * How many subjects to return, 1–100. Defaults to 25.
117898
+ */
117899
+ limit?: number;
117900
+ /**
117901
+ * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
117902
+ */
117903
+ cursor?: string;
117904
+ /**
117905
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
117906
+ */
117907
+ last_activity_after?: string;
117908
+ /**
117909
+ * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
117910
+ */
117911
+ last_activity_before?: string;
117912
+ }
117913
+ export interface PlaygroundWorkflowSubjectsListOutput {
117914
+ /**
117915
+ * This page of subjects, most recently active first
117916
+ */
117917
+ items: {
117918
+ /**
117919
+ * Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
117920
+ */
117921
+ subject_key: string;
117922
+ /**
117923
+ * Human-readable name of the subject
117924
+ */
117925
+ display_name: string;
117926
+ /**
117927
+ * ISO-8601 instant (UTC) of the subject last activity
117928
+ */
117929
+ last_activity_at: string;
117930
+ }[];
117931
+ /**
117932
+ * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
117933
+ */
117934
+ has_more: boolean;
117935
+ /**
117936
+ * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
117937
+ */
117938
+ next_cursor: (string | null);
117939
+ }
117940
+ export interface PlaygroundWsEchoInput {
117941
+ }
117942
+ export type PlaygroundWsEchoOutput = unknown;
117623
117943
  export interface RealtimeArchiveExportInput {
117624
117944
  /**
117625
117945
  * Only entries with ts <= to_ts (epoch ms)
@@ -140847,7 +141167,7 @@ export interface TrackingEntitlementDropsGetInput {
140847
141167
  }
140848
141168
  export interface TrackingEntitlementDropsGetOutput {
140849
141169
  /**
140850
- * Null when no event was refused this month.
141170
+ * Null when no event and no session recording was refused this month.
140851
141171
  */
140852
141172
  drops: ({
140853
141173
  /**
@@ -140878,6 +141198,10 @@ export interface TrackingEntitlementDropsGetOutput {
140878
141198
  * First refused flush this month, ISO 8601 UTC.
140879
141199
  */
140880
141200
  firstDroppedAt: string;
141201
+ /**
141202
+ * Session recordings not kept this month because billing refused them (trial recording limit reached, billing paused).
141203
+ */
141204
+ droppedRecordings: number;
140881
141205
  } | null);
140882
141206
  /**
140883
141207
  * First day of the current UTC month the figures cover, YYYY-MM-DD, e.g. 2026-09-01.
@@ -142064,7 +142388,7 @@ export interface TrackingLiveEventsListOutput {
142064
142388
  */
142065
142389
  country: (string | null);
142066
142390
  /**
142067
- * Pseudonymous visitor id the person graph joins on. Null for a visitor who declined statistics consent or was never asked — those events arrive cookieless and carry no identifier at all.
142391
+ * Shortened event anonymous id. From the rollout, keyed cookieless events carry d:<daily key>: a one-day visitor rotating every UTC midnight, never a toolkit profile. They appear in funnels, person counts and retention as separate people each day; filter consent_statistics = true for consented-only figures and always for retention. Null when no id or daily key is available.
142068
142392
  */
142069
142393
  anonymousId: (string | null);
142070
142394
  }[];
@@ -142122,6 +142446,32 @@ export interface TrackingProfilesDeleteOutput {
142122
142446
  * This erasure attempt. The completion event carries the same value under the same name, so a step recognises its own completion even when another workflow is erasing the same person at the same moment.
142123
142447
  */
142124
142448
  requestId: string;
142449
+ /**
142450
+ * What happened to the session recordings of this person. Unlike the events archive, they are deleted per person.
142451
+ */
142452
+ recordings: {
142453
+ /**
142454
+ * Session recordings of this person removed, across every browser they were seen on.
142455
+ */
142456
+ deleted: number;
142457
+ /**
142458
+ * The stored files of those recordings.
142459
+ */
142460
+ objects: {
142461
+ /**
142462
+ * Stored recording files deleted now.
142463
+ */
142464
+ deleted: number;
142465
+ /**
142466
+ * Recording files that were already gone.
142467
+ */
142468
+ missing: number;
142469
+ /**
142470
+ * Recordings whose files could not be deleted at once and are being deleted in the background; 0 normally.
142471
+ */
142472
+ pending: number;
142473
+ };
142474
+ };
142125
142475
  }
142126
142476
  export interface TrackingProfilesExportInput {
142127
142477
  /**
@@ -142604,6 +142954,345 @@ export interface TrackingProfilesListOutput {
142604
142954
  firstSeenAt: string;
142605
142955
  }[];
142606
142956
  }
142957
+ export interface TrackingRecordingSettingsGetInput {
142958
+ }
142959
+ export interface TrackingRecordingSettingsGetOutput {
142960
+ /**
142961
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142962
+ */
142963
+ enabled: boolean;
142964
+ /**
142965
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142966
+ */
142967
+ sampleRate: number;
142968
+ }
142969
+ export interface TrackingRecordingSettingsSetInput {
142970
+ /**
142971
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142972
+ */
142973
+ enabled: boolean;
142974
+ /**
142975
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142976
+ */
142977
+ sampleRate: number;
142978
+ }
142979
+ export interface TrackingRecordingSettingsSetOutput {
142980
+ /**
142981
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142982
+ */
142983
+ enabled: boolean;
142984
+ /**
142985
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142986
+ */
142987
+ sampleRate: number;
142988
+ }
142989
+ export interface TrackingRecordingsChunksGetInput {
142990
+ /**
142991
+ * The recording id (uuid), from tracking_recordings_list.
142992
+ */
142993
+ id: string;
142994
+ /**
142995
+ * Page load of the segment, from the segments of tracking_recordings_get.
142996
+ */
142997
+ pid: string;
142998
+ /**
142999
+ * Consent (re)start of the segment within that page load, from tracking_recordings_get.
143000
+ */
143001
+ seg: number;
143002
+ /**
143003
+ * Continue a segment: pass the nextSeq the previous page returned. Default 0, the start.
143004
+ */
143005
+ fromSeq?: number;
143006
+ /**
143007
+ * Decoded bytes per page (default 2097152, max 8388608). A page ends at the first whole payload past it and always holds at least one.
143008
+ */
143009
+ maxBytes?: number;
143010
+ }
143011
+ export interface TrackingRecordingsChunksGetOutput {
143012
+ /**
143013
+ * Stretches of the segment that could not be played: lost slices, or payloads that did not decode. Show "part of the recording is lost" there.
143014
+ */
143015
+ gaps: {
143016
+ /**
143017
+ * Last lost slice, inclusive.
143018
+ */
143019
+ toSeq: number;
143020
+ /**
143021
+ * First lost slice.
143022
+ */
143023
+ fromSeq: number;
143024
+ }[];
143025
+ /**
143026
+ * rrweb events of this page of the segment, in order. Feed them to the player.
143027
+ */
143028
+ events: unknown[];
143029
+ /**
143030
+ * Pass back as fromSeq for the next page. Null once the segment is read to its end. On an active recording it can equal the fromSeq you sent, with no events: the last part is still arriving — ask again later.
143031
+ */
143032
+ nextSeq: (number | null);
143033
+ }
143034
+ export interface TrackingRecordingsGetInput {
143035
+ /**
143036
+ * The recording id (uuid), from tracking_recordings_list.
143037
+ */
143038
+ id: string;
143039
+ }
143040
+ export interface TrackingRecordingsGetOutput {
143041
+ /**
143042
+ * The recording id. Pass it to tracking_recordings_get.
143043
+ */
143044
+ id: string;
143045
+ /**
143046
+ * desktop, mobile or tablet, from the browser. Null when unknown.
143047
+ */
143048
+ device: (string | null);
143049
+ /**
143050
+ * Tracker events of the session, oldest first, at most 2000.
143051
+ */
143052
+ events: {
143053
+ /**
143054
+ * When the event happened, ISO 8601, browser clock.
143055
+ */
143056
+ at: string;
143057
+ /**
143058
+ * Event name: page_view, a custom name, a conversion or a revenue event.
143059
+ */
143060
+ name: string;
143061
+ /**
143062
+ * The value the event carried. Null when none.
143063
+ */
143064
+ revenue: ({
143065
+ /**
143066
+ * ISO 4217 code, e.g. EUR.
143067
+ */
143068
+ currency: (string | null);
143069
+ /**
143070
+ * Amount in minor units, e.g. 1999 = 19.99.
143071
+ */
143072
+ amountMinor: number;
143073
+ } | null);
143074
+ /**
143075
+ * Milliseconds from the start of the recording on the player clock; negative when it happened before recording began. Seek the player here.
143076
+ */
143077
+ offsetMs: number;
143078
+ /**
143079
+ * True for an event marked as a conversion or a signup, trial, subscription or payment.
143080
+ */
143081
+ isConversion: boolean;
143082
+ }[];
143083
+ /**
143084
+ * active: the session may still be recording; closed: finished (4 h cap).
143085
+ */
143086
+ status: ("active" | "closed");
143087
+ /**
143088
+ * The first page recorded. Personal data: a URL can carry an email. Null when unknown.
143089
+ */
143090
+ entryUrl: (string | null);
143091
+ /**
143092
+ * In start order — the order to play them in.
143093
+ */
143094
+ segments: {
143095
+ /**
143096
+ * Page load id. Pass with seg to tracking_recordings_chunks_get.
143097
+ */
143098
+ pid: string;
143099
+ /**
143100
+ * Consent (re)start within the page load.
143101
+ */
143102
+ seg: number;
143103
+ /**
143104
+ * Page URL at the start of the segment. Personal data, like any URL.
143105
+ */
143106
+ url: string;
143107
+ /**
143108
+ * Start of the segment, ISO 8601 UTC.
143109
+ */
143110
+ startedAt: string;
143111
+ /**
143112
+ * Slices stored for the segment.
143113
+ */
143114
+ chunkCount: number;
143115
+ }[];
143116
+ /**
143117
+ * Browser viewport at the start of the recording.
143118
+ */
143119
+ viewport: {
143120
+ /**
143121
+ * Viewport height, px.
143122
+ */
143123
+ h: (number | null);
143124
+ /**
143125
+ * Viewport width, px.
143126
+ */
143127
+ w: (number | null);
143128
+ };
143129
+ /**
143130
+ * True when the same session has an event marked as a conversion or a signup, trial, subscription or payment.
143131
+ */
143132
+ converted: boolean;
143133
+ /**
143134
+ * The person behind the visitor, resolved now, so a later merge is honoured. Null for a visitor never tied to a profile.
143135
+ */
143136
+ profileId: (string | null);
143137
+ /**
143138
+ * When the recording started, ISO 8601 UTC, on the server clock.
143139
+ */
143140
+ startedAt: string;
143141
+ /**
143142
+ * utm_medium of the entry page. Null when untagged.
143143
+ */
143144
+ utmMedium: (string | null);
143145
+ /**
143146
+ * utm_source of the entry page. Null when untagged.
143147
+ */
143148
+ utmSource: (string | null);
143149
+ /**
143150
+ * Length of the recording in milliseconds.
143151
+ */
143152
+ durationMs: number;
143153
+ /**
143154
+ * Ad network of the click that opened the session: gclid for Google Ads, fbclid for Meta. Null for a non-ad arrival.
143155
+ */
143156
+ clickIdType: (string | null);
143157
+ /**
143158
+ * utm_campaign of the entry page. Null when untagged.
143159
+ */
143160
+ utmCampaign: (string | null);
143161
+ /**
143162
+ * Page loads (and consent re-starts) recorded in the session.
143163
+ */
143164
+ segmentCount: number;
143165
+ /**
143166
+ * Server clock minus browser clock, measured on the first slice. rrweb timestamps and `events[].at` are on the browser clock.
143167
+ */
143168
+ clockOffsetMs: number;
143169
+ /**
143170
+ * True when the session had more than 2000 events and the rest were left out.
143171
+ */
143172
+ eventsTruncated: boolean;
143173
+ }
143174
+ export interface TrackingRecordingsListInput {
143175
+ /**
143176
+ * End of the period, ISO 8601: recordings that started at or before it. Default: now.
143177
+ */
143178
+ to?: string;
143179
+ /**
143180
+ * Start of the period, ISO 8601 (e.g. 2026-10-01T00:00:00Z): recordings that started at or after it. Default: 30 days before `to`, the whole retention window.
143181
+ */
143182
+ from?: string;
143183
+ /**
143184
+ * Recordings per page, 1 to 100 (default 50).
143185
+ */
143186
+ limit?: number;
143187
+ /**
143188
+ * Continue a previous page: pass the nextCursor it returned. Omit to start from the newest recording.
143189
+ */
143190
+ cursor?: string;
143191
+ /**
143192
+ * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
143193
+ */
143194
+ converted?: boolean;
143195
+ /**
143196
+ * Only this person: every browser they were seen on, merged profiles included.
143197
+ */
143198
+ profileId?: string;
143199
+ /**
143200
+ * Only recordings whose entry page carried this utm_source, e.g. google.
143201
+ */
143202
+ utmSource?: string;
143203
+ /**
143204
+ * Only this visitor id (one browser).
143205
+ */
143206
+ anonymousId?: string;
143207
+ /**
143208
+ * Only recordings whose entry page carried this utm_campaign, e.g. spring.
143209
+ */
143210
+ utmCampaign?: string;
143211
+ /**
143212
+ * Only recordings at least this long, in milliseconds, e.g. 30000.
143213
+ */
143214
+ minDurationMs?: number;
143215
+ /**
143216
+ * Only recordings whose entry page URL contains this text, case-insensitively, e.g. /pricing.
143217
+ */
143218
+ entryUrlContains?: string;
143219
+ }
143220
+ export interface TrackingRecordingsListOutput {
143221
+ /**
143222
+ * Newest first.
143223
+ */
143224
+ items: {
143225
+ /**
143226
+ * The recording id. Pass it to tracking_recordings_get.
143227
+ */
143228
+ id: string;
143229
+ /**
143230
+ * desktop, mobile or tablet, from the browser. Null when unknown.
143231
+ */
143232
+ device: (string | null);
143233
+ /**
143234
+ * active: the session may still be recording; closed: finished (4 h cap).
143235
+ */
143236
+ status: ("active" | "closed");
143237
+ /**
143238
+ * The first page recorded. Personal data: a URL can carry an email. Null when unknown.
143239
+ */
143240
+ entryUrl: (string | null);
143241
+ /**
143242
+ * Browser viewport at the start of the recording.
143243
+ */
143244
+ viewport: {
143245
+ /**
143246
+ * Viewport height, px.
143247
+ */
143248
+ h: (number | null);
143249
+ /**
143250
+ * Viewport width, px.
143251
+ */
143252
+ w: (number | null);
143253
+ };
143254
+ /**
143255
+ * True when the same session has an event marked as a conversion or a signup, trial, subscription or payment.
143256
+ */
143257
+ converted: boolean;
143258
+ /**
143259
+ * The person behind the visitor, resolved now, so a later merge is honoured. Null for a visitor never tied to a profile.
143260
+ */
143261
+ profileId: (string | null);
143262
+ /**
143263
+ * When the recording started, ISO 8601 UTC, on the server clock.
143264
+ */
143265
+ startedAt: string;
143266
+ /**
143267
+ * utm_medium of the entry page. Null when untagged.
143268
+ */
143269
+ utmMedium: (string | null);
143270
+ /**
143271
+ * utm_source of the entry page. Null when untagged.
143272
+ */
143273
+ utmSource: (string | null);
143274
+ /**
143275
+ * Length of the recording in milliseconds.
143276
+ */
143277
+ durationMs: number;
143278
+ /**
143279
+ * Ad network of the click that opened the session: gclid for Google Ads, fbclid for Meta. Null for a non-ad arrival.
143280
+ */
143281
+ clickIdType: (string | null);
143282
+ /**
143283
+ * utm_campaign of the entry page. Null when untagged.
143284
+ */
143285
+ utmCampaign: (string | null);
143286
+ /**
143287
+ * Page loads (and consent re-starts) recorded in the session.
143288
+ */
143289
+ segmentCount: number;
143290
+ }[];
143291
+ /**
143292
+ * Pass back as cursor for the next page. Null on the last page.
143293
+ */
143294
+ nextCursor: (string | null);
143295
+ }
142607
143296
  export interface TrackingReportsAttributedJourneyInput {
142608
143297
  /**
142609
143298
  * Show only journey events at or before this instant (ISO). Omit for the whole history.
@@ -142853,11 +143542,11 @@ export interface TrackingReportsEventVolumeOutput {
142853
143542
  */
142854
143543
  cookielessShare: number;
142855
143544
  /**
142856
- * Events from visitors who declined; no cookie was written and no identifier sent.
143545
+ * Events from visitors who declined or had not decided; the browser sent no identifier, though ingest may derive a one-day d: id.
142857
143546
  */
142858
143547
  cookielessEvents: number;
142859
143548
  /**
142860
- * Events carrying an anonymous id. A different cut that overlaps the three consent buckets — it is not the complement of `cookielessEvents` and must never be added to it.
143549
+ * Events with a non-cookieless anonymous id (granted or no-banner). Cookieless d: ids are excluded. This quality slice overlaps the consent buckets and must not be added to them.
142861
143550
  */
142862
143551
  identifiedEvents: number;
142863
143552
  /**