@lessly/sdk-app 17.3.1 → 18.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 (53) 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-BmxQbFSk.d.cts → client.gen-ZzwZ64Qc.d.cts} +223 -115
  10. package/dist/{client.gen-BmxQbFSk.d.ts → client.gen-ZzwZ64Qc.d.ts} +223 -115
  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 -43
  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 -43
  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 +0 -10
  24. package/dist/organization/index.cjs.map +1 -1
  25. package/dist/organization/index.d.cts +2 -10
  26. package/dist/organization/index.d.ts +2 -10
  27. package/dist/organization/index.js +1 -9
  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/tracking/index.d.cts +1 -1
  38. package/dist/tracking/index.d.ts +1 -1
  39. package/dist/users/index.d.cts +1 -1
  40. package/dist/users/index.d.ts +1 -1
  41. package/dist/waitlist/index.d.cts +1 -1
  42. package/dist/waitlist/index.d.ts +1 -1
  43. package/package.json +7 -2
  44. package/src/gen/bindings.gen.ts +104 -43
  45. package/src/gen/brain/index.ts +1 -1
  46. package/src/gen/brain/queryOptions.gen.ts +0 -7
  47. package/src/gen/client.gen.ts +52 -11
  48. package/src/gen/manifest.gen.ts +1 -1
  49. package/src/gen/organization/index.ts +1 -1
  50. package/src/gen/organization/queryOptions.gen.ts +0 -12
  51. package/src/gen/playground/index.ts +3 -0
  52. package/src/gen/playground/queryOptions.gen.ts +86 -0
  53. package/src/gen/types.gen.ts +226 -115
@@ -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
  }
@@ -2719,7 +2627,7 @@ baseEnvironmentId: (string | null)
2719
2627
  }
2720
2628
 
2721
2629
  export interface DeploymentEventsListByEnvironmentInput {
2722
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed")
2630
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled")
2723
2631
  limit?: number
2724
2632
  since?: string
2725
2633
  until?: string
@@ -2728,7 +2636,7 @@ environmentId: string
2728
2636
 
2729
2637
  export type DeploymentEventsListByEnvironmentOutput = {
2730
2638
  id: string
2731
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed")
2639
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled")
2732
2640
  payload: {
2733
2641
  [k: string]: unknown
2734
2642
  }
@@ -2741,7 +2649,7 @@ environmentId: (string | null)
2741
2649
  }[]
2742
2650
 
2743
2651
  export interface DeploymentEventsListByServiceInput {
2744
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed")
2652
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled")
2745
2653
  limit?: number
2746
2654
  since?: string
2747
2655
  until?: string
@@ -2751,7 +2659,7 @@ deploymentId?: string
2751
2659
 
2752
2660
  export type DeploymentEventsListByServiceOutput = {
2753
2661
  id: string
2754
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed")
2662
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled")
2755
2663
  payload: {
2756
2664
  [k: string]: unknown
2757
2665
  }
@@ -12874,15 +12782,6 @@ export interface OrganizationDomainsRemoveOutput {
12874
12782
  [k: string]: unknown
12875
12783
  }
12876
12784
 
12877
- export interface OrganizationExtensionsInstallInput {
12878
- productId: string
12879
- extensionId: string
12880
- }
12881
-
12882
- export interface OrganizationExtensionsInstallOutput {
12883
- message: string
12884
- }
12885
-
12886
12785
  export interface OrganizationExtensionsListInput {
12887
12786
 
12888
12787
  }
@@ -12914,19 +12813,10 @@ version: string
12914
12813
  manifest: {
12915
12814
  [k: string]: unknown
12916
12815
  }
12917
- installedAt: string
12816
+ registeredAt: string
12918
12817
  }[]
12919
12818
  }
12920
12819
 
12921
- export interface OrganizationExtensionsUninstallInput {
12922
- productId: string
12923
- extensionId: string
12924
- }
12925
-
12926
- export interface OrganizationExtensionsUninstallOutput {
12927
- message: string
12928
- }
12929
-
12930
12820
  export interface OrganizationFeedbackSubmitInput {
12931
12821
  page?: string
12932
12822
  title: string
@@ -12991,6 +12881,7 @@ id: string
12991
12881
  name: string
12992
12882
  role: ("owner" | "admin" | "member")
12993
12883
  active: boolean
12884
+ blockedAt: (string | null)
12994
12885
  }[]
12995
12886
  }
12996
12887
 
@@ -13477,6 +13368,226 @@ name: string
13477
13368
  activeProductId: (string | null)
13478
13369
  }
13479
13370
 
