@synnaxlabs/client 0.41.0 → 0.42.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 (133) hide show
  1. package/.turbo/turbo-build.log +6 -6
  2. package/dist/access/payload.d.ts +7 -1
  3. package/dist/access/payload.d.ts.map +1 -1
  4. package/dist/access/policy/payload.d.ts +182 -142
  5. package/dist/access/policy/payload.d.ts.map +1 -1
  6. package/dist/access/policy/retriever.d.ts +25 -22
  7. package/dist/access/policy/retriever.d.ts.map +1 -1
  8. package/dist/auth/auth.d.ts +1 -7
  9. package/dist/auth/auth.d.ts.map +1 -1
  10. package/dist/channel/client.d.ts +2 -7
  11. package/dist/channel/client.d.ts.map +1 -1
  12. package/dist/channel/payload.d.ts +13 -74
  13. package/dist/channel/payload.d.ts.map +1 -1
  14. package/dist/channel/retriever.d.ts +5 -31
  15. package/dist/channel/retriever.d.ts.map +1 -1
  16. package/dist/channel/writer.d.ts +6 -18
  17. package/dist/channel/writer.d.ts.map +1 -1
  18. package/dist/client.cjs +36 -31
  19. package/dist/client.d.ts +8 -56
  20. package/dist/client.d.ts.map +1 -1
  21. package/dist/client.js +6486 -3979
  22. package/dist/connection/checker.d.ts +22 -39
  23. package/dist/connection/checker.d.ts.map +1 -1
  24. package/dist/control/client.d.ts.map +1 -1
  25. package/dist/control/state.d.ts +6 -26
  26. package/dist/control/state.d.ts.map +1 -1
  27. package/dist/errors.d.ts +31 -56
  28. package/dist/errors.d.ts.map +1 -1
  29. package/dist/framer/adapter.d.ts +4 -0
  30. package/dist/framer/adapter.d.ts.map +1 -1
  31. package/dist/framer/client.d.ts +2 -2
  32. package/dist/framer/client.d.ts.map +1 -1
  33. package/dist/framer/codec.d.ts +34 -0
  34. package/dist/framer/codec.d.ts.map +1 -0
  35. package/dist/framer/codec.spec.d.ts +2 -0
  36. package/dist/framer/codec.spec.d.ts.map +1 -0
  37. package/dist/framer/deleter.d.ts +12 -49
  38. package/dist/framer/deleter.d.ts.map +1 -1
  39. package/dist/framer/frame.d.ts +26 -88
  40. package/dist/framer/frame.d.ts.map +1 -1
  41. package/dist/framer/iterator.d.ts.map +1 -1
  42. package/dist/framer/streamer.d.ts +69 -11
  43. package/dist/framer/streamer.d.ts.map +1 -1
  44. package/dist/framer/writer.d.ts +60 -257
  45. package/dist/framer/writer.d.ts.map +1 -1
  46. package/dist/hardware/device/client.d.ts +7 -31
  47. package/dist/hardware/device/client.d.ts.map +1 -1
  48. package/dist/hardware/device/payload.d.ts +11 -93
  49. package/dist/hardware/device/payload.d.ts.map +1 -1
  50. package/dist/hardware/rack/payload.d.ts +15 -103
  51. package/dist/hardware/rack/payload.d.ts.map +1 -1
  52. package/dist/hardware/task/client.d.ts +4 -20
  53. package/dist/hardware/task/client.d.ts.map +1 -1
  54. package/dist/hardware/task/payload.d.ts +41 -116
  55. package/dist/hardware/task/payload.d.ts.map +1 -1
  56. package/dist/index.d.ts +0 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/label/payload.d.ts +1 -9
  59. package/dist/label/payload.d.ts.map +1 -1
  60. package/dist/label/writer.d.ts +27 -36
  61. package/dist/label/writer.d.ts.map +1 -1
  62. package/dist/ontology/client.d.ts +46 -36
  63. package/dist/ontology/client.d.ts.map +1 -1
  64. package/dist/ontology/group/payload.d.ts +1 -7
  65. package/dist/ontology/group/payload.d.ts.map +1 -1
  66. package/dist/ontology/payload.d.ts +239 -146
  67. package/dist/ontology/payload.d.ts.map +1 -1
  68. package/dist/ranger/client.d.ts +13 -58
  69. package/dist/ranger/client.d.ts.map +1 -1
  70. package/dist/ranger/kv.d.ts +7 -49
  71. package/dist/ranger/kv.d.ts.map +1 -1
  72. package/dist/ranger/payload.d.ts +21 -99
  73. package/dist/ranger/payload.d.ts.map +1 -1
  74. package/dist/ranger/writer.d.ts +35 -88
  75. package/dist/ranger/writer.d.ts.map +1 -1
  76. package/dist/testutil/indexedPair.d.ts +5 -0
  77. package/dist/testutil/indexedPair.d.ts.map +1 -0
  78. package/dist/testutil/telem.d.ts +3 -0
  79. package/dist/testutil/telem.d.ts.map +1 -0
  80. package/dist/transport.d.ts +2 -2
  81. package/dist/transport.d.ts.map +1 -1
  82. package/dist/user/payload.d.ts +3 -29
  83. package/dist/user/payload.d.ts.map +1 -1
  84. package/dist/user/retriever.d.ts +3 -9
  85. package/dist/user/retriever.d.ts.map +1 -1
  86. package/dist/util/decodeJSONString.d.ts.map +1 -1
  87. package/dist/util/zod.d.ts +1 -1
  88. package/dist/util/zod.d.ts.map +1 -1
  89. package/dist/workspace/lineplot/payload.d.ts +10 -26
  90. package/dist/workspace/lineplot/payload.d.ts.map +1 -1
  91. package/dist/workspace/log/payload.d.ts +10 -26
  92. package/dist/workspace/log/payload.d.ts.map +1 -1
  93. package/dist/workspace/payload.d.ts +14 -40
  94. package/dist/workspace/payload.d.ts.map +1 -1
  95. package/dist/workspace/schematic/payload.d.ts +13 -45
  96. package/dist/workspace/schematic/payload.d.ts.map +1 -1
  97. package/dist/workspace/table/payload.d.ts +13 -39
  98. package/dist/workspace/table/payload.d.ts.map +1 -1
  99. package/package.json +6 -6
  100. package/src/channel/channel.spec.ts +26 -27
  101. package/src/channel/client.ts +0 -9
  102. package/src/channel/payload.ts +22 -5
  103. package/src/channel/retriever.ts +12 -6
  104. package/src/client.ts +3 -3
  105. package/src/control/client.ts +5 -2
  106. package/src/control/state.ts +8 -3
  107. package/src/errors.spec.ts +5 -4
  108. package/src/errors.ts +21 -82
  109. package/src/framer/adapter.ts +22 -3
  110. package/src/framer/client.ts +38 -21
  111. package/src/framer/codec.spec.ts +303 -0
  112. package/src/framer/codec.ts +396 -0
  113. package/src/framer/deleter.spec.ts +51 -63
  114. package/src/framer/frame.ts +16 -5
  115. package/src/framer/iterator.spec.ts +45 -28
  116. package/src/framer/iterator.ts +6 -5
  117. package/src/framer/streamProxy.ts +1 -1
  118. package/src/framer/streamer.spec.ts +10 -18
  119. package/src/framer/streamer.ts +138 -22
  120. package/src/framer/writer.spec.ts +125 -150
  121. package/src/framer/writer.ts +74 -68
  122. package/src/hardware/device/payload.ts +3 -3
  123. package/src/hardware/task/payload.ts +9 -6
  124. package/src/hardware/task/task.spec.ts +1 -1
  125. package/src/index.ts +0 -2
  126. package/src/ontology/group/group.spec.ts +2 -2
  127. package/src/ontology/payload.ts +3 -3
  128. package/src/ranger/ranger.spec.ts +9 -7
  129. package/src/testutil/indexedPair.ts +40 -0
  130. package/src/testutil/telem.ts +13 -0
  131. package/src/transport.ts +1 -2
  132. package/src/util/decodeJSONString.ts +2 -2
  133. package/src/util/retrieve.spec.ts +1 -1
