@mcp-abap-adt/interfaces-adt 8.0.0 → 10.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 (133) hide show
  1. package/CHANGELOG.md +123 -0
  2. package/README.md +109 -13
  3. package/dist/adt/IAdtAbapGit.d.ts +30 -8
  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 +30 -6
  8. package/dist/adt/IAdtFeatureToggle.d.ts.map +1 -1
  9. package/dist/adt/IAdtObject.d.ts +20 -3
  10. package/dist/adt/IAdtObject.d.ts.map +1 -1
  11. package/dist/adt/IAdtTransport.d.ts +5 -2
  12. package/dist/adt/IAdtTransport.d.ts.map +1 -1
  13. package/dist/adt/IAdtUnitTest.d.ts +14 -4
  14. package/dist/adt/IAdtUnitTest.d.ts.map +1 -1
  15. package/dist/adt/IAdtUtilities.d.ts +84 -21
  16. package/dist/adt/IAdtUtilities.d.ts.map +1 -1
  17. package/dist/connection/ITimeoutConfig.d.ts +15 -0
  18. package/dist/connection/ITimeoutConfig.d.ts.map +1 -0
  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 +11 -36
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +10 -23
  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 -5
  50. package/dist/Headers.d.ts +0 -38
  51. package/dist/Headers.d.ts.map +0 -1
  52. package/dist/Headers.js +0 -43
  53. package/dist/adt/AdtTypes.d.ts +0 -40
  54. package/dist/adt/AdtTypes.d.ts.map +0 -1
  55. package/dist/adt/AdtTypes.js +0 -5
  56. package/dist/auth/AssertionErrorCodes.d.ts +0 -15
  57. package/dist/auth/AssertionErrorCodes.d.ts.map +0 -1
  58. package/dist/auth/AssertionErrorCodes.js +0 -16
  59. package/dist/auth/AuthType.d.ts +0 -5
  60. package/dist/auth/AuthType.d.ts.map +0 -1
  61. package/dist/auth/IAssertionValidator.d.ts +0 -100
  62. package/dist/auth/IAssertionValidator.d.ts.map +0 -1
  63. package/dist/auth/IAssertionValidator.js +0 -10
  64. package/dist/auth/IAuthorizationConfig.d.ts +0 -15
  65. package/dist/auth/IAuthorizationConfig.d.ts.map +0 -1
  66. package/dist/auth/IAuthorizationConfig.js +0 -2
  67. package/dist/auth/IAuthorizationStrategy.d.ts +0 -59
  68. package/dist/auth/IAuthorizationStrategy.d.ts.map +0 -1
  69. package/dist/auth/IAuthorizationStrategy.js +0 -12
  70. package/dist/auth/ICallbackServer.d.ts +0 -139
  71. package/dist/auth/ICallbackServer.d.ts.map +0 -1
  72. package/dist/auth/ICallbackServer.js +0 -2
  73. package/dist/auth/ICertificateMaterialLoader.d.ts +0 -7
  74. package/dist/auth/ICertificateMaterialLoader.d.ts.map +0 -1
  75. package/dist/auth/ICertificateMaterialLoader.js +0 -2
  76. package/dist/auth/IConfig.d.ts +0 -8
  77. package/dist/auth/IConfig.d.ts.map +0 -1
  78. package/dist/auth/IConfig.js +0 -2
  79. package/dist/auth/IConnectionConfig.d.ts +0 -23
  80. package/dist/auth/IConnectionConfig.d.ts.map +0 -1
  81. package/dist/auth/IConnectionConfig.js +0 -2
  82. package/dist/sap/ISapConfig.d.ts +0 -22
  83. package/dist/sap/ISapConfig.d.ts.map +0 -1
  84. package/dist/sap/ISapConfig.js +0 -2
  85. package/dist/sap/SapAuthType.d.ts +0 -3
  86. package/dist/sap/SapAuthType.d.ts.map +0 -1
  87. package/dist/sap/SapAuthType.js +0 -2
  88. package/dist/serviceKey/IServiceKeyStore.d.ts +0 -31
  89. package/dist/serviceKey/IServiceKeyStore.d.ts.map +0 -1
  90. package/dist/serviceKey/IServiceKeyStore.js +0 -7
  91. package/dist/session/ISessionStore.d.ts +0 -59
  92. package/dist/session/ISessionStore.d.ts.map +0 -1
  93. package/dist/session/ISessionStore.js +0 -7
  94. package/dist/store/ISessionState.d.ts +0 -11
  95. package/dist/store/ISessionState.d.ts.map +0 -1
  96. package/dist/store/ISessionState.js +0 -2
  97. package/dist/store/ISessionStorage.d.ts +0 -26
  98. package/dist/store/ISessionStorage.d.ts.map +0 -1
  99. package/dist/store/ISessionStorage.js +0 -2
  100. package/dist/store/StoreErrorCodes.d.ts +0 -12
  101. package/dist/store/StoreErrorCodes.d.ts.map +0 -1
  102. package/dist/store/StoreErrorCodes.js +0 -13
  103. package/dist/token/AuthType.d.ts +0 -43
  104. package/dist/token/AuthType.d.ts.map +0 -1
  105. package/dist/token/AuthType.js +0 -41
  106. package/dist/token/ITokenProvider.d.ts +0 -27
  107. package/dist/token/ITokenProvider.d.ts.map +0 -1
  108. package/dist/token/ITokenProvider.js +0 -8
  109. package/dist/token/ITokenProviderOptions.d.ts +0 -23
  110. package/dist/token/ITokenProviderOptions.d.ts.map +0 -1
  111. package/dist/token/ITokenProviderOptions.js +0 -2
  112. package/dist/token/ITokenProviderResult.d.ts +0 -12
  113. package/dist/token/ITokenProviderResult.d.ts.map +0 -1
  114. package/dist/token/ITokenProviderResult.js +0 -2
  115. package/dist/token/ITokenRefresher.d.ts +0 -39
  116. package/dist/token/ITokenRefresher.d.ts.map +0 -1
  117. package/dist/token/ITokenRefresher.js +0 -12
  118. package/dist/token/ITokenResult.d.ts +0 -36
  119. package/dist/token/ITokenResult.d.ts.map +0 -1
  120. package/dist/token/ITokenResult.js +0 -7
  121. package/dist/token/TokenProviderErrorCodes.d.ts +0 -26
  122. package/dist/token/TokenProviderErrorCodes.d.ts.map +0 -1
  123. package/dist/token/TokenProviderErrorCodes.js +0 -24
  124. package/dist/utils/ITokenRefreshResult.d.ts +0 -8
  125. package/dist/utils/ITokenRefreshResult.d.ts.map +0 -1
  126. package/dist/utils/ITokenRefreshResult.js +0 -2
  127. package/dist/validation/IHeaderValidationResult.d.ts +0 -15
  128. package/dist/validation/IHeaderValidationResult.d.ts.map +0 -1
  129. package/dist/validation/IHeaderValidationResult.js +0 -2
  130. package/dist/validation/IValidatedAuthConfig.d.ts +0 -46
  131. package/dist/validation/IValidatedAuthConfig.d.ts.map +0 -1
  132. package/dist/validation/IValidatedAuthConfig.js +0 -15
  133. /package/dist/{auth/AuthType.js → connection/ITimeoutConfig.js} +0 -0
