@matter/types 0.16.0-alpha.0-20250810-5c91a95d2 → 0.16.0-alpha.0-20250814-484abe647

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.
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const BDX_PROTOCOL_ID = 2;
7
+ export declare enum BdxMessageTypes {
8
+ SendInit = 1,
9
+ SendAccept = 2,
10
+ ReceiveInit = 4,
11
+ ReceiveAccept = 5,
12
+ BlockQuery = 16,
13
+ Block = 17,
14
+ BlockEof = 18,
15
+ BlockAck = 19,
16
+ BlockAckEof = 20,
17
+ BlockQueryWithSkip = 21
18
+ }
19
+ export declare enum BdxStatusCode {
20
+ /**
21
+ * Success.
22
+ */
23
+ Success = 0,
24
+ /**
25
+ * Definite length too large to support.
26
+ * For example, trying to SendInit with too large of a file.
27
+ */
28
+ LengthTooLarge = 18,
29
+ /**
30
+ * Definite length proposed for transfer is too short for the context based on the responder’s knowledge of
31
+ * expected size.
32
+ */
33
+ LengthTooShort = 19,
34
+ /**
35
+ * Pre-negotiated size of transfer was not fulfilled prior to BlockAckEOF.
36
+ */
37
+ LengthMismatch = 20,
38
+ /**
39
+ * Responder can only support proposed transfer if definite length is provided.
40
+ */
41
+ LengthRequired = 21,
42
+ /**
43
+ * Received a malformed protocol message.
44
+ */
45
+ BadMessageContent = 22,
46
+ /**
47
+ * Received block counter out of order from expectation.
48
+ */
49
+ BadBlockCounter = 23,
50
+ /**
51
+ * Received a well-formed message that was contextually inappropriate for the current state of the transfer.
52
+ */
53
+ UnexpectedMessage = 24,
54
+ /**
55
+ * Responder is too busy to proceed with a new transfer at this moment.
56
+ */
57
+ ResponderBusy = 25,
58
+ /**
59
+ * Other error occurred, such as perhaps an input/output error occurring at one of the peers.
60
+ */
61
+ TransferFailedUnknownError = 31,
62
+ /**
63
+ * Received a message that mismatches the current transfer mode.
64
+ */
65
+ TransferMethodNotSupported = 80,
66
+ /**
67
+ * Attempted to request a file whose designator is unknown to the responder.
68
+ */
69
+ FileDesignatorUnknown = 81,
70
+ /**
71
+ * Proposed transfer with explicit start offset is not supported in current context.
72
+ */
73
+ StartOffsetNotSupported = 82,
74
+ /**
75
+ * Could not find a common supported version between initiator and responder.
76
+ */
77
+ VersionNotSupported = 83,
78
+ /**
79
+ * Other unexpected error.
80
+ */
81
+ Unknown = 95,
82
+ /**
83
+ * No additional error details available.
84
+ */
85
+ GeneralError = 65535
86
+ }
87
+ //# sourceMappingURL=bdx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bdx.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/bdx.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,oBAAY,eAAe;IACvB,QAAQ,IAAO;IACf,UAAU,IAAO;IACjB,WAAW,IAAO;IAClB,aAAa,IAAO;IACpB,UAAU,KAAO;IACjB,KAAK,KAAO;IACZ,QAAQ,KAAO;IACf,QAAQ,KAAO;IACf,WAAW,KAAO;IAClB,kBAAkB,KAAO;CAC5B;AAED,oBAAY,aAAa;IACrB;;OAEG;IACH,OAAO,IAAO;IAEd;;;OAGG;IACH,cAAc,KAAO;IAErB;;;OAGG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,iBAAiB,KAAO;IAExB;;OAEG;IACH,eAAe,KAAO;IAEtB;;OAEG;IACH,iBAAiB,KAAO;IAExB;;OAEG;IACH,aAAa,KAAO;IAEpB;;OAEG;IACH,0BAA0B,KAAO;IAEjC;;OAEG;IACH,0BAA0B,KAAO;IAEjC;;OAEG;IACH,qBAAqB,KAAO;IAE5B;;OAEG;IACH,uBAAuB,KAAO;IAE9B;;OAEG;IACH,mBAAmB,KAAO;IAE1B;;OAEG;IACH,OAAO,KAAO;IAEd;;OAEG;IACH,YAAY,QAAS;CACxB"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var bdx_exports = {};
20
+ __export(bdx_exports, {
21
+ BDX_PROTOCOL_ID: () => BDX_PROTOCOL_ID,
22
+ BdxMessageTypes: () => BdxMessageTypes,
23
+ BdxStatusCode: () => BdxStatusCode
24
+ });
25
+ module.exports = __toCommonJS(bdx_exports);
26
+ /**
27
+ * @license
28
+ * Copyright 2022-2025 Matter.js Authors
29
+ * SPDX-License-Identifier: Apache-2.0
30
+ */
31
+ const BDX_PROTOCOL_ID = 2;
32
+ var BdxMessageTypes = /* @__PURE__ */ ((BdxMessageTypes2) => {
33
+ BdxMessageTypes2[BdxMessageTypes2["SendInit"] = 1] = "SendInit";
34
+ BdxMessageTypes2[BdxMessageTypes2["SendAccept"] = 2] = "SendAccept";
35
+ BdxMessageTypes2[BdxMessageTypes2["ReceiveInit"] = 4] = "ReceiveInit";
36
+ BdxMessageTypes2[BdxMessageTypes2["ReceiveAccept"] = 5] = "ReceiveAccept";
37
+ BdxMessageTypes2[BdxMessageTypes2["BlockQuery"] = 16] = "BlockQuery";
38
+ BdxMessageTypes2[BdxMessageTypes2["Block"] = 17] = "Block";
39
+ BdxMessageTypes2[BdxMessageTypes2["BlockEof"] = 18] = "BlockEof";
40
+ BdxMessageTypes2[BdxMessageTypes2["BlockAck"] = 19] = "BlockAck";
41
+ BdxMessageTypes2[BdxMessageTypes2["BlockAckEof"] = 20] = "BlockAckEof";
42
+ BdxMessageTypes2[BdxMessageTypes2["BlockQueryWithSkip"] = 21] = "BlockQueryWithSkip";
43
+ return BdxMessageTypes2;
44
+ })(BdxMessageTypes || {});
45
+ var BdxStatusCode = /* @__PURE__ */ ((BdxStatusCode2) => {
46
+ BdxStatusCode2[BdxStatusCode2["Success"] = 0] = "Success";
47
+ BdxStatusCode2[BdxStatusCode2["LengthTooLarge"] = 18] = "LengthTooLarge";
48
+ BdxStatusCode2[BdxStatusCode2["LengthTooShort"] = 19] = "LengthTooShort";
49
+ BdxStatusCode2[BdxStatusCode2["LengthMismatch"] = 20] = "LengthMismatch";
50
+ BdxStatusCode2[BdxStatusCode2["LengthRequired"] = 21] = "LengthRequired";
51
+ BdxStatusCode2[BdxStatusCode2["BadMessageContent"] = 22] = "BadMessageContent";
52
+ BdxStatusCode2[BdxStatusCode2["BadBlockCounter"] = 23] = "BadBlockCounter";
53
+ BdxStatusCode2[BdxStatusCode2["UnexpectedMessage"] = 24] = "UnexpectedMessage";
54
+ BdxStatusCode2[BdxStatusCode2["ResponderBusy"] = 25] = "ResponderBusy";
55
+ BdxStatusCode2[BdxStatusCode2["TransferFailedUnknownError"] = 31] = "TransferFailedUnknownError";
56
+ BdxStatusCode2[BdxStatusCode2["TransferMethodNotSupported"] = 80] = "TransferMethodNotSupported";
57
+ BdxStatusCode2[BdxStatusCode2["FileDesignatorUnknown"] = 81] = "FileDesignatorUnknown";
58
+ BdxStatusCode2[BdxStatusCode2["StartOffsetNotSupported"] = 82] = "StartOffsetNotSupported";
59
+ BdxStatusCode2[BdxStatusCode2["VersionNotSupported"] = 83] = "VersionNotSupported";
60
+ BdxStatusCode2[BdxStatusCode2["Unknown"] = 95] = "Unknown";
61
+ BdxStatusCode2[BdxStatusCode2["GeneralError"] = 65535] = "GeneralError";
62
+ return BdxStatusCode2;
63
+ })(BdxStatusCode || {});
64
+ //# sourceMappingURL=bdx.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/protocol/definitions/bdx.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,kBAAkB;AAExB,IAAK,kBAAL,kBAAKA,qBAAL;AACH,EAAAA,kCAAA,cAAW,KAAX;AACA,EAAAA,kCAAA,gBAAa,KAAb;AACA,EAAAA,kCAAA,iBAAc,KAAd;AACA,EAAAA,kCAAA,mBAAgB,KAAhB;AACA,EAAAA,kCAAA,gBAAa,MAAb;AACA,EAAAA,kCAAA,WAAQ,MAAR;AACA,EAAAA,kCAAA,cAAW,MAAX;AACA,EAAAA,kCAAA,cAAW,MAAX;AACA,EAAAA,kCAAA,iBAAc,MAAd;AACA,EAAAA,kCAAA,wBAAqB,MAArB;AAVQ,SAAAA;AAAA,GAAA;AAaL,IAAK,gBAAL,kBAAKC,mBAAL;AAIH,EAAAA,8BAAA,aAAU,KAAV;AAMA,EAAAA,8BAAA,oBAAiB,MAAjB;AAMA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,uBAAoB,MAApB;AAKA,EAAAA,8BAAA,qBAAkB,MAAlB;AAKA,EAAAA,8BAAA,uBAAoB,MAApB;AAKA,EAAAA,8BAAA,mBAAgB,MAAhB;AAKA,EAAAA,8BAAA,gCAA6B,MAA7B;AAKA,EAAAA,8BAAA,gCAA6B,MAA7B;AAKA,EAAAA,8BAAA,2BAAwB,MAAxB;AAKA,EAAAA,8BAAA,6BAA0B,MAA1B;AAKA,EAAAA,8BAAA,yBAAsB,MAAtB;AAKA,EAAAA,8BAAA,aAAU,MAAV;AAKA,EAAAA,8BAAA,kBAAe,SAAf;AAjFQ,SAAAA;AAAA,GAAA;",
5
+ "names": ["BdxMessageTypes", "BdxStatusCode"]
6
+ }
@@ -3,6 +3,7 @@
3
3
  * Copyright 2022-2025 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
