@synnaxlabs/client 0.37.0 → 0.38.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 (53) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/dist/access/policy/payload.d.ts +10 -10
  3. package/dist/channel/client.d.ts +13 -1
  4. package/dist/channel/client.d.ts.map +1 -1
  5. package/dist/channel/payload.d.ts +14 -0
  6. package/dist/channel/payload.d.ts.map +1 -1
  7. package/dist/client.cjs +30 -30
  8. package/dist/client.js +2149 -2092
  9. package/dist/framer/frame.d.ts.map +1 -1
  10. package/dist/hardware/device/payload.d.ts +2 -2
  11. package/dist/hardware/device/payload.d.ts.map +1 -1
  12. package/dist/hardware/task/client.d.ts.map +1 -1
  13. package/dist/hardware/task/payload.d.ts +4 -4
  14. package/dist/hardware/task/payload.d.ts.map +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/label/client.d.ts.map +1 -1
  18. package/dist/ontology/group/group.d.ts.map +1 -1
  19. package/dist/ontology/payload.d.ts.map +1 -1
  20. package/dist/ranger/client.d.ts.map +1 -1
  21. package/dist/ranger/payload.d.ts +2 -2
  22. package/dist/ranger/payload.d.ts.map +1 -1
  23. package/dist/util/retrieve.d.ts.map +1 -1
  24. package/dist/util/zod.d.ts +1 -1
  25. package/dist/util/zod.d.ts.map +1 -1
  26. package/examples/node/package-lock.json +56 -5509
  27. package/examples/node/package.json +1 -1
  28. package/package.json +10 -14
  29. package/src/access/policy/policy.spec.ts +1 -4
  30. package/src/channel/batchRetriever.spec.ts +4 -0
  31. package/src/channel/channel.spec.ts +108 -37
  32. package/src/channel/client.ts +45 -2
  33. package/src/channel/payload.ts +5 -0
  34. package/src/framer/frame.ts +3 -4
  35. package/src/framer/streamer.spec.ts +178 -0
  36. package/src/hardware/task/client.ts +3 -2
  37. package/src/index.ts +1 -1
  38. package/src/label/client.ts +2 -2
  39. package/src/ontology/group/group.ts +3 -5
  40. package/src/ontology/payload.ts +1 -1
  41. package/src/ranger/client.ts +6 -11
  42. package/src/ranger/payload.ts +2 -2
  43. package/src/util/retrieve.ts +2 -2
  44. package/src/util/zod.ts +4 -1
  45. package/vite.config.ts +5 -12
  46. package/api/client.api.md +0 -3473
  47. package/api-extractor.json +0 -7
  48. package/dist/hardware/task/ni/types.d.ts +0 -14495
  49. package/dist/hardware/task/ni/types.d.ts.map +0 -1
  50. package/dist/workspace/lineplot/payload.d.ts +0 -23
  51. package/dist/workspace/lineplot/payload.d.ts.map +0 -1
  52. package/src/hardware/task/ni/types.ts +0 -1716
  53. package/src/workspace/lineplot/payload.ts +0 -30
@@ -1,30 +0,0 @@
1
- // Copyright 2024 Synnax Labs, Inc.
2
- //
3
- // Use of this software is governed by the Business Source License included in the file
4
- // licenses/BSL.txt.
5
- //
6
- // As of the Change Date specified in that file, in accordance with the Business Source
7
- // License, use of this software will be governed by the Apache License, Version 2.0,
8
- // included in the file licenses/APL.txt.
9
-
10
- import { type UnknownRecord, unknownRecordZ } from "@synnaxlabs/x/record";
11
- import { z } from "zod";
12
-
13
- import { ontology } from "@/ontology";
14
-
15
- export const keyZ = z.string().uuid();
16
- export type Key = z.infer<typeof keyZ>;
17
- export type Params = Key | Key[];
18
-
19
- export const linePlotZ = z.object({
20
- key: z.string(),
21
- name: z.string(),
22
- data: unknownRecordZ.or(z.string().transform((s) => JSON.parse(s) as UnknownRecord)),
23
- });
24
-
25
- export type LinePlot = z.infer<typeof linePlotZ>;
26
-
27
- export const ONTOLOGY_TYPE: ontology.ResourceType = "lineplot";
28
-
29
- export const ontologyID = (key: Key): ontology.ID =>
30
- new ontology.ID({ type: ONTOLOGY_TYPE, key });