@@ -1,22 +0,0 @@
1
- import type { SapAuthType, SapConnectionType } from './SapAuthType';
2
- export interface ISapConfig {
3
- url: string;
4
- client?: string;
5
- authType: SapAuthType;
6
- connectionType?: SapConnectionType;
7
- username?: string;
8
- password?: string;
9
- jwtToken?: string;
10
- refreshToken?: string;
11
- sessionCookies?: string;
12
- certPath?: string;
13
- certKeyPath?: string;
14
- certPfxPath?: string;
15
- certPassphrase?: string;
16
- kerberosSpn?: string;
17
- kerberosService?: string;
18
- uaaUrl?: string;
19
- uaaClientId?: string;
20
- uaaClientSecret?: string;
21
- }
22
- //# sourceMappingURL=ISapConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISapConfig.d.ts","sourceRoot":"","sources":["../../src/sap/ISapConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,WAAW,CAAC;IACtB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export type SapAuthType = 'basic' | 'jwt' | 'saml' | 'certificate' | 'kerberos';
2
- export type SapConnectionType = 'http' | 'rfc';
3
- //# sourceMappingURL=SapAuthType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SapAuthType.d.ts","sourceRoot":"","sources":["../../src/sap/SapAuthType.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,CAAC;AAEhF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- /**
2
- * Interface for storing and retrieving service keys
3
- *
4
- * Service keys contain UAA credentials and connection URLs.
5
- */
6
- import type { IAuthorizationConfig } from '../auth/IAuthorizationConfig';
7
- import type { IConfig } from '../auth/IConfig';
8
- import type { IConnectionConfig } from '../auth/IConnectionConfig';
9
- export interface IServiceKeyStore {
10
- /**
11
- * Get raw service key for destination
12
- * @param destination Destination name (e.g., "TRIAL")
13
- * @returns Service key object (implementation-specific) or null if not found
14
- */
15
- getServiceKey(destination: string): Promise<IConfig | null>;
16
- /**
17
- * Get authorization configuration from service key
18
- * Returns values needed for obtaining and refreshing tokens
19
- * @param destination Destination name (e.g., "TRIAL")
20
- * @returns IAuthorizationConfig with actual values or null if not found
21
- */
22
- getAuthorizationConfig(destination: string): Promise<IAuthorizationConfig | null>;
23
- /**
24
- * Get connection configuration from service key
25
- * Returns values needed for connecting to services
26
- * @param destination Destination name (e.g., "TRIAL")
27
- * @returns IConnectionConfig with actual values or null if not found
28
- */
29
- getConnectionConfig(destination: string): Promise<IConnectionConfig | null>;
30
- }
31
- //# sourceMappingURL=IServiceKeyStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IServiceKeyStore.d.ts","sourceRoot":"","sources":["../../src/serviceKey/IServiceKeyStore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAE5D;;;;;OAKG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CAC7E"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Interface for storing and retrieving service keys
4
- *
5
- * Service keys contain UAA credentials and connection URLs.
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,59 +0,0 @@
1
- /**
2
- * Interface for session stores - stores and retrieves session data
3
- *
4
- * Session stores handle loading, saving, and managing session data (tokens, configuration).
5
- */
6
- import type { IAuthorizationConfig } from '../auth/IAuthorizationConfig';
7
- import type { IConfig } from '../auth/IConfig';
8
- import type { IConnectionConfig } from '../auth/IConnectionConfig';
9
- export interface ISessionStore {
10
- /**
11
- * Load session configuration for destination
12
- * Returns optional composition of IAuthorizationConfig and IConnectionConfig
13
- * Can contain either authorization config, or connection config, or both
14
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
15
- * @returns IConfig with actual values or null if not found
16
- */
17
- loadSession(destination: string): Promise<IConfig | null>;
18
- /**
19
- * Save session configuration for destination
20
- * Accepts IConfig (optional composition) or internal representation (for backward compatibility)
21
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
22
- * @param config IConfig or internal session configuration to save
23
- */
24
- saveSession(destination: string, config: IConfig | unknown): Promise<void>;
25
- /**
26
- * Delete session for destination (optional)
27
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
28
- */
29
- deleteSession?(destination: string): Promise<void>;
30
- /**
31
- * Get authorization configuration with actual values (not file paths)
32
- * Returns values needed for obtaining and refreshing tokens
33
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
34
- * @returns IAuthorizationConfig with actual values or null if not found
35
- */
36
- getAuthorizationConfig(destination: string): Promise<IAuthorizationConfig | null>;
37
- /**
38
- * Get connection configuration with actual values (not file paths)
39
- * Returns values needed for connecting to services
40
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
41
- * @returns IConnectionConfig with actual values or null if not found
42
- */
43
- getConnectionConfig(destination: string): Promise<IConnectionConfig | null>;
44
- /**
45
- * Set authorization configuration
46
- * Updates values needed for obtaining and refreshing tokens
47
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
48
- * @param config IAuthorizationConfig with values to set
49
- */
50
- setAuthorizationConfig(destination: string, config: IAuthorizationConfig): Promise<void>;
51
- /**
52
- * Set connection configuration
53
- * Updates values needed for connecting to services
54
- * @param destination Destination name (e.g., "TRIAL" or "mcp")
55
- * @param config IConnectionConfig with values to set
56
- */
57
- setConnectionConfig(destination: string, config: IConnectionConfig): Promise<void>;
58
- }
59
- //# sourceMappingURL=ISessionStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISessionStore.d.ts","sourceRoot":"","sources":["../../src/session/ISessionStore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAE1D;;;;;OAKG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;;OAGG;IACH,aAAa,CAAC,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;;;OAKG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;;;OAKG;IACH,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAE5E;;;;;OAKG;IACH,sBAAsB,CACpB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;OAKG;IACH,mBAAmB,CACjB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Interface for session stores - stores and retrieves session data
4
- *
5
- * Session stores handle loading, saving, and managing session data (tokens, configuration).
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * Session state interface for stateful connections
3
- * Contains cookies and CSRF token that need to be preserved across requests
4
- */
5
- /** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
6
- export interface ISessionState {
7
- cookies: string | null;
8
- csrfToken: string | null;
9
- cookieStore: Record<string, string>;
10
- }
11
- //# sourceMappingURL=ISessionState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISessionState.d.ts","sourceRoot":"","sources":["../../src/store/ISessionState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- /**
2
- * Interface for storing and retrieving session state
3
- * Allows connection layer to persist session state (cookies, CSRF token) externally
4
- */
5
- import type { ISessionState } from './ISessionState';
6
- /** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
7
- export interface ISessionStorage {
8
- /**
9
- * Save session state for a given session ID
10
- * @param sessionId - Unique session identifier
11
- * @param state - Session state to save
12
- */
13
- save(sessionId: string, state: ISessionState): Promise<void>;
14
- /**
15
- * Load session state for a given session ID
16
- * @param sessionId - Unique session identifier
17
- * @returns Session state or null if not found
18
- */
19
- load(sessionId: string): Promise<ISessionState | null>;
20
- /**
21
- * Delete session state for a given session ID
22
- * @param sessionId - Unique session identifier
23
- */
24
- delete(sessionId: string): Promise<void>;
25
- }
26
- //# sourceMappingURL=ISessionStorage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISessionStorage.d.ts","sourceRoot":"","sources":["../../src/store/ISessionStorage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,4FAA4F;AAC5F,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;;OAIG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAEvD;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * Error codes for store operations
3
- * Used by auth-stores package to provide typed errors to auth-broker
4
- */
5
- export declare const STORE_ERROR_CODES: {
6
- readonly FILE_NOT_FOUND: "FILE_NOT_FOUND";
7
- readonly PARSE_ERROR: "PARSE_ERROR";
8
- readonly INVALID_CONFIG: "INVALID_CONFIG";
9
- readonly STORAGE_ERROR: "STORAGE_ERROR";
10
- };
11
- export type StoreErrorCode = (typeof STORE_ERROR_CODES)[keyof typeof STORE_ERROR_CODES];
12
- //# sourceMappingURL=StoreErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StoreErrorCodes.d.ts","sourceRoot":"","sources":["../../src/store/StoreErrorCodes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AAEX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- /**
3
- * Error codes for store operations
4
- * Used by auth-stores package to provide typed errors to auth-broker
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.STORE_ERROR_CODES = void 0;
8
- exports.STORE_ERROR_CODES = {
9
- FILE_NOT_FOUND: 'FILE_NOT_FOUND',
10
- PARSE_ERROR: 'PARSE_ERROR',
11
- INVALID_CONFIG: 'INVALID_CONFIG',
12
- STORAGE_ERROR: 'STORAGE_ERROR',
13
- };
@@ -1,43 +0,0 @@
1
- /**
2
- * OAuth2 Grant Types
3
- *
4
- * Constants for different OAuth2 authentication flows (grant types)
5
- */
6
- /**
7
- * Authorization Code grant type
8
- * Standard OAuth2 flow with browser-based authorization
9
- */
10
- export declare const AUTH_TYPE_AUTHORIZATION_CODE: "authorization_code";
11
- /**
12
- * Authorization Code with PKCE grant type
13
- * More secure variant for public clients
14
- */
15
- export declare const AUTH_TYPE_AUTHORIZATION_CODE_PKCE: "authorization_code_pkce";
16
- /**
17
- * Password Credentials grant type
18
- * Direct username/password authentication
19
- */
20
- export declare const AUTH_TYPE_PASSWORD: "password";
21
- /**
22
- * Client Credentials grant type
23
- * Service-to-service authentication
24
- */
25
- export declare const AUTH_TYPE_CLIENT_CREDENTIALS: "client_credentials";
26
- /**
27
- * User token passthrough (external token)
28
- */
29
- export declare const AUTH_TYPE_USER_TOKEN: "user_token";
30
- /**
31
- * Client X509 (mTLS) authentication
32
- */
33
- export declare const AUTH_TYPE_CLIENT_X509: "client_x509";
34
- /**
35
- * SAML 2.0 Bearer Assertion grant type
36
- * Used to exchange SAML assertions for OAuth2 access tokens
37
- */
38
- export declare const AUTH_TYPE_SAML2_BEARER: "saml2_bearer";
39
- /**
40
- * Union type for all OAuth2 grant types
41
- */
42
- export type OAuth2GrantType = typeof AUTH_TYPE_AUTHORIZATION_CODE | typeof AUTH_TYPE_AUTHORIZATION_CODE_PKCE | typeof AUTH_TYPE_PASSWORD | typeof AUTH_TYPE_CLIENT_CREDENTIALS | typeof AUTH_TYPE_USER_TOKEN | typeof AUTH_TYPE_CLIENT_X509 | typeof AUTH_TYPE_SAML2_BEARER;
43
- //# sourceMappingURL=AuthType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthType.d.ts","sourceRoot":"","sources":["../../src/token/AuthType.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAG,oBAA6B,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAC5C,yBAAkC,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAG,UAAmB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAG,oBAA6B,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAG,YAAqB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAG,aAAsB,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAG,cAAuB,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,4BAA4B,GACnC,OAAO,iCAAiC,GACxC,OAAO,kBAAkB,GACzB,OAAO,4BAA4B,GACnC,OAAO,oBAAoB,GAC3B,OAAO,qBAAqB,GAC5B,OAAO,sBAAsB,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /**
3
- * OAuth2 Grant Types
4
- *
5
- * Constants for different OAuth2 authentication flows (grant types)
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.AUTH_TYPE_SAML2_BEARER = exports.AUTH_TYPE_CLIENT_X509 = exports.AUTH_TYPE_USER_TOKEN = exports.AUTH_TYPE_CLIENT_CREDENTIALS = exports.AUTH_TYPE_PASSWORD = exports.AUTH_TYPE_AUTHORIZATION_CODE_PKCE = exports.AUTH_TYPE_AUTHORIZATION_CODE = void 0;
9
- /**
10
- * Authorization Code grant type
11
- * Standard OAuth2 flow with browser-based authorization
12
- */
13
- exports.AUTH_TYPE_AUTHORIZATION_CODE = 'authorization_code';
14
- /**
15
- * Authorization Code with PKCE grant type
16
- * More secure variant for public clients
17
- */
18
- exports.AUTH_TYPE_AUTHORIZATION_CODE_PKCE = 'authorization_code_pkce';
19
- /**
20
- * Password Credentials grant type
21
- * Direct username/password authentication
22
- */
23
- exports.AUTH_TYPE_PASSWORD = 'password';
24
- /**
25
- * Client Credentials grant type
26
- * Service-to-service authentication
27
- */
28
- exports.AUTH_TYPE_CLIENT_CREDENTIALS = 'client_credentials';
29
- /**
30
- * User token passthrough (external token)
31
- */
32
- exports.AUTH_TYPE_USER_TOKEN = 'user_token';
33
- /**
34
- * Client X509 (mTLS) authentication
35
- */
36
- exports.AUTH_TYPE_CLIENT_X509 = 'client_x509';
37
- /**
38
- * SAML 2.0 Bearer Assertion grant type
39
- * Used to exchange SAML assertions for OAuth2 access tokens
40
- */
41
- exports.AUTH_TYPE_SAML2_BEARER = 'saml2_bearer';
@@ -1,27 +0,0 @@
1
- /**
2
- * Token Provider interface
3
- *
4
- * Stateful providers that manage token lifecycle internally.
5
- * The provider validates, refreshes, or re-authenticates as needed.
6
- */
7
- import type { ITokenResult } from './ITokenResult';
8
- /**
9
- * Interface for token providers (stateful)
10
- */
11
- export interface ITokenProvider {
12
- /**
13
- * Get tokens with automatic refresh/relogin logic
14
- *
15
- * Stateful providers cache tokens internally and handle refresh automatically.
16
- * Checks token expiration, refreshes if needed, or triggers login.
17
- */
18
- getTokens(): Promise<ITokenResult>;
19
- /**
20
- * Validate JWT token locally (optional)
21
- * @param token JWT token to validate
22
- * @param serviceUrl Service URL (optional, for services that require URL validation)
23
- * @returns Promise that resolves to true if token is valid, false otherwise
24
- */
25
- validateToken?(token: string, serviceUrl?: string): Promise<boolean>;
26
- }
27
- //# sourceMappingURL=ITokenProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenProvider.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProvider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IAEnC;;;;;OAKG;IACH,aAAa,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtE"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Token Provider interface
4
- *
5
- * Stateful providers that manage token lifecycle internally.
6
- * The provider validates, refreshes, or re-authenticates as needed.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- /**
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.
6
- */
7
- import type { ILogger } from '@mcp-abap-adt/interfaces-utils';
8
- export interface ITokenProviderOptions {
9
- /**
10
- * Browser type for browser-based authentication
11
- * Supported values: "chrome", "edge", "firefox", "system" (default), "none", "headless"
12
- * - "system": Uses system default browser (default)
13
- * - "headless": Does not open browser, logs URL and waits for manual callback (for SSH/remote sessions)
14
- * - "none": Does not open browser, immediately rejects with error (for automated tests)
15
- */
16
- browser?: string;
17
- /**
18
- * Logger instance for logging token provider operations
19
- * Uses ILogger interface to allow any logger implementation
20
- */
21
- logger?: ILogger;
22
- }
23
- //# sourceMappingURL=ITokenProviderOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenProviderOptions.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderOptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * Result from token provider
3
- */
4
- import type { IConnectionConfig } from '../auth/IConnectionConfig';
5
- /** Nothing imports this yet; it sits with the session and token contracts it belongs to. */
6
- export interface ITokenProviderResult {
7
- /** Connection configuration with authorization token */
8
- connectionConfig: IConnectionConfig;
9
- /** Refresh token (optional, for BTP/ABAP) */
10
- refreshToken?: string;
11
- }
12
- //# sourceMappingURL=ITokenProviderResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenProviderResult.d.ts","sourceRoot":"","sources":["../../src/token/ITokenProviderResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,gBAAgB,EAAE,iBAAiB,CAAC;IACpC,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- /**
2
- * Token Refresher interface
3
- *
4
- * Provides token management with automatic refresh capability.
5
- * Implementations are created by AuthBroker and injected into connections.
6
- *
7
- * This enables dependency injection of token refresh logic into connections,
8
- * allowing connections to focus on making requests while the refresher
9
- * handles all auth/token lifecycle concerns.
10
- */
11
- /**
12
- * Interface for token refresher
13
- *
14
- * Created by AuthBroker for a specific destination.
15
- * Injected into JwtAbapConnection to enable automatic token refresh.
16
- */
17
- export interface ITokenRefresher {
18
- /**
19
- * Get current valid token.
20
- *
21
- * May return cached token if still valid, or refresh if expired.
22
- * Implementation decides when to refresh based on token expiration.
23
- *
24
- * @returns Promise that resolves to valid JWT token
25
- */
26
- getToken(): Promise<string>;
27
- /**
28
- * Force refresh token.
29
- *
30
- * Always obtains new token from provider, regardless of current token validity.
31
- * Saves new token to session store (cache).
32
- *
33
- * Use this when getToken() returned a token that was rejected by server (401/403).
34
- *
35
- * @returns Promise that resolves to new JWT token
36
- */
37
- refreshToken(): Promise<string>;
38
- }
39
- //# sourceMappingURL=ITokenRefresher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenRefresher.d.ts","sourceRoot":"","sources":["../../src/token/ITokenRefresher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5B;;;;;;;;;OASG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACjC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- /**
3
- * Token Refresher interface
4
- *
5
- * Provides token management with automatic refresh capability.
6
- * Implementations are created by AuthBroker and injected into connections.
7
- *
8
- * This enables dependency injection of token refresh logic into connections,
9
- * allowing connections to focus on making requests while the refresher
10
- * handles all auth/token lifecycle concerns.
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,36 +0,0 @@
1
- /**
2
- * Token result interface
3
- *
4
- * Result returned by ITokenProvider.getTokens() method
5
- */
6
- import type { OAuth2GrantType } from './AuthType';
7
- export interface ITokenResult {
8
- /**
9
- * Authorization token (access token)
10
- */
11
- authorizationToken: string;
12
- /**
13
- * Refresh token (optional, not all grant types provide it)
14
- */
15
- refreshToken?: string;
16
- /**
17
- * Authentication type (OAuth2 grant type used)
18
- */
19
- authType: OAuth2GrantType;
20
- /**
21
- * Token expiration time in seconds
22
- * If not provided, token expiration is determined from JWT exp claim
23
- */
24
- expiresIn?: number;
25
- /**
26
- * Token expiration time as absolute timestamp (milliseconds since epoch)
27
- * Useful for non-JWT tokens (e.g. SAML assertions).
28
- */
29
- expiresAt?: number;
30
- /**
31
- * Token format/type (helps consumers decide how to validate or parse).
32
- * If omitted, defaults to JWT assumptions.
33
- */
34
- tokenType?: 'jwt' | 'saml' | 'opaque';
35
- }
36
- //# sourceMappingURL=ITokenResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenResult.d.ts","sourceRoot":"","sources":["../../src/token/ITokenResult.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAE1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;CACvC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Token result interface
4
- *
5
- * Result returned by ITokenProvider.getTokens() method
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +0,0 @@
1
- /**
2
- * Token Provider Error Codes
3
- *
4
- * Constants for error codes that token providers can throw.
5
- * Used to enable better error handling and categorization.
6
- */
7
- /**
8
- * Error codes for token provider operations
9
- */
10
- export declare const TOKEN_PROVIDER_ERROR_CODES: {
11
- /** Authentication configuration validation failed */
12
- readonly VALIDATION_ERROR: "VALIDATION_ERROR";
13
- /** Token refresh operation failed */
14
- readonly REFRESH_ERROR: "REFRESH_ERROR";
15
- /** Session data is invalid or incomplete */
16
- readonly SESSION_DATA_ERROR: "SESSION_DATA_ERROR";
17
- /** Service key data is invalid or incomplete */
18
- readonly SERVICE_KEY_ERROR: "SERVICE_KEY_ERROR";
19
- /** Browser authentication failed or was cancelled */
20
- readonly BROWSER_AUTH_ERROR: "BROWSER_AUTH_ERROR";
21
- };
22
- /**
23
- * Type for token provider error codes
24
- */
25
- export type TokenProviderErrorCode = (typeof TOKEN_PROVIDER_ERROR_CODES)[keyof typeof TOKEN_PROVIDER_ERROR_CODES];
26
- //# sourceMappingURL=TokenProviderErrorCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TokenProviderErrorCodes.d.ts","sourceRoot":"","sources":["../../src/token/TokenProviderErrorCodes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;IACrC,qDAAqD;;IAErD,qCAAqC;;IAErC,4CAA4C;;IAE5C,gDAAgD;;IAEhD,qDAAqD;;CAE7C,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"}
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /**
3
- * Token Provider Error Codes
4
- *
5
- * Constants for error codes that token providers can throw.
6
- * Used to enable better error handling and categorization.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.TOKEN_PROVIDER_ERROR_CODES = void 0;
10
- /**
11
- * Error codes for token provider operations
12
- */
13
- exports.TOKEN_PROVIDER_ERROR_CODES = {
14
- /** Authentication configuration validation failed */
15
- VALIDATION_ERROR: 'VALIDATION_ERROR',
16
- /** Token refresh operation failed */
17
- REFRESH_ERROR: 'REFRESH_ERROR',
18
- /** Session data is invalid or incomplete */
19
- SESSION_DATA_ERROR: 'SESSION_DATA_ERROR',
20
- /** Service key data is invalid or incomplete */
21
- SERVICE_KEY_ERROR: 'SERVICE_KEY_ERROR',
22
- /** Browser authentication failed or was cancelled */
23
- BROWSER_AUTH_ERROR: 'BROWSER_AUTH_ERROR',
24
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * Token refresh result
3
- */
4
- export interface ITokenRefreshResult {
5
- accessToken: string;
6
- refreshToken?: string;
7
- }
8
- //# sourceMappingURL=ITokenRefreshResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ITokenRefreshResult.d.ts","sourceRoot":"","sources":["../../src/utils/ITokenRefreshResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * Header validation result
3
- */
4
- import type { IValidatedAuthConfig } from './IValidatedAuthConfig';
5
- export interface IHeaderValidationResult {
6
- /** Is configuration valid? */
7
- isValid: boolean;
8
- /** Validated authentication configuration */
9
- config?: IValidatedAuthConfig;
10
- /** Validation errors */
11
- errors: string[];
12
- /** Warnings */
13
- warnings: string[];
14
- }
15
- //# sourceMappingURL=IHeaderValidationResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IHeaderValidationResult.d.ts","sourceRoot":"","sources":["../../src/validation/IHeaderValidationResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,WAAW,uBAAuB;IACtC,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,wBAAwB;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,eAAe;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}