@lessly/sdk-app 103.0.0 → 103.0.1

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 +5 -32
  2. package/dist/_types/gen/client.gen.d.ts +42 -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 +9 -1
  9. package/dist/_types/gen/types.gen.d.ts +361 -9
  10. package/dist/chunk-3PMJZ47D.js +11984 -0
  11. package/dist/chunk-3PMJZ47D.js.map +1 -0
  12. package/dist/index.cjs +253 -45
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +25 -11787
  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 +10 -0
  23. package/dist/tracking/index.cjs.map +1 -1
  24. package/dist/tracking/index.js +9 -1
  25. package/dist/tracking/index.js.map +1 -1
  26. package/package.json +12 -2
  27. package/src/gen/bindings.gen.ts +239 -46
  28. package/src/gen/client.gen.ts +79 -0
  29. package/src/gen/manifest.gen.ts +24 -1
  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 +13 -0
  35. package/src/gen/types.gen.ts +412 -9
@@ -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)
@@ -142064,7 +142384,7 @@ export interface TrackingLiveEventsListOutput {
142064
142384
  */
142065
142385
  country: (string | null);
142066
142386
  /**
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.
142387
+ * 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
142388
  */
142069
142389
  anonymousId: (string | null);
142070
142390
  }[];
@@ -142604,6 +142924,38 @@ export interface TrackingProfilesListOutput {
142604
142924
  firstSeenAt: string;
142605
142925
  }[];
142606
142926
  }
142927
+ export interface TrackingRecordingSettingsGetInput {
142928
+ }
142929
+ export interface TrackingRecordingSettingsGetOutput {
142930
+ /**
142931
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142932
+ */
142933
+ enabled: boolean;
142934
+ /**
142935
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142936
+ */
142937
+ sampleRate: number;
142938
+ }
142939
+ export interface TrackingRecordingSettingsSetInput {
142940
+ /**
142941
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142942
+ */
142943
+ enabled: boolean;
142944
+ /**
142945
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142946
+ */
142947
+ sampleRate: number;
142948
+ }
142949
+ export interface TrackingRecordingSettingsSetOutput {
142950
+ /**
142951
+ * Whether session recording is on. Only visitors in full tracking mode (statistics consent, or no consent banner) are recorded.
142952
+ */
142953
+ enabled: boolean;
142954
+ /**
142955
+ * Percent of sessions recorded, 1 to 100 when on (e.g. 25); 0 is allowed only when off.
142956
+ */
142957
+ sampleRate: number;
142958
+ }
142607
142959
  export interface TrackingReportsAttributedJourneyInput {
142608
142960
  /**
142609
142961
  * Show only journey events at or before this instant (ISO). Omit for the whole history.
@@ -142853,11 +143205,11 @@ export interface TrackingReportsEventVolumeOutput {
142853
143205
  */
142854
143206
  cookielessShare: number;
142855
143207
  /**
142856
- * Events from visitors who declined; no cookie was written and no identifier sent.
143208
+ * Events from visitors who declined or had not decided; the browser sent no identifier, though ingest may derive a one-day d: id.
142857
143209
  */
142858
143210
  cookielessEvents: number;
142859
143211
  /**
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.
143212
+ * 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
143213
  */
142862
143214
  identifiedEvents: number;
142863
143215
  /**