@@ -7,15 +7,30 @@ import { group } from './group';
7
7
  import { CrudeID, ID, IDPayload, RelationshipChange, RelationshipDirection, Resource, ResourceChange } from './payload';
8
8
  declare const retrieveReqZ: z.ZodObject<{
9
9
  ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
10
+ type: z.ZodEnum<{
11
+ policy: "policy";
12
+ allow_all: "allow_all";
13
+ channel: "channel";
14
+ group: "group";
15
+ framer: "framer";
16
+ rack: "rack";
17
+ device: "device";
18
+ task: "task";
19
+ label: "label";
20
+ range: "range";
21
+ "range-alias": "range-alias";
22
+ user: "user";
23
+ lineplot: "lineplot";
24
+ log: "log";
25
+ workspace: "workspace";
26
+ schematic: "schematic";
27
+ table: "table";
28
+ builtin: "builtin";
29
+ cluster: "cluster";
30
+ node: "node";
31
+ }>;
11
32
  key: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
14
- key: string;
15
- }, {
16
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
17
- key: string;
18
- }>, "many">>;
33
+ }, {}>>>;
19
34
  children: z.ZodOptional<z.ZodBoolean>;
20
35
  parents: z.ZodOptional<z.ZodBoolean>;
21
36
  includeSchema: z.ZodOptional<z.ZodBoolean>;
