@synnaxlabs/client 0.43.1 → 0.44.1

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 (245) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/dist/access/payload.d.ts +1 -1
  3. package/dist/access/payload.d.ts.map +1 -1
  4. package/dist/access/policy/client.d.ts +263 -6
  5. package/dist/access/policy/client.d.ts.map +1 -1
  6. package/dist/access/policy/external.d.ts +0 -1
  7. package/dist/access/policy/external.d.ts.map +1 -1
  8. package/dist/access/policy/payload.d.ts +105 -93
  9. package/dist/access/policy/payload.d.ts.map +1 -1
  10. package/dist/auth/auth.d.ts +1 -1
  11. package/dist/auth/auth.d.ts.map +1 -1
  12. package/dist/channel/client.d.ts +12 -13
  13. package/dist/channel/client.d.ts.map +1 -1
  14. package/dist/channel/payload.d.ts +77 -19
  15. package/dist/channel/payload.d.ts.map +1 -1
  16. package/dist/channel/retriever.d.ts +9 -16
  17. package/dist/channel/retriever.d.ts.map +1 -1
  18. package/dist/channel/writer.d.ts +1 -1
  19. package/dist/channel/writer.d.ts.map +1 -1
  20. package/dist/client.cjs +27 -135
  21. package/dist/client.d.ts +3 -3
  22. package/dist/client.d.ts.map +1 -1
  23. package/dist/client.js +8612 -28957
  24. package/dist/connection/checker.d.ts +1 -1
  25. package/dist/connection/checker.d.ts.map +1 -1
  26. package/dist/control/client.d.ts +1 -0
  27. package/dist/control/client.d.ts.map +1 -1
  28. package/dist/control/state.d.ts +6 -6
  29. package/dist/control/state.d.ts.map +1 -1
  30. package/dist/errors.d.ts +18 -5
  31. package/dist/errors.d.ts.map +1 -1
  32. package/dist/framer/adapter.d.ts +3 -3
  33. package/dist/framer/adapter.d.ts.map +1 -1
  34. package/dist/framer/client.d.ts +4 -13
  35. package/dist/framer/client.d.ts.map +1 -1
  36. package/dist/framer/codec.d.ts +1 -1
  37. package/dist/framer/codec.d.ts.map +1 -1
  38. package/dist/framer/deleter.d.ts +5 -5
  39. package/dist/framer/deleter.d.ts.map +1 -1
  40. package/dist/framer/frame.d.ts +5 -7
  41. package/dist/framer/frame.d.ts.map +1 -1
  42. package/dist/framer/streamProxy.d.ts +1 -1
  43. package/dist/framer/streamProxy.d.ts.map +1 -1
  44. package/dist/framer/streamer.d.ts +139 -20
  45. package/dist/framer/streamer.d.ts.map +1 -1
  46. package/dist/framer/writer.d.ts +222 -33
  47. package/dist/framer/writer.d.ts.map +1 -1
  48. package/dist/hardware/device/client.d.ts +49 -28
  49. package/dist/hardware/device/client.d.ts.map +1 -1
  50. package/dist/hardware/device/payload.d.ts +126 -46
  51. package/dist/hardware/device/payload.d.ts.map +1 -1
  52. package/dist/hardware/rack/client.d.ts +78 -22
  53. package/dist/hardware/rack/client.d.ts.map +1 -1
  54. package/dist/hardware/rack/payload.d.ts +99 -56
  55. package/dist/hardware/rack/payload.d.ts.map +1 -1
  56. package/dist/hardware/task/client.d.ts +100 -41
  57. package/dist/hardware/task/client.d.ts.map +1 -1
  58. package/dist/hardware/task/payload.d.ts +83 -61
  59. package/dist/hardware/task/payload.d.ts.map +1 -1
  60. package/dist/index.d.ts +2 -2
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/label/client.d.ts +138 -20
  63. package/dist/label/client.d.ts.map +1 -1
  64. package/dist/label/external.d.ts +0 -2
  65. package/dist/label/external.d.ts.map +1 -1
  66. package/dist/label/payload.d.ts +4 -5
  67. package/dist/label/payload.d.ts.map +1 -1
  68. package/dist/ontology/client.d.ts +45 -135
  69. package/dist/ontology/client.d.ts.map +1 -1
  70. package/dist/ontology/group/group.d.ts +3 -3
  71. package/dist/ontology/group/group.d.ts.map +1 -1
  72. package/dist/ontology/group/payload.d.ts +3 -27
  73. package/dist/ontology/group/payload.d.ts.map +1 -1
  74. package/dist/ontology/payload.d.ts +113 -243
  75. package/dist/ontology/payload.d.ts.map +1 -1
  76. package/dist/ontology/writer.d.ts +4 -4
  77. package/dist/ontology/writer.d.ts.map +1 -1
  78. package/dist/ranger/alias.d.ts +11 -5
  79. package/dist/ranger/alias.d.ts.map +1 -1
  80. package/dist/ranger/client.d.ts +87 -30
  81. package/dist/ranger/client.d.ts.map +1 -1
  82. package/dist/ranger/external.d.ts +1 -1
  83. package/dist/ranger/external.d.ts.map +1 -1
  84. package/dist/ranger/kv.d.ts +10 -12
  85. package/dist/ranger/kv.d.ts.map +1 -1
  86. package/dist/ranger/payload.d.ts +23 -44
  87. package/dist/ranger/payload.d.ts.map +1 -1
  88. package/dist/ranger/writer.d.ts +22 -19
  89. package/dist/ranger/writer.d.ts.map +1 -1
  90. package/dist/testutil/client.d.ts +4 -0
  91. package/dist/testutil/client.d.ts.map +1 -0
  92. package/dist/user/client.d.ts +59 -6
  93. package/dist/user/client.d.ts.map +1 -1
  94. package/dist/user/payload.d.ts +4 -6
  95. package/dist/user/payload.d.ts.map +1 -1
  96. package/dist/user/retriever.d.ts +2 -2
  97. package/dist/user/retriever.d.ts.map +1 -1
  98. package/dist/util/decodeJSONString.d.ts +2 -2
  99. package/dist/util/decodeJSONString.d.ts.map +1 -1
  100. package/dist/util/parseWithoutKeyConversion.d.ts +2 -2
  101. package/dist/util/parseWithoutKeyConversion.d.ts.map +1 -1
  102. package/dist/util/retrieve.d.ts +1 -1
  103. package/dist/util/retrieve.d.ts.map +1 -1
  104. package/dist/util/zod.d.ts +1 -1
  105. package/dist/util/zod.d.ts.map +1 -1
  106. package/dist/workspace/client.d.ts +17 -6
  107. package/dist/workspace/client.d.ts.map +1 -1
  108. package/dist/workspace/lineplot/client.d.ts +2 -2
  109. package/dist/workspace/lineplot/client.d.ts.map +1 -1
  110. package/dist/workspace/lineplot/payload.d.ts +8 -9
  111. package/dist/workspace/lineplot/payload.d.ts.map +1 -1
  112. package/dist/workspace/log/client.d.ts +2 -2
  113. package/dist/workspace/log/client.d.ts.map +1 -1
  114. package/dist/workspace/log/payload.d.ts +8 -9
  115. package/dist/workspace/log/payload.d.ts.map +1 -1
  116. package/dist/workspace/payload.d.ts +10 -11
  117. package/dist/workspace/payload.d.ts.map +1 -1
  118. package/dist/workspace/schematic/client.d.ts +2 -2
  119. package/dist/workspace/schematic/client.d.ts.map +1 -1
  120. package/dist/workspace/schematic/payload.d.ts +10 -11
  121. package/dist/workspace/schematic/payload.d.ts.map +1 -1
  122. package/dist/workspace/table/client.d.ts +2 -2
  123. package/dist/workspace/table/client.d.ts.map +1 -1
  124. package/dist/workspace/table/payload.d.ts +10 -11
  125. package/dist/workspace/table/payload.d.ts.map +1 -1
  126. package/examples/node/package-lock.json +47 -39
  127. package/examples/node/package.json +2 -1
  128. package/examples/node/streamWrite.js +5 -11
  129. package/package.json +14 -13
  130. package/src/access/payload.ts +1 -1
  131. package/src/access/policy/client.ts +87 -32
  132. package/src/access/policy/external.ts +0 -1
  133. package/src/access/policy/payload.ts +4 -4
  134. package/src/access/policy/policy.spec.ts +86 -83
  135. package/src/auth/auth.spec.ts +29 -18
  136. package/src/auth/auth.ts +1 -1
  137. package/src/channel/batchRetriever.spec.ts +4 -9
  138. package/src/channel/channel.spec.ts +24 -6
  139. package/src/channel/client.ts +31 -46
  140. package/src/channel/payload.ts +13 -14
  141. package/src/channel/retriever.ts +26 -41
  142. package/src/channel/writer.ts +3 -3
  143. package/src/client.ts +4 -4
  144. package/src/connection/checker.ts +1 -1
  145. package/src/connection/connection.spec.ts +31 -23
  146. package/src/control/client.ts +2 -2
  147. package/src/control/state.spec.ts +3 -3
  148. package/src/control/state.ts +1 -1
  149. package/src/errors.spec.ts +9 -5
  150. package/src/errors.ts +28 -15
  151. package/src/framer/adapter.spec.ts +118 -9
  152. package/src/framer/adapter.ts +24 -11
  153. package/src/framer/client.spec.ts +125 -2
  154. package/src/framer/client.ts +41 -47
  155. package/src/framer/codec.ts +1 -1
  156. package/src/framer/deleter.spec.ts +2 -2
  157. package/src/framer/deleter.ts +1 -1
  158. package/src/framer/frame.ts +1 -4
  159. package/src/framer/iterator.spec.ts +8 -8
  160. package/src/framer/iterator.ts +1 -1
  161. package/src/framer/streamProxy.ts +1 -1
  162. package/src/framer/streamer.spec.ts +185 -36
  163. package/src/framer/streamer.ts +28 -36
  164. package/src/framer/writer.spec.ts +6 -6
  165. package/src/framer/writer.ts +97 -111
  166. package/src/hardware/device/client.ts +45 -131
  167. package/src/hardware/device/device.spec.ts +163 -52
  168. package/src/hardware/device/payload.ts +10 -21
  169. package/src/hardware/rack/client.ts +87 -105
  170. package/src/hardware/rack/payload.ts +4 -13
  171. package/src/hardware/rack/rack.spec.ts +28 -35
  172. package/src/hardware/task/client.ts +335 -291
  173. package/src/hardware/task/payload.ts +86 -62
  174. package/src/hardware/task/task.spec.ts +208 -32
  175. package/src/index.ts +2 -1
  176. package/src/label/client.ts +100 -95
  177. package/src/label/external.ts +0 -2
  178. package/src/label/label.spec.ts +8 -6
  179. package/src/label/payload.ts +3 -4
  180. package/src/ontology/client.ts +41 -324
  181. package/src/ontology/group/group.spec.ts +2 -2
  182. package/src/ontology/group/group.ts +4 -5
  183. package/src/ontology/group/payload.ts +2 -25
  184. package/src/ontology/group/writer.ts +1 -1
  185. package/src/ontology/ontology.spec.ts +355 -41
  186. package/src/ontology/payload.ts +74 -112
  187. package/src/ontology/writer.ts +8 -17
  188. package/src/ranger/alias.ts +19 -37
  189. package/src/ranger/client.ts +118 -150
  190. package/src/ranger/external.ts +9 -1
  191. package/src/ranger/kv.ts +6 -27
  192. package/src/ranger/payload.ts +21 -37
  193. package/src/ranger/ranger.spec.ts +37 -56
  194. package/src/ranger/writer.ts +1 -1
  195. package/src/{signals/index.ts → testutil/client.ts} +11 -1
  196. package/src/user/client.ts +122 -47
  197. package/src/user/payload.ts +2 -5
  198. package/src/user/retriever.ts +1 -1
  199. package/src/user/user.spec.ts +31 -31
  200. package/src/user/writer.ts +1 -1
  201. package/src/util/decodeJSONString.ts +3 -3
  202. package/src/util/parseWithoutKeyConversion.ts +2 -2
  203. package/src/util/retrieve.ts +1 -1
  204. package/src/util/zod.ts +1 -1
  205. package/src/workspace/client.ts +20 -36
  206. package/src/workspace/lineplot/client.ts +5 -7
  207. package/src/workspace/lineplot/lineplot.spec.ts +2 -2
  208. package/src/workspace/lineplot/payload.ts +4 -7
  209. package/src/workspace/log/client.ts +5 -7
  210. package/src/workspace/log/log.spec.ts +2 -2
  211. package/src/workspace/log/payload.ts +4 -7
  212. package/src/workspace/payload.ts +4 -7
  213. package/src/workspace/schematic/client.ts +5 -7
  214. package/src/workspace/schematic/payload.ts +4 -7
  215. package/src/workspace/schematic/schematic.spec.ts +2 -2
  216. package/src/workspace/table/client.ts +5 -7
  217. package/src/workspace/table/payload.ts +4 -7
  218. package/src/workspace/table/table.spec.ts +2 -2
  219. package/src/workspace/workspace.spec.ts +2 -2
  220. package/dist/access/policy/ontology.d.ts +0 -5
  221. package/dist/access/policy/ontology.d.ts.map +0 -1
  222. package/dist/access/policy/retriever.d.ts +0 -40
  223. package/dist/access/policy/retriever.d.ts.map +0 -1
  224. package/dist/access/policy/writer.d.ts +0 -9
  225. package/dist/access/policy/writer.d.ts.map +0 -1
  226. package/dist/label/retriever.d.ts +0 -14
  227. package/dist/label/retriever.d.ts.map +0 -1
  228. package/dist/label/writer.d.ts +0 -54
  229. package/dist/label/writer.d.ts.map +0 -1
  230. package/dist/setupspecs.d.ts +0 -5
  231. package/dist/setupspecs.d.ts.map +0 -1
  232. package/dist/signals/external.d.ts +0 -2
  233. package/dist/signals/external.d.ts.map +0 -1
  234. package/dist/signals/index.d.ts +0 -2
  235. package/dist/signals/index.d.ts.map +0 -1
  236. package/dist/signals/observable.d.ts +0 -12
  237. package/dist/signals/observable.d.ts.map +0 -1
  238. package/src/access/policy/ontology.ts +0 -17
  239. package/src/access/policy/retriever.ts +0 -44
  240. package/src/access/policy/writer.ts +0 -65
  241. package/src/label/retriever.ts +0 -63
  242. package/src/label/writer.ts +0 -95
  243. package/src/setupspecs.ts +0 -27
  244. package/src/signals/external.ts +0 -10
  245. package/src/signals/observable.ts +0 -42
