@lessly/sdk-app 9.2.0 → 11.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 (38) 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.d.cts +1 -1
  4. package/dist/brain/index.d.ts +1 -1
  5. package/dist/{client.gen-BLMudoVx.d.cts → client.gen-BfMz1akk.d.cts} +455 -2
  6. package/dist/{client.gen-BLMudoVx.d.ts → client.gen-BfMz1akk.d.ts} +455 -2
  7. package/dist/consent/index.d.cts +1 -1
  8. package/dist/consent/index.d.ts +1 -1
  9. package/dist/deployment/index.d.cts +1 -1
  10. package/dist/deployment/index.d.ts +1 -1
  11. package/dist/index.cjs +198 -0
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +198 -0
  16. package/dist/index.js.map +1 -1
  17. package/dist/mail/index.d.cts +2 -2
  18. package/dist/mail/index.d.ts +2 -2
  19. package/dist/organization/index.d.cts +1 -1
  20. package/dist/organization/index.d.ts +1 -1
  21. package/dist/playground/index.d.cts +1 -1
  22. package/dist/playground/index.d.ts +1 -1
  23. package/dist/realtime/index.cjs +60 -0
  24. package/dist/realtime/index.cjs.map +1 -1
  25. package/dist/realtime/index.d.cts +50 -2
  26. package/dist/realtime/index.d.ts +50 -2
  27. package/dist/realtime/index.js +49 -1
  28. package/dist/realtime/index.js.map +1 -1
  29. package/dist/tracking/index.d.cts +1 -1
  30. package/dist/tracking/index.d.ts +1 -1
  31. package/dist/waitlist/index.d.cts +1 -1
  32. package/dist/waitlist/index.d.ts +1 -1
  33. package/package.json +2 -2
  34. package/src/gen/bindings.gen.ts +198 -0
  35. package/src/gen/client.gen.ts +44 -0
  36. package/src/gen/realtime/index.ts +1 -1
  37. package/src/gen/realtime/queryOptions.gen.ts +77 -0
  38. package/src/gen/types.gen.ts +459 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
- "version": "9.2.0",
3
+ "version": "11.0.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "engines": {
@@ -90,5 +90,5 @@
90
90
  "require": "./dist/waitlist/index.cjs"
91
91
  }
92
92
  },
93
- "sdkContentHash": "sha256:a472b6604ec4bbbc688fa982f46b58f479f0beae92a317ae9e2d8f79c3fe9cd7"
93
+ "sdkContentHash": "sha256:17e8b3697dfe20bb4baa640adf91a4d8038f5758cf8846ff869ce25ee8bfa11d"
94
94
  }
@@ -4426,6 +4426,10 @@ export const bindings: BindingsMap = {
4426
4426
  {
4427
4427
  "in": "body",
4428
4428
  "name": "identifiedOnly"
4429
+ },
4430
+ {
4431
+ "in": "body",
4432
+ "name": "subscribeProxyUrl"
4429
4433
  }
4430
4434
  ],
4431
4435
  "path": "/realtime/namespaces",
@@ -4492,12 +4496,101 @@ export const bindings: BindingsMap = {
4492
4496
  {
4493
4497
  "in": "body",
4494
4498
  "name": "identifiedOnly"
4499
+ },
4500
+ {
4501
+ "in": "body",
4502
+ "name": "subscribeProxyUrl"
4495
4503
  }
4496
4504
  ],
4497
4505
  "path": "/realtime/namespaces/:name",
4498
4506
  "readOnly": false
4499
4507
  }
4500
4508
  },
