@lessly/sdk-app 14.0.0 → 14.2.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-CcgqVajm.d.cts → client.gen-ClvT4E7P.d.cts} +46 -1
  6. package/dist/{client.gen-CcgqVajm.d.ts → client.gen-ClvT4E7P.d.ts} +46 -1
  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 +29 -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 +29 -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 +15 -0
  24. package/dist/realtime/index.cjs.map +1 -1
  25. package/dist/realtime/index.d.cts +14 -2
  26. package/dist/realtime/index.d.ts +14 -2
  27. package/dist/realtime/index.js +13 -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 +29 -0
  35. package/src/gen/client.gen.ts +11 -0
  36. package/src/gen/realtime/index.ts +1 -1
  37. package/src/gen/realtime/queryOptions.gen.ts +19 -0
  38. package/src/gen/types.gen.ts +47 -0
@@ -1,6 +1,10 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  import type { GeneratedClient } from '../client.gen';
3
3
  import type {
4
+ RealtimeApikeyCreateInput,
5
+ RealtimeApikeyListInput,
6
+ RealtimeApikeyListOutput,
7
+ RealtimeApikeyRevokeInput,
4
8
  RealtimeArchiveExportInput,
5
9
  RealtimeArchiveExportStatusInput,
6
10
  RealtimeArchiveExportStatusOutput,
@@ -42,6 +46,21 @@ import type {
42
46
  RealtimeWebhookUpdateInput,
43
47
  } from '../types.gen';
44
48
 
49
+ export const realtimeApikeyCreateMutationOptions = (sdk: GeneratedClient) => ({
50
+ mutationKey: ['realtime', 'apikey', 'create'],
51
+ mutationFn: (input: RealtimeApikeyCreateInput) => sdk['realtime']['apikey']['create'](input),
52
+ });
53
+
54
+ export const realtimeApikeyListQueryOptions = (sdk: GeneratedClient, input: RealtimeApikeyListInput) => ({
55
+ queryKey: ['realtime', 'apikey', 'list', input] as const,
56
+ queryFn: () => sdk['realtime']['apikey']['list'](input),
57
+ });
58
+
59
+ export const realtimeApikeyRevokeMutationOptions = (sdk: GeneratedClient) => ({
60
+ mutationKey: ['realtime', 'apikey', 'revoke'],
61
+ mutationFn: (input: RealtimeApikeyRevokeInput) => sdk['realtime']['apikey']['revoke'](input),
62
+ });
63
+
45
64
  export const realtimeArchiveExportMutationOptions = (sdk: GeneratedClient) => ({
46
65
  mutationKey: ['realtime', 'archive', 'export'],
47
66
  mutationFn: (input: RealtimeArchiveExportInput) => sdk['realtime']['archive']['export'](input),
@@ -13555,6 +13555,53 @@ delivery_count: number
13555
13555
  found: false
13556
13556
  })
13557
13557
 
13558
+ export interface RealtimeApikeyCreateInput {
13559
+ /**
13560
+ * Human-readable label for the key, e.g. "production backend"
13561
+ */
13562
+ name: string
13563
+ }
13564
+
13565
+ export interface RealtimeApikeyCreateOutput {
13566
+ /**
13567
+ * The full rtk_ secret. Shown once — it cannot be retrieved again.
13568
+ */
13569
+ key: string
13570
+ apiKey: {
13571
+ id: string
13572
+ name: string
13573
+ prefix: string
13574
+ createdAt: string
13575
+ revokedAt: (string | null)
13576
+ }
13577
+ }
13578
+
13579
+ export interface RealtimeApikeyListInput {
13580
+
13581
+ }
13582
+
13583
+ export interface RealtimeApikeyListOutput {
13584
+ keys: {
13585
+ id: string
13586
+ name: string
13587
+ prefix: string
13588
+ createdAt: string
13589
+ revokedAt: (string | null)
13590
+ }[]
13591
+ }
13592
+
13593
+ export interface RealtimeApikeyRevokeInput {
13594
+ /**
13595
+ * Api key id to revoke
13596
+ */
13597
+ id: string
13598
+ }
13599
+
13600
+ export interface RealtimeApikeyRevokeOutput {
13601
+ id: string
13602
+ revokedAt: string
13603
+ }
13604
+
13558
13605
  export interface RealtimeArchiveExportInput {
13559
13606
  /**
13560
13607
  * Only entries with ts <= to_ts (epoch ms)