+ export * from "./bdx.js";
6
7
  export * from "./general.js";
7
8
  export * from "./interaction.js";
8
9
  export * from "./secure-channel.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -15,6 +15,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
16
  var definitions_exports = {};
17
17
  module.exports = __toCommonJS(definitions_exports);
18
+ __reExport(definitions_exports, require("./bdx.js"), module.exports);
18
19
  __reExport(definitions_exports, require("./general.js"), module.exports);
19
20
  __reExport(definitions_exports, require("./interaction.js"), module.exports);
20
21
  __reExport(definitions_exports, require("./secure-channel.js"), module.exports);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/protocol/definitions/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAMA,gCAAc,yBANd;AAOA,gCAAc,6BAPd;AAQA,gCAAc,gCARd;AAAA;AAAA;AAAA;AAAA;AAAA;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAMA,gCAAc,qBANd;AAOA,gCAAc,yBAPd;AAQA,gCAAc,6BARd;AASA,gCAAc,gCATd;AAAA;AAAA;AAAA;AAAA;AAAA;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,87 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const BDX_PROTOCOL_ID = 2;
7
+ export declare enum BdxMessageTypes {
8
+ SendInit = 1,
9
+ SendAccept = 2,
10
+ ReceiveInit = 4,
11
+ ReceiveAccept = 5,
12
+ BlockQuery = 16,
13
+ Block = 17,
14
+ BlockEof = 18,
15
+ BlockAck = 19,
16
+ BlockAckEof = 20,
17
+ BlockQueryWithSkip = 21
18
+ }
19
+ export declare enum BdxStatusCode {
20
+ /**
21
+ * Success.
22
+ */
23
+ Success = 0,
24
+ /**
25
+ * Definite length too large to support.
26
+ * For example, trying to SendInit with too large of a file.
27
+ */
28
+ LengthTooLarge = 18,
29
+ /**
30
+ * Definite length proposed for transfer is too short for the context based on the responder’s knowledge of
31
+ * expected size.
32
+ */
33
+ LengthTooShort = 19,
34
+ /**
35
+ * Pre-negotiated size of transfer was not fulfilled prior to BlockAckEOF.
36
+ */
37
+ LengthMismatch = 20,
38
+ /**
39
+ * Responder can only support proposed transfer if definite length is provided.
40
+ */
41
+ LengthRequired = 21,
42
+ /**
43
+ * Received a malformed protocol message.
44
+ */
45
+ BadMessageContent = 22,
46
+ /**
47
+ * Received block counter out of order from expectation.
48
+ */
49
+ BadBlockCounter = 23,
50
+ /**
51
+ * Received a well-formed message that was contextually inappropriate for the current state of the transfer.
52
+ */
53
+ UnexpectedMessage = 24,
54
+ /**
55
+ * Responder is too busy to proceed with a new transfer at this moment.
56
+ */
57
+ ResponderBusy = 25,
58
+ /**
59
+ * Other error occurred, such as perhaps an input/output error occurring at one of the peers.
60
+ */
61
+ TransferFailedUnknownError = 31,
62
+ /**
63
+ * Received a message that mismatches the current transfer mode.
64
+ */
65
+ TransferMethodNotSupported = 80,
66
+ /**
67
+ * Attempted to request a file whose designator is unknown to the responder.
68
+ */
69
+ FileDesignatorUnknown = 81,
70
+ /**
71
+ * Proposed transfer with explicit start offset is not supported in current context.
72
+ */
73
+ StartOffsetNotSupported = 82,
74
+ /**
75
+ * Could not find a common supported version between initiator and responder.
76
+ */
77
+ VersionNotSupported = 83,
78
+ /**
79
+ * Other unexpected error.
80
+ */
81
+ Unknown = 95,
82
+ /**
83
+ * No additional error details available.
84
+ */
85
+ GeneralError = 65535
86
+ }
87
+ //# sourceMappingURL=bdx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bdx.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/bdx.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,oBAAY,eAAe;IACvB,QAAQ,IAAO;IACf,UAAU,IAAO;IACjB,WAAW,IAAO;IAClB,aAAa,IAAO;IACpB,UAAU,KAAO;IACjB,KAAK,KAAO;IACZ,QAAQ,KAAO;IACf,QAAQ,KAAO;IACf,WAAW,KAAO;IAClB,kBAAkB,KAAO;CAC5B;AAED,oBAAY,aAAa;IACrB;;OAEG;IACH,OAAO,IAAO;IAEd;;;OAGG;IACH,cAAc,KAAO;IAErB;;;OAGG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,cAAc,KAAO;IAErB;;OAEG;IACH,iBAAiB,KAAO;IAExB;;OAEG;IACH,eAAe,KAAO;IAEtB;;OAEG;IACH,iBAAiB,KAAO;IAExB;;OAEG;IACH,aAAa,KAAO;IAEpB;;OAEG;IACH,0BAA0B,KAAO;IAEjC;;OAEG;IACH,0BAA0B,KAAO;IAEjC;;OAEG;IACH,qBAAqB,KAAO;IAE5B;;OAEG;IACH,uBAAuB,KAAO;IAE9B;;OAEG;IACH,mBAAmB,KAAO;IAE1B;;OAEG;IACH,OAAO,KAAO;IAEd;;OAEG;IACH,YAAY,QAAS;CACxB"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ const BDX_PROTOCOL_ID = 2;
7
+ var BdxMessageTypes = /* @__PURE__ */ ((BdxMessageTypes2) => {
8
+ BdxMessageTypes2[BdxMessageTypes2["SendInit"] = 1] = "SendInit";
9
+ BdxMessageTypes2[BdxMessageTypes2["SendAccept"] = 2] = "SendAccept";
10
+ BdxMessageTypes2[BdxMessageTypes2["ReceiveInit"] = 4] = "ReceiveInit";
11
+ BdxMessageTypes2[BdxMessageTypes2["ReceiveAccept"] = 5] = "ReceiveAccept";
12
+ BdxMessageTypes2[BdxMessageTypes2["BlockQuery"] = 16] = "BlockQuery";
13
+ BdxMessageTypes2[BdxMessageTypes2["Block"] = 17] = "Block";
14
+ BdxMessageTypes2[BdxMessageTypes2["BlockEof"] = 18] = "BlockEof";
15
+ BdxMessageTypes2[BdxMessageTypes2["BlockAck"] = 19] = "BlockAck";
16
+ BdxMessageTypes2[BdxMessageTypes2["BlockAckEof"] = 20] = "BlockAckEof";
17
+ BdxMessageTypes2[BdxMessageTypes2["BlockQueryWithSkip"] = 21] = "BlockQueryWithSkip";
18
+ return BdxMessageTypes2;
19
+ })(BdxMessageTypes || {});
20
+ var BdxStatusCode = /* @__PURE__ */ ((BdxStatusCode2) => {
21
+ BdxStatusCode2[BdxStatusCode2["Success"] = 0] = "Success";
22
+ BdxStatusCode2[BdxStatusCode2["LengthTooLarge"] = 18] = "LengthTooLarge";
23
+ BdxStatusCode2[BdxStatusCode2["LengthTooShort"] = 19] = "LengthTooShort";
24
+ BdxStatusCode2[BdxStatusCode2["LengthMismatch"] = 20] = "LengthMismatch";
25
+ BdxStatusCode2[BdxStatusCode2["LengthRequired"] = 21] = "LengthRequired";
26
+ BdxStatusCode2[BdxStatusCode2["BadMessageContent"] = 22] = "BadMessageContent";
27
+ BdxStatusCode2[BdxStatusCode2["BadBlockCounter"] = 23] = "BadBlockCounter";
28
+ BdxStatusCode2[BdxStatusCode2["UnexpectedMessage"] = 24] = "UnexpectedMessage";
29
+ BdxStatusCode2[BdxStatusCode2["ResponderBusy"] = 25] = "ResponderBusy";
30
+ BdxStatusCode2[BdxStatusCode2["TransferFailedUnknownError"] = 31] = "TransferFailedUnknownError";
31
+ BdxStatusCode2[BdxStatusCode2["TransferMethodNotSupported"] = 80] = "TransferMethodNotSupported";
32
+ BdxStatusCode2[BdxStatusCode2["FileDesignatorUnknown"] = 81] = "FileDesignatorUnknown";
33
+ BdxStatusCode2[BdxStatusCode2["StartOffsetNotSupported"] = 82] = "StartOffsetNotSupported";
34
+ BdxStatusCode2[BdxStatusCode2["VersionNotSupported"] = 83] = "VersionNotSupported";
35
+ BdxStatusCode2[BdxStatusCode2["Unknown"] = 95] = "Unknown";
36
+ BdxStatusCode2[BdxStatusCode2["GeneralError"] = 65535] = "GeneralError";
37
+ return BdxStatusCode2;
38
+ })(BdxStatusCode || {});
39
+ export {
40
+ BDX_PROTOCOL_ID,
41
+ BdxMessageTypes,
42
+ BdxStatusCode
43
+ };
44
+ //# sourceMappingURL=bdx.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/protocol/definitions/bdx.ts"],
4
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,MAAM,kBAAkB;AAExB,IAAK,kBAAL,kBAAKA,qBAAL;AACH,EAAAA,kCAAA,cAAW,KAAX;AACA,EAAAA,kCAAA,gBAAa,KAAb;AACA,EAAAA,kCAAA,iBAAc,KAAd;AACA,EAAAA,kCAAA,mBAAgB,KAAhB;AACA,EAAAA,kCAAA,gBAAa,MAAb;AACA,EAAAA,kCAAA,WAAQ,MAAR;AACA,EAAAA,kCAAA,cAAW,MAAX;AACA,EAAAA,kCAAA,cAAW,MAAX;AACA,EAAAA,kCAAA,iBAAc,MAAd;AACA,EAAAA,kCAAA,wBAAqB,MAArB;AAVQ,SAAAA;AAAA,GAAA;AAaL,IAAK,gBAAL,kBAAKC,mBAAL;AAIH,EAAAA,8BAAA,aAAU,KAAV;AAMA,EAAAA,8BAAA,oBAAiB,MAAjB;AAMA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,oBAAiB,MAAjB;AAKA,EAAAA,8BAAA,uBAAoB,MAApB;AAKA,EAAAA,8BAAA,qBAAkB,MAAlB;AAKA,EAAAA,8BAAA,uBAAoB,MAApB;AAKA,EAAAA,8BAAA,mBAAgB,MAAhB;AAKA,EAAAA,8BAAA,gCAA6B,MAA7B;AAKA,EAAAA,8BAAA,gCAA6B,MAA7B;AAKA,EAAAA,8BAAA,2BAAwB,MAAxB;AAKA,EAAAA,8BAAA,6BAA0B,MAA1B;AAKA,EAAAA,8BAAA,yBAAsB,MAAtB;AAKA,EAAAA,8BAAA,aAAU,MAAV;AAKA,EAAAA,8BAAA,kBAAe,SAAf;AAjFQ,SAAAA;AAAA,GAAA;",
5
+ "names": ["BdxMessageTypes", "BdxStatusCode"]
6
+ }
@@ -3,6 +3,7 @@
3
3
  * Copyright 2022-2025 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
