@synnaxlabs/client 0.13.6 → 0.14.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 (135) hide show
  1. package/.turbo/turbo-build.log +10 -10
  2. package/dist/auth/index.d.ts +1 -1
  3. package/dist/channel/client.d.ts +8 -7
  4. package/dist/channel/creator.d.ts +1 -1
  5. package/dist/channel/external.d.ts +4 -4
  6. package/dist/channel/index.d.ts +1 -1
  7. package/dist/channel/payload.d.ts +6 -0
  8. package/dist/channel/retriever.d.ts +7 -7
  9. package/dist/client.cjs.js +14 -23043
  10. package/dist/client.cjs.js.map +1 -1
  11. package/dist/client.d.ts +5 -0
  12. package/dist/client.es.js +11867 -17730
  13. package/dist/client.es.js.map +1 -1
  14. package/dist/connection/checker.d.ts +2 -1
  15. package/dist/connection/index.d.ts +1 -1
  16. package/dist/control/external.d.ts +2 -2
  17. package/dist/control/index.d.ts +1 -1
  18. package/dist/control/state.d.ts +1 -1
  19. package/dist/framer/adapter.d.ts +1 -1
  20. package/dist/framer/client.d.ts +4 -4
  21. package/dist/framer/external.d.ts +5 -5
  22. package/dist/framer/index.d.ts +1 -1
  23. package/dist/framer/iterator.d.ts +1 -1
  24. package/dist/framer/streamer.d.ts +1 -1
  25. package/dist/framer/writer.d.ts +1 -1
  26. package/dist/hardware/client.d.ts +9 -0
  27. package/dist/hardware/device/client.d.ts +16 -0
  28. package/dist/hardware/device/device.spec.d.ts +1 -0
  29. package/dist/hardware/device/external.d.ts +3 -0
  30. package/dist/hardware/device/index.d.ts +1 -0
  31. package/dist/hardware/device/payload.d.ts +29 -0
  32. package/dist/hardware/device/retriever.d.ts +7 -0
  33. package/dist/hardware/device/writer.d.ts +8 -0
  34. package/dist/hardware/external.d.ts +2 -0
  35. package/dist/hardware/index.d.ts +1 -0
  36. package/dist/hardware/rack/client.d.ts +29 -0
  37. package/dist/hardware/rack/external.d.ts +3 -0
  38. package/dist/hardware/rack/index.d.ts +1 -0
  39. package/dist/hardware/rack/payload.d.ts +25 -0
  40. package/dist/hardware/rack/rack.spec.d.ts +1 -0
  41. package/dist/hardware/rack/retriever.d.ts +7 -0
  42. package/dist/hardware/rack/writer.d.ts +8 -0
  43. package/dist/hardware/task/client.d.ts +12 -0
  44. package/dist/hardware/task/external.d.ts +3 -0
  45. package/dist/hardware/task/index.d.ts +1 -0
  46. package/dist/hardware/task/payload.d.ts +40 -0
  47. package/dist/hardware/task/retriever.d.ts +20 -0
  48. package/dist/hardware/task/task.spec.d.ts +1 -0
  49. package/dist/hardware/task/writer.d.ts +8 -0
  50. package/dist/index.d.ts +1 -0
  51. package/dist/label/client.d.ts +2 -2
  52. package/dist/label/external.d.ts +4 -4
  53. package/dist/label/index.d.ts +1 -1
  54. package/dist/label/retriever.d.ts +1 -1
  55. package/dist/label/writer.d.ts +1 -1
  56. package/dist/ontology/client.d.ts +4 -4
  57. package/dist/ontology/external.d.ts +3 -3
  58. package/dist/ontology/group/client.d.ts +2 -2
  59. package/dist/ontology/group/external.d.ts +2 -2
  60. package/dist/ontology/group/group.d.ts +1 -1
  61. package/dist/ontology/group/index.d.ts +1 -1
  62. package/dist/ontology/group/writer.d.ts +2 -2
  63. package/dist/ontology/index.d.ts +1 -1
  64. package/dist/ontology/payload.d.ts +47 -47
  65. package/dist/ontology/retriever.d.ts +1 -1
  66. package/dist/ontology/signals.d.ts +6 -2
  67. package/dist/ontology/writer.d.ts +1 -1
  68. package/dist/ranger/alias.d.ts +1 -1
  69. package/dist/ranger/client.d.ts +4 -4
  70. package/dist/ranger/external.d.ts +6 -6
  71. package/dist/ranger/index.d.ts +1 -1
  72. package/dist/ranger/kv.d.ts +1 -1
  73. package/dist/ranger/range.d.ts +2 -2
  74. package/dist/ranger/writer.d.ts +1 -1
  75. package/dist/signals/external.d.ts +1 -1
  76. package/dist/signals/index.d.ts +1 -1
  77. package/dist/user/index.d.ts +1 -1
  78. package/dist/workspace/client.d.ts +4 -4
  79. package/dist/workspace/external.d.ts +2 -2
  80. package/dist/workspace/index.d.ts +1 -1
  81. package/dist/workspace/lineplot/client.d.ts +2 -2
  82. package/dist/workspace/lineplot/external.d.ts +2 -2
  83. package/dist/workspace/lineplot/index.d.ts +1 -1
  84. package/dist/workspace/lineplot/retriever.d.ts +1 -1
  85. package/dist/workspace/lineplot/writer.d.ts +1 -1
  86. package/dist/workspace/pid/client.d.ts +2 -2
  87. package/dist/workspace/pid/external.d.ts +2 -2
  88. package/dist/workspace/pid/index.d.ts +1 -1
  89. package/dist/workspace/pid/writer.d.ts +1 -1
  90. package/dist/workspace/retriever.d.ts +1 -1
  91. package/package.json +8 -8
  92. package/src/channel/client.ts +11 -9
  93. package/src/channel/payload.ts +1 -0
  94. package/src/channel/retriever.ts +13 -15
  95. package/src/client.ts +23 -0
  96. package/src/connection/checker.ts +4 -2
  97. package/src/framer/frame.spec.ts +67 -79
  98. package/src/framer/frame.ts +1 -1
  99. package/src/framer/writer.ts +1 -1
  100. package/src/hardware/client.ts +24 -0
  101. package/src/hardware/device/client.ts +54 -0
  102. package/src/hardware/device/device.spec.ts +45 -0
  103. package/src/hardware/device/external.ts +3 -0
  104. package/src/hardware/device/index.ts +1 -0
  105. package/src/hardware/device/payload.ts +18 -0
  106. package/src/hardware/device/retriever.ts +39 -0
  107. package/src/hardware/device/writer.ts +48 -0
  108. package/src/hardware/external.ts +11 -0
  109. package/src/hardware/index.ts +10 -0
  110. package/src/hardware/rack/client.ts +96 -0
  111. package/src/hardware/rack/external.ts +3 -0
  112. package/src/hardware/rack/index.ts +1 -0
  113. package/src/hardware/rack/payload.ts +17 -0
  114. package/src/hardware/rack/rack.spec.ts +29 -0
  115. package/src/hardware/rack/retriever.ts +32 -0
  116. package/src/hardware/rack/writer.ts +57 -0
  117. package/src/hardware/task/client.ts +47 -0
  118. package/src/hardware/task/external.ts +12 -0
  119. package/src/hardware/task/index.ts +10 -0
  120. package/src/hardware/task/payload.ts +37 -0
  121. package/src/hardware/task/retriever.ts +45 -0
  122. package/src/hardware/task/task.spec.ts +47 -0
  123. package/src/hardware/task/writer.ts +63 -0
  124. package/src/index.ts +1 -0
  125. package/src/label/writer.ts +1 -1
  126. package/src/ontology/client.ts +1 -1
  127. package/src/ontology/group/client.ts +3 -3
  128. package/src/ontology/payload.ts +1 -0
  129. package/src/ontology/signals.ts +4 -0
  130. package/vite.config.ts +1 -1
  131. package/.pytest_cache/README.md +0 -8
  132. package/dist/cdc/external.d.ts +0 -1
  133. package/dist/cdc/index.d.ts +0 -1
  134. package/dist/cdc/observable.d.ts +0 -17
  135. package/dist/ontology/cdc.d.ts +0 -25
