@mcp-abap-adt/interfaces-adt 9.0.0 → 11.0.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 (61) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +97 -10
  3. package/dist/adt/IAdtAbapGit.d.ts +56 -13
  4. package/dist/adt/IAdtAbapGit.d.ts.map +1 -1
  5. package/dist/adt/IAdtCapabilities.d.ts +20 -7
  6. package/dist/adt/IAdtCapabilities.d.ts.map +1 -1
  7. package/dist/adt/IAdtFeatureToggle.d.ts +48 -7
  8. package/dist/adt/IAdtFeatureToggle.d.ts.map +1 -1
  9. package/dist/adt/IAdtObject.d.ts +21 -4
  10. package/dist/adt/IAdtObject.d.ts.map +1 -1
  11. package/dist/adt/IAdtResponse.d.ts +1 -1
  12. package/dist/adt/IAdtResponse.d.ts.map +1 -1
  13. package/dist/adt/IAdtTransport.d.ts +35 -9
  14. package/dist/adt/IAdtTransport.d.ts.map +1 -1
  15. package/dist/adt/IAdtUnitTest.d.ts +14 -4
  16. package/dist/adt/IAdtUnitTest.d.ts.map +1 -1
  17. package/dist/adt/IAdtUtilities.d.ts +84 -21
  18. package/dist/adt/IAdtUtilities.d.ts.map +1 -1
  19. package/dist/execution/IAdtRunnable.d.ts +23 -10
  20. package/dist/execution/IAdtRunnable.d.ts.map +1 -1
  21. package/dist/execution/IAdtRunnable.js +15 -0
  22. package/dist/execution/ITraceScheduling.d.ts +22 -6
  23. package/dist/execution/ITraceScheduling.d.ts.map +1 -1
  24. package/dist/feeds/IFeedRepository.d.ts +26 -7
  25. package/dist/feeds/IFeedRepository.d.ts.map +1 -1
  26. package/dist/index.d.ts +7 -10
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/runtime/IApplicationLog.d.ts +14 -4
  30. package/dist/runtime/IApplicationLog.d.ts.map +1 -1
  31. package/dist/runtime/IAtcLog.d.ts +10 -3
  32. package/dist/runtime/IAtcLog.d.ts.map +1 -1
  33. package/dist/runtime/IAtcRun.d.ts +10 -3
  34. package/dist/runtime/IAtcRun.d.ts.map +1 -1
  35. package/dist/runtime/ICrossTrace.d.ts +22 -6
  36. package/dist/runtime/ICrossTrace.d.ts.map +1 -1
  37. package/dist/runtime/IDdicActivation.d.ts +6 -2
  38. package/dist/runtime/IDdicActivation.d.ts.map +1 -1
  39. package/dist/runtime/IGatewayErrorLog.d.ts +10 -3
  40. package/dist/runtime/IGatewayErrorLog.d.ts.map +1 -1
  41. package/dist/runtime/IRuntimeDumps.d.ts +14 -4
  42. package/dist/runtime/IRuntimeDumps.d.ts.map +1 -1
  43. package/dist/runtime/ISt05Trace.d.ts +10 -3
  44. package/dist/runtime/ISt05Trace.d.ts.map +1 -1
  45. package/dist/runtime/ISystemMessages.d.ts +10 -3
  46. package/dist/runtime/ISystemMessages.d.ts.map +1 -1
  47. package/dist/runtime/ITrace.d.ts +41 -14
  48. package/dist/runtime/ITrace.d.ts.map +1 -1
  49. package/package.json +3 -3
  50. package/dist/connection/IAbapConnection.d.ts +0 -65
  51. package/dist/connection/IAbapConnection.d.ts.map +0 -1
  52. package/dist/connection/IAbapConnection.js +0 -2
  53. package/dist/connection/IAbapRequestOptions.d.ts +0 -9
  54. package/dist/connection/IAbapRequestOptions.d.ts.map +0 -1
  55. package/dist/connection/IAbapRequestOptions.js +0 -2
  56. package/dist/connection/IConnectionCapabilities.d.ts +0 -217
  57. package/dist/connection/IConnectionCapabilities.d.ts.map +0 -1
  58. package/dist/connection/IConnectionCapabilities.js +0 -29
  59. package/dist/connection/ITimeoutConfig.d.ts +0 -15
  60. package/dist/connection/ITimeoutConfig.d.ts.map +0 -1
  61. package/dist/connection/ITimeoutConfig.js +0 -2