@@ -1,17 +1,17 @@
1
1
 
2
- > @synnaxlabs/client@0.43.1 build /home/runner/work/synnax/synnax/client/ts
2
+ > @synnaxlabs/client@0.44.1 build /home/runner/work/synnax/synnax/client/ts
3
3
  > tsc --noEmit && vite build
4
4
 
5
5
   Synnax - Production mode
6
- vite v6.3.5 building for production...
6
+ vite v7.0.4 building for production...
7
7
  transforming...
8
- ✓ 212 modules transformed.
8
+ ✓ 138 modules transformed.
9
9
  rendering chunks...
10
10
 
11
11
  [vite:dts] Start generate declaration files...
12
12
  computing gzip size...
13
- dist/client.js 1,012.33 kB │ gzip: 209.86 kB
14
- [vite:dts] Declaration files built in 4041ms.
13
+ dist/client.js 350.17 kB │ gzip: 82.78 kB
14
+ [vite:dts] Declaration files built in 4889ms.
15
15
 
16
- dist/client.cjs 690.06 kB │ gzip: 169.73 kB
17
- ✓ built in 6.12s
16
+ dist/client.cjs 194.54 kB │ gzip: 55.44 kB
17
+ ✓ built in 6.00s
@@ -1,4 +1,4 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  export declare const ALL_ACTION = "all";
3
3
  export declare const CREATE_ACTION = "create";
