@lessly/sdk-app 30.7.0 → 31.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 (55) 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-p_iZK5OO.d.cts → client.gen-Cn7kIdt-.d.cts} +319 -96
  10. package/dist/{client.gen-p_iZK5OO.d.ts → client.gen-Cn7kIdt-.d.ts} +319 -96
  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 +169 -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 +169 -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/organization/index.cjs +25 -0
  24. package/dist/organization/index.cjs.map +1 -1
  25. package/dist/organization/index.d.cts +22 -2
  26. package/dist/organization/index.d.ts +22 -2
  27. package/dist/organization/index.js +21 -1
  28. package/dist/organization/index.js.map +1 -1
  29. package/dist/playground/index.cjs +66 -0
  30. package/dist/playground/index.cjs.map +1 -0
  31. package/dist/playground/index.d.cts +52 -0
  32. package/dist/playground/index.d.ts +52 -0
  33. package/dist/playground/index.js +53 -0
  34. package/dist/playground/index.js.map +1 -0
  35. package/dist/realtime/index.d.cts +1 -1
  36. package/dist/realtime/index.d.ts +1 -1
  37. package/dist/support/index.d.cts +1 -1
  38. package/dist/support/index.d.ts +1 -1
  39. package/dist/tracking/index.d.cts +1 -1
  40. package/dist/tracking/index.d.ts +1 -1
  41. package/dist/users/index.d.cts +1 -1
  42. package/dist/users/index.d.ts +1 -1
  43. package/dist/waitlist/index.d.cts +1 -1
  44. package/dist/waitlist/index.d.ts +1 -1
  45. package/package.json +7 -2
  46. package/src/gen/bindings.gen.ts +169 -13
  47. package/src/gen/brain/index.ts +1 -1
  48. package/src/gen/brain/queryOptions.gen.ts +0 -7
  49. package/src/gen/client.gen.ts +71 -5
  50. package/src/gen/manifest.gen.ts +1 -1
  51. package/src/gen/organization/index.ts +1 -1
  52. package/src/gen/organization/queryOptions.gen.ts +32 -0
  53. package/src/gen/playground/index.ts +3 -0
  54. package/src/gen/playground/queryOptions.gen.ts +86 -0
  55. package/src/gen/types.gen.ts +324 -94
@@ -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
  }
@@ -12981,8 +12889,9 @@ details: string
12981
12889
  }
12982
12890
 
12983
12891
  export interface OrganizationFeedbackSubmitOutput {
12984
- url: string
12985
- number: number
12892
+ url: (string | null)
12893
+ number: (number | null)
12894
+ supportThreadId?: string
12986
12895
  }
12987
12896
 
12988
12897
  export interface OrganizationGdriveInstallInput {
@@ -13391,6 +13300,20 @@ productId: (string | null)
13391
13300
  }[]
13392
13301
  }
13393
13302
 
13303
+ export interface OrganizationProductResendInvitationInput {
13304
+ productId: string
13305
+ invitationId: string
13306
+ }
13307
+
13308
+ export interface OrganizationProductResendInvitationOutput {
13309
+ id: string
13310
+ role: string
13311
+ email: (string | null)
13312
+ status: string
13313
+ createdAt: string
13314
+ expiresAt: string
13315
+ }
13316
+
13394
13317
  export interface OrganizationProductRevokeInvitationInput {
13395
13318
  productId: string
13396
13319
  invitationId: string
@@ -13634,6 +13557,313 @@ name: string
13634
13557
  activeProductId: (string | null)
13635
13558
  }
13636
13559
 
