@browsercore/contracts 0.2.11 → 0.2.12

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/README.md CHANGED
@@ -4,48 +4,80 @@
4
4
  [![CI](https://img.shields.io/github/actions/workflow/status/jverneuer/browsercore-contracts/ci.yml?label=ci)](https://github.com/jverneuer/browsercore-contracts/actions/workflows/ci.yml)
5
5
 
6
6
  The canonical interface package for the browsercore stack. Every protocol
7
- package, runtime adapter, and consumer depends on these contracts; they
8
- define how components communicate without coupling them to each other. This
9
- package is the canonical single definition for `Transport`,
10
- `CryptoProvider`, and `CompressionProvider` — `@browsercore/transport` and
11
- `@browsercore/crypto` re-export them; `@browsercore/compression` declares
12
- its own structural copy — plus the `Platform` service contracts (events,
13
- time, telemetry, network). Every `Platform` bundle is **optional**
14
- (capabilities are resolved, not faked), `Network.udp` is a **factory**
15
- (`UdpSocketFactory`), `Clock` is **THE** time contract,
16
- `TlsHandshakeEngine` is the contracts-level seam that lets quic drive a TLS
17
- handshake without importing `@browsercore/tls`, and the `ProxyConfig`
18
- family / `ProfileId` / `CookieJarConsumer` config types have their
19
- canonical homes here. The certificate mirror is canonical too:
20
- `CertificateSignatureAlgorithm` (and `Certificate.selfSigned`) live here,
21
- and `@browsercore/tls` imports and re-exports them from
22
- `@browsercore/contracts` — one definition, not a second `Certificate`
23
- beside the engine contract. Deliberately
24
- package-local surfaces that remain duplicated (e.g. the full `CookieJar`)
25
- are documented as such at each definition.
7
+ package, runtime adapter, and consumer depends on these contracts; they define
8
+ how components communicate without coupling them to each other. This package
9
+ is the canonical single definition for `Transport`, `CryptoProvider`, and
10
+ `CompressionProvider`: `@browsercore/transport` re-exports `Transport`,
11
+ `@browsercore/crypto` re-exports `CryptoProvider`, and
12
+ `@browsercore/compression` declares its own structural copy. It also holds
13
+ the `Platform` service contracts for events, time, telemetry, and network.
14
+
15
+ Every `Platform` bundle is optional, so capabilities are resolved rather than
16
+ faked. `Network.udp` is a factory (`UdpSocketFactory`), `Clock` is the time
17
+ contract, and `TlsHandshakeEngine` is the seam that lets quic drive a TLS
18
+ handshake without importing `@browsercore/tls`. The `ProxyConfig` family,
19
+ `ProfileId`, and `CookieJarConsumer` have their canonical homes here too.
20
+ `CertificateSignatureAlgorithm` and `Certificate.selfSigned` live here as
21
+ well; `@browsercore/tls` imports and re-exports them from this package, so
22
+ there is one `Certificate` definition instead of a second one beside the
23
+ engine contract. Surfaces that deliberately stay package-local (the full
24
+ `CookieJar`, for example) say so at each definition.
26
25
 
27
26
  ## Why this package exists
28
27
 
29
- **Zero drift through global interface distribution.** Without a shared
30
- contracts package, every `@browsercore/*` package would define its own version
31
- of `Transport`, `BrowserProfile`, `FetchClient`, etc. When one package changes
32
- a shape, the others silently break at runtime. By centralizing every
33
- cross-package interface here, a type error becomes a compile error the moment
34
- any package diverges.
28
+ **No drift between packages.** Without a shared contracts package, every
29
+ `@browsercore/*` package would define its own version of `Transport`,
30
+ `BrowserProfile`, `FetchClient`, etc. When one package changes a shape, the
31
+ others silently break at runtime. Centralizing every cross-package interface
32
+ here turns that into a compile error the moment any package diverges.
35
33
 
36
34
  **Alternative implementations welcome.** The contracts define exactly what a
37
- component must satisfy, nothing more. Want to write a different transport?
38
- Implement `Transport`. A different crypto backend? Implement
35
+ component must satisfy, nothing more. To write a different transport,
36
+ implement `Transport`. For a different crypto backend, implement
39
37
  `CryptoProvider` (synchronous; WebCrypto cannot satisfy it, see
40
38
  [docs/design-decisions.md](docs/design-decisions.md) for why that is
41
- deliberate and what an async future would cost). A
42
- different runtime (Bun, Deno, Workers)? Implement the `Platform` service
43
- interfaces. The contracts are the spec; the packages are the reference
44
- implementations.
39
+ deliberate and what an async future would cost). For a different runtime
40
+ (Bun, Deno, Workers), implement the `Platform` service interfaces. The
41
+ contracts are the spec; the packages are the reference implementations.
45
42
 
46
- **Implementation-independent.** No `node:crypto`, `node:net`, `Buffer`, or any
47
- runtime details leak into these types. They are portable TypeScript interfaces
48
- and plain data.
43
+ **Implementation-independent.** No `node:crypto`, `node:net`, `Buffer`, or
44
+ any runtime details leak into these types. They are portable TypeScript
45
+ interfaces and plain data.
46
+
47
+ ## Install
48
+
49
+ ```sh
50
+ npm install @browsercore/contracts
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ ### Importing types (compile-time only)
56
+
57
+ ```ts
58
+ import type { Net, DnsResolver, Transport, BrowserProfile } from "@browsercore/contracts";
59
+ ```
60
+
61
+ Type imports are erased at compile time, so they cost nothing at runtime.
62
+
63
+ ### Importing wire code tables (runtime)
64
+
65
+ ```ts
66
+ import { CIPHER_SUITE_CODES, NAMED_GROUP_CODES } from "@browsercore/contracts";
67
+
68
+ const aes128 = CIPHER_SUITE_CODES["TLS_AES_128_GCM_SHA256"]; // 0x1301
69
+ const x25519 = NAMED_GROUP_CODES["x25519"]; // 0x001d
70
+ ```
71
+
72
+ ### Implementing an alternative package
73
+
74
+ ```ts
75
+ import type { Transport, TransportState, CloseReason } from "@browsercore/contracts";
76
+
77
+ class MyCustomTransport implements Transport {
78
+ // Implement the interface and the rest of the stack works unchanged
79
+ }
80
+ ```
49
81
 
50
82
  ## Architecture
51
83
 
@@ -64,10 +96,10 @@ transport tls http1 http2 http3 quic fetch crypto compression
64
96
  ```
65
97
 
66
98
  Dependency direction is strictly upward; contracts is the root dependency.
67
- Protocol packages import no `node:*` builtins — runtime capabilities arrive
99
+ Protocol packages import no `node:*` builtins; runtime capabilities arrive
68
100
  through the injected `Platform`, which `browsersmith` (the composition root)
69
- builds and threads (network, crypto, compression, events, telemetry, time,
70
- trust) down through options.
101
+ builds and threads down through options (network, crypto, compression,
102
+ events, telemetry, time, trust).
71
103
 
72
104
  ## What's inside
73
105
 
@@ -76,13 +108,13 @@ trust) down through options.
76
108
  | **Contracts** | Canonical provider interfaces, the single definitions the implementing packages re-export | `CryptoProvider`, `CompressionProvider`, `Transport`, `DatagramTransport`, `UdpSocketFactory`, `CookieJar`, `PacketCallback` |