@@ -23,34 +38,29 @@ declare const retrieveReqZ: z.ZodObject<{
23
38
  term: z.ZodOptional<z.ZodString>;
24
39
  limit: z.ZodOptional<z.ZodNumber>;
25
40
  offset: z.ZodOptional<z.ZodNumber>;
26
- types: z.ZodOptional<z.ZodArray<z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>, "many">>;
27
- }, "strip", z.ZodTypeAny, {
28
- limit?: number | undefined;
29
- offset?: number | undefined;
30
- children?: boolean | undefined;
31
- ids?: {
32
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
33
- key: string;
34
- }[] | undefined;
35
- parents?: boolean | undefined;
36
- includeSchema?: boolean | undefined;
37
- excludeFieldData?: boolean | undefined;
38
- term?: string | undefined;
39
- types?: ("policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node")[] | undefined;
40
- }, {
41
- limit?: number | undefined;
42
- offset?: number | undefined;
43
- children?: boolean | undefined;
44
- ids?: {
45
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
46
- key: string;
47
- }[] | undefined;
48
- parents?: boolean | undefined;
49
- includeSchema?: boolean | undefined;
50
- excludeFieldData?: boolean | undefined;
51
- term?: string | undefined;
52
- types?: ("policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node")[] | undefined;
53
- }>;
41
+ types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
42
+ policy: "policy";
43
+ allow_all: "allow_all";
44
+ channel: "channel";
45
+ group: "group";
46
+ framer: "framer";
47
+ rack: "rack";
48
+ device: "device";
49
+ task: "task";
50
+ label: "label";
51
+ range: "range";
52
+ "range-alias": "range-alias";
53
+ user: "user";
54
+ lineplot: "lineplot";
55
+ log: "log";
56
+ workspace: "workspace";
57
+ schematic: "schematic";
58
+ table: "table";
59
+ builtin: "builtin";
60
+ cluster: "cluster";
61
+ node: "node";
62
+ }>>>;
63
+ }, {}>;
54
64
  interface RetrieveRequest extends z.infer<typeof retrieveReqZ> {
55
65
  }
