@mcp-abap-adt/interfaces-adt 8.0.0 → 9.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.
- package/CHANGELOG.md +84 -0
- package/README.md +61 -13
- package/dist/connection/ITimeoutConfig.d.ts +15 -0
- package/dist/connection/ITimeoutConfig.d.ts.map +1 -0
- package/dist/index.d.ts +10 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -23
- package/package.json +3 -5
- package/dist/Headers.d.ts +0 -38
- package/dist/Headers.d.ts.map +0 -1
- package/dist/Headers.js +0 -43
- package/dist/adt/AdtTypes.d.ts +0 -40
- package/dist/adt/AdtTypes.d.ts.map +0 -1
- package/dist/adt/AdtTypes.js +0 -5
- package/dist/auth/AssertionErrorCodes.d.ts +0 -15
- package/dist/auth/AssertionErrorCodes.d.ts.map +0 -1
- package/dist/auth/AssertionErrorCodes.js +0 -16
- package/dist/auth/AuthType.d.ts +0 -5
- package/dist/auth/AuthType.d.ts.map +0 -1
- package/dist/auth/IAssertionValidator.d.ts +0 -100
- package/dist/auth/IAssertionValidator.d.ts.map +0 -1
- package/dist/auth/IAssertionValidator.js +0 -10
- package/dist/auth/IAuthorizationConfig.d.ts +0 -15
- package/dist/auth/IAuthorizationConfig.d.ts.map +0 -1
- package/dist/auth/IAuthorizationConfig.js +0 -2
- package/dist/auth/IAuthorizationStrategy.d.ts +0 -59
- package/dist/auth/IAuthorizationStrategy.d.ts.map +0 -1
- package/dist/auth/IAuthorizationStrategy.js +0 -12
- package/dist/auth/ICallbackServer.d.ts +0 -139
- package/dist/auth/ICallbackServer.d.ts.map +0 -1
- package/dist/auth/ICallbackServer.js +0 -2
- package/dist/auth/ICertificateMaterialLoader.d.ts +0 -7
- package/dist/auth/ICertificateMaterialLoader.d.ts.map +0 -1
- package/dist/auth/ICertificateMaterialLoader.js +0 -2
- package/dist/auth/IConfig.d.ts +0 -8
- package/dist/auth/IConfig.d.ts.map +0 -1
- package/dist/auth/IConfig.js +0 -2
- package/dist/auth/IConnectionConfig.d.ts +0 -23
- package/dist/auth/IConnectionConfig.d.ts.map +0 -1
- package/dist/auth/IConnectionConfig.js +0 -2
- package/dist/sap/ISapConfig.d.ts +0 -22
- package/dist/sap/ISapConfig.d.ts.map +0 -1
- package/dist/sap/ISapConfig.js +0 -2
- package/dist/sap/SapAuthType.d.ts +0 -3
- package/dist/sap/SapAuthType.d.ts.map +0 -1
- package/dist/sap/SapAuthType.js +0 -2
- package/dist/serviceKey/IServiceKeyStore.d.ts +0 -31
- package/dist/serviceKey/IServiceKeyStore.d.ts.map +0 -1
- package/dist/serviceKey/IServiceKeyStore.js +0 -7
- package/dist/session/ISessionStore.d.ts +0 -59
- package/dist/session/ISessionStore.d.ts.map +0 -1
- package/dist/session/ISessionStore.js +0 -7
- package/dist/store/ISessionState.d.ts +0 -11
- package/dist/store/ISessionState.d.ts.map +0 -1
- package/dist/store/ISessionState.js +0 -2
- package/dist/store/ISessionStorage.d.ts +0 -26
- package/dist/store/ISessionStorage.d.ts.map +0 -1
- package/dist/store/ISessionStorage.js +0 -2
- package/dist/store/StoreErrorCodes.d.ts +0 -12
- package/dist/store/StoreErrorCodes.d.ts.map +0 -1
- package/dist/store/StoreErrorCodes.js +0 -13
- package/dist/token/AuthType.d.ts +0 -43
- package/dist/token/AuthType.d.ts.map +0 -1
- package/dist/token/AuthType.js +0 -41
- package/dist/token/ITokenProvider.d.ts +0 -27
- package/dist/token/ITokenProvider.d.ts.map +0 -1
- package/dist/token/ITokenProvider.js +0 -8
- package/dist/token/ITokenProviderOptions.d.ts +0 -23
- package/dist/token/ITokenProviderOptions.d.ts.map +0 -1
- package/dist/token/ITokenProviderOptions.js +0 -2
- package/dist/token/ITokenProviderResult.d.ts +0 -12
- package/dist/token/ITokenProviderResult.d.ts.map +0 -1
- package/dist/token/ITokenProviderResult.js +0 -2
- package/dist/token/ITokenRefresher.d.ts +0 -39
- package/dist/token/ITokenRefresher.d.ts.map +0 -1
- package/dist/token/ITokenRefresher.js +0 -12
- package/dist/token/ITokenResult.d.ts +0 -36
- package/dist/token/ITokenResult.d.ts.map +0 -1
- package/dist/token/ITokenResult.js +0 -7
- package/dist/token/TokenProviderErrorCodes.d.ts +0 -26
- package/dist/token/TokenProviderErrorCodes.d.ts.map +0 -1
- package/dist/token/TokenProviderErrorCodes.js +0 -24
- package/dist/utils/ITokenRefreshResult.d.ts +0 -8
- package/dist/utils/ITokenRefreshResult.d.ts.map +0 -1
- package/dist/utils/ITokenRefreshResult.js +0 -2
- package/dist/validation/IHeaderValidationResult.d.ts +0 -15
- package/dist/validation/IHeaderValidationResult.d.ts.map +0 -1
- package/dist/validation/IHeaderValidationResult.js +0 -2
- package/dist/validation/IValidatedAuthConfig.d.ts +0 -46
- package/dist/validation/IValidatedAuthConfig.d.ts.map +0 -1
- package/dist/validation/IValidatedAuthConfig.js +0 -15
- /package/dist/{auth/AuthType.js → connection/ITimeoutConfig.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,90 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [9.0.0] - 2026-09-23
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`ITimeoutConfig`, from `@mcp-abap-adt/interfaces-network` 2.0.0** — the
|
|
15
|
+
deadlines a caller gives an ADT connection: `default`, `csrf`, `long`.
|
|
16
|
+
|
|
17
|
+
**Fetching a CSRF token is an SAP operation, not a transport primitive**, and
|
|
18
|
+
`long` is a client's policy for a long-polling read rather than anything a
|
|
19
|
+
network layer knows. It sat in `-network` against that package's own README,
|
|
20
|
+
which says nothing there is SAP-specific. Its one consumer,
|
|
21
|
+
`mcp-abap-connection`, takes this package already.
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
|
|
25
|
+
- **BREAKING: every authentication contract leaves** — 51 symbols out of 30
|
|
26
|
+
files, split by what each one's fields and values name. Measured against the
|
|
27
|
+
published 8.0.0 tarball, which exported 262 names; this release exports 210.
|
|
28
|
+
|
|
29
|
+
- **32 to `@mcp-abap-adt/interfaces-auth` 1.2.0** — credentials, OAuth
|
|
30
|
+
grants, tokens, interactive login, SAML assertions, `STORE_ERROR_CODES`,
|
|
31
|
+
and `AUTH_TYPE_JWT`/`AUTH_TYPE_BASIC`. A bearer token and a user with a
|
|
32
|
+
password mean the same thing off SAP entirely.
|
|
33
|
+
- **16 to `@mcp-abap-adt/interfaces-auth-sap` 1.0.0** — `ISapConfig`,
|
|
34
|
+
`SapAuthType`, `SapConnectionType`, `IConfig`, `IConnectionConfig`,
|
|
35
|
+
`IAuthorizationConfig`, `ICertificateMaterialLoader`, `IServiceKeyStore`,
|
|
36
|
+
`ISessionStore`, `ITokenProviderResult`, `IValidatedAuthConfig`,
|
|
37
|
+
`AuthMethodPriority`, `IHeaderValidationResult`, and `AUTH_TYPE_XSUAA`
|
|
38
|
+
with the `AuthType`/`AUTH_TYPES` union. XSUAA is a **BTP service**, so a
|
|
39
|
+
set that includes it describes what a BTP connection accepts.
|
|
40
|
+
- **`ISessionState` and `ISessionStorage` are deleted**, not moved: cookies,
|
|
41
|
+
a CSRF token and a cookie store are HTTP session state, which no package's
|
|
42
|
+
subject names, and nothing under development imports them. They arrived
|
|
43
|
+
here in 8.0.0 from the facade with *"removed in the next major"* on them;
|
|
44
|
+
this is that major (decision 30).
|
|
45
|
+
|
|
46
|
+
**The criterion is who imports this package**, and it should be
|
|
47
|
+
`@mcp-abap-adt/adt-clients` and whatever replaces its objects. It was not:
|
|
48
|
+
`auth-broker`, `auth-stores` and `auth-providers` imported 10, 7 and 17 names
|
|
49
|
+
from here and **not one was an ADT contract**; `header-validator` took 7 more.
|
|
50
|
+
They were pinned to the release rate of the ADT contract to describe
|
|
51
|
+
authentication.
|
|
52
|
+
|
|
53
|
+
After this, all four take **zero** from here. What is left reaching in is
|
|
54
|
+
`gcts-client` and `cloud-llm-hub`, for `IAbapConnection`,
|
|
55
|
+
`IAbapRequestOptions` and `IAdtResponse` — consumers that speak ADT over a
|
|
56
|
+
connection, which is the criterion met.
|
|
57
|
+
|
|
58
|
+
- **BREAKING: `HttpError` leaves, for `@mcp-abap-adt/interfaces-network`
|
|
59
|
+
2.0.0.** Nothing about an HTTP error is ABAP. This contract declared it and
|
|
60
|
+
never used it, while 14 files in `@mcp-abap-adt/adt-clients` import it and so
|
|
61
|
+
does `sap-cloud-alm-odata-mcp`, which speaks no ADT at all.
|
|
62
|
+
|
|
63
|
+
- **BREAKING: `XmlNode` leaves, for `@mcp-abap-adt/interfaces-utils` 1.1.0.** A
|
|
64
|
+
parser's output shape is not an ADT contract, whatever the document happens to
|
|
65
|
+
contain. Declared here, used here by nothing.
|
|
66
|
+
|
|
67
|
+
- **`@mcp-abap-adt/interfaces-auth` is no longer a dependency.** The last thread
|
|
68
|
+
was `validation/IValidatedAuthConfig` importing `AuthType`, and `validation/`
|
|
69
|
+
went with the SAP cluster. This package depends on `interfaces-network` and
|
|
70
|
+
`interfaces-utils`, and nothing else.
|
|
71
|
+
|
|
72
|
+
- **`AuthTypeEnum` is dropped.** It was `export type { AuthType as AuthTypeEnum }`
|
|
73
|
+
— a second name for one type, which no package imported under either name from
|
|
74
|
+
here. `AuthType` itself is in `interfaces-auth-sap`; the alias is not
|
|
75
|
+
recreated there, because one contract with two names is what a consumer has to
|
|
76
|
+
guess between.
|
|
77
|
+
|
|
78
|
+
### Dependencies
|
|
79
|
+
|
|
80
|
+
- **`@mcp-abap-adt/interfaces-network` `^2.0.0` is the only dependency.**
|
|
81
|
+
`interfaces-utils` is gone: it was here for `ILogger` and then for `XmlNode`,
|
|
82
|
+
and with `XmlNode` in that package no file in `src/` imports it. The
|
|
83
|
+
`tsconfig` project references went with it — two of them, one still pointing
|
|
84
|
+
at `interfaces-auth` a release after the last import of it left.
|
|
85
|
+
|
|
86
|
+
`tools/check-graph.js` now fails on a declared dependency or a project
|
|
87
|
+
reference that no file imports, so this cannot recur silently: it checked
|
|
88
|
+
only that an import was permitted and declared, never that a declaration was
|
|
89
|
+
used.
|
|
90
|
+
|
|
91
|
+
- The `-network` range names the version `HttpError` lands in, so an install
|
|
92
|
+
resolves one copy rather than nesting an older one.
|
|
93
|
+
|
|
10
94
|
## [8.0.0] - 2026-09-23
|
|
11
95
|
|
|
12
96
|
### Added
|
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @mcp-abap-adt/interfaces-adt
|
|
2
2
|
|
|
3
|
-
ADT contracts, the ABAP connection,
|
|
3
|
+
ADT contracts: object operations, the ABAP connection, runtime analysis, execution, feeds and service bindings.
|
|
4
4
|
|
|
5
5
|
## TL;DR
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
- `
|
|
10
|
-
-
|
|
11
|
-
-
|
|
7
|
+
- **Only ADT.** The test is who imports this package: `@mcp-abap-adt/adt-clients` and whatever replaces its objects, and nobody else. Measured against every repository in development — the only others reaching in are `gcts-client` and `cloud-llm-hub`, for `IAbapConnection`, `IAbapRequestOptions` and `IAdtResponse`, which is that test met.
|
|
8
|
+
- What it holds: ADT object operations for 31 object types, the ABAP connection and its capability atoms, runtime analysis, execution, feeds, service bindings, `IAdtResponse` and the error codes.
|
|
9
|
+
- **What left, and where.** Every HTTP header name, the HTTP frame and `HttpError` → [`interfaces-network`](../interfaces-network). Cloud ALM → [`interfaces-calm`](../interfaces-calm). `XmlNode` → [`interfaces-utils`](../interfaces-utils). Authentication in general — credentials, OAuth grants, tokens, interactive login, SAML assertions, `AUTH_TYPE_JWT`/`BASIC` → [`interfaces-auth`](../interfaces-auth). Everything naming SAP or BTP — `ISapConfig`, `SapAuthType`, `SapConnectionType`, `IConfig`, `IConnectionConfig`, `IAuthorizationConfig`, `ICertificateMaterialLoader`, `IServiceKeyStore`, `ISessionStore`, `ITokenProviderResult`, the two validation results and `AUTH_TYPE_XSUAA` with its union → [`interfaces-auth-sap`](../interfaces-auth-sap). `ISessionState` and `ISessionStorage` are deleted, not moved.
|
|
10
|
+
- `IAdtWireResponse` extends `IHttpWireResponse` from `-network` and keeps the headers ADT sends (`sap-adt-location`, both spellings of `content-location`). Name and shape unchanged for a consumer.
|
|
11
|
+
- Depends on `@mcp-abap-adt/interfaces-network`, and on nothing else. Types and constants; no implementation.
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
@@ -18,13 +18,17 @@ npm install @mcp-abap-adt/interfaces-adt
|
|
|
18
18
|
|
|
19
19
|
## What it holds
|
|
20
20
|
|
|
21
|
-
| directory | what |
|
|
22
|
-
|
|
23
|
-
| `adt
|
|
24
|
-
| `connection/` | `IAbapConnection`, `IAbapRequestOptions`, the connection capability atoms
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
21
|
+
| directory | files | what |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `adt/` | 39 | the object contracts: capability atoms, the object types, `IAdtResponse`, `IAdtError`, the error codes, the transport request's object list |
|
|
24
|
+
| `connection/` | 4 | `IAbapConnection`, `IAbapRequestOptions`, the connection capability atoms, and `ITimeoutConfig` — here since 9.0.0, because `csrf` names an SAP operation rather than a transport primitive. `IAdtWireResponse` extends `IHttpWireResponse` from `-network` |
|
|
25
|
+
| `runtime/` | 11 | runtime analysis: `IProfiler`, the trace contracts (`ITraceListing`/`ITraceReading`, `ICrossTrace`, `ISt05Trace`), `IApplicationLog`, `IAtcLog` and the ATC run (`IAtcRunOptions`, `IAtcFindings`), `IDdicActivation`, `IGatewayErrorLog`, `IRuntimeDumps`, `ISystemMessages` |
|
|
26
|
+
| `execution/` | 3 | class and program execution, with profiling |
|
|
27
|
+
| `feeds/` | 2 | the ADT feed contracts |
|
|
28
|
+
| `service/` | 1 | service definitions and bindings |
|
|
29
|
+
| `shared/` | 1 | what more than one object type needs |
|
|
30
|
+
|
|
31
|
+
Seven directories, all ADT. `sap/`, `auth/`, `token/`, `session/`, `serviceKey/`, `store/`, `validation/` and `Headers.ts` were here until 9.0.0 and are listed above under what left; `__typechecks__/` holds 21 files that compile shapes this contract must and must not accept, and ships in no tarball.
|
|
28
32
|
|
|
29
33
|
The contract rules — what a member answers, how a strategy is supplied, how a contract is built — are in [`docs/architecture/ARCHITECTURE.md`](../../docs/architecture/ARCHITECTURE.md). Domain-by-domain documentation with examples used to sit in the facade's README; the facade is deleted, and each package documents its own contracts.
|
|
30
34
|
|
|
@@ -47,6 +51,50 @@ So `createTask` requires `targetUser` and `removeObject` requires `position`, an
|
|
|
47
51
|
|
|
48
52
|
`addObject` still takes an entry without a position — one that does not exist yet has none.
|
|
49
53
|
|
|
54
|
+
## Migrating to 9.0.0
|
|
55
|
+
|
|
56
|
+
Nothing changed shape. Every break is an import moving to the package that
|
|
57
|
+
declares the name now, so `tsc` finds all of them and none of them silently.
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
// Authentication in general — 32 names, among them:
|
|
61
|
+
- import type { IAuthProvider, ITokenProvider, ITokenRefresher } from '@mcp-abap-adt/interfaces-adt';
|
|
62
|
+
+ import type { IAuthProvider, ITokenProvider, ITokenRefresher } from '@mcp-abap-adt/interfaces-auth';
|
|
63
|
+
|
|
64
|
+
// Authentication that names SAP or BTP — 16 names, among them:
|
|
65
|
+
- import type { ISapConfig, IConnectionConfig, ISessionStore } from '@mcp-abap-adt/interfaces-adt';
|
|
66
|
+
+ import type { ISapConfig, IConnectionConfig, ISessionStore } from '@mcp-abap-adt/interfaces-auth-sap';
|
|
67
|
+
- import { AUTH_TYPE_XSUAA, AUTH_TYPES } from '@mcp-abap-adt/interfaces-adt';
|
|
68
|
+
+ import { AUTH_TYPE_XSUAA, AUTH_TYPES } from '@mcp-abap-adt/interfaces-auth-sap';
|
|
69
|
+
+ import { AUTH_TYPE_JWT, AUTH_TYPE_BASIC } from '@mcp-abap-adt/interfaces-auth'; // not re-exported
|
|
70
|
+
|
|
71
|
+
// An HTTP failure, and a parsed node:
|
|
72
|
+
- import type { HttpError, XmlNode } from '@mcp-abap-adt/interfaces-adt';
|
|
73
|
+
+ import type { HttpError } from '@mcp-abap-adt/interfaces-network';
|
|
74
|
+
+ import type { XmlNode } from '@mcp-abap-adt/interfaces-utils';
|
|
75
|
+
|
|
76
|
+
// And one arriving here, from interfaces-network:
|
|
77
|
+
- import type { ITimeoutConfig } from '@mcp-abap-adt/interfaces-network';
|
|
78
|
+
+ import type { ITimeoutConfig } from '@mcp-abap-adt/interfaces-adt';
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Three names are not anywhere.** `ISessionState` and `ISessionStorage` are
|
|
82
|
+
deleted — cookies, a CSRF token and a cookie store are HTTP session state, which
|
|
83
|
+
no package's subject names and which no repository under development imports; a
|
|
84
|
+
consumer that wants them declares them, since what a cookie jar holds is an
|
|
85
|
+
implementation's business. `AuthTypeEnum` was an alias of `AuthType`, and one
|
|
86
|
+
contract with two names is something a consumer has to guess between: take
|
|
87
|
+
`AuthType` from `interfaces-auth-sap`.
|
|
88
|
+
|
|
89
|
+
**Ranges, so an install resolves one copy of each package.** A range one major
|
|
90
|
+
behind is what npm answers by silently nesting a second copy, so a consumer on
|
|
91
|
+
this release takes `interfaces-network@^2.0.0`, `interfaces-auth@^1.2.0`,
|
|
92
|
+
`interfaces-auth-sap@^1.0.0` and `interfaces-utils@^1.1.0` — whichever of them it
|
|
93
|
+
imports from.
|
|
94
|
+
|
|
95
|
+
Decision 35 in the repository's `docs/architecture/DECISIONS.md` says why each
|
|
96
|
+
name went where it did, and why the accepting package stopped deciding it.
|
|
97
|
+
|
|
50
98
|
## Migrating to 7.0.0
|
|
51
99
|
|
|
52
100
|
Two changes.
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @mcp-abap-adt/interfaces-adt
|
|
3
3
|
*
|
|
4
|
-
* ADT contracts, the ABAP
|
|
4
|
+
* ADT contracts: object operations, the ABAP connection, runtime analysis,
|
|
5
|
+
* execution, feeds and service bindings.
|
|
6
|
+
*
|
|
7
|
+
* **Only ADT.** The test is who imports this package: `@mcp-abap-adt/adt-clients`
|
|
8
|
+
* and whatever replaces its objects, and nobody else. Everything that failed
|
|
9
|
+
* that test has left — headers and the HTTP frame to `interfaces-network`, Cloud
|
|
10
|
+
* ALM to `interfaces-calm`, authentication, tokens and stores to
|
|
11
|
+
* `interfaces-auth`, the SAP system configuration to `interfaces-auth-sap`,
|
|
12
|
+
* `HttpError` to `-network` and `XmlNode` to `-utils`.
|
|
5
13
|
*/
|
|
6
|
-
export type { HttpError, XmlNode } from './adt/AdtTypes';
|
|
7
14
|
export type { IAbapGitExternalRepoCredentials, IAbapGitLinkArgs, IAbapGitPullArgs, IAbapGitUnlinkArgs, IAdtAbapGitClient, IAdtAbapGitClientOptions, } from './adt/IAdtAbapGit';
|
|
8
15
|
export type { IAccessControlConfig } from './adt/IAdtAccessControl';
|
|
9
16
|
export type { IAppendStructureConfig } from './adt/IAdtAppendStructure';
|
|
@@ -47,27 +54,16 @@ export type { AdtTaskType, IAbapObjectEntry, IAdtRequest, IAdtTransportObjectAct
|
|
|
47
54
|
export { ADT_TASK_TYPE, TRANSPORT_SEARCH_CONFIGURATIONS_URL, } from './adt/IAdtTransport';
|
|
48
55
|
export type { ICdsTestDoubleCheckable, ICdsUnitTestConfig, IClassUnitTestDefinition, IClassUnitTestRunOptions, ITestRunInformation, IUnitTestConfig, IUnitTestDuration, IUnitTestResultOptions, IUnitTestRiskLevel, IUnitTestScope, } from './adt/IAdtUnitTest';
|
|
49
56
|
export type { IAdtDataPreview, IAdtDiscovery, IAdtGroupLifecycle, IAdtInformationSystem, IAdtObjectAccess, IAdtObjectSearch, IAdtRepositoryStructure, IAdtTypeCatalogue, IAdtVirtualFolders, IAdtWhereUsed, IGetNodeContentsOptions, } from './adt/IAdtUtilities';
|
|
50
|
-
export type { AssertionErrorCode } from './auth/AssertionErrorCodes';
|
|
51
|
-
export { ASSERTION_ERROR_CODES } from './auth/AssertionErrorCodes';
|
|
52
|
-
export type { AuthType as AuthTypeEnum } from './auth/AuthType';
|
|
53
|
-
export type { AssertionContext, AssertionReplayKey, IAssertionReplayStore, IAssertionValidator, ValidatedAssertion, } from './auth/IAssertionValidator';
|
|
54
|
-
export type { IAuthorizationConfig } from './auth/IAuthorizationConfig';
|
|
55
|
-
export type { AuthorizationOutcome, AuthorizationRequest, IAuthorizationStrategy, } from './auth/IAuthorizationStrategy';
|
|
56
|
-
export type { CallbackServerFactory, ICallbackServerHandle, ICallbackServerOptions, } from './auth/ICallbackServer';
|
|
57
|
-
export type { ICertificateMaterialLoader } from './auth/ICertificateMaterialLoader';
|
|
58
|
-
export type { IConfig } from './auth/IConfig';
|
|
59
|
-
export type { IConnectionConfig } from './auth/IConnectionConfig';
|
|
60
57
|
export type { IAbapConnection, IAdtWireResponse, } from './connection/IAbapConnection';
|
|
61
58
|
export type { IAbapRequestOptions } from './connection/IAbapRequestOptions';
|
|
62
59
|
export type { AdtSessionErrorCode, ICriticalSection, IDeferredResponseConnection, IRequestProfiling, ISessionLifecycleAware, } from './connection/IConnectionCapabilities';
|
|
63
60
|
export { ADT_SESSION_ERROR } from './connection/IConnectionCapabilities';
|
|
61
|
+
export type { ITimeoutConfig } from './connection/ITimeoutConfig';
|
|
64
62
|
export type { IClassExecuteWithProfilerOptions, IClassExecuteWithProfilingOptions, IClassExecuteWithProfilingResult, IClassExecutionTarget, IClassExecutor, IProgramExecuteWithProfilerOptions, IProgramExecuteWithProfilingOptions, IProgramExecuteWithProfilingResult, IProgramExecutionTarget, IProgramExecutor, } from './execution/IAdtExecutors';
|
|
65
63
|
export type { IAdtRunnable, IRunnableWithProfiler, IRunnableWithProfiling, } from './execution/IAdtRunnable';
|
|
66
64
|
export type { ITraceScheduling } from './execution/ITraceScheduling';
|
|
67
65
|
export type { IFeedRepository } from './feeds/IFeedRepository';
|
|
68
66
|
export type { IAbapTimestamp, IFeedQueryOptions } from './feeds/types';
|
|
69
|
-
export type { AuthType } from './Headers';
|
|
70
|
-
export { AUTH_TYPE_BASIC, AUTH_TYPE_JWT, AUTH_TYPE_XSUAA, AUTH_TYPES, } from './Headers';
|
|
71
67
|
export type { IApplicationLog, IGetApplicationLogObjectOptions, IGetApplicationLogSourceOptions, } from './runtime/IApplicationLog';
|
|
72
68
|
export type { IAtcLog, IGetCheckFailureLogsOptions } from './runtime/IAtcLog';
|
|
73
69
|
export type { AtcObjectType, IAtcFindings, IAtcObjectRef, IAtcRunOptions, IAtcRunStatusReadable, IAtcRunTarget, } from './runtime/IAtcRun';
|
|
@@ -79,27 +75,6 @@ export type { IRuntimeDumpReadOptions, IRuntimeDumpReadView, IRuntimeDumps, IRun
|
|
|
79
75
|
export type { ISt05Trace } from './runtime/ISt05Trace';
|
|
80
76
|
export type { ISystemMessages } from './runtime/ISystemMessages';
|
|
81
77
|
export type { ITraceDeletion, ITraceEntry, ITraceFamily, ITraceListing, ITraceReading, ITraceState, ITraceView, ViewArgs, ViewOptions, ViewResult, } from './runtime/ITrace';
|
|
82
|
-
export type { ISapConfig } from './sap/ISapConfig';
|
|
83
|
-
export type { SapAuthType, SapConnectionType } from './sap/SapAuthType';
|
|
84
78
|
export type { ICreateAndGenerateServiceBindingParams, ICreateAndGenerateServiceBindingParamsLegacy, } from './service/IAdtService';
|
|
85
|
-
export type { IServiceKeyStore } from './serviceKey/IServiceKeyStore';
|
|
86
|
-
export type { ISessionStore } from './session/ISessionStore';
|
|
87
79
|
export type { IReadOptions } from './shared/IReadOptions';
|
|
88
|
-
export type { ISessionState } from './store/ISessionState';
|
|
89
|
-
export type { ISessionStorage } from './store/ISessionStorage';
|
|
90
|
-
export type { StoreErrorCode } from './store/StoreErrorCodes';
|
|
91
|
-
export { STORE_ERROR_CODES } from './store/StoreErrorCodes';
|
|
92
|
-
export type { OAuth2GrantType } from './token/AuthType';
|
|
93
|
-
export { AUTH_TYPE_AUTHORIZATION_CODE, AUTH_TYPE_AUTHORIZATION_CODE_PKCE, AUTH_TYPE_CLIENT_CREDENTIALS, AUTH_TYPE_CLIENT_X509, AUTH_TYPE_PASSWORD, AUTH_TYPE_SAML2_BEARER, AUTH_TYPE_USER_TOKEN, } from './token/AuthType';
|
|
94
|
-
export type { ITokenProvider } from './token/ITokenProvider';
|
|
95
|
-
export type { ITokenProviderOptions } from './token/ITokenProviderOptions';
|
|
96
|
-
export type { ITokenProviderResult } from './token/ITokenProviderResult';
|
|
97
|
-
export type { ITokenRefresher } from './token/ITokenRefresher';
|
|
98
|
-
export type { ITokenResult } from './token/ITokenResult';
|
|
99
|
-
export type { TokenProviderErrorCode } from './token/TokenProviderErrorCodes';
|
|
100
|
-
export { TOKEN_PROVIDER_ERROR_CODES } from './token/TokenProviderErrorCodes';
|
|
101
|
-
export type { ITokenRefreshResult } from './utils/ITokenRefreshResult';
|
|
102
|
-
export type { IHeaderValidationResult } from './validation/IHeaderValidationResult';
|
|
103
|
-
export type { IValidatedAuthConfig } from './validation/IValidatedAuthConfig';
|
|
104
|
-
export { AuthMethodPriority } from './validation/IValidatedAuthConfig';
|
|
105
80
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,EACV,+BAA+B,EAC/B,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,YAAY,EACV,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACtF,YAAY,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,w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,EACZ,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,eAAe,EACf,0BAA0B,GAC3B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,YAAY,EACV,SAAS,EACT,oBAAoB,EACpB,+BAA+B,EAC/B,4BAA4B,EAC5B,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,QAAQ,EACR,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,sCAAsC,EACtC,4CAA4C,GAC7C,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @mcp-abap-adt/interfaces-adt
|
|
4
4
|
*
|
|
5
|
-
* ADT contracts, the ABAP
|
|
5
|
+
* ADT contracts: object operations, the ABAP connection, runtime analysis,
|
|
6
|
+
* execution, feeds and service bindings.
|
|
7
|
+
*
|
|
8
|
+
* **Only ADT.** The test is who imports this package: `@mcp-abap-adt/adt-clients`
|
|
9
|
+
* and whatever replaces its objects, and nobody else. Everything that failed
|
|
10
|
+
* that test has left — headers and the HTTP frame to `interfaces-network`, Cloud
|
|
11
|
+
* ALM to `interfaces-calm`, authentication, tokens and stores to
|
|
12
|
+
* `interfaces-auth`, the SAP system configuration to `interfaces-auth-sap`,
|
|
13
|
+
* `HttpError` to `-network` and `XmlNode` to `-utils`.
|
|
6
14
|
*/
|
|
7
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
16
|
+
exports.ADT_SESSION_ERROR = exports.TRANSPORT_SEARCH_CONFIGURATIONS_URL = exports.ADT_TASK_TYPE = exports.SERVICE_BINDING_VARIANT_MAP = exports.ADT_NO_FAILURE = exports.AdtObjectErrorCodes = void 0;
|
|
9
17
|
var IAdtObject_1 = require("./adt/IAdtObject");
|
|
10
18
|
Object.defineProperty(exports, "AdtObjectErrorCodes", { enumerable: true, get: function () { return IAdtObject_1.AdtObjectErrorCodes; } });
|
|
11
19
|
var IAdtResponse_1 = require("./adt/IAdtResponse");
|
|
@@ -15,26 +23,5 @@ Object.defineProperty(exports, "SERVICE_BINDING_VARIANT_MAP", { enumerable: true
|
|
|
15
23
|
var IAdtTransport_1 = require("./adt/IAdtTransport");
|
|
16
24
|
Object.defineProperty(exports, "ADT_TASK_TYPE", { enumerable: true, get: function () { return IAdtTransport_1.ADT_TASK_TYPE; } });
|
|
17
25
|
Object.defineProperty(exports, "TRANSPORT_SEARCH_CONFIGURATIONS_URL", { enumerable: true, get: function () { return IAdtTransport_1.TRANSPORT_SEARCH_CONFIGURATIONS_URL; } });
|
|
18
|
-
var AssertionErrorCodes_1 = require("./auth/AssertionErrorCodes");
|
|
19
|
-
Object.defineProperty(exports, "ASSERTION_ERROR_CODES", { enumerable: true, get: function () { return AssertionErrorCodes_1.ASSERTION_ERROR_CODES; } });
|
|
20
26
|
var IConnectionCapabilities_1 = require("./connection/IConnectionCapabilities");
|
|
21
27
|
Object.defineProperty(exports, "ADT_SESSION_ERROR", { enumerable: true, get: function () { return IConnectionCapabilities_1.ADT_SESSION_ERROR; } });
|
|
22
|
-
var Headers_1 = require("./Headers");
|
|
23
|
-
Object.defineProperty(exports, "AUTH_TYPE_BASIC", { enumerable: true, get: function () { return Headers_1.AUTH_TYPE_BASIC; } });
|
|
24
|
-
Object.defineProperty(exports, "AUTH_TYPE_JWT", { enumerable: true, get: function () { return Headers_1.AUTH_TYPE_JWT; } });
|
|
25
|
-
Object.defineProperty(exports, "AUTH_TYPE_XSUAA", { enumerable: true, get: function () { return Headers_1.AUTH_TYPE_XSUAA; } });
|
|
26
|
-
Object.defineProperty(exports, "AUTH_TYPES", { enumerable: true, get: function () { return Headers_1.AUTH_TYPES; } });
|
|
27
|
-
var StoreErrorCodes_1 = require("./store/StoreErrorCodes");
|
|
28
|
-
Object.defineProperty(exports, "STORE_ERROR_CODES", { enumerable: true, get: function () { return StoreErrorCodes_1.STORE_ERROR_CODES; } });
|
|
29
|
-
var AuthType_1 = require("./token/AuthType");
|
|
30
|
-
Object.defineProperty(exports, "AUTH_TYPE_AUTHORIZATION_CODE", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_AUTHORIZATION_CODE; } });
|
|
31
|
-
Object.defineProperty(exports, "AUTH_TYPE_AUTHORIZATION_CODE_PKCE", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_AUTHORIZATION_CODE_PKCE; } });
|
|
32
|
-
Object.defineProperty(exports, "AUTH_TYPE_CLIENT_CREDENTIALS", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_CLIENT_CREDENTIALS; } });
|
|
33
|
-
Object.defineProperty(exports, "AUTH_TYPE_CLIENT_X509", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_CLIENT_X509; } });
|
|
34
|
-
Object.defineProperty(exports, "AUTH_TYPE_PASSWORD", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_PASSWORD; } });
|
|
35
|
-
Object.defineProperty(exports, "AUTH_TYPE_SAML2_BEARER", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_SAML2_BEARER; } });
|
|
36
|
-
Object.defineProperty(exports, "AUTH_TYPE_USER_TOKEN", { enumerable: true, get: function () { return AuthType_1.AUTH_TYPE_USER_TOKEN; } });
|
|
37
|
-
var TokenProviderErrorCodes_1 = require("./token/TokenProviderErrorCodes");
|
|
38
|
-
Object.defineProperty(exports, "TOKEN_PROVIDER_ERROR_CODES", { enumerable: true, get: function () { return TokenProviderErrorCodes_1.TOKEN_PROVIDER_ERROR_CODES; } });
|
|
39
|
-
var IValidatedAuthConfig_1 = require("./validation/IValidatedAuthConfig");
|
|
40
|
-
Object.defineProperty(exports, "AuthMethodPriority", { enumerable: true, get: function () { return IValidatedAuthConfig_1.AuthMethodPriority; } });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/interfaces-adt",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "ADT contracts, the ABAP
|
|
3
|
+
"version": "9.0.0",
|
|
4
|
+
"description": "ADT contracts: object operations, the ABAP connection, runtime analysis, execution, feeds and service bindings",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -36,8 +36,6 @@
|
|
|
36
36
|
"node": ">=18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@mcp-abap-adt/interfaces-
|
|
40
|
-
"@mcp-abap-adt/interfaces-network": "^1.1.0",
|
|
41
|
-
"@mcp-abap-adt/interfaces-utils": "^1.0.0"
|
|
39
|
+
"@mcp-abap-adt/interfaces-network": "^2.0.0"
|
|
42
40
|
}
|
|
43
41
|
}
|
package/dist/Headers.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HTTP Header Constants for MCP ABAP ADT
|
|
3
|
-
*
|
|
4
|
-
* This file contains all HTTP header names used across MCP ABAP ADT packages.
|
|
5
|
-
* These constants should be used instead of hardcoded string values to ensure
|
|
6
|
-
* consistency and prevent typos.
|
|
7
|
-
*
|
|
8
|
-
* Priority: Values from mcp-abap-adt-interfaces package take precedence.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* The proxy routing headers moved to `@mcp-abap-adt/interfaces-network` in
|
|
12
|
-
* 8.0.0 — `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION` and
|
|
13
|
-
* `HEADER_MCP_URL`, together with `PROXY_ROUTING_HEADERS`, which groups them.
|
|
14
|
-
* They name a proxy's routing, not anything ABAP, and that package already
|
|
15
|
-
* held the MCP session headers beside them.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* The SAP connection and UAA header names moved to
|
|
19
|
-
* `@mcp-abap-adt/interfaces-network` in 8.0.0, with the three groups built from
|
|
20
|
-
* them — `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS` — and
|
|
21
|
-
* `PROXY_MODIFIED_HEADERS`, which could not exist while they were split across
|
|
22
|
-
* two packages.
|
|
23
|
-
*
|
|
24
|
-
* A header name says how a value travels, not what it means, and nothing in
|
|
25
|
-
* this contract ever used one: only the index re-exported them.
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Authentication type values
|
|
29
|
-
*/
|
|
30
|
-
export declare const AUTH_TYPE_JWT = "jwt";
|
|
31
|
-
export declare const AUTH_TYPE_BASIC = "basic";
|
|
32
|
-
export declare const AUTH_TYPE_XSUAA = "xsuaa";
|
|
33
|
-
/**
|
|
34
|
-
* Valid authentication types
|
|
35
|
-
*/
|
|
36
|
-
export declare const AUTH_TYPES: readonly ["jwt", "basic", "xsuaa"];
|
|
37
|
-
export type AuthType = (typeof AUTH_TYPES)[number];
|
|
38
|
-
//# sourceMappingURL=Headers.d.ts.map
|
package/dist/Headers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../src/Headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH;;;;;;;;;GASG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,UAAU,oCAIb,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/Headers.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* HTTP Header Constants for MCP ABAP ADT
|
|
4
|
-
*
|
|
5
|
-
* This file contains all HTTP header names used across MCP ABAP ADT packages.
|
|
6
|
-
* These constants should be used instead of hardcoded string values to ensure
|
|
7
|
-
* consistency and prevent typos.
|
|
8
|
-
*
|
|
9
|
-
* Priority: Values from mcp-abap-adt-interfaces package take precedence.
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AUTH_TYPES = exports.AUTH_TYPE_XSUAA = exports.AUTH_TYPE_BASIC = exports.AUTH_TYPE_JWT = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* The proxy routing headers moved to `@mcp-abap-adt/interfaces-network` in
|
|
15
|
-
* 8.0.0 — `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION` and
|
|
16
|
-
* `HEADER_MCP_URL`, together with `PROXY_ROUTING_HEADERS`, which groups them.
|
|
17
|
-
* They name a proxy's routing, not anything ABAP, and that package already
|
|
18
|
-
* held the MCP session headers beside them.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* The SAP connection and UAA header names moved to
|
|
22
|
-
* `@mcp-abap-adt/interfaces-network` in 8.0.0, with the three groups built from
|
|
23
|
-
* them — `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS` — and
|
|
24
|
-
* `PROXY_MODIFIED_HEADERS`, which could not exist while they were split across
|
|
25
|
-
* two packages.
|
|
26
|
-
*
|
|
27
|
-
* A header name says how a value travels, not what it means, and nothing in
|
|
28
|
-
* this contract ever used one: only the index re-exported them.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Authentication type values
|
|
32
|
-
*/
|
|
33
|
-
exports.AUTH_TYPE_JWT = 'jwt';
|
|
34
|
-
exports.AUTH_TYPE_BASIC = 'basic';
|
|
35
|
-
exports.AUTH_TYPE_XSUAA = 'xsuaa';
|
|
36
|
-
/**
|
|
37
|
-
* Valid authentication types
|
|
38
|
-
*/
|
|
39
|
-
exports.AUTH_TYPES = [
|
|
40
|
-
exports.AUTH_TYPE_JWT,
|
|
41
|
-
exports.AUTH_TYPE_BASIC,
|
|
42
|
-
exports.AUTH_TYPE_XSUAA,
|
|
43
|
-
];
|
package/dist/adt/AdtTypes.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared ADT types for type-safe error handling and XML parsing.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Shape of HTTP errors thrown by the connection layer.
|
|
6
|
-
* Used for type-safe catch blocks instead of `catch (error: any)`.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* try {
|
|
11
|
-
* await connection.makeAdtRequest({ url: '...' });
|
|
12
|
-
* } catch (error: unknown) {
|
|
13
|
-
* const e = error as HttpError;
|
|
14
|
-
* console.log(e.response?.status);
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export interface HttpError {
|
|
19
|
-
response?: {
|
|
20
|
-
status?: number;
|
|
21
|
-
statusText?: string;
|
|
22
|
-
data?: unknown;
|
|
23
|
-
headers?: Record<string, unknown>;
|
|
24
|
-
};
|
|
25
|
-
message?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Recursive type for XML parser results.
|
|
29
|
-
* Allows property access on deeply nested parsed XML structures.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```typescript
|
|
33
|
-
* const result = parser.parse(xmlData) as XmlNode;
|
|
34
|
-
* const data = (result?.['asx:abap'] as XmlNode)?.['asx:values'];
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export interface XmlNode {
|
|
38
|
-
[key: string]: XmlNode | XmlNode[] | string | number | boolean | undefined;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=AdtTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdtTypes.d.ts","sourceRoot":"","sources":["../../src/adt/AdtTypes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAC5E"}
|
package/dist/adt/AdtTypes.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error codes for assertion validation
|
|
3
|
-
* Used by an IAssertionValidator to say which check refused the assertion
|
|
4
|
-
*
|
|
5
|
-
* Deliberately separate from TOKEN_PROVIDER_ERROR_CODES: that set describes what
|
|
6
|
-
* can go wrong with ANY token provider, so a single authentication mechanism
|
|
7
|
-
* must not widen it. A mechanism brings its own codes, as stores and the
|
|
8
|
-
* network layer already do.
|
|
9
|
-
*/
|
|
10
|
-
export declare const ASSERTION_ERROR_CODES: {
|
|
11
|
-
/** A SAML assertion failed validation and was refused */
|
|
12
|
-
readonly VALIDATION_ERROR: "ASSERTION_VALIDATION_ERROR";
|
|
13
|
-
};
|
|
14
|
-
export type AssertionErrorCode = (typeof ASSERTION_ERROR_CODES)[keyof typeof ASSERTION_ERROR_CODES];
|
|
15
|
-
//# sourceMappingURL=AssertionErrorCodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssertionErrorCodes.d.ts","sourceRoot":"","sources":["../../src/auth/AssertionErrorCodes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB;IAChC,yDAAyD;;CAEjD,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Error codes for assertion validation
|
|
4
|
-
* Used by an IAssertionValidator to say which check refused the assertion
|
|
5
|
-
*
|
|
6
|
-
* Deliberately separate from TOKEN_PROVIDER_ERROR_CODES: that set describes what
|
|
7
|
-
* can go wrong with ANY token provider, so a single authentication mechanism
|
|
8
|
-
* must not widen it. A mechanism brings its own codes, as stores and the
|
|
9
|
-
* network layer already do.
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ASSERTION_ERROR_CODES = void 0;
|
|
13
|
-
exports.ASSERTION_ERROR_CODES = {
|
|
14
|
-
/** A SAML assertion failed validation and was refused */
|
|
15
|
-
VALIDATION_ERROR: 'ASSERTION_VALIDATION_ERROR',
|
|
16
|
-
};
|
package/dist/auth/AuthType.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthType.d.ts","sourceRoot":"","sources":["../../src/auth/AuthType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAC"}
|