@@ -1,32 +1,32 @@
1
1
  import { z } from "zod";
2
- declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
2
+ declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
3
3
  export type ResourceType = z.infer<typeof resourceTypeZ>;
4
4
  export declare const idZ: z.ZodObject<{
5
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
5
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
6
6
  key: z.ZodString;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  key: string;
9
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
9
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
10
10
  }, {
11
11
  key: string;
12
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
12
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
13
13
  }>;
14
14
  export declare const stringIDZ: z.ZodEffects<z.ZodString, {
15
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
15
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
16
16
  key: string;
17
17
  }, string>;
18
18
  export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
19
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
19
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
20
20
  key: string;
21
21
  }, string>, z.ZodObject<{
22
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
22
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
23
23
  key: z.ZodString;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  key: string;
26
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
26
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
27
27
  }, {
28
28
  key: string;
29
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
29
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
30
30
  }>]>;
31
31
  export declare class ID {
32
32
  type: ResourceType;
@@ -35,20 +35,20 @@ export declare class ID {
35
35
  toString(): string;
36
36
  get payload(): z.infer<typeof idZ>;
37
37
  static readonly z: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
38
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
38
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
39
39
  key: string;
40
40
  }, string>, z.ZodObject<{
41
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
41
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
42
42
  key: z.ZodString;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  key: string;
45
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
45
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
46
46
  }, {
47
47
  key: string;
48
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
48
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
49
49
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
50
50
  key: string;
51
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
51
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
52
52
  }>;
53
53
  }