56
66
  export interface RetrieveOptions extends Pick<RetrieveRequest, "includeSchema" | "excludeFieldData" | "types"> {
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ontology/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAoB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EACL,KAAK,OAAO,EACZ,EAAE,EACF,KAAK,SAAS,EAGd,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EACb,KAAK,cAAc,EAGpB,MAAM,oBAAoB,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B;IAkB/B,OAAO,CAAC,oBAAoB;WAUf,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CASpF;AAKD,UAAU,qBAAqB;IAC7B,MAAM,EAAE,EAAE,CAAC;IACX,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,qBAAa,gBACX,SAAQ,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,CACnC,YAAW,OAAO,CAAC,wBAAwB,CAAC,QAAQ,EAAE,CAAC;IAEvD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAK;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAwB;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;IACvC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAEjC,OAAO;WAwBM,IAAI,CACf,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC;IAK5B,OAAO,CAAC,oBAAoB,CAO1B;IAEF,OAAO,CAAC,wBAAwB,CAgC9B;IAEI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
@@ -9,13 +9,7 @@ export type Params = Key | Name | Keys | Names;
9
9
  export declare const groupZ: z.ZodObject<{
10
10
  key: z.ZodString;
11
11
  name: z.ZodString;
12
- }, "strip", z.ZodTypeAny, {
13
- name: string;
14
- key: string;
15
- }, {
16
- name: string;
17
- key: string;
18
- }>;
12
+ }, {}>;
19
13
  export interface Payload extends z.infer<typeof groupZ> {
20
14
  }
21
15
  export type ParamAnalysisResult = {
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/payload.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,eAAO,MAAM,KAAK,aAAa,CAAC;AAChC,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,KAAK,GAAG,IAAI,EAAE,CAAC;AAC3B,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,eAAO,MAAM,MAAM;;;;;;;;;EAAuC,CAAC;AAC3D,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAE1D,MAAM,MAAM,mBAAmB,GAC3B;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,GAChE;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,GACnE;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,GAClE;IAAE,MAAM,EAAE,KAAK,CAAC;IA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C;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,IAAI,CAAA;CAAE,GAClE;IAAE,MAAM,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,KAAK,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,mBAU9C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC"}
@@ -13,37 +13,88 @@ export interface RelationshipDelete extends change.Delete<Relationship, undefine
13
13
  export declare const BUILTIN_TYPE = "builtin";
14
14
  export declare const CLUSTER_TYPE = "cluster";
15
15
  export declare const NODE_TYPE = "node";
16
- export declare const resourceTypeZ: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
16
+ export declare const resourceTypeZ: z.ZodEnum<{
17
+ policy: "policy";
18
+ allow_all: "allow_all";
19
+ channel: "channel";
20
+ group: "group";
21
+ framer: "framer";
22
+ rack: "rack";
23
+ device: "device";
24
+ task: "task";
25
+ label: "label";
26
+ range: "range";
27
+ "range-alias": "range-alias";
28
+ user: "user";
29
+ lineplot: "lineplot";
30
+ log: "log";
31
+ workspace: "workspace";
32
+ schematic: "schematic";
33
+ table: "table";
34
+ builtin: "builtin";
35
+ cluster: "cluster";
36
+ node: "node";
37
+ }>;
17
38
  export type ResourceType = z.infer<typeof resourceTypeZ>;
18
39
  export declare const idZ: z.ZodObject<{
19
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
40
+ type: z.ZodEnum<{
41
+ policy: "policy";
42
+ allow_all: "allow_all";
43
+ channel: "channel";
44
+ group: "group";
45
+ framer: "framer";
46
+ rack: "rack";
47
+ device: "device";
48
+ task: "task";
49
+ label: "label";
50
+ range: "range";
51
+ "range-alias": "range-alias";
52
+ user: "user";
53
+ lineplot: "lineplot";
54
+ log: "log";
55
+ workspace: "workspace";
56
+ schematic: "schematic";
57
+ table: "table";
58
+ builtin: "builtin";
59
+ cluster: "cluster";
60
+ node: "node";
61
+ }>;
20
62
  key: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
23
- key: string;
24
- }, {
25
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
26
- key: string;
27
- }>;
63
+ }, {}>;
28
64
  export interface IDPayload extends z.infer<typeof idZ> {
29
65
  }
30
- export declare const stringIDZ: z.ZodEffects<z.ZodString, {
66
+ export declare const stringIDZ: z.ZodPipe<z.ZodString, z.ZodTransform<{
31
67
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
32
68
  key: string;
33
- }, string>;
34
- export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
69
+ }, string>>;
70
+ export declare const crudeIDZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
35
71
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
36
72
  key: string;
