apache-iggy 0.5.0-edge.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 (265) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +81 -0
  3. package/dist/src/bdd/auth.d.ts +20 -0
  4. package/dist/src/bdd/auth.js +38 -0
  5. package/dist/src/bdd/message.d.ts +20 -0
  6. package/dist/src/bdd/message.js +70 -0
  7. package/dist/src/bdd/stream.d.ts +20 -0
  8. package/dist/src/bdd/stream.js +39 -0
  9. package/dist/src/bdd/topic.d.ts +20 -0
  10. package/dist/src/bdd/topic.js +36 -0
  11. package/dist/src/bdd/world.d.ts +30 -0
  12. package/dist/src/bdd/world.js +21 -0
  13. package/dist/src/client/client.connection.d.ts +40 -0
  14. package/dist/src/client/client.connection.js +171 -0
  15. package/dist/src/client/client.d.ts +38 -0
  16. package/dist/src/client/client.debug.d.ts +21 -0
  17. package/dist/src/client/client.debug.js +21 -0
  18. package/dist/src/client/client.js +97 -0
  19. package/dist/src/client/client.socket.d.ts +48 -0
  20. package/dist/src/client/client.socket.js +156 -0
  21. package/dist/src/client/client.type.d.ts +69 -0
  22. package/dist/src/client/client.type.js +20 -0
  23. package/dist/src/client/client.utils.d.ts +29 -0
  24. package/dist/src/client/client.utils.js +54 -0
  25. package/dist/src/client/index.d.ts +23 -0
  26. package/dist/src/client/index.js +23 -0
  27. package/dist/src/client.e2e.d.ts +20 -0
  28. package/dist/src/client.e2e.js +54 -0
  29. package/dist/src/debug-send.d.ts +20 -0
  30. package/dist/src/debug-send.js +117 -0
  31. package/dist/src/debug.d.ts +20 -0
  32. package/dist/src/debug.js +107 -0
  33. package/dist/src/e2e/tcp.client.e2e.d.ts +20 -0
  34. package/dist/src/e2e/tcp.client.e2e.js +45 -0
  35. package/dist/src/e2e/tcp.consumer-group.e2e.d.ts +20 -0
  36. package/dist/src/e2e/tcp.consumer-group.e2e.js +111 -0
  37. package/dist/src/e2e/tcp.consumer-stream.e2e.d.ts +20 -0
  38. package/dist/src/e2e/tcp.consumer-stream.e2e.js +92 -0
  39. package/dist/src/e2e/tcp.parallel.e2e.d.ts +20 -0
  40. package/dist/src/e2e/tcp.parallel.e2e.js +59 -0
  41. package/dist/src/e2e/tcp.send-message.e2e.d.ts +20 -0
  42. package/dist/src/e2e/tcp.send-message.e2e.js +118 -0
  43. package/dist/src/e2e/tcp.stream.e2e.d.ts +20 -0
  44. package/dist/src/e2e/tcp.stream.e2e.js +59 -0
  45. package/dist/src/e2e/tcp.system.e2e.d.ts +20 -0
  46. package/dist/src/e2e/tcp.system.e2e.js +46 -0
  47. package/dist/src/e2e/tcp.token.e2e.d.ts +20 -0
  48. package/dist/src/e2e/tcp.token.e2e.js +43 -0
  49. package/dist/src/e2e/tcp.topic.e2e.d.ts +20 -0
  50. package/dist/src/e2e/tcp.topic.e2e.js +83 -0
  51. package/dist/src/e2e/tcp.user.e2e.d.ts +20 -0
  52. package/dist/src/e2e/tcp.user.e2e.js +95 -0
  53. package/dist/src/e2e/test-client.utils.d.ts +21 -0
  54. package/dist/src/e2e/test-client.utils.js +28 -0
  55. package/dist/src/index.d.ts +22 -0
  56. package/dist/src/index.js +22 -0
  57. package/dist/src/stream/consumer-stream.d.ts +40 -0
  58. package/dist/src/stream/consumer-stream.js +79 -0
  59. package/dist/src/stream/index.d.ts +20 -0
  60. package/dist/src/stream/index.js +20 -0
  61. package/dist/src/tcp.e2e.d.ts +20 -0
  62. package/dist/src/tcp.e2e.js +106 -0
  63. package/dist/src/tcp.sm.utils.d.ts +97 -0
  64. package/dist/src/tcp.sm.utils.js +66 -0
  65. package/dist/src/tls.system.e2e.d.ts +20 -0
  66. package/dist/src/tls.system.e2e.js +49 -0
  67. package/dist/src/type.utils.d.ts +21 -0
  68. package/dist/src/type.utils.js +25 -0
  69. package/dist/src/wire/client/client.utils.d.ts +32 -0
  70. package/dist/src/wire/client/client.utils.js +48 -0
  71. package/dist/src/wire/client/get-client.command.d.ts +30 -0
  72. package/dist/src/wire/client/get-client.command.js +33 -0
  73. package/dist/src/wire/client/get-clients.command.d.ts +27 -0
  74. package/dist/src/wire/client/get-clients.command.js +38 -0
  75. package/dist/src/wire/client/get-me.command.d.ts +27 -0
  76. package/dist/src/wire/client/get-me.command.js +28 -0
  77. package/dist/src/wire/client/index.d.ts +22 -0
  78. package/dist/src/wire/client/index.js +22 -0
  79. package/dist/src/wire/command-set.d.ts +128 -0
  80. package/dist/src/wire/command-set.js +157 -0
  81. package/dist/src/wire/command.code.d.ts +68 -0
  82. package/dist/src/wire/command.code.js +72 -0
  83. package/dist/src/wire/command.utils.d.ts +26 -0
  84. package/dist/src/wire/command.utils.js +29 -0
  85. package/dist/src/wire/consumer-group/create-group.command.d.ts +34 -0
  86. package/dist/src/wire/consumer-group/create-group.command.js +44 -0
  87. package/dist/src/wire/consumer-group/create-group.command.test.d.ts +20 -0
  88. package/dist/src/wire/consumer-group/create-group.command.test.js +47 -0
  89. package/dist/src/wire/consumer-group/delete-group.command.d.ts +31 -0
  90. package/dist/src/wire/consumer-group/delete-group.command.js +31 -0
  91. package/dist/src/wire/consumer-group/get-group.command.d.ts +33 -0
  92. package/dist/src/wire/consumer-group/get-group.command.js +32 -0
  93. package/dist/src/wire/consumer-group/get-groups.command.d.ts +32 -0
  94. package/dist/src/wire/consumer-group/get-groups.command.js +36 -0
  95. package/dist/src/wire/consumer-group/group.command.test.d.ts +20 -0
  96. package/dist/src/wire/consumer-group/group.command.test.js +50 -0
  97. package/dist/src/wire/consumer-group/group.utils.d.ts +34 -0
  98. package/dist/src/wire/consumer-group/group.utils.js +53 -0
  99. package/dist/src/wire/consumer-group/index.d.ts +25 -0
  100. package/dist/src/wire/consumer-group/index.js +25 -0
  101. package/dist/src/wire/consumer-group/join-group.command.d.ts +31 -0
  102. package/dist/src/wire/consumer-group/join-group.command.js +31 -0
  103. package/dist/src/wire/consumer-group/leave-group.command.d.ts +31 -0
  104. package/dist/src/wire/consumer-group/leave-group.command.js +31 -0
  105. package/dist/src/wire/error.code.d.ts +20 -0
  106. package/dist/src/wire/error.code.js +202 -0
  107. package/dist/src/wire/error.utils.d.ts +20 -0
  108. package/dist/src/wire/error.utils.js +23 -0
  109. package/dist/src/wire/identifier.utils.d.ts +21 -0
  110. package/dist/src/wire/identifier.utils.js +49 -0
  111. package/dist/src/wire/identifier.utils.test.d.ts +20 -0
  112. package/dist/src/wire/identifier.utils.test.js +40 -0
  113. package/dist/src/wire/index.d.ts +32 -0
  114. package/dist/src/wire/index.js +31 -0
  115. package/dist/src/wire/message/flush-unsaved-buffers.command.d.ts +31 -0
  116. package/dist/src/wire/message/flush-unsaved-buffers.command.js +31 -0
  117. package/dist/src/wire/message/header.type.d.ts +101 -0
  118. package/dist/src/wire/message/header.type.js +55 -0
  119. package/dist/src/wire/message/header.utils.d.ts +67 -0
  120. package/dist/src/wire/message/header.utils.js +248 -0
  121. package/dist/src/wire/message/header.utils.test.d.ts +20 -0
  122. package/dist/src/wire/message/header.utils.test.js +39 -0
  123. package/dist/src/wire/message/iggy-header.utils.d.ts +32 -0
  124. package/dist/src/wire/message/iggy-header.utils.js +50 -0
  125. package/dist/src/wire/message/index.d.ts +25 -0
  126. package/dist/src/wire/message/index.js +25 -0
  127. package/dist/src/wire/message/message.utils.d.ts +35 -0
  128. package/dist/src/wire/message/message.utils.js +112 -0
  129. package/dist/src/wire/message/partitioning.utils.d.ts +51 -0
  130. package/dist/src/wire/message/partitioning.utils.js +77 -0
  131. package/dist/src/wire/message/poll-messages.command.d.ts +43 -0
  132. package/dist/src/wire/message/poll-messages.command.js +32 -0
  133. package/dist/src/wire/message/poll.utils.d.ts +93 -0
  134. package/dist/src/wire/message/poll.utils.js +135 -0
  135. package/dist/src/wire/message/send-messages.command.d.ts +34 -0
  136. package/dist/src/wire/message/send-messages.command.js +31 -0
  137. package/dist/src/wire/message/send-messages.command.test.d.ts +20 -0
  138. package/dist/src/wire/message/send-messages.command.test.js +88 -0
  139. package/dist/src/wire/number.utils.d.ts +32 -0
  140. package/dist/src/wire/number.utils.js +85 -0
  141. package/dist/src/wire/offset/delete-offset.command.d.ts +28 -0
  142. package/dist/src/wire/offset/delete-offset.command.js +31 -0
  143. package/dist/src/wire/offset/get-offset.command.d.ts +34 -0
  144. package/dist/src/wire/offset/get-offset.command.js +41 -0
  145. package/dist/src/wire/offset/index.d.ts +22 -0
  146. package/dist/src/wire/offset/index.js +22 -0
  147. package/dist/src/wire/offset/offset.utils.d.ts +54 -0
  148. package/dist/src/wire/offset/offset.utils.js +60 -0
  149. package/dist/src/wire/offset/store-offset.command.d.ts +34 -0
  150. package/dist/src/wire/offset/store-offset.command.js +29 -0
  151. package/dist/src/wire/partition/create-partition.command.d.ts +31 -0
  152. package/dist/src/wire/partition/create-partition.command.js +31 -0
  153. package/dist/src/wire/partition/delete-partition.command.d.ts +31 -0
  154. package/dist/src/wire/partition/delete-partition.command.js +31 -0
  155. package/dist/src/wire/partition/index.d.ts +21 -0
  156. package/dist/src/wire/partition/index.js +21 -0
  157. package/dist/src/wire/partition/partition.utils.d.ts +21 -0
  158. package/dist/src/wire/partition/partition.utils.js +33 -0
  159. package/dist/src/wire/partition/partition.utils.test.d.ts +20 -0
  160. package/dist/src/wire/partition/partition.utils.test.js +33 -0
  161. package/dist/src/wire/segment/delete-segments.command.d.ts +32 -0
  162. package/dist/src/wire/segment/delete-segments.command.js +31 -0
  163. package/dist/src/wire/segment/index.d.ts +20 -0
  164. package/dist/src/wire/segment/index.js +20 -0
  165. package/dist/src/wire/segment/segment.utils.d.ts +21 -0
  166. package/dist/src/wire/segment/segment.utils.js +35 -0
  167. package/dist/src/wire/serialize.utils.d.ts +22 -0
  168. package/dist/src/wire/serialize.utils.js +27 -0
  169. package/dist/src/wire/session/index.d.ts +23 -0
  170. package/dist/src/wire/session/index.js +22 -0
  171. package/dist/src/wire/session/login-with-token.command.d.ts +32 -0
  172. package/dist/src/wire/session/login-with-token.command.js +30 -0
  173. package/dist/src/wire/session/login-with-token.command.test.d.ts +20 -0
  174. package/dist/src/wire/session/login-with-token.command.test.js +38 -0
  175. package/dist/src/wire/session/login.command.d.ts +29 -0
  176. package/dist/src/wire/session/login.command.js +30 -0
  177. package/dist/src/wire/session/login.command.test.d.ts +20 -0
  178. package/dist/src/wire/session/login.command.test.js +52 -0
  179. package/dist/src/wire/session/login.utils.d.ts +30 -0
  180. package/dist/src/wire/session/login.utils.js +54 -0
  181. package/dist/src/wire/session/logout.command.d.ts +25 -0
  182. package/dist/src/wire/session/logout.command.js +30 -0
  183. package/dist/src/wire/stream/create-stream.command.d.ts +31 -0
  184. package/dist/src/wire/stream/create-stream.command.js +41 -0
  185. package/dist/src/wire/stream/create-stream.command.test.d.ts +20 -0
  186. package/dist/src/wire/stream/create-stream.command.test.js +45 -0
  187. package/dist/src/wire/stream/delete-stream.command.d.ts +29 -0
  188. package/dist/src/wire/stream/delete-stream.command.js +31 -0
  189. package/dist/src/wire/stream/get-stream.command.d.ts +31 -0
  190. package/dist/src/wire/stream/get-stream.command.js +33 -0
  191. package/dist/src/wire/stream/get-streams.command.d.ts +27 -0
  192. package/dist/src/wire/stream/get-streams.command.js +38 -0
  193. package/dist/src/wire/stream/index.d.ts +25 -0
  194. package/dist/src/wire/stream/index.js +25 -0
  195. package/dist/src/wire/stream/purge-stream.command.d.ts +29 -0
  196. package/dist/src/wire/stream/purge-stream.command.js +31 -0
  197. package/dist/src/wire/stream/stream.utils.d.ts +33 -0
  198. package/dist/src/wire/stream/stream.utils.js +35 -0
  199. package/dist/src/wire/stream/update-stream.command.d.ts +30 -0
  200. package/dist/src/wire/stream/update-stream.command.js +40 -0
  201. package/dist/src/wire/system/get-stats.command.d.ts +50 -0
  202. package/dist/src/wire/system/get-stats.command.js +83 -0
  203. package/dist/src/wire/system/index.d.ts +21 -0
  204. package/dist/src/wire/system/index.js +21 -0
  205. package/dist/src/wire/system/ping.command.d.ts +25 -0
  206. package/dist/src/wire/system/ping.command.js +30 -0
  207. package/dist/src/wire/token/create-token.command.d.ts +31 -0
  208. package/dist/src/wire/token/create-token.command.js +37 -0
  209. package/dist/src/wire/token/create-token.command.test.d.ts +20 -0
  210. package/dist/src/wire/token/create-token.command.test.js +45 -0
  211. package/dist/src/wire/token/delete-token.command.d.ts +28 -0
  212. package/dist/src/wire/token/delete-token.command.js +38 -0
  213. package/dist/src/wire/token/delete-token.command.test.d.ts +20 -0
  214. package/dist/src/wire/token/delete-token.command.test.js +42 -0
  215. package/dist/src/wire/token/get-tokens.command.d.ts +27 -0
  216. package/dist/src/wire/token/get-tokens.command.js +28 -0
  217. package/dist/src/wire/token/index.d.ts +22 -0
  218. package/dist/src/wire/token/index.js +22 -0
  219. package/dist/src/wire/token/token.utils.d.ts +38 -0
  220. package/dist/src/wire/token/token.utils.js +53 -0
  221. package/dist/src/wire/topic/create-topic.command.d.ts +38 -0
  222. package/dist/src/wire/topic/create-topic.command.js +53 -0
  223. package/dist/src/wire/topic/create-topic.command.test.d.ts +20 -0
  224. package/dist/src/wire/topic/create-topic.command.test.js +67 -0
  225. package/dist/src/wire/topic/delete-topic.command.d.ts +32 -0
  226. package/dist/src/wire/topic/delete-topic.command.js +36 -0
  227. package/dist/src/wire/topic/get-topic.command.d.ts +33 -0
  228. package/dist/src/wire/topic/get-topic.command.js +36 -0
  229. package/dist/src/wire/topic/get-topics.command.d.ts +31 -0
  230. package/dist/src/wire/topic/get-topics.command.js +33 -0
  231. package/dist/src/wire/topic/index.d.ts +25 -0
  232. package/dist/src/wire/topic/index.js +25 -0
  233. package/dist/src/wire/topic/purge-topic.command.d.ts +30 -0
  234. package/dist/src/wire/topic/purge-topic.command.js +34 -0
  235. package/dist/src/wire/topic/topic.utils.d.ts +71 -0
  236. package/dist/src/wire/topic/topic.utils.js +91 -0
  237. package/dist/src/wire/topic/update-topic.command.d.ts +36 -0
  238. package/dist/src/wire/topic/update-topic.command.js +50 -0
  239. package/dist/src/wire/user/change-password.command.d.ts +30 -0
  240. package/dist/src/wire/user/change-password.command.js +45 -0
  241. package/dist/src/wire/user/create-user.command.d.ts +34 -0
  242. package/dist/src/wire/user/create-user.command.js +48 -0
  243. package/dist/src/wire/user/create-user.command.test.d.ts +20 -0
  244. package/dist/src/wire/user/create-user.command.test.js +60 -0
  245. package/dist/src/wire/user/delete-user.command.d.ts +29 -0
  246. package/dist/src/wire/user/delete-user.command.js +31 -0
  247. package/dist/src/wire/user/get-user.command.d.ts +31 -0
  248. package/dist/src/wire/user/get-user.command.js +31 -0
  249. package/dist/src/wire/user/get-users.command.d.ts +27 -0
  250. package/dist/src/wire/user/get-users.command.js +28 -0
  251. package/dist/src/wire/user/index.d.ts +26 -0
  252. package/dist/src/wire/user/index.js +26 -0
  253. package/dist/src/wire/user/permissions.utils.d.ts +77 -0
  254. package/dist/src/wire/user/permissions.utils.js +161 -0
  255. package/dist/src/wire/user/permissions.utils.test.d.ts +20 -0
  256. package/dist/src/wire/user/permissions.utils.test.js +44 -0
  257. package/dist/src/wire/user/update-permissions.command.d.ts +31 -0
  258. package/dist/src/wire/user/update-permissions.command.js +39 -0
  259. package/dist/src/wire/user/update-user.command.d.ts +32 -0
  260. package/dist/src/wire/user/update-user.command.js +54 -0
  261. package/dist/src/wire/user/user.utils.d.ts +41 -0
  262. package/dist/src/wire/user/user.utils.js +74 -0
  263. package/dist/src/wire/uuid.utils.d.ts +22 -0
  264. package/dist/src/wire/uuid.utils.js +23 -0
  265. package/package.json +70 -0
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { toDate } from '../serialize.utils.js';
20
+ export const CompressionAlgorithmKind = {
21
+ None: 1,
22
+ Gzip: 2
23
+ };
24
+ export const isValidCompressionAlgorithm = (ca) => Object.values(CompressionAlgorithmKind).includes(ca);
25
+ export const deserializeBaseTopic = (p, pos = 0) => {
26
+ const id = p.readUInt32LE(pos);
27
+ const createdAt = toDate(p.readBigUint64LE(pos + 4));
28
+ const partitionsCount = p.readUInt32LE(pos + 12);
29
+ const compressionAlgorithm = p.readUInt8(pos + 16);
30
+ const messageExpiry = p.readBigUInt64LE(pos + 17);
31
+ const maxTopicSize = p.readBigUInt64LE(pos + 25);
32
+ const replicationFactor = p.readUInt8(pos + 33);
33
+ const sizeBytes = p.readBigUInt64LE(pos + 34);
34
+ const messagesCount = p.readBigUInt64LE(pos + 42);
35
+ const nameLength = p.readUInt8(pos + 50);
36
+ const name = p.subarray(pos + 51, pos + 51 + nameLength).toString();
37
+ return {
38
+ bytesRead: 4 + 8 + 4 + 1 + 8 + 8 + 1 + 8 + 8 + 1 + nameLength,
39
+ data: {
40
+ id,
41
+ name,
42
+ createdAt,
43
+ partitionsCount,
44
+ compressionAlgorithm,
45
+ maxTopicSize,
46
+ replicationFactor,
47
+ messageExpiry,
48
+ messagesCount,
49
+ sizeBytes,
50
+ }
51
+ };
52
+ };
53
+ export const deserializePartition = (p, pos = 0) => {
54
+ return {
55
+ bytesRead: 4 + 8 + 4 + 8 + 8 + 8,
56
+ data: {
57
+ id: p.readUInt32LE(pos),
58
+ createdAt: toDate(p.readBigUint64LE(pos + 4)),
59
+ segmentsCount: p.readUInt32LE(pos + 12),
60
+ currentOffset: p.readBigUint64LE(pos + 16),
61
+ sizeBytes: p.readBigUint64LE(pos + 24),
62
+ messagesCount: p.readBigUint64LE(pos + 24),
63
+ }
64
+ };
65
+ };
66
+ export const deserializeTopic = (p, pos = 0) => {
67
+ if (p.length === 0)
68
+ throw new Error('Topic does not exist');
69
+ const start = pos;
70
+ const { bytesRead, data } = deserializeBaseTopic(p, pos);
71
+ pos += bytesRead;
72
+ const partitions = [];
73
+ const end = p.length;
74
+ while (pos < end) {
75
+ const { bytesRead, data } = deserializePartition(p, pos);
76
+ partitions.push(data);
77
+ pos += bytesRead;
78
+ }
79
+ return { bytesRead: pos - start, data: { ...data, partitions } };
80
+ };
81
+ export const deserializeTopics = (p, pos = 0) => {
82
+ const topics = [];
83
+ const len = p.length;
84
+ while (pos < len) {
85
+ const { bytesRead, data } = deserializeTopic(p, pos);
86
+ topics.push(data);
87
+ pos += bytesRead;
88
+ }
89
+ return topics;
90
+ };
91
+ //# sourceMappingURL=topic.utils.js.map
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { type Id } from '../identifier.utils.js';
20
+ import { type CompressionAlgorithm } from './topic.utils.js';
21
+ export type UpdateTopic = {
22
+ streamId: Id;
23
+ topicId: Id;
24
+ name: string;
25
+ compressionAlgorithm?: CompressionAlgorithm;
26
+ messageExpiry?: bigint;
27
+ maxTopicSize?: bigint;
28
+ replicationFactor?: number;
29
+ };
30
+ export declare const UPDATE_TOPIC: {
31
+ code: number;
32
+ serialize: ({ streamId, topicId, name, compressionAlgorithm, messageExpiry, maxTopicSize, replicationFactor, }: UpdateTopic) => Buffer<ArrayBuffer>;
33
+ deserialize: (r: import("../../index.js").CommandResponse) => boolean;
34
+ };
35
+ export declare const updateTopic: (getClient: import("../../index.js").ClientProvider) => (arg: UpdateTopic) => Promise<boolean>;
36
+ //# sourceMappingURL=update-topic.command.d.ts.map
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { serializeIdentifier } from '../identifier.utils.js';
20
+ import { deserializeVoidResponse } from '../../client/client.utils.js';
21
+ import { wrapCommand } from '../command.utils.js';
22
+ import { COMMAND_CODE } from '../command.code.js';
23
+ import { CompressionAlgorithmKind, isValidCompressionAlgorithm } from './topic.utils.js';
24
+ export const UPDATE_TOPIC = {
25
+ code: COMMAND_CODE.UpdateTopic,
26
+ serialize: ({ streamId, topicId, name, compressionAlgorithm = CompressionAlgorithmKind.None, messageExpiry = 0n, maxTopicSize = 0n, replicationFactor = 1, }) => {
27
+ const streamIdentifier = serializeIdentifier(streamId);
28
+ const topicIdentifier = serializeIdentifier(topicId);
29
+ const bName = Buffer.from(name);
30
+ if (bName.length < 1 || bName.length > 255)
31
+ throw new Error('Topic name should be between 1 and 255 bytes');
32
+ if (!isValidCompressionAlgorithm(compressionAlgorithm))
33
+ throw new Error(`createTopic: invalid compressionAlgorithm (${compressionAlgorithm})`);
34
+ const b = Buffer.allocUnsafe(8 + 8 + 1 + 1 + 1);
35
+ b.writeUInt8(compressionAlgorithm, 0);
36
+ b.writeBigUInt64LE(messageExpiry, 1); // 0 is unlimited ???
37
+ b.writeBigUInt64LE(maxTopicSize, 9); // optional, 0 is null
38
+ b.writeUInt8(replicationFactor, 17); // must be > 0
39
+ b.writeUInt8(bName.length, 18);
40
+ return Buffer.concat([
41
+ streamIdentifier,
42
+ topicIdentifier,
43
+ b,
44
+ bName,
45
+ ]);
46
+ },
47
+ deserialize: deserializeVoidResponse
48
+ };
49
+ export const updateTopic = wrapCommand(UPDATE_TOPIC);
50
+ //# sourceMappingURL=update-topic.command.js.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ export type ChangePassword = {
20
+ userId: number;
21
+ currentPassword: string;
22
+ newPassword: string;
23
+ };
24
+ export declare const CHANGE_PASSWORD: {
25
+ code: number;
26
+ serialize: ({ userId, currentPassword, newPassword }: ChangePassword) => Buffer<ArrayBuffer>;
27
+ deserialize: (r: import("../../index.js").CommandResponse) => boolean;
28
+ };
29
+ export declare const changePassword: (getClient: import("../../index.js").ClientProvider) => (arg: ChangePassword) => Promise<boolean>;
30
+ //# sourceMappingURL=change-password.command.d.ts.map
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { uint8ToBuf } from '../number.utils.js';
20
+ import { serializeIdentifier } from '../identifier.utils.js';
21
+ import { deserializeVoidResponse } from '../../client/client.utils.js';
22
+ import { wrapCommand } from '../command.utils.js';
23
+ import { COMMAND_CODE } from '../command.code.js';
24
+ export const CHANGE_PASSWORD = {
25
+ code: COMMAND_CODE.ChangePassword,
26
+ serialize: ({ userId, currentPassword, newPassword }) => {
27
+ const bId = serializeIdentifier(userId);
28
+ const bCur = Buffer.from(currentPassword);
29
+ const bNew = Buffer.from(newPassword);
30
+ if (bCur.length < 1 || bCur.length > 255)
31
+ throw new Error('User password should be between 1 and 255 bytes (current)');
32
+ if (bNew.length < 1 || bNew.length > 255)
33
+ throw new Error('User password should be between 1 and 255 bytes (new)');
34
+ return Buffer.concat([
35
+ bId,
36
+ uint8ToBuf(bCur.length),
37
+ bCur,
38
+ uint8ToBuf(bNew.length),
39
+ bNew
40
+ ]);
41
+ },
42
+ deserialize: deserializeVoidResponse
43
+ };
44
+ export const changePassword = wrapCommand(CHANGE_PASSWORD);
45
+ //# sourceMappingURL=change-password.command.js.map
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import type { CommandResponse } from '../../client/client.type.js';
20
+ import { type User, type UserStatus } from './user.utils.js';
21
+ import { type UserPermissions } from './permissions.utils.js';
22
+ export type CreateUser = {
23
+ username: string;
24
+ password: string;
25
+ status: UserStatus;
26
+ permissions?: UserPermissions;
27
+ };
28
+ export declare const CREATE_USER: {
29
+ code: number;
30
+ serialize: ({ username, password, status, permissions }: CreateUser) => Buffer<ArrayBuffer>;
31
+ deserialize: (r: CommandResponse) => User;
32
+ };
33
+ export declare const createUser: (getClient: import("../../client/client.type.js").ClientProvider) => (arg: CreateUser) => Promise<User>;
34
+ //# sourceMappingURL=create-user.command.d.ts.map
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { wrapCommand } from '../command.utils.js';
20
+ import { COMMAND_CODE } from '../command.code.js';
21
+ import { deserializeUser } from './user.utils.js';
22
+ import { uint8ToBuf, uint32ToBuf, boolToBuf } from '../number.utils.js';
23
+ import { serializePermissions } from './permissions.utils.js';
24
+ export const CREATE_USER = {
25
+ code: COMMAND_CODE.CreateUser,
26
+ serialize: ({ username, password, status, permissions }) => {
27
+ const bUsername = Buffer.from(username);
28
+ const bPassword = Buffer.from(password);
29
+ if (bUsername.length < 1 || bUsername.length > 255)
30
+ throw new Error('User username should be between 1 and 255 bytes');
31
+ if (bPassword.length < 1 || bPassword.length > 255)
32
+ throw new Error('User password should be between 1 and 255 bytes');
33
+ const bPermissions = serializePermissions(permissions);
34
+ return Buffer.concat([
35
+ uint8ToBuf(bUsername.length),
36
+ bUsername,
37
+ uint8ToBuf(bPassword.length),
38
+ bPassword,
39
+ uint8ToBuf(status),
40
+ boolToBuf(!!permissions),
41
+ uint32ToBuf(bPermissions.length),
42
+ bPermissions
43
+ ]);
44
+ },
45
+ deserialize: (r) => deserializeUser(r.data)
46
+ };
47
+ export const createUser = wrapCommand(CREATE_USER);
48
+ //# sourceMappingURL=create-user.command.js.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ export {};
20
+ //# sourceMappingURL=create-user.command.test.d.ts.map
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { describe, it } from 'node:test';
20
+ import assert from 'node:assert/strict';
21
+ import { CREATE_USER } from './create-user.command.js';
22
+ describe('CreateUser', () => {
23
+ describe('serialize', () => {
24
+ const u1 = {
25
+ id: 1,
26
+ username: 'test-user',
27
+ password: 'test-pwd',
28
+ status: 1, // Active,
29
+ // perms: undefined // @TODO
30
+ };
31
+ it('serialize username, password, status, permissions into buffer', () => {
32
+ assert.deepEqual(CREATE_USER.serialize(u1).length, 1 + u1.username.length + 1 + u1.password.length + 1 + 1 + 4 + 1);
33
+ });
34
+ it('throw on username < 1', () => {
35
+ const u2 = { ...u1, username: '' };
36
+ assert.throws(() => CREATE_USER.serialize(u2));
37
+ });
38
+ it('throw on username > 255 bytes', () => {
39
+ const u2 = { ...u1, username: "YoLo".repeat(65) };
40
+ assert.throws(() => CREATE_USER.serialize(u2));
41
+ });
42
+ it('throw on username > 255 bytes - utf8 version', () => {
43
+ const u2 = { ...u1, username: "¥Ø£Ø".repeat(33) };
44
+ assert.throws(() => CREATE_USER.serialize(u2));
45
+ });
46
+ it('throw on password < 1', () => {
47
+ const u2 = { ...u1, password: '' };
48
+ assert.throws(() => CREATE_USER.serialize(u2));
49
+ });
50
+ it('throw on password > 255 bytes', () => {
51
+ const u2 = { ...u1, password: "yolo".repeat(65) };
52
+ assert.throws(() => CREATE_USER.serialize(u2));
53
+ });
54
+ it('throw on password > 255 bytes - utf8 version', () => {
55
+ const u2 = { ...u1, password: "¥Ø£Ø".repeat(33) };
56
+ assert.throws(() => CREATE_USER.serialize(u2));
57
+ });
58
+ });
59
+ });
60
+ //# sourceMappingURL=create-user.command.test.js.map
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { type Id } from '../identifier.utils.js';
20
+ export type DeleteUser = {
21
+ userId: Id;
22
+ };
23
+ export declare const DELETE_USER: {
24
+ code: number;
25
+ serialize: ({ userId }: DeleteUser) => Buffer<ArrayBufferLike>;
26
+ deserialize: (r: import("../../index.js").CommandResponse) => boolean;
27
+ };
28
+ export declare const deleteUser: (getClient: import("../../index.js").ClientProvider) => (arg: DeleteUser) => Promise<boolean>;
29
+ //# sourceMappingURL=delete-user.command.d.ts.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { deserializeVoidResponse } from '../../client/client.utils.js';
20
+ import { wrapCommand } from '../command.utils.js';
21
+ import { COMMAND_CODE } from '../command.code.js';
22
+ import { serializeIdentifier } from '../identifier.utils.js';
23
+ export const DELETE_USER = {
24
+ code: COMMAND_CODE.DeleteUser,
25
+ serialize: ({ userId }) => {
26
+ return serializeIdentifier(userId);
27
+ },
28
+ deserialize: deserializeVoidResponse
29
+ };
30
+ export const deleteUser = wrapCommand(DELETE_USER);
31
+ //# sourceMappingURL=delete-user.command.js.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import type { CommandResponse } from '../../client/client.type.js';
20
+ import { type Id } from '../identifier.utils.js';
21
+ import { type User } from './user.utils.js';
22
+ export type GetUser = {
23
+ userId: Id;
24
+ };
25
+ export declare const GET_USER: {
26
+ code: number;
27
+ serialize: ({ userId }: GetUser) => Buffer<ArrayBufferLike>;
28
+ deserialize: (r: CommandResponse) => User;
29
+ };
30
+ export declare const getUser: (getClient: import("../../client/client.type.js").ClientProvider) => (arg: GetUser) => Promise<User>;
31
+ //# sourceMappingURL=get-user.command.d.ts.map
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { wrapCommand } from '../command.utils.js';
20
+ import { COMMAND_CODE } from '../command.code.js';
21
+ import { serializeIdentifier } from '../identifier.utils.js';
22
+ import { deserializeUser } from './user.utils.js';
23
+ export const GET_USER = {
24
+ code: COMMAND_CODE.GetUser,
25
+ serialize: ({ userId }) => {
26
+ return serializeIdentifier(userId);
27
+ },
28
+ deserialize: (r) => deserializeUser(r.data)
29
+ };
30
+ export const getUser = wrapCommand(GET_USER);
31
+ //# sourceMappingURL=get-user.command.js.map
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import type { CommandResponse } from '../../client/client.type.js';
20
+ import { type BaseUser } from './user.utils.js';
21
+ export declare const GET_USERS: {
22
+ code: number;
23
+ serialize: () => Buffer<ArrayBuffer>;
24
+ deserialize: (r: CommandResponse) => BaseUser[];
25
+ };
26
+ export declare const getUsers: (getClient: import("../../client/client.type.js").ClientProvider) => (arg: void) => Promise<BaseUser[]>;
27
+ //# sourceMappingURL=get-users.command.d.ts.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ import { wrapCommand } from '../command.utils.js';
20
+ import { COMMAND_CODE } from '../command.code.js';
21
+ import { deserializeUsers } from './user.utils.js';
22
+ export const GET_USERS = {
23
+ code: COMMAND_CODE.GetUsers,
24
+ serialize: () => Buffer.alloc(0),
25
+ deserialize: (r) => deserializeUsers(r.data)
26
+ };
27
+ export const getUsers = wrapCommand(GET_USERS);
28
+ //# sourceMappingURL=get-users.command.js.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ export * from './change-password.command.js';
20
+ export * from './create-user.command.js';
21
+ export * from './delete-user.command.js';
22
+ export * from './get-user.command.js';
23
+ export * from './get-users.command.js';
24
+ export * from './update-permissions.command.js';
25
+ export * from './update-user.command.js';
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ export * from './change-password.command.js';
20
+ export * from './create-user.command.js';
21
+ export * from './delete-user.command.js';
22
+ export * from './get-user.command.js';
23
+ export * from './get-users.command.js';
24
+ export * from './update-permissions.command.js';
25
+ export * from './update-user.command.js';
26
+ //# sourceMappingURL=index.js.map