@lessly/sdk-app 32.1.0 → 32.1.2

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 (66) hide show
  1. package/README.md +1 -1
  2. package/dist/analytics/index.d.cts +1 -1
  3. package/dist/analytics/index.d.ts +1 -1
  4. package/dist/brain/index.cjs +5 -0
  5. package/dist/brain/index.cjs.map +1 -1
  6. package/dist/brain/index.d.cts +6 -2
  7. package/dist/brain/index.d.ts +6 -2
  8. package/dist/brain/index.js +5 -1
  9. package/dist/brain/index.js.map +1 -1
  10. package/dist/{client.gen-BaBUJ3xx.d.cts → client.gen-p_iZK5OO.d.cts} +255 -1274
  11. package/dist/{client.gen-BaBUJ3xx.d.ts → client.gen-p_iZK5OO.d.ts} +255 -1274
  12. package/dist/consent/index.d.cts +1 -1
  13. package/dist/consent/index.d.ts +1 -1
  14. package/dist/deployment/index.d.cts +1 -1
  15. package/dist/deployment/index.d.ts +1 -1
  16. package/dist/index.cjs +70 -411
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +6 -1
  19. package/dist/index.d.ts +6 -1
  20. package/dist/index.js +70 -411
  21. package/dist/index.js.map +1 -1
  22. package/dist/mail/index.d.cts +2 -2
  23. package/dist/mail/index.d.ts +2 -2
  24. package/dist/organization/index.cjs +18 -33
  25. package/dist/organization/index.cjs.map +1 -1
  26. package/dist/organization/index.d.cts +15 -27
  27. package/dist/organization/index.d.ts +15 -27
  28. package/dist/organization/index.js +15 -27
  29. package/dist/organization/index.js.map +1 -1
  30. package/dist/realtime/index.d.cts +1 -1
  31. package/dist/realtime/index.d.ts +1 -1
  32. package/dist/support/index.d.cts +1 -1
  33. package/dist/support/index.d.ts +1 -1
  34. package/dist/tracking/index.d.cts +1 -1
  35. package/dist/tracking/index.d.ts +1 -1
  36. package/dist/users/index.d.cts +1 -1
  37. package/dist/users/index.d.ts +1 -1
  38. package/dist/waitlist/index.d.cts +1 -1
  39. package/dist/waitlist/index.d.ts +1 -1
  40. package/docs/recipes/local-dev.md +4 -0
  41. package/docs/recipes/sdk-usage.md +20 -0
  42. package/package.json +2 -12
  43. package/src/gen/bindings.gen.ts +51 -410
  44. package/src/gen/brain/index.ts +1 -1
  45. package/src/gen/brain/queryOptions.gen.ts +7 -0
  46. package/src/gen/client.gen.ts +17 -126
  47. package/src/gen/manifest.gen.ts +1 -1
  48. package/src/gen/organization/index.ts +1 -1
  49. package/src/gen/organization/queryOptions.gen.ts +21 -41
  50. package/src/gen/types.gen.ts +246 -1273
  51. package/dist/observe/index.cjs +0 -71
  52. package/dist/observe/index.cjs.map +0 -1
  53. package/dist/observe/index.d.cts +0 -56
  54. package/dist/observe/index.d.ts +0 -56
  55. package/dist/observe/index.js +0 -57
  56. package/dist/observe/index.js.map +0 -1
  57. package/dist/playground/index.cjs +0 -66
  58. package/dist/playground/index.cjs.map +0 -1
  59. package/dist/playground/index.d.cts +0 -52
  60. package/dist/playground/index.d.ts +0 -52
  61. package/dist/playground/index.js +0 -53
  62. package/dist/playground/index.js.map +0 -1
  63. package/src/gen/observe/index.ts +0 -3
  64. package/src/gen/observe/queryOptions.gen.ts +0 -89
  65. package/src/gen/playground/index.ts +0 -3
  66. package/src/gen/playground/queryOptions.gen.ts +0 -86
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, n6 as WaitlistConfigGetInput, n7 as WaitlistConfigGetOutput, n8 as WaitlistConfigUpsertInput, n9 as WaitlistConfigUpsertOutput, na as WaitlistEmbedGetInput, nb as WaitlistEmbedGetOutput, nc as WaitlistInvitesSendInput, nd as WaitlistInvitesSendOutput, ne as WaitlistSignupsEraseInput, nf as WaitlistSignupsEraseOutput, ng as WaitlistSignupsFunnelInput, nh as WaitlistSignupsFunnelOutput, ni as WaitlistSignupsListInput, nj as WaitlistSignupsListOutput } from '../client.gen-BaBUJ3xx.cjs';
1
+ import { G as GeneratedClient, mg as WaitlistConfigGetInput, mh as WaitlistConfigGetOutput, mi as WaitlistConfigUpsertInput, mj as WaitlistConfigUpsertOutput, mk as WaitlistEmbedGetInput, ml as WaitlistEmbedGetOutput, mm as WaitlistInvitesSendInput, mn as WaitlistInvitesSendOutput, mo as WaitlistSignupsEraseInput, mp as WaitlistSignupsEraseOutput, mq as WaitlistSignupsFunnelInput, mr as WaitlistSignupsFunnelOutput, ms as WaitlistSignupsListInput, mt as WaitlistSignupsListOutput } from '../client.gen-p_iZK5OO.cjs';
2
2
 