37
- }, string>, z.ZodObject<{
38
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
73
+ }, string>>, z.ZodObject<{
74
+ type: z.ZodEnum<{
75
+ policy: "policy";
76
+ allow_all: "allow_all";
77
+ channel: "channel";
78
+ group: "group";
79
+ framer: "framer";
80
+ rack: "rack";
81
+ device: "device";
82
+ task: "task";
83
+ label: "label";
84
+ range: "range";
85
+ "range-alias": "range-alias";
86
+ user: "user";
87
+ lineplot: "lineplot";
88
+ log: "log";
89
+ workspace: "workspace";
90
+ schematic: "schematic";
91
+ table: "table";
92
+ builtin: "builtin";
93
+ cluster: "cluster";
94
+ node: "node";
95
+ }>;
39
96
  key: z.ZodString;
40
- }, "strip", z.ZodTypeAny, {
41
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
42
- key: string;
43
- }, {
44
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
45
- key: string;
46
- }>]>;
97
+ }, {}>]>;
47
98
  export type CrudeID = z.input<typeof crudeIDZ>;
48
99
  export declare class ID {
49
100
  type: ResourceType;
@@ -53,142 +104,162 @@ export declare class ID {
53
104
  isType(): boolean;
54
105
  matchesType(type: ResourceType): boolean;
55
106
  get payload(): IDPayload;
56
- static readonly z: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
107
+ static readonly z: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
57
108
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
58
109
  key: string;
59
- }, string>, z.ZodObject<{
60
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
110
+ }, string>>, z.ZodObject<{
111
+ type: z.ZodEnum<{
112
+ policy: "policy";
113
+ allow_all: "allow_all";
114
+ channel: "channel";
115
+ group: "group";
116
+ framer: "framer";
117
+ rack: "rack";
118
+ device: "device";
119
+ task: "task";
120
+ label: "label";
121
+ range: "range";
122
+ "range-alias": "range-alias";
123
+ user: "user";
124
+ lineplot: "lineplot";
125
+ log: "log";
126
+ workspace: "workspace";
127
+ schematic: "schematic";
128
+ table: "table";
129
+ builtin: "builtin";
130
+ cluster: "cluster";
131
+ node: "node";
132
+ }>;
61
133
  key: z.ZodString;
62
- }, "strip", z.ZodTypeAny, {
134
+ }, {}>]>, z.ZodTransform<ID, {
63
135
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
64
136
  key: string;
65
- }, {
137
+ } | {
66
138
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
67
139
  key: string;
68
- }>]>, ID, string | {
69
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
70
- key: string;
71
- }>]>;
140
+ }>>]>;
72
141
  }
73
142
  export declare const ROOT_ID: ID;
74
143
  export declare const schemaFieldZ: z.ZodObject<{
75
144
  type: z.ZodNumber;
76
- }, "strip", z.ZodTypeAny, {
77
- type: number;
78
- }, {
79
- type: number;
80
- }>;
145
+ }, {}>;
81
146
  export interface SchemaField extends z.infer<typeof schemaFieldZ> {
82
147
  }
83
148
  export declare const schemaZ: z.ZodObject<{
84
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
149
+ type: z.ZodEnum<{
150
+ policy: "policy";
151
+ allow_all: "allow_all";
152
+ channel: "channel";
153
+ group: "group";
154
+ framer: "framer";
155
+ rack: "rack";
156
+ device: "device";
157
+ task: "task";
158
+ label: "label";
159
+ range: "range";
160
+ "range-alias": "range-alias";
161
+ user: "user";
162
+ lineplot: "lineplot";
163
+ log: "log";
164
+ workspace: "workspace";
165
+ schematic: "schematic";
166
+ table: "table";
167
+ builtin: "builtin";
168
+ cluster: "cluster";
169
+ node: "node";
170
+ }>;
85
171
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
86
172
  type: z.ZodNumber;
87
- }, "strip", z.ZodTypeAny, {
88
- type: number;
89
- }, {
90
- type: number;
91
- }>>;
92
- }, "strip", z.ZodTypeAny, {
93
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
94
- fields: Record<string, {
95
- type: number;
96
- }>;
97
- }, {
98
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
99
- fields: Record<string, {
100
- type: number;
101
- }>;
102
- }>;
173
+ }, {}>>;
174
+ }, {}>;
103
175
  export interface Schema extends z.infer<typeof schemaZ> {
104
176
  }