77
109
  | **Platform** | The composition root + per-service bundles, **every bundle optional** | `Platform`, `PlatformOptions`, `Network`, `Crypto`, `Compression`, `Trust` |
78
110
  | **Events** | Structural emitter interface (a method surface, **not** EventTarget-backed) injected via `Platform.events` | `EventProvider`, `TypedEventEmitter<T>` |
79
- | **Time** | THE canonical Clock (wall + monotonic + sleep + timers) and the Duration/Scheduler helpers | `Clock`, `TimerHandle`, `Time`, `Duration`, `Scheduler`, `Deadline` |
111
+ | **Time** | The canonical Clock (wall + monotonic + sleep + timers) and the Duration/Scheduler helpers | `Clock`, `TimerHandle`, `Time`, `Duration`, `Scheduler`, `Deadline` |
80
112
  | **TLS Engine** | The quic↔tls handshake seam; protocol packages never import each other | `TlsHandshakeEngine`, `TlsHandshakeContext`, `ClientHelloConfig`, `ServerHello`, `Certificate`, `CertificateSignatureAlgorithm`, `CipherSuite`, `NamedGroup`, `SignatureScheme`, `AeadAlgorithm`, `ProtocolVersion`, `KeyPair`, `TrafficSecrets`, `ApplicationTrafficSecrets`, `HandshakePhase`, `AlertLevel` |
81
- | **TLS Session** | The tls↔browsersmith resumption seam: one ticket record per NewSessionTicket and the string-keyed (SNI) ticket store browsersmith implements and tls consumes; sync by design, `get` never consumes — the caller pops via `delete` | `TlsSessionStore`, `TlsResumptionTicket` |
113
+ | **TLS Session** | The tls↔browsersmith resumption seam: one ticket record per NewSessionTicket and the string-keyed (SNI) ticket store browsersmith implements and tls consumes; sync by design, and `get` never consumes, so the caller pops via `delete` | `TlsSessionStore`, `TlsResumptionTicket` |
82
114
  | **Config** | Canonical configuration types | `ProxyConfig`, `ProxyScheme`, `ProxyTarget`, `ProxyCredentials`, `CookieJarConsumer` |