4509
+ "presence": {
4510
+ "enter": {
4511
+ "method": "POST",
4512
+ "params": [
4513
+ {
4514
+ "in": "body",
4515
+ "name": "channel"
4516
+ },
4517
+ {
4518
+ "in": "body",
4519
+ "name": "info"
4520
+ },
4521
+ {
4522
+ "in": "body",
4523
+ "name": "ttl_seconds"
4524
+ },
4525
+ {
4526
+ "in": "body",
4527
+ "name": "member_id"
4528
+ }
4529
+ ],
4530
+ "path": "/realtime/presence/enter",
4531
+ "readOnly": false
4532
+ },
4533
+ "get": {
4534
+ "method": "GET",
4535
+ "params": [
4536
+ {
4537
+ "in": "query",
4538
+ "name": "channel"
4539
+ }
4540
+ ],
4541
+ "path": "/realtime/presence",
4542
+ "readOnly": true
4543
+ },
4544
+ "leave": {
4545
+ "method": "POST",
4546
+ "params": [
4547
+ {
4548
+ "in": "body",
4549
+ "name": "channel"
4550
+ },
4551
+ {
4552
+ "in": "body",
4553
+ "name": "member_id"
4554
+ }
4555
+ ],
4556
+ "path": "/realtime/presence/leave",
4557
+ "readOnly": false
4558
+ },
4559
+ "stats": {
4560
+ "method": "GET",
4561
+ "params": [
4562
+ {
4563
+ "in": "query",
4564
+ "name": "channel"
4565
+ }
4566
+ ],
4567
+ "path": "/realtime/presence/stats",
4568
+ "readOnly": true
4569
+ },
4570
+ "update": {
4571
+ "method": "POST",
4572
+ "params": [
4573
+ {
4574
+ "in": "body",
4575
+ "name": "channel"
4576
+ },
4577
+ {
4578
+ "in": "body",
4579
+ "name": "info"
4580
+ },
4581
+ {
4582
+ "in": "body",
4583
+ "name": "ttl_seconds"
4584
+ },
4585
+ {
4586
+ "in": "body",
4587
+ "name": "member_id"
4588
+ }
4589
+ ],
4590
+ "path": "/realtime/presence/update",
4591
+ "readOnly": false
4592
+ }
4593
+ },
4501
4594
  "status": {
4502
4595
  "get": {
4503
4596
  "method": "GET",
@@ -4517,6 +4610,111 @@ export const bindings: BindingsMap = {
4517
4610
  "path": "/realtime/tokens",
4518
4611
  "readOnly": false
4519
4612
  }
4613
+ },
4614
+ "webhook": {
4615
+ "create": {
4616
+ "method": "POST",
4617
+ "params": [
4618
+ {
4619
+ "in": "body",
4620
+ "name": "url"
4621
+ },
4622
+ {
4623
+ "in": "body",
4624
+ "name": "events"
4625
+ },
4626
+ {
4627
+ "in": "body",
4628
+ "name": "description"
4629
+ }
4630
+ ],
4631
+ "path": "/realtime/webhooks",
4632
+ "readOnly": false
4633
+ },
4634
+ "delete": {
4635
+ "method": "DELETE",
4636
+ "params": [
4637
+ {
4638
+ "in": "path",
4639
+ "name": "webhookId"
4640
+ }
4641
+ ],
4642
+ "path": "/realtime/webhooks/:webhookId",
4643
+ "readOnly": false
4644
+ },
4645
+ "get": {
4646
+ "method": "GET",
4647
+ "params": [
4648
+ {
4649
+ "in": "path",
4650
+ "name": "webhookId"
4651
+ }
4652
+ ],
4653
+ "path": "/realtime/webhooks/:webhookId",
4654
+ "readOnly": true
4655
+ },
4656
+ "list": {
4657
+ "method": "GET",
4658
+ "path": "/realtime/webhooks",
4659
+ "readOnly": true
4660
+ },
4661
+ "update": {
4662
+ "method": "PATCH",
4663
+ "params": [
4664
+ {
4665
+ "in": "body",
4666
+ "name": "url"
4667
+ },
4668
+ {
4669
+ "in": "body",
4670
+ "name": "events"
4671
+ },
4672
+ {
4673
+ "in": "body",
4674
+ "name": "description"
4675
+ },
4676
+ {
4677
+ "in": "body",
4678
+ "name": "active"
4679
+ },
4680
+ {
4681
+ "in": "path",
4682
+ "name": "webhookId"
4683
+ }
4684
+ ],
4685
+ "path": "/realtime/webhooks/:webhookId",
4686
+ "readOnly": false
4687
+ }
4688
+ },
4689
+ "webhook-deliveries": {
4690
+ "list": {
4691
+ "method": "GET",
4692
+ "params": [
4693
+ {
4694
+ "in": "path",
4695
+ "name": "webhookId"
4696
+ },
4697
+ {
4698
+ "in": "query",
4699
+ "name": "limit"
4700
+ }
4701
+ ],
4702
+ "path": "/realtime/webhooks/:webhookId/deliveries",
4703
+ "readOnly": true
4704
+ }
4705
+ },
4706
+ "webhook-secret": {
4707
+ "rotate": {
4708
+ "method": "POST",
4709
+ "params": [
4710
+ {
4711
+ "in": "path",
4712
+ "name": "webhookId"
4713
+ }
4714
+ ],
4715
+ "path": "/realtime/webhooks/:webhookId/secret/rotate",
4716
+ "readOnly": false
4717
+ }
4520
4718
  }
4521
4719
  },