105
- export declare const resourceZ: z.ZodEffects<z.ZodObject<{
106
- id: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
177
+ export declare const resourceZ: z.ZodPipe<z.ZodObject<{
178
+ id: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
107
179
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
108
180
  key: string;
109
- }, string>, z.ZodObject<{
110
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
181
+ }, string>>, z.ZodObject<{
182
+ type: z.ZodEnum<{
183
+ policy: "policy";
184
+ allow_all: "allow_all";
185
+ channel: "channel";
186
+ group: "group";
187
+ framer: "framer";
188
+ rack: "rack";
189
+ device: "device";
190
+ task: "task";
191
+ label: "label";
192
+ range: "range";
193
+ "range-alias": "range-alias";
194
+ user: "user";
195
+ lineplot: "lineplot";
196
+ log: "log";
197
+ workspace: "workspace";
198
+ schematic: "schematic";
199
+ table: "table";
200
+ builtin: "builtin";
201
+ cluster: "cluster";
202
+ node: "node";
203
+ }>;
111
204
  key: z.ZodString;
112
- }, "strip", z.ZodTypeAny, {
205
+ }, {}>]>, z.ZodTransform<ID, {
113
206
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
114
207
  key: string;
115
- }, {
208
+ } | {
116
209
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
117
210
  key: string;
118
- }>]>, ID, string | {
119
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
120
- key: string;
121
- }>]>;
211
+ }>>]>;
122
212
  name: z.ZodString;
123
213
  schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
124
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
214
+ type: z.ZodEnum<{
215
+ policy: "policy";
216
+ allow_all: "allow_all";
217
+ channel: "channel";
218
+ group: "group";
219
+ framer: "framer";
220
+ rack: "rack";
221
+ device: "device";
222
+ task: "task";
223
+ label: "label";
224
+ range: "range";
225
+ "range-alias": "range-alias";
226
+ user: "user";
227
+ lineplot: "lineplot";
228
+ log: "log";
229
+ workspace: "workspace";
230
+ schematic: "schematic";
231
+ table: "table";
232
+ builtin: "builtin";
233
+ cluster: "cluster";
234
+ node: "node";
235
+ }>;
125
236
  fields: z.ZodRecord<z.ZodString, z.ZodObject<{
126
237
  type: z.ZodNumber;
127
- }, "strip", z.ZodTypeAny, {
128
- type: number;
129
- }, {
130
- type: number;
131
- }>>;
132
- }, "strip", z.ZodTypeAny, {
133
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
134
- fields: Record<string, {
135
- type: number;
136
- }>;
137
- }, {
138
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
139
- fields: Record<string, {
140
- type: number;
141
- }>;
142
- }>>>;
143
- data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
144
- }, "strip", z.ZodTypeAny, {
145
- name: string;
146
- id: ID;
147
- data?: Record<string, unknown> | null | undefined;
148
- schema?: {
149
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
150
- fields: Record<string, {
151
- type: number;
152
- }>;
153
- } | null | undefined;
154
- }, {
155
- name: string;
156
- id: string | ID | {
157
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
158
- key: string;
159
- };
160
- data?: Record<string, unknown> | null | undefined;
238
+ }, {}>>;
239
+ }, {}>>>;
240
+ data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>>>;
241
+ }, {}>, z.ZodTransform<{
242
+ data?: Record<string | number | symbol, unknown> | null | undefined;
161
243
  schema?: {
162
244
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
163
245
  fields: Record<string, {
164
246
  type: number;
165
247
  }>;
166
248
  } | null | undefined;
167
- }>, {
168
- name: string;
169
249
  id: ID;
170
- data?: Record<string, unknown> | null | undefined;
171
- schema?: {
172
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
173
- fields: Record<string, {
174
- type: number;
175
- }>;
176
- } | null | undefined;
250
+ name: string;
177
251
  key: string;
178
252
  }, {
179
- name: string;
180
- id: string | ID | {
181
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
182
- key: string;
183
- };
184
- data?: Record<string, unknown> | null | undefined;
253
+ data?: Record<string | number | symbol, unknown> | null | undefined;
185
254
  schema?: {
186
255
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
187
256
  fields: Record<string, {
188
257
  type: number;
189
258
  }>;
190
259
  } | null | undefined;
191
- }>;
260
+ id: ID;
261
+ name: string;
262
+ }>>;
192
263
  export interface Resource<T extends UnknownRecord = UnknownRecord> extends Omit<z.output<typeof resourceZ>, "data"> {
193
264
  data?: T | null;
194
265
  }
@@ -196,54 +267,76 @@ export declare const TO_RELATIONSHIP_DIRECTION = "to";
196
267
  export declare const FROM_RELATIONSHIP_DIRECTION = "from";
197
268
  export type RelationshipDirection = typeof TO_RELATIONSHIP_DIRECTION | typeof FROM_RELATIONSHIP_DIRECTION;
198
269
  export declare const relationshipSchemaZ: z.ZodObject<{
199
- from: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
270
+ from: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
200
271
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
201
272
  key: string;
202
- }, string>, z.ZodObject<{
203
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
273
+ }, string>>, z.ZodObject<{
274
+ type: z.ZodEnum<{
275
+ policy: "policy";
276
+ allow_all: "allow_all";
277
+ channel: "channel";
278
+ group: "group";
279
+ framer: "framer";
280
+ rack: "rack";
281
+ device: "device";
282
+ task: "task";
283
+ label: "label";
284
+ range: "range";
285
+ "range-alias": "range-alias";
286
+ user: "user";
287
+ lineplot: "lineplot";
288
+ log: "log";
289
+ workspace: "workspace";
290
+ schematic: "schematic";
291
+ table: "table";
292
+ builtin: "builtin";
293
+ cluster: "cluster";
294
+ node: "node";
295
+ }>;
204
296
  key: z.ZodString;
205
- }, "strip", z.ZodTypeAny, {
206
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
207
- key: string;
208
- }, {
297
+ }, {}>]>, z.ZodTransform<ID, {
209
298
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
210
299
  key: string;
211
- }>]>, ID, string | {
300
+ } | {
212
301
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
213
302
  key: string;
214
- }>]>;
303
+ }>>]>;
215
304
  type: z.ZodString;
216
- to: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
305
+ to: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
217
306
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
218
307
  key: string;
219
- }, string>, z.ZodObject<{
220
- type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
308
+ }, string>>, z.ZodObject<{
309
+ type: z.ZodEnum<{
310
+ policy: "policy";
311
+ allow_all: "allow_all";
312
+ channel: "channel";
313
+ group: "group";
314
+ framer: "framer";
315
+ rack: "rack";
316
+ device: "device";
317
+ task: "task";
318
+ label: "label";
319
+ range: "range";
320
+ "range-alias": "range-alias";
321
+ user: "user";
322
+ lineplot: "lineplot";
323
+ log: "log";
324
+ workspace: "workspace";
325
+ schematic: "schematic";
326
+ table: "table";
327
+ builtin: "builtin";
328
+ cluster: "cluster";
329
+ node: "node";
330
+ }>;
221
331
  key: z.ZodString;
222
- }, "strip", z.ZodTypeAny, {
223
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
224
- key: string;
225
- }, {
332
+ }, {}>]>, z.ZodTransform<ID, {
226
333
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
227
334
  key: string;
228
- }>]>, ID, string | {
335
+ } | {
229
336
  type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
230
337
  key: string;
231
- }>]>;
232
- }, "strip", z.ZodTypeAny, {
233
- type: string;
234
- to: ID;
235
- from: ID;
236
- }, {
237
- type: string;
238
- to: string | ID | {
239
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
240
- key: string;
241
- };
242
- from: string | ID | {
243
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
244
- key: string;
245
- };
246
- }>;
338
+ }>>]>;
339
+ }, {}>;
247
340
  export interface Relationship extends z.infer<typeof relationshipSchemaZ> {
248
341
  }
249
342
  export declare const parseRelationship: (str: string) => Relationship;