@lessly/sdk-app 36.2.0 → 37.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 (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 +5 -0
  4. package/dist/brain/index.cjs.map +1 -1
  5. package/dist/brain/index.d.cts +6 -2
  6. package/dist/brain/index.d.ts +6 -2
  7. package/dist/brain/index.js +5 -1
  8. package/dist/brain/index.js.map +1 -1
  9. package/dist/{client.gen-B78AtFRC.d.cts → client.gen-C7SVQnZq.d.cts} +94 -1596
  10. package/dist/{client.gen-B78AtFRC.d.ts → client.gen-C7SVQnZq.d.ts} +94 -1596
  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 +13 -520
  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 +13 -520
  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/realtime/index.d.cts +1 -1
  26. package/dist/realtime/index.d.ts +1 -1
  27. package/dist/support/index.d.cts +1 -1
  28. package/dist/support/index.d.ts +1 -1
  29. package/dist/tracking/index.d.cts +1 -1
  30. package/dist/tracking/index.d.ts +1 -1
  31. package/dist/users/index.d.cts +1 -1
  32. package/dist/users/index.d.ts +1 -1
  33. package/dist/waitlist/index.d.cts +1 -1
  34. package/dist/waitlist/index.d.ts +1 -1
  35. package/package.json +2 -12
  36. package/src/gen/bindings.gen.ts +13 -520
  37. package/src/gen/brain/index.ts +1 -1
  38. package/src/gen/brain/queryOptions.gen.ts +7 -0
  39. package/src/gen/client.gen.ts +5 -142
  40. package/src/gen/manifest.gen.ts +1 -1
  41. package/src/gen/types.gen.ts +190 -1704
  42. package/dist/observe/index.cjs +0 -126
  43. package/dist/observe/index.cjs.map +0 -1
  44. package/dist/observe/index.d.cts +0 -100
  45. package/dist/observe/index.d.ts +0 -100
  46. package/dist/observe/index.js +0 -101
  47. package/dist/observe/index.js.map +0 -1
  48. package/dist/playground/index.cjs +0 -66
  49. package/dist/playground/index.cjs.map +0 -1
  50. package/dist/playground/index.d.cts +0 -52
  51. package/dist/playground/index.d.ts +0 -52
  52. package/dist/playground/index.js +0 -53
  53. package/dist/playground/index.js.map +0 -1
  54. package/src/gen/observe/index.ts +0 -3
  55. package/src/gen/observe/queryOptions.gen.ts +0 -161
  56. package/src/gen/playground/index.ts +0 -3
  57. package/src/gen/playground/queryOptions.gen.ts +0 -86
@@ -683,6 +683,19 @@ export const bindings: BindingsMap = {
683
683
  "path": "/brain/restores/:restoreId",
684
684
  "readOnly": true
685
685
  }
686
+ },
687
+ "usage": {
688
+ "report": {
689
+ "method": "GET",
690
+ "params": [
691
+ {
692
+ "in": "query",
693
+ "name": "days"
694
+ }
695
+ ],
696
+ "path": "/brain/usage/report",
697
+ "readOnly": true
698
+ }
686
699
  }
687
700
  },
688
701
  "consent": {
@@ -3470,422 +3483,6 @@ export const bindings: BindingsMap = {
3470
3483
  }
3471
3484
  }
3472
3485
  },