83
115
  | **Telemetry** | OTel-aligned observability | `Logger`, `Tracer`, `Span`, `Metrics`, `Telemetry` |
84
116
  | **Models** | Shared data structures that cross package boundaries | `BrowserProfile`, `TlsProfile`, `Http1Profile`, `Http2Profile`, `ProfileId`, `Request`, `Response`, `Headers`, `Cookie`, `TransportState`, `CloseReason`, `ContentEncoding` |
85
- | **Net** | Platform-agnostic TCP + DNS contracts for runtime portability (`DnsResolver.lookupAll?` — optional single dual-family lookup) | `Net`, `DnsResolver`, `Socket`, `ConnectOptions`, `IPAddress` |
117
+ | **Net** | Platform-agnostic TCP + DNS contracts for runtime portability (`DnsResolver.lookupAll?`, an optional single dual-family lookup) | `Net`, `DnsResolver`, `Socket`, `ConnectOptions`, `IPAddress` |
86
118
  | **IANA Tables** | Canonical TLS wire code lookup tables (single source of truth) | `CIPHER_SUITE_CODES`, `NAMED_GROUP_CODES`, `SIGNATURE_SCHEME_CODES`, `VERSION_CODES`, `CIPHER_GREASE_PLACEHOLDER` |
87
119
 
88
120
  This package defines no protocol connection contracts (`TlsConnection`,
@@ -90,8 +122,8 @@ This package defines no protocol connection contracts (`TlsConnection`,
90
122
  `QuicStream`, `FetchClient`) and no options layer (`TlsOptions` …
91
123
  `FetchClientOptions`): every consumer binds the implementation-local types
92
124
  exported by the protocol packages themselves. `Transport` and
93
- `CryptoProvider` here are the canonical single definitions that
94
- `@browsercore/transport` and `@browsercore/crypto` re-export.
125
+ `CryptoProvider` here are the canonical single definitions, re-exported by
126
+ `@browsercore/transport` and `@browsercore/crypto` respectively.
95
127
 
96
128
  ## Platform semantics
97
129
 
@@ -121,7 +153,7 @@ Mozilla store plus `NODE_EXTRA_CA_CERTS`). It is the runtime's own root
121
153
  program, not Chrome's root program; certificate verification policy lives
122
154
  in `@browsercore/tls`, which receives the anchors as plain bytes.
123
155
 
124
- **`Clock` is THE time contract.** `now()` (wall, epoch ms),
156
+ **`Clock` is the time contract.** `now()` (wall, epoch ms),
125
157
  `monotonic()` (monotonic ms; never `Date.now()` deltas for deadline math),
126
158
  `sleep(ms)`, `setTimeout(ms, fn)` / `clearTimeout(handle)` with
127
159
  `TimerHandle` an opaque `object` (not `NodeJS.Timeout`; runtime timer
@@ -137,16 +169,15 @@ composition root injects into quic.
137
169
 
138
170
  **`Certificate.signatureAlgorithm` is a discriminated union.** Parsing
139
171
  never throws on a structurally valid certificate:
140
- `CertificateSignatureAlgorithm` records the outcome —
172
+ `CertificateSignatureAlgorithm` records the outcome, either
141
173
  `{ kind: "supported", scheme }` when the OID maps to a scheme the
142
174
  engine can verify, or `{ kind: "rejected", reason: "sha1" | "md5" |
143
- "pss-parameters" | "unknown", oid }` naming the policy reason and the
144
- dotted-arc OID when policy declines it. Acceptance is the ENGINE's decision,
145
- not the parser's — matching Chrome, which parses SHA-1-signed roots but
175
+ "pss-parameters" | "unknown", oid }`, naming the policy reason and the
176
+ dotted-arc OID when policy declines it. Acceptance is the engine's decision,
177
+ not the parser's. This matches Chrome, which parses SHA-1-signed roots but
146
178
  refuses to rely on them. `Certificate.selfSigned` is true when the subject
147
179
  DN bytes equal the issuer DN bytes. Consumers switch on
148
- `peerCertificate.signatureAlgorithm.kind` —
149
- `"supported"` reads `.scheme`;
180
+ `peerCertificate.signatureAlgorithm.kind`: `"supported"` reads `.scheme`;
150
181
  `"rejected"` surfaces `.reason`/`.oid` instead of a thrown error:
151
182
 
152
183
  ```ts