13560
+ export interface OrganizationSupportThreadCreateInput {
13561
+ body: string
13562
+ title: string
13563
+ }
13564
+
13565
+ export interface OrganizationSupportThreadCreateOutput {
13566
+ id: string
13567
+ title: string
13568
+ status: string
13569
+ category: ("open" | "pending" | "resolved" | "closed")
13570
+ messages: {
13571
+ id: string
13572
+ body: string
13573
+ author: {
13574
+ kind: ("user" | "agent")
13575
+ name: string
13576
+ }
13577
+ createdAt: string
13578
+ }[]
13579
+ createdAt: string
13580
+ lastMessageAt: string
13581
+ lastMessagePreview: (string | null)
13582
+ }
13583
+
13584
+ export interface OrganizationSupportThreadGetInput {
13585
+ id: string
13586
+ }
13587
+
13588
+ export interface OrganizationSupportThreadGetOutput {
13589
+ id: string
13590
+ title: string
13591
+ status: string
13592
+ category: ("open" | "pending" | "resolved" | "closed")
13593
+ messages: {
13594
+ id: string
13595
+ body: string
13596
+ author: {
13597
+ kind: ("user" | "agent")
13598
+ name: string
13599
+ }
13600
+ createdAt: string
13601
+ }[]
13602
+ createdAt: string
13603
+ lastMessageAt: string
13604
+ lastMessagePreview: (string | null)
13605
+ }
13606
+
13607
+ export interface OrganizationSupportThreadReplyInput {
13608
+ id: string
13609
+ body: string
13610
+ }
13611
+
13612
+ export interface OrganizationSupportThreadReplyOutput {
13613
+ id: string
13614
+ title: string
13615
+ status: string
13616
+ category: ("open" | "pending" | "resolved" | "closed")
13617
+ messages: {
13618
+ id: string
13619
+ body: string
13620
+ author: {
13621
+ kind: ("user" | "agent")
13622
+ name: string
13623
+ }
13624
+ createdAt: string
13625
+ }[]
13626
+ createdAt: string
13627
+ lastMessageAt: string
13628
+ lastMessagePreview: (string | null)
13629
+ }
13630
+
13631
+ export interface OrganizationSupportThreadsListInput {
13632
+
13633
+ }
13634
+
13635
+ export interface OrganizationSupportThreadsListOutput {
13636
+ threads: {
13637
+ id: string
13638
+ title: string
13639
+ status: string
13640
+ category: ("open" | "pending" | "resolved" | "closed")
13641
+ createdAt: string
13642
+ lastMessageAt: string
13643
+ lastMessagePreview: (string | null)
13644
+ }[]
13645
+ }
13646
+
13647
+ export interface PlaygroundAnalyticsOverviewInput {
13648
+ /**
13649
+ * Max records per entity in recent[]; omit for the endpoint default
13650
+ */
13651
+ limit?: number
13652
+ }
13653
+
13654
+ export interface PlaygroundAnalyticsOverviewOutput {
13655
+ ok: boolean
13656
+ minted: boolean
13657
+ overview?: unknown
13658
+ http_status: number
13659
+ }
13660
+
13661
+ export interface PlaygroundBillingEntitlementsInput {
13662
+
13663
+ }
13664
+
13665
+ export interface PlaygroundBillingEntitlementsOutput {
13666
+ ok: boolean
13667
+ minted: boolean
13668
+ http_status: number
13669
+ entitlements?: unknown
13670
+ }
13671
+
13672
+ export interface PlaygroundBillingRecordUsageInput {
13673
+ /**
13674
+ * Quantity of events to record against playground-events (SUM); defaults to 1
13675
+ */
13676
+ value?: number
13677
+ }
13678
+
13679
+ export interface PlaygroundBillingRecordUsageOutput {
13680
+ minted: boolean
13681
+ accepted: (number | null)
13682
+ recorded: boolean
13683
+ duplicates: (number | null)
13684
+ http_status: number
13685
+ }
13686
+
13687
+ export interface PlaygroundClickupCreateTaskInput {
13688
+ /**
13689
+ * Task title; defaults to a fixture label
13690
+ */
13691
+ name?: string
13692
+ /**
13693
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13694
+ */
13695
+ listId?: string
13696
+ }
13697
+
13698
+ export interface PlaygroundClickupCreateTaskOutput {
13699
+ minted: boolean
13700
+ task_id: (string | null)
13701
+ list_status: number
13702
+ vend_status: number
13703
+ clickup_status: number
13704
+ installation_count: number
13705
+ }
13706
+
13707
+ export interface PlaygroundClickupGetLastWebhookInput {
13708
+
13709
+ }
13710
+
13711
+ export type PlaygroundClickupGetLastWebhookOutput = ({
13712
+ payload: string
13713
+ event_id: string
13714
+ provider: string
13715
+ verified: boolean
13716
+ product_id: string
13717
+ occurred_at: string
13718
+ connector_id: string
13719
+ clickup_event: (string | null)
13720
+ receipt_count: number
13721
+ } | {
13722
+ found: false
13723
+ })
13724
+
13725
+ export interface PlaygroundClickupGetOverviewInput {
13726
+
13727
+ }
13728
+
13729
+ export interface PlaygroundClickupGetOverviewOutput {
13730
+ team: ({
13731
+ teamId: string
13732
+ teamName: string
13733
+ } | null)
13734
+ lists: PlaygroundClickupGetOverviewOutputItems[]
13735
+ tasks: {
13736
+ id: string
13737
+ name: string
13738
+ status: (string | null)
13739
+ }[]
13740
+ minted: boolean
13741
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
13742
+ list_status: number
13743
+ vend_status: number
13744
+ lists_status: number
13745
+ tasks_status: number
13746
+ spaces_status: number
13747
+ folders_status: number
13748
+ installation_count: number
13749
+ }
13750
+ export interface PlaygroundClickupGetOverviewOutputItems {
13751
+ id: string
13752
+ name: string
13753
+ }
13754
+
13755
+ export interface PlaygroundGdriveGetLastChangeInput {
13756
+
13757
+ }
13758
+
13759
+ export type PlaygroundGdriveGetLastChangeOutput = ({
13760
+ file_id: string
13761
+ removed: boolean
13762
+ file_name: (string | null)
13763
+ mime_type: (string | null)
13764
+ product_id: string
13765
+ occurred_at: string
13766
+ connector_id: string
13767
+ resource_state: string
13768
+ } | {
13769
+ found: false
13770
+ })
13771
+
13772
+ export interface PlaygroundGdriveReadFileInput {
13773
+ /**
13774
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13775
+ */
13776
+ fileId?: string
13777
+ }
13778
+
13779
+ export interface PlaygroundGdriveReadFileOutput {
13780
+ minted: boolean
13781
+ file_id: (string | null)
13782
+ file_name: (string | null)
13783
+ mime_type: (string | null)
13784
+ file_count: number
13785
+ get_status: number
13786
+ list_status: number
13787
+ vend_status: number
13788
+ content_bytes: (number | null)
13789
+ }
13790
+
13791
+ export interface PlaygroundGoogleadsReadCustomerInput {
13792
+
13793
+ }
13794
+
13795
+ export interface PlaygroundGoogleadsReadCustomerOutput {
13796
+ minted: boolean
13797
+ vended: boolean
13798
+ customer_id: (string | null)
13799
+ vend_status: number
13800
+ result_count: number
13801
+ search_status: number
13802
+ login_customer_id: (string | null)
13803
+ }
13804
+
13805
+ export interface PlaygroundLifecycleGetStateInput {
13806
+
13807
+ }
13808
+
13809
+ export interface PlaygroundLifecycleGetStateOutput {
13810
+ blocked: boolean
13811
+ archived: boolean
13812
+ productId: string
13813
+ lastBlockTransition: ({
13814
+ eventId: string
13815
+ eventName: string
13816
+ productId: string
13817
+ occurredAt: string
13818
+ recordedAt: string
13819
+ receiptCount: number
13820
+ organizationId: string
13821
+ cascadedFromOrg: boolean
13822
+ } | null)
13823
+ lastArchiveTransition: ({
13824
+ eventId: string
13825
+ eventName: string
13826
+ productId: string
13827
+ occurredAt: string
13828
+ recordedAt: string
13829
+ receiptCount: number
13830
+ organizationId: string
13831
+ cascadedFromOrg: boolean
13832
+ } | null)
13833
+ }
13834
+
13835
+ export interface PlaygroundLifecycleListEventsInput {
13836
+
13837
+ }
13838
+
13839
+ export type PlaygroundLifecycleListEventsOutput = {
13840
+ eventId: string
13841
+ eventName: string
13842
+ productId: string
13843
+ occurredAt: string
13844
+ recordedAt: string
13845
+ receiptCount: number
13846
+ organizationId: string
13847
+ cascadedFromOrg: boolean
13848
+ }[]
13849
+
13850
+ export interface PlaygroundWebhookGetLastInput {
13851
+
13852
+ }
13853
+
13854
+ export type PlaygroundWebhookGetLastOutput = ({
13855
+ payload?: unknown
13856
+ event_id: string
13857
+ provider: string
13858
+ verified: boolean
13859
+ product_id: string
13860
+ occurred_at: string
13861
+ connector_id: string
13862
+ delivery_count: number
13863
+ } | {
13864
+ found: false
13865
+ })
13866
+
13637
13867
  export interface RealtimeArchiveExportInput {
13638
13868
  /**
13639
13869
  * Only entries with ts <= to_ts (epoch ms)