3473
- "observe": {
3474
- "artifacts": {
3475
- "delete": {
3476
- "method": "DELETE",
3477
- "params": [
3478
- {
3479
- "in": "path",
3480
- "name": "id"
3481
- }
3482
- ],
3483
- "path": "/observe/artifacts/:id",
3484
- "readOnly": false
3485
- },
3486
- "list": {
3487
- "method": "GET",
3488
- "params": [
3489
- {
3490
- "in": "query",
3491
- "name": "debugId"
3492
- },
3493
- {
3494
- "in": "query",
3495
- "name": "limit"
3496
- }
3497
- ],
3498
- "path": "/observe/artifacts",
3499
- "readOnly": true
3500
- },
3501
- "resolve": {
3502
- "method": "GET",
3503
- "params": [
3504
- {
3505
- "in": "path",
3506
- "name": "issueId"
3507
- }
3508
- ],
3509
- "path": "/observe/artifacts/:issueId/resolve",
3510
- "readOnly": true
3511
- }
3512
- },
3513
- "issues": {
3514
- "archive": {
3515
- "method": "POST",
3516
- "params": [
3517
- {
3518
- "in": "path",
3519
- "name": "id"
3520
- }
3521
- ],
3522
- "path": "/observe/issues/:id/archive",
3523
- "readOnly": false
3524
- },
3525
- "assign": {
3526
- "method": "POST",
3527
- "params": [
3528
- {
3529
- "in": "path",
3530
- "name": "id"
3531
- },
3532
- {
3533
- "in": "body",
3534
- "name": "assignee"
3535
- }
3536
- ],
3537
- "path": "/observe/issues/:id/assign",
3538
- "readOnly": false
3539
- },
3540
- "get": {
3541
- "method": "GET",
3542
- "params": [
3543
- {
3544
- "in": "path",
3545
- "name": "id"
3546
- }
3547
- ],
3548
- "path": "/observe/issues/:id",
3549
- "readOnly": true
3550
- },
3551
- "list": {
3552
- "method": "GET",
3553
- "params": [
3554
- {
3555
- "in": "query",
3556
- "name": "status"
3557
- },
3558
- {
3559
- "in": "query",
3560
- "name": "assignee"
3561
- },
3562
- {
3563
- "in": "query",
3564
- "name": "limit"
3565
- }
3566
- ],
3567
- "path": "/observe/issues",
3568
- "readOnly": true
3569
- },
3570
- "resolve": {
3571
- "method": "POST",
3572
- "params": [
3573
- {
3574
- "in": "path",
3575
- "name": "id"
3576
- }
3577
- ],
3578
- "path": "/observe/issues/:id/resolve",
3579
- "readOnly": false
3580
- }
3581
- },
3582
- "keys": {
3583
- "create": {
3584
- "method": "POST",
3585
- "params": [
3586
- {
3587
- "in": "body",
3588
- "name": "environment"
3589
- },
3590
- {
3591
- "in": "body",
3592
- "name": "name"
3593
- },
3594
- {
3595
- "in": "body",
3596
- "name": "kind"
3597
- }
3598
- ],
3599
- "path": "/observe/keys",
3600
- "readOnly": false
3601
- },
3602
- "list": {
3603
- "method": "GET",
3604
- "params": [
3605
- {
3606
- "in": "query",
3607
- "name": "environment"
3608
- }
3609
- ],
3610
- "path": "/observe/keys",
3611
- "readOnly": true
3612
- },
3613
- "revoke": {
3614
- "method": "POST",
3615
- "params": [
3616
- {
3617
- "in": "path",
3618
- "name": "id"
3619
- }
3620
- ],
3621
- "path": "/observe/keys/:id/revoke",
3622
- "readOnly": false
3623
- }
3624
- },
3625
- "logs": {
3626
- "facets": {
3627
- "method": "GET",
3628
- "params": [
3629
- {
3630
- "in": "query",
3631
- "name": "window"
3632
- }
3633
- ],
3634
- "path": "/observe/logs/facets",
3635
- "readOnly": true
3636
- },
3637
- "search": {
3638
- "method": "GET",
3639
- "params": [
3640
- {
3641
- "in": "query",
3642
- "name": "environment"
3643
- },
3644
- {
3645
- "in": "query",
3646
- "name": "service"
3647
- },
3648
- {
3649
- "in": "query",
3650
- "name": "severityIn"
3651
- },
3652
- {
3653
- "in": "query",
3654
- "name": "search"
3655
- },
3656
- {
3657
- "in": "query",
3658
- "name": "traceId"
3659
- },
3660
- {
3661
- "in": "query",
3662
- "name": "q"
3663
- },
3664
- {
3665
- "in": "query",
3666
- "name": "from"
3667
- },
3668
- {
3669
- "in": "query",
3670
- "name": "to"
3671
- },
3672
- {
3673
- "in": "query",
3674
- "name": "limit"
3675
- },
3676
- {
3677
- "in": "query",
3678
- "name": "cursor"
3679
- }
3680
- ],
3681
- "path": "/observe/logs/search",
3682
- "readOnly": true
3683
- },
3684
- "tail": {
3685
- "method": "GET",
3686
- "params": [
3687
- {
3688
- "in": "query",
3689
- "name": "environment"
3690
- },
3691
- {
3692
- "in": "query",
3693
- "name": "service"
3694
- },
3695
- {
3696
- "in": "query",
3697
- "name": "severityIn"
3698
- },
3699
- {
3700
- "in": "query",
3701
- "name": "cursor"
3702
- }
3703
- ],
3704
- "path": "/observe/logs/tail",
3705
- "readOnly": true
3706
- }
3707
- },
3708
- "traces": {
3709
- "get": {
3710
- "method": "GET",
3711
- "params": [
3712
- {
3713
- "in": "path",
3714
- "name": "traceId"
3715
- }
3716
- ],
3717
- "path": "/observe/traces/:traceId",
3718
- "readOnly": true
3719
- },
3720
- "search": {
3721
- "method": "GET",
3722
- "params": [
3723
- {
3724
- "in": "query",
3725
- "name": "environment"
3726
- },
3727
- {
3728
- "in": "query",
3729
- "name": "service"
3730
- },
3731
- {
3732
- "in": "query",
3733
- "name": "name"
3734
- },
3735
- {
3736
- "in": "query",
3737
- "name": "status"
3738
- },
3739
- {
3740
- "in": "query",
3741
- "name": "minDurationMs"
3742
- },
3743
- {
3744
- "in": "query",
3745
- "name": "maxDurationMs"
3746
- },
3747
- {
3748
- "in": "query",
3749
- "name": "traceId"
3750
- },
3751
- {
3752
- "in": "query",
3753
- "name": "from"
3754
- },
3755
- {
3756
- "in": "query",
3757
- "name": "to"
3758
- },
3759
- {
3760
- "in": "query",
3761
- "name": "limit"
3762
- },
3763
- {
3764
- "in": "query",
3765
- "name": "cursor"
3766
- }
3767
- ],
3768
- "path": "/observe/traces/search",
3769
- "readOnly": true
3770
- }
3771
- },
3772
- "webhooks": {
3773
- "create": {
3774
- "method": "POST",
3775
- "params": [
3776
- {
3777
- "in": "body",
3778
- "name": "url"
3779
- },
3780
- {
3781
- "in": "body",
3782
- "name": "description"
3783
- }
3784
- ],
3785
- "path": "/observe/webhooks",
3786
- "readOnly": false
3787
- },
3788
- "delete": {
3789
- "method": "DELETE",
3790
- "params": [
3791
- {
3792
- "in": "path",
3793
- "name": "id"
3794
- }
3795
- ],
3796
- "path": "/observe/webhooks/:id",
3797
- "readOnly": false
3798
- },
3799
- "get": {
3800
- "method": "GET",
3801
- "params": [
3802
- {
3803
- "in": "path",
3804
- "name": "id"
3805
- }
3806
- ],
3807
- "path": "/observe/webhooks/:id",
3808
- "readOnly": true
3809
- },
3810
- "list": {
3811
- "method": "GET",
3812
- "path": "/observe/webhooks",
3813
- "readOnly": true
3814
- },
3815
- "redeliver": {
3816
- "method": "POST",
3817
- "params": [
3818
- {
3819
- "in": "path",
3820
- "name": "id"
3821
- }
3822
- ],
3823
- "path": "/observe/webhooks/deliveries/:id/redeliver",
3824
- "readOnly": false
3825
- },
3826
- "update": {
3827
- "method": "PATCH",
3828
- "params": [
3829
- {
3830
- "in": "path",
3831
- "name": "id"
3832
- },
3833
- {
3834
- "in": "body",
3835
- "name": "url"
3836
- },
3837
- {
3838
- "in": "body",
3839
- "name": "active"
3840
- },
3841
- {
3842
- "in": "body",
3843
- "name": "description"
3844
- }
3845
- ],
3846
- "path": "/observe/webhooks/:id",
3847
- "readOnly": false
3848
- }
3849
- },
3850
- "webhooks-deliveries": {
3851
- "list": {
3852
- "method": "GET",
3853
- "params": [
3854
- {
3855
- "in": "query",
3856
- "name": "webhookId"
3857
- },
3858
- {
3859
- "in": "query",
3860
- "name": "status"
3861
- },
3862
- {
3863
- "in": "query",
3864
- "name": "limit"
3865
- },
3866
- {
3867
- "in": "query",
3868
- "name": "offset"
3869
- }
3870
- ],
3871
- "path": "/observe/webhooks/deliveries",
3872
- "readOnly": true
3873
- }
3874
- },
3875
- "webhooks-rotate": {
3876
- "secret": {
3877
- "method": "POST",
3878
- "params": [
3879
- {
3880
- "in": "path",
3881
- "name": "id"
3882
- }
3883
- ],
3884
- "path": "/observe/webhooks/:id/rotate-secret",
3885
- "readOnly": false
3886
- }
3887
- }
3888
- },
3889
3486
  "organization": {
3890
3487
  "$root": {
3891
3488
  "create": {
@@ -4907,110 +4504,6 @@ export const bindings: BindingsMap = {
4907
4504
  }
4908
4505
  }
4909
4506
  },
4910
- "playground": {
4911
- "analytics": {
4912
- "overview": {
4913
- "method": "POST",
4914
- "params": [
4915
- {
4916
- "in": "body",
4917
- "name": "limit"
4918
- }
4919
- ],
4920
- "path": "/playground/analytics/overview",
4921
- "readOnly": true
4922
- }
4923
- },
4924
- "billing": {
4925
- "entitlements": {
4926
- "method": "POST",
4927
- "path": "/playground/billing/entitlements",
4928
- "readOnly": true
4929
- },
4930
- "record-usage": {
4931
- "method": "POST",
4932
- "params": [
4933
- {
4934
- "in": "body",
4935
- "name": "value"
4936
- }
4937
- ],
4938
- "path": "/playground/billing/usage",
4939
- "readOnly": false
4940
- }
4941
- },
4942
- "clickup": {
4943
- "create-task": {
4944
- "method": "POST",
4945
- "params": [
4946
- {
4947
- "in": "body",
4948
- "name": "listId"
4949
- },
4950
- {
4951
- "in": "body",
4952
- "name": "name"
4953
- }
4954
- ],
4955
- "path": "/playground/clickup/tasks",
4956
- "readOnly": false
4957
- },
4958
- "get-last-webhook": {
4959
- "method": "GET",
4960
- "path": "/playground/clickup/webhooks/last",
4961
- "readOnly": true
4962
- },
4963
- "get-overview": {
4964
- "method": "GET",
4965
- "path": "/playground/clickup/overview",
4966
- "readOnly": true
4967
- }
4968
- },
4969
- "gdrive": {
4970
- "get-last-change": {
4971
- "method": "GET",
4972
- "path": "/playground/gdrive/changes/last",
4973
- "readOnly": true
4974
- },
4975
- "read-file": {
4976
- "method": "POST",
4977
- "params": [
4978
- {
4979
- "in": "body",
4980
- "name": "fileId"
4981
- }
4982
- ],
4983
- "path": "/playground/gdrive/file",
4984
- "readOnly": true
4985
- }
4986
- },
4987
- "googleads": {
4988
- "read-customer": {
4989
- "method": "POST",
4990
- "path": "/playground/googleads/customer",
4991
- "readOnly": true
4992
- }
4993
- },
4994
- "lifecycle": {
4995
- "get-state": {
4996
- "method": "GET",
4997
- "path": "/playground/lifecycle/state",
4998
- "readOnly": true
4999
- },
5000
- "list-events": {
5001
- "method": "GET",
5002
- "path": "/playground/lifecycle/events",
5003
- "readOnly": true
5004
- }
5005
- },
5006
- "webhook": {
5007
- "get-last": {
5008
- "method": "GET",
5009
- "path": "/playground/webhooks/last",
5010
- "readOnly": true
5011
- }
5012
- }
5013
- },
5014
4507
  "realtime": {
5015
4508
  "archive": {
5016
4509
  "export": {
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { BrainBackupCreateInput, BrainBackupCreateOutput, BrainBackupRestoreInput, BrainBackupRestoreOutput, BrainBackupStatusInput, BrainBackupStatusOutput, BrainBackupsListInput, BrainBackupsListOutput, BrainClickupChannelsListInput, BrainClickupChannelsListOutput, BrainClickupConnectionsListInput, BrainClickupConnectionsListOutput, BrainClickupListsListInput, BrainClickupListsListOutput, BrainClickupSpacesListInput, BrainClickupSpacesListOutput, BrainCognitionDigestInput, BrainCognitionDigestOutput, BrainCognitionStatusInput, BrainCognitionStatusOutput, BrainCognitionSweepInput, BrainCognitionSweepOutput, BrainConnectorBranchesListInput, BrainConnectorBranchesListOutput, BrainConnectorConnectionsListInput, BrainConnectorConnectionsListOutput, BrainConnectorReposListInput, BrainConnectorReposListOutput, BrainDaemonBatchStatusInput, BrainDaemonBatchStatusOutput, BrainDaemonCreateInput, BrainDaemonCreateOutput, BrainDaemonGetInput, BrainDaemonGetOutput, BrainDaemonReingestInput, BrainDaemonReingestOutput, BrainDaemonRemoveInput, BrainDaemonRemoveOutput, BrainDaemonRunInput, BrainDaemonRunItemsInput, BrainDaemonRunItemsOutput, BrainDaemonRunOutput, BrainDaemonRunsInput, BrainDaemonRunsOutput, BrainDaemonStatusInput, BrainDaemonStatusOutput, BrainDaemonUpdateInput, BrainDaemonUpdateOutput, BrainDaemonsListInput, BrainDaemonsListOutput, BrainGdriveConnectionsListInput, BrainGdriveConnectionsListOutput, BrainKnowledgeEntityMemoriesInput, BrainKnowledgeEntityMemoriesOutput, BrainKnowledgeGraphInput, BrainKnowledgeGraphOutput, BrainKnowledgeNeighborhoodInput, BrainKnowledgeNeighborhoodOutput, BrainKnowledgeRelationsInput, BrainKnowledgeRelationsOutput, BrainKnowledgeSearchInput, BrainKnowledgeSearchOutput, BrainMemoryAddInput, BrainMemoryAddOutput, BrainMemoryDeleteInput, BrainMemoryDeleteOutput, BrainMemoryGetInput, BrainMemoryGetOutput, BrainMemoryListInput, BrainMemoryListOutput, BrainMemorySearchInput, BrainMemorySearchOutput, BrainMemoryStatsInput, BrainMemoryStatsOutput, BrainMemoryUpdateInput, BrainMemoryUpdateOutput, BrainProductSharedMemoryResetInput, BrainProductSharedMemoryResetOutput, BrainRestoreStatusInput, BrainRestoreStatusOutput } from '../types.gen';
3
+ export type { BrainBackupCreateInput, BrainBackupCreateOutput, BrainBackupRestoreInput, BrainBackupRestoreOutput, BrainBackupStatusInput, BrainBackupStatusOutput, BrainBackupsListInput, BrainBackupsListOutput, BrainClickupChannelsListInput, BrainClickupChannelsListOutput, BrainClickupConnectionsListInput, BrainClickupConnectionsListOutput, BrainClickupListsListInput, BrainClickupListsListOutput, BrainClickupSpacesListInput, BrainClickupSpacesListOutput, BrainCognitionDigestInput, BrainCognitionDigestOutput, BrainCognitionStatusInput, BrainCognitionStatusOutput, BrainCognitionSweepInput, BrainCognitionSweepOutput, BrainConnectorBranchesListInput, BrainConnectorBranchesListOutput, BrainConnectorConnectionsListInput, BrainConnectorConnectionsListOutput, BrainConnectorReposListInput, BrainConnectorReposListOutput, BrainDaemonBatchStatusInput, BrainDaemonBatchStatusOutput, BrainDaemonCreateInput, BrainDaemonCreateOutput, BrainDaemonGetInput, BrainDaemonGetOutput, BrainDaemonReingestInput, BrainDaemonReingestOutput, BrainDaemonRemoveInput, BrainDaemonRemoveOutput, BrainDaemonRunInput, BrainDaemonRunItemsInput, BrainDaemonRunItemsOutput, BrainDaemonRunOutput, BrainDaemonRunsInput, BrainDaemonRunsOutput, BrainDaemonStatusInput, BrainDaemonStatusOutput, BrainDaemonUpdateInput, BrainDaemonUpdateOutput, BrainDaemonsListInput, BrainDaemonsListOutput, BrainGdriveConnectionsListInput, BrainGdriveConnectionsListOutput, BrainKnowledgeEntityMemoriesInput, BrainKnowledgeEntityMemoriesOutput, BrainKnowledgeGraphInput, BrainKnowledgeGraphOutput, BrainKnowledgeNeighborhoodInput, BrainKnowledgeNeighborhoodOutput, BrainKnowledgeRelationsInput, BrainKnowledgeRelationsOutput, BrainKnowledgeSearchInput, BrainKnowledgeSearchOutput, BrainMemoryAddInput, BrainMemoryAddOutput, BrainMemoryDeleteInput, BrainMemoryDeleteOutput, BrainMemoryGetInput, BrainMemoryGetOutput, BrainMemoryListInput, BrainMemoryListOutput, BrainMemorySearchInput, BrainMemorySearchOutput, BrainMemoryStatsInput, BrainMemoryStatsOutput, BrainMemoryUpdateInput, BrainMemoryUpdateOutput, BrainProductSharedMemoryResetInput, BrainProductSharedMemoryResetOutput, BrainRestoreStatusInput, BrainRestoreStatusOutput, BrainUsageReportInput, BrainUsageReportOutput } from '../types.gen';
@@ -68,6 +68,8 @@ import type {
68
68
  BrainProductSharedMemoryResetInput,
69
69
  BrainRestoreStatusInput,
70
70
  BrainRestoreStatusOutput,
71
+ BrainUsageReportInput,
72
+ BrainUsageReportOutput,
71
73
  } from '../types.gen';
72
74
 
73
75
  export const brainBackupCreateMutationOptions = (sdk: GeneratedClient) => ({
@@ -269,3 +271,8 @@ export const brainRestoreStatusQueryOptions = (sdk: GeneratedClient, input: Brai
269
271
  queryKey: ['brain', 'restore', 'status', input] as const,
270
272
  queryFn: () => sdk['brain']['restore']['status'](input),
271
273
  });
274
+
275
+ export const brainUsageReportQueryOptions = (sdk: GeneratedClient, input: BrainUsageReportInput) => ({
276
+ queryKey: ['brain', 'usage', 'report', input] as const,
277
+ queryFn: () => sdk['brain']['usage']['report'](input),
278
+ });