3
3
  declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
4
4
  queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
@@ -1,4 +1,4 @@
1
- import { G as GeneratedClient, n6 as WaitlistConfigGetInput, n7 as WaitlistConfigGetOutput, n8 as WaitlistConfigUpsertInput, n9 as WaitlistConfigUpsertOutput, na as WaitlistEmbedGetInput, nb as WaitlistEmbedGetOutput, nc as WaitlistInvitesSendInput, nd as WaitlistInvitesSendOutput, ne as WaitlistSignupsEraseInput, nf as WaitlistSignupsEraseOutput, ng as WaitlistSignupsFunnelInput, nh as WaitlistSignupsFunnelOutput, ni as WaitlistSignupsListInput, nj as WaitlistSignupsListOutput } from '../client.gen-BaBUJ3xx.js';
1
+ import { G as GeneratedClient, mg as WaitlistConfigGetInput, mh as WaitlistConfigGetOutput, mi as WaitlistConfigUpsertInput, mj as WaitlistConfigUpsertOutput, mk as WaitlistEmbedGetInput, ml as WaitlistEmbedGetOutput, mm as WaitlistInvitesSendInput, mn as WaitlistInvitesSendOutput, mo as WaitlistSignupsEraseInput, mp as WaitlistSignupsEraseOutput, mq as WaitlistSignupsFunnelInput, mr as WaitlistSignupsFunnelOutput, ms as WaitlistSignupsListInput, mt as WaitlistSignupsListOutput } from '../client.gen-p_iZK5OO.js';
2
2
 
