@lessly/sdk-app 105.4.0 → 105.6.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 +11 -1
  2. package/dist/_types/gen/client.gen.d.ts +5 -38
  3. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  4. package/dist/_types/gen/tracking/index.d.ts +1 -1
  5. package/dist/_types/gen/tracking/queryOptions.gen.d.ts +9 -1
  6. package/dist/_types/gen/types.gen.d.ts +175 -326
  7. package/dist/index.cjs +137 -224
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +12014 -22
  10. package/dist/index.js.map +1 -1
  11. package/dist/tracking/index.cjs +10 -0
  12. package/dist/tracking/index.cjs.map +1 -1
  13. package/dist/tracking/index.js +9 -1
  14. package/dist/tracking/index.js.map +1 -1
  15. package/package.json +2 -12
  16. package/src/gen/bindings.gen.ts +134 -213
  17. package/src/gen/client.gen.ts +8 -71
  18. package/src/gen/manifest.gen.ts +5 -21
  19. package/src/gen/tracking/index.ts +1 -1
  20. package/src/gen/tracking/queryOptions.gen.ts +14 -0
  21. package/src/gen/types.gen.ts +179 -372
  22. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  23. package/dist/_types/gen/playground/index.d.ts +0 -3
  24. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
  25. package/dist/chunk-VIZWAA4F.js +0 -12093
  26. package/dist/chunk-VIZWAA4F.js.map +0 -1
  27. package/dist/playground/index.cjs +0 -106
  28. package/dist/playground/index.cjs.map +0 -1
  29. package/dist/playground/index.d.cts +0 -1
  30. package/dist/playground/index.d.ts +0 -1
  31. package/dist/playground/index.js +0 -78
  32. package/dist/playground/index.js.map +0 -1
  33. package/src/gen/playground/connect.gen.ts +0 -9
  34. package/src/gen/playground/index.ts +0 -4
  35. package/src/gen/playground/queryOptions.gen.ts +0 -119
@@ -26,6 +26,12 @@ 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
+ }[];
29
35
  }