@@ -174,35 +205,6 @@ why WebCrypto/CompressionStream are not valid backends, and what an async
174
205
  future would cost) lives in
175
206
  [docs/design-decisions.md](docs/design-decisions.md).
176
207
 
177
- ## Usage
178
-
179
- ### Importing types (compile-time only)
180
-
181
- ```ts
182
- import type { Net, DnsResolver, Transport, BrowserProfile } from "@browsercore/contracts";
183
- ```
184
-
185
- Type imports are erased at compile time, zero runtime cost.
186
-
187
- ### Importing wire code tables (runtime)
188
-
189
- ```ts
190
- import { CIPHER_SUITE_CODES, NAMED_GROUP_CODES } from "@browsercore/contracts";
191
-
192
- const aes128 = CIPHER_SUITE_CODES["TLS_AES_128_GCM_SHA256"]; // 0x1301
193
- const x25519 = NAMED_GROUP_CODES["x25519"]; // 0x001d
194
- ```
195
-
196
- ### Implementing an alternative package
197
-
198
- ```ts
199
- import type { Transport, TransportState, CloseReason } from "@browsercore/contracts";
200
-
201
- class MyCustomTransport implements Transport {
202
- // Implement the interface and the rest of the stack works unchanged
203
- }
204
- ```
205
-
206
208
  ## Design rules
207
209
 
208
210
  1. **If a type crosses a package boundary, it lives here.** Litmus test:
@@ -69,6 +69,35 @@ export interface CryptoProvider {
69
69
  * key schedule. Order verified against OpenSSL's X25519MLKEM768 peer.
70
70
  */
71
71
  x25519MLKEM768SharedSecret(x25519SecretKey: Uint8Array, x25519PeerPublicKey: Uint8Array, mlkemSecretKey: Uint8Array, mlkemCiphertext: Uint8Array): Uint8Array;
72
+ /**
73
+ * AES-CBC over raw block chaining: no padding of its own, because TLS 1.2
74
+ * pads the plaintext before it calls this (RFC 5246 §6.2.3.2). `key` is 16
75
+ * or 32 bytes and selects the AES variant, `iv` and the block count of
76
+ * `plaintext` are the caller's responsibility.
77
+ *
78
+ * Optional: only the TLS 1.2 CBC suites Chrome advertises as fallbacks
79
+ * need it (RFC 5246 §7.4.1.2). A provider without it keeps rejecting those
80
+ * suites, exactly as before these methods existed, so adding them breaks no
81
+ * implementation.
82
+ */
83
+ aesCbcEncrypt?(key: Uint8Array, iv: Uint8Array, plaintext: Uint8Array): Uint8Array;
84
+ /** The inverse of `aesCbcEncrypt`; `aesEcbEncrypt` cannot serve as one (it has no decryption). */
85
+ aesCbcDecrypt?(key: Uint8Array, iv: Uint8Array, ciphertext: Uint8Array): Uint8Array;
86
+ /**
87
+ * HMAC-SHA1, the MAC of the TLS 1.2 CBC suites named above (RFC 5246
88
+ * §6.2.3.1). A method of its own rather than a `HashId`: `HashId` selects
89
+ * the HKDF and PRF hash everywhere else, where SHA-1 is forbidden.
90
+ * Optional for the same reason as AES-CBC.
91
+ */
92
+ hmacSha1?(key: Uint8Array, data: Uint8Array): Uint8Array;
93
+ /**
94
+ * RSA PKCS#1 v1.5 public-key encryption (RFC 8017 §7.2). A TLS 1.2 client
95
+ * encrypts the 48-byte pre-master secret with the server's key for the
96
+ * static-RSA suites (RFC 5246 §7.4.7.1); `publicKey` is the DER
97
+ * SubjectPublicKeyInfo of the server certificate. Optional for the same
98
+ * reason as AES-CBC.
99
+ */
100
+ rsaEncryptPkcs1?(publicKey: Uint8Array, plaintext: Uint8Array): Uint8Array;
72
101
  }
73
102
  /**
74
103
  * `CompressionProvider` — the canonical injected compression surface.
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../src/contracts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACR,eAAe,EACf,MAAM,EACN,mBAAmB,EACnB,SAAS,EACT,WAAW,EACX,MAAM,EACN,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,eAAe,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,cAAc;IAC3B,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IACrC,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IACrC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IACpG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAClE,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IACzG,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1G,gBAAgB,CAAC,GAAG,EAAE,UAAU,E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AAK,IAAI,IAAI,CAAC;IACd,SAAS,IAAI,MAAM,CAAC;IACpB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAWD;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC;CACtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browsercore/contracts",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Shared interfaces and models for the browsercore stack",
5
5
  "repository": {
6
6
  "type": "git",