+ export * from "./bdx.js";
6
7
  export * from "./general.js";
7
8
  export * from "./interaction.js";
8
9
  export * from "./secure-channel.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/protocol/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -3,6 +3,7 @@
3
3
  * Copyright 2022-2025 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
+ export * from "./bdx.js";
6
7
  export * from "./general.js";
7
8
  export * from "./interaction.js";
8
9
  export * from "./secure-channel.js";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/protocol/definitions/index.ts"],
4
- "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,cAAc;AACd,cAAc;AACd,cAAc;",
4
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
5
5
  "names": []
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matter/types",
3
- "version": "0.16.0-alpha.0-20250810-5c91a95d2",
3
+ "version": "0.16.0-alpha.0-20250814-484abe647",
4
4
  "description": "Definitions for Matter application",
5
5
  "keywords": [
6
6
  "iot",
@@ -33,12 +33,12 @@
33
33
  "embed-examples": "embedme **/README.md"
34
34
  },
35
35
  "dependencies": {
36
- "@matter/general": "0.16.0-alpha.0-20250810-5c91a95d2",
37
- "@matter/model": "0.16.0-alpha.0-20250810-5c91a95d2"
36
+ "@matter/general": "0.16.0-alpha.0-20250814-484abe647",
37
+ "@matter/model": "0.16.0-alpha.0-20250814-484abe647"
38
38
  },
