@lessly/sdk-app 9.2.0 → 10.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-XqieBmDz.d.cts} +411 -2
  6. package/dist/{client.gen-BLMudoVx.d.ts → client.gen-XqieBmDz.d.ts} +411 -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 +190 -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 +190 -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 +190 -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 +415 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
- "version": "9.2.0",
3
+ "version": "10.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:261855c7f78b62bfdaba26935cf6571c6395dbc48df29bdb2d171c99004a646d"
94
94
  }
@@ -4498,6 +4498,91 @@ export const bindings: BindingsMap = {
4498
4498
  "readOnly": false
4499
4499
  }
4500
4500
  },
4501
+ "presence": {
4502
+ "enter": {
4503
+ "method": "POST",
4504
+ "params": [
4505
+ {
4506
+ "in": "body",
4507
+ "name": "channel"
4508
+ },
4509
+ {
4510
+ "in": "body",
4511
+ "name": "info"
4512
+ },
4513
+ {
4514
+ "in": "body",
4515
+ "name": "ttl_seconds"
4516
+ },
4517
+ {
4518
+ "in": "body",
4519
+ "name": "member_id"
4520
+ }
4521
+ ],
4522
+ "path": "/realtime/presence/enter",
4523
+ "readOnly": false
4524
+ },
4525
+ "get": {
4526
+ "method": "GET",
4527
+ "params": [
4528
+ {
4529
+ "in": "query",
4530
+ "name": "channel"
4531
+ }
4532
+ ],
4533
+ "path": "/realtime/presence",
4534
+ "readOnly": true
4535
+ },
4536
+ "leave": {
4537
+ "method": "POST",
4538
+ "params": [
4539
+ {
4540
+ "in": "body",
4541
+ "name": "channel"
4542
+ },
4543
+ {
4544
+ "in": "body",
4545
+ "name": "member_id"
4546
+ }
4547
+ ],
4548
+ "path": "/realtime/presence/leave",
4549
+ "readOnly": false
4550
+ },
4551
+ "stats": {
4552
+ "method": "GET",
4553
+ "params": [
4554
+ {
4555
+ "in": "query",
4556
+ "name": "channel"
4557
+ }
4558
+ ],
4559
+ "path": "/realtime/presence/stats",
4560
+ "readOnly": true
4561
+ },
4562
+ "update": {
4563
+ "method": "POST",
4564
+ "params": [
4565
+ {
4566
+ "in": "body",
4567
+ "name": "channel"
4568
+ },
4569
+ {
4570
+ "in": "body",
4571
+ "name": "info"
4572
+ },
4573
+ {
4574
+ "in": "body",
4575
+ "name": "ttl_seconds"
4576
+ },
4577
+ {
4578
+ "in": "body",
4579
+ "name": "member_id"
4580
+ }
4581
+ ],
4582
+ "path": "/realtime/presence/update",
4583
+ "readOnly": false
4584
+ }
4585
+ },
4501
4586
  "status": {
4502
4587
  "get": {
4503
4588
  "method": "GET",
@@ -4517,6 +4602,111 @@ export const bindings: BindingsMap = {
4517
4602
  "path": "/realtime/tokens",
4518
4603
  "readOnly": false
4519
4604
  }
4605
+ },
4606
+ "webhook": {
4607
+ "create": {
4608
+ "method": "POST",
4609
+ "params": [
4610
+ {
4611
+ "in": "body",
4612
+ "name": "url"
4613
+ },
4614
+ {
4615
+ "in": "body",
4616
+ "name": "events"
4617
+ },
4618
+ {
4619
+ "in": "body",
4620
+ "name": "description"
4621
+ }
4622
+ ],
4623
+ "path": "/realtime/webhooks",
4624
+ "readOnly": false
4625
+ },
4626
+ "delete": {
4627
+ "method": "DELETE",
4628
+ "params": [
4629
+ {
4630
+ "in": "path",
4631
+ "name": "webhookId"
4632
+ }
4633
+ ],
4634
+ "path": "/realtime/webhooks/:webhookId",
4635
+ "readOnly": false
4636
+ },
4637
+ "get": {
4638
+ "method": "GET",
4639
+ "params": [
4640
+ {
4641
+ "in": "path",
4642
+ "name": "webhookId"
4643
+ }
4644
+ ],
4645
+ "path": "/realtime/webhooks/:webhookId",
4646
+ "readOnly": true
4647
+ },
4648
+ "list": {
4649
+ "method": "GET",
4650
+ "path": "/realtime/webhooks",
4651
+ "readOnly": true
4652
+ },
4653
+ "update": {
4654
+ "method": "PATCH",
4655
+ "params": [
4656
+ {
4657
+ "in": "body",
4658
+ "name": "url"
4659
+ },
4660
+ {
4661
+ "in": "body",
4662
+ "name": "events"
4663
+ },
4664
+ {
4665
+ "in": "body",
4666
+ "name": "description"
4667
+ },
4668
+ {
4669
+ "in": "body",
4670
+ "name": "active"
4671
+ },
4672
+ {
4673
+ "in": "path",
4674
+ "name": "webhookId"
4675
+ }
4676
+ ],
4677
+ "path": "/realtime/webhooks/:webhookId",
4678
+ "readOnly": false
4679
+ }
4680
+ },
4681
+ "webhook-deliveries": {
4682
+ "list": {
4683
+ "method": "GET",
4684
+ "params": [
4685
+ {
4686
+ "in": "path",
4687
+ "name": "webhookId"
4688
+ },
4689
+ {
4690
+ "in": "query",
4691
+ "name": "limit"
4692
+ }
4693
+ ],
4694
+ "path": "/realtime/webhooks/:webhookId/deliveries",
4695
+ "readOnly": true
4696
+ }
4697
+ },
4698
+ "webhook-secret": {
4699
+ "rotate": {
4700
+ "method": "POST",
4701
+ "params": [
4702
+ {
4703
+ "in": "path",
4704
+ "name": "webhookId"
4705
+ }
4706
+ ],
4707
+ "path": "/realtime/webhooks/:webhookId/secret/rotate",
4708
+ "readOnly": false
4709
+ }
4520
4710
  }
4521
4711
  },
4522
4712
  "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
+ });