@jsonjoy.com/json-pack 1.21.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.
- package/lib/JsonPackExtension.d.ts +8 -0
- package/lib/JsonPackExtension.js +8 -0
- package/lib/JsonPackExtension.js.map +1 -1
- package/lib/JsonPackMpint.d.ts +25 -0
- package/lib/JsonPackMpint.js +31 -1
- package/lib/JsonPackMpint.js.map +1 -1
- package/lib/JsonPackValue.d.ts +10 -0
- package/lib/JsonPackValue.js +10 -0
- package/lib/JsonPackValue.js.map +1 -1
- package/lib/avro/AvroDecoder.d.ts +67 -0
- package/lib/avro/AvroDecoder.js +77 -5
- package/lib/avro/AvroDecoder.js.map +1 -1
- package/lib/avro/AvroEncoder.d.ts +71 -0
- package/lib/avro/AvroEncoder.js +90 -12
- package/lib/avro/AvroEncoder.js.map +1 -1
- package/lib/avro/AvroSchemaDecoder.d.ts +53 -0
- package/lib/avro/AvroSchemaDecoder.js +60 -3
- package/lib/avro/AvroSchemaDecoder.js.map +1 -1
- package/lib/avro/AvroSchemaEncoder.d.ts +65 -0
- package/lib/avro/AvroSchemaEncoder.js +84 -5
- package/lib/avro/AvroSchemaEncoder.js.map +1 -1
- package/lib/avro/AvroSchemaValidator.d.ts +10 -0
- package/lib/avro/AvroSchemaValidator.js +18 -1
- package/lib/avro/AvroSchemaValidator.js.map +1 -1
- package/lib/avro/types.d.ts +31 -0
- package/lib/avro/types.js +4 -0
- package/lib/avro/types.js.map +1 -1
- package/lib/bencode/BencodeDecoder.js +9 -9
- package/lib/bencode/BencodeDecoder.js.map +1 -1
- package/lib/bencode/BencodeEncoder.d.ts +5 -0
- package/lib/bencode/BencodeEncoder.js +25 -20
- package/lib/bencode/BencodeEncoder.js.map +1 -1
- package/lib/bson/BsonDecoder.js +48 -33
- package/lib/bson/BsonDecoder.js.map +1 -1
- package/lib/bson/BsonEncoder.js +11 -3
- package/lib/bson/BsonEncoder.js.map +1 -1
- package/lib/cbor/CborDecoder.d.ts +24 -0
- package/lib/cbor/CborDecoder.js +94 -56
- package/lib/cbor/CborDecoder.js.map +1 -1
- package/lib/cbor/CborDecoderBase.d.ts +1 -0
- package/lib/cbor/CborDecoderBase.js +63 -53
- package/lib/cbor/CborDecoderBase.js.map +1 -1
- package/lib/cbor/CborEncoder.d.ts +5 -0
- package/lib/cbor/CborEncoder.js +9 -3
- package/lib/cbor/CborEncoder.js.map +1 -1
- package/lib/cbor/CborEncoderFast.d.ts +7 -0
- package/lib/cbor/CborEncoderFast.js +22 -14
- package/lib/cbor/CborEncoderFast.js.map +1 -1
- package/lib/cbor/CborEncoderStable.d.ts +1 -0
- package/lib/cbor/CborEncoderStable.js +2 -1
- package/lib/cbor/CborEncoderStable.js.map +1 -1
- package/lib/cbor/shared.d.ts +1 -1
- package/lib/codecs/Codecs.d.ts +1 -1
- package/lib/codecs/cbor.js +1 -1
- package/lib/codecs/cbor.js.map +1 -1
- package/lib/codecs/json.js +1 -1
- package/lib/codecs/json.js.map +1 -1
- package/lib/codecs/msgpack.js +1 -1
- package/lib/codecs/msgpack.js.map +1 -1
- package/lib/ejson/EjsonDecoder.d.ts +5 -0
- package/lib/ejson/EjsonDecoder.js +72 -37
- package/lib/ejson/EjsonDecoder.js.map +1 -1
- package/lib/ejson/EjsonEncoder.d.ts +5 -0
- package/lib/ejson/EjsonEncoder.js +149 -114
- package/lib/ejson/EjsonEncoder.js.map +1 -1
- package/lib/ejson/index.js +1 -0
- package/lib/ejson/index.js.map +1 -1
- package/lib/ion/Import.d.ts +1 -1
- package/lib/ion/Import.js.map +1 -1
- package/lib/ion/IonDecoder.d.ts +0 -1
- package/lib/ion/IonDecoder.js +4 -3
- package/lib/ion/IonDecoder.js.map +1 -1
- package/lib/ion/IonDecoderBase.js +29 -18
- package/lib/ion/IonDecoderBase.js.map +1 -1
- package/lib/ion/IonEncoderFast.d.ts +1 -1
- package/lib/ion/IonEncoderFast.js +30 -30
- package/lib/ion/IonEncoderFast.js.map +1 -1
- package/lib/ion/ast.d.ts +4 -1
- package/lib/ion/symbols.d.ts +1 -1
- package/lib/json/JsonDecoder.js +72 -66
- package/lib/json/JsonDecoder.js.map +1 -1
- package/lib/json/JsonDecoderDag.js +14 -0
- package/lib/json/JsonDecoderDag.js.map +1 -1
- package/lib/json/JsonDecoderPartial.d.ts +22 -0
- package/lib/json/JsonDecoderPartial.js +30 -8
- package/lib/json/JsonDecoderPartial.js.map +1 -1
- package/lib/json/JsonEncoder.d.ts +5 -0
- package/lib/json/JsonEncoder.js +59 -51
- package/lib/json/JsonEncoder.js.map +1 -1
- package/lib/json/JsonEncoderDag.d.ts +17 -0
- package/lib/json/JsonEncoderDag.js +27 -10
- package/lib/json/JsonEncoderDag.js.map +1 -1
- package/lib/json/JsonEncoderStable.js +5 -5
- package/lib/json/JsonEncoderStable.js.map +1 -1
- package/lib/json-binary/codec.d.ts +8 -1
- package/lib/json-binary/codec.js +7 -0
- package/lib/json-binary/codec.js.map +1 -1
- package/lib/msgpack/MsgPackDecoder.d.ts +27 -0
- package/lib/msgpack/MsgPackDecoder.js +55 -23
- package/lib/msgpack/MsgPackDecoder.js.map +1 -1
- package/lib/msgpack/MsgPackDecoderFast.d.ts +8 -0
- package/lib/msgpack/MsgPackDecoderFast.js +14 -5
- package/lib/msgpack/MsgPackDecoderFast.js.map +1 -1
- package/lib/msgpack/MsgPackEncoder.d.ts +3 -0
- package/lib/msgpack/MsgPackEncoder.js +7 -4
- package/lib/msgpack/MsgPackEncoder.js.map +1 -1
- package/lib/msgpack/MsgPackEncoderFast.d.ts +26 -4
- package/lib/msgpack/MsgPackEncoderFast.js +31 -0
- package/lib/msgpack/MsgPackEncoderFast.js.map +1 -1
- package/lib/msgpack/MsgPackEncoderStable.d.ts +3 -0
- package/lib/msgpack/MsgPackEncoderStable.js +3 -0
- package/lib/msgpack/MsgPackEncoderStable.js.map +1 -1
- package/lib/msgpack/MsgPackToJsonConverter.d.ts +30 -4
- package/lib/msgpack/MsgPackToJsonConverter.js +32 -5
- package/lib/msgpack/MsgPackToJsonConverter.js.map +1 -1
- package/lib/msgpack/index.d.ts +29 -0
- package/lib/msgpack/index.js +30 -0
- package/lib/msgpack/index.js.map +1 -1
- package/lib/msgpack/shallow-read.js +7 -7
- package/lib/msgpack/shallow-read.js.map +1 -1
- package/lib/msgpack/types.d.ts +1 -0
- package/lib/msgpack/util.d.ts +1 -1
- package/lib/nfs/v3/FullNfsv3Encoder.d.ts +3 -3
- package/lib/nfs/v3/FullNfsv3Encoder.js +3 -3
- package/lib/nfs/v3/FullNfsv3Encoder.js.map +1 -1
- package/lib/nfs/v3/Nfsv3Decoder.js +51 -50
- package/lib/nfs/v3/Nfsv3Decoder.js.map +1 -1
- package/lib/nfs/v3/Nfsv3Encoder.d.ts +2 -2
- package/lib/nfs/v3/Nfsv3Encoder.js +52 -52
- package/lib/nfs/v3/Nfsv3Encoder.js.map +1 -1
- package/lib/nfs/v3/constants.d.ts +34 -0
- package/lib/nfs/v3/constants.js +4 -0
- package/lib/nfs/v3/constants.js.map +1 -1
- package/lib/nfs/v3/locks/NlmDecoder.js +20 -20
- package/lib/nfs/v3/locks/NlmDecoder.js.map +1 -1
- package/lib/nfs/v3/locks/NlmEncoder.d.ts +2 -2
- package/lib/nfs/v3/locks/NlmEncoder.js +20 -20
- package/lib/nfs/v3/locks/NlmEncoder.js.map +1 -1
- package/lib/nfs/v3/locks/constants.d.ts +9 -0
- package/lib/nfs/v3/locks/messages.d.ts +58 -1
- package/lib/nfs/v3/locks/messages.js +54 -0
- package/lib/nfs/v3/locks/messages.js.map +1 -1
- package/lib/nfs/v3/locks/structs.d.ts +15 -0
- package/lib/nfs/v3/locks/structs.js +15 -0
- package/lib/nfs/v3/locks/structs.js.map +1 -1
- package/lib/nfs/v3/messages.d.ts +249 -0
- package/lib/nfs/v3/messages.js +249 -0
- package/lib/nfs/v3/messages.js.map +1 -1
- package/lib/nfs/v3/mount/MountDecoder.js +12 -12
- package/lib/nfs/v3/mount/MountEncoder.d.ts +2 -2
- package/lib/nfs/v3/mount/MountEncoder.js +13 -13
- package/lib/nfs/v3/mount/MountEncoder.js.map +1 -1
- package/lib/nfs/v3/mount/constants.d.ts +9 -0
- package/lib/nfs/v3/mount/messages.d.ts +31 -1
- package/lib/nfs/v3/mount/messages.js +27 -0
- package/lib/nfs/v3/mount/messages.js.map +1 -1
- package/lib/nfs/v3/mount/structs.d.ts +15 -0
- package/lib/nfs/v3/mount/structs.js +15 -0
- package/lib/nfs/v3/mount/structs.js.map +1 -1
- package/lib/nfs/v3/structs.d.ts +78 -0
- package/lib/nfs/v3/structs.js +78 -0
- package/lib/nfs/v3/structs.js.map +1 -1
- package/lib/nfs/v4/Nfsv4Decoder.d.ts +0 -2
- package/lib/nfs/v4/Nfsv4Decoder.js +96 -102
- package/lib/nfs/v4/Nfsv4Decoder.js.map +1 -1
- package/lib/nfs/v4/Nfsv4Encoder.d.ts +2 -2
- package/lib/nfs/v4/Nfsv4Encoder.js +1 -1
- package/lib/nfs/v4/Nfsv4Encoder.js.map +1 -1
- package/lib/nfs/v4/Nfsv4FullEncoder.d.ts +4 -4
- package/lib/nfs/v4/Nfsv4FullEncoder.js +4 -4
- package/lib/nfs/v4/Nfsv4FullEncoder.js.map +1 -1
- package/lib/nfs/v4/attributes.d.ts +62 -0
- package/lib/nfs/v4/attributes.js +209 -147
- package/lib/nfs/v4/attributes.js.map +1 -1
- package/lib/nfs/v4/builder.d.ts +274 -1
- package/lib/nfs/v4/builder.js +283 -10
- package/lib/nfs/v4/builder.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsDir.d.ts +4 -1
- package/lib/nfs/v4/client/NfsFsDir.js +8 -5
- package/lib/nfs/v4/client/NfsFsDir.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsDirent.d.ts +3 -0
- package/lib/nfs/v4/client/NfsFsDirent.js +10 -7
- package/lib/nfs/v4/client/NfsFsDirent.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsFileHandle.d.ts +4 -3
- package/lib/nfs/v4/client/NfsFsFileHandle.js +13 -10
- package/lib/nfs/v4/client/NfsFsFileHandle.js.map +1 -1
- package/lib/nfs/v4/client/NfsFsStats.d.ts +3 -0
- package/lib/nfs/v4/client/NfsFsStats.js +10 -7
- package/lib/nfs/v4/client/NfsFsStats.js.map +1 -1
- package/lib/nfs/v4/client/Nfsv4FsClient.d.ts +2 -3
- package/lib/nfs/v4/client/Nfsv4FsClient.js +92 -92
- package/lib/nfs/v4/client/Nfsv4FsClient.js.map +1 -1
- package/lib/nfs/v4/client/Nfsv4TcpClient.d.ts +6 -6
- package/lib/nfs/v4/client/Nfsv4TcpClient.js +3 -3
- package/lib/nfs/v4/client/Nfsv4TcpClient.js.map +1 -1
- package/lib/nfs/v4/client/types.d.ts +1 -1
- package/lib/nfs/v4/constants.d.ts +78 -1
- package/lib/nfs/v4/format.d.ts +1 -1
- package/lib/nfs/v4/format.js +229 -229
- package/lib/nfs/v4/format.js.map +1 -1
- package/lib/nfs/v4/messages.js +101 -101
- package/lib/nfs/v4/messages.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.d.ts +20 -1
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js +29 -8
- package/lib/nfs/v4/server/Nfsv4CompoundProcCtx.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4Connection.d.ts +6 -3
- package/lib/nfs/v4/server/Nfsv4Connection.js +11 -8
- package/lib/nfs/v4/server/Nfsv4Connection.js.map +1 -1
- package/lib/nfs/v4/server/Nfsv4TcpServer.d.ts +2 -3
- package/lib/nfs/v4/server/Nfsv4TcpServer.js +1 -0
- package/lib/nfs/v4/server/Nfsv4TcpServer.js.map +1 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.d.ts +69 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.js +43 -1
- package/lib/nfs/v4/server/operations/ByteRangeLock.js.map +1 -1
- package/lib/nfs/v4/server/operations/ClientRecord.d.ts +98 -1
- package/lib/nfs/v4/server/operations/ClientRecord.js +54 -1
- package/lib/nfs/v4/server/operations/ClientRecord.js.map +1 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.d.ts +22 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.js +16 -1
- package/lib/nfs/v4/server/operations/FilesystemStats.js.map +1 -1
- package/lib/nfs/v4/server/operations/LockOwnerState.d.ts +75 -2
- package/lib/nfs/v4/server/operations/LockOwnerState.js +43 -1
- package/lib/nfs/v4/server/operations/LockOwnerState.js.map +1 -1
- package/lib/nfs/v4/server/operations/LockStateid.d.ts +55 -1
- package/lib/nfs/v4/server/operations/LockStateid.js +37 -1
- package/lib/nfs/v4/server/operations/LockStateid.js.map +1 -1
- package/lib/nfs/v4/server/operations/Nfsv4Operations.d.ts +2 -1
- package/lib/nfs/v4/server/operations/Nfsv4OperationsNotImpl.d.ts +2 -2
- package/lib/nfs/v4/server/operations/OpenFileState.d.ts +90 -2
- package/lib/nfs/v4/server/operations/OpenFileState.js +52 -1
- package/lib/nfs/v4/server/operations/OpenFileState.js.map +1 -1
- package/lib/nfs/v4/server/operations/OpenOwnerState.d.ts +76 -2
- package/lib/nfs/v4/server/operations/OpenOwnerState.js +44 -1
- package/lib/nfs/v4/server/operations/OpenOwnerState.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.d.ts +73 -3
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js +261 -187
- package/lib/nfs/v4/server/operations/node/Nfsv4OperationsNode.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/attrs.d.ts +13 -1
- package/lib/nfs/v4/server/operations/node/attrs.js +75 -62
- package/lib/nfs/v4/server/operations/node/attrs.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/fh.d.ts +67 -2
- package/lib/nfs/v4/server/operations/node/fh.js +83 -21
- package/lib/nfs/v4/server/operations/node/fh.js.map +1 -1
- package/lib/nfs/v4/server/operations/node/util.js +4 -4
- package/lib/nfs/v4/server/operations/node/util.js.map +1 -1
- package/lib/nfs/v4/server/util.d.ts +0 -1
- package/lib/nfs/v4/server/util.js +40 -40
- package/lib/nfs/v4/structs.d.ts +136 -4
- package/lib/nfs/v4/structs.js +129 -0
- package/lib/nfs/v4/structs.js.map +1 -1
- package/lib/resp/RespDecoder.d.ts +9 -0
- package/lib/resp/RespDecoder.js +93 -76
- package/lib/resp/RespDecoder.js.map +1 -1
- package/lib/resp/RespEncoder.d.ts +8 -0
- package/lib/resp/RespEncoder.js +107 -89
- package/lib/resp/RespEncoder.js.map +1 -1
- package/lib/resp/RespEncoderLegacy.d.ts +3 -0
- package/lib/resp/RespEncoderLegacy.js +7 -4
- package/lib/resp/RespEncoderLegacy.js.map +1 -1
- package/lib/resp/RespStreamingDecoder.d.ts +48 -0
- package/lib/resp/RespStreamingDecoder.js +48 -0
- package/lib/resp/RespStreamingDecoder.js.map +1 -1
- package/lib/resp/constants.d.ts +19 -19
- package/lib/rm/RmRecordEncoder.d.ts +15 -1
- package/lib/rm/RmRecordEncoder.js +15 -1
- package/lib/rm/RmRecordEncoder.js.map +1 -1
- package/lib/rpc/RpcMessageDecoder.d.ts +1 -1
- package/lib/rpc/RpcMessageDecoder.js +8 -7
- package/lib/rpc/RpcMessageDecoder.js.map +1 -1
- package/lib/rpc/RpcMessageEncoder.d.ts +2 -2
- package/lib/rpc/RpcMessageEncoder.js +6 -6
- package/lib/rpc/RpcMessageEncoder.js.map +1 -1
- package/lib/rpc/constants.d.ts +76 -28
- package/lib/rpc/constants.js +10 -0
- package/lib/rpc/constants.js.map +1 -1
- package/lib/ssh/SshDecoder.d.ts +46 -0
- package/lib/ssh/SshDecoder.js +52 -2
- package/lib/ssh/SshDecoder.js.map +1 -1
- package/lib/ssh/SshEncoder.d.ts +69 -0
- package/lib/ssh/SshEncoder.js +81 -8
- package/lib/ssh/SshEncoder.js.map +1 -1
- package/lib/ssh/index.d.ts +6 -0
- package/lib/ssh/index.js +6 -0
- package/lib/ssh/index.js.map +1 -1
- package/lib/ubjson/UbjsonDecoder.js +1 -1
- package/lib/ubjson/UbjsonDecoder.js.map +1 -1
- package/lib/ubjson/UbjsonEncoder.js +6 -5
- package/lib/ubjson/UbjsonEncoder.js.map +1 -1
- package/lib/util/CompressionTable.js +4 -4
- package/lib/util/CompressionTable.js.map +1 -1
- package/lib/util/DecompressionTable.js +3 -2
- package/lib/util/DecompressionTable.js.map +1 -1
- package/lib/ws/WsFrameDecoder.d.ts +18 -0
- package/lib/ws/WsFrameDecoder.js +18 -0
- package/lib/ws/WsFrameDecoder.js.map +1 -1
- package/lib/ws/WsFrameEncoder.d.ts +1 -1
- package/lib/ws/WsFrameEncoder.js +3 -3
- package/lib/ws/WsFrameEncoder.js.map +1 -1
- package/lib/ws/constants.js +5 -0
- package/lib/ws/constants.js.map +1 -1
- package/lib/xdr/XdrDecoder.d.ts +62 -0
- package/lib/xdr/XdrDecoder.js +73 -6
- package/lib/xdr/XdrDecoder.js.map +1 -1
- package/lib/xdr/XdrEncoder.d.ts +71 -0
- package/lib/xdr/XdrEncoder.js +88 -13
- package/lib/xdr/XdrEncoder.js.map +1 -1
- package/lib/xdr/XdrSchemaDecoder.d.ts +40 -0
- package/lib/xdr/XdrSchemaDecoder.js +52 -0
- package/lib/xdr/XdrSchemaDecoder.js.map +1 -1
- package/lib/xdr/XdrSchemaEncoder.d.ts +5 -0
- package/lib/xdr/XdrSchemaEncoder.js +9 -0
- package/lib/xdr/XdrSchemaEncoder.js.map +1 -1
- package/lib/xdr/XdrSchemaValidator.d.ts +9 -0
- package/lib/xdr/XdrSchemaValidator.js +42 -11
- package/lib/xdr/XdrSchemaValidator.js.map +1 -1
- package/lib/xdr/XdrUnion.d.ts +5 -0
- package/lib/xdr/XdrUnion.js +5 -0
- package/lib/xdr/XdrUnion.js.map +1 -1
- package/lib/xdr/index.d.ts +14 -0
- package/lib/xdr/index.js +14 -0
- package/lib/xdr/index.js.map +1 -1
- package/lib/xdr/types.d.ts +46 -0
- package/package.json +32 -55
package/lib/nfs/v4/builder.d.ts
CHANGED
|
@@ -1,60 +1,333 @@
|
|
|
1
1
|
import * as msg from './messages';
|
|
2
2
|
import * as structs from './structs';
|
|
3
|
-
import { Nfsv4LockType } from './constants';
|
|
3
|
+
import { type Nfsv4LockType } from './constants';
|
|
4
|
+
/**
|
|
5
|
+
* Static builder helpers for NFS v4 operations.
|
|
6
|
+
* Provides a simpler API for constructing NFS v4 request messages.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response = await client.compound([
|
|
11
|
+
* nfs.PUTROOTFH(),
|
|
12
|
+
* nfs.LOOKUP('file.txt'),
|
|
13
|
+
* nfs.GETATTR([0x00000001]),
|
|
14
|
+
* ]);
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
4
17
|
export declare const nfs: {
|
|
18
|
+
/**
|
|
19
|
+
* PUTROOTFH - Set current filehandle to root of export.
|
|
20
|
+
*/
|
|
5
21
|
PUTROOTFH(): msg.Nfsv4PutrootfhRequest;
|
|
22
|
+
/**
|
|
23
|
+
* PUTFH - Set current filehandle.
|
|
24
|
+
* @param fh - Filehandle to set as current
|
|
25
|
+
*/
|
|
6
26
|
PUTFH(fh: structs.Nfsv4Fh): msg.Nfsv4PutfhRequest;
|
|
27
|
+
/**
|
|
28
|
+
* PUTPUBFH - Set current filehandle to public filehandle.
|
|
29
|
+
*/
|
|
7
30
|
PUTPUBFH(): msg.Nfsv4PutpubfhRequest;
|
|
31
|
+
/**
|
|
32
|
+
* GETFH - Get current filehandle.
|
|
33
|
+
*/
|
|
8
34
|
GETFH(): msg.Nfsv4GetfhRequest;
|
|
35
|
+
/**
|
|
36
|
+
* LOOKUP - Lookup filename in current directory.
|
|
37
|
+
* @param name - Filename to lookup
|
|
38
|
+
*/
|
|
9
39
|
LOOKUP(name: string): msg.Nfsv4LookupRequest;
|
|
40
|
+
/**
|
|
41
|
+
* LOOKUPP - Lookup parent directory (..).
|
|
42
|
+
*/
|
|
10
43
|
LOOKUPP(): msg.Nfsv4LookuppRequest;
|
|
44
|
+
/**
|
|
45
|
+
* GETATTR - Get file attributes.
|
|
46
|
+
* @param attrBitmap - Attribute bitmap (array of uint32 values)
|
|
47
|
+
*/
|
|
11
48
|
GETATTR(attrBitmap: number[]): msg.Nfsv4GetattrRequest;
|
|
49
|
+
/**
|
|
50
|
+
* READDIR - Read directory entries.
|
|
51
|
+
* @param attrBitmap - Attribute bitmap for entries (single uint32 or array)
|
|
52
|
+
* @param cookieverf - Cookie verifier (8 bytes), defaults to zeros
|
|
53
|
+
* @param cookie - Starting cookie, defaults to 0
|
|
54
|
+
* @param dircount - Max bytes for directory info, defaults to 1000
|
|
55
|
+
* @param maxcount - Max bytes for reply, defaults to 8192
|
|
56
|
+
*/
|
|
12
57
|
READDIR(attrBitmap: number | number[], cookieverf?: Uint8Array, cookie?: bigint, dircount?: number, maxcount?: number): msg.Nfsv4ReaddirRequest;
|
|
58
|
+
/**
|
|
59
|
+
* ACCESS - Check access permissions.
|
|
60
|
+
* @param accessMask - Access mask (default: 0x3f for all bits)
|
|
61
|
+
*/
|
|
13
62
|
ACCESS(accessMask?: number): msg.Nfsv4AccessRequest;
|
|
63
|
+
/**
|
|
64
|
+
* READ - Read file data.
|
|
65
|
+
* @param offset - Byte offset to read from
|
|
66
|
+
* @param count - Number of bytes to read
|
|
67
|
+
* @param stateid - State ID (defaults to all zeros)
|
|
68
|
+
*/
|
|
14
69
|
READ(offset: bigint, count: number, stateid?: structs.Nfsv4Stateid): msg.Nfsv4ReadRequest;
|
|
70
|
+
/**
|
|
71
|
+
* WRITE - Write file data.
|
|
72
|
+
* @param stateid - State ID to write to
|
|
73
|
+
* @param offset - Byte offset
|
|
74
|
+
* @param stable - Stable flag (Nfsv4StableHow)
|
|
75
|
+
* @param data - Data to write
|
|
76
|
+
*/
|
|
15
77
|
WRITE(stateid: structs.Nfsv4Stateid, offset: bigint, stable: number, data: Uint8Array): msg.Nfsv4WriteRequest;
|
|
78
|
+
/**
|
|
79
|
+
* COMMIT - Commit written data to stable storage.
|
|
80
|
+
* @param offset - Byte offset
|
|
81
|
+
* @param count - Number of bytes
|
|
82
|
+
*/
|
|
16
83
|
COMMIT(offset: bigint, count: number): msg.Nfsv4CommitRequest;
|
|
84
|
+
/**
|
|
85
|
+
* CREATE - Create a new file.
|
|
86
|
+
* @param objtype - Object type to create
|
|
87
|
+
* @param objname - Name of object to create
|
|
88
|
+
* @param createattrs - Attributes for the new object
|
|
89
|
+
*/
|
|
17
90
|
CREATE(objtype: structs.Nfsv4CreateType, objname: string, createattrs: structs.Nfsv4Fattr): msg.Nfsv4CreateRequest;
|
|
91
|
+
/**
|
|
92
|
+
* LINK - Create a hard link.
|
|
93
|
+
* @param newname - Name for the new link
|
|
94
|
+
*/
|
|
18
95
|
LINK(newname: string): msg.Nfsv4LinkRequest;
|
|
96
|
+
/**
|
|
97
|
+
* READLINK - Read symbolic link.
|
|
98
|
+
*/
|
|
19
99
|
READLINK(): msg.Nfsv4ReadlinkRequest;
|
|
100
|
+
/**
|
|
101
|
+
* SAVEFH - Save current filehandle.
|
|
102
|
+
*/
|
|
20
103
|
SAVEFH(): msg.Nfsv4SavefhRequest;
|
|
104
|
+
/**
|
|
105
|
+
* RESTOREFH - Restore saved filehandle to current.
|
|
106
|
+
*/
|
|
21
107
|
RESTOREFH(): msg.Nfsv4RestorefhRequest;
|
|
108
|
+
/**
|
|
109
|
+
* SETATTR - Set file attributes.
|
|
110
|
+
* @param stateid - State ID
|
|
111
|
+
* @param attrs - Attributes to set
|
|
112
|
+
*/
|
|
22
113
|
SETATTR(stateid: structs.Nfsv4Stateid, attrs: structs.Nfsv4Fattr): msg.Nfsv4SetattrRequest;
|
|
114
|
+
/**
|
|
115
|
+
* VERIFY - Verify attributes match.
|
|
116
|
+
* @param attrs - Attributes to verify
|
|
117
|
+
*/
|
|
23
118
|
VERIFY(attrs: structs.Nfsv4Fattr): msg.Nfsv4VerifyRequest;
|
|
119
|
+
/**
|
|
120
|
+
* NVERIFY - Verify attributes don't match.
|
|
121
|
+
* @param attrs - Attributes to verify don't match
|
|
122
|
+
*/
|
|
24
123
|
NVERIFY(attrs: structs.Nfsv4Fattr): msg.Nfsv4NverifyRequest;
|
|
124
|
+
/**
|
|
125
|
+
* REMOVE - Remove file or directory.
|
|
126
|
+
* @param name - Name of file/directory to remove
|
|
127
|
+
*/
|
|
25
128
|
REMOVE(name: string): msg.Nfsv4RemoveRequest;
|
|
129
|
+
/**
|
|
130
|
+
* RENAME - Rename file or directory.
|
|
131
|
+
* @param oldname - Current name
|
|
132
|
+
* @param newname - New name
|
|
133
|
+
*/
|
|
26
134
|
RENAME(oldname: string, newname: string): msg.Nfsv4RenameRequest;
|
|
135
|
+
/**
|
|
136
|
+
* RENEW - Renew client lease.
|
|
137
|
+
* @param clientid - Client ID
|
|
138
|
+
*/
|
|
27
139
|
RENEW(clientid: bigint): msg.Nfsv4RenewRequest;
|
|
140
|
+
/**
|
|
141
|
+
* SETCLIENTID - Establish client ID.
|
|
142
|
+
* @param client - Client identifier
|
|
143
|
+
* @param callback - Callback info
|
|
144
|
+
* @param callbackIdent - Callback identifier
|
|
145
|
+
*/
|
|
28
146
|
SETCLIENTID(client: structs.Nfsv4ClientId, callback: structs.Nfsv4CbClient, callbackIdent: number): msg.Nfsv4SetclientidRequest;
|
|
147
|
+
/**
|
|
148
|
+
* SETCLIENTID_CONFIRM - Confirm client ID.
|
|
149
|
+
* @param clientid - Client ID to confirm
|
|
150
|
+
* @param verifier - Verifier from SETCLIENTID response
|
|
151
|
+
*/
|
|
29
152
|
SETCLIENTID_CONFIRM(clientid: bigint, verifier: structs.Nfsv4Verifier): msg.Nfsv4SetclientidConfirmRequest;
|
|
153
|
+
/**
|
|
154
|
+
* OPEN - Open a file.
|
|
155
|
+
* @param seqid - Sequence ID for open-owner
|
|
156
|
+
* @param shareAccess - Share access mode (OPEN4_SHARE_ACCESS_*)
|
|
157
|
+
* @param shareDeny - Share deny mode (OPEN4_SHARE_DENY_*)
|
|
158
|
+
* @param owner - Open owner (clientid + owner bytes)
|
|
159
|
+
* @param openhow - Open how structure (use OpenHow helper)
|
|
160
|
+
* @param claim - Open claim (use OpenClaim helper)
|
|
161
|
+
*/
|
|
30
162
|
OPEN(seqid: number, shareAccess: number, shareDeny: number, owner: structs.Nfsv4OpenOwner, openhow: structs.Nfsv4OpenHow, claim: structs.Nfsv4OpenClaim): msg.Nfsv4OpenRequest;
|
|
163
|
+
/**
|
|
164
|
+
* CLOSE - Close an open file.
|
|
165
|
+
* @param seqid - Sequence ID
|
|
166
|
+
* @param openStateid - State ID from OPEN
|
|
167
|
+
*/
|
|
31
168
|
CLOSE(seqid: number, openStateid: structs.Nfsv4Stateid): msg.Nfsv4CloseRequest;
|
|
169
|
+
/**
|
|
170
|
+
* OPEN_CONFIRM - Confirm an open.
|
|
171
|
+
* @param openStateid - State ID from OPEN
|
|
172
|
+
* @param seqid - Sequence ID
|
|
173
|
+
*/
|
|
32
174
|
OPEN_CONFIRM(openStateid: structs.Nfsv4Stateid, seqid: number): msg.Nfsv4OpenConfirmRequest;
|
|
175
|
+
/**
|
|
176
|
+
* OPEN_DOWNGRADE - Downgrade open access/deny modes.
|
|
177
|
+
* @param openStateid - State ID from OPEN
|
|
178
|
+
* @param seqid - Sequence ID
|
|
179
|
+
* @param shareAccess - New share access mode
|
|
180
|
+
* @param shareDeny - New share deny mode
|
|
181
|
+
*/
|
|
33
182
|
OPEN_DOWNGRADE(openStateid: structs.Nfsv4Stateid, seqid: number, shareAccess: number, shareDeny: number): msg.Nfsv4OpenDowngradeRequest;
|
|
183
|
+
/**
|
|
184
|
+
* OPENATTR - Open named attribute directory.
|
|
185
|
+
* @param createdir - Whether to create the directory if it doesn't exist
|
|
186
|
+
*/
|
|
34
187
|
OPENATTR(createdir?: boolean): msg.Nfsv4OpenattrRequest;
|
|
188
|
+
/**
|
|
189
|
+
* SECINFO - Get security information for a file.
|
|
190
|
+
* @param name - Filename to get security info for
|
|
191
|
+
*/
|
|
35
192
|
SECINFO(name: string): msg.Nfsv4SecinfoRequest;
|
|
193
|
+
/**
|
|
194
|
+
* DELEGPURGE - Purge delegations (not supported).
|
|
195
|
+
* @param clientid - Client ID
|
|
196
|
+
*/
|
|
36
197
|
DELEGPURGE(clientid: bigint): msg.Nfsv4DelegpurgeRequest;
|
|
198
|
+
/**
|
|
199
|
+
* DELEGRETURN - Return delegation (not supported).
|
|
200
|
+
* @param stateid - Delegation stateid
|
|
201
|
+
*/
|
|
37
202
|
DELEGRETURN(stateid: structs.Nfsv4Stateid): msg.Nfsv4DelegreturnRequest;
|
|
203
|
+
/**
|
|
204
|
+
* LOCK - Lock byte range.
|
|
205
|
+
* @param locktype - Lock type (READ_LT, WRITE_LT, READW_LT, or WRITEW_LT)
|
|
206
|
+
* @param reclaim - True if reclaiming lock after server restart
|
|
207
|
+
* @param offset - Starting byte offset
|
|
208
|
+
* @param length - Length in bytes (0xFFFFFFFFFFFFFFFF for EOF)
|
|
209
|
+
* @param locker - Lock owner info (new or existing lock owner)
|
|
210
|
+
*/
|
|
38
211
|
LOCK(locktype: Nfsv4LockType, reclaim: boolean, offset: bigint, length: bigint, locker: structs.Nfsv4LockOwnerInfo): msg.Nfsv4LockRequest;
|
|
212
|
+
/**
|
|
213
|
+
* LOCKT - Test for conflicting lock (non-blocking).
|
|
214
|
+
* @param locktype - Lock type (READ_LT or WRITE_LT)
|
|
215
|
+
* @param offset - Starting byte offset
|
|
216
|
+
* @param length - Length in bytes (0xFFFFFFFFFFFFFFFF for EOF)
|
|
217
|
+
* @param owner - Lock owner
|
|
218
|
+
*/
|
|
39
219
|
LOCKT(locktype: number, offset: bigint, length: bigint, owner: structs.Nfsv4LockOwner): msg.Nfsv4LocktRequest;
|
|
220
|
+
/**
|
|
221
|
+
* LOCKU - Unlock byte range.
|
|
222
|
+
* @param locktype - Lock type (READ_LT or WRITE_LT)
|
|
223
|
+
* @param seqid - Sequence number
|
|
224
|
+
* @param lockStateid - Lock stateid from LOCK operation
|
|
225
|
+
* @param offset - Starting byte offset
|
|
226
|
+
* @param length - Length in bytes
|
|
227
|
+
*/
|
|
40
228
|
LOCKU(locktype: number, seqid: number, lockStateid: structs.Nfsv4Stateid, offset: bigint, length: bigint): msg.Nfsv4LockuRequest;
|
|
229
|
+
/**
|
|
230
|
+
* RELEASE_LOCKOWNER - Release all locks for a lock-owner.
|
|
231
|
+
* @param lockOwner - Lock owner to release
|
|
232
|
+
*/
|
|
41
233
|
RELEASE_LOCKOWNER(lockOwner: structs.Nfsv4LockOwner): msg.Nfsv4ReleaseLockOwnerRequest;
|
|
234
|
+
/**
|
|
235
|
+
* Create an Nfsv4Verifier (8-byte opaque data).
|
|
236
|
+
* @param data - 8-byte Uint8Array, defaults to zeros
|
|
237
|
+
*/
|
|
42
238
|
Verifier(data?: Uint8Array): structs.Nfsv4Verifier;
|
|
239
|
+
/**
|
|
240
|
+
* Create an Nfsv4Stateid (state identifier).
|
|
241
|
+
* @param seqid - Sequence ID (default: 0)
|
|
242
|
+
* @param other - 12-byte opaque data (default: zeros)
|
|
243
|
+
*/
|
|
43
244
|
Stateid(seqid?: number, other?: Uint8Array): structs.Nfsv4Stateid;
|
|
245
|
+
/**
|
|
246
|
+
* Create Nfsv4Fattr from attribute numbers (automatically converts to bitmap).
|
|
247
|
+
* @param attrNums - Array of attribute numbers (Nfsv4Attr enum values)
|
|
248
|
+
* @param attrVals - Encoded attribute values as byte array
|
|
249
|
+
*/
|
|
44
250
|
Fattr(attrNums: number[], attrVals: Uint8Array): structs.Nfsv4Fattr;
|
|
251
|
+
/**
|
|
252
|
+
* Create Nfsv4ClientId (client identifier).
|
|
253
|
+
* @param verifier - 8-byte verifier
|
|
254
|
+
* @param id - Variable-length client ID bytes
|
|
255
|
+
*/
|
|
45
256
|
ClientId(verifier: structs.Nfsv4Verifier, id: Uint8Array): structs.Nfsv4ClientId;
|
|
257
|
+
/**
|
|
258
|
+
* Create Nfsv4CbClient (callback client information).
|
|
259
|
+
* @param cbProgram - Callback program number
|
|
260
|
+
* @param rNetid - Network ID string (e.g., 'tcp', 'udp')
|
|
261
|
+
* @param rAddr - Network address string (e.g., '127.0.0.1.8.1')
|
|
262
|
+
*/
|
|
46
263
|
CbClient(cbProgram: number, rNetid: string, rAddr: string): structs.Nfsv4CbClient;
|
|
264
|
+
/**
|
|
265
|
+
* Create Nfsv4Bitmap from attribute numbers.
|
|
266
|
+
* @param attrNums - Array of attribute numbers (Nfsv4Attr enum values)
|
|
267
|
+
*/
|
|
47
268
|
Bitmap(attrNums: number[]): structs.Nfsv4Bitmap;
|
|
269
|
+
/**
|
|
270
|
+
* Create Nfsv4CreateType for regular file creation.
|
|
271
|
+
*/
|
|
48
272
|
CreateTypeFile(): structs.Nfsv4CreateType;
|
|
273
|
+
/**
|
|
274
|
+
* Create Nfsv4CreateType for directory creation.
|
|
275
|
+
*/
|
|
49
276
|
CreateTypeDir(): structs.Nfsv4CreateType;
|
|
277
|
+
/**
|
|
278
|
+
* Create Nfsv4OpenOwner (open owner identifier).
|
|
279
|
+
* @param clientid - Client ID
|
|
280
|
+
* @param owner - Owner bytes (unique identifier)
|
|
281
|
+
*/
|
|
50
282
|
OpenOwner(clientid: bigint, owner: Uint8Array): structs.Nfsv4OpenOwner;
|
|
283
|
+
/**
|
|
284
|
+
* Create Nfsv4OpenClaim for CLAIM_NULL (open by filename).
|
|
285
|
+
* @param filename - Name of file to open
|
|
286
|
+
*/
|
|
51
287
|
OpenClaimNull(filename: string): structs.Nfsv4OpenClaim;
|
|
288
|
+
/**
|
|
289
|
+
* Create Nfsv4OpenHow for OPEN4_NOCREATE (open existing file).
|
|
290
|
+
*/
|
|
52
291
|
OpenHowNoCreate(): structs.Nfsv4OpenHow;
|
|
292
|
+
/**
|
|
293
|
+
* Create Nfsv4OpenHow for OPEN4_CREATE with UNCHECKED4 mode.
|
|
294
|
+
* @param createattrs - Optional file attributes to set on create
|
|
295
|
+
*/
|
|
53
296
|
OpenHowCreateUnchecked(createattrs?: structs.Nfsv4Fattr): structs.Nfsv4OpenHow;
|
|
297
|
+
/**
|
|
298
|
+
* Create Nfsv4OpenHow for OPEN4_CREATE with GUARDED4 mode.
|
|
299
|
+
* @param createattrs - Optional file attributes to set on create
|
|
300
|
+
*/
|
|
54
301
|
OpenHowCreateGuarded(createattrs?: structs.Nfsv4Fattr): structs.Nfsv4OpenHow;
|
|
302
|
+
/**
|
|
303
|
+
* Create Nfsv4OpenHow for OPEN4_CREATE with EXCLUSIVE4 mode.
|
|
304
|
+
* @param verifier - 8-byte verifier for exclusive create
|
|
305
|
+
*/
|
|
55
306
|
OpenHowCreateExclusive(verifier: structs.Nfsv4Verifier): structs.Nfsv4OpenHow;
|
|
307
|
+
/**
|
|
308
|
+
* Create Nfsv4LockOwner (lock owner identifier).
|
|
309
|
+
* @param clientid - Client ID
|
|
310
|
+
* @param owner - Owner bytes (unique identifier)
|
|
311
|
+
*/
|
|
56
312
|
LockOwner(clientid: bigint, owner: Uint8Array): structs.Nfsv4LockOwner;
|
|
313
|
+
/**
|
|
314
|
+
* Create Nfsv4LockOwnerInfo for new lock owner (open_to_lock_owner).
|
|
315
|
+
* @param openSeqid - Current open-owner seqid
|
|
316
|
+
* @param openStateid - Open stateid from OPEN operation
|
|
317
|
+
* @param lockSeqid - Initial lock-owner seqid (typically 0)
|
|
318
|
+
* @param lockOwner - Lock owner identifier
|
|
319
|
+
*/
|
|
57
320
|
NewLockOwner(openSeqid: number, openStateid: structs.Nfsv4Stateid, lockSeqid: number, lockOwner: structs.Nfsv4LockOwner): structs.Nfsv4LockOwnerInfo;
|
|
321
|
+
/**
|
|
322
|
+
* Create Nfsv4LockOwnerInfo for existing lock owner.
|
|
323
|
+
* @param lockStateid - Lock stateid from previous LOCK operation
|
|
324
|
+
* @param lockSeqid - Lock-owner seqid
|
|
325
|
+
*/
|
|
58
326
|
ExistingLockOwner(lockStateid: structs.Nfsv4Stateid, lockSeqid: number): structs.Nfsv4LockOwnerInfo;
|
|
327
|
+
/**
|
|
328
|
+
* ILLEGAL - Illegal operation (for testing RFC 7530 §15.2.4 compliance).
|
|
329
|
+
* This operation is used to test server handling of illegal operation codes.
|
|
330
|
+
* Per RFC 7530, the server should respond with NFS4ERR_OP_ILLEGAL.
|
|
331
|
+
*/
|
|
59
332
|
ILLEGAL(): msg.Nfsv4IllegalRequest;
|
|
60
333
|
};
|