39
39
  "devDependencies": {
40
- "@matter/tools": "0.16.0-alpha.0-20250810-5c91a95d2",
41
- "@matter/testing": "0.16.0-alpha.0-20250810-5c91a95d2"
40
+ "@matter/tools": "0.16.0-alpha.0-20250814-484abe647",
41
+ "@matter/testing": "0.16.0-alpha.0-20250814-484abe647"
42
42
  },
43
43
  "files": [
44
44
  "dist/**/*",
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ export const BDX_PROTOCOL_ID = 2;
8
+
9
+ export enum BdxMessageTypes {
10
+ SendInit = 0x01,
11
+ SendAccept = 0x02,
12
+ ReceiveInit = 0x04,
13
+ ReceiveAccept = 0x05,
14
+ BlockQuery = 0x10,
15
+ Block = 0x11,
16
+ BlockEof = 0x12,
17
+ BlockAck = 0x13,
18
+ BlockAckEof = 0x14,
19
+ BlockQueryWithSkip = 0x15,
20
+ }
21
+
22
+ export enum BdxStatusCode {
23
+ /**
24
+ * Success.
25
+ */
26
+ Success = 0x00,
27
+
28
+ /**
29
+ * Definite length too large to support.
30
+ * For example, trying to SendInit with too large of a file.
31
+ */
32
+ LengthTooLarge = 0x12,
33
+
34
+ /**
35
+ * Definite length proposed for transfer is too short for the context based on the responder’s knowledge of
36
+ * expected size.
37
+ */
38
+ LengthTooShort = 0x13,
39
+
40
+ /**
41
+ * Pre-negotiated size of transfer was not fulfilled prior to BlockAckEOF.
42
+ */
43
+ LengthMismatch = 0x14,
44
+
45
+ /**
46
+ * Responder can only support proposed transfer if definite length is provided.
47
+ */
48
+ LengthRequired = 0x15,
49
+
50
+ /**
51
+ * Received a malformed protocol message.
52
+ */
53
+ BadMessageContent = 0x16,
54
+
55
+ /**
56
+ * Received block counter out of order from expectation.
57
+ */
58
+ BadBlockCounter = 0x17,
59
+
60
+ /**
61
+ * Received a well-formed message that was contextually inappropriate for the current state of the transfer.
62
+ */
63
+ UnexpectedMessage = 0x18,
64
+
65
+ /**
66
+ * Responder is too busy to proceed with a new transfer at this moment.
67
+ */
68
+ ResponderBusy = 0x19,
69
+
70
+ /**
71
+ * Other error occurred, such as perhaps an input/output error occurring at one of the peers.
72
+ */
73
+ TransferFailedUnknownError = 0x1f,
74
+
75
+ /**
76
+ * Received a message that mismatches the current transfer mode.
77
+ */
78
+ TransferMethodNotSupported = 0x50,
79
+
80
+ /**
81
+ * Attempted to request a file whose designator is unknown to the responder.
82
+ */
83
+ FileDesignatorUnknown = 0x51,
84
+
85
+ /**
86
+ * Proposed transfer with explicit start offset is not supported in current context.
87
+ */
88
+ StartOffsetNotSupported = 0x52,
89
+
90
+ /**
91
+ * Could not find a common supported version between initiator and responder.
92
+ */
93
+ VersionNotSupported = 0x53,
94
+
95
+ /**
96
+ * Other unexpected error.
97
+ */
98
+ Unknown = 0x5f,
99
+
100
+ /**
101
+ * No additional error details available.
102
+ */
103
+ GeneralError = 0xffff,
104
+ }
@@ -4,6 +4,7 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
+ export * from "./bdx.js";
7
8
  export * from "./general.js";
8
9
  export * from "./interaction.js";
9
10
  export * from "./secure-channel.js";