@mcp-abap-adt/interfaces 0.1.0 → 0.1.2
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 +23 -0
- package/README.md +4 -0
- package/dist/Headers.d.ts +87 -0
- package/dist/Headers.d.ts.map +1 -0
- package/dist/Headers.js +120 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/logging/ILogger.d.ts +2 -14
- package/dist/logging/ILogger.d.ts.map +1 -1
- package/dist/token/ITokenProviderOptions.d.ts +13 -2
- package/dist/token/ITokenProviderOptions.d.ts.map +1 -1
- package/package.json +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.1.2] - 2025-12-07
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **HTTP Header Constants**: Added `Headers.ts` module with all HTTP header constants used across MCP ABAP ADT packages
|
|
14
|
+
- Proxy routing headers: `HEADER_BTP_DESTINATION`, `HEADER_MCP_DESTINATION`, `HEADER_MCP_URL`
|
|
15
|
+
- SAP ABAP connection headers: `HEADER_SAP_DESTINATION`, `HEADER_SAP_DESTINATION_SERVICE`, `HEADER_SAP_URL`, `HEADER_SAP_JWT_TOKEN`, `HEADER_SAP_AUTH_TYPE`, `HEADER_SAP_CLIENT`, `HEADER_SAP_LOGIN`, `HEADER_SAP_PASSWORD`, `HEADER_SAP_REFRESH_TOKEN`
|
|
16
|
+
- UAA/XSUAA headers: `HEADER_SAP_UAA_URL`, `HEADER_UAA_URL`, `HEADER_SAP_UAA_CLIENT_ID`, `HEADER_UAA_CLIENT_ID`, `HEADER_SAP_UAA_CLIENT_SECRET`, `HEADER_UAA_CLIENT_SECRET`
|
|
17
|
+
- Standard HTTP headers: `HEADER_AUTHORIZATION`, `HEADER_CONTENT_TYPE`, `HEADER_ACCEPT`
|
|
18
|
+
- Header groups: `PROXY_ROUTING_HEADERS`, `SAP_CONNECTION_HEADERS`, `UAA_HEADERS`, `PRESERVED_HEADERS`, `PROXY_MODIFIED_HEADERS`
|
|
19
|
+
- Authentication type constants: `AUTH_TYPE_JWT`, `AUTH_TYPE_BASIC`, `AUTH_TYPE_XSUAA`, `AUTH_TYPES`
|
|
20
|
+
- Special constant `HEADER_SAP_DESTINATION_SERVICE` for SAP destination service on Cloud (URL automatically derived from service key)
|
|
21
|
+
- All header constants are exported from package root for easy import: `import { HEADER_SAP_DESTINATION } from '@mcp-abap-adt/interfaces'`
|
|
22
|
+
|
|
23
|
+
## [0.1.1] - 2024-12-04
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
- **ILogger Interface**: Simplified to include only core logging methods (info, error, warn, debug)
|
|
27
|
+
- Removed domain-specific methods (csrfToken, tlsConfig, browserAuth, refresh, success, browserUrl, browserOpening, testSkip)
|
|
28
|
+
- Interface now focuses on universal logging capabilities without implementation-specific details
|
|
29
|
+
- **ITokenProviderOptions**: Enhanced documentation with detailed descriptions of browser and logger options
|
|
30
|
+
|
|
8
31
|
## [0.1.0] - 2025-12-04
|
|
9
32
|
|
|
10
33
|
### Added
|
package/README.md
CHANGED
|
@@ -124,6 +124,10 @@ This package has **no runtime dependencies**. It only has devDependencies for Ty
|
|
|
124
124
|
- `@types/node` - Node.js type definitions
|
|
125
125
|
- `axios` - For AxiosResponse type (dev dependency only)
|
|
126
126
|
|
|
127
|
+
## Documentation
|
|
128
|
+
|
|
129
|
+
- **[Package Dependencies Analysis](docs/PACKAGE_DEPENDENCIES_ANALYSIS.md)** - Analysis of dependencies between all `@mcp-abap-adt/*` packages, verification that interfaces package has no runtime dependencies, and roadmap for eliminating unnecessary dependencies
|
|
130
|
+
|
|
127
131
|
## License
|
|
128
132
|
|
|
129
133
|
MIT
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
* Proxy Routing Headers
|
|
12
|
+
* Used by the proxy to determine routing and authentication
|
|
13
|
+
*/
|
|
14
|
+
export declare const HEADER_BTP_DESTINATION = "x-btp-destination";
|
|
15
|
+
export declare const HEADER_MCP_DESTINATION = "x-mcp-destination";
|
|
16
|
+
export declare const HEADER_MCP_URL = "x-mcp-url";
|
|
17
|
+
/**
|
|
18
|
+
* SAP ABAP Connection Headers
|
|
19
|
+
* Used for SAP ABAP system connection
|
|
20
|
+
*/
|
|
21
|
+
export declare const HEADER_SAP_DESTINATION = "x-sap-destination";
|
|
22
|
+
/**
|
|
23
|
+
* SAP Destination Header (for Cloud ABAP connection via SAP destination service)
|
|
24
|
+
* This header is used to specify the SAP destination name for connecting to ABAP systems on SAP Cloud.
|
|
25
|
+
* The URL is automatically derived from the destination service key.
|
|
26
|
+
* This is a separate constant to emphasize its specific purpose for SAP destination service.
|
|
27
|
+
*/
|
|
28
|
+
export declare const HEADER_SAP_DESTINATION_SERVICE = "x-sap-destination";
|
|
29
|
+
export declare const HEADER_SAP_URL = "x-sap-url";
|
|
30
|
+
export declare const HEADER_SAP_JWT_TOKEN = "x-sap-jwt-token";
|
|
31
|
+
export declare const HEADER_SAP_AUTH_TYPE = "x-sap-auth-type";
|
|
32
|
+
export declare const HEADER_SAP_CLIENT = "x-sap-client";
|
|
33
|
+
export declare const HEADER_SAP_LOGIN = "x-sap-login";
|
|
34
|
+
export declare const HEADER_SAP_PASSWORD = "x-sap-password";
|
|
35
|
+
export declare const HEADER_SAP_REFRESH_TOKEN = "x-sap-refresh-token";
|
|
36
|
+
/**
|
|
37
|
+
* UAA/XSUAA Headers
|
|
38
|
+
* Used for UAA/XSUAA authentication
|
|
39
|
+
*/
|
|
40
|
+
export declare const HEADER_SAP_UAA_URL = "x-sap-uaa-url";
|
|
41
|
+
export declare const HEADER_UAA_URL = "uaa-url";
|
|
42
|
+
export declare const HEADER_SAP_UAA_CLIENT_ID = "x-sap-uaa-client-id";
|
|
43
|
+
export declare const HEADER_UAA_CLIENT_ID = "uaa-client-id";
|
|
44
|
+
export declare const HEADER_SAP_UAA_CLIENT_SECRET = "x-sap-uaa-client-secret";
|
|
45
|
+
export declare const HEADER_UAA_CLIENT_SECRET = "uaa-client-secret";
|
|
46
|
+
/**
|
|
47
|
+
* Standard HTTP Headers
|
|
48
|
+
*/
|
|
49
|
+
export declare const HEADER_AUTHORIZATION = "Authorization";
|
|
50
|
+
export declare const HEADER_CONTENT_TYPE = "Content-Type";
|
|
51
|
+
export declare const HEADER_ACCEPT = "Accept";
|
|
52
|
+
/**
|
|
53
|
+
* Header Groups
|
|
54
|
+
* Useful for iterating over related headers
|
|
55
|
+
*/
|
|
56
|
+
/**
|
|
57
|
+
* All proxy routing headers
|
|
58
|
+
*/
|
|
59
|
+
export declare const PROXY_ROUTING_HEADERS: readonly ["x-btp-destination", "x-mcp-destination", "x-mcp-url"];
|
|
60
|
+
/**
|
|
61
|
+
* All SAP ABAP connection headers
|
|
62
|
+
*/
|
|
63
|
+
export declare const SAP_CONNECTION_HEADERS: readonly ["x-sap-destination", "x-sap-url", "x-sap-jwt-token", "x-sap-auth-type", "x-sap-client", "x-sap-login", "x-sap-password", "x-sap-refresh-token"];
|
|
64
|
+
/**
|
|
65
|
+
* All UAA/XSUAA headers
|
|
66
|
+
*/
|
|
67
|
+
export declare const UAA_HEADERS: readonly ["x-sap-uaa-url", "uaa-url", "x-sap-uaa-client-id", "uaa-client-id", "x-sap-uaa-client-secret", "uaa-client-secret"];
|
|
68
|
+
/**
|
|
69
|
+
* Headers that should be preserved from original request (not modified by proxy)
|
|
70
|
+
*/
|
|
71
|
+
export declare const PRESERVED_HEADERS: readonly ["x-sap-destination", "x-sap-client"];
|
|
72
|
+
/**
|
|
73
|
+
* Headers that are modified/added by proxy when destinations are present
|
|
74
|
+
*/
|
|
75
|
+
export declare const PROXY_MODIFIED_HEADERS: readonly ["Authorization", "x-sap-jwt-token", "x-sap-url", "x-sap-auth-type"];
|
|
76
|
+
/**
|
|
77
|
+
* Authentication type values
|
|
78
|
+
*/
|
|
79
|
+
export declare const AUTH_TYPE_JWT = "jwt";
|
|
80
|
+
export declare const AUTH_TYPE_BASIC = "basic";
|
|
81
|
+
export declare const AUTH_TYPE_XSUAA = "xsuaa";
|
|
82
|
+
/**
|
|
83
|
+
* Valid authentication types
|
|
84
|
+
*/
|
|
85
|
+
export declare const AUTH_TYPES: readonly ["jwt", "basic", "xsuaa"];
|
|
86
|
+
export type AuthType = typeof AUTH_TYPES[number];
|
|
87
|
+
//# sourceMappingURL=Headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../src/Headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAC1D,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAC1D,eAAO,MAAM,cAAc,cAAc,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,sBAAsB,CAAC;AAC1D;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,sBAAsB,CAAC;AAClE,eAAO,MAAM,cAAc,cAAc,CAAC;AAC1C,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AACtD,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AACtD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAChD,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAC9C,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AACpD,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAClD,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,wBAAwB,wBAAwB,CAAC;AAC9D,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AACtE,eAAO,MAAM,wBAAwB,sBAAsB,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAClD,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB,kEAIxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB,2JASzB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,WAAW,+HAOd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB,gDAGpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,sBAAsB,+EAKzB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,eAAe,UAAU,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,UAAU,oCAIb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/Headers.js
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
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 = exports.PROXY_MODIFIED_HEADERS = exports.PRESERVED_HEADERS = exports.UAA_HEADERS = exports.SAP_CONNECTION_HEADERS = exports.PROXY_ROUTING_HEADERS = exports.HEADER_ACCEPT = exports.HEADER_CONTENT_TYPE = exports.HEADER_AUTHORIZATION = exports.HEADER_UAA_CLIENT_SECRET = exports.HEADER_SAP_UAA_CLIENT_SECRET = exports.HEADER_UAA_CLIENT_ID = exports.HEADER_SAP_UAA_CLIENT_ID = exports.HEADER_UAA_URL = exports.HEADER_SAP_UAA_URL = exports.HEADER_SAP_REFRESH_TOKEN = exports.HEADER_SAP_PASSWORD = exports.HEADER_SAP_LOGIN = exports.HEADER_SAP_CLIENT = exports.HEADER_SAP_AUTH_TYPE = exports.HEADER_SAP_JWT_TOKEN = exports.HEADER_SAP_URL = exports.HEADER_SAP_DESTINATION_SERVICE = exports.HEADER_SAP_DESTINATION = exports.HEADER_MCP_URL = exports.HEADER_MCP_DESTINATION = exports.HEADER_BTP_DESTINATION = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* Proxy Routing Headers
|
|
15
|
+
* Used by the proxy to determine routing and authentication
|
|
16
|
+
*/
|
|
17
|
+
exports.HEADER_BTP_DESTINATION = 'x-btp-destination';
|
|
18
|
+
exports.HEADER_MCP_DESTINATION = 'x-mcp-destination';
|
|
19
|
+
exports.HEADER_MCP_URL = 'x-mcp-url';
|
|
20
|
+
/**
|
|
21
|
+
* SAP ABAP Connection Headers
|
|
22
|
+
* Used for SAP ABAP system connection
|
|
23
|
+
*/
|
|
24
|
+
exports.HEADER_SAP_DESTINATION = 'x-sap-destination';
|
|
25
|
+
/**
|
|
26
|
+
* SAP Destination Header (for Cloud ABAP connection via SAP destination service)
|
|
27
|
+
* This header is used to specify the SAP destination name for connecting to ABAP systems on SAP Cloud.
|
|
28
|
+
* The URL is automatically derived from the destination service key.
|
|
29
|
+
* This is a separate constant to emphasize its specific purpose for SAP destination service.
|
|
30
|
+
*/
|
|
31
|
+
exports.HEADER_SAP_DESTINATION_SERVICE = 'x-sap-destination';
|
|
32
|
+
exports.HEADER_SAP_URL = 'x-sap-url';
|
|
33
|
+
exports.HEADER_SAP_JWT_TOKEN = 'x-sap-jwt-token';
|
|
34
|
+
exports.HEADER_SAP_AUTH_TYPE = 'x-sap-auth-type';
|
|
35
|
+
exports.HEADER_SAP_CLIENT = 'x-sap-client';
|
|
36
|
+
exports.HEADER_SAP_LOGIN = 'x-sap-login';
|
|
37
|
+
exports.HEADER_SAP_PASSWORD = 'x-sap-password';
|
|
38
|
+
exports.HEADER_SAP_REFRESH_TOKEN = 'x-sap-refresh-token';
|
|
39
|
+
/**
|
|
40
|
+
* UAA/XSUAA Headers
|
|
41
|
+
* Used for UAA/XSUAA authentication
|
|
42
|
+
*/
|
|
43
|
+
exports.HEADER_SAP_UAA_URL = 'x-sap-uaa-url';
|
|
44
|
+
exports.HEADER_UAA_URL = 'uaa-url'; // Alternative name
|
|
45
|
+
exports.HEADER_SAP_UAA_CLIENT_ID = 'x-sap-uaa-client-id';
|
|
46
|
+
exports.HEADER_UAA_CLIENT_ID = 'uaa-client-id'; // Alternative name
|
|
47
|
+
exports.HEADER_SAP_UAA_CLIENT_SECRET = 'x-sap-uaa-client-secret';
|
|
48
|
+
exports.HEADER_UAA_CLIENT_SECRET = 'uaa-client-secret'; // Alternative name
|
|
49
|
+
/**
|
|
50
|
+
* Standard HTTP Headers
|
|
51
|
+
*/
|
|
52
|
+
exports.HEADER_AUTHORIZATION = 'Authorization';
|
|
53
|
+
exports.HEADER_CONTENT_TYPE = 'Content-Type';
|
|
54
|
+
exports.HEADER_ACCEPT = 'Accept';
|
|
55
|
+
/**
|
|
56
|
+
* Header Groups
|
|
57
|
+
* Useful for iterating over related headers
|
|
58
|
+
*/
|
|
59
|
+
/**
|
|
60
|
+
* All proxy routing headers
|
|
61
|
+
*/
|
|
62
|
+
exports.PROXY_ROUTING_HEADERS = [
|
|
63
|
+
exports.HEADER_BTP_DESTINATION,
|
|
64
|
+
exports.HEADER_MCP_DESTINATION,
|
|
65
|
+
exports.HEADER_MCP_URL,
|
|
66
|
+
];
|
|
67
|
+
/**
|
|
68
|
+
* All SAP ABAP connection headers
|
|
69
|
+
*/
|
|
70
|
+
exports.SAP_CONNECTION_HEADERS = [
|
|
71
|
+
exports.HEADER_SAP_DESTINATION,
|
|
72
|
+
exports.HEADER_SAP_URL,
|
|
73
|
+
exports.HEADER_SAP_JWT_TOKEN,
|
|
74
|
+
exports.HEADER_SAP_AUTH_TYPE,
|
|
75
|
+
exports.HEADER_SAP_CLIENT,
|
|
76
|
+
exports.HEADER_SAP_LOGIN,
|
|
77
|
+
exports.HEADER_SAP_PASSWORD,
|
|
78
|
+
exports.HEADER_SAP_REFRESH_TOKEN,
|
|
79
|
+
];
|
|
80
|
+
/**
|
|
81
|
+
* All UAA/XSUAA headers
|
|
82
|
+
*/
|
|
83
|
+
exports.UAA_HEADERS = [
|
|
84
|
+
exports.HEADER_SAP_UAA_URL,
|
|
85
|
+
exports.HEADER_UAA_URL,
|
|
86
|
+
exports.HEADER_SAP_UAA_CLIENT_ID,
|
|
87
|
+
exports.HEADER_UAA_CLIENT_ID,
|
|
88
|
+
exports.HEADER_SAP_UAA_CLIENT_SECRET,
|
|
89
|
+
exports.HEADER_UAA_CLIENT_SECRET,
|
|
90
|
+
];
|
|
91
|
+
/**
|
|
92
|
+
* Headers that should be preserved from original request (not modified by proxy)
|
|
93
|
+
*/
|
|
94
|
+
exports.PRESERVED_HEADERS = [
|
|
95
|
+
exports.HEADER_SAP_DESTINATION,
|
|
96
|
+
exports.HEADER_SAP_CLIENT,
|
|
97
|
+
];
|
|
98
|
+
/**
|
|
99
|
+
* Headers that are modified/added by proxy when destinations are present
|
|
100
|
+
*/
|
|
101
|
+
exports.PROXY_MODIFIED_HEADERS = [
|
|
102
|
+
exports.HEADER_AUTHORIZATION, // Added when BTP destination is present
|
|
103
|
+
exports.HEADER_SAP_JWT_TOKEN, // Added when ABAP destination is present
|
|
104
|
+
exports.HEADER_SAP_URL, // Added when ABAP destination is present
|
|
105
|
+
exports.HEADER_SAP_AUTH_TYPE, // Added when ABAP destination is present (set to 'jwt')
|
|
106
|
+
];
|
|
107
|
+
/**
|
|
108
|
+
* Authentication type values
|
|
109
|
+
*/
|
|
110
|
+
exports.AUTH_TYPE_JWT = 'jwt';
|
|
111
|
+
exports.AUTH_TYPE_BASIC = 'basic';
|
|
112
|
+
exports.AUTH_TYPE_XSUAA = 'xsuaa';
|
|
113
|
+
/**
|
|
114
|
+
* Valid authentication types
|
|
115
|
+
*/
|
|
116
|
+
exports.AUTH_TYPES = [
|
|
117
|
+
exports.AUTH_TYPE_JWT,
|
|
118
|
+
exports.AUTH_TYPE_BASIC,
|
|
119
|
+
exports.AUTH_TYPE_XSUAA,
|
|
120
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,5 @@ export type { IHeaderValidationResult } from './validation/IHeaderValidationResu
|
|
|
25
25
|
export { AuthMethodPriority } from './validation/IValidatedAuthConfig';
|
|
26
26
|
export type { ITokenRefreshResult } from './utils/ITokenRefreshResult';
|
|
27
27
|
export type { ITimeoutConfig } from './utils/ITimeoutConfig';
|
|
28
|
+
export * from './Headers';
|
|
28
29
|
//# 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;;;;;GAKG;AAGH,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG3E,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAG5E,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,YAAY,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAG3E,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGtE,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAG5E,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,YAAY,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,23 @@
|
|
|
5
5
|
* Shared interfaces for MCP ABAP ADT packages
|
|
6
6
|
* All interfaces follow the convention of starting with 'I' prefix
|
|
7
7
|
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
8
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
23
|
exports.AuthMethodPriority = void 0;
|
|
10
24
|
var IValidatedAuthConfig_1 = require("./validation/IValidatedAuthConfig");
|
|
11
25
|
Object.defineProperty(exports, "AuthMethodPriority", { enumerable: true, get: function () { return IValidatedAuthConfig_1.AuthMethodPriority; } });
|
|
26
|
+
// Headers domain
|
|
27
|
+
__exportStar(require("./Headers"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Logger interface for
|
|
3
|
-
* Allows
|
|
2
|
+
* Logger interface for MCP ABAP ADT packages
|
|
3
|
+
* Allows packages to be independent of specific logger implementation
|
|
4
4
|
*/
|
|
5
5
|
export interface ILogger {
|
|
6
6
|
/**
|
|
@@ -19,17 +19,5 @@ export interface ILogger {
|
|
|
19
19
|
* Log debug message
|
|
20
20
|
*/
|
|
21
21
|
debug(message: string, meta?: any): void;
|
|
22
|
-
/**
|
|
23
|
-
* Log CSRF token operations
|
|
24
|
-
* @param action - Type of CSRF operation: "fetch", "retry", "success", or "error"
|
|
25
|
-
* @param message - Log message
|
|
26
|
-
* @param meta - Additional metadata
|
|
27
|
-
*/
|
|
28
|
-
csrfToken?(action: "fetch" | "retry" | "success" | "error", message: string, meta?: any): void;
|
|
29
|
-
/**
|
|
30
|
-
* Log TLS configuration
|
|
31
|
-
* @param rejectUnauthorized - Whether TLS certificate validation is enabled
|
|
32
|
-
*/
|
|
33
|
-
tlsConfig?(rejectUnauthorized: boolean): void;
|
|
34
22
|
}
|
|
35
23
|
//# sourceMappingURL=ILogger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILogger.d.ts","sourceRoot":"","sources":["../../src/logging/ILogger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ILogger.d.ts","sourceRoot":"","sources":["../../src/logging/ILogger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Options for token providers
|
|
3
|
+
*
|
|
4
|
+
* Used by ITokenProvider implementations to configure token acquisition behavior.
|
|
5
|
+
* All options are optional, allowing providers to use sensible defaults.
|
|
3
6
|
*/
|
|
4
7
|
import type { ILogger } from '../logging/ILogger';
|
|
5
8
|
export interface ITokenProviderOptions {
|
|
6
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Browser type for browser-based authentication
|
|
11
|
+
* Supported values: "chrome", "edge", "firefox", "system" (default), "none"
|
|
12
|
+
* - "system": Uses system default browser
|
|
13
|
+
* - "none": Does not open browser automatically (user must open URL manually)
|
|
14
|
+
*/
|
|
7
15
|
browser?: string;
|
|
8
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Logger instance for logging token provider operations
|
|
18
|
+
* Uses ILogger interface to allow any logger implementation
|
|
19
|
+
*/
|
|
9
20
|
logger?: ILogger;
|
|
10
21
|
}
|
|
11
22
|
//# sourceMappingURL=ITokenProviderOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITokenProviderOptions.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderOptions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ITokenProviderOptions.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderOptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-abap-adt/interfaces",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared interfaces for MCP ABAP ADT packages",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,4 +48,3 @@
|
|
|
48
48
|
"typescript": "^5.9.2"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|