@lessly/sdk-app 26.0.0 → 27.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 (47) 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-TmObHd8p.d.cts → client.gen-BxrBJi8X.d.cts} +370 -94
  10. package/dist/{client.gen-TmObHd8p.d.ts → client.gen-BxrBJi8X.d.ts} +370 -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 +108 -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 +108 -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.d.cts +1 -1
  24. package/dist/organization/index.d.ts +1 -1
  25. package/dist/playground/index.cjs +66 -0
  26. package/dist/playground/index.cjs.map +1 -0
  27. package/dist/playground/index.d.cts +52 -0
  28. package/dist/playground/index.d.ts +52 -0
  29. package/dist/playground/index.js +53 -0
  30. package/dist/playground/index.js.map +1 -0
  31. package/dist/realtime/index.d.cts +1 -1
  32. package/dist/realtime/index.d.ts +1 -1
  33. package/dist/tracking/index.d.cts +1 -1
  34. package/dist/tracking/index.d.ts +1 -1
  35. package/dist/users/index.d.cts +1 -1
  36. package/dist/users/index.d.ts +1 -1
  37. package/dist/waitlist/index.d.cts +1 -1
  38. package/dist/waitlist/index.d.ts +1 -1
  39. package/package.json +7 -2
  40. package/src/gen/bindings.gen.ts +108 -13
  41. package/src/gen/brain/index.ts +1 -1
  42. package/src/gen/brain/queryOptions.gen.ts +0 -7
  43. package/src/gen/client.gen.ts +52 -5
  44. package/src/gen/manifest.gen.ts +1 -1
  45. package/src/gen/playground/index.ts +3 -0
  46. package/src/gen/playground/queryOptions.gen.ts +86 -0
  47. package/src/gen/types.gen.ts +373 -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
  }
@@ -13591,6 +13499,226 @@ name: string
13591
13499
  activeProductId: (string | null)
13592
13500
  }
13593
13501
 
13502
+ export interface PlaygroundAnalyticsOverviewInput {
13503
+ /**
13504
+ * Max records per entity in recent[]; omit for the endpoint default
13505
+ */
13506
+ limit?: number
13507
+ }
13508
+
13509
+ export interface PlaygroundAnalyticsOverviewOutput {
13510
+ ok: boolean
13511
+ minted: boolean
13512
+ overview?: unknown
13513
+ http_status: number
13514
+ }
13515
+
13516
+ export interface PlaygroundBillingEntitlementsInput {
13517
+
13518
+ }
13519
+
13520
+ export interface PlaygroundBillingEntitlementsOutput {
13521
+ ok: boolean
13522
+ minted: boolean
13523
+ http_status: number
13524
+ entitlements?: unknown
13525
+ }
13526
+
13527
+ export interface PlaygroundBillingRecordUsageInput {
13528
+ /**
13529
+ * Quantity of events to record against playground-events (SUM); defaults to 1
13530
+ */
13531
+ value?: number
13532
+ }
13533
+
13534
+ export interface PlaygroundBillingRecordUsageOutput {
13535
+ minted: boolean
13536
+ accepted: (number | null)
13537
+ recorded: boolean
13538
+ duplicates: (number | null)
13539
+ http_status: number
13540
+ }
13541
+
13542
+ export interface PlaygroundClickupCreateTaskInput {
13543
+ /**
13544
+ * Task title; defaults to a fixture label
13545
+ */
13546
+ name?: string
13547
+ /**
13548
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13549
+ */
13550
+ listId?: string
13551
+ }
13552
+
13553
+ export interface PlaygroundClickupCreateTaskOutput {
13554
+ minted: boolean
13555
+ task_id: (string | null)
13556
+ list_status: number
13557
+ vend_status: number
13558
+ clickup_status: number
13559
+ installation_count: number
13560
+ }
13561
+
13562
+ export interface PlaygroundClickupGetLastWebhookInput {
13563
+
13564
+ }
13565
+
13566
+ export type PlaygroundClickupGetLastWebhookOutput = ({
13567
+ payload: string
13568
+ event_id: string
13569
+ provider: string
13570
+ verified: boolean
13571
+ product_id: string
13572
+ occurred_at: string
13573
+ connector_id: string
13574
+ clickup_event: (string | null)
13575
+ receipt_count: number
13576
+ } | {
13577
+ found: false
13578
+ })
13579
+
13580
+ export interface PlaygroundClickupGetOverviewInput {
13581
+
13582
+ }
13583
+
13584
+ export interface PlaygroundClickupGetOverviewOutput {
13585
+ team: ({
13586
+ teamId: string
13587
+ teamName: string
13588
+ } | null)
13589
+ lists: PlaygroundClickupGetOverviewOutputItems[]
13590
+ tasks: {
13591
+ id: string
13592
+ name: string
13593
+ status: (string | null)
13594
+ }[]
13595
+ minted: boolean
13596
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
13597
+ list_status: number
13598
+ vend_status: number
13599
+ lists_status: number
13600
+ tasks_status: number
13601
+ spaces_status: number
13602
+ folders_status: number
13603
+ installation_count: number
13604
+ }
13605
+ export interface PlaygroundClickupGetOverviewOutputItems {
13606
+ id: string
13607
+ name: string
13608
+ }
13609
+
13610
+ export interface PlaygroundGdriveGetLastChangeInput {
13611
+
13612
+ }
13613
+
13614
+ export type PlaygroundGdriveGetLastChangeOutput = ({
13615
+ file_id: string
13616
+ removed: boolean
13617
+ file_name: (string | null)
13618
+ mime_type: (string | null)
13619
+ product_id: string
13620
+ occurred_at: string
13621
+ connector_id: string
13622
+ resource_state: string
13623
+ } | {
13624
+ found: false
13625
+ })
13626
+
13627
+ export interface PlaygroundGdriveReadFileInput {
13628
+ /**
13629
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13630
+ */
13631
+ fileId?: string
13632
+ }
13633
+
13634
+ export interface PlaygroundGdriveReadFileOutput {
13635
+ minted: boolean
13636
+ file_id: (string | null)
13637
+ file_name: (string | null)
13638
+ mime_type: (string | null)
13639
+ file_count: number
13640
+ get_status: number
13641
+ list_status: number
13642
+ vend_status: number
13643
+ content_bytes: (number | null)
13644
+ }
13645
+
13646
+ export interface PlaygroundGoogleadsReadCustomerInput {
13647
+
13648
+ }
13649
+
13650
+ export interface PlaygroundGoogleadsReadCustomerOutput {
13651
+ minted: boolean
13652
+ vended: boolean
13653
+ customer_id: (string | null)
13654
+ vend_status: number
13655
+ result_count: number
13656
+ search_status: number
13657
+ login_customer_id: (string | null)
13658
+ }
13659
+
13660
+ export interface PlaygroundLifecycleGetStateInput {
13661
+
13662
+ }
13663
+
13664
+ export interface PlaygroundLifecycleGetStateOutput {
13665
+ blocked: boolean
13666
+ archived: boolean
13667
+ productId: string
13668
+ lastBlockTransition: ({
13669
+ eventId: string
13670
+ eventName: string
13671
+ productId: string
13672
+ occurredAt: string
13673
+ recordedAt: string
13674
+ receiptCount: number
13675
+ organizationId: string
13676
+ cascadedFromOrg: boolean
13677
+ } | null)
13678
+ lastArchiveTransition: ({
13679
+ eventId: string
13680
+ eventName: string
13681
+ productId: string
13682
+ occurredAt: string
13683
+ recordedAt: string
13684
+ receiptCount: number
13685
+ organizationId: string
13686
+ cascadedFromOrg: boolean
13687
+ } | null)
13688
+ }
13689
+
13690
+ export interface PlaygroundLifecycleListEventsInput {
13691
+
13692
+ }
13693
+
13694
+ export type PlaygroundLifecycleListEventsOutput = {
13695
+ eventId: string
13696
+ eventName: string
13697
+ productId: string
13698
+ occurredAt: string
13699
+ recordedAt: string
13700
+ receiptCount: number
13701
+ organizationId: string
13702
+ cascadedFromOrg: boolean
13703
+ }[]
13704
+
13705
+ export interface PlaygroundWebhookGetLastInput {
13706
+
13707
+ }
13708
+
13709
+ export type PlaygroundWebhookGetLastOutput = ({
13710
+ payload?: unknown
13711
+ event_id: string
13712
+ provider: string
13713
+ verified: boolean
13714
+ product_id: string
13715
+ occurred_at: string
13716
+ connector_id: string
13717
+ delivery_count: number
13718
+ } | {
13719
+ found: false
13720
+ })
13721
+
13594
13722
  export interface RealtimeArchiveExportInput {
13595
13723
  /**
13596
13724
  * Only entries with ts <= to_ts (epoch ms)
@@ -15696,6 +15824,56 @@ github: UsersConfigGetOutputGoogle
15696
15824
  google: UsersConfigGetOutputGoogle
15697
15825
  }
15698
15826
  }
15827
+ hosted: {
15828
+ /**
15829
+ * Serve the hosted sign-in, sign-up and recovery pages for this product. Default true. False answers those routes with a refusal page instead — for a product that ships its own frontend and wants no second front door.
15830
+ */
15831
+ enabled: boolean
15832
+ /**
15833
+ * Absolute https URL of a logo rendered above the form. Null renders no logo.
15834
+ */
15835
+ logoUrl: (string | null)
15836
+ /**
15837
+ * Terms link rendered in the footer. Null renders no link.
15838
+ */
15839
+ termsUrl: (string | null)
15840
+ /**
15841
+ * CSS colour of the body text.
15842
+ */
15843
+ textColor: string
15844
+ /**
15845
+ * One line under the card. Null renders no footer.
15846
+ */
15847
+ footerText: (string | null)
15848
+ /**
15849
+ * Privacy-policy link rendered in the footer. Null renders no link.
15850
+ */
15851
+ privacyUrl: (string | null)
15852
+ /**
15853
+ * CSS colour for the submit button, the links and the focus ring.
15854
+ */
15855
+ accentColor: string
15856
+ /**
15857
+ * Shown in the heading and the page title. Default "This product".
15858
+ */
15859
+ productName: string
15860
+ /**
15861
+ * CSS length for the card and its controls, e.g. "12px".
15862
+ */
15863
+ borderRadius: string
15864
+ /**
15865
+ * CSS colour of the card itself.
15866
+ */
15867
+ surfaceColor: string
15868
+ /**
15869
+ * CSS colour of secondary text and hints.
15870
+ */
15871
+ mutedTextColor: string
15872
+ /**
15873
+ * CSS colour of the page behind the card.
15874
+ */
15875
+ backgroundColor: string
15876
+ }
15699
15877
  invite: {
15700
15878
  /**
15701
15879
  * How long an invite link stays usable, in days. Default 14.
@@ -15990,6 +16168,59 @@ clientId?: (string | null)
15990
16168
  clientSecret?: (string | null)
15991
16169
  }
15992
16170
  }
16171
+ /**
16172
+ * The hosted sign-in / sign-up / recovery pages: whether they are served, and the product name, logo, colours and footer links they render with. Merged field-by-field, so setting one colour leaves the rest alone.
16173
+ */
16174
+ hosted?: {
16175
+ /**
16176
+ * Serve the hosted sign-in, sign-up and recovery pages for this product. Default true. False answers those routes with a refusal page instead — for a product that ships its own frontend and wants no second front door.
16177
+ */
16178
+ enabled?: boolean
16179
+ /**
16180
+ * Absolute https URL of a logo rendered above the form. Null renders no logo.
16181
+ */
16182
+ logoUrl?: (string | null)
16183
+ /**
16184
+ * Terms link rendered in the footer. Null renders no link.
16185
+ */
16186
+ termsUrl?: (string | null)
16187
+ /**
16188
+ * CSS colour of the body text.
16189
+ */
16190
+ textColor?: string
16191
+ /**
16192
+ * One line under the card. Null renders no footer.
16193
+ */
16194
+ footerText?: (string | null)
16195
+ /**
16196
+ * Privacy-policy link rendered in the footer. Null renders no link.
16197
+ */
16198
+ privacyUrl?: (string | null)
16199
+ /**
16200
+ * CSS colour for the submit button, the links and the focus ring.
16201
+ */
16202
+ accentColor?: string
16203
+ /**
16204
+ * Shown in the heading and the page title. Default "This product".
16205
+ */
16206
+ productName?: string
16207
+ /**
16208
+ * CSS length for the card and its controls, e.g. "12px".
16209
+ */
16210
+ borderRadius?: string
16211
+ /**
16212
+ * CSS colour of the card itself.
16213
+ */
16214
+ surfaceColor?: string
16215
+ /**
16216
+ * CSS colour of secondary text and hints.
16217
+ */
16218
+ mutedTextColor?: string
16219
+ /**
16220
+ * CSS colour of the page behind the card.
16221
+ */
16222
+ backgroundColor?: string
16223
+ }
15993
16224
  /**
15994
16225
  * Invite lifetime and re-invite cooldown. Merged field-by-field.
15995
16226
  */
@@ -16335,6 +16566,56 @@ github: UsersConfigUpsertOutputGoogle
16335
16566
  google: UsersConfigUpsertOutputGoogle
16336
16567
  }