3
3
  declare const waitlistConfigGetQueryOptions: (sdk: GeneratedClient, input: WaitlistConfigGetInput) => {
4
4
  queryKey: readonly ["waitlist", "config", "get", WaitlistConfigGetInput];
@@ -23,6 +23,10 @@ forwarded through a bearer proxy at exactly this path:
23
23
  proxies through `/lessly-api`, so your SDK client just talks to that path in
24
24
  dev — it never sees or handles the token itself.
25
25
 
26
+ So in dev you pass `baseUrl: '/lessly-api'` — a page-relative `baseUrl` is
27
+ supported and resolved against the current document (browser-only); see
28
+ `recipes/sdk-usage.md`.
29
+
26
30
  ### Device-code login
27
31
 
28
32
  The first time you run `pnpm dev` (or once your local session expires),
@@ -26,6 +26,26 @@ await sdk.organization.product.create({ name: 'Acme' });
26
26
  > [Namespaces and subpath imports](#namespaces-and-subpath-imports). The calls
27
27
  > above use `organization`; substitute the namespace/resource you need.
28
28
 
29
+ ### `baseUrl`: absolute or page-relative
30
+
31
+ `baseUrl` may be either form:
32
+
33
+ - **Absolute** — `'https://api.lessly.dev'`. Works anywhere, including SSR and
34
+ tests.
35
+ - **Page-relative** — `'/lessly-api'`, the path `pnpm dev` proxies through
36
+ (see `recipes/local-dev.md`). It is resolved against the current document via
37
+ `globalThis.location`, so it is **browser-only**: outside a browser the SDK
38
+ throws a named error (`@lessly/sdk-app: relative baseUrl "/lessly-api" cannot
39
+ be resolved outside a browser`) instead of an opaque `Invalid URL`. Tests and
40
+ SSR must pass an absolute base.
41
+
42
+ ```ts
43
+ const sdk = createLesslyApp({
44
+ baseUrl: import.meta.env.DEV ? '/lessly-api' : 'https://api.lessly.dev',
45
+ productId: 'prod_123',
46
+ });
47
+ ```
48
+
29
49
  `productId` is the active product — read it from your `./App` props or the
30
50
  `X-Product-Id` header (see APP-005), never decoded from a token.
31
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
- "version": "32.1.0",
3
+ "version": "32.1.2",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -65,21 +65,11 @@
65
65
  "import": "./dist/mail/index.js",
66
66
  "require": "./dist/mail/index.cjs"
67
67
  },
68
- "./observe": {
69
- "types": "./dist/observe/index.d.ts",
70
- "import": "./dist/observe/index.js",
71
- "require": "./dist/observe/index.cjs"
72
- },
73
68
  "./organization": {
74
69
  "types": "./dist/organization/index.d.ts",
75
70
  "import": "./dist/organization/index.js",
76
71
  "require": "./dist/organization/index.cjs"
77
72
  },
78
- "./playground": {
79
- "types": "./dist/playground/index.d.ts",
80
- "import": "./dist/playground/index.js",
81
- "require": "./dist/playground/index.cjs"
82
- },
83
73
  "./realtime": {
84
74
  "types": "./dist/realtime/index.d.ts",
85
75
  "import": "./dist/realtime/index.js",
@@ -106,5 +96,5 @@
106
96
  "require": "./dist/waitlist/index.cjs"
107
97
  }
108
98
  },
109
- "sdkContentHash": "sha256:3f0a5eccbd8603bf8493a911e03ac5122eba6b06e5d27fd4ffc4ba8a097663af"
99
+ "sdkContentHash": "sha256:8d1afa88468b8c3942c5aff49bba34becc17e463b9c66612082158bc457e37fd"
110
100
  }