30
36
  export interface AnalyticsDashboardCreateInput {
31
37
  name: string;
@@ -117637,332 +117643,6 @@ export interface OrganizationYoutubeInstallInput {
117637
117643
  export interface OrganizationYoutubeInstallOutput {
117638
117644
  url: string;
117639
117645
  }
117640
- export interface PlaygroundAnalyticsOverviewInput {
117641
- /**
117642
- * Max records per entity in recent[]; omit for the endpoint default
117643
- */
117644
- limit?: number;
117645
- }
117646
- export interface PlaygroundAnalyticsOverviewOutput {
117647
- ok: boolean;
117648
- minted: boolean;
117649
- overview?: unknown;
117650
- http_status: number;
117651
- }
117652
- export interface PlaygroundBillingEntitlementsInput {
117653
- }
117654
- export interface PlaygroundBillingEntitlementsOutput {
117655
- ok: boolean;
117656
- minted: boolean;
117657
- http_status: number;
117658
- entitlements?: unknown;
117659
- }
117660
- export interface PlaygroundBillingRecordUsageInput {
117661
- /**
117662
- * Quantity of events to record against playground-events (SUM); defaults to 1
117663
- */
117664
- value?: number;
117665
- }
117666
- export interface PlaygroundBillingRecordUsageOutput {
117667
- minted: boolean;
117668
- accepted: (number | null);
117669
- recorded: boolean;
117670
- duplicates: (number | null);
117671
- http_status: number;
117672
- }
117673
- export interface PlaygroundClickupCreateTaskInput {
117674
- /**
117675
- * Task title; defaults to a fixture label
117676
- */
117677
- name?: string;
117678
- /**
117679
- * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
117680
- */
117681
- listId?: string;
117682
- }
117683
- export interface PlaygroundClickupCreateTaskOutput {
117684
- minted: boolean;
117685
- task_id: (string | null);
117686
- list_status: number;
117687
- vend_status: number;
117688
- clickup_status: number;
117689
- installation_count: number;
117690
- }
117691
- export interface PlaygroundClickupGetLastWebhookInput {
117692
- }
117693
- export type PlaygroundClickupGetLastWebhookOutput = ({
117694
- payload: string;
117695
- event_id: string;
117696
- provider: string;
117697
- verified: boolean;
117698
- product_id: string;
117699
- occurred_at: string;
117700
- connector_id: string;
117701
- clickup_event: (string | null);
117702
- receipt_count: number;
117703
- } | {
117704
- found: false;
117705
- });
117706
- export interface PlaygroundClickupGetOverviewInput {
117707
- }
117708
- export interface PlaygroundClickupGetOverviewOutput {
117709
- team: ({
117710
- teamId: string;
117711
- teamName: string;
117712
- } | null);
117713
- lists: PlaygroundClickupGetOverviewOutputItems[];
117714
- tasks: {
117715
- id: string;
117716
- name: string;
117717
- status: (string | null);
117718
- }[];
117719
- minted: boolean;
117720
- spaces: PlaygroundClickupGetOverviewOutputItems[];
117721
- list_status: number;
117722
- vend_status: number;
117723
- lists_status: number;
117724
- tasks_status: number;
117725
- spaces_status: number;
117726
- folders_status: number;
117727
- installation_count: number;
117728
- }
117729
- export interface PlaygroundClickupGetOverviewOutputItems {
117730
- id: string;
117731
- name: string;
117732
- }
117733
- export interface PlaygroundEchoPingInput {
117734
- /**
117735
- * The text to echo back, 1–1024 characters
117736
- */
117737
- message: string;
117738
- }
117739
- export interface PlaygroundEchoPingOutput {
117740
- /**
117741
- * The message exactly as it was received
117742
- */
117743
- message: string;
117744
- /**
117745
- * The product the call was resolved to
117746
- */
117747
- productId: string;
117748
- /**
117749
- * ISO-8601 instant (UTC) at which the call reached the service
117750
- */
117751
- receivedAt: string;
117752
- }
117753
- export interface PlaygroundGdriveGetLastChangeInput {
117754
- }
117755
- export type PlaygroundGdriveGetLastChangeOutput = ({
117756
- file_id: string;
117757
- removed: boolean;
117758
- file_name: (string | null);
117759
- mime_type: (string | null);
117760
- product_id: string;
117761
- occurred_at: string;
117762
- connector_id: string;
117763
- resource_state: string;
117764
- } | {
117765
- found: false;
117766
- });
117767
- export interface PlaygroundGdriveReadFileInput {
117768
- /**
117769
- * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
117770
- */
117771
- fileId?: string;
117772
- }
117773
- export interface PlaygroundGdriveReadFileOutput {
117774
- minted: boolean;
117775
- file_id: (string | null);
117776
- file_name: (string | null);
117777
- mime_type: (string | null);
117778
- file_count: number;
117779
- get_status: number;
117780
- list_status: number;
117781
- vend_status: number;
117782
- content_bytes: (number | null);
117783
- }
117784
- export interface PlaygroundGoogleadsReadCustomerInput {
117785
- }
117786
- export interface PlaygroundGoogleadsReadCustomerOutput {
117787
- minted: boolean;
117788
- vended: boolean;
117789
- customer_id: (string | null);
117790
- vend_status: number;
117791
- result_count: number;
117792
- search_status: number;
117793
- login_customer_id: (string | null);
117794
- }
117795
- export interface PlaygroundLifecycleGetStateInput {
117796
- }
117797
- export interface PlaygroundLifecycleGetStateOutput {
117798
- blocked: boolean;
117799
- archived: boolean;
117800
- productId: string;
117801
- lastBlockTransition: ({
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
- } | null);
117811
- lastArchiveTransition: ({
117812
- eventId: string;
117813
- eventName: string;
117814
- productId: string;
117815
- occurredAt: string;
117816
- recordedAt: string;
117817
- receiptCount: number;
117818
- organizationId: string;
117819
- cascadedFromOrg: boolean;
117820
- } | null);
117821
- }
117822
- export interface PlaygroundLifecycleListEventsInput {
117823
- }
117824
- export type PlaygroundLifecycleListEventsOutput = {
117825
- eventId: string;
117826
- eventName: string;
117827
- productId: string;
117828
- occurredAt: string;
117829
- recordedAt: string;
117830
- receiptCount: number;
117831
- organizationId: string;
117832
- cascadedFromOrg: boolean;
117833
- }[];
117834
- export interface PlaygroundWebhookGetLastInput {
117835
- }
117836
- export type PlaygroundWebhookGetLastOutput = ({
117837
- payload?: unknown;
117838
- event_id: string;
117839
- provider: string;
117840
- verified: boolean;
117841
- product_id: string;
117842
- occurred_at: string;
117843
- connector_id: string;
117844
- delivery_count: number;
117845
- } | {
117846
- found: false;
117847
- });
117848
- export interface PlaygroundWorkflowEchoInput {
117849
- /**
117850
- * The text to store, 1–1024 characters
117851
- */
117852
- note: string;
117853
- /**
117854
- * Optional labels stored alongside the note, at most 20
117855
- *
117856
- * @maxItems 20
117857
- */
117858
- 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];
117859
- }
117860
- export interface PlaygroundWorkflowEchoOutput {
117861
- /**
117862
- * Identifier of the stored echo
117863
- */
117864
- id: string;
117865
- /**
117866
- * The note exactly as it was received
117867
- */
117868
- note: string;
117869
- /**
117870
- * The tags exactly as they were received
117871
- */
117872
- tags: string[];
117873
- /**
117874
- * 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.
117875
- */
117876
- echo_id: string;
117877
- /**
117878
- * ISO-8601 instant (UTC) at which the echo was stored
117879
- */
117880
- received_at: string;
117881
- }
117882
- export interface PlaygroundWorkflowEchoListInput {
117883
- }
117884
- export type PlaygroundWorkflowEchoListOutput = {
117885
- /**
117886
- * Identifier of the stored echo
117887
- */
117888
- id: string;
117889
- /**
117890
- * The note exactly as it was received
117891
- */
117892
- note: string;
117893
- /**
117894
- * The tags exactly as they were received
117895
- */
117896
- tags: string[];
117897
- /**
117898
- * ISO-8601 instant (UTC) at which the echo was stored
117899
- */
117900
- received_at: string;
117901
- }[];
117902
- export interface PlaygroundWorkflowPingInput {
117903
- /**
117904
- * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
117905
- */
117906
- kind?: string;
117907
- }
117908
- export interface PlaygroundWorkflowPingOutput {
117909
- /**
117910
- * 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.
117911
- */
117912
- id: string;
117913
- /**
117914
- * The name of the event that was published
117915
- */
117916
- event: string;
117917
- }
117918
- export interface PlaygroundWorkflowSubjectsListInput {
117919
- /**
117920
- * How many subjects to return, 1–100. Defaults to 25.
117921
- */
117922
- limit?: number;
117923
- /**
117924
- * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
117925
- */
117926
- cursor?: string;
117927
- /**
117928
- * 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.
117929
- */
117930
- last_activity_after?: string;
117931
- /**
117932
- * 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.
117933
- */
117934
- last_activity_before?: string;
117935
- }
117936
- export interface PlaygroundWorkflowSubjectsListOutput {
117937
- /**
117938
- * This page of subjects, most recently active first
117939
- */
117940
- items: {
117941
- /**
117942
- * 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.
117943
- */
117944
- subject_key: string;
117945
- /**
117946
- * Human-readable name of the subject
117947
- */
117948
- display_name: string;
117949
- /**
117950
- * ISO-8601 instant (UTC) of the subject last activity
117951
- */
117952
- last_activity_at: string;
117953
- }[];
117954
- /**
117955
- * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
117956
- */
117957
- has_more: boolean;
117958
- /**
117959
- * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
117960
- */
117961
- next_cursor: (string | null);
117962
- }
117963
- export interface PlaygroundWsEchoInput {
117964
- }
117965
- export type PlaygroundWsEchoOutput = unknown;
117966
117646
  export interface RealtimeArchiveExportInput {
117967
117647
  /**
117968
117648
  * Only entries with ts <= to_ts (epoch ms)
@@ -142216,6 +141896,171 @@ export interface TrackingGoogleadsUsVsPlatformOutput {
142216
141896
  */
142217
141897
  costLastSyncedAt: (string | null);
142218
141898
  }
141899
+ export interface TrackingHeatmapsGetInput {
141900
+ /**
141901
+ * End of the period, ISO 8601: recordings that started at or before it.
141902
+ */
141903
+ to: string;
141904
+ /**
141905
+ * 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`.
141906
+ */
141907
+ from: string;
141908
+ /**
141909
+ * Required: a map is drawn for one kind of device (desktop, tablet or mobile), since layouts differ.
141910
+ */
141911
+ device: ("desktop" | "tablet" | "mobile");
141912
+ /**
141913
+ * The page, as tracking_heatmaps_pages returns it: host + normalized path, e.g. shop.example.com/pricing.
141914
+ */
141915
+ pageKey: string;
141916
+ /**
141917
+ * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
141918
+ */
141919
+ converted?: boolean;
141920
+ /**
141921
+ * Only recordings whose entry page carried this utm_source, e.g. google.
141922
+ */
141923
+ utmSource?: string;
141924
+ /**
141925
+ * Only recordings whose entry page carried this utm_campaign, e.g. spring.
141926
+ */
141927
+ utmCampaign?: string;
141928
+ }
141929
+ export interface TrackingHeatmapsGetOutput {
141930
+ /**
141931
+ * At most 300 elements, most clicked first.
141932
+ */
141933
+ clicks: {
141934
+ /**
141935
+ * Clicks on it.
141936
+ */
141937
+ count: number;
141938
+ /**
141939
+ * Clicks on a 50x50 grid laid over the element; empty cells left out.
141940
+ */
141941
+ points: {
141942
+ /**
141943
+ * Cell centre across the element, 0 (left edge) to 1 (right edge).
141944
+ */
141945
+ rx: number;
141946
+ /**
141947
+ * Cell centre down the element, 0 (top) to 1 (bottom).
141948
+ */
141949
+ ry: number;
141950
+ /**
141951
+ * Clicks in the cell.
141952
+ */
141953
+ count: number;
141954
+ }[];
141955
+ /**
141956
+ * CSS selector of the clicked element, as built in the browser.
141957
+ */
141958
+ selector: string;
141959
+ /**
141960
+ * Recordings with at least one click on it.
141961
+ */
141962
+ sessions: number;
141963
+ }[];
141964
+ /**
141965
+ * How far down the page the sessions scrolled.
141966
+ */
141967
+ scroll: {
141968
+ /**
141969
+ * 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.
141970
+ */
141971
+ reached: number[];
141972
+ /**
141973
+ * Median page height in px over those sessions. Null below the threshold or without any scroll sample.
141974
+ */
141975
+ medianDocHeight: (number | null);
141976
+ };
141977
+ /**
141978
+ * Recordings of the period, device and filters with a click or a scroll sample on this page.
141979
+ */
141980
+ sessions: number;
141981
+ /**
141982
+ * 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.
141983
+ */
141984
+ background: ({
141985
+ /**
141986
+ * Page load of the segment.
141987
+ */
141988
+ pid: string;
141989
+ /**
141990
+ * Consent (re)start of the segment.
141991
+ */
141992
+ seg: number;
141993
+ /**
141994
+ * Recording to draw the page from. Pass to tracking_recordings_chunks_get with pid and seg.
141995
+ */
141996
+ recordingId: string;
141997
+ } | null);
141998
+ /**
141999
+ * True when sessions < 10: clicks and scroll.reached are then empty and medianDocHeight null.
142000
+ */
142001
+ belowThreshold: boolean;
142002
+ }
142003
+ export interface TrackingHeatmapsPagesInput {
142004
+ /**
142005
+ * Only pages whose key contains this text, case-insensitively, e.g. /pricing.
142006
+ */
142007
+ q?: string;
142008
+ /**
142009
+ * End of the period, ISO 8601: recordings that started at or before it.
142010
+ */
142011
+ to: string;
142012
+ /**
142013
+ * 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`.
142014
+ */
142015
+ from: string;
142016
+ /**
142017
+ * Pages per page of results, 1 to 100 (default 50).
142018
+ */
142019
+ limit?: number;
142020
+ /**
142021
+ * Continue a previous page: pass the nextCursor it returned.
142022
+ */
142023
+ cursor?: string;
142024
+ /**
142025
+ * Only recordings from this kind of device: desktop, tablet or mobile. Omit for all.
142026
+ */
142027
+ device?: ("desktop" | "tablet" | "mobile");
142028
+ /**
142029
+ * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
142030
+ */
142031
+ converted?: boolean;
142032
+ /**
142033
+ * Only recordings whose entry page carried this utm_source, e.g. google.
142034
+ */
142035
+ utmSource?: string;
142036
+ /**
142037
+ * Only recordings whose entry page carried this utm_campaign, e.g. spring.
142038
+ */
142039
+ utmCampaign?: string;
142040
+ }
142041
+ export interface TrackingHeatmapsPagesOutput {
142042
+ /**
142043
+ * Most sessions first.
142044
+ */
142045
+ pages: {
142046
+ /**
142047
+ * Clicks on this page in those recordings.
142048
+ */
142049
+ clicks: number;
142050
+ /**
142051
+ * host + normalized path: no query, no hash, ids and hashes replaced by *. Pass it to tracking_heatmaps_get.
142052
+ */
142053
+ pageKey: string;
142054
+ /**
142055
+ * Recordings of the period and filters with a click or a scroll sample on this page.
142056
+ */
142057
+ sessions: number;
142058
+ }[];
142059
+ /**
142060
+ * Pass back as cursor for the next page. Null on the last page.
142061
+ */
142062
+ nextCursor: (string | null);
142063
+ }
142219
142064
  export interface TrackingIdentityHealthInput {
142220
142065
  }
142221
142066
  export interface TrackingIdentityHealthOutput {
@@ -143254,6 +143099,10 @@ export interface TrackingRecordingsListInput {
143254
143099
  * Continue a previous page: pass the nextCursor it returned. Omit to start from the newest recording.
143255
143100
  */
143256
143101
  cursor?: string;
143102
+ /**
143103
+ * Only recordings from this kind of device, as classified on ingest: desktop, tablet or mobile.
143104
+ */
143105
+ device?: ("desktop" | "tablet" | "mobile");
143257
143106
  /**
143258
143107
  * true: only sessions with a conversion or a payment; false: only sessions without one. Omit for both.
143259
143108
  */