@mcp-abap-adt/connection 16.0.0 → 17.1.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 (41) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/README.md +74 -18
  3. package/dist/connection/AbstractAbapConnection.d.ts +67 -19
  4. package/dist/connection/AbstractAbapConnection.d.ts.map +1 -1
  5. package/dist/connection/AbstractAbapConnection.js +141 -32
  6. package/dist/connection/AdtCloudConnector.d.ts +6 -1
  7. package/dist/connection/AdtCloudConnector.d.ts.map +1 -1
  8. package/dist/connection/AdtCloudConnector.js +7 -2
  9. package/dist/connection/AdtOnPremConnector.d.ts +6 -1
  10. package/dist/connection/AdtOnPremConnector.d.ts.map +1 -1
  11. package/dist/connection/AdtOnPremConnector.js +7 -2
  12. package/dist/connection/CloudHttpTransport.d.ts.map +1 -1
  13. package/dist/connection/CloudHttpTransport.js +2 -3
  14. package/dist/connection/CredentialAbapConnection.d.ts +3 -1
  15. package/dist/connection/CredentialAbapConnection.d.ts.map +1 -1
  16. package/dist/connection/CredentialAbapConnection.js +4 -2
  17. package/dist/connection/GenericWebSocketTransport.d.ts.map +1 -1
  18. package/dist/connection/GenericWebSocketTransport.js +7 -4
  19. package/dist/connection/HttpTransport.d.ts +19 -0
  20. package/dist/connection/HttpTransport.d.ts.map +1 -1
  21. package/dist/connection/HttpTransport.js +115 -5
  22. package/dist/connection/IAdtTransport.d.ts +34 -3
  23. package/dist/connection/IAdtTransport.d.ts.map +1 -1
  24. package/dist/connection/RfcTransport.d.ts +7 -0
  25. package/dist/connection/RfcTransport.d.ts.map +1 -1
  26. package/dist/connection/RfcTransport.js +14 -3
  27. package/dist/connection/createConnection.d.ts +18 -0
  28. package/dist/connection/createConnection.d.ts.map +1 -1
  29. package/dist/connection/createConnection.js +8 -3
  30. package/dist/index.d.ts +0 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +1 -5
  33. package/docs/INDEX.md +2 -0
  34. package/docs/MIGRATION-17.0.md +119 -0
  35. package/docs/SCOPE.md +7 -2
  36. package/docs/STATEFUL_SESSION_GUIDE.md +12 -11
  37. package/docs/USAGE.md +119 -36
  38. package/package.json +1 -1
  39. package/dist/utils/timeouts.d.ts +0 -18
  40. package/dist/utils/timeouts.d.ts.map +0 -1
  41. package/dist/utils/timeouts.js +0 -37