4
4
  export declare const DELETE_ACTION = "delete";
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/access/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;EAMlB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/access/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;EAMlB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
@@ -1,19 +1,276 @@
1
1
  import { UnaryClient } from '@synnaxlabs/freighter';
2
+ import { z } from 'zod';
2
3
  import { Key, New, Policy } from './payload';
3
4
  import { ontology } from '../../ontology';
5
+ declare const keyRetrieveRequestZ: z.ZodPipe<z.ZodObject<{
6
+ key: z.ZodUUID;
7
+ }, z.core.$strip>, z.ZodTransform<{
8
+ keys: string[];
9
+ }, {
10
+ key: string;
11
+ }>>;
12
+ declare const listRetrieveArgsZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
13
+ for: z.ZodUnion<[z.ZodObject<{
14
+ type: z.ZodEnum<{
15
+ label: "label";
16
+ log: "log";
17
+ allow_all: "allow_all";
18
+ builtin: "builtin";
19
+ cluster: "cluster";
20
+ channel: "channel";
21
+ node: "node";
22
+ group: "group";
23
+ range: "range";
24
+ framer: "framer";
25
+ "range-alias": "range-alias";
26
+ user: "user";
27
+ workspace: "workspace";
28
+ schematic: "schematic";
29
+ lineplot: "lineplot";
30
+ rack: "rack";
31
+ device: "device";
32
+ task: "task";
33
+ policy: "policy";
34
+ table: "table";
35
+ }>;
36
+ key: z.ZodString;
37
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
38
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
39
+ key: string;
40
+ }, string>>]>;
41
+ }, z.core.$strip>, z.ZodTransform<{
42
+ subjects: ({
43
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
44
+ key: string;
45
+ } | {
46
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
47
+ key: string;
48
+ })[];
49
+ }, {
50
+ for: {
51
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
52
+ key: string;
53
+ } | {
54
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
55
+ key: string;
56
+ };
57
+ }>>, z.ZodPipe<z.ZodObject<{
58
+ for: z.ZodArray<z.ZodUnion<[z.ZodObject<{
59
+ type: z.ZodEnum<{
60
+ label: "label";
61
+ log: "log";
62
+ allow_all: "allow_all";
63
+ builtin: "builtin";
64
+ cluster: "cluster";
65
+ channel: "channel";
66
+ node: "node";
67
+ group: "group";
68
+ range: "range";
69
+ framer: "framer";
70
+ "range-alias": "range-alias";
71
+ user: "user";
72
+ workspace: "workspace";
73
+ schematic: "schematic";
74
+ lineplot: "lineplot";
75
+ rack: "rack";
76
+ device: "device";
77
+ task: "task";
78
+ policy: "policy";
79
+ table: "table";
80
+ }>;
81
+ key: z.ZodString;
82
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
83
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
84
+ key: string;
85
+ }, string>>]>>;
86
+ }, z.core.$strip>, z.ZodTransform<{
87
+ subjects: ({
88
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
89
+ key: string;
90
+ } | {
91
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
92
+ key: string;
93
+ })[];
94
+ }, {
95
+ for: ({
96
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
97
+ key: string;
98
+ } | {
99
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
100
+ key: string;
101
+ })[];
102
+ }>>, z.ZodObject<{
103
+ keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
104
+ subjects: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
105
+ type: z.ZodEnum<{
106
+ label: "label";
107
+ log: "log";
108
+ allow_all: "allow_all";
109
+ builtin: "builtin";
110
+ cluster: "cluster";
111
+ channel: "channel";
112
+ node: "node";
113
+ group: "group";
114
+ range: "range";
115
+ framer: "framer";
116
+ "range-alias": "range-alias";
117
+ user: "user";
118
+ workspace: "workspace";
119
+ schematic: "schematic";
120
+ lineplot: "lineplot";
121
+ rack: "rack";
122
+ device: "device";
123
+ task: "task";
124
+ policy: "policy";
125
+ table: "table";
126
+ }>;
127
+ key: z.ZodString;
128
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
129
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
130
+ key: string;
131
+ }, string>>]>>>;
132
+ }, z.core.$strip>]>;
133
+ export type SingleRetrieveArgs = z.input<typeof keyRetrieveRequestZ>;
134
+ export type ListRetrieveArgs = z.input<typeof listRetrieveArgsZ>;
135
+ declare const retrieveArgsZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
136
+ key: z.ZodUUID;
137
+ }, z.core.$strip>, z.ZodTransform<{
138
+ keys: string[];
139
+ }, {
140
+ key: string;
141
+ }>>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
142
+ for: z.ZodUnion<[z.ZodObject<{
143
+ type: z.ZodEnum<{
144
+ label: "label";
145
+ log: "log";
146
+ allow_all: "allow_all";
147
+ builtin: "builtin";
148
+ cluster: "cluster";
149
+ channel: "channel";
150
+ node: "node";
151
+ group: "group";
152
+ range: "range";
153
+ framer: "framer";
154
+ "range-alias": "range-alias";
155
+ user: "user";
156
+ workspace: "workspace";
157
+ schematic: "schematic";
158
+ lineplot: "lineplot";
159
+ rack: "rack";
160
+ device: "device";
161
+ task: "task";
162
+ policy: "policy";
163
+ table: "table";
164
+ }>;
165
+ key: z.ZodString;
166
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
167
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
168
+ key: string;
169
+ }, string>>]>;
170
+ }, z.core.$strip>, z.ZodTransform<{
171
+ subjects: ({
172
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
173
+ key: string;
174
+ } | {
175
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
176
+ key: string;
177
+ })[];
178
+ }, {
179
+ for: {
180
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
181
+ key: string;
182
+ } | {
183
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
184
+ key: string;
185
+ };
186
+ }>>, z.ZodPipe<z.ZodObject<{
187
+ for: z.ZodArray<z.ZodUnion<[z.ZodObject<{
188
+ type: z.ZodEnum<{
189
+ label: "label";
190
+ log: "log";
191
+ allow_all: "allow_all";
192
+ builtin: "builtin";
193
+ cluster: "cluster";
194
+ channel: "channel";
195
+ node: "node";
196
+ group: "group";
197
+ range: "range";
198
+ framer: "framer";
199
+ "range-alias": "range-alias";
200
+ user: "user";
201
+ workspace: "workspace";
202
+ schematic: "schematic";
203
+ lineplot: "lineplot";
204
+ rack: "rack";
205
+ device: "device";
206
+ task: "task";
207
+ policy: "policy";
208
+ table: "table";
209
+ }>;
210
+ key: z.ZodString;
211
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
212
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
213
+ key: string;
214
+ }, string>>]>>;
215
+ }, z.core.$strip>, z.ZodTransform<{
216
+ subjects: ({
217
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
218
+ key: string;
219
+ } | {
220
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
221
+ key: string;
222
+ })[];
223
+ }, {
224
+ for: ({
225
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
226
+ key: string;
227
+ } | {
228
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
229
+ key: string;
230
+ })[];
231
+ }>>, z.ZodObject<{
232
+ keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
233
+ subjects: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
234
+ type: z.ZodEnum<{
235
+ label: "label";
236
+ log: "log";
237
+ allow_all: "allow_all";
238
+ builtin: "builtin";
239
+ cluster: "cluster";
240
+ channel: "channel";
241
+ node: "node";
242
+ group: "group";
243
+ range: "range";
244
+ framer: "framer";
245
+ "range-alias": "range-alias";
246
+ user: "user";
247
+ workspace: "workspace";
248
+ schematic: "schematic";
249
+ lineplot: "lineplot";
250
+ rack: "rack";
251
+ device: "device";
252
+ task: "task";
253
+ policy: "policy";
254
+ table: "table";
255
+ }>;
256
+ key: z.ZodString;
257
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
258
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
259
+ key: string;
260
+ }, string>>]>>>;
261
+ }, z.core.$strip>]>]>;
262
+ export type RetrieveArgs = z.input<typeof retrieveArgsZ>;
4
263
  export declare class Client {
5
- private readonly retriever;
6
- private readonly writer;
264
+ private readonly client;
7
265
  constructor(client: UnaryClient);
8
266
  create(policy: New): Promise<Policy>;
9
267
  create(policies: New[]): Promise<Policy[]>;
10
- retrieve(key: Key): Promise<Policy>;
11
- retrieve(keys: Key[]): Promise<Policy[]>;
12
- retrieveFor(subject: ontology.CrudeID): Promise<Policy[]>;
13
- retrieveFor(subjects: ontology.CrudeID[]): Promise<Policy[]>;
268
+ retrieve(args: SingleRetrieveArgs): Promise<Policy>;
269
+ retrieve(args: ListRetrieveArgs): Promise<Policy[]>;
14
270
  delete(key: Key): Promise<void>;
15
271
  delete(keys: Key[]): Promise<void>;
16
272
  }
17
273
  export declare const ontologyID: (key: Key) => ontology.ID;
18
274
  export declare const ALLOW_ALL_ONTOLOGY_ID: ontology.ID;
275
+ export {};
19
276
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/access/policy/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,MAAM,EAAE,WAAW;IAKzB,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACpC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAO1C,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAOxC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IACzD,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ5D,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzC;AAED,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC;AAEhD,eAAO,MAAM,qBAAqB,aAGhC,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/access/policy/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,MAAM,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,QAAA,MAAM,mBAAmB;;;;;;GAEmB,CAAC;AAE7C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAQrB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAoD,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAazD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACpC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAanD,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAUzC;AAED,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EAA+B,CAAC;AAE/E,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,EAG5C,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './client';
2
- export * from './ontology';
3
2
  export * from './payload';
4
3
  //# sourceMappingURL=external.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/access/policy/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/access/policy/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
@@ -1,64 +1,76 @@
1
- import { z } from 'zod/v4';
2
- export declare const keyZ: z.ZodString;
1
+ import { z } from 'zod';
2
+ export declare const keyZ: z.ZodUUID;
3
3
  export type Key = z.infer<typeof keyZ>;
4
4
  export declare const policyZ: z.ZodObject<{
5
- key: z.ZodString;
6
- subjects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
7
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
5
+ key: z.ZodUUID;
6
+ subjects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
7
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
8
8
  key: string;
9
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
9
+ } | {
10
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
11
+ key: string;
12
+ })[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
10
13
  type: z.ZodEnum<{
11
- policy: "policy";
14
+ label: "label";
15
+ log: "log";
12
16
  allow_all: "allow_all";
17
+ builtin: "builtin";
18
+ cluster: "cluster";
13
19
  channel: "channel";
20
+ node: "node";
14
21
  group: "group";
15
- framer: "framer";
16
- rack: "rack";
17
- device: "device";
18
- task: "task";
19
- label: "label";
20
22
  range: "range";
23
+ framer: "framer";
21
24
  "range-alias": "range-alias";
22
25
  user: "user";
23
- lineplot: "lineplot";
24
- log: "log";
25
26
  workspace: "workspace";
26
27
  schematic: "schematic";
28
+ lineplot: "lineplot";
29
+ rack: "rack";
30
+ device: "device";
31
+ task: "task";
32
+ policy: "policy";
27
33
  table: "table";
28
- builtin: "builtin";
29
- cluster: "cluster";
30
- node: "node";
31
34
  }>;
32
35
  key: z.ZodString;
33
- }, z.core.$strip>>]>;
34
- objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
35
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
36
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
37
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
36
38
  key: string;
