@lessly/sdk-app 42.0.0 → 42.1.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 (57) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.cjs +0 -5
  4. package/dist/brain/index.cjs.map +1 -1
  5. package/dist/brain/index.d.cts +2 -6
  6. package/dist/brain/index.d.ts +2 -6
  7. package/dist/brain/index.js +1 -5
  8. package/dist/brain/index.js.map +1 -1
  9. package/dist/{client.gen-Cumsa8PY.d.cts → client.gen-BsYUM5lP.d.cts} +391 -94
  10. package/dist/{client.gen-Cumsa8PY.d.ts → client.gen-BsYUM5lP.d.ts} +391 -94
  11. package/dist/consent/index.d.cts +1 -1
  12. package/dist/consent/index.d.ts +1 -1
  13. package/dist/deployment/index.d.cts +1 -1
  14. package/dist/deployment/index.d.ts +1 -1
  15. package/dist/index.cjs +172 -13
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +172 -13
  20. package/dist/index.js.map +1 -1
  21. package/dist/mail/index.d.cts +2 -2
  22. package/dist/mail/index.d.ts +2 -2
  23. package/dist/observe/index.cjs +10 -0
  24. package/dist/observe/index.cjs.map +1 -1
  25. package/dist/observe/index.d.cts +10 -2
  26. package/dist/observe/index.d.ts +10 -2
  27. package/dist/observe/index.js +9 -1
  28. package/dist/observe/index.js.map +1 -1
  29. package/dist/organization/index.d.cts +1 -1
  30. package/dist/organization/index.d.ts +1 -1
  31. package/dist/playground/index.cjs +66 -0
  32. package/dist/playground/index.cjs.map +1 -0
  33. package/dist/playground/index.d.cts +52 -0
  34. package/dist/playground/index.d.ts +52 -0
  35. package/dist/playground/index.js +53 -0
  36. package/dist/playground/index.js.map +1 -0
  37. package/dist/realtime/index.d.cts +1 -1
  38. package/dist/realtime/index.d.ts +1 -1
  39. package/dist/support/index.d.cts +1 -1
  40. package/dist/support/index.d.ts +1 -1
  41. package/dist/tracking/index.d.cts +1 -1
  42. package/dist/tracking/index.d.ts +1 -1
  43. package/dist/users/index.d.cts +1 -1
  44. package/dist/users/index.d.ts +1 -1
  45. package/dist/waitlist/index.d.cts +1 -1
  46. package/dist/waitlist/index.d.ts +1 -1
  47. package/package.json +7 -2
  48. package/src/gen/bindings.gen.ts +172 -13
  49. package/src/gen/brain/index.ts +1 -1
  50. package/src/gen/brain/queryOptions.gen.ts +0 -7
  51. package/src/gen/client.gen.ts +60 -5
  52. package/src/gen/manifest.gen.ts +1 -1
  53. package/src/gen/observe/index.ts +1 -1
  54. package/src/gen/observe/queryOptions.gen.ts +14 -0
  55. package/src/gen/playground/index.ts +3 -0
  56. package/src/gen/playground/queryOptions.gen.ts +86 -0
  57. package/src/gen/types.gen.ts +394 -92
@@ -1028,98 +1028,6 @@ snapshotId: string
1028
1028
  preRestoreSnapshotId: (string | null)
1029
1029
  } | null)
1030
1030
 
