@jsonjoy.com/json-pack 1.20.0 → 17.59.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 (344) hide show
  1. package/lib/JsonPackExtension.d.ts +8 -0
  2. package/lib/JsonPackExtension.js +8 -0
  3. package/lib/JsonPackExtension.js.map +1 -1
  4. package/lib/JsonPackMpint.d.ts +25 -0
  5. package/lib/JsonPackMpint.js +31 -1
  6. package/lib/JsonPackMpint.js.map +1 -1
  7. package/lib/JsonPackValue.d.ts +10 -0
  8. package/lib/JsonPackValue.js +10 -0
  9. package/lib/JsonPackValue.js.map +1 -1
  10. package/lib/avro/AvroDecoder.d.ts +67 -0
  11. package/lib/avro/AvroDecoder.js +77 -5
  12. package/lib/avro/AvroDecoder.js.map +1 -1
  13. package/lib/avro/AvroEncoder.d.ts +71 -0
  14. package/lib/avro/AvroEncoder.js +90 -12
  15. package/lib/avro/AvroEncoder.js.map +1 -1
  16. package/lib/avro/AvroSchemaDecoder.d.ts +53 -0
  17. package/lib/avro/AvroSchemaDecoder.js +60 -3
  18. package/lib/avro/AvroSchemaDecoder.js.map +1 -1
  19. package/lib/avro/AvroSchemaEncoder.d.ts +65 -0
  20. package/lib/avro/AvroSchemaEncoder.js +84 -5
  21. package/lib/avro/AvroSchemaEncoder.js.map +1 -1
  22. package/lib/avro/AvroSchemaValidator.d.ts +10 -0
  23. package/lib/avro/AvroSchemaValidator.js +18 -1
  24. package/lib/avro/AvroSchemaValidator.js.map +1 -1
  25. package/lib/avro/types.d.ts +31 -0
  26. package/lib/avro/types.js +4 -0
  27. package/lib/avro/types.js.map +1 -1
  28. package/lib/bencode/BencodeDecoder.js +9 -9
  29. package/lib/bencode/BencodeDecoder.js.map +1 -1
  30. package/lib/bencode/BencodeEncoder.d.ts +5 -0
  31. package/lib/bencode/BencodeEncoder.js +25 -20
  32. package/lib/bencode/BencodeEncoder.js.map +1 -1
  33. package/lib/bson/BsonDecoder.js +48 -33
  34. package/lib/bson/BsonDecoder.js.map +1 -1
  35. package/lib/bson/BsonEncoder.js +11 -3
  36. package/lib/bson/BsonEncoder.js.map +1 -1
  37. package/lib/cbor/CborDecoder.d.ts +24 -0
  38. package/lib/cbor/CborDecoder.js +94 -56
  39. package/lib/cbor/CborDecoder.js.map +1 -1
  40. package/lib/cbor/CborDecoderBase.d.ts +1 -0
  41. package/lib/cbor/CborDecoderBase.js +63 -53
  42. package/lib/cbor/CborDecoderBase.js.map +1 -1
  43. package/lib/cbor/CborEncoder.d.ts +5 -0
  44. package/lib/cbor/CborEncoder.js +9 -3
  45. package/lib/cbor/CborEncoder.js.map +1 -1
  46. package/lib/cbor/CborEncoderFast.d.ts +7 -0
  47. package/lib/cbor/CborEncoderFast.js +22 -14
  48. package/lib/cbor/CborEncoderFast.js.map +1 -1
  49. package/lib/cbor/CborEncoderStable.d.ts +1 -0
  50. package/lib/cbor/CborEncoderStable.js +2 -1
  51. package/lib/cbor/CborEncoderStable.js.map +1 -1
  52. package/lib/cbor/shared.d.ts +1 -1
  53. package/lib/codecs/Codecs.d.ts +1 -1
  54. package/lib/codecs/cbor.js +1 -1
  55. package/lib/codecs/cbor.js.map +1 -1
  56. package/lib/codecs/json.js +1 -1
  57. package/lib/codecs/json.js.map +1 -1
  58. package/lib/codecs/msgpack.js +1 -1
  59. package/lib/codecs/msgpack.js.map +1 -1
  60. package/lib/ejson/EjsonDecoder.d.ts +5 -0
  61. package/lib/ejson/EjsonDecoder.js +72 -37
  62. package/lib/ejson/EjsonDecoder.js.map +1 -1
  63. package/lib/ejson/EjsonEncoder.d.ts +5 -0
  64. package/lib/ejson/EjsonEncoder.js +149 -114
  65. package/lib/ejson/EjsonEncoder.js.map +1 -1
  66. package/lib/ejson/index.js +1 -0
  67. package/lib/ejson/index.js.map +1 -1
  68. package/lib/ion/Import.d.ts +1 -1
  69. package/lib/ion/Import.js.map +1 -1
  70. package/lib/ion/IonDecoder.d.ts +0 -1
  71. package/lib/ion/IonDecoder.js +4 -3
  72. package/lib/ion/IonDecoder.js.map +1 -1
  73. package/lib/ion/IonDecoderBase.js +29 -18
  74. package/lib/ion/IonDecoderBase.js.map +1 -1
  75. package/lib/ion/IonEncoderFast.d.ts +1 -1
  76. package/lib/ion/IonEncoderFast.js +30 -30
  77. package/lib/ion/IonEncoderFast.js.map +1 -1
  78. package/lib/ion/ast.d.ts +4 -1
  79. package/lib/ion/symbols.d.ts +1 -1
  80. package/lib/json/JsonDecoder.js +72 -66
  81. package/lib/json/JsonDecoder.js.map +1 -1
  82. package/lib/json/JsonDecoderDag.js +14 -0
  83. package/lib/json/JsonDecoderDag.js.map +1 -1
  84. package/lib/json/JsonDecoderPartial.d.ts +22 -0
  85. package/lib/json/JsonDecoderPartial.js +30 -8
  86. package/lib/json/JsonDecoderPartial.js.map +1 -1
  87. package/lib/json/JsonEncoder.d.ts +5 -0
  88. package/lib/json/JsonEncoder.js +68 -54
  89. package/lib/json/JsonEncoder.js.map +1 -1
  90. package/lib/json/JsonEncoderDag.d.ts +17 -0
  91. package/lib/json/JsonEncoderDag.js +27 -10
  92. package/lib/json/JsonEncoderDag.js.map +1 -1
  93. package/lib/json/JsonEncoderStable.js +5 -5
  94. package/lib/json/JsonEncoderStable.js.map +1 -1
  95. package/lib/json-binary/codec.d.ts +8 -1
  96. package/lib/json-binary/codec.js +7 -0
  97. package/lib/json-binary/codec.js.map +1 -1
  98. package/lib/msgpack/MsgPackDecoder.d.ts +27 -0
  99. package/lib/msgpack/MsgPackDecoder.js +55 -23
  100. package/lib/msgpack/MsgPackDecoder.js.map +1 -1
  101. package/lib/msgpack/MsgPackDecoderFast.d.ts +8 -0
  102. package/lib/msgpack/MsgPackDecoderFast.js +14 -5
  103. package/lib/msgpack/MsgPackDecoderFast.js.map +1 -1
  104. package/lib/msgpack/MsgPackEncoder.d.ts +3 -0
  105. package/lib/msgpack/MsgPackEncoder.js +7 -4
  106. package/lib/msgpack/MsgPackEncoder.js.map +1 -1
  107. package/lib/msgpack/MsgPackEncoderFast.d.ts +26 -4
  108. package/lib/msgpack/MsgPackEncoderFast.js +31 -0
  109. package/lib/msgpack/MsgPackEncoderFast.js.map +1 -1
  110. package/lib/msgpack/MsgPackEncoderStable.d.ts +3 -0
  111. package/lib/msgpack/MsgPackEncoderStable.js +3 -0
  112. package/lib/msgpack/MsgPackEncoderStable.js.map +1 -1
  113. package/lib/msgpack/MsgPackToJsonConverter.d.ts +30 -4
  114. package/lib/msgpack/MsgPackToJsonConverter.js +32 -5
  115. package/lib/msgpack/MsgPackToJsonConverter.js.map +1 -1
  116. package/lib/msgpack/index.d.ts +29 -0
  117. package/lib/msgpack/index.js +30 -0
  118. package/lib/msgpack/index.js.map +1 -1
  119. package/lib/msgpack/shallow-read.js +7 -7
  120. package/lib/msgpack/shallow-read.js.map +1 -1
  121. package/lib/msgpack/types.d.ts +1 -0
  122. package/lib/msgpack/util.d.ts +1 -1
  123. package/lib/nfs/v3/FullNfsv3Encoder.d.ts +3 -3
  124. package/lib/nfs/v3/FullNfsv3Encoder.js +3 -3
  125. package/lib/nfs/v3/FullNfsv3Encoder.js.map +1 -1
  126. package/lib/nfs/v3/Nfsv3Decoder.js +51 -50
  127. package/lib/nfs/v3/Nfsv3Decoder.js.map +1 -1
  128. package/lib/nfs/v3/Nfsv3Encoder.d.ts +2 -2
  129. package/lib/nfs/v3/Nfsv3Encoder.js +52 -52
  130. package/lib/nfs/v3/Nfsv3Encoder.js.map +1 -1
  131. package/lib/nfs/v3/constants.d.ts +34 -0
  132. package/lib/nfs/v3/constants.js +4 -0
  133. package/lib/nfs/v3/constants.js.map +1 -1
  134. package/lib/nfs/v3/locks/NlmDecoder.js +20 -20
  135. package/lib/nfs/v3/locks/NlmDecoder.js.map +1 -1
  136. package/lib/nfs/v3/locks/NlmEncoder.d.ts +2 -2
  137. package/lib/nfs/v3/locks/NlmEncoder.js +20 -20
  138. package/lib/nfs/v3/locks/NlmEncoder.js.map +1 -1
  139. package/lib/nfs/v3/locks/constants.d.ts +9 -0
  140. package/lib/nfs/v3/locks/messages.d.ts +58 -1
  141. package/lib/nfs/v3/locks/messages.js +54 -0
  142. package/lib/nfs/v3/locks/messages.js.map +1 -1
  143. package/lib/nfs/v3/locks/structs.d.ts +15 -0
  144. package/lib/nfs/v3/locks/structs.js +15 -0
  145. package/lib/nfs/v3/locks/structs.js.map +1 -1
  146. package/lib/nfs/v3/messages.d.ts +249 -0
  147. package/lib/nfs/v3/messages.js +249 -0
  148. package/lib/nfs/v3/messages.js.map +1 -1
  149. package/lib/nfs/v3/mount/MountDecoder.js +12 -12
  150. package/lib/nfs/v3/mount/MountEncoder.d.ts +2 -2
  151. package/lib/nfs/v3/mount/MountEncoder.js +13 -13
  152. package/lib/nfs/v3/mount/MountEncoder.js.map +1 -1
  153. package/lib/nfs/v3/mount/constants.d.ts +9 -0
  154. package/lib/nfs/v3/mount/messages.d.ts +31 -1
  155. package/lib/nfs/v3/mount/messages.js +27 -0
  156. package/lib/nfs/v3/mount/messages.js.map +1 -1
  157. package/lib/nfs/v3/mount/structs.d.ts +15 -0
  158. package/lib/nfs/v3/mount/structs.js +15 -0
  159. package/lib/nfs/v3/mount/structs.js.map +1 -1
  160. package/lib/nfs/v3/structs.d.ts +78 -0
  161. package/lib/nfs/v3/structs.js +78 -0
  162. package/lib/nfs/v3/structs.js.map +1 -1
  163. package/lib/nfs/v4/Nfsv4Decoder.d.ts +14 -12
  164. package/lib/nfs/v4/Nfsv4Decoder.js +241 -165
  165. package/lib/nfs/v4/Nfsv4Decoder.js.map +1 -1
  166. package/lib/nfs/v4/Nfsv4Encoder.d.ts +6 -93
  167. package/lib/nfs/v4/Nfsv4Encoder.js +8 -824
  168. package/lib/nfs/v4/Nfsv4Encoder.js.map +1 -1
  169. package/lib/nfs/v4/Nfsv4FullEncoder.d.ts +32 -0
  170. package/lib/nfs/v4/Nfsv4FullEncoder.js +72 -0
  171. package/lib/nfs/v4/Nfsv4FullEncoder.js.map +1 -0
  172. package/lib/nfs/v4/attributes.d.ts +79 -0
  173. package/lib/nfs/v4/attributes.js +265 -0
  174. package/lib/nfs/v4/attributes.js.map +1 -0
  175. package/lib/nfs/v4/builder.d.ts +333 -0
  176. package/lib/nfs/v4/builder.js +460 -0
  177. package/lib/nfs/v4/builder.js.map +1 -0
  178. package/lib/nfs/v4/client/NfsFsDir.d.ts +23 -0
  179. package/lib/nfs/v4/client/NfsFsDir.js +132 -0
  180. package/lib/nfs/v4/client/NfsFsDir.js.map +1 -0
  181. package/lib/nfs/v4/client/NfsFsDirent.d.ts +17 -0
  182. package/lib/nfs/v4/client/NfsFsDirent.js +35 -0
  183. package/lib/nfs/v4/client/NfsFsDirent.js.map +1 -0
  184. package/lib/nfs/v4/client/NfsFsFileHandle.d.ts +35 -0
  185. package/lib/nfs/v4/client/NfsFsFileHandle.js +271 -0
  186. package/lib/nfs/v4/client/NfsFsFileHandle.js.map +1 -0
  187. package/lib/nfs/v4/client/NfsFsStats.d.ts +34 -0
  188. package/lib/nfs/v4/client/NfsFsStats.js +52 -0
  189. package/lib/nfs/v4/client/NfsFsStats.js.map +1 -0
  190. package/lib/nfs/v4/client/Nfsv4FsClient.d.ts +53 -0
  191. package/lib/nfs/v4/client/Nfsv4FsClient.js +812 -0
  192. package/lib/nfs/v4/client/Nfsv4FsClient.js.map +1 -0
  193. package/lib/nfs/v4/client/Nfsv4TcpClient.d.ts +41 -0
  194. package/lib/nfs/v4/client/Nfsv4TcpClient.js +216 -0
  195. package/lib/nfs/v4/client/Nfsv4TcpClient.js.map +1 -0
  196. package/lib/nfs/v4/client/types.d.ts +9 -0
  197. package/lib/nfs/v4/client/types.js +3 -0
  198. package/lib/nfs/v4/client/types.js.map +1 -0
  199. package/lib/nfs/v4/constants.d.ts +80 -0
  200. package/lib/nfs/v4/constants.js +4 -0
  201. package/lib/nfs/v4/constants.js.map +1 -1
  202. package/lib/nfs/v4/format.d.ts +23 -0
  203. package/lib/nfs/v4/format.js +870 -0
  204. package/lib/nfs/v4/format.js.map +1 -0
  205. package/lib/nfs/v4/index.d.ts +3 -1
  206. package/lib/nfs/v4/index.js +3 -1
  207. package/lib/nfs/v4/index.js.map +1 -1
  208. package/lib/nfs/v4/messages.d.ts +208 -90
  209. package/lib/nfs/v4/messages.js +585 -1
  210. package/lib/nfs/v4/messages.js.map +1 -1
  211. package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.d.ts +30 -0
  212. package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js +176 -0
  213. package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js.map +1 -0
  214. package/lib/nfs/v4/server/Nfsv4Connection.d.ts +45 -0
  215. package/lib/nfs/v4/server/Nfsv4Connection.js +163 -0
  216. package/lib/nfs/v4/server/Nfsv4Connection.js.map +1 -0
  217. package/lib/nfs/v4/server/Nfsv4TcpServer.d.ts +25 -0
  218. package/lib/nfs/v4/server/Nfsv4TcpServer.js +92 -0
  219. package/lib/nfs/v4/server/Nfsv4TcpServer.js.map +1 -0
  220. package/lib/nfs/v4/server/operations/ByteRangeLock.d.ts +79 -0
  221. package/lib/nfs/v4/server/operations/ByteRangeLock.js +63 -0
  222. package/lib/nfs/v4/server/operations/ByteRangeLock.js.map +1 -0
  223. package/lib/nfs/v4/server/operations/ClientRecord.d.ts +110 -0
  224. package/lib/nfs/v4/server/operations/ClientRecord.js +70 -0
  225. package/lib/nfs/v4/server/operations/ClientRecord.js.map +1 -0
  226. package/lib/nfs/v4/server/operations/FilesystemStats.d.ts +30 -0
  227. package/lib/nfs/v4/server/operations/FilesystemStats.js +30 -0
  228. package/lib/nfs/v4/server/operations/FilesystemStats.js.map +1 -0
  229. package/lib/nfs/v4/server/operations/LockOwnerState.d.ts +82 -0
  230. package/lib/nfs/v4/server/operations/LockOwnerState.js +57 -0
  231. package/lib/nfs/v4/server/operations/LockOwnerState.js.map +1 -0
  232. package/lib/nfs/v4/server/operations/LockStateid.d.ts +64 -0
  233. package/lib/nfs/v4/server/operations/LockStateid.js +58 -0
  234. package/lib/nfs/v4/server/operations/LockStateid.js.map +1 -0
  235. package/lib/nfs/v4/server/operations/Nfsv4Operations.d.ts +45 -0
  236. package/lib/nfs/v4/server/operations/Nfsv4Operations.js +3 -0
  237. package/lib/nfs/v4/server/operations/Nfsv4Operations.js.map +1 -0
  238. package/lib/nfs/v4/server/operations/Nfsv4OperationsNotImpl.d.ts +42 -0
  239. package/lib/nfs/v4/server/operations/Nfsv4OperationsNotImpl.js +159 -0
  240. package/lib/nfs/v4/server/operations/Nfsv4OperationsNotImpl.js.map +1 -0
  241. package/lib/nfs/v4/server/operations/OpenFileState.d.ts +102 -0
  242. package/lib/nfs/v4/server/operations/OpenFileState.js +68 -0
  243. package/lib/nfs/v4/server/operations/OpenFileState.js.map +1 -0
  244. package/lib/nfs/v4/server/operations/OpenOwnerState.d.ts +83 -0
  245. package/lib/nfs/v4/server/operations/OpenOwnerState.js +58 -0
  246. package/lib/nfs/v4/server/operations/OpenOwnerState.js.map +1 -0
  247. package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.d.ts +169 -0
  248. package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js +1474 -0
  249. package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js.map +1 -0
  250. package/lib/nfs/v4/server/operations/node/attrs.d.ts +17 -0
  251. package/lib/nfs/v4/server/operations/node/attrs.js +275 -0
  252. package/lib/nfs/v4/server/operations/node/attrs.js.map +1 -0
  253. package/lib/nfs/v4/server/operations/node/fh.d.ts +93 -0
  254. package/lib/nfs/v4/server/operations/node/fh.js +209 -0
  255. package/lib/nfs/v4/server/operations/node/fh.js.map +1 -0
  256. package/lib/nfs/v4/server/operations/node/util.d.ts +4 -0
  257. package/lib/nfs/v4/server/operations/node/util.js +17 -0
  258. package/lib/nfs/v4/server/operations/node/util.js.map +1 -0
  259. package/lib/nfs/v4/server/types.d.ts +4 -0
  260. package/lib/nfs/v4/server/types.js +3 -0
  261. package/lib/nfs/v4/server/types.js.map +1 -0
  262. package/lib/nfs/v4/server/util.d.ts +5 -0
  263. package/lib/nfs/v4/server/util.js +184 -0
  264. package/lib/nfs/v4/server/util.js.map +1 -0
  265. package/lib/nfs/v4/structs.d.ts +243 -56
  266. package/lib/nfs/v4/structs.js +367 -17
  267. package/lib/nfs/v4/structs.js.map +1 -1
  268. package/lib/resp/RespDecoder.d.ts +9 -0
  269. package/lib/resp/RespDecoder.js +93 -76
  270. package/lib/resp/RespDecoder.js.map +1 -1
  271. package/lib/resp/RespEncoder.d.ts +8 -0
  272. package/lib/resp/RespEncoder.js +107 -89
  273. package/lib/resp/RespEncoder.js.map +1 -1
  274. package/lib/resp/RespEncoderLegacy.d.ts +3 -0
  275. package/lib/resp/RespEncoderLegacy.js +7 -4
  276. package/lib/resp/RespEncoderLegacy.js.map +1 -1
  277. package/lib/resp/RespStreamingDecoder.d.ts +48 -0
  278. package/lib/resp/RespStreamingDecoder.js +48 -0
  279. package/lib/resp/RespStreamingDecoder.js.map +1 -1
  280. package/lib/resp/constants.d.ts +19 -19
  281. package/lib/rm/RmRecordDecoder.js.map +1 -1
  282. package/lib/rm/RmRecordEncoder.d.ts +17 -1
  283. package/lib/rm/RmRecordEncoder.js +40 -1
  284. package/lib/rm/RmRecordEncoder.js.map +1 -1
  285. package/lib/rpc/RpcMessageDecoder.d.ts +1 -1
  286. package/lib/rpc/RpcMessageDecoder.js +11 -8
  287. package/lib/rpc/RpcMessageDecoder.js.map +1 -1
  288. package/lib/rpc/RpcMessageEncoder.d.ts +2 -2
  289. package/lib/rpc/RpcMessageEncoder.js +6 -6
  290. package/lib/rpc/RpcMessageEncoder.js.map +1 -1
  291. package/lib/rpc/constants.d.ts +76 -28
  292. package/lib/rpc/constants.js +10 -0
  293. package/lib/rpc/constants.js.map +1 -1
  294. package/lib/ssh/SshDecoder.d.ts +47 -1
  295. package/lib/ssh/SshDecoder.js +52 -2
  296. package/lib/ssh/SshDecoder.js.map +1 -1
  297. package/lib/ssh/SshEncoder.d.ts +70 -1
  298. package/lib/ssh/SshEncoder.js +81 -8
  299. package/lib/ssh/SshEncoder.js.map +1 -1
  300. package/lib/ssh/index.d.ts +6 -0
  301. package/lib/ssh/index.js +6 -0
  302. package/lib/ssh/index.js.map +1 -1
  303. package/lib/ubjson/UbjsonDecoder.js +1 -1
  304. package/lib/ubjson/UbjsonDecoder.js.map +1 -1
  305. package/lib/ubjson/UbjsonEncoder.js +6 -5
  306. package/lib/ubjson/UbjsonEncoder.js.map +1 -1
  307. package/lib/util/CompressionTable.js +4 -4
  308. package/lib/util/CompressionTable.js.map +1 -1
  309. package/lib/util/DecompressionTable.js +3 -2
  310. package/lib/util/DecompressionTable.js.map +1 -1
  311. package/lib/ws/WsFrameDecoder.d.ts +18 -0
  312. package/lib/ws/WsFrameDecoder.js +18 -0
  313. package/lib/ws/WsFrameDecoder.js.map +1 -1
  314. package/lib/ws/WsFrameEncoder.d.ts +1 -1
  315. package/lib/ws/WsFrameEncoder.js +3 -3
  316. package/lib/ws/WsFrameEncoder.js.map +1 -1
  317. package/lib/ws/constants.js +5 -0
  318. package/lib/ws/constants.js.map +1 -1
  319. package/lib/xdr/XdrDecoder.d.ts +62 -0
  320. package/lib/xdr/XdrDecoder.js +73 -6
  321. package/lib/xdr/XdrDecoder.js.map +1 -1
  322. package/lib/xdr/XdrEncoder.d.ts +71 -0
  323. package/lib/xdr/XdrEncoder.js +88 -13
  324. package/lib/xdr/XdrEncoder.js.map +1 -1
  325. package/lib/xdr/XdrSchemaDecoder.d.ts +40 -0
  326. package/lib/xdr/XdrSchemaDecoder.js +52 -0
  327. package/lib/xdr/XdrSchemaDecoder.js.map +1 -1
  328. package/lib/xdr/XdrSchemaEncoder.d.ts +5 -0
  329. package/lib/xdr/XdrSchemaEncoder.js +9 -0
  330. package/lib/xdr/XdrSchemaEncoder.js.map +1 -1
  331. package/lib/xdr/XdrSchemaValidator.d.ts +9 -0
  332. package/lib/xdr/XdrSchemaValidator.js +42 -11
  333. package/lib/xdr/XdrSchemaValidator.js.map +1 -1
  334. package/lib/xdr/XdrUnion.d.ts +5 -0
  335. package/lib/xdr/XdrUnion.js +5 -0
  336. package/lib/xdr/XdrUnion.js.map +1 -1
  337. package/lib/xdr/index.d.ts +14 -0
  338. package/lib/xdr/index.js +14 -0
  339. package/lib/xdr/index.js.map +1 -1
  340. package/lib/xdr/types.d.ts +52 -0
  341. package/package.json +35 -56
  342. package/lib/nfs/v4/FullNfsv4Encoder.d.ts +0 -28
  343. package/lib/nfs/v4/FullNfsv4Encoder.js +0 -73
  344. package/lib/nfs/v4/FullNfsv4Encoder.js.map +0 -1