@@ -1,65 +0,0 @@
1
- /**
2
- * Minimal response type for ADT requests.
3
- */
4
- import type { IHttpHeaderValue, IHttpWireResponse } from '@mcp-abap-adt/interfaces-network';
5
- import type { IAbapRequestOptions } from './IAbapRequestOptions';
6
- export type IAdtHeaderValue = IHttpHeaderValue;
7
- export interface IAdtWireResponse<T = any, D = any> extends Omit<IHttpWireResponse<T, D>, 'headers'> {
8
- /**
9
- * **The generic shape, narrowed by the headers ADT actually sends.** The
10
- * frame itself — `data`, `status`, `statusText`, `config`, `request` — is
11
- * `IHttpWireResponse` in `@mcp-abap-adt/interfaces-network`, because nothing
12
- * about it is ABAP. What stays here is this list: `sap-adt-location` and the
13
- * two spellings of `content-location` are where ADT puts the URI of what it
14
- * just created, and a caller reads them by name.
15
- */
16
- headers: Record<string, IAdtHeaderValue> & {
17
- location?: string;
18
- Location?: string;
19
- 'content-location'?: IAdtHeaderValue;
20
- 'Content-Location'?: IAdtHeaderValue;
21
- 'sap-adt-location'?: IAdtHeaderValue;
22
- };
23
- }
24
- /**
25
- * ABAP Connection interface
26
- *
27
- * Minimal interface for consumers to interact with SAP ADT.
28
- * Implementation details (auth, token refresh, CSRF, cookies) are encapsulated.
29
- *
30
- * For JWT connections, token refresh is handled internally via ITokenRefresher.
31
- * For Basic connections, no token refresh is needed.
32
- */
33
- export interface IAbapConnection {
34
- /**
35
- * Initialize connection: fetch CSRF token and establish session cookies.
36
- * Must be called before making any ADT requests.
37
- */
38
- connect(): Promise<void>;
39
- /**
40
- * Get base URL of SAP system
41
- */
42
- getBaseUrl(): Promise<string>;
43
- /**
44
- * Get current session ID (for stateful connections)
45
- */
46
- getSessionId(): string | null;
47
- /**
48
- * Set session type for subsequent requests
49
- * @param type - "stateful" for persistent session, "stateless" for independent requests
50
- */
51
- setSessionType(type: 'stateful' | 'stateless'): void;
52
- /**
53
- * Make ADT request to SAP system
54
- *
55
- * Handles all auth concerns internally:
56
- * - Adds authorization header (Basic or Bearer)
57
- * - Manages CSRF token
58
- * - Retries on 401/403 with token refresh (JWT only)
59
- *
60
- * @param options - Request options (url, method, data, etc.)
61
- * @returns Promise with Axios response
62
- */
63
- makeAdtRequest<T = any, D = any>(options: IAbapRequestOptions): Promise<IAdtWireResponse<T, D>>;
64
- }
65
- //# sourceMappingURL=IAbapConnection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAbapConnection.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapConnection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAE/C,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,CAChD,SAAQ,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC;IAChD;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG;QACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,kBAAkB,CAAC,EAAE,eAAe,CAAC;QACrC,kBAAkB,CAAC,EAAE,eAAe,CAAC;QACrC,kBAAkB,CAAC,EAAE,eAAe,CAAC;KACtC,CAAC;CACH;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,YAAY,IAAI,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,CAAC;IAErD;;;;;;;;;;OAUG;IACH,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAC7B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACpC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- export interface IAbapRequestOptions {
2
- url: string;
3
- method: string;
4
- timeout: number;
5
- data?: unknown;
6
- params?: unknown;
7
- headers?: Record<string, string>;
8
- }
9
- //# sourceMappingURL=IAbapRequestOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAbapRequestOptions.d.ts","sourceRoot":"","sources":["../../src/connection/IAbapRequestOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,217 +0,0 @@
1
- /**
2
- * Capability atoms for the connection.
3
- *
4
- * The same shape as the ADT capability atoms, for the same reason:
5
- * `IAbapConnection` is the minimum every transport can honour, and this is a
6
- * thing only some can. An RFC connection, a batch recorder and a test stub are
7
- * all legitimate `IAbapConnection`s that own no HTTP session; making these
8
- * methods mandatory would force each of them to implement a lie.
9
- *
10
- * ADDITIVE to `IAbapConnection`, which is unchanged — an implementation adds the
11
- * atom when it genuinely supports it, and a consumer narrows to it.
12
- */
13
- /** Error codes a session-aware connection raises. Match on these, not on messages. */
14
- export declare const ADT_SESSION_ERROR: {
15
- /** No usable session: never connected, or torn down since. */
16
- readonly NOT_CONNECTED: "ADT_NOT_CONNECTED";
17
- /**
18
- * The server put us on a DIFFERENT session than the one we were using.
19
- *
20
- * Anything locked over the old session is orphaned: the lock handle refers to
21
- * a session that no longer exists, so it can be neither used nor released.
22
- */
23
- readonly SESSION_REPLACED: "ADT_SESSION_REPLACED";
24
- /** A transport release is still pending; the session cannot yet be reused. */
25
- readonly RELEASE_PENDING: "ADT_RELEASE_PENDING";
26
- };
27
- export type AdtSessionErrorCode = (typeof ADT_SESSION_ERROR)[keyof typeof ADT_SESSION_ERROR];
28
- /**
29
- * A connection whose session is owned, observable and explicitly torn down.
30
- *
31
- * Without this, "is my session still the one I locked over?" is unanswerable
32
- * from the consumer's side: a connection can be handed a new server session
33
- * silently, and a caller holding a lock has no way to notice.
34
- */
35
- export interface ISessionLifecycleAware {
36
- /**
37
- * Tells the server this session is finished.
38
- *
39
- * **It notifies; it does not confirm.** Whether and when the session is
40
- * actually freed is the server's affair, and nothing here checks afterwards.
41
- * That is why there is no deadline to pass: waiting for the answer to a
42
- * message whose answer is not acted on buys the caller nothing, and a
43
- * goodbye carries no request timeout by design — so waiting is the one thing
44
- * that could make a teardown unbounded.
45
- *
46
- * Resolves rather than throws, and **always settles**: whatever it could not
47
- * finish is the connection's own state, not the caller's problem. A repeat
48
- * call performs whatever is still owed.
49
- *
50
- * **Calling it again does not wait for the goodbye either**, which is what
51
- * {@link flushGoodbye} is for. A caller about to reconnect wants both, in
52
- * this order:
53
- *
54
- * ```typescript
55
- * await conn.disconnect();
56
- * await conn.flushGoodbye();
57
- * await conn.connect();
58
- * ```
59
- *
60
- * Without the middle line the next session opens while the previous one's
61
- * goodbye is still being assembled, and the server keeps both. With it, the
62
- * goodbye is given up to the budget to finish first.
63
- *
64
- * In-flight requests are NOT waited for. They continue as their caller
65
- * arranged and nothing is aborted; their results can no longer affect this
66
- * connection.
67
- */
68
- disconnect(): Promise<void>;
69
- /**
70
- * Wait for the goodbye {@link disconnect} sent, within a budget.
71
- *
72
- * `disconnect()` dispatches the logoff and does not await it, deliberately: a
73
- * goodbye carries no request timeout, and a server that never answers must
74
- * not hold a teardown open. That is right for teardown and wrong for the one
75
- * caller who reconnects — `disconnect()` then `connect()` opens the next
76
- * session while the previous one's goodbye is still being assembled, and the
77
- * server keeps both.
78
- *
79
- * Measured on E19 through `@mcp-abap-adt/adt-clients`, whose harness recycled
80
- * the session after each test: a new ABAP session every one to two seconds
81
- * for the length of a run, none released, each living to its own thirty
82
- * minute idle timeout. Turning the recycling off left one session for the
83
- * whole run, which is what the harness intended all along.
84
- *
85
- * **Bounded, and it resolves rather than throws.** The reason not to await
86
- * inside `disconnect()` applies here too, so the wait has a budget and gives
87
- * up quietly: "the goodbye has not arrived yet" is not a failure of whatever
88
- * the caller does next. A goodbye that failed is likewise not the caller's
89
- * problem — it is absorbed, not rethrown.
90
- *
91
- * **So a return is not a confirmation, and not even of dispatch.** Waiting out
92
- * the budget resolves the same way as the goodbye finishing, and at that
93
- * point the request may not have reached the wire at all — the promise it
94
- * waits on covers assembling and sending, not just answering.
95
- *
96
- * The guarantee is exactly this: **the caller gives the goodbye up to the
97
- * budget to finish before carrying on.** If it finishes in time there is no
98
- * overlap with the next `connect()`. If it does not, the caller proceeds and
99
- * the goodbye stays outstanding for as long as it takes — the budget bounds
100
- * the waiting, not the overlap. Whether the server then releases the session
101
- * is the server's affair, exactly as it is for `disconnect()`.
102
- *
103
- * Returns immediately when nothing was dispatched.
104
- *
105
- * @param timeoutMs how long to wait; an implementation chooses its default.
106
- */
107
- flushGoodbye(timeoutMs?: number): Promise<void>;
108
- /** Whether a caller may start work. False throughout a pending teardown. */
109
- isConnected(): boolean;
110
- /**
111
- * Which server session the connection is on — or `null`, which says nothing
112
- * about whether the connection is usable. **Use {@link isConnected} for that.**
113
- *
114
- * `null` means only that no identity is known, and there are two ways to get
115
- * there: no session exists, or the connection is live over a server that
116
- * issued no session cookie — some do not. So a live, working connection can
117
- * return `null` here, and a consumer that reads `null` as "session lost"
118
- * would tear down a connection that was fine.
119
- *
120
- * What it does identify is the SESSION, not the conversation: a stable
121
- * client-side conversation id says nothing about whether the server replaced
122
- * the session underneath it, which is precisely the failure this exists to
123
- * expose. Compare two readings across an operation to detect a replacement.
124
- *
125
- * Only a CHANGED value is a replacement. `null` → non-null is an identity
126
- * being learned, not a new session: the LOCK response is often the first to
127
- * carry a session cookie, and reading that as a replacement would condemn the
128
- * operation it just covered.
129
- */
130
- getSessionIdentity(): string | null;
131
- }
132
- /**
133
- * A connection whose responses resolve only after a later flush.
134
- *
135
- * A batch recorder collects requests and settles their promises when the batch
136
- * executes. Awaiting one of those promises mid-recording deadlocks: the caller
137
- * is blocked inside the very code that would have reached `execute()`.
138
- *
139
- * Deferral belongs to the connection, not to how a client was configured —
140
- * which is why it is declared here rather than passed as an option. A consumer
141
- * that wraps a recorder itself, without going through the batch client, still
142
- * gets the guard.
143
- */
144
- export interface IDeferredResponseConnection {
145
- /** Always `true`. "Sometimes deferred" is not a state a caller could act on. */
146
- readonly responsesAreDeferred: true;
147
- }
148
- /**
149
- * A connection whose ordinary per-request deadline can be suspended.
150
- *
151
- * A `lock` → write → `unlock` sequence wants to run to completion. Aborting one
152
- * of its requests part way ends nothing on the server — the server ends an ABAP
153
- * session on its own idle timeout, which this side cannot see — it ends what
154
- * this side *knows*: whether the write was applied becomes unanswerable, and
155
- * the handle `unlock` needs is lost while the lock lives on in that session.
156
- *
157
- * Measured on a BTP trial: a `POST /sap/bc/adt/deletion/delete` abandoned at
158
- * 45 s was followed by `400 … Session Timed Out or Not Found` carrying a *new*
159
- * session cookie. Over HTTP a session is two layers — the ICF one the cookie
160
- * addresses and the ABAP one beneath it holding the enqueue locks — and the
161
- * abort replaces the first while stranding the second.
162
- *
163
- * **What this promises, exactly.** Inside a section the connection's ordinary
164
- * per-request deadline does not apply. It does **not** promise that no request
165
- * can ever be cut short: an implementation is free to keep a far larger ceiling
166
- * — `@mcp-abap-adt/connection` raises it to `SAP_TIMEOUT_CRITICAL`, ten minutes
167
- * by default — and a socket, a proxy or the process itself ends a request
168
- * whatever a contract says. The guarantee is that the short deadline is out of
169
- * the way, not that time is.
170
- *
171
- * Sections nest: the ceiling lifts on the outermost `begin` and ordinary
172
- * deadlines resume after the matching `end`.
173
- *
174
- * Separate from {@link ISessionLifecycleAware} because it answers a different
175
- * question: that one is *whose session is this*, this one is *may this request
176
- * be cut short*. A batch recorder honours the first and has nothing to protect.
177
- */
178
- export interface ICriticalSection {
179
- /**
180
- * Enter a section in which the ordinary per-request deadline is suspended.
181
- *
182
- * Nests. Every call needs its own {@link endCriticalSection}, and the usual
183
- * shape is a `try`/`finally` so a throw inside the window still ends it.
184
- */
185
- beginCriticalSection(): void;
186
- /** Leave it. Ordinary deadlines resume when the outermost section ends. */
187
- endCriticalSection(): void;
188
- }
189
- /**
190
- * A connection that can be told what to ask the server to report about itself.
191
- *
192
- * `X-sap-adt-profiling` asks the server for its own processing time, and
193
- * Eclipse sends it on every request. It is a per-connection default: a single
194
- * request overrides it through `headers` on the request options, which every
195
- * connection already accepts, so this atom exists for the *default* and not for
196
- * the one-off.
197
- *
198
- * `null` asks for nothing. The value is a string rather than an enum because
199
- * what a server accepts there is the server's business and grows without this
200
- * package: `'server-time'` is what Eclipse asks for and is the sensible
201
- * default.
202
- *
203
- * Worth stating: an implementation is not expected to read the answer back.
204
- * The measurement is for whoever is looking at the wire, and being able to turn
205
- * it off matters more than being able to consume it.
206
- */
207
- export interface IRequestProfiling {
208
- /**
209
- * What to ask for on every request from now on, or `null` to ask nothing.
210
- *
211
- * @param what the `X-sap-adt-profiling` value; `'server-time'` is Eclipse's.
212
- */
213
- setProfilingRequest(what: string | null): void;
214
- /** What this connection is currently asking for. */
215
- getProfilingRequest(): string | null;
216
- }
217
- //# sourceMappingURL=IConnectionCapabilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConnectionCapabilities.d.ts","sourceRoot":"","sources":["../../src/connection/IConnectionCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sFAAsF;AACtF,eAAO,MAAM,iBAAiB;IAC5B,8DAA8D;;IAE9D;;;;;OAKG;;IAEH,8EAA8E;;CAEtE,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,YAAY,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD,4EAA4E;IAC5E,WAAW,IAAI,OAAO,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,QAAQ,CAAC,oBAAoB,EAAE,IAAI,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,oBAAoB,IAAI,IAAI,CAAC;IAE7B,2EAA2E;IAC3E,kBAAkB,IAAI,IAAI,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE/C,oDAAoD;IACpD,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAAC;CACtC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- /**
3
- * Capability atoms for the connection.
4
- *
5
- * The same shape as the ADT capability atoms, for the same reason:
6
- * `IAbapConnection` is the minimum every transport can honour, and this is a
7
- * thing only some can. An RFC connection, a batch recorder and a test stub are
8
- * all legitimate `IAbapConnection`s that own no HTTP session; making these
9
- * methods mandatory would force each of them to implement a lie.
10
- *
11
- * ADDITIVE to `IAbapConnection`, which is unchanged — an implementation adds the
12
- * atom when it genuinely supports it, and a consumer narrows to it.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ADT_SESSION_ERROR = void 0;
16
- /** Error codes a session-aware connection raises. Match on these, not on messages. */
17
- exports.ADT_SESSION_ERROR = {
18
- /** No usable session: never connected, or torn down since. */
19
- NOT_CONNECTED: 'ADT_NOT_CONNECTED',
20
- /**
21
- * The server put us on a DIFFERENT session than the one we were using.
22
- *
23
- * Anything locked over the old session is orphaned: the lock handle refers to
24
- * a session that no longer exists, so it can be neither used nor released.
25
- */
26
- SESSION_REPLACED: 'ADT_SESSION_REPLACED',
27
- /** A transport release is still pending; the session cannot yet be reused. */
28
- RELEASE_PENDING: 'ADT_RELEASE_PENDING',
29
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * The deadlines a caller gives an ADT connection.
3
- *
4
- * **`csrf` is why this is not in `@mcp-abap-adt/interfaces-network`.** Fetching
5
- * a CSRF token is an SAP operation, not a transport primitive, and `long` is a
6
- * client's policy for a long-polling read rather than anything the network
7
- * layer knows. It was in that package until `interfaces-adt` 9.0.0, against its
8
- * own README's claim that it holds nothing SAP-specific.
9
- */
10
- export interface ITimeoutConfig {
11
- default: number;
12
- csrf: number;
13
- long: number;
14
- }
15
- //# sourceMappingURL=ITimeoutConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITimeoutConfig.d.ts","sourceRoot":"","sources":["../../src/connection/ITimeoutConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });