@lessly/sdk-app 26.0.0 → 28.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-DhQqDgJm.d.cts} +254 -98
  10. package/dist/{client.gen-TmObHd8p.d.ts → client.gen-DhQqDgJm.d.ts} +254 -98
  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 +104 -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 +104 -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 +104 -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 +257 -96
@@ -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)
@@ -15772,7 +15900,7 @@ successMessage: string
15772
15900
  */
15773
15901
  doubleOptIn: boolean
15774
15902
  /**
15775
- * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
15903
+ * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
15776
15904
  */
15777
15905
  retentionDays: number
15778
15906
  /**
@@ -16092,7 +16220,7 @@ successMessage?: string
16092
16220
  */
16093
16221
  doubleOptIn?: boolean
16094
16222
  /**
16095
- * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
16223
+ * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
16096
16224
  */
16097
16225
  retentionDays?: number
16098
16226
  /**
@@ -16411,7 +16539,7 @@ successMessage: string
16411
16539
  */
16412
16540
  doubleOptIn: boolean
16413
16541
  /**
16414
- * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
16542
+ * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
16415
16543
  */
16416
16544
  retentionDays: number
16417
16545
  /**
@@ -16700,9 +16828,42 @@ why: string
16700
16828
  what: string
16701
16829
  }[]
16702
16830
  /**
16703
- * How long a still-PENDING waitlist entry is kept. It lives in the `waitlist` config block rather than in `retention`, because it is not a grace period on a dead row: a pending entry never expires on its own, so this window is the whole of what makes it go away and the sweep ERASES it (audit row, `users/waitlist-entry.erased`) rather than deleting it.
16831
+ * The last sweep this replica performed, or NULL when it has observed none. Null and a run with `erased: 0` are DIFFERENT STATES and must never be collapsed: one means the job is working and there was nothing due, the other means this replica has no evidence the job ran at all. The durable per-entry trail is elsewhere the append-only `waitlist.erased` audit rows.
16832
+ */
16833
+ lastSweep: ({
16834
+ /**
16835
+ * This is ONE replica’s memory of its own last pass, not the deployment’s — the same honesty as `users_ops_slo_get`. A replica that has never executed the cron reports `null` even though another one may have swept a minute ago, so treat this as a spot check.
16836
+ */
16837
+ scope: "replica"
16838
+ /**
16839
+ * How many of THIS PRODUCT’s entries that pass erased. The sweep itself runs across every tenant at once — expiry is the passage of time and it has no request tenant to scope to — but the number reported here is bucketed, because a management tool answers about the caller’s own product and never about anybody else’s. A zero next to a non-null run is a result, not a gap: the job ran and nothing was due here.
16840
+ */
16841
+ erased: number
16842
+ /**
16843
+ * Which window decided, in words that name the config field.
16844
+ */
16845
+ window: string
16846
+ /**
16847
+ * The statuses in scope. `registered` and `withdrawn` are never swept.
16848
+ */
16849
+ statuses: string[]
16850
+ /**
16851
+ * ISO time the pass finished.
16852
+ */
16853
+ finishedAt: string
16854
+ } | null)
16855
+ /**
16856
+ * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP. It lives in the `waitlist` config block rather than in `retention`, because it is not a grace period on a dead row: such an entry never expires on its own, so this window is the whole of what makes it go away — and the sweep ERASES it (audit row, `users/waitlist-entry.erased`) rather than deleting it.
16704
16857
  */
16705
16858
  waitlistRetentionDays: number
16859
+ /**
16860
+ * What Lessly PUBLISHED, in its Privacy Policy §6: a waitlist address that never converted is deleted 6 months from sign-up. It rides along so the window above can be read against the promise it came from, rather than as a number with no provenance.
16861
+ */
16862
+ waitlistPromisedMaxDays: number
16863
+ /**
16864
+ * True when this product configured a window WIDER than the published 180 days. Nothing refuses such a value and nothing clamps it — §6 is Lessly’s own policy and a client Product answers to its own, under which a longer window may be perfectly lawful. This flag exists INSTEAD of that ceiling: a deliberate divergence from what Lessly published must be diagnosable in one call rather than found by comparing two numbers nobody thought to compare.
16865
+ */
16866
+ waitlistWiderThanPromised: boolean
16706
16867
  }
16707
16868
 
16708
16869
  export interface UsersOpsSloGetInput {