54
54
  export declare const Root: ID;
@@ -61,7 +61,7 @@ export declare const schemaFieldZ: z.ZodObject<{
61
61
  }>;
62
62
  export type SchemaField = z.infer<typeof schemaFieldZ>;
63
63
  export declare const schemaZ: z.ZodObject<{
64
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
64
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
65
65
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
66
66
  type: z.ZodNumber;
67
67
  }, "strip", z.ZodTypeAny, {
@@ -70,12 +70,12 @@ export declare const schemaZ: z.ZodObject<{
70
70
  type: number;
71
71
  }>>;
72
72
  }, "strip", z.ZodTypeAny, {
73
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
73
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
74
74
  fields: Record<string, {
75
75
  type: number;
76
76
  }>;
77
77
  }, {
78
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
78
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
79
79
  fields: Record<string, {
80
80
  type: number;
81
81
  }>;
@@ -83,24 +83,24 @@ export declare const schemaZ: z.ZodObject<{
83
83
  export type Schema = z.infer<typeof schemaZ>;
84
84
  export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
85
85
  id: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
86
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
86
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
87
87
  key: string;
88
88
  }, string>, z.ZodObject<{
89
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
89
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
90
90
  key: z.ZodString;
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  key: string;
93
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
93
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
94
94
  }, {
95
95
  key: string;
96
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
96
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
97
97
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
98
98
  key: string;
99
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
99
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
100
100
  }>;
101
101
  name: z.ZodString;
102
102
  schema: z.ZodOptional<z.ZodObject<{
103
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
103
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
104
104
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
105
105
  type: z.ZodNumber;
106
106
  }, "strip", z.ZodTypeAny, {
@@ -109,12 +109,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
109
109
  type: number;
110
110
  }>>;
111
111
  }, "strip", z.ZodTypeAny, {
112
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
112
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
113
113
  fields: Record<string, {
114
114
  type: number;
115
115
  }>;
116
116
  }, {
117
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
117
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
118
118
  fields: Record<string, {
119
119
  type: number;
120
120
  }>;
@@ -124,7 +124,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
124
124
  name: string;
125
125
  id: ID;
126
126
  schema?: {
127
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
127
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
128
128
  fields: Record<string, {
129
129
  type: number;
130
130
  }>;
@@ -134,13 +134,13 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
134
134
  name: string;
135
135
  id: (string | ID | {
136
136
  key: string;
137
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
137
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
138
138
  }) & (string | ID | {
139
139
  key: string;
140
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
140
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
141
141
  } | undefined);
142
142
  schema?: {
143
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
143
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
144
144
  fields: Record<string, {
145
145
  type: number;
146
146
  }>;
@@ -150,7 +150,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
150
150
  name: string;
151
151
  id: ID;
152
152
  schema?: {
153
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
153
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
154
154
  fields: Record<string, {
155
155
  type: number;
156
156
  }>;
@@ -161,13 +161,13 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
161
161
  name: string;
162
162
  id: (string | ID | {
163
163
  key: string;
164
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
164
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
165
165
  }) & (string | ID | {
166
166
  key: string;
167
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
167
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
168
168
  } | undefined);
169
169
  schema?: {
170
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
170
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
171
171
  fields: Record<string, {
172
172
  type: number;
173
173
  }>;
@@ -177,37 +177,37 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
177
177
  export type Resource = z.infer<typeof resourceSchemaZ>;
178
178
  export declare const relationshipSchemaZ: z.ZodObject<{
179
179
  from: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
180
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
180
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
181
181
  key: string;
182
182
  }, string>, z.ZodObject<{
183
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
183
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
184
184
  key: z.ZodString;
185
185
  }, "strip", z.ZodTypeAny, {
186
186
  key: string;
187
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
187
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
188
188
  }, {
189
189
  key: string;
190
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
190
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
191
191
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
192
192
  key: string;
193
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
193
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
194
194
  }>;
195
195
  type: z.ZodString;
196
196
  to: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
197
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
197
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
198
198
  key: string;
199
199
  }, string>, z.ZodObject<{
200
- type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">]>;
200
+ type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
201
201
  key: z.ZodString;
202
202
  }, "strip", z.ZodTypeAny, {
203
203
  key: string;
204
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
204
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
205
205
  }, {
206
206
  key: string;
207
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
207
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
208
208
  }>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
209
209
  key: string;
210
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
210
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
211
211
  }>;
212
212
  }, "strip", z.ZodTypeAny, {
213
213
  type: string;
@@ -217,17 +217,17 @@ export declare const relationshipSchemaZ: z.ZodObject<{
217
217
  type: string;
218
218
  from: (string | ID | {
219
219
  key: string;
220
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
220
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
221
221
  }) & (string | ID | {
222
222
  key: string;
223
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
223
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
224
224
  } | undefined);
225
225
  to: (string | ID | {
226
226
  key: string;
227
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
227
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
228
228
  }) & (string | ID | {
229
229
  key: string;
230
- type: "user" | "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot";
230
+ type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
231
231
  } | undefined);
232
232
  }>;
233
233
  export type Relationship = z.infer<typeof relationshipSchemaZ>;
@@ -1,5 +1,5 @@
1
1
  import type { UnaryClient } from "@synnaxlabs/freighter";
2
- import { ID, type Resource } from '../ontology/payload';
2
+ import { ID, type Resource } from './payload';
3
3
  export declare class Retriever {
4
4
  private static readonly ENDPOINT;
5
5
  private readonly client;
@@ -1,10 +1,14 @@
1
1
  import { observe, type change } from "@synnaxlabs/x";
2
2
  import { type Client as FrameClient } from '../framer/client';
3
3
  import { type Streamer as FrameStreamer } from '../framer/streamer';
4
- import { ID, type Relationship, type Resource } from '../ontology/payload';
5
- import { type Retriever } from '../ontology/retriever';
4
+ import { ID, type Relationship, type Resource } from './payload';
5
+ import { type Retriever } from './retriever';
6
6
  export type ResourceChange = change.Change<ID, Resource>;
7
+ export type ResourceSet = change.Set<ID, Resource>;
8
+ export type ResourceDelete = change.Delete<ID, Resource>;
7
9
  export type RelationshipChange = change.Change<Relationship, undefined>;
10
+ export type RelationshipSet = change.Set<Relationship, undefined>;
11
+ export type RelationshipDelete = change.Delete<Relationship, undefined>;
8
12
  export declare class ChangeTracker {
9
13
  private readonly resourceObs;
10
14
  private readonly relationshipObs;
@@ -1,5 +1,5 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type ID } from '../ontology/payload';
2
+ import { type ID } from './payload';
3
3
  export declare class Writer {
4
4
  client: UnaryClient;
5
5
  constructor(client: UnaryClient);
@@ -3,7 +3,7 @@ import { type change } from "@synnaxlabs/x";
3
3
  import { type channel } from '../channel';
4
4
  import { type Key as ChannelKey } from '../channel/payload';
5
5
  import { type Client as FrameClient } from '../framer/client';
6
- import { type Key } from '../ranger/payload';
6
+ import { type Key } from './payload';
7
7
  import { signals } from '../signals';
8
8
  export declare const ALIAS_SET_NAME = "sy_range_alias_set";
9
9
  export declare const ALIAS_DELETE_NAME = "sy_range_alias_delete";
@@ -3,10 +3,10 @@ import { type AsyncTermSearcher } from "@synnaxlabs/x";
3
3
  import { type Retriever as ChannelRetriever } from '../channel/retriever';
4
4
  import { type framer } from '../framer';
5
5
  import { type label } from '../label';
6
- import { type NewPayload, type Key, type Keys, type Name, type Names } from '../ranger/payload';
7
- import { Range } from '../ranger/range';
8
- import { type Retriever } from '../ranger/retriever';
9
- import { type Writer } from '../ranger/writer';
6
+ import { type NewPayload, type Key, type Keys, type Name, type Names } from './payload';
7
+ import { Range } from './range';
8
+ import { type Retriever } from './retriever';
9
+ import { type Writer } from './writer';
10
10
  export declare class Client implements AsyncTermSearcher<string, Key, Range> {
11
11
  private readonly frameClient;
12
12
  private readonly retriever;
@@ -1,6 +1,6 @@
1
- export * from '../ranger/client';
2
- export * from '../ranger/writer';
3
- export * from '../ranger/payload';
4
- export * from '../ranger/range';
5
- export * from '../ranger/retriever';
6
- export type { Alias, AliasChange } from '../ranger/alias';
1
+ export * from './client';
2
+ export * from './writer';
3
+ export * from './payload';
4
+ export * from './range';
5
+ export * from './retriever';
6
+ export type { Alias, AliasChange } from './alias';
@@ -1 +1 @@
1
- export * as ranger from '../ranger/external';
1
+ export * as ranger from './external';
@@ -1,6 +1,6 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { z } from "zod";
3
- import { type Key } from '../ranger/payload';
3
+ import { type Key } from './payload';
4
4
  declare const getReqZ: z.ZodObject<{
5
5
  range: z.ZodString;
6
6
  keys: z.ZodArray<z.ZodString, "many">;
@@ -4,8 +4,8 @@ import { type Retriever as ChannelRetriever } from '../channel/retriever';
4
4
  import { type framer } from '../framer';
5
5
  import { type label } from '../label';
6
6
  import { type Label } from '../label/payload';
7
- import { type Alias, type Aliaser } from '../ranger/alias';
8
- import { type KV } from '../ranger/kv';
7
+ import { type Alias, type Aliaser } from './alias';
8
+ import { type KV } from './kv';
9
9
  import { type signals } from '../signals';
10
10
  export declare class Range {
11
11
  key: string;
@@ -1,5 +1,5 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type NewPayload, type Payload } from '../ranger/payload';
2
+ import { type NewPayload, type Payload } from './payload';
3
3
  export declare class Writer {
4
4
  client: UnaryClient;
5
5
  constructor(client: UnaryClient);
@@ -1 +1 @@
1
- export * from '../signals/observable';
1
+ export * from './observable';
@@ -1 +1 @@
1
- export * as signals from '../signals/external';
1
+ export * as signals from './external';
@@ -1 +1 @@
1
- export * as user from '../user/payload';
1
+ export * as user from './payload';
@@ -1,9 +1,9 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type UnknownRecord, type AsyncTermSearcher } from "@synnaxlabs/x";
3
- import { linePlot } from '../workspace/lineplot';
4
- import { type Key, type Workspace } from '../workspace/payload';
5
- import { pid } from '../workspace/pid';
6
- import { type CrudeWorkspace } from '../workspace/writer';
3
+ import { linePlot } from './lineplot';
4
+ import { type Key, type Workspace } from './payload';
5
+ import { pid } from './pid';
6
+ import { type CrudeWorkspace } from './writer';
7
7
  export declare class Client implements AsyncTermSearcher<string, Key, Workspace> {
8
8
  readonly pid: pid.Client;
9
9
  readonly linePlot: linePlot.Client;
@@ -1,2 +1,2 @@
1
- export * from '../workspace/payload';
2
- export * from '../workspace/client';
1
+ export * from './payload';
2
+ export * from './client';
@@ -1 +1 @@
1
- export * as workspace from '../workspace/external';
1
+ export * as workspace from './external';
@@ -1,7 +1,7 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type UnknownRecord } from "@synnaxlabs/x";
3
- import { type LinePlot, type Key, type Params } from '../../workspace/lineplot/payload';
4
- import { type CrudeLinePlot } from '../../workspace/lineplot/writer';
3
+ import { type LinePlot, type Key, type Params } from './payload';
4
+ import { type CrudeLinePlot } from './writer';
5
5
  export declare class Client {
6
6
  private readonly writer;
7
7
  private readonly retriever;
@@ -1,2 +1,2 @@
1
- export * from '../../workspace/lineplot/payload';
2
- export * from '../../workspace/lineplot/client';
1
+ export * from './payload';
2
+ export * from './client';
@@ -1 +1 @@
1
- export * as linePlot from '../../workspace/lineplot/external';
1
+ export * as linePlot from './external';
@@ -1,5 +1,5 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type LinePlot, type Params } from '../../workspace/lineplot/payload';
2
+ import { type LinePlot, type Params } from './payload';
3
3
  export declare class Retriever {
4
4
  private readonly ENDPOINT;
5
5
  private readonly client;
@@ -1,7 +1,7 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type UnknownRecord } from "@synnaxlabs/x";
3
3
  import { z } from "zod";
4
- import { type LinePlot, type Params, type Key } from '../../workspace/lineplot/payload';
4
+ import { type LinePlot, type Params, type Key } from './payload';
5
5
  export declare const crudeLinePlotZ: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  key: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type UnknownRecord } from "@synnaxlabs/x";
3
- import { type Key, type Params, type PID } from '../../workspace/pid/payload';
4
- import { type UncreatedPID } from '../../workspace/pid/writer';
3
+ import { type Key, type Params, type PID } from './payload';
4
+ import { type UncreatedPID } from './writer';
5
5
  export declare class Client {
6
6
  private readonly writer;
7
7
  private readonly retriever;
@@ -1,2 +1,2 @@
1
- export * from '../../workspace/pid/payload';
2
- export * from '../../workspace/pid/client';
1
+ export * from './payload';
2
+ export * from './client';
@@ -1 +1 @@
1
- export * as pid from '../../workspace/pid/external';
1
+ export * as pid from './external';
@@ -1,7 +1,7 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type UnknownRecord } from "@synnaxlabs/x";
3
3
  import { z } from "zod";
4
- import { type PID, type Params, type Key } from '../../workspace/pid/payload';
4
+ import { type PID, type Params, type Key } from './payload';
5
5
  export declare const crudePIDz: z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  key: z.ZodOptional<z.ZodString>;
@@ -1,5 +1,5 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type Params, type Workspace } from '../workspace/payload';
2
+ import { type Params, type Workspace } from './payload';
3
3
  export declare class Retriever {
4
4
  private static readonly ENDPOINT;
5
5
  private readonly client;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@synnaxlabs/client",
3
3
  "private": false,
4
- "version": "0.13.6",
4
+ "version": "0.14.0",
5
5
  "type": "module",
6
6
  "description": "The Client Library for Synnax",
7
7
  "repository": "https://github.com/synnaxlabs/synnax/tree/main/client/ts",
@@ -17,18 +17,18 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "zod": "3.22.4",
20
- "@synnaxlabs/freighter": "0.4.1",
21
- "@synnaxlabs/x": "0.8.0"
20
+ "@synnaxlabs/freighter": "0.6.0",
21
+ "@synnaxlabs/x": "0.10.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^20.10.5",
25
- "@vitest/coverage-v8": "^1.1.0",
25
+ "@vitest/coverage-v8": "^1.2.2",
26
26
  "typescript": "^5.3.3",
27
- "vite": "^5.0.10",
28
- "vitest": "^1.1.0",
27
+ "vite": "^5.1.2",
28
+ "vitest": "^1.2.2",
29
+ "@synnaxlabs/tsconfig": "0.0.2",
29
30
  "@synnaxlabs/vite-plugin": "0.0.1",
30
- "@synnaxlabs/tsconfig": "0.0.1",
31
- "eslint-config-synnaxlabs": "0.0.0"
31
+ "eslint-config-synnaxlabs": "0.0.1"
32
32
  },
33
33
  "main": "dist/client.cjs.js",
34
34
  "module": "dist/client.es.js",