package/CHANGELOG.md CHANGED
@@ -7,6 +7,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [17.1.0] - 2026-10-13
11
+
12
+ What this package answers for is listed in [docs/SCOPE.md](./docs/SCOPE.md).
13
+
14
+ ### Added
15
+ - **`disconnect()` without `connect()` on an instance built on a session.**
16
+ An instance built with `session` (`createConnection({ …, session })`, or the
17
+ connectors' sixth argument) may be disconnected without connecting:
18
+ `disconnect()` sends the ICF logoff (`/sap/public/bc/icf/logoff`, on cloud
19
+ too) with the handed cookies — no `sap-contextid`, no credential, no CSRF
20
+ fetch or any other request before it, the credential's `prepare()` never
21
+ called — resolves when the logoff is written, and spends the instance;
22
+ `flushGoodbye()` waits for SAP's answer. A session string naming no
23
+ `SAP_SESSIONID` sends nothing. Still once: a second `disconnect()` rejects,
24
+ and `connect()` after it is refused as on any spent instance. For logging
25
+ off a leftover session of a process that is gone. No new API; an instance
26
+ built without `session` behaves as in 17.0.0.
27
+
28
+ ## [17.0.0] - 2026-10-13
29
+
30
+ What this package answers for is listed in [docs/SCOPE.md](./docs/SCOPE.md).
31
+ See [docs/MIGRATION-17.0.md](./docs/MIGRATION-17.0.md).
32
+
33
+ ### Breaking
34
+ - **No deadline of the package's own.** A client deadline closes the socket,
35
+ and SAP then ends the synchronous request running on it — a write in it is
36
+ lost. So:
37
+ - `getTimeout`, `getTimeoutConfig` and `TimeoutConfig` are no longer
38
+ exported (`src/utils/timeouts.ts` is gone), and no `SAP_TIMEOUT_*`
39
+ variable is read;
40
+ - a request carries the caller's `timeout`, unchanged, and nothing else;
41
+ the CSRF fetch and the cloud preflight carry none (they were bounded by
42
+ `SAP_TIMEOUT_CSRF`);
43
+ - inside a critical section a request carries no deadline at all, not even
44
+ the caller's (it was raised to `SAP_TIMEOUT_CRITICAL`, 600 s); the
45
+ critical section itself is unchanged;
46
+ - `GenericWebSocketTransport.connect()` sets no timer unless the caller
47
+ passes `connectTimeoutMs` (the default was 15 s);
48
+ - `IAdtEstablishContext.timeoutMs` is removed.
49
+ - **`IAdtTransport` has two new required members**, `resume(context, session)`
50
+ and `sessionCookies()`. `HttpTransport` and its subclasses implement them;
51
+ `RfcTransport` refuses `resume` and answers `null`. A custom wire adds both.
52
+
53
+ ### Added
54
+ - **An instance on an existing session.** `createConnection({ …, session })`
55
+ (and a sixth constructor argument, `session`, on `AdtOnPremConnector` /
56
+ `AdtCloudConnector`) takes the cookies of a session that already exists.
57
+ `connect()` then does not log on: it makes one request in that session
58
+ without the credential — the CSRF fetch; on cloud with
59
+ `x-sap-security-session: use` — and SAP's answer says whether the session
60
+ is alive. Alive (a token, and the `SAP_SESSIONID` handed over, unchanged):
61
+ the session is the instance's, a stateful request reaches its
62
+ `sap-contextid`, and `disconnect()` logs it off as for any instance. Gone (a
63
+ `401`, or any answer that is not the session's): `connect()` rejects with
64
+ SAP's answer as it is, nothing is logged off, and the instance is spent.
65
+ HTTP wires only: over RFC `session` is refused at construction.
66
+ - **`sessionCookies()`**: the instance's session cookies as the string
67
+ `session` takes — the wire's jar without `sap-XSRF_*`; `null` before a
68
+ session, after it ended, and over RFC. Never logged.
69
+
10
70
  ## [16.0.0] - 2026-10-13
11
71
 
12
72
  What this package answers for is listed in [docs/SCOPE.md](./docs/SCOPE.md).
@@ -2588,7 +2648,9 @@ const connection = createAbapConnection(config, logger);
2588
2648
  - JWT token refresh now properly handles connection errors (401/403 during initial connect)
2589
2649
  - Permission errors (403 with "ExceptionResourceNoAccess") no longer trigger JWT refresh loops
2590
2650
  - Proper separation: base class handles HTTP/session, concrete classes handle auth-specific errors
2591
- [Unreleased]: https://github.com/fr0ster/mcp-abap-connection/compare/v16.0.0...HEAD
2651
+ [Unreleased]: https://github.com/fr0ster/mcp-abap-connection/compare/v17.1.0...HEAD
2652
+ [17.1.0]: https://github.com/fr0ster/mcp-abap-connection/compare/v17.0.0...v17.1.0
2653
+ [17.0.0]: https://github.com/fr0ster/mcp-abap-connection/compare/v16.0.0...v17.0.0
2592
2654
  [16.0.0]: https://github.com/fr0ster/mcp-abap-connection/compare/v15.1.0...v16.0.0
2593
2655
  [15.1.0]: https://github.com/fr0ster/mcp-abap-connection/compare/v15.0.1...v15.1.0
2594
2656
  [15.0.1]: https://github.com/fr0ster/mcp-abap-connection/compare/v15.0.0...v15.0.1
package/README.md CHANGED
@@ -25,7 +25,7 @@ ABAP connection layer for MCP ABAP ADT server. Provides a unified interface for
25
25
  - Reusable for debugger/traces and other event-driven flows
26
26
  - 📝 **Custom Logging**: Pluggable logger interface for integration with any logging system
27
27
  - 📦 **TypeScript**: Full TypeScript support with type definitions included
28
- - ⚡ **Timeout Management**: Configurable timeouts for different operation types
28
+ - ⏱️ **No built-in deadline**: a request carries the caller's own `timeout` and nothing else — inside a critical section, none at all
29
29
 
30
30
  ## Architecture
31
31
 
@@ -161,6 +161,7 @@ the packages above. See [Migration to 9.0.0](./docs/MIGRATION-9.0.md).
161
161
 
162
162
  - 📦 **[Installation Guide](./docs/INSTALLATION.md)** - Setup and installation instructions
163
163
  - 📚 **[Usage Guide](./docs/USAGE.md)** - Detailed usage examples and API documentation
164
+ - 🚚 **[Migration to 17.0.0](./docs/MIGRATION-17.0.md)** - no deadline of the package's own: `getTimeout`, `getTimeoutConfig` and `SAP_TIMEOUT_*` are gone, and a request inside a critical section carries none at all; an instance can be built on an existing session (`session`, `sessionCookies()`)
164
165
  - 🚚 **[Migration to 16.0.0](./docs/MIGRATION-16.0.md)** - the per-request `signal` (15.1.0) and `ADT_REQUEST_ABORTED` are removed; `disconnect()` resolves once the logoff is written, not answered — a process about to exit awaits it; `flushGoodbye()` when the answer matters
165
166
  - 🚚 **[Migration to 15.0.0](./docs/MIGRATION-15.0.md)** - on `@mcp-abap-adt/interfaces-adt-connection` 2: `makeAdtRequest`'s answer is `unknown` unless its type is named; nothing changes at run time
166
167
  - 🚚 **[Migration to 14.0.0](./docs/MIGRATION-14.0.md)** - the `sap-abap-auth` CLI is removed, with its `open` and `commander` dependencies; use `@mcp-abap-adt/auth-broker-cli`; the library's API is unchanged
@@ -181,7 +182,7 @@ the packages above. See [Migration to 9.0.0](./docs/MIGRATION-9.0.md).
181
182
  - 💾 **Session Management**: Session headers management (cookies, CSRF tokens) for HTTP communication
182
183
  - 📝 **Custom Logging**: Pluggable logger interface for integration with any logging system (optional)
183
184
  - 📦 **TypeScript**: Full TypeScript support with type definitions included
184
- - ⚡ **Timeout Management**: Configurable timeouts for different operation types
185
+ - ⏱️ **No built-in deadline**: a request carries the caller's own `timeout` and nothing else — inside a critical section, none at all
185
186
  - 🌐 **Network Error Detection**: Automatic detection and proper handling of network-level errors (connection refused, timeout, DNS failures)
186
187
 
187
188
  ## Installation
@@ -225,7 +226,7 @@ For detailed installation instructions, see [Installation Guide](./docs/INSTALLA
225
226
  ### The recommended way: `createConnection`
226
227
 
227
228
  ```typescript
228
- import { createConnection, getTimeout } from "@mcp-abap-adt/connection";
229
+ import { createConnection } from "@mcp-abap-adt/connection";
229
230
  import type { SapConfig } from "@mcp-abap-adt/connection";
230
231
  import { BasicAuthProvider } from "@mcp-abap-adt/auth-providers";
231
232
 
@@ -254,7 +255,7 @@ try {
254
255
  await connection.makeAdtRequest({
255
256
  method: "GET",
256
257
  url: "/sap/bc/adt/discovery",
257
- timeout: getTimeout("default"),
258
+ timeout: 0,
258
259
  });
259
260
  } finally {
260
261
  await connection.disconnect(); // resolves once the logoff is written
@@ -270,6 +271,63 @@ what the wire logs about itself, `logger` and `sessionId` for the connection.
270
271
  The constructors below remain available; the factory only names the four
271
272
  combinations that exist.
272
273
 
274
+ **No deadline but yours.** A request carries the `timeout` you pass and
275
+ nothing else: no wire sets one of its own, because a client deadline closes
276
+ the socket and SAP then ends the request running on it — a write in it lost.
277
+ `IAbapRequestOptions` still requires the field; `0` is none over HTTP. Inside
278
+ a critical section (`beginCriticalSection()`) a request carries none at all,
279
+ not even yours.
280
+
281
+ ### An instance on an existing session
282
+
283
+ An instance may be built on a session that already exists, instead of logging
284
+ on: `session` takes the cookies an earlier instance's `sessionCookies()`
285
+ returned. `connect()` then sends no logon. It makes one request in that
286
+ session **without the credential** — so a session that is gone cannot quietly
287
+ become a new one — and SAP's answer says whether the session is alive: if it
288
+ is, the instance is on it (a stateful request reaches the same ABAP context,
289
+ and `disconnect()` logs it off); if not, `connect()` rejects with SAP's answer
290
+ as it is (a `401`), nothing is logged off, and the instance is spent. HTTP
291
+ wires only; over RFC `session` is refused at construction.
292
+
293
+ ```typescript
294
+ import { createConnection } from "@mcp-abap-adt/connection";
295
+ import type { SapConfig } from "@mcp-abap-adt/connection";
296
+ import { BasicAuthProvider } from "@mcp-abap-adt/auth-providers";
297
+
298
+ const system: SapConfig = {
299
+ url: "https://your-sap-system.com",
300
+ client: "100",
301
+ authType: "basic",
302
+ username: "your-username",
303
+ password: "your-password",
304
+ };
305
+ const credential = new BasicAuthProvider(system.username!, system.password!);
306
+
307
+ const first = createConnection({ system: "onprem", transport: "http", config: system, credential });
308
+ await first.connect();
309
+ // The session's cookies, for you to keep — they act as the user while the
310
+ // session lives, so keep them as a secret. null before a session, and over RFC.
311
+ const kept = first.sessionCookies();
312
+
313
+ // Later — another process, say: the same SAP session, no new logon.
314
+ if (kept !== null) {
315
+ const resumed = createConnection({
316
+ system: "onprem",
317
+ transport: "http",
318
+ config: system,
319
+ credential,
320
+ session: kept,
321
+ });
322
+ await resumed.connect(); // rejects with SAP's 401 when the session is gone
323
+ try {
324
+ await resumed.makeAdtRequest({ method: "GET", url: "/sap/bc/adt/discovery", timeout: 0 });
325
+ } finally {
326
+ await resumed.disconnect(); // logs the session off, as for any instance
327
+ }
328
+ }
329
+ ```
330
+
273
331
  ### Basic Usage (On-Premise), with the constructors
274
332
 
275
333
  ```typescript
@@ -277,7 +335,6 @@ import {
277
335
  AdtOnPremConnector,
278
336
  OnPremHttpTransport,
279
337
  SapConfig,
280
- getTimeout,
281
338
  } from "@mcp-abap-adt/connection";
282
339
  import { BasicAuthProvider } from "@mcp-abap-adt/auth-providers";
283
340
 
@@ -314,7 +371,7 @@ await connection.connect(); // required before any request
314
371
  const response = await connection.makeAdtRequest({
315
372
  method: "GET",
316
373
  url: "/sap/bc/adt/programs/programs/your-program",
317
- timeout: getTimeout("default"),
374
+ timeout: 0,
318
375
  });
319
376
  ```
320
377
 
@@ -337,7 +394,6 @@ import {
337
394
  AdtCloudConnector,
338
395
  CloudHttpTransport,
339
396
  SapConfig,
340
- getTimeout,
341
397
  } from "@mcp-abap-adt/connection";
342
398
  import { TokenAuthProvider } from "@mcp-abap-adt/auth-providers";
343
399
 
@@ -375,7 +431,7 @@ await connection.connect();
375
431
  const response = await connection.makeAdtRequest({
376
432
  method: "GET",
377
433
  url: "/sap/bc/adt/programs/programs/your-program",
378
- timeout: getTimeout("default"),
434
+ timeout: 0,
379
435
  });
380
436
  ```
381
437
 
@@ -433,7 +489,6 @@ import {
433
489
  AdtOnPremConnector,
434
490
  OnPremHttpTransport,
435
491
  SapConfig,
436
- getTimeout,
437
492
  } from "@mcp-abap-adt/connection";
438
493
  import { SamlAuthProvider } from "@mcp-abap-adt/auth-providers";
439
494
 
@@ -458,7 +513,7 @@ await connection.connect();
458
513
  const response = await connection.makeAdtRequest({
459
514
  method: "GET",
460
515
  url: "/sap/bc/adt/programs/programs/your-program",
461
- timeout: getTimeout("default"),
516
+ timeout: 0,
462
517
  });
463
518
  ```
464
519
 
@@ -475,7 +530,6 @@ import {
475
530
  AdtCloudConnector,
476
531
  CloudHttpTransport,
477
532
  SapConfig,
478
- getTimeout,
479
533
  } from "@mcp-abap-adt/connection";
480
534
  import { TokenAuthProvider } from "@mcp-abap-adt/auth-providers";
481
535
  import type { ITokenRefresher } from "@mcp-abap-adt/interfaces-auth";
@@ -518,7 +572,7 @@ await connection.connect();
518
572
  const response = await connection.makeAdtRequest({
519
573
  method: "GET",
520
574
  url: "/sap/bc/adt/programs/programs/your-program",
521
- timeout: getTimeout("default"),
575
+ timeout: 0,
522
576
  });
523
577
  ```
524
578
 
@@ -596,7 +650,6 @@ cookies and the CSRF token remain available in both modes. See the
596
650
  import {
597
651
  AdtOnPremConnector,
598
652
  OnPremHttpTransport,
599
- getTimeout,
600
653
  } from "@mcp-abap-adt/connection";
601
654
  import { BasicAuthProvider } from "@mcp-abap-adt/auth-providers";
602
655
 
@@ -724,8 +777,8 @@ contract type re-exported under a second name is a contract type that can drift.
724
777
  **The connection does not track locks.** Deciding when to disconnect, and
725
778
  preparing for it, belongs to the caller; pairing every LOCK with its UNLOCK
726
779
  belongs to `@mcp-abap-adt/adt-clients`, which holds the handles. What this layer
727
- owns is not being interrupted by a timeout mid-operation — see
728
- `beginCriticalSection()` below.
780
+ owns is not being interrupted by a deadline mid-operation: inside
781
+ `beginCriticalSection()` a request carries none, not even the caller's.
729
782
 
730
783
  See [docs/USAGE.md — Session Lifecycle](./docs/USAGE.md#session-lifecycle).
731
784
 
@@ -733,6 +786,7 @@ See [docs/USAGE.md — Session Lifecycle](./docs/USAGE.md#session-lifecycle).
733
786
  - `setSessionType(type)`: Programmatically switch between stateful and stateless modes *(on the contract)*
734
787
  - `getSessionId()`: Returns the client-side conversation id, an auto-generated UUID *(on the contract)*
735
788
  - `getSessionMode()`: Returns current session mode *(HTTP classes only)*
789
+ - `sessionCookies()`: The cookies of the instance's SAP session, as `createConnection({ …, session })` takes them — `null` before a session, after it ended, and over RFC. They act as the user while the session lives: keep them as a secret; the package never logs them *(this package's connectors)*
736
790
 
737
791
  #### `ILogger`
738
792
 
@@ -754,10 +808,12 @@ interface ILogger {
754
808
  Builds a NEW connection from what the caller states: `system` (`'cloud'` or
755
809
  `'onprem'`) and `transport` (`'http'`, `'legacy-http'` or `'rfc'`), plus
756
810
  `config`, `credential` and, optionally, `logger`, `wireLogger`, `sessionId`,
757
- `agentOptions` (HTTP) or `rfc` (`IRfcTransportOptions`). Nothing is inferred,
811
+ `agentOptions` and `session` (HTTP) or `rfc` (`IRfcTransportOptions`). Nothing is inferred,
758
812
  not even from `config.connectionType`. A combination that does not exist is
759
- refused with a `TypeError`. One instance is one SAP session: call it again
760
- for a new one.
813
+ refused with a `TypeError`, and so is `session` over RFC. One instance is one
814
+ SAP session: call it again for a new one — or pass `session` (the string an
815
+ instance's `sessionCookies()` returned) to build it on an existing session,
816
+ which `connect()` then takes over instead of logging on.
761
817
 
762
818
  #### `rfcConversationFrom(config)`
763
819
 
@@ -48,14 +48,11 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
48
48
  private profilingRequest;
49
49
  /**
50
50
  * When true, requests are treated as part of an uninterruptible critical
51
- * section (e.g. a lock → modify → unlock chain). In this state a short
52
- * per-request timeout must NOT abort the request mid-flight: the abort ends
53
- * nothing server-side — only the server ends an ABAP session, on an idle
54
- * timeout this side cannot see — it ends what this side KNOWS. Whether the
55
- * change was applied becomes unknowable, and the handle `unlock` needs is
56
- * lost while the lock lives on in that session. While set, makeAdtRequest
57
- * raises the effective timeout to CRITICAL_SECTION_TIMEOUT (a large ceiling)
58
- * so the request runs to completion instead of being interrupted.
51
+ * section (e.g. a lock → modify → unlock chain). In this state a request
52
+ * carries no deadline at all, not even the caller's: a client deadline closes
53
+ * the socket, SAP then ends the request running on it — a write in it lost —
54
+ * and what this side knew goes with it: whether the change was applied, and
55
+ * the handle `unlock` needs, while the lock lives on in that session.
59
56
  */
60
57
  /**
61
58
  * The last goodbye this connection dispatched, so a caller can wait for it.
@@ -93,6 +90,12 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
93
90
  * `disconnect()` waits for (the writes) and `flushGoodbye()` (the answers).
94
91
  */
95
92
  private ended;
93
+ /**
94
+ * The existing session this instance takes over at `connect()`, instead of
95
+ * logging on: its cookies, as `sessionCookies()` handed them out. Dropped
96
+ * once the takeover is attempted — a session is taken over once.
97
+ */
98
+ private resumeFrom;
96
99
  private inCriticalSection;
97
100
  /** Reference count for nested beginCriticalSection()/endCriticalSection() pairs. */
98
101
  private criticalSectionDepth;
@@ -150,7 +153,13 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
150
153
  * arrives built. The credential's TLS material is not among them: the
151
154
  * provider offers it to the wire at logon.
152
155
  */
153
- transport: IAdtTransport, logger: ILogger | null, sessionId?: string);
156
+ transport: IAdtTransport, logger: ILogger | null, sessionId?: string,
157
+ /**
158
+ * An existing session to take over instead of logging on: the cookies
159
+ * `sessionCookies()` handed out for it. `connect()` then sends no logon
160
+ * and asks SAP, without the credential, whether that session is alive.
161
+ */
162
+ session?: string);
154
163
  /**
155
164
  * Set session type (stateful or stateless)
156
165
  * Marks the requests that follow as `stateful` for the transport, which says
@@ -181,22 +190,21 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
181
190
  * Enter an uninterruptible critical section.
182
191
  *
183
192
  * Call this BEFORE acquiring a lock (and pair it with endCriticalSection()
184
- * in a finally, AFTER unlocking). While in a critical section, a short
185
- * per-request timeout is not applied — makeAdtRequest uses a large ceiling
186
- * (CRITICAL_SECTION_TIMEOUT, env SAP_TIMEOUT_CRITICAL) instead — so a slow
187
- * PUT/activate/unlock is not aborted mid-flight. An abort does not end the
188
- * ABAP session — that session is the server's, and only the server ends it,
189
- * on an idle timeout this side cannot influence — it strands the caller:
190
- * the outcome is unknown and the handle `unlock` needs is gone, while the
191
- * lock survives inside the ABAP session that owns it.
193
+ * in a finally, AFTER unlocking). While in a critical section a request
194
+ * carries no deadline — the caller's `timeout` is not applied — so a slow
195
+ * PUT/activate/unlock is not cut mid-flight. A client deadline closes the
196
+ * socket, and SAP then ends the request that was running on it (a write in
197
+ * it lost); and it strands the caller: the outcome is unknown and the handle
198
+ * `unlock` needs is gone, while the lock survives inside the ABAP session
199
+ * that owns it.
192
200
  *
193
201
  * Nesting is reference-counted so nested begin/end pairs are safe.
194
202
  */
195
203
  beginCriticalSection(): void;
196
204
  /**
197
205
  * Leave the uninterruptible critical section. See beginCriticalSection().
198
- * Safe to call more times than begin (clamped at 0). Normal per-request
199
- * timeouts resume once the outermost section ends.
206
+ * Safe to call more times than begin (clamped at 0). The caller's own
207
+ * per-request timeouts apply again once the outermost section ends.
200
208
  */
201
209
  endCriticalSection(): void;
202
210
  /**
@@ -276,6 +284,12 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
276
284
  * `connect()` rejects, so a caller's `disconnect()` in its `finally` is the
277
285
  * first of that life and has nothing of it to wait for.
278
286
  *
287
+ * **On an instance built on an existing session, without `connect()`**, this
288
+ * logs that session off: the handed cookies go to the wire, and the logoff
289
+ * is sent with them as for any instance — no request before it, no
290
+ * credential, the provider's `prepare()` never called. A string naming no
291
+ * `SAP_SESSIONID` sends nothing. The instance is spent either way.
292
+ *
279
293
  * **Requests already in flight are not waited for, and the logoff ends the
280
294
  * session they are running on** — so they will start failing against a
281
295
  * session that no longer exists. That is the caller having asked to
@@ -292,6 +306,16 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
292
306
  * answer.
293
307
  */
294
308
  disconnect(): Promise<void>;
309
+ /**
310
+ * Puts the cookies of a handed session into the wire, as `resume()` seeds
311
+ * its jar, and sends nothing: what the wire held goes first, and the
312
+ * session's cookies arrive as a `Set-Cookie` the wire folds in through its
313
+ * own `ingest()`. A wire whose session no cookie names (RFC) keeps nothing
314
+ * of it, and its close then has nothing to end. Never throws — it is
315
+ * reached from `disconnect()`: a custom wire that throws here is logged in
316
+ * fixed words (the cookies are never echoed) and its close decides alone.
317
+ */
318
+ private seedHandedSession;
295
319
  /**
296
320
  * Wait for SAP's answer to the last dispatched goodbye.
297
321
  *
@@ -388,6 +412,20 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
388
412
  * than written twice — the two would drift apart, as they did once before.
389
413
  */
390
414
  private establishAndCommit;
415
+ /**
416
+ * Takes over the session `resumeFrom` names, and publishes it — the
417
+ * counterpart of `establishAndCommit` for an instance built on an existing
418
+ * session.
419
+ *
420
+ * No logon: the wire makes one request in that session without the
421
+ * credential (`IAdtTransport.resume`). Alive, the session is this
422
+ * instance's — its `SAP_SESSIONID`, and its `sap-contextid` when the caller
423
+ * kept one — and `disconnect()` logs it off as for any instance. Gone, or
424
+ * any answer that is not the session's: `connect()` rejects with SAP's
425
+ * answer as it is, nothing is logged off — nothing was opened — and the
426
+ * instance is spent.
427
+ */
428
+ private resumeAndCommit;
391
429
  /** The teardown epoch, for a recovery to capture before it starts. */
392
430
  protected get teardownEpoch(): number;
393
431
  /**
@@ -478,6 +516,16 @@ declare abstract class AbstractAbapConnection implements AbapConnection, ISessio
478
516
  * overwritten on every response.
479
517
  */
480
518
  protected sessionFingerprint(): Map<string, string>;
519
+ /**
520
+ * The cookies of this instance's SAP session, for the caller to keep: the
521
+ * string `createConnection({ …, session })` takes to build a later instance
522
+ * on the same session. `null` before a session, after it ended, and over
523
+ * RFC, whose session is a conversation no cookie names.
524
+ *
525
+ * It authenticates as the session's user for as long as the session lives:
526
+ * keep it as a secret. Nothing here logs it.
527
+ */
528
+ sessionCookies(): string | null;
481
529
  getBaseUrl(): Promise<string>;
482
530
  getAuthHeaders(): Promise<Record<string, string>>;
483
531
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/AbstractAbapConnection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cA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;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,aAAa;IAiCrB;;;;OAIG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAIlD;;;;;;;;OAQG;IACH,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,eAAe;CA6BxB;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"AbstractAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/AbstractAbapConnection.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,KAAK,YAAY,EACjB,gBAAgB,EAEjB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,KAAK,aAAa,EAInB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAGnB,MAAM,oBAAoB,CAAC;AAwD5B,uBAAe,sBACb,YACE,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB;IAmIjB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,aAAa;IACjC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IA9I3C;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,SAAS,mBAA0B;IAEtD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO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