1031
- export interface BrainUsageReportInput {
1032
- /**
1033
- * How many UTC days of this product's ledger to return, ending today (default 30, max 90)
1034
- */
1035
- days?: number
1036
- }
1037
-
1038
- export interface BrainUsageReportOutput {
1039
- note: string
1040
- /**
1041
- * Brain's own ledger, for THIS product only
1042
- */
1043
- product: {
1044
- /**
1045
- * Inclusive UTC end of the window (today), YYYY-MM-DD
1046
- */
1047
- to: string
1048
- /**
1049
- * The window actually used, after clamping
1050
- */
1051
- days: number
1052
- /**
1053
- * Inclusive UTC start of the window, YYYY-MM-DD
1054
- */
1055
- from: string
1056
- rows: {
1057
- /**
1058
- * 'sync' | 'batch'; '' when the push carried none
1059
- */
1060
- mode: string
1061
- /**
1062
- * Manifest meter slug, e.g. llm-tokens
1063
- */
1064
- meter: string
1065
- /**
1066
- * Model dimension; '' when the push carried none
1067
- */
1068
- model: string
1069
- /**
1070
- * How many record() calls landed in this slice
1071
- */
1072
- events: number
1073
- /**
1074
- * Tokens we metered for this slice, delivered or not
1075
- */
1076
- tokens: number
1077
- /**
1078
- * Purpose dimension; '' when the push carried none
1079
- */
1080
- purpose: string
1081
- /**
1082
- * UTC calendar day, YYYY-MM-DD
1083
- */
1084
- usage_date: string
1085
- /**
1086
- * Of those events, how many billing did not accept
1087
- */
1088
- delivery_failed: number
1089
- }[]
1090
- /**
1091
- * The rows rolled up per meter across the whole window
1092
- */
1093
- totals: {
1094
- meter: string
1095
- events: number
1096
- tokens: number
1097
- delivery_failed: number
1098
- }[]
1099
- product_id: string
1100
- }
1101
- /**
1102
- * The platform billing aggregate for the whole ORG; null if it could not be read
1103
- */
1104
- platform: ({
1105
- plan: string
1106
- scope: "org"
1107
- meters: {
1108
- unit?: string
1109
- used?: number
1110
- limit?: (number | null)
1111
- remaining?: (number | null)
1112
- unlimited?: boolean
1113
- meter_slug: string
1114
- }[]
1115
- org_id: string
1116
- } | null)
1117
- /**
1118
- * Why the platform aggregate is null; null when it was read successfully
1119
- */
1120
- platform_error: (string | null)
1121
- }
1122
-
1123
1031
  export interface ConsentConfigCookieDomainUpsertInput {
1124
1032
  cookieDomain: ("" | null | string)
1125
1033
  }
@@ -13807,6 +13715,179 @@ severityNumber: number
13807
13715
  nextCursor: (string | null)
13808
13716
  }
13809
13717
 
13718
+ export interface ObserveMetricsListInput {
13719
+ /**
13720
+ * Only metrics whose name contains this text, case-insensitively
13721
+ */
13722
+ search?: string
13723
+ /**
13724
+ * How far back to look for metrics; default "24h"
13725
+ */
13726
+ window?: ("15m" | "1h" | "24h" | "7d" | "30d")
13727
+ /**
13728
+ * Only metrics reported by this service, e.g. "api"
13729
+ */
13730
+ service?: string
13731
+ /**
13732
+ * Only metrics reported in this environment, e.g. "production"
13733
+ */
13734
+ environment?: string
13735
+ }
13736
+
13737
+ export interface ObserveMetricsListOutput {
13738
+ /**
13739
+ * The window that was catalogued
13740
+ */
13741
+ window: string
13742
+ /**
13743
+ * The metrics seen in the window, by name
13744
+ */
13745
+ metrics: {
13746
+ /**
13747
+ * The metric name, e.g. "http.server.requests"
13748
+ */
13749
+ name: string
13750
+ /**
13751
+ * What the metric holds: a counter ("sum") or an explicit-bucket histogram
13752
+ */
13753
+ type: ("sum" | "histogram")
13754
+ /**
13755
+ * Unit as the emitter declared it, e.g. "ms"; empty when none
13756
+ */
13757
+ unit: string
13758
+ /**
13759
+ * When the newest point in the window arrived, ISO 8601
13760
+ */
13761
+ lastSeen: string
13762
+ /**
13763
+ * Services that reported it
13764
+ */
13765
+ services: string[]
13766
+ /**
13767
+ * Description the emitter declared; empty when none
13768
+ */
13769
+ description: string
13770
+ /**
13771
+ * How many distinct attribute sets were seen in the window
13772
+ */
13773
+ seriesCount: number
13774
+ /**
13775
+ * Environments this metric was reported in
13776
+ */
13777
+ environments: string[]
13778
+ /**
13779
+ * Attribute keys its series carry — the values groupBy accepts
13780
+ */
13781
+ attributeKeys: string[]
13782
+ }[]
13783
+ }
13784
+
13785
+ export interface ObserveMetricsQueryInput {
13786
+ /**
13787
+ * End of the window, ISO 8601; default now
13788
+ */
13789
+ to?: string
13790
+ /**
13791
+ * Start of the window, ISO 8601; default one hour ago
13792
+ */
13793
+ from?: string
13794
+ /**
13795
+ * The metric to read, exactly as observe_metrics_list names it
13796
+ */
13797
+ name: string
13798
+ /**
13799
+ * Bucket width; default the finest that renders at most 500 points
13800
+ */
13801
+ step?: ("1m" | "5m" | "15m" | "1h" | "6h" | "1d")
13802
+ /**
13803
+ * Attribute keys to keep as the series labels, aggregating every other attribute into them; default one series per distinct attribute set
13804
+ *
13805
+ * @maxItems 10
13806
+ */
13807
+ groupBy?: []|[string]|[string, string]|[string, string, string]|[string, string, string, string]|[string, string, string, string, string]|[string, string, string, string, string, string]|[string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string]|[string, string, string, string, string, string, string, string, string, string]
13808
+ /**
13809
+ * Only points from this service
13810
+ */
13811
+ service?: string
13812
+ /**
13813
+ * Only points whose attributes match every one of these key/value pairs
13814
+ */
13815
+ attributes?: {
13816
+ [k: string]: string
13817
+ }
13818
+ /**
13819
+ * How to aggregate each step. A counter takes "rate" (per second), "increase" (over the step) or "value" (its last reading); a histogram takes "p50", "p90", "p99", "avg" or "count". A pair that does not match the metric is rejected.
13820
+ */
13821
+ aggregation: ("rate" | "increase" | "value" | "p50" | "p90" | "p99" | "avg" | "count")
13822
+ /**
13823
+ * Only points from this environment
13824
+ */
13825
+ environment?: string
13826
+ }
13827
+
13828
+ export interface ObserveMetricsQueryOutput {
13829
+ /**
13830
+ * End of the window that was read, ISO 8601
13831
+ */
13832
+ to: string
13833
+ /**
13834
+ * Start of the window that was read, ISO 8601
13835
+ */
13836
+ from: string
13837
+ /**
13838
+ * The metric that was read
13839
+ */
13840
+ name: string
13841
+ /**
13842
+ * The bucket width the series is rendered at
13843
+ */
13844
+ step: string
13845
+ /**
13846
+ * What the metric holds: a counter ("sum") or an explicit-bucket histogram
13847
+ */
13848
+ type: ("sum" | "histogram")
13849
+ /**
13850
+ * Unit as the emitter declared it; empty when none
13851
+ */
13852
+ unit: string
13853
+ /**
13854
+ * One series per label set, ordered stably
13855
+ */
13856
+ series: {
13857
+ /**
13858
+ * The attribute set identifying this series, narrowed by groupBy when given
13859
+ */
13860
+ labels: {
13861
+ [k: string]: string
13862
+ }
13863
+ /**
13864
+ * One point per step, oldest first, gaps included
13865
+ */
13866
+ points: {
13867
+ /**
13868
+ * The aggregated value; null when the step had no points
13869
+ */
13870
+ value: (number | null)
13871
+ /**
13872
+ * Start of the step this value covers, ISO 8601
13873
+ */
13874
+ timestamp: string
13875
+ }[]
13876
+ }[]
13877
+ /**
13878
+ * True when a ceiling cut the answer — more series exist than were returned
13879
+ */
13880
+ truncated: boolean
13881
+ /**
13882
+ * The aggregation that was applied
13883
+ */
13884
+ aggregation: string
13885
+ /**
13886
+ * That width in seconds — what a rate was divided by
13887
+ */
13888
+ stepSeconds: number
13889
+ }
13890
+
13810
13891
  export interface ObserveTracesGetInput {
13811
13892
  /**
13812
13893
  * The trace to render, by its 32-character hex id
@@ -15053,6 +15134,7 @@ displayName: (string | null)
15053
15134
  orgRoles: {
15054
15135
  id: string
15055
15136
  name: string
15137
+ description: (string | null)
15056
15138
  }[]
15057
15139
  canManage: boolean
15058
15140
  inherited: {
@@ -15449,6 +15531,226 @@ lastMessagePreview: (string | null)
15449
15531
  }[]
15450
15532
  }
15451
15533
 
15534
+ export interface PlaygroundAnalyticsOverviewInput {
15535
+ /**
15536
+ * Max records per entity in recent[]; omit for the endpoint default
15537
+ */
15538
+ limit?: number
15539
+ }
15540
+
15541
+ export interface PlaygroundAnalyticsOverviewOutput {
15542
+ ok: boolean
15543
+ minted: boolean
15544
+ overview?: unknown
15545
+ http_status: number
15546
+ }
15547
+
15548
+ export interface PlaygroundBillingEntitlementsInput {
15549
+
15550
+ }
15551
+
15552
+ export interface PlaygroundBillingEntitlementsOutput {
15553
+ ok: boolean
15554
+ minted: boolean
15555
+ http_status: number
15556
+ entitlements?: unknown
15557
+ }
15558
+
15559
+ export interface PlaygroundBillingRecordUsageInput {
15560
+ /**
15561
+ * Quantity of events to record against playground-events (SUM); defaults to 1
15562
+ */
15563
+ value?: number
15564
+ }
15565
+
15566
+ export interface PlaygroundBillingRecordUsageOutput {
15567
+ minted: boolean
15568
+ accepted: (number | null)
15569
+ recorded: boolean
15570
+ duplicates: (number | null)
15571
+ http_status: number
15572
+ }
15573
+
15574
+ export interface PlaygroundClickupCreateTaskInput {
15575
+ /**
15576
+ * Task title; defaults to a fixture label
15577
+ */
15578
+ name?: string
15579
+ /**
15580
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
15581
+ */
15582
+ listId?: string
15583
+ }
15584
+
15585
+ export interface PlaygroundClickupCreateTaskOutput {
15586
+ minted: boolean
15587
+ task_id: (string | null)
15588
+ list_status: number
15589
+ vend_status: number
15590
+ clickup_status: number
15591
+ installation_count: number
15592
+ }
15593
+
15594
+ export interface PlaygroundClickupGetLastWebhookInput {
15595
+
15596
+ }
15597
+
15598
+ export type PlaygroundClickupGetLastWebhookOutput = ({
15599
+ payload: string
15600
+ event_id: string
15601
+ provider: string
15602
+ verified: boolean
15603
+ product_id: string
15604
+ occurred_at: string
15605
+ connector_id: string
15606
+ clickup_event: (string | null)
15607
+ receipt_count: number
15608
+ } | {
15609
+ found: false
15610
+ })
15611
+
15612
+ export interface PlaygroundClickupGetOverviewInput {
15613
+
15614
+ }
15615
+
15616
+ export interface PlaygroundClickupGetOverviewOutput {
15617
+ team: ({
15618
+ teamId: string
15619
+ teamName: string
15620
+ } | null)
15621
+ lists: PlaygroundClickupGetOverviewOutputItems[]
15622
+ tasks: {
15623
+ id: string
15624
+ name: string
15625
+ status: (string | null)
15626
+ }[]
15627
+ minted: boolean
15628
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
15629
+ list_status: number
15630
+ vend_status: number
15631
+ lists_status: number
15632
+ tasks_status: number
15633
+ spaces_status: number
15634
+ folders_status: number
15635
+ installation_count: number
15636
+ }
15637
+ export interface PlaygroundClickupGetOverviewOutputItems {
15638
+ id: string
15639
+ name: string
15640
+ }
15641
+
15642
+ export interface PlaygroundGdriveGetLastChangeInput {
15643
+
15644
+ }
15645
+
15646
+ export type PlaygroundGdriveGetLastChangeOutput = ({
15647
+ file_id: string
15648
+ removed: boolean
15649
+ file_name: (string | null)
15650
+ mime_type: (string | null)
15651
+ product_id: string
15652
+ occurred_at: string
15653
+ connector_id: string
15654
+ resource_state: string
15655
+ } | {
15656
+ found: false
15657
+ })
15658
+
15659
+ export interface PlaygroundGdriveReadFileInput {
15660
+ /**
15661
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
15662
+ */
15663
+ fileId?: string
15664
+ }
15665
+
15666
+ export interface PlaygroundGdriveReadFileOutput {
15667
+ minted: boolean
15668
+ file_id: (string | null)
15669
+ file_name: (string | null)
15670
+ mime_type: (string | null)
15671
+ file_count: number
15672
+ get_status: number
15673
+ list_status: number
15674
+ vend_status: number
15675
+ content_bytes: (number | null)
15676
+ }
15677
+
15678
+ export interface PlaygroundGoogleadsReadCustomerInput {
15679
+
15680
+ }
15681
+
15682
+ export interface PlaygroundGoogleadsReadCustomerOutput {
15683
+ minted: boolean
15684
+ vended: boolean
15685
+ customer_id: (string | null)
15686
+ vend_status: number
15687
+ result_count: number
15688
+ search_status: number
15689
+ login_customer_id: (string | null)
15690
+ }
15691
+
15692
+ export interface PlaygroundLifecycleGetStateInput {
15693
+
15694
+ }
15695
+
15696
+ export interface PlaygroundLifecycleGetStateOutput {
15697
+ blocked: boolean
15698
+ archived: boolean
15699
+ productId: string
15700
+ lastBlockTransition: ({
15701
+ eventId: string
15702
+ eventName: string
15703
+ productId: string
15704
+ occurredAt: string
15705
+ recordedAt: string
15706
+ receiptCount: number
15707
+ organizationId: string
15708
+ cascadedFromOrg: boolean
15709
+ } | null)
15710
+ lastArchiveTransition: ({
15711
+ eventId: string
15712
+ eventName: string
15713
+ productId: string
15714
+ occurredAt: string
15715
+ recordedAt: string
15716
+ receiptCount: number
15717
+ organizationId: string
15718
+ cascadedFromOrg: boolean
15719
+ } | null)
15720
+ }
15721
+
15722
+ export interface PlaygroundLifecycleListEventsInput {
15723
+
15724
+ }
15725
+
15726
+ export type PlaygroundLifecycleListEventsOutput = {
15727
+ eventId: string
15728
+ eventName: string
15729
+ productId: string
15730
+ occurredAt: string
15731
+ recordedAt: string
15732
+ receiptCount: number
15733
+ organizationId: string
15734
+ cascadedFromOrg: boolean
15735
+ }[]
15736
+
15737
+ export interface PlaygroundWebhookGetLastInput {
15738
+
15739
+ }
15740
+
15741
+ export type PlaygroundWebhookGetLastOutput = ({
15742
+ payload?: unknown
15743
+ event_id: string
15744
+ provider: string
15745
+ verified: boolean
15746
+ product_id: string
15747
+ occurred_at: string
15748
+ connector_id: string
15749
+ delivery_count: number
15750
+ } | {
15751
+ found: false
15752
+ })
15753
+
15452
15754
  export interface RealtimeArchiveExportInput {
15453
15755
  /**
15454
15756
  * Only entries with ts <= to_ts (epoch ms)