4522
4720
  "tracking": {
@@ -582,10 +582,34 @@ import type {
582
582
  RealtimeNamespaceListOutput,
583
583
  RealtimeNamespaceUpdateInput,
584
584
  RealtimeNamespaceUpdateOutput,
585
+ RealtimePresenceEnterInput,
586
+ RealtimePresenceEnterOutput,
587
+ RealtimePresenceGetInput,
588
+ RealtimePresenceGetOutput,
589
+ RealtimePresenceLeaveInput,
590
+ RealtimePresenceLeaveOutput,
591
+ RealtimePresenceStatsInput,
592
+ RealtimePresenceStatsOutput,
593
+ RealtimePresenceUpdateInput,
594
+ RealtimePresenceUpdateOutput,
585
595
  RealtimeStatusGetInput,
586
596
  RealtimeStatusGetOutput,
587
597
  RealtimeTokensCreateInput,
588
598
  RealtimeTokensCreateOutput,
599
+ RealtimeWebhookCreateInput,
600
+ RealtimeWebhookCreateOutput,
601
+ RealtimeWebhookDeleteInput,
602
+ RealtimeWebhookDeleteOutput,
603
+ RealtimeWebhookDeliveriesListInput,
604
+ RealtimeWebhookDeliveriesListOutput,
605
+ RealtimeWebhookGetInput,
606
+ RealtimeWebhookGetOutput,
607
+ RealtimeWebhookListInput,
608
+ RealtimeWebhookListOutput,
609
+ RealtimeWebhookSecretRotateInput,
610
+ RealtimeWebhookSecretRotateOutput,
611
+ RealtimeWebhookUpdateInput,
612
+ RealtimeWebhookUpdateOutput,
589
613
  TrackingApiKeysCreateInput,
590
614
  TrackingApiKeysCreateOutput,
591
615
  TrackingApiKeysListInput,
@@ -1209,12 +1233,32 @@ export interface GeneratedClient {
1209
1233
  list(input: RealtimeNamespaceListInput): Promise<RealtimeNamespaceListOutput>;
1210
1234
  update(input: RealtimeNamespaceUpdateInput): Promise<RealtimeNamespaceUpdateOutput>;
1211
1235
  };
1236
+ presence: {
1237
+ enter(input: RealtimePresenceEnterInput): Promise<RealtimePresenceEnterOutput>;
1238
+ get(input: RealtimePresenceGetInput): Promise<RealtimePresenceGetOutput>;
1239
+ leave(input: RealtimePresenceLeaveInput): Promise<RealtimePresenceLeaveOutput>;
1240
+ stats(input: RealtimePresenceStatsInput): Promise<RealtimePresenceStatsOutput>;
1241
+ update(input: RealtimePresenceUpdateInput): Promise<RealtimePresenceUpdateOutput>;
1242
+ };
1212
1243
  status: {
1213
1244
  get(input: RealtimeStatusGetInput): Promise<RealtimeStatusGetOutput>;
1214
1245
  };
1215
1246
  tokens: {
1216
1247
  create(input: RealtimeTokensCreateInput): Promise<RealtimeTokensCreateOutput>;
1217
1248
  };
1249
+ webhook: {
1250
+ create(input: RealtimeWebhookCreateInput): Promise<RealtimeWebhookCreateOutput>;
1251
+ delete(input: RealtimeWebhookDeleteInput): Promise<RealtimeWebhookDeleteOutput>;
1252
+ get(input: RealtimeWebhookGetInput): Promise<RealtimeWebhookGetOutput>;
1253
+ list(input: RealtimeWebhookListInput): Promise<RealtimeWebhookListOutput>;
1254
+ update(input: RealtimeWebhookUpdateInput): Promise<RealtimeWebhookUpdateOutput>;
1255
+ };
1256
+ 'webhook-deliveries': {
1257
+ list(input: RealtimeWebhookDeliveriesListInput): Promise<RealtimeWebhookDeliveriesListOutput>;
1258
+ };
1259
+ 'webhook-secret': {
1260
+ rotate(input: RealtimeWebhookSecretRotateInput): Promise<RealtimeWebhookSecretRotateOutput>;
1261
+ };
1218
1262
  };
1219
1263
  tracking: {
1220
1264
  'api-keys': {
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { RealtimeGrantCreateInput, RealtimeGrantCreateOutput, RealtimeGrantListInput, RealtimeGrantListOutput, RealtimeGrantRevokeInput, RealtimeGrantRevokeOutput, RealtimeHistoryGetInput, RealtimeHistoryGetOutput, RealtimeMessagesPublishInput, RealtimeMessagesPublishOutput, RealtimeNamespaceCreateInput, RealtimeNamespaceCreateOutput, RealtimeNamespaceDeleteInput, RealtimeNamespaceDeleteOutput, RealtimeNamespaceGetInput, RealtimeNamespaceGetOutput, RealtimeNamespaceListInput, RealtimeNamespaceListOutput, RealtimeNamespaceUpdateInput, RealtimeNamespaceUpdateOutput, RealtimeStatusGetInput, RealtimeStatusGetOutput, RealtimeTokensCreateInput, RealtimeTokensCreateOutput } from '../types.gen';
3
+ export type { RealtimeGrantCreateInput, RealtimeGrantCreateOutput, RealtimeGrantListInput, RealtimeGrantListOutput, RealtimeGrantRevokeInput, RealtimeGrantRevokeOutput, RealtimeHistoryGetInput, RealtimeHistoryGetOutput, RealtimeMessagesPublishInput, RealtimeMessagesPublishOutput, RealtimeNamespaceCreateInput, RealtimeNamespaceCreateOutput, RealtimeNamespaceDeleteInput, RealtimeNamespaceDeleteOutput, RealtimeNamespaceGetInput, RealtimeNamespaceGetOutput, RealtimeNamespaceListInput, RealtimeNamespaceListOutput, RealtimeNamespaceUpdateInput, RealtimeNamespaceUpdateOutput, RealtimePresenceEnterInput, RealtimePresenceEnterOutput, RealtimePresenceGetInput, RealtimePresenceGetOutput, RealtimePresenceLeaveInput, RealtimePresenceLeaveOutput, RealtimePresenceStatsInput, RealtimePresenceStatsOutput, RealtimePresenceUpdateInput, RealtimePresenceUpdateOutput, RealtimeStatusGetInput, RealtimeStatusGetOutput, RealtimeTokensCreateInput, RealtimeTokensCreateOutput, RealtimeWebhookCreateInput, RealtimeWebhookCreateOutput, RealtimeWebhookDeleteInput, RealtimeWebhookDeleteOutput, RealtimeWebhookDeliveriesListInput, RealtimeWebhookDeliveriesListOutput, RealtimeWebhookGetInput, RealtimeWebhookGetOutput, RealtimeWebhookListInput, RealtimeWebhookListOutput, RealtimeWebhookSecretRotateInput, RealtimeWebhookSecretRotateOutput, RealtimeWebhookUpdateInput, RealtimeWebhookUpdateOutput } from '../types.gen';
@@ -15,9 +15,26 @@ import type {
15
15
  RealtimeNamespaceListInput,
16
16
  RealtimeNamespaceListOutput,
17
17
  RealtimeNamespaceUpdateInput,
18
+ RealtimePresenceEnterInput,
19
+ RealtimePresenceGetInput,
20
+ RealtimePresenceGetOutput,
21
+ RealtimePresenceLeaveInput,
22
+ RealtimePresenceStatsInput,
23
+ RealtimePresenceStatsOutput,
24
+ RealtimePresenceUpdateInput,
18
25
  RealtimeStatusGetInput,
19
26
  RealtimeStatusGetOutput,
20
27
  RealtimeTokensCreateInput,
28
+ RealtimeWebhookCreateInput,
29
+ RealtimeWebhookDeleteInput,
30
+ RealtimeWebhookDeliveriesListInput,
31
+ RealtimeWebhookDeliveriesListOutput,
32
+ RealtimeWebhookGetInput,
33
+ RealtimeWebhookGetOutput,
34
+ RealtimeWebhookListInput,
35
+ RealtimeWebhookListOutput,
36
+ RealtimeWebhookSecretRotateInput,
37
+ RealtimeWebhookUpdateInput,
21
38
  } from '../types.gen';
22
39
 
23
40
  export const realtimeGrantCreateMutationOptions = (sdk: GeneratedClient) => ({
@@ -70,6 +87,31 @@ export const realtimeNamespaceUpdateMutationOptions = (sdk: GeneratedClient) =>
70
87
  mutationFn: (input: RealtimeNamespaceUpdateInput) => sdk['realtime']['namespace']['update'](input),
71
88
  });
72
89
 
90
+ export const realtimePresenceEnterMutationOptions = (sdk: GeneratedClient) => ({
91
+ mutationKey: ['realtime', 'presence', 'enter'],
92
+ mutationFn: (input: RealtimePresenceEnterInput) => sdk['realtime']['presence']['enter'](input),
93
+ });
94
+
95
+ export const realtimePresenceGetQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceGetInput) => ({
96
+ queryKey: ['realtime', 'presence', 'get', input] as const,
97
+ queryFn: () => sdk['realtime']['presence']['get'](input),
98
+ });
99
+
100
+ export const realtimePresenceLeaveMutationOptions = (sdk: GeneratedClient) => ({
101
+ mutationKey: ['realtime', 'presence', 'leave'],
102
+ mutationFn: (input: RealtimePresenceLeaveInput) => sdk['realtime']['presence']['leave'](input),
103
+ });
104
+
105
+ export const realtimePresenceStatsQueryOptions = (sdk: GeneratedClient, input: RealtimePresenceStatsInput) => ({
106
+ queryKey: ['realtime', 'presence', 'stats', input] as const,
107
+ queryFn: () => sdk['realtime']['presence']['stats'](input),
108
+ });
109
+
110
+ export const realtimePresenceUpdateMutationOptions = (sdk: GeneratedClient) => ({
111
+ mutationKey: ['realtime', 'presence', 'update'],
112
+ mutationFn: (input: RealtimePresenceUpdateInput) => sdk['realtime']['presence']['update'](input),
113
+ });
114
+
73
115
  export const realtimeStatusGetQueryOptions = (sdk: GeneratedClient, input: RealtimeStatusGetInput) => ({
74
116
  queryKey: ['realtime', 'status', 'get', input] as const,
75
117
  queryFn: () => sdk['realtime']['status']['get'](input),
@@ -79,3 +121,38 @@ export const realtimeTokensCreateMutationOptions = (sdk: GeneratedClient) => ({
79
121
  mutationKey: ['realtime', 'tokens', 'create'],
80
122
  mutationFn: (input: RealtimeTokensCreateInput) => sdk['realtime']['tokens']['create'](input),
81
123
  });
124
+
125
+ export const realtimeWebhookCreateMutationOptions = (sdk: GeneratedClient) => ({
126
+ mutationKey: ['realtime', 'webhook', 'create'],
127
+ mutationFn: (input: RealtimeWebhookCreateInput) => sdk['realtime']['webhook']['create'](input),
128
+ });
129
+
130
+ export const realtimeWebhookDeleteMutationOptions = (sdk: GeneratedClient) => ({
131
+ mutationKey: ['realtime', 'webhook', 'delete'],
132
+ mutationFn: (input: RealtimeWebhookDeleteInput) => sdk['realtime']['webhook']['delete'](input),
133
+ });
134
+
135
+ export const realtimeWebhookDeliveriesListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookDeliveriesListInput) => ({
136
+ queryKey: ['realtime', 'webhook-deliveries', 'list', input] as const,
137
+ queryFn: () => sdk['realtime']['webhook-deliveries']['list'](input),
138
+ });
139
+
140
+ export const realtimeWebhookGetQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookGetInput) => ({
141
+ queryKey: ['realtime', 'webhook', 'get', input] as const,
142
+ queryFn: () => sdk['realtime']['webhook']['get'](input),
143
+ });
144
+
145
+ export const realtimeWebhookListQueryOptions = (sdk: GeneratedClient, input: RealtimeWebhookListInput) => ({
146
+ queryKey: ['realtime', 'webhook', 'list', input] as const,
147
+ queryFn: () => sdk['realtime']['webhook']['list'](input),
148
+ });
149
+
150
+ export const realtimeWebhookSecretRotateMutationOptions = (sdk: GeneratedClient) => ({
151
+ mutationKey: ['realtime', 'webhook-secret', 'rotate'],
152
+ mutationFn: (input: RealtimeWebhookSecretRotateInput) => sdk['realtime']['webhook-secret']['rotate'](input),
153
+ });
154
+
155
+ export const realtimeWebhookUpdateMutationOptions = (sdk: GeneratedClient) => ({
156
+ mutationKey: ['realtime', 'webhook', 'update'],
157
+ mutationFn: (input: RealtimeWebhookUpdateInput) => sdk['realtime']['webhook']['update'](input),
158
+ });