@mcp-abap-adt/interfaces 0.1.15 → 0.1.17
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
CHANGED
|
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.17] - 2025-12-16
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Basic Authentication Support for IConnectionConfig**: Added support for basic auth (username/password) in addition to JWT tokens
|
|
14
|
+
- Added optional `username?: string` field for basic authentication (on-premise systems)
|
|
15
|
+
- Added optional `password?: string` field for basic authentication (on-premise systems)
|
|
16
|
+
- Added optional `authType?: 'basic' | 'jwt'` field to indicate authentication type
|
|
17
|
+
- Made `authorizationToken` optional (required for JWT auth, optional for basic auth)
|
|
18
|
+
- This enables on-premise systems to use `--mcp` parameter with basic auth instead of requiring JWT tokens
|
|
19
|
+
|
|
20
|
+
## [0.1.16] - 2025-12-13
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- **HTTP timeout docs**: Clarified `timeout` option in `IAdtOperationOptions` to explain behavior and mention `withLongPolling` interplay
|
|
24
|
+
- **VSCode spell checking**: Limited spell checker scope to project files to reduce false positives
|
|
25
|
+
|
|
10
26
|
## [0.1.15] - 2025-12-12
|
|
11
27
|
|
|
12
28
|
### Added
|
|
@@ -266,4 +282,3 @@ connection.setSessionState(state);
|
|
|
266
282
|
- `utils/` - Utility types and interfaces
|
|
267
283
|
|
|
268
284
|
[0.1.0]: https://github.com/fr0ster/mcp-abap-adt-interfaces/releases/tag/v0.1.0
|
|
269
|
-
|
package/dist/adt/IAdtObject.d.ts
CHANGED
|
@@ -78,13 +78,19 @@ export interface IAdtOperationOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
xmlContent?: string;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* HTTP request timeout for operations in milliseconds
|
|
82
82
|
* @default 1000 (1 second)
|
|
83
83
|
*
|
|
84
|
-
*
|
|
84
|
+
* Note: This timeout is for HTTP request completion, not for waiting object readiness.
|
|
85
|
+
* For waiting object readiness after create/update/activate operations, use `withLongPolling: true`
|
|
86
|
+
* in read operations instead of fixed timeouts.
|
|
87
|
+
*
|
|
88
|
+
* The `timeout` parameter controls how long to wait for HTTP responses from the server.
|
|
85
89
|
* Increase timeout for complex operations or slow systems.
|
|
86
90
|
*
|
|
87
91
|
* Example: timeout: 5000 for 5 seconds
|
|
92
|
+
*
|
|
93
|
+
* @see withLongPolling - Use long polling for waiting object readiness
|
|
88
94
|
*/
|
|
89
95
|
timeout?: number;
|
|
90
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAdtObject.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB;IAC9B,6BAA6B;;IAE7B,iFAAiF;;IAEjF,+BAA+B;;IAE/B,6BAA6B;;IAE7B,2BAA2B;;IAE3B,6BAA6B;;IAE7B,+BAA+B;;IAE/B,0BAA0B;;IAE1B,4BAA4B;;IAE5B,8BAA8B;;CAEtB,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB
|
|
1
|
+
{"version":3,"file":"IAdtObject.d.ts","sourceRoot":"","sources":["../../src/adt/IAdtObject.ts"],"names":[],"mappings":"AAAA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O,CAAC,EACxB,OAAO,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,OAAO,CAAA;KAAE,GACtC,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;;;;;;;;OASG;IACH,MAAM,CACJ,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEvD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzD;;;;;;OAMG;IACH,KAAK,CACH,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC,CAAC;IAExB;;;;;;;OAOG;IACH,aAAa,CACX,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,OAAO,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,OAAO,CAAA;KAAE,GACtC,OAAO,CAAC,WAAW,CAAC,CAAC;CACzB"}
|
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
export interface IConnectionConfig {
|
|
6
6
|
/** Service URL (SAP/ABAP/MCP URL) - undefined for XSUAA if not provided */
|
|
7
7
|
serviceUrl?: string;
|
|
8
|
-
/** Authorization token (JWT token) */
|
|
9
|
-
authorizationToken
|
|
8
|
+
/** Authorization token (JWT token) - required for JWT auth, optional for basic auth */
|
|
9
|
+
authorizationToken?: string;
|
|
10
|
+
/** Username for basic authentication - required for basic auth, optional for JWT auth */
|
|
11
|
+
username?: string;
|
|
12
|
+
/** Password for basic authentication - required for basic auth, optional for JWT auth */
|
|
13
|
+
password?: string;
|
|
14
|
+
/** Authentication type - 'basic' for on-premise, 'jwt' for cloud */
|
|
15
|
+
authType?: 'basic' | 'jwt';
|
|
10
16
|
/** SAP client number (optional, for ABAP/BTP) */
|
|
11
17
|
sapClient?: string;
|
|
12
18
|
/** Language (optional, for ABAP/BTP) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IConnectionConfig.d.ts","sourceRoot":"","sources":["../../src/auth/IConnectionConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,
|
|
1
|
+
{"version":3,"file":"IConnectionConfig.d.ts","sourceRoot":"","sources":["../../src/auth/IConnectionConfig.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yFAAyF;IACzF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|