@matter/types 0.15.0-alpha.0-20250620-16e218ed3 → 0.15.0-alpha.0-20250624-e8c89f458

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 (82) hide show
  1. package/dist/cjs/dcl/attestation-certificate.d.ts +99 -0
  2. package/dist/cjs/dcl/attestation-certificate.d.ts.map +1 -0
  3. package/dist/cjs/dcl/attestation-certificate.js +22 -0
  4. package/dist/cjs/dcl/attestation-certificate.js.map +6 -0
  5. package/dist/cjs/dcl/device-attestation-revocation.d.ts +135 -0
  6. package/dist/cjs/dcl/device-attestation-revocation.d.ts.map +1 -0
  7. package/dist/cjs/dcl/device-attestation-revocation.js +33 -0
  8. package/dist/cjs/dcl/device-attestation-revocation.js.map +6 -0
  9. package/dist/cjs/dcl/device-software-compliance.d.ts +96 -0
  10. package/dist/cjs/dcl/device-software-compliance.d.ts.map +1 -0
  11. package/dist/cjs/dcl/device-software-compliance.js +36 -0
  12. package/dist/cjs/dcl/device-software-compliance.js.map +6 -0
  13. package/dist/cjs/dcl/device-software-version.d.ts +127 -0
  14. package/dist/cjs/dcl/device-software-version.d.ts.map +1 -0
  15. package/dist/cjs/dcl/device-software-version.js +22 -0
  16. package/dist/cjs/dcl/device-software-version.js.map +6 -0
  17. package/dist/cjs/dcl/device.d.ts +217 -0
  18. package/dist/cjs/dcl/device.d.ts.map +1 -0
  19. package/dist/cjs/dcl/device.js +22 -0
  20. package/dist/cjs/dcl/device.js.map +6 -0
  21. package/dist/cjs/dcl/index.d.ts +13 -0
  22. package/dist/cjs/dcl/index.d.ts.map +1 -0
  23. package/dist/cjs/dcl/index.js +30 -0
  24. package/dist/cjs/dcl/index.js.map +6 -0
  25. package/dist/cjs/dcl/operational-certificate.d.ts +79 -0
  26. package/dist/cjs/dcl/operational-certificate.d.ts.map +1 -0
  27. package/dist/cjs/dcl/operational-certificate.js +22 -0
  28. package/dist/cjs/dcl/operational-certificate.js.map +6 -0
  29. package/dist/cjs/dcl/vendor.d.ts +47 -0
  30. package/dist/cjs/dcl/vendor.d.ts.map +1 -0
  31. package/dist/cjs/dcl/vendor.js +22 -0
  32. package/dist/cjs/dcl/vendor.js.map +6 -0
  33. package/dist/cjs/index.d.ts +1 -0
  34. package/dist/cjs/index.d.ts.map +1 -1
  35. package/dist/cjs/index.js +1 -0
  36. package/dist/cjs/index.js.map +1 -1
  37. package/dist/esm/dcl/attestation-certificate.d.ts +99 -0
  38. package/dist/esm/dcl/attestation-certificate.d.ts.map +1 -0
  39. package/dist/esm/dcl/attestation-certificate.js +6 -0
  40. package/dist/esm/dcl/attestation-certificate.js.map +6 -0
  41. package/dist/esm/dcl/device-attestation-revocation.d.ts +135 -0
  42. package/dist/esm/dcl/device-attestation-revocation.d.ts.map +1 -0
  43. package/dist/esm/dcl/device-attestation-revocation.js +13 -0
  44. package/dist/esm/dcl/device-attestation-revocation.js.map +6 -0
  45. package/dist/esm/dcl/device-software-compliance.d.ts +96 -0
  46. package/dist/esm/dcl/device-software-compliance.d.ts.map +1 -0
  47. package/dist/esm/dcl/device-software-compliance.js +16 -0
  48. package/dist/esm/dcl/device-software-compliance.js.map +6 -0
  49. package/dist/esm/dcl/device-software-version.d.ts +127 -0
  50. package/dist/esm/dcl/device-software-version.d.ts.map +1 -0
  51. package/dist/esm/dcl/device-software-version.js +6 -0
  52. package/dist/esm/dcl/device-software-version.js.map +6 -0
  53. package/dist/esm/dcl/device.d.ts +217 -0
  54. package/dist/esm/dcl/device.d.ts.map +1 -0
  55. package/dist/esm/dcl/device.js +6 -0
  56. package/dist/esm/dcl/device.js.map +6 -0
  57. package/dist/esm/dcl/index.d.ts +13 -0
  58. package/dist/esm/dcl/index.d.ts.map +1 -0
  59. package/dist/esm/dcl/index.js +13 -0
  60. package/dist/esm/dcl/index.js.map +6 -0
  61. package/dist/esm/dcl/operational-certificate.d.ts +79 -0
  62. package/dist/esm/dcl/operational-certificate.d.ts.map +1 -0
  63. package/dist/esm/dcl/operational-certificate.js +6 -0
  64. package/dist/esm/dcl/operational-certificate.js.map +6 -0
  65. package/dist/esm/dcl/vendor.d.ts +47 -0
  66. package/dist/esm/dcl/vendor.d.ts.map +1 -0
  67. package/dist/esm/dcl/vendor.js +6 -0
  68. package/dist/esm/dcl/vendor.js.map +6 -0
  69. package/dist/esm/index.d.ts +1 -0
  70. package/dist/esm/index.d.ts.map +1 -1
  71. package/dist/esm/index.js +1 -0
  72. package/dist/esm/index.js.map +1 -1
  73. package/package.json +5 -5
  74. package/src/dcl/attestation-certificate.ts +114 -0
  75. package/src/dcl/device-attestation-revocation.ts +149 -0
  76. package/src/dcl/device-software-compliance.ts +108 -0
  77. package/src/dcl/device-software-version.ts +143 -0
  78. package/src/dcl/device.ts +243 -0
  79. package/src/dcl/index.ts +13 -0
  80. package/src/dcl/operational-certificate.ts +90 -0
  81. package/src/dcl/vendor.ts +53 -0
  82. package/src/index.ts +1 -0
