@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
@@ -27,6 +27,7 @@ export declare class Checker {
27
27
  private readonly _state;
28
28
  private readonly pollFrequency;
29
29
  private readonly client;
30
+ private readonly name?;
30
31
  private interval?;
31
32
  private readonly onChangeHandlers;
32
33
  static readonly connectionStateZ: z.ZodObject<{
@@ -50,7 +51,7 @@ export declare class Checker {
50
51
  * @param pollFreq - The frequency at which to poll the cluster for
51
52
  * connectivity information.
52
53
  */
53
- constructor(client: UnaryClient, pollFreq?: TimeSpan);
54
+ constructor(client: UnaryClient, pollFreq?: TimeSpan, name?: string);
54
55
  /** Stops the connectivity client from polling the cluster for connectivity */
55
56
  stopChecking(): void;
56
57
  /**
@@ -1 +1 @@
1
- export * as connection from '../connection/checker';
1
+ export * as connection from './checker';
@@ -1,2 +1,2 @@
1
- export * from '../control/authority';
2
- export * from '../control/state';
1
+ export * from './authority';
2
+ export * from './state';
@@ -1 +1 @@
1
- export * as control from '../control/external';
1
+ export * as control from './external';
@@ -1,7 +1,7 @@
1
1
  import { type Destructor, observe } from "@synnaxlabs/x";
2
2
  import { z } from "zod";
3
3
  import { type Key as ChannelKey } from '../channel/payload';
4
- import { Authority } from '../control/authority';
4
+ import { Authority } from './authority';
5
5
  import { type Client as FrameClient } from '../framer/client';
6
6
  export declare const subjectZ: z.ZodObject<{
7
7
  name: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  import { type Key, type Params } from '../channel/payload';
2
2
  import { type Retriever } from '../channel/retriever';
3
- import { type Frame } from '../framer/frame';
3
+ import { type Frame } from './frame';
4
4
  export declare class BackwardFrameAdapter {
5
5
  private adapter;
6
6
  retriever: Retriever;
@@ -2,10 +2,10 @@ import { type StreamClient } from "@synnaxlabs/freighter";
2
2
  import { type NativeTypedArray, type Series, type TimeRange, type CrudeTimeStamp, TimeStamp } from "@synnaxlabs/x";
3
3
  import { type KeyOrName, type Params } from '../channel/payload';
4
4
  import { type Retriever } from '../channel/retriever';
5
- import { Frame } from '../framer/frame';
6
- import { Iterator } from '../framer/iterator';
7
- import { Streamer } from '../framer/streamer';
8
- import { Writer, type WriterConfig } from '../framer/writer';
5
+ import { Frame } from './frame';
6
+ import { Iterator } from './iterator';
7
+ import { Streamer } from './streamer';
8
+ import { Writer, type WriterConfig } from './writer';
9
9
  export declare class Client {
10
10
  private readonly stream;
11
11
  private readonly retriever;
@@ -1,5 +1,5 @@
1
- export * from '../framer/client';
2
- export * from '../framer/frame';
3
- export * from '../framer/iterator';
4
- export * from '../framer/streamer';
5
- export * from '../framer/writer';
1
+ export * from './client';
2
+ export * from './frame';
3
+ export * from './iterator';
4
+ export * from './streamer';
5
+ export * from './writer';
@@ -1 +1 @@
1
- export * as framer from '../framer/external';
1
+ export * as framer from './external';
@@ -2,7 +2,7 @@ import { type StreamClient } from "@synnaxlabs/freighter";
2
2
  import { type CrudeTimeSpan, type CrudeTimeStamp, TimeRange, TimeSpan } from "@synnaxlabs/x";
3
3
  import { type Params } from '../channel/payload';
4
4
  import { type Retriever } from '../channel/retriever';
5
- import { Frame } from '../framer/frame';
5
+ import { Frame } from './frame';
6
6
  export declare const AUTO_SPAN: TimeSpan;
7
7
  /**
8
8
  * Used to iterate over a clusters telemetry in time-order. It should not be
@@ -2,7 +2,7 @@ import { type StreamClient } from "@synnaxlabs/freighter";
2
2
  import { type CrudeTimeStamp } from "@synnaxlabs/x";
3
3
  import { type Key, type Params } from '../channel/payload';
4
4
  import { type Retriever } from '../channel/retriever';
5
- import { Frame } from '../framer/frame';
5
+ import { Frame } from './frame';
6
6
  export declare class Streamer implements AsyncIterator<Frame>, AsyncIterable<Frame> {
7
7
  private readonly stream;
8
8
  private readonly adapter;
@@ -5,7 +5,7 @@ import { type Key, type KeyOrName, type Params } from '../channel/payload';
5
5
  import { type Retriever } from '../channel/retriever';
6
6
  import { Authority } from '../control/authority';
7
7
  import { type Subject as ControlSubject } from '../control/state';
8
- import { type CrudeFrame } from '../framer/frame';
8
+ import { type CrudeFrame } from './frame';
9
9
  declare enum Command {
10
10
  Open = 0,
11
11
  Write = 1,
@@ -0,0 +1,9 @@
1
+ import { type device } from './device';
2
+ import { type rack } from './rack';
3
+ import { type task } from './task';
4
+ export declare class Client {
5
+ readonly tasks: task.Client;
6
+ readonly racks: rack.Client;
7
+ readonly devices: device.Client;
8
+ constructor(tasks: task.Client, racks: rack.Client, devices: device.Client);
9
+ }
@@ -0,0 +1,16 @@
1
+ import { type framer } from '../../framer';
2
+ import { type Device } from './payload';
3
+ import { type Retriever } from './retriever';
4
+ import { type Writer } from './writer';
5
+ import { signals } from '../../signals';
6
+ export declare class Client {
7
+ private readonly retriever;
8
+ private readonly writer;
9
+ private readonly frameClient;
10
+ constructor(retriever: Retriever, writer: Writer, frameClient: framer.Client);
11
+ create(device: Device): Promise<Device>;
12
+ retrieve(key: string): Promise<Device>;
13
+ retrieve(keys: string[]): Promise<Device[]>;
14
+ delete(keys: string[]): Promise<void>;
15
+ openDeviceTracker(): Promise<signals.Observable<string, Device>>;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './client';
2
+ export * from './retriever';
3
+ export * from './writer';
@@ -0,0 +1 @@
1
+ export * as device from './external';
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ export declare const deviceKeyZ: z.ZodString;
3
+ export declare const deviceZ: z.ZodObject<{
4
+ key: z.ZodString;
5
+ rack: z.ZodNumber;
6
+ name: z.ZodString;
7
+ make: z.ZodString;
8
+ model: z.ZodString;
9
+ location: z.ZodString;
10
+ properties: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name: string;
13
+ key: string;
14
+ rack: number;
15
+ make: string;
16
+ model: string;
17
+ location: string;
18
+ properties: string;
19
+ }, {
20
+ name: string;
21
+ key: string;
22
+ rack: number;
23
+ make: string;
24
+ model: string;
25
+ location: string;
26
+ properties: string;
27
+ }>;
28
+ export type Device = z.infer<typeof deviceZ>;
29
+ export type DeviceKey = z.infer<typeof deviceKeyZ>;
@@ -0,0 +1,7 @@
1
+ import { type UnaryClient } from "@synnaxlabs/freighter";
2
+ import { type Device } from './payload';
3
+ export declare class Retriever {
4
+ private readonly client;
5
+ constructor(client: UnaryClient);
6
+ retrieve(keys: string[]): Promise<Device[]>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { type UnaryClient } from "@synnaxlabs/freighter";
2
+ import { type Device } from './payload';
3
+ export declare class Writer {
4
+ private readonly client;
5
+ constructor(client: UnaryClient);
6
+ create(devices: Device[]): Promise<Device[]>;
7
+ delete(keys: string[]): Promise<void>;
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './rack';
2
+ export * from './client';
@@ -0,0 +1 @@
1
+ export * as hardware from './external';
@@ -0,0 +1,29 @@
1
+ import { type framer } from '../../framer';
2
+ import { type NewRack } from './payload';
3
+ import { type Retriever } from './retriever';
4
+ import { type Writer } from './writer';
5
+ import { type NewTask, type Task } from '../task/payload';
6
+ import { type Retriever as TaskRetriever } from '../task/retriever';
7
+ import { type Writer as TaskWriter } from '../task/writer';
8
+ export declare class Client {
9
+ private readonly retriever;
10
+ private readonly writer;
11
+ private readonly frameClient;
12
+ private readonly taskWriter;
13
+ private readonly taskRetriever;
14
+ constructor(retriever: Retriever, writer: Writer, frameClient: framer.Client, taskWriter: TaskWriter, taskRetriever: TaskRetriever);
15
+ create(rack: NewRack): Promise<Rack>;
16
+ retrieve(key: number): Promise<Rack>;
17
+ private sugar;
18
+ }
19
+ export declare class Rack {
20
+ key: number;
21
+ name: string;
22
+ private readonly writer;
23
+ private readonly retriever;
24
+ constructor(key: number, name: string, _writer: TaskWriter, _retriever: TaskRetriever);
25
+ listTasks(): Promise<Task[]>;
26
+ retrieveTasks(): Promise<Task[]>;
27
+ createTask(task: NewTask): Promise<Task>;
28
+ deleteTask(task: bigint): Promise<void>;
29
+ }
@@ -0,0 +1,3 @@
1
+ export * from './client';
2
+ export * from './writer';
3
+ export * from './retriever';
@@ -0,0 +1 @@
1
+ export * as rack from './external';
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ export declare const rackKeyZ: z.ZodNumber;
3
+ export type RackKey = z.infer<typeof rackKeyZ>;
4
+ export declare const rackZ: z.ZodObject<{
5
+ key: z.ZodNumber;
6
+ name: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ name: string;
9
+ key: number;
10
+ }, {
11
+ name: string;
12
+ key: number;
13
+ }>;
14
+ export type RackPayload = z.infer<typeof rackZ>;
15
+ export declare const newRackZ: z.ZodObject<{
16
+ name: z.ZodString;
17
+ key: z.ZodOptional<z.ZodNumber>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ key?: number | undefined;
21
+ }, {
22
+ name: string;
23
+ key?: number | undefined;
24
+ }>;
25
+ export type NewRack = z.input<typeof newRackZ>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type UnaryClient } from "@synnaxlabs/freighter";
2
+ import { type RackPayload } from './payload';
3
+ export declare class Retriever {
4
+ private readonly client;
5
+ constructor(client: UnaryClient);
6
+ retrieve(keys: number[]): Promise<RackPayload[]>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { NewRack, RackPayload } from './payload';
2
+ import { UnaryClient } from "@synnaxlabs/freighter";
3
+ export declare class Writer {
4
+ private readonly client;
5
+ constructor(client: UnaryClient);
6
+ create(racks: NewRack[]): Promise<RackPayload[]>;
7
+ delete(keys: number[]): Promise<void>;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { type NewTask, type Task } from './payload';
2
+ import { type Retriever } from './retriever';
3
+ import { type Writer } from './writer';
4
+ export declare class Client {
5
+ private readonly retriever;
6
+ private readonly writer;
7
+ constructor(retriever: Retriever, writer: Writer);
8
+ create(task: NewTask): Promise<Task>;
9
+ retrieve(rack: number): Promise<Task[]>;
10
+ retrieve(keys: string[]): Promise<Task[]>;
11
+ retrieve(key: string): Promise<Task>;
12
+ }
@@ -0,0 +1,3 @@
1
+ export * from './client';
2
+ export * from './retriever';
3
+ export * from './writer';
@@ -0,0 +1 @@
1
+ export * as task from './external';
@@ -0,0 +1,40 @@
1
+ import { type UnknownRecord } from "@synnaxlabs/x";
2
+ import { z } from "zod";
3
+ export declare const taskKeyZ: z.ZodEffects<z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, string, number | bigint>;
4
+ export declare const taskZ: z.ZodObject<{
5
+ key: z.ZodEffects<z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, string, number | bigint>;
6
+ name: z.ZodString;
7
+ type: z.ZodString;
8
+ config: z.ZodType<Partial<Record<import("@synnaxlabs/x").Key, unknown>>, z.ZodTypeDef, Partial<Record<import("@synnaxlabs/x").Key, unknown>>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ name: string;
11
+ key: string;
12
+ type: string;
13
+ config: Partial<Record<import("@synnaxlabs/x").Key, unknown>>;
14
+ }, {
15
+ name: string;
16
+ key: number | bigint;
17
+ type: string;
18
+ config: Partial<Record<import("@synnaxlabs/x").Key, unknown>>;
19
+ }>;
20
+ export declare const newTaskZ: z.ZodObject<{
21
+ name: z.ZodString;
22
+ type: z.ZodString;
23
+ key: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, string, number | bigint>, string, number | bigint>>;
24
+ config: z.ZodEffects<z.ZodUnknown, string, unknown>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ name: string;
27
+ type: string;
28
+ config: string;
29
+ key?: string | undefined;
30
+ }, {
31
+ name: string;
32
+ type: string;
33
+ key?: number | bigint | undefined;
34
+ config?: unknown;
35
+ }>;
36
+ export type NewTask = z.input<typeof newTaskZ>;
37
+ export type Task<T extends string = string, C extends UnknownRecord = UnknownRecord> = Omit<z.infer<typeof taskZ>, "config" | "type"> & {
38
+ type: T;
39
+ config: C;
40
+ };
@@ -0,0 +1,20 @@
1
+ import { type UnaryClient } from "@synnaxlabs/freighter";
2
+ import { z } from "zod";
3
+ import { type Task } from './payload';
4
+ declare const retrieveReqZ: z.ZodObject<{
5
+ rack: z.ZodOptional<z.ZodNumber>;
6
+ keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ rack?: number | undefined;
9
+ keys?: string[] | undefined;
10
+ }, {
11
+ rack?: number | undefined;
12
+ keys?: string[] | undefined;
13
+ }>;
14
+ export type RetrieveRequest = z.infer<typeof retrieveReqZ>;
15
+ export declare class Retriever {
16
+ private readonly client;
17
+ constructor(client: UnaryClient);
18
+ retrieve(params: RetrieveRequest): Promise<Task[]>;
19
+ }
20
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type UnaryClient } from "@synnaxlabs/freighter";
2
+ import { type NewTask, type Task } from './payload';
3
+ export declare class Writer {
4
+ private readonly client;
5
+ constructor(client: UnaryClient);
6
+ create(tasks: NewTask[]): Promise<Task[]>;
7
+ delete(keys: bigint[]): Promise<void>;
8
+ }
package/dist/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export type { NativeTypedArray, CrudeDataType, CrudeDensity, CrudeRate, CrudeSiz
14
14
  export { workspace } from './workspace';
15
15
  export { ranger } from './ranger';
16
16
  export { label } from './label';
17
+ export { hardware } from './hardware';
@@ -1,8 +1,8 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type AsyncTermSearcher } from "@synnaxlabs/x";
3
3
  import { type framer } from '../framer';
4
- import { type Key, type Label } from '../label/payload';
5
- import { type NewLabelPayload } from '../label/writer';
4
+ import { type Key, type Label } from './payload';
5
+ import { type NewLabelPayload } from './writer';
6
6
  import { type ontology } from '../ontology';
7
7
  import { signals } from '../signals';
8
8
  export declare class Client implements AsyncTermSearcher<string, Key, Label> {
@@ -1,4 +1,4 @@
1
- export * from '../label/client';
2
- export * from '../label/writer';
3
- export * from '../label/retriever';
4
- export * from '../label/payload';
1
+ export * from './client';
2
+ export * from './writer';
3
+ export * from './retriever';
4
+ export * from './payload';
@@ -1 +1 @@
1
- export * as label from '../label/external';
1
+ export * as label from './external';
@@ -1,5 +1,5 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type Label, type Params } from '../label/payload';
2
+ import { type Label, type Params } from './payload';
3
3
  import { ontology } from '../ontology';
4
4
  export declare class Retriever {
5
5
  private static readonly ENDPOINT;
@@ -1,6 +1,6 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { z } from "zod";
3
- import { type Key, type Label } from '../label/payload';
3
+ import { type Key, type Label } from './payload';
4
4
  import { ontology } from '../ontology';
5
5
  export declare const newLabelPayloadZ: z.ZodObject<{
6
6
  name: z.ZodString;
@@ -1,10 +1,10 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
2
  import { type AsyncTermSearcher } from "@synnaxlabs/x";
3
3
  import { type Client as FrameClient } from '../framer/client';
4
- import { group } from '../ontology/group';
5
- import { type ID, type Resource } from '../ontology/payload';
6
- import { Retriever } from '../ontology/retriever';
7
- import { ChangeTracker } from '../ontology/signals';
4
+ import { group } from './group';
5
+ import { type ID, type Resource } from './payload';
6
+ import { Retriever } from './retriever';
7
+ import { ChangeTracker } from './signals';
8
8
  /** The core client class for executing queries against a Synnax cluster ontology */
9
9
  export declare class Client implements AsyncTermSearcher<string, string, Resource> {
10
10
  groups: group.Client;
@@ -1,3 +1,3 @@
1
- export * from '../ontology/client';
2
- export * from '../ontology/payload';
3
- export * from '../ontology/signals';
1
+ export * from './client';
2
+ export * from './payload';
3
+ export * from './signals';
@@ -1,6 +1,6 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type ID } from '../../ontology/payload';
3
- import { Group } from "./group";
2
+ import { type ID } from '../payload';
3
+ import { Group } from './group';
4
4
  export declare class Client {
5
5
  private readonly creator;
6
6
  constructor(unary: UnaryClient);
@@ -1,2 +1,2 @@
1
- export * from '../../ontology/group/group';
2
- export * from '../../ontology/group/client';
1
+ export * from './group';
2
+ export * from './client';
@@ -1,4 +1,4 @@
1
- import { ontology } from '../../ontology';
1
+ import { ontology } from '..';
2
2
  export declare class Group {
3
3
  key: string;
4
4
  name: string;
@@ -1 +1 @@
1
- export * as group from '../../ontology/group/external';
1
+ export * as group from './external';
@@ -1,6 +1,6 @@
1
1
  import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type Payload } from '../../ontology/group/payload';
3
- import { type ID } from '../../ontology/payload';
2
+ import { type Payload } from './payload';
3
+ import { type ID } from '../payload';
4
4
  export declare class Writer {
5
5
  private static readonly ENDPOINT;
6
6
  private static readonly ENDPOINT_RENAME;
@@ -1 +1 @@
1
- export * as ontology from '../ontology/external';
1
+ export * as ontology from './external';