@@ -1,207 +1,394 @@
1
+ import type { XdrDecoder, XdrEncoder, XdrType } from '../../xdr';
1
2
  import type { Nfsv4FType, Nfsv4TimeHow, Nfsv4DelegType } from './constants';
2
- export declare class Nfsv4Time {
3
+ /**
4
+ * NFSv4 time structure (seconds and nanoseconds since epoch)
5
+ */
6
+ export declare class Nfsv4Time implements XdrType {
3
7
  readonly seconds: bigint;
4
8
  readonly nseconds: number;
5
9
  constructor(seconds: bigint, nseconds: number);
10
+ encode(xdr: XdrEncoder): void;
6
11
  }
7
- export declare class Nfsv4SpecData {
12
+ /**
13
+ * Special device file data (major/minor device numbers)
14
+ */
15
+ export declare class Nfsv4SpecData implements XdrType {
8
16
  readonly specdata1: number;
9
17
  readonly specdata2: number;
10
18
  constructor(specdata1: number, specdata2: number);
19
+ encode(xdr: XdrEncoder): void;
11
20
  }
12
- export declare class Nfsv4Fh {
21
+ /**
22
+ * NFSv4 file handle
23
+ */
24
+ export declare class Nfsv4Fh implements XdrType {
13
25
  readonly data: Uint8Array;
14
26
  constructor(data: Uint8Array);
27
+ encode(xdr: XdrEncoder): void;
15
28
  }
16
- export declare class Nfsv4Verifier {
29
+ /**
30
+ * NFSv4 verifier (8 bytes)
31
+ */
32
+ export declare class Nfsv4Verifier implements XdrType {
17
33
  readonly data: Uint8Array;
18
34
  constructor(data: Uint8Array);
35
+ encode(xdr: XdrEncoder): void;
19
36
  }
20
- export declare class Nfsv4Fsid {
37
+ /**
38
+ * File system identifier
39
+ */
40
+ export declare class Nfsv4Fsid implements XdrType {
21
41
  readonly major: bigint;
22
42
  readonly minor: bigint;
23
43
  constructor(major: bigint, minor: bigint);
44
+ encode(xdr: XdrEncoder): void;
24
45
  }
25
- export declare class Nfsv4Stateid {
46
+ /**
47
+ * Stateid structure for state management
48
+ */
49
+ export declare class Nfsv4Stateid implements XdrType {
26
50
  readonly seqid: number;
27
51
  readonly other: Uint8Array;
52
+ static decode(xdr: XdrDecoder): Nfsv4Stateid;
28
53
  constructor(seqid: number, other: Uint8Array);
54
+ encode(xdr: XdrEncoder): void;
29
55
  }
30
- export declare class Nfsv4ChangeInfo {
56
+ /**
57
+ * Change information for directory operations
58
+ */
59
+ export declare class Nfsv4ChangeInfo implements XdrType {
31
60
  readonly atomic: boolean;
32
61
  readonly before: bigint;
33
62
  readonly after: bigint;
34
63
  constructor(atomic: boolean, before: bigint, after: bigint);
64
+ encode(xdr: XdrEncoder): void;
35
65
  }
36
- export declare class Nfsv4SetTime {
66
+ /**
67
+ * Set time discriminated union
68
+ */
69
+ export declare class Nfsv4SetTime implements XdrType {
37
70
  readonly how: Nfsv4TimeHow;
38
71
  readonly time?: Nfsv4Time | undefined;
39
72
  constructor(how: Nfsv4TimeHow, time?: Nfsv4Time | undefined);
73
+ encode(xdr: XdrEncoder): void;
40
74
  }
41
- export declare class Nfsv4Bitmap {
75
+ /**
76
+ * Bitmap for attribute mask
77
+ */
78
+ export declare class Nfsv4Bitmap implements XdrType {
42
79
  readonly mask: number[];
43
80
  constructor(mask: number[]);
81
+ encode(xdr: XdrEncoder): void;
44
82
  }
45
- export declare class Nfsv4Fattr {
83
+ /**
84
+ * File attributes structure
85
+ */
86
+ export declare class Nfsv4Fattr implements XdrType {
46
87
  readonly attrmask: Nfsv4Bitmap;
47
88
  readonly attrVals: Uint8Array;
48
89
  constructor(attrmask: Nfsv4Bitmap, attrVals: Uint8Array);
90
+ encode(xdr: XdrEncoder): void;
49
91
  }
50
- export declare class Nfsv4ClientAddr {
92
+ /**
93
+ * Client address for callbacks
94
+ */
95
+ export declare class Nfsv4ClientAddr implements XdrType {
51
96
  readonly rNetid: string;
52
97
  readonly rAddr: string;
53
98
  constructor(rNetid: string, rAddr: string);
99
+ encode(xdr: XdrEncoder): void;
54
100
  }
55
- export declare class Nfsv4CbClient {
101
+ /**
102
+ * Callback client information
103
+ */
104
+ export declare class Nfsv4CbClient implements XdrType {
56
105
  readonly cbProgram: number;
57
106
  readonly cbLocation: Nfsv4ClientAddr;
58
107
  constructor(cbProgram: number, cbLocation: Nfsv4ClientAddr);
108
+ encode(xdr: XdrEncoder): void;
59
109
  }
60
- export declare class Nfsv4ClientId {
110
+ /**
111
+ * NFS client identifier
112
+ */
113
+ export declare class Nfsv4ClientId implements XdrType {
61
114
  readonly verifier: Nfsv4Verifier;
62
115
  readonly id: Uint8Array;
63
116
  constructor(verifier: Nfsv4Verifier, id: Uint8Array);
117
+ encode(xdr: XdrEncoder): void;
64
118
  }
65
- export declare class Nfsv4OpenOwner {
119
+ /**
120
+ * Open owner identification
121
+ */
122
+ export declare class Nfsv4OpenOwner implements XdrType {
66
123
  readonly clientid: bigint;
67
124
  readonly owner: Uint8Array;
68
125
  constructor(clientid: bigint, owner: Uint8Array);
126
+ encode(xdr: XdrEncoder): void;
69
127
  }
70
- export declare class Nfsv4LockOwner {
128
+ /**
129
+ * Lock owner identification
130
+ */
131
+ export declare class Nfsv4LockOwner implements XdrType {
71
132
  readonly clientid: bigint;
72
133
  readonly owner: Uint8Array;
73
134
  constructor(clientid: bigint, owner: Uint8Array);
135
+ encode(xdr: XdrEncoder): void;
74
136
  }
75
- export declare class Nfsv4OpenToLockOwner {
137
+ /**
138
+ * Open to lock owner transition
139
+ */
140
+ export declare class Nfsv4OpenToLockOwner implements XdrType {
76
141
  readonly openSeqid: number;
77
142
  readonly openStateid: Nfsv4Stateid;
78
143
  readonly lockSeqid: number;
79
144
  readonly lockOwner: Nfsv4LockOwner;
80
145
  constructor(openSeqid: number, openStateid: Nfsv4Stateid, lockSeqid: number, lockOwner: Nfsv4LockOwner);
146
+ encode(xdr: XdrEncoder): void;
81
147
  }
82
- export declare class Nfsv4FsLocation {
148
+ /**
149
+ * File system location
150
+ */
151
+ export declare class Nfsv4FsLocation implements XdrType {
83
152
  readonly server: string[];
84
153
  readonly rootpath: string[];
85
154
  constructor(server: string[], rootpath: string[]);
155
+ encode(xdr: XdrEncoder): void;
86
156
  }
87
- export declare class Nfsv4FsLocations {
157
+ /**
158
+ * File system locations for migration/replication
159
+ */
160
+ export declare class Nfsv4FsLocations implements XdrType {
88
161
  readonly fsRoot: string[];
89
162
  readonly locations: Nfsv4FsLocation[];
90
163
  constructor(fsRoot: string[], locations: Nfsv4FsLocation[]);
164
+ encode(xdr: XdrEncoder): void;
91
165
  }
92
- export declare class Nfsv4Ace {
166
+ /**
167
+ * Access Control Entry (ACE)
168
+ */
169
+ export declare class Nfsv4Ace implements XdrType {
93
170
  readonly type: number;
94
171
  readonly flag: number;
95
172
  readonly accessMask: number;
96
173
  readonly who: string;
97
174
  constructor(type: number, flag: number, accessMask: number, who: string);
175
+ encode(xdr: XdrEncoder): void;
98
176
  }
99
- export declare class Nfsv4Acl {
177
+ /**
178
+ * Access Control List
179
+ */
180
+ export declare class Nfsv4Acl implements XdrType {
100
181
  readonly aces: Nfsv4Ace[];
101
182
  constructor(aces: Nfsv4Ace[]);
183
+ encode(xdr: XdrEncoder): void;
102
184
  }
103
- export declare class Nfsv4SecInfo {
185
+ /**
186
+ * Security information
187
+ */
188
+ export declare class Nfsv4SecInfo implements XdrType {
104
189
  readonly flavor: number;
105
190
  readonly flavorInfo?: Uint8Array | undefined;
106
191
  constructor(flavor: number, flavorInfo?: Uint8Array | undefined);
192
+ encode(xdr: XdrEncoder): void;
107
193
  }
108
- export declare class Nfsv4OpenClaimNull {
194
+ /**
195
+ * Open create attributes for UNCHECKED4 and GUARDED4 modes
196
+ */
197
+ export declare class Nfsv4CreateAttrs implements XdrType {
198
+ readonly createattrs: Nfsv4Fattr;
199
+ constructor(createattrs: Nfsv4Fattr);
200
+ encode(xdr: XdrEncoder): void;
201
+ }
202
+ /**
203
+ * Open create attributes for EXCLUSIVE4 mode
204
+ */
205
+ export declare class Nfsv4CreateVerf implements XdrType {
206
+ readonly createverf: Nfsv4Verifier;
207
+ constructor(createverf: Nfsv4Verifier);
208
+ encode(xdr: XdrEncoder): void;
209
+ }
210
+ /**
211
+ * Open create mode discriminated union
212
+ */
213
+ export declare class Nfsv4CreateHow implements XdrType {
214
+ readonly mode: number;
215
+ readonly how?: (Nfsv4CreateAttrs | Nfsv4CreateVerf) | undefined;
216
+ constructor(mode: number, how?: (Nfsv4CreateAttrs | Nfsv4CreateVerf) | undefined);
217
+ encode(xdr: XdrEncoder): void;
218
+ }
219
+ /**
220
+ * Open how discriminated union
221
+ */
222
+ export declare class Nfsv4OpenHow implements XdrType {
223
+ readonly opentype: number;
224
+ readonly how?: Nfsv4CreateHow | undefined;
225
+ constructor(opentype: number, how?: Nfsv4CreateHow | undefined);
226
+ encode(xdr: XdrEncoder): void;
227
+ }
228
+ /**
229
+ * Open claim - claim file by name
230
+ */
231
+ export declare class Nfsv4OpenClaimNull implements XdrType {
109
232
  readonly file: string;
110
233
  constructor(file: string);
234
+ encode(xdr: XdrEncoder): void;
111
235
  }
112
- export declare class Nfsv4OpenClaimPrevious {
236
+ /**
237
+ * Open claim - reclaim after server restart
238
+ */
239
+ export declare class Nfsv4OpenClaimPrevious implements XdrType {
113
240
  readonly delegateType: Nfsv4DelegType;
114
241
  constructor(delegateType: Nfsv4DelegType);
242
+ encode(xdr: XdrEncoder): void;
115
243
  }
116
- export declare class Nfsv4OpenClaimDelegateCur {
244
+ /**
245
+ * Open claim - claim file delegated to client
246
+ */
247
+ export declare class Nfsv4OpenClaimDelegateCur implements XdrType {
117
248
  readonly delegateStateid: Nfsv4Stateid;
118
249
  readonly file: string;
119
250
  constructor(delegateStateid: Nfsv4Stateid, file: string);
251
+ encode(xdr: XdrEncoder): void;
120
252
  }
121
- export declare class Nfsv4OpenClaimDelegatePrev {
253
+ /**
254
+ * Open claim - reclaim delegation after client restart
255
+ */
256
+ export declare class Nfsv4OpenClaimDelegatePrev implements XdrType {
122
257
  readonly file: string;
123
258
  constructor(file: string);
259
+ encode(xdr: XdrEncoder): void;
124
260
  }
125
- export declare class Nfsv4OpenClaim {
261
+ /**
262
+ * Open claim discriminated union
263
+ */
264
+ export declare class Nfsv4OpenClaim implements XdrType {
126
265
  readonly claimType: number;
127
266
  readonly claim: Nfsv4OpenClaimNull | Nfsv4OpenClaimPrevious | Nfsv4OpenClaimDelegateCur | Nfsv4OpenClaimDelegatePrev;
128
267
  constructor(claimType: number, claim: Nfsv4OpenClaimNull | Nfsv4OpenClaimPrevious | Nfsv4OpenClaimDelegateCur | Nfsv4OpenClaimDelegatePrev);
268
+ encode(xdr: XdrEncoder): void;
129
269
  }
130
- export declare class Nfsv4OpenReadDelegation {
270
+ /**
271
+ * Read delegation
272
+ */
273
+ export declare class Nfsv4OpenReadDelegation implements XdrType {
131
274
  readonly stateid: Nfsv4Stateid;
132
275
  readonly recall: boolean;
133
276
  readonly permissions: Nfsv4Ace[];
134
277
  constructor(stateid: Nfsv4Stateid, recall: boolean, permissions: Nfsv4Ace[]);
278
+ encode(xdr: XdrEncoder): void;
135
279
  }
136
- export declare class Nfsv4OpenWriteDelegation {
280
+ /**
281
+ * Write delegation
282
+ */
283
+ export declare class Nfsv4OpenWriteDelegation implements XdrType {
137
284
  readonly stateid: Nfsv4Stateid;
138
285
  readonly recall: boolean;
139
286
  readonly spaceLimit: bigint;
140
287
  readonly permissions: Nfsv4Ace[];
141
288
  constructor(stateid: Nfsv4Stateid, recall: boolean, spaceLimit: bigint, permissions: Nfsv4Ace[]);
289
+ encode(xdr: XdrEncoder): void;
142
290
  }
143
- export declare class Nfsv4OpenDelegation {
291
+ /**
292
+ * Open delegation discriminated union
293
+ */
294
+ export declare class Nfsv4OpenDelegation implements XdrType {
144
295
  readonly delegationType: Nfsv4DelegType;
145
- readonly delegation?: Nfsv4OpenReadDelegation | Nfsv4OpenWriteDelegation | undefined;
146
- constructor(delegationType: Nfsv4DelegType, delegation?: Nfsv4OpenReadDelegation | Nfsv4OpenWriteDelegation | undefined);
147
- }
148
- export declare class Nfsv4Entry {
296
+ readonly delegation?: (Nfsv4OpenReadDelegation | Nfsv4OpenWriteDelegation) | undefined;
297
+ constructor(delegationType: Nfsv4DelegType, delegation?: (Nfsv4OpenReadDelegation | Nfsv4OpenWriteDelegation) | undefined);
298
+ encode(xdr: XdrEncoder): void;
299
+ }
300
+ /**
301
+ * Directory entry for READDIR
302
+ */
303
+ export declare class Nfsv4Entry implements XdrType {
149
304
  readonly cookie: bigint;
150
305
  readonly name: string;
151
306
  readonly attrs: Nfsv4Fattr;
152
307
  readonly nextEntry?: Nfsv4Entry | undefined;
153
308
  constructor(cookie: bigint, name: string, attrs: Nfsv4Fattr, nextEntry?: Nfsv4Entry | undefined);
309
+ encode(xdr: XdrEncoder): void;
154
310
  }
155
- export declare class Nfsv4LockNewOwner {
311
+ /**
312
+ * Lock request with new lock owner
313
+ */
314
+ export declare class Nfsv4LockNewOwner implements XdrType {
156
315
  readonly openToLockOwner: Nfsv4OpenToLockOwner;
157
316
  constructor(openToLockOwner: Nfsv4OpenToLockOwner);
317
+ encode(xdr: XdrEncoder): void;
158
318
  }
159
- export declare class Nfsv4LockExistingOwner {
319
+ /**
320
+ * Lock request with existing lock owner
321
+ */
322
+ export declare class Nfsv4LockExistingOwner implements XdrType {
160
323
  readonly lockStateid: Nfsv4Stateid;
161
324
  readonly lockSeqid: number;
162
325
  constructor(lockStateid: Nfsv4Stateid, lockSeqid: number);
326
+ encode(xdr: XdrEncoder): void;
163
327
  }
164
- export declare class Nfsv4LockOwnerInfo {
328
+ /**
329
+ * Lock owner discriminated union
330
+ */
331
+ export declare class Nfsv4LockOwnerInfo implements XdrType {
165
332
  readonly newLockOwner: boolean;
166
333
  readonly owner: Nfsv4LockNewOwner | Nfsv4LockExistingOwner;
167
334
  constructor(newLockOwner: boolean, owner: Nfsv4LockNewOwner | Nfsv4LockExistingOwner);
335
+ encode(xdr: XdrEncoder): void;
168
336
  }
169
- export declare class Nfsv4CreateTypeFile {
170
- readonly createattrs: Nfsv4Fattr;
171
- constructor(createattrs: Nfsv4Fattr);
172
- }
173
- export declare class Nfsv4CreateTypeLink {
337
+ /**
338
+ * Create type for symbolic link
339
+ */
340
+ export declare class Nfsv4CreateTypeLink implements XdrType {
174
341
  readonly linkdata: string;
175
- readonly createattrs: Nfsv4Fattr;
176
- constructor(linkdata: string, createattrs: Nfsv4Fattr);
342
+ constructor(linkdata: string);
343
+ encode(xdr: XdrEncoder): void;
177
344
  }
178
- export declare class Nfsv4CreateTypeDevice {
345
+ /**
346
+ * Create type for device files
347
+ */
348
+ export declare class Nfsv4CreateTypeDevice implements XdrType {
179
349
  readonly devdata: Nfsv4SpecData;
180
- readonly createattrs: Nfsv4Fattr;
181
- constructor(devdata: Nfsv4SpecData, createattrs: Nfsv4Fattr);
182
- }
183
- export declare class Nfsv4CreateTypeOther {
184
- readonly createattrs: Nfsv4Fattr;
185
- constructor(createattrs: Nfsv4Fattr);
186
- }
187
- export declare class Nfsv4CreateType {
350
+ constructor(devdata: Nfsv4SpecData);
351
+ encode(xdr: XdrEncoder): void;
352
+ }
353
+ /**
354
+ * Create type for other file types (void)
355
+ */
356
+ export declare class Nfsv4CreateTypeVoid implements XdrType {
357
+ encode(xdr: XdrEncoder): void;
358
+ }
359
+ /**
360
+ * Create type discriminated union
361
+ */
362
+ export declare class Nfsv4CreateType implements XdrType {
188
363
  readonly type: Nfsv4FType;
189
- readonly objtype: Nfsv4CreateTypeFile | Nfsv4CreateTypeLink | Nfsv4CreateTypeDevice | Nfsv4CreateTypeOther;
190
- constructor(type: Nfsv4FType, objtype: Nfsv4CreateTypeFile | Nfsv4CreateTypeLink | Nfsv4CreateTypeDevice | Nfsv4CreateTypeOther);
364
+ readonly objtype: Nfsv4CreateTypeLink | Nfsv4CreateTypeDevice | Nfsv4CreateTypeVoid;
365
+ constructor(type: Nfsv4FType, objtype: Nfsv4CreateTypeLink | Nfsv4CreateTypeDevice | Nfsv4CreateTypeVoid);
366
+ encode(xdr: XdrEncoder): void;
191
367
  }
368
+ /**
369
+ * RPCSEC_GSS service
370
+ */
192
371
  export declare const enum Nfsv4RpcSecGssService {
193
372
  RPC_GSS_SVC_NONE = 1,
194
373
  RPC_GSS_SVC_INTEGRITY = 2,
195
374
  RPC_GSS_SVC_PRIVACY = 3
196
375
  }
197
- export declare class Nfsv4RpcSecGssInfo {
376
+ /**
377
+ * RPCSEC_GSS information
378
+ */
379
+ export declare class Nfsv4RpcSecGssInfo implements XdrType {
198
380
  readonly oid: Uint8Array;
199
381
  readonly qop: number;
200
382
  readonly service: Nfsv4RpcSecGssService;
201
383
  constructor(oid: Uint8Array, qop: number, service: Nfsv4RpcSecGssService);
384
+ encode(xdr: XdrEncoder): void;
202
385
  }
203
- export declare class Nfsv4SecInfoFlavor {
386
+ /**
387
+ * Security flavor info discriminated union
388
+ */
389
+ export declare class Nfsv4SecInfoFlavor implements XdrType {
204
390
  readonly flavor: number;
205
391
  readonly flavorInfo?: Nfsv4RpcSecGssInfo | undefined;
206
392
  constructor(flavor: number, flavorInfo?: Nfsv4RpcSecGssInfo | undefined);
393
+ encode(xdr: XdrEncoder): void;
207
394
  }