@@ -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,227 +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
- "search": {
3627
- "method": "GET",
3628
- "params": [
3629
- {
3630
- "in": "query",
3631
- "name": "environment"
3632
- },
3633
- {
3634
- "in": "query",
3635
- "name": "service"
3636
- },
3637
- {
3638
- "in": "query",
3639
- "name": "severityIn"
3640
- },
3641
- {
3642
- "in": "query",
3643
- "name": "search"
3644
- },
3645
- {
3646
- "in": "query",
3647
- "name": "traceId"
3648
- },
3649
- {
3650
- "in": "query",
3651
- "name": "from"
3652
- },
3653
- {
3654
- "in": "query",
3655
- "name": "to"
3656
- },
3657
- {
3658
- "in": "query",
3659
- "name": "limit"
3660
- },
3661
- {
3662
- "in": "query",
3663
- "name": "cursor"
3664
- }
3665
- ],
3666
- "path": "/observe/logs/search",
3667
- "readOnly": true
3668
- },
3669
- "tail": {
3670
- "method": "GET",
3671
- "params": [
3672
- {
3673
- "in": "query",
3674
- "name": "environment"
3675
- },
3676
- {
3677
- "in": "query",
3678
- "name": "service"
3679
- },
3680
- {
3681
- "in": "query",
3682
- "name": "severityIn"
3683
- },
3684
- {
3685
- "in": "query",
3686
- "name": "cursor"
3687
- }
3688
- ],
3689
- "path": "/observe/logs/tail",
3690
- "readOnly": true
3691
- }
3692
- }
3693
- },
3694
3486
  "organization": {
3695
3487
  "$root": {
3696
3488
  "create": {
@@ -4344,6 +4136,17 @@ export const bindings: BindingsMap = {
4344
4136
  }
4345
4137
  },
4346
4138
  "product": {
4139
+ "accept-invitation": {
4140
+ "method": "POST",
4141
+ "params": [
4142
+ {
4143
+ "in": "path",
4144
+ "name": "token"
4145
+ }
4146
+ ],
4147
+ "path": "/governance/api/v1/invitations/:token/accept",
4148
+ "readOnly": false
4149
+ },
4347
4150
  "create": {
4348
4151
  "method": "POST",
4349
4152
  "params": [
@@ -4363,6 +4166,25 @@ export const bindings: BindingsMap = {
4363
4166
  "path": "/governance/api/v1/products",
4364
4167
  "readOnly": false
4365
4168
  },
4169
+ "invite": {
4170
+ "method": "POST",
4171
+ "params": [
4172
+ {
4173
+ "in": "path",
4174
+ "name": "productId"
4175
+ },
4176
+ {
4177
+ "in": "body",
4178
+ "name": "email"
4179
+ },
4180
+ {
4181
+ "in": "body",
4182
+ "name": "role"
4183
+ }
4184
+ ],
4185
+ "path": "/governance/api/v1/products/:productId/invitations",
4186
+ "readOnly": false
4187
+ },
4366
4188
  "list": {
4367
4189
  "method": "GET",
4368
4190
  "params": [
@@ -4374,7 +4196,7 @@ export const bindings: BindingsMap = {
4374
4196
  "path": "/governance/api/v1/products",
4375
4197
  "readOnly": true
4376
4198
  },
4377
- "list-access": {
4199
+ "list-invitations": {
4378
4200
  "method": "GET",
4379
4201
  "params": [
4380
4202
  {
@@ -4382,7 +4204,7 @@ export const bindings: BindingsMap = {
4382
4204
  "name": "productId"
4383
4205
  }
4384
4206
  ],
4385
- "path": "/governance/api/v1/products/:productId/access",
4207
+ "path": "/governance/api/v1/products/:productId/invitations",
4386
4208
  "readOnly": true
4387
4209
  },
4388
4210
  "list-members": {
@@ -4407,19 +4229,19 @@ export const bindings: BindingsMap = {
4407
4229
  "path": "/governance/api/v1/products/:productId/roles",
4408
4230
  "readOnly": true
4409
4231
  },
4410
- "revoke-access": {
4411
- "method": "DELETE",
4232
+ "revoke-invitation": {
4233
+ "method": "POST",
4412
4234
  "params": [
4413
4235
  {
4414
- "in": "path",
4236
+ "in": "body",
4415
4237
  "name": "productId"
4416
4238
  },
4417
4239
  {
4418
- "in": "path",
4419
- "name": "userId"
4240
+ "in": "body",
4241
+ "name": "invitationId"
4420
4242
  }
4421
4243
  ],
4422
- "path": "/governance/api/v1/products/:productId/access/:userId",
4244
+ "path": "/governance/api/v1/products/revoke-invitation",
4423
4245
  "readOnly": false
4424
4246
  },
4425
4247
  "select": {
@@ -4433,29 +4255,6 @@ export const bindings: BindingsMap = {
4433
4255
  "path": "/governance/api/v1/products/select",
4434
4256
  "readOnly": false
4435
4257
  },
4436
- "set-access": {
4437
- "method": "PUT",
4438
- "params": [
4439
- {
4440
- "in": "path",
4441
- "name": "productId"
4442
- },
4443
- {
4444
- "in": "path",
4445
- "name": "userId"
4446
- },
4447
- {
4448
- "in": "body",
4449
- "name": "role"
4450
- },
4451
- {
4452
- "in": "body",
4453
- "name": "roleId"
4454
- }
4455
- ],
4456
- "path": "/governance/api/v1/products/:productId/access/:userId",
4457
- "readOnly": false
4458
- },
4459
4258
  "update": {
4460
4259
  "method": "PATCH",
4461
4260
  "params": [
@@ -4466,10 +4265,6 @@ export const bindings: BindingsMap = {
4466
4265
  {
4467
4266
  "in": "body",
4468
4267
  "name": "name"
4469
- },
4470
- {
4471
- "in": "body",
4472
- "name": "description"
4473
4268
  }
4474
4269
  ],
4475
4270
  "path": "/governance/api/v1/products/:productId",
@@ -4660,160 +4455,6 @@ export const bindings: BindingsMap = {
4660
4455
  "path": "/governance/api/v1/organizations/:organizationId/security/mfa/enable",
4661
4456
  "readOnly": false
4662
4457
  }
4663
- },
4664
- "support-thread": {
4665
- "create": {
4666
- "method": "POST",
4667
- "params": [
4668
- {
4669
- "in": "body",
4670
- "name": "title"
4671
- },
4672
- {
4673
- "in": "body",
4674
- "name": "body"
4675
- }
4676
- ],
4677
- "path": "/governance/api/v1/support/threads",
4678
- "readOnly": false
4679
- },
4680
- "get": {
4681
- "method": "GET",
4682
- "params": [
4683
- {
4684
- "in": "path",
4685
- "name": "id"
4686
- }
4687
- ],
4688
- "path": "/governance/api/v1/support/threads/:id",
4689
- "readOnly": true
4690
- },
4691
- "reply": {
4692
- "method": "POST",
4693
- "params": [
4694
- {
4695
- "in": "path",
4696
- "name": "id"
4697
- },
4698
- {
4699
- "in": "body",
4700
- "name": "body"
4701
- }
4702
- ],
4703
- "path": "/governance/api/v1/support/threads/:id/messages",
4704
- "readOnly": false
4705
- }
4706
- },
4707
- "support-threads": {
4708
- "list": {
4709
- "method": "GET",
4710
- "path": "/governance/api/v1/support/threads",
4711
- "readOnly": true
4712
- }
4713
- }
4714
- },
4715
- "playground": {
4716
- "analytics": {
4717
- "overview": {
4718
- "method": "POST",
4719
- "params": [
4720
- {
4721
- "in": "body",
4722
- "name": "limit"
4723
- }
4724
- ],
4725
- "path": "/playground/analytics/overview",
4726
- "readOnly": true
4727
- }
4728
- },
4729
- "billing": {
4730
- "entitlements": {
4731
- "method": "POST",
4732
- "path": "/playground/billing/entitlements",
4733
- "readOnly": true
4734
- },
4735
- "record-usage": {
4736
- "method": "POST",
4737
- "params": [
4738
- {
4739
- "in": "body",
4740
- "name": "value"
4741
- }
4742
- ],
4743
- "path": "/playground/billing/usage",
4744
- "readOnly": false
4745
- }
4746
- },
4747
- "clickup": {
4748
- "create-task": {
4749
- "method": "POST",
4750
- "params": [
4751
- {
4752
- "in": "body",
4753
- "name": "listId"
4754
- },
4755
- {
4756
- "in": "body",
4757
- "name": "name"
4758
- }
4759
- ],
4760
- "path": "/playground/clickup/tasks",
4761
- "readOnly": false
4762
- },
4763
- "get-last-webhook": {
4764
- "method": "GET",
4765
- "path": "/playground/clickup/webhooks/last",
4766
- "readOnly": true
4767
- },
4768
- "get-overview": {
4769
- "method": "GET",
4770
- "path": "/playground/clickup/overview",
4771
- "readOnly": true
4772
- }
4773
- },
4774
- "gdrive": {
4775
- "get-last-change": {
4776
- "method": "GET",
4777
- "path": "/playground/gdrive/changes/last",
4778
- "readOnly": true
4779
- },
4780
- "read-file": {
4781
- "method": "POST",
4782
- "params": [
4783
- {
4784
- "in": "body",
4785
- "name": "fileId"
4786
- }
4787
- ],
4788
- "path": "/playground/gdrive/file",
4789
- "readOnly": true
4790
- }
4791
- },
4792
- "googleads": {
4793
- "read-customer": {
4794
- "method": "POST",
4795
- "path": "/playground/googleads/customer",
4796
- "readOnly": true
4797
- }
4798
- },
4799
- "lifecycle": {
4800
- "get-state": {
4801
- "method": "GET",
4802
- "path": "/playground/lifecycle/state",
4803
- "readOnly": true
4804
- },
4805
- "list-events": {
4806
- "method": "GET",
4807
- "path": "/playground/lifecycle/events",
4808
- "readOnly": true
4809
- }
4810
- },
4811
- "webhook": {
4812
- "get-last": {
4813
- "method": "GET",
4814
- "path": "/playground/webhooks/last",
4815
- "readOnly": true
4816
- }
4817
4458
  }
4818
4459
  },
4819
4460
  "realtime": {
@@ -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
+ });