37
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
39
+ }, string>>]>>]>;
40
+ objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
41
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
42
+ key: string;
43
+ } | {
44
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
45
+ key: string;
46
+ })[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
38
47
  type: z.ZodEnum<{
39
- policy: "policy";
48
+ label: "label";
49
+ log: "log";
40
50
  allow_all: "allow_all";
51
+ builtin: "builtin";
52
+ cluster: "cluster";
41
53
  channel: "channel";
54
+ node: "node";
42
55
  group: "group";
43
- framer: "framer";
44
- rack: "rack";
45
- device: "device";
46
- task: "task";
47
- label: "label";
48
56
  range: "range";
57
+ framer: "framer";
49
58
  "range-alias": "range-alias";
50
59
  user: "user";
51
- lineplot: "lineplot";
52
- log: "log";
53
60
  workspace: "workspace";
54
61
  schematic: "schematic";
62
+ lineplot: "lineplot";
63
+ rack: "rack";
64
+ device: "device";
65
+ task: "task";
66
+ policy: "policy";
55
67
  table: "table";
56
- builtin: "builtin";
57
- cluster: "cluster";
58
- node: "node";
59
68
  }>;
60
69
  key: z.ZodString;
61
- }, z.core.$strip>>]>;
70
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
71
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
72
+ key: string;
73
+ }, string>>]>>]>;
62
74
  actions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<("all" | "create" | "delete" | "retrieve" | "update")[], null | undefined>>, z.ZodArray<z.ZodEnum<{
63
75
  all: "all";
64
76
  create: "create";
@@ -70,117 +82,117 @@ export declare const policyZ: z.ZodObject<{
70
82
  export interface Policy extends z.infer<typeof policyZ> {
71
83
  }
72
84
  export declare const newZ: z.ZodObject<{
73
- key: z.ZodOptional<z.ZodString>;
74
- subjects: z.ZodUnion<[z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
75
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
76
- key: string;
77
- }, string>>, z.ZodObject<{
85
+ key: z.ZodOptional<z.ZodUUID>;
86
+ subjects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
78
87
  type: z.ZodEnum<{
79
- policy: "policy";
88
+ label: "label";
89
+ log: "log";
80
90
  allow_all: "allow_all";
91
+ builtin: "builtin";
92
+ cluster: "cluster";
81
93
  channel: "channel";
94
+ node: "node";
82
95
  group: "group";
83
- framer: "framer";
84
- rack: "rack";
85
- device: "device";
86
- task: "task";
87
- label: "label";
88
96
  range: "range";
97
+ framer: "framer";
89
98
  "range-alias": "range-alias";
90
99
  user: "user";
91
- lineplot: "lineplot";
92
- log: "log";
93
100
  workspace: "workspace";
94
101
  schematic: "schematic";
102
+ lineplot: "lineplot";
103
+ rack: "rack";
104
+ device: "device";
105
+ task: "task";
106
+ policy: "policy";
95
107
  table: "table";
96
- builtin: "builtin";
97
- cluster: "cluster";
98
- node: "node";
99
108
  }>;
100
109
  key: z.ZodString;
101
- }, z.core.$strip>]>>, z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
102
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
110
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
111
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
103
112
  key: string;
104
- }, string>>, z.ZodObject<{
113
+ }, string>>]>>, z.ZodUnion<[z.ZodObject<{
105
114
  type: z.ZodEnum<{
106
- policy: "policy";
115
+ label: "label";
116
+ log: "log";
107
117
  allow_all: "allow_all";
118
+ builtin: "builtin";
119
+ cluster: "cluster";
108
120
  channel: "channel";
121
+ node: "node";
109
122
  group: "group";
110
- framer: "framer";
111
- rack: "rack";
112
- device: "device";
113
- task: "task";
114
- label: "label";
115
123
  range: "range";
124
+ framer: "framer";
116
125
  "range-alias": "range-alias";
117
126
  user: "user";
118
- lineplot: "lineplot";
119
- log: "log";
120
127
  workspace: "workspace";
121
128
  schematic: "schematic";
129
+ lineplot: "lineplot";
130
+ rack: "rack";
131
+ device: "device";
132
+ task: "task";
133
+ policy: "policy";
122
134
  table: "table";
123
- builtin: "builtin";
124
- cluster: "cluster";
125
- node: "node";
126
135
  }>;
127
136
  key: z.ZodString;
128
- }, z.core.$strip>]>]>;
129
- objects: z.ZodUnion<[z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
130
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
137
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
138
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
131
139
  key: string;
132
- }, string>>, z.ZodObject<{
140
+ }, string>>]>]>;
141
+ objects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
133
142
  type: z.ZodEnum<{
134
- policy: "policy";
143
+ label: "label";
144
+ log: "log";
135
145
  allow_all: "allow_all";
146
+ builtin: "builtin";
147
+ cluster: "cluster";
136
148
  channel: "channel";
149
+ node: "node";
137
150
  group: "group";
138
- framer: "framer";
139
- rack: "rack";
140
- device: "device";
141
- task: "task";
142
- label: "label";
143
151
  range: "range";
152
+ framer: "framer";
144
153
  "range-alias": "range-alias";
145
154
  user: "user";
146
- lineplot: "lineplot";
147
- log: "log";
148
155
  workspace: "workspace";
149
156
  schematic: "schematic";
157
+ lineplot: "lineplot";
158
+ rack: "rack";
159
+ device: "device";
160
+ task: "task";
161
+ policy: "policy";
150
162
  table: "table";
151
- builtin: "builtin";
152
- cluster: "cluster";
153
- node: "node";
154
163
  }>;