@@ -0,0 +1,90 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /**
8
+ * Operational Root and Intermediate Certificate Schema
9
+ * @see {@link MatterSpecification.v141.Core} § 11.23.5.
10
+ */
11
+ export interface OperationalCertificateDclSchema {
12
+ /**
13
+ * This field uniquely identifies a certificate and SHALL contain the body of a certificate that has been
14
+ * added in the DCL. It SHALL be encoded in PEM format. The certificate SHALL respect the format
15
+ * constraints provided for that certificate type.
16
+ */
17
+ pemCert: string;
18
+
19
+ /**
20
+ * The field SHALL be used to identify the serial number field in the Matter certificate structure. A
21
+ * Matter certificate follows the same limitation on admissible serial numbers as in [RFC 5280], i.e.,
22
+ * that implementations SHALL admit serial numbers up to 20 octets in length, and certificate authorities
23
+ * SHALL NOT use serial numbers longer than 20 octets in length.
24
+ */
25
+ serialNumber: string;
26
+
27
+ /**
28
+ * The field SHALL be used to identify the Certificate Authority that issues the certificate. For a
29
+ * Operational Root CA Certificates (RCAC), this field is OPTIONAL because Issuer and
30
+ * Subject are the same.
31
+ */
32
+ issuer?: string;
33
+
34
+ /**
35
+ * The authority key identifier extension provides a means of identifying the public key corresponding
36
+ * to the private key used to sign a Matter certificate. This is OPTIONAL for Operational Root CA
37
+ * Certificates (RCAC).
38
+ */
39
+ authorityKeyID?: string;
40
+
41
+ /**
42
+ * This field SHALL contain the PAA certificate’s Subject field, as defined Operational Root CA Certificates
43
+ * (RCAC). This is OPTIONAL for Operational Root CA Certificates (RCAC). This is encoded as
44
+ * defined in Section 6.1, “Certificate Common Conventions”.
45
+ */
46
+ rootSubject?: string;
47
+
48
+ /**
49
+ * This field SHALL uniquely identify the PAA certificate’s Subject Key Identifier mandatory extension.
50
+ * It is defined in PAA Certificate and Operational Root CA Certificates (RCAC). This is OPTIONAL
51
+ * for Operational Root CA Certificates (RCAC). This is encoded as defined in Section 6.1, “Certificate
52
+ * Common Conventions”.
53
+ */
54
+ rootSubjectKeyID?: string;
55
+
56
+ /**
57
+ * This field SHALL signify whether the associated certificates is a Operational Root CA Certificate
58
+ * (RCAC).
59
+ */
60
+ isRoot: boolean;
61
+
62
+ /**
63
+ * This field uniquely identifies the DCL key that was used to register the certificate in DCL, pursuant
64
+ * to DCL policies.
65
+ */
66
+ owner: string;
67
+
68
+ /**
69
+ * This field SHALL contain the certificate’s Subject field. This is encoded as defined in Section 6.1,
70
+ * “Certificate Common Conventions”.
71
+ */
72
+ subject: string;
73
+
74
+ /**
75
+ * This field SHALL uniquely identify the PAA certificate’s Subject Key Identifier mandatory extension.
76
+ * This is encoded as defined in Section 6.1.2, “Key Identifier Extension Constraints”.
77
+ */
78
+ subjectKeyID: string;
79
+
80
+ /**
81
+ * This field SHALL contain the Vendor ID of the vendor that issued the certificate.
82
+ */
83
+ vid: number;
84
+
85
+ /**
86
+ * The SchemaVersion field value history for this schema is provided below:
87
+ * * ???
88
+ */
89
+ schemaVersion: number;
90
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022-2025 Matter.js Authors
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ import { VendorId } from "../datatype/VendorId.js";
8
+
9
+ /**
10
+ * Vendor Schema
11
+ * @see {@link MatterSpecification.v141.Core} § 11.23.3.
12
+ * DCL Endpoint: /dcl/vendorinfo/vendors or /dcl/vendorinfo/vendors/{vendorID}
13
+ */
14
+ export interface VendorDclSchema {
15
+ /**
16
+ * This field SHALL uniquely identify this Vendor Schema entry and it SHALL match the Vendor’s
17
+ * assigned Vendor ID.
18
+ */
19
+ vendorID: VendorId;
20
+
21
+ /**
22
+ * This field SHALL provide a human readable (displayable) name for the product manufacturer associated
23
+ * with this record. Maximum length is 128 characters.
24
+ */
25
+ vendorName: string;
26
+
27
+ /**
28
+ * The CompanyLegalName field SHALL specify the legal name for the product manufacturer.
29
+ * Maximum length is 256 characters.
30
+ */
31
+ companyLegalName: string;
32
+
33
+ /**
34
+ * The CompanyPreferredName field, if provided, SHALL specify the Preferred Name that MAY be
35
+ * used for display purposes instead of the CompanyLegalName. Maximum length is 256 characters.
36
+ */
37
+ companyPreferredName?: string;
38
+
39
+ /**
40
+ * The VendorLandingPageUrl field (when provided) SHALL contain a link to a maintained web page
41
+ * containing more information about the device manufacturer, such as contact information, address,
42
+ * etc. During the lifetime of the products of this manufacturer, the specified URL SHOULD resolve to a
43
+ * maintained web page. The syntax of this field SHALL follow the syntax as specified in RFC 1738 and
44
+ * SHALL use the https scheme. The maximum length of this field is 256 ASCII characters.
45
+ */
46
+ vendorLandingPageUrl?: string;
47
+
48
+ /**
49
+ * The SchemaVersion field value history for this schema is provided below:
50
+ * * 0: Initial Release
51
+ */
52
+ schemaVersion: number;
53
+ }
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export * from "./cluster/index.js";
10
10
  export * from "./commissioning/index.js";
11
11
  export * from "./common/index.js";
12
12
  export * from "./datatype/index.js";
13
+ export * from "./dcl/index.js";
13
14
  export * from "./globals/index.js";
14
15
  export * from "./protocol/index.js";
15
16
  export * from "./schema/index.js";