16337
16568
  }
16569
+ hosted: {
16570
+ /**
16571
+ * Serve the hosted sign-in, sign-up and recovery pages for this product. Default true. False answers those routes with a refusal page instead — for a product that ships its own frontend and wants no second front door.
16572
+ */
16573
+ enabled: boolean
16574
+ /**
16575
+ * Absolute https URL of a logo rendered above the form. Null renders no logo.
16576
+ */
16577
+ logoUrl: (string | null)
16578
+ /**
16579
+ * Terms link rendered in the footer. Null renders no link.
16580
+ */
16581
+ termsUrl: (string | null)
16582
+ /**
16583
+ * CSS colour of the body text.
16584
+ */
16585
+ textColor: string
16586
+ /**
16587
+ * One line under the card. Null renders no footer.
16588
+ */
16589
+ footerText: (string | null)
16590
+ /**
16591
+ * Privacy-policy link rendered in the footer. Null renders no link.
16592
+ */
16593
+ privacyUrl: (string | null)
16594
+ /**
16595
+ * CSS colour for the submit button, the links and the focus ring.
16596
+ */
16597
+ accentColor: string
16598
+ /**
16599
+ * Shown in the heading and the page title. Default "This product".
16600
+ */
16601
+ productName: string
16602
+ /**
16603
+ * CSS length for the card and its controls, e.g. "12px".
16604
+ */
16605
+ borderRadius: string
16606
+ /**
16607
+ * CSS colour of the card itself.
16608
+ */
16609
+ surfaceColor: string
16610
+ /**
16611
+ * CSS colour of secondary text and hints.
16612
+ */
16613
+ mutedTextColor: string
16614
+ /**
16615
+ * CSS colour of the page behind the card.
16616
+ */
16617
+ backgroundColor: string
16618
+ }
16338
16619
  invite: {
16339
16620
  /**
16340
16621
  * How long an invite link stays usable, in days. Default 14.