13371
+ export interface PlaygroundAnalyticsOverviewInput {
13372
+ /**
13373
+ * Max records per entity in recent[]; omit for the endpoint default
13374
+ */
13375
+ limit?: number
13376
+ }
13377
+
13378
+ export interface PlaygroundAnalyticsOverviewOutput {
13379
+ ok: boolean
13380
+ minted: boolean
13381
+ overview?: unknown
13382
+ http_status: number
13383
+ }
13384
+
13385
+ export interface PlaygroundBillingEntitlementsInput {
13386
+
13387
+ }
13388
+
13389
+ export interface PlaygroundBillingEntitlementsOutput {
13390
+ ok: boolean
13391
+ minted: boolean
13392
+ http_status: number
13393
+ entitlements?: unknown
13394
+ }
13395
+
13396
+ export interface PlaygroundBillingRecordUsageInput {
13397
+ /**
13398
+ * Quantity of events to record against playground-events (SUM); defaults to 1
13399
+ */
13400
+ value?: number
13401
+ }
13402
+
13403
+ export interface PlaygroundBillingRecordUsageOutput {
13404
+ minted: boolean
13405
+ accepted: (number | null)
13406
+ recorded: boolean
13407
+ duplicates: (number | null)
13408
+ http_status: number
13409
+ }
13410
+
13411
+ export interface PlaygroundClickupCreateTaskInput {
13412
+ /**
13413
+ * Task title; defaults to a fixture label
13414
+ */
13415
+ name?: string
13416
+ /**
13417
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13418
+ */
13419
+ listId?: string
13420
+ }
13421
+
13422
+ export interface PlaygroundClickupCreateTaskOutput {
13423
+ minted: boolean
13424
+ task_id: (string | null)
13425
+ list_status: number
13426
+ vend_status: number
13427
+ clickup_status: number
13428
+ installation_count: number
13429
+ }
13430
+
13431
+ export interface PlaygroundClickupGetLastWebhookInput {
13432
+
13433
+ }
13434
+
13435
+ export type PlaygroundClickupGetLastWebhookOutput = ({
13436
+ payload: string
13437
+ event_id: string
13438
+ provider: string
13439
+ verified: boolean
13440
+ product_id: string
13441
+ occurred_at: string
13442
+ connector_id: string
13443
+ clickup_event: (string | null)
13444
+ receipt_count: number
13445
+ } | {
13446
+ found: false
13447
+ })
13448
+
13449
+ export interface PlaygroundClickupGetOverviewInput {
13450
+
13451
+ }
13452
+
13453
+ export interface PlaygroundClickupGetOverviewOutput {
13454
+ team: ({
13455
+ teamId: string
13456
+ teamName: string
13457
+ } | null)
13458
+ lists: PlaygroundClickupGetOverviewOutputItems[]
13459
+ tasks: {
13460
+ id: string
13461
+ name: string
13462
+ status: (string | null)
13463
+ }[]
13464
+ minted: boolean
13465
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
13466
+ list_status: number
13467
+ vend_status: number
13468
+ lists_status: number
13469
+ tasks_status: number
13470
+ spaces_status: number
13471
+ folders_status: number
13472
+ installation_count: number
13473
+ }
13474
+ export interface PlaygroundClickupGetOverviewOutputItems {
13475
+ id: string
13476
+ name: string
13477
+ }
13478
+
13479
+ export interface PlaygroundGdriveGetLastChangeInput {
13480
+
13481
+ }
13482
+
13483
+ export type PlaygroundGdriveGetLastChangeOutput = ({
13484
+ file_id: string
13485
+ removed: boolean
13486
+ file_name: (string | null)
13487
+ mime_type: (string | null)
13488
+ product_id: string
13489
+ occurred_at: string
13490
+ connector_id: string
13491
+ resource_state: string
13492
+ } | {
13493
+ found: false
13494
+ })
13495
+
13496
+ export interface PlaygroundGdriveReadFileInput {
13497
+ /**
13498
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13499
+ */
13500
+ fileId?: string
13501
+ }
13502
+
13503
+ export interface PlaygroundGdriveReadFileOutput {
13504
+ minted: boolean
13505
+ file_id: (string | null)
13506
+ file_name: (string | null)
13507
+ mime_type: (string | null)
13508
+ file_count: number
13509
+ get_status: number
13510
+ list_status: number
13511
+ vend_status: number
13512
+ content_bytes: (number | null)
13513
+ }
13514
+
13515
+ export interface PlaygroundGoogleadsReadCustomerInput {
13516
+
13517
+ }
13518
+
13519
+ export interface PlaygroundGoogleadsReadCustomerOutput {
13520
+ minted: boolean
13521
+ vended: boolean
13522
+ customer_id: (string | null)
13523
+ vend_status: number
13524
+ result_count: number
13525
+ search_status: number
13526
+ login_customer_id: (string | null)
13527
+ }
13528
+
13529
+ export interface PlaygroundLifecycleGetStateInput {
13530
+
13531
+ }
13532
+
13533
+ export interface PlaygroundLifecycleGetStateOutput {
13534
+ blocked: boolean
13535
+ archived: boolean
13536
+ productId: string
13537
+ lastBlockTransition: ({
13538
+ eventId: string
13539
+ eventName: string
13540
+ productId: string
13541
+ occurredAt: string
13542
+ recordedAt: string
13543
+ receiptCount: number
13544
+ organizationId: string
13545
+ cascadedFromOrg: boolean
13546
+ } | null)
13547
+ lastArchiveTransition: ({
13548
+ eventId: string
13549
+ eventName: string
13550
+ productId: string
13551
+ occurredAt: string
13552
+ recordedAt: string
13553
+ receiptCount: number
13554
+ organizationId: string
13555
+ cascadedFromOrg: boolean
13556
+ } | null)
13557
+ }
13558
+
13559
+ export interface PlaygroundLifecycleListEventsInput {
13560
+
13561
+ }
13562
+
13563
+ export type PlaygroundLifecycleListEventsOutput = {
13564
+ eventId: string
13565
+ eventName: string
13566
+ productId: string
13567
+ occurredAt: string
13568
+ recordedAt: string
13569
+ receiptCount: number
13570
+ organizationId: string
13571
+ cascadedFromOrg: boolean
13572
+ }[]
13573
+
13574
+ export interface PlaygroundWebhookGetLastInput {
13575
+
13576
+ }
13577
+
13578
+ export type PlaygroundWebhookGetLastOutput = ({
13579
+ payload?: unknown
13580
+ event_id: string
13581
+ provider: string
13582
+ verified: boolean
13583
+ product_id: string
13584
+ occurred_at: string
13585
+ connector_id: string
13586
+ delivery_count: number
13587
+ } | {
13588
+ found: false
13589
+ })
13590
+
13480
13591
  export interface RealtimeApikeyCreateInput {
13481
13592
  /**
13482
13593
  * Human-readable label for the key, e.g. "production backend"