155
164
  key: z.ZodString;
156
- }, z.core.$strip>]>>, z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
157
- type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
165
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
166
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
158
167
  key: string;
159
- }, string>>, z.ZodObject<{
168
+ }, string>>]>>, z.ZodUnion<[z.ZodObject<{
160
169
  type: z.ZodEnum<{
161
- policy: "policy";
170
+ label: "label";
171
+ log: "log";
162
172
  allow_all: "allow_all";
173
+ builtin: "builtin";
174
+ cluster: "cluster";
163
175
  channel: "channel";
176
+ node: "node";
164
177
  group: "group";
165
- framer: "framer";
166
- rack: "rack";
167
- device: "device";
168
- task: "task";
169
- label: "label";
170
178
  range: "range";
179
+ framer: "framer";
171
180
  "range-alias": "range-alias";
172
181
  user: "user";
173
- lineplot: "lineplot";
174
- log: "log";
175
182
  workspace: "workspace";
176
183
  schematic: "schematic";
184
+ lineplot: "lineplot";
185
+ rack: "rack";
186
+ device: "device";
187
+ task: "task";
188
+ policy: "policy";
177
189
  table: "table";
178
- builtin: "builtin";
179
- cluster: "cluster";
180
- node: "node";
181
190
  }>;
182
191
  key: z.ZodString;
183
- }, z.core.$strip>]>]>;
192
+ }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
193
+ type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
194
+ key: string;
195
+ }, string>>]>]>;
184
196
  actions: z.ZodUnion<[z.ZodArray<z.ZodEnum<{
185
197
  all: "all";
186
198
  create: "create";
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/policy/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG"}
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/policy/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG"}