@mcp-abap-adt/interfaces-adt 1.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 (266) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/COPYING +674 -0
  3. package/LICENSE +165 -0
  4. package/README.md +35 -0
  5. package/dist/Headers.d.ts +57 -0
  6. package/dist/Headers.d.ts.map +1 -0
  7. package/dist/Headers.js +62 -0
  8. package/dist/adt/AdtTypes.d.ts +40 -0
  9. package/dist/adt/AdtTypes.d.ts.map +1 -0
  10. package/dist/adt/AdtTypes.js +5 -0
  11. package/dist/adt/IAdtAbapGit.d.ts +60 -0
  12. package/dist/adt/IAdtAbapGit.d.ts.map +1 -0
  13. package/dist/adt/IAdtAbapGit.js +2 -0
  14. package/dist/adt/IAdtAccessControl.d.ts +30 -0
  15. package/dist/adt/IAdtAccessControl.d.ts.map +1 -0
  16. package/dist/adt/IAdtAccessControl.js +5 -0
  17. package/dist/adt/IAdtAppendStructure.d.ts +32 -0
  18. package/dist/adt/IAdtAppendStructure.d.ts.map +1 -0
  19. package/dist/adt/IAdtAppendStructure.js +5 -0
  20. package/dist/adt/IAdtAuthorizationField.d.ts +49 -0
  21. package/dist/adt/IAdtAuthorizationField.d.ts.map +1 -0
  22. package/dist/adt/IAdtAuthorizationField.js +5 -0
  23. package/dist/adt/IAdtBehaviorDefinition.d.ts +58 -0
  24. package/dist/adt/IAdtBehaviorDefinition.d.ts.map +1 -0
  25. package/dist/adt/IAdtBehaviorDefinition.js +7 -0
  26. package/dist/adt/IAdtBehaviorImplementation.d.ts +30 -0
  27. package/dist/adt/IAdtBehaviorImplementation.d.ts.map +1 -0
  28. package/dist/adt/IAdtBehaviorImplementation.js +5 -0
  29. package/dist/adt/IAdtCapabilities.d.ts +391 -0
  30. package/dist/adt/IAdtCapabilities.d.ts.map +1 -0
  31. package/dist/adt/IAdtCapabilities.js +2 -0
  32. package/dist/adt/IAdtClass.d.ts +66 -0
  33. package/dist/adt/IAdtClass.d.ts.map +1 -0
  34. package/dist/adt/IAdtClass.js +5 -0
  35. package/dist/adt/IAdtClientOptions.d.ts +25 -0
  36. package/dist/adt/IAdtClientOptions.d.ts.map +1 -0
  37. package/dist/adt/IAdtClientOptions.js +9 -0
  38. package/dist/adt/IAdtContentTypes.d.ts +45 -0
  39. package/dist/adt/IAdtContentTypes.d.ts.map +1 -0
  40. package/dist/adt/IAdtContentTypes.js +13 -0
  41. package/dist/adt/IAdtDataElement.d.ts +95 -0
  42. package/dist/adt/IAdtDataElement.d.ts.map +1 -0
  43. package/dist/adt/IAdtDataElement.js +5 -0
  44. package/dist/adt/IAdtDdl.d.ts +37 -0
  45. package/dist/adt/IAdtDdl.d.ts.map +1 -0
  46. package/dist/adt/IAdtDdl.js +7 -0
  47. package/dist/adt/IAdtDomain.d.ts +79 -0
  48. package/dist/adt/IAdtDomain.d.ts.map +1 -0
  49. package/dist/adt/IAdtDomain.js +5 -0
  50. package/dist/adt/IAdtEnhancement.d.ts +61 -0
  51. package/dist/adt/IAdtEnhancement.d.ts.map +1 -0
  52. package/dist/adt/IAdtEnhancement.js +7 -0
  53. package/dist/adt/IAdtFeatureToggle.d.ts +100 -0
  54. package/dist/adt/IAdtFeatureToggle.d.ts.map +1 -0
  55. package/dist/adt/IAdtFeatureToggle.js +5 -0
  56. package/dist/adt/IAdtFunctionGroup.d.ts +52 -0
  57. package/dist/adt/IAdtFunctionGroup.d.ts.map +1 -0
  58. package/dist/adt/IAdtFunctionGroup.js +5 -0
  59. package/dist/adt/IAdtFunctionInclude.d.ts +23 -0
  60. package/dist/adt/IAdtFunctionInclude.d.ts.map +1 -0
  61. package/dist/adt/IAdtFunctionInclude.js +5 -0
  62. package/dist/adt/IAdtFunctionModule.d.ts +35 -0
  63. package/dist/adt/IAdtFunctionModule.d.ts.map +1 -0
  64. package/dist/adt/IAdtFunctionModule.js +5 -0
  65. package/dist/adt/IAdtInclude.d.ts +45 -0
  66. package/dist/adt/IAdtInclude.d.ts.map +1 -0
  67. package/dist/adt/IAdtInclude.js +17 -0
  68. package/dist/adt/IAdtInterface.d.ts +33 -0
  69. package/dist/adt/IAdtInterface.d.ts.map +1 -0
  70. package/dist/adt/IAdtInterface.js +5 -0
  71. package/dist/adt/IAdtMessageClass.d.ts +35 -0
  72. package/dist/adt/IAdtMessageClass.d.ts.map +1 -0
  73. package/dist/adt/IAdtMessageClass.js +2 -0
  74. package/dist/adt/IAdtMetadataExtension.d.ts +29 -0
  75. package/dist/adt/IAdtMetadataExtension.d.ts.map +1 -0
  76. package/dist/adt/IAdtMetadataExtension.js +5 -0
  77. package/dist/adt/IAdtObject.d.ts +224 -0
  78. package/dist/adt/IAdtObject.d.ts.map +1 -0
  79. package/dist/adt/IAdtObject.js +82 -0
  80. package/dist/adt/IAdtObjectState.d.ts +36 -0
  81. package/dist/adt/IAdtObjectState.d.ts.map +1 -0
  82. package/dist/adt/IAdtObjectState.js +13 -0
  83. package/dist/adt/IAdtPackage.d.ts +69 -0
  84. package/dist/adt/IAdtPackage.d.ts.map +1 -0
  85. package/dist/adt/IAdtPackage.js +5 -0
  86. package/dist/adt/IAdtProgram.d.ts +37 -0
  87. package/dist/adt/IAdtProgram.d.ts.map +1 -0
  88. package/dist/adt/IAdtProgram.js +5 -0
  89. package/dist/adt/IAdtResponse.d.ts +289 -0
  90. package/dist/adt/IAdtResponse.d.ts.map +1 -0
  91. package/dist/adt/IAdtResponse.js +51 -0
  92. package/dist/adt/IAdtScalarFunction.d.ts +30 -0
  93. package/dist/adt/IAdtScalarFunction.d.ts.map +1 -0
  94. package/dist/adt/IAdtScalarFunction.js +5 -0
  95. package/dist/adt/IAdtScalarFunctionImplementation.d.ts +35 -0
  96. package/dist/adt/IAdtScalarFunctionImplementation.d.ts.map +1 -0
  97. package/dist/adt/IAdtScalarFunctionImplementation.js +5 -0
  98. package/dist/adt/IAdtServiceBinding.d.ts +61 -0
  99. package/dist/adt/IAdtServiceBinding.d.ts.map +1 -0
  100. package/dist/adt/IAdtServiceBinding.js +33 -0
  101. package/dist/adt/IAdtServiceDefinition.d.ts +30 -0
  102. package/dist/adt/IAdtServiceDefinition.d.ts.map +1 -0
  103. package/dist/adt/IAdtServiceDefinition.js +5 -0
  104. package/dist/adt/IAdtShared.d.ts +110 -0
  105. package/dist/adt/IAdtShared.d.ts.map +1 -0
  106. package/dist/adt/IAdtShared.js +5 -0
  107. package/dist/adt/IAdtStructure.d.ts +48 -0
  108. package/dist/adt/IAdtStructure.d.ts.map +1 -0
  109. package/dist/adt/IAdtStructure.js +5 -0
  110. package/dist/adt/IAdtTable.d.ts +30 -0
  111. package/dist/adt/IAdtTable.d.ts.map +1 -0
  112. package/dist/adt/IAdtTable.js +5 -0
  113. package/dist/adt/IAdtTableType.d.ts +61 -0
  114. package/dist/adt/IAdtTableType.d.ts.map +1 -0
  115. package/dist/adt/IAdtTableType.js +5 -0
  116. package/dist/adt/IAdtTransformation.d.ts +33 -0
  117. package/dist/adt/IAdtTransformation.d.ts.map +1 -0
  118. package/dist/adt/IAdtTransformation.js +7 -0
  119. package/dist/adt/IAdtTransport.d.ts +104 -0
  120. package/dist/adt/IAdtTransport.d.ts.map +1 -0
  121. package/dist/adt/IAdtTransport.js +8 -0
  122. package/dist/adt/IAdtUnitTest.d.ts +125 -0
  123. package/dist/adt/IAdtUnitTest.d.ts.map +1 -0
  124. package/dist/adt/IAdtUnitTest.js +5 -0
  125. package/dist/adt/IAdtUtilities.d.ts +310 -0
  126. package/dist/adt/IAdtUtilities.d.ts.map +1 -0
  127. package/dist/adt/IAdtUtilities.js +92 -0
  128. package/dist/auth/AuthType.d.ts +5 -0
  129. package/dist/auth/AuthType.d.ts.map +1 -0
  130. package/dist/auth/AuthType.js +2 -0
  131. package/dist/auth/IAuthorizationConfig.d.ts +15 -0
  132. package/dist/auth/IAuthorizationConfig.d.ts.map +1 -0
  133. package/dist/auth/IAuthorizationConfig.js +2 -0
  134. package/dist/auth/IAuthorizationStrategy.d.ts +59 -0
  135. package/dist/auth/IAuthorizationStrategy.d.ts.map +1 -0
  136. package/dist/auth/IAuthorizationStrategy.js +12 -0
  137. package/dist/auth/ICallbackServer.d.ts +139 -0
  138. package/dist/auth/ICallbackServer.d.ts.map +1 -0
  139. package/dist/auth/ICallbackServer.js +2 -0
  140. package/dist/auth/ICertificateMaterialLoader.d.ts +7 -0
  141. package/dist/auth/ICertificateMaterialLoader.d.ts.map +1 -0
  142. package/dist/auth/ICertificateMaterialLoader.js +2 -0
  143. package/dist/auth/IConfig.d.ts +8 -0
  144. package/dist/auth/IConfig.d.ts.map +1 -0
  145. package/dist/auth/IConfig.js +2 -0
  146. package/dist/auth/IConnectionConfig.d.ts +23 -0
  147. package/dist/auth/IConnectionConfig.d.ts.map +1 -0
  148. package/dist/auth/IConnectionConfig.js +2 -0
  149. package/dist/connection/CalmService.d.ts +3 -0
  150. package/dist/connection/CalmService.d.ts.map +1 -0
  151. package/dist/connection/CalmService.js +14 -0
  152. package/dist/connection/IAbapConnection.d.ts +73 -0
  153. package/dist/connection/IAbapConnection.d.ts.map +1 -0
  154. package/dist/connection/IAbapConnection.js +2 -0
  155. package/dist/connection/IAbapRequestOptions.d.ts +9 -0
  156. package/dist/connection/IAbapRequestOptions.d.ts.map +1 -0
  157. package/dist/connection/IAbapRequestOptions.js +2 -0
  158. package/dist/connection/ICalmConnection.d.ts +29 -0
  159. package/dist/connection/ICalmConnection.d.ts.map +1 -0
  160. package/dist/connection/ICalmConnection.js +2 -0
  161. package/dist/connection/ICalmRequestOptions.d.ts +11 -0
  162. package/dist/connection/ICalmRequestOptions.d.ts.map +1 -0
  163. package/dist/connection/ICalmRequestOptions.js +2 -0
  164. package/dist/connection/IConnectionCapabilities.d.ts +217 -0
  165. package/dist/connection/IConnectionCapabilities.d.ts.map +1 -0
  166. package/dist/connection/IConnectionCapabilities.js +29 -0
  167. package/dist/execution/IAdtExecutors.d.ts +78 -0
  168. package/dist/execution/IAdtExecutors.d.ts.map +1 -0
  169. package/dist/execution/IAdtExecutors.js +9 -0
  170. package/dist/execution/IAdtRunnable.d.ts +61 -0
  171. package/dist/execution/IAdtRunnable.d.ts.map +1 -0
  172. package/dist/execution/IAdtRunnable.js +2 -0
  173. package/dist/execution/ITraceScheduling.d.ts +39 -0
  174. package/dist/execution/ITraceScheduling.d.ts.map +1 -0
  175. package/dist/execution/ITraceScheduling.js +15 -0
  176. package/dist/feeds/IFeedRepository.d.ts +32 -0
  177. package/dist/feeds/IFeedRepository.d.ts.map +1 -0
  178. package/dist/feeds/IFeedRepository.js +8 -0
  179. package/dist/feeds/types.d.ts +18 -0
  180. package/dist/feeds/types.d.ts.map +1 -0
  181. package/dist/feeds/types.js +9 -0
  182. package/dist/index.d.ts +103 -0
  183. package/dist/index.d.ts.map +1 -0
  184. package/dist/index.js +57 -0
  185. package/dist/runtime/IApplicationLog.d.ts +21 -0
  186. package/dist/runtime/IApplicationLog.d.ts.map +1 -0
  187. package/dist/runtime/IApplicationLog.js +2 -0
  188. package/dist/runtime/IAtcLog.d.ts +15 -0
  189. package/dist/runtime/IAtcLog.d.ts.map +1 -0
  190. package/dist/runtime/IAtcLog.js +2 -0
  191. package/dist/runtime/IAtcRun.d.ts +99 -0
  192. package/dist/runtime/IAtcRun.d.ts.map +1 -0
  193. package/dist/runtime/IAtcRun.js +10 -0
  194. package/dist/runtime/ICrossTrace.d.ts +32 -0
  195. package/dist/runtime/ICrossTrace.d.ts.map +1 -0
  196. package/dist/runtime/ICrossTrace.js +2 -0
  197. package/dist/runtime/IDdicActivation.d.ts +12 -0
  198. package/dist/runtime/IDdicActivation.d.ts.map +1 -0
  199. package/dist/runtime/IDdicActivation.js +2 -0
  200. package/dist/runtime/IGatewayErrorLog.d.ts +10 -0
  201. package/dist/runtime/IGatewayErrorLog.d.ts.map +1 -0
  202. package/dist/runtime/IGatewayErrorLog.js +2 -0
  203. package/dist/runtime/IProfiler.d.ts +65 -0
  204. package/dist/runtime/IProfiler.d.ts.map +1 -0
  205. package/dist/runtime/IProfiler.js +2 -0
  206. package/dist/runtime/IRuntimeDumps.d.ts +23 -0
  207. package/dist/runtime/IRuntimeDumps.d.ts.map +1 -0
  208. package/dist/runtime/IRuntimeDumps.js +2 -0
  209. package/dist/runtime/ISt05Trace.d.ts +8 -0
  210. package/dist/runtime/ISt05Trace.d.ts.map +1 -0
  211. package/dist/runtime/ISt05Trace.js +2 -0
  212. package/dist/runtime/ISystemMessages.d.ts +10 -0
  213. package/dist/runtime/ISystemMessages.d.ts.map +1 -0
  214. package/dist/runtime/ISystemMessages.js +2 -0
  215. package/dist/runtime/ITrace.d.ts +170 -0
  216. package/dist/runtime/ITrace.d.ts.map +1 -0
  217. package/dist/runtime/ITrace.js +14 -0
  218. package/dist/sap/ISapConfig.d.ts +22 -0
  219. package/dist/sap/ISapConfig.d.ts.map +1 -0
  220. package/dist/sap/ISapConfig.js +2 -0
  221. package/dist/sap/SapAuthType.d.ts +3 -0
  222. package/dist/sap/SapAuthType.d.ts.map +1 -0
  223. package/dist/sap/SapAuthType.js +2 -0
  224. package/dist/service/IAdtService.d.ts +84 -0
  225. package/dist/service/IAdtService.d.ts.map +1 -0
  226. package/dist/service/IAdtService.js +27 -0
  227. package/dist/serviceKey/IServiceKeyStore.d.ts +31 -0
  228. package/dist/serviceKey/IServiceKeyStore.d.ts.map +1 -0
  229. package/dist/serviceKey/IServiceKeyStore.js +7 -0
  230. package/dist/session/ISessionStore.d.ts +59 -0
  231. package/dist/session/ISessionStore.d.ts.map +1 -0
  232. package/dist/session/ISessionStore.js +7 -0
  233. package/dist/shared/IReadOptions.d.ts +9 -0
  234. package/dist/shared/IReadOptions.d.ts.map +1 -0
  235. package/dist/shared/IReadOptions.js +2 -0
  236. package/dist/store/StoreErrorCodes.d.ts +12 -0
  237. package/dist/store/StoreErrorCodes.d.ts.map +1 -0
  238. package/dist/store/StoreErrorCodes.js +13 -0
  239. package/dist/token/AuthType.d.ts +43 -0
  240. package/dist/token/AuthType.d.ts.map +1 -0
  241. package/dist/token/AuthType.js +41 -0
  242. package/dist/token/ITokenProvider.d.ts +27 -0
  243. package/dist/token/ITokenProvider.d.ts.map +1 -0
  244. package/dist/token/ITokenProvider.js +8 -0
  245. package/dist/token/ITokenProviderOptions.d.ts +23 -0
  246. package/dist/token/ITokenProviderOptions.d.ts.map +1 -0
  247. package/dist/token/ITokenProviderOptions.js +2 -0
  248. package/dist/token/ITokenRefresher.d.ts +39 -0
  249. package/dist/token/ITokenRefresher.d.ts.map +1 -0
  250. package/dist/token/ITokenRefresher.js +12 -0
  251. package/dist/token/ITokenResult.d.ts +36 -0
  252. package/dist/token/ITokenResult.d.ts.map +1 -0
  253. package/dist/token/ITokenResult.js +7 -0
  254. package/dist/token/TokenProviderErrorCodes.d.ts +26 -0
  255. package/dist/token/TokenProviderErrorCodes.d.ts.map +1 -0
  256. package/dist/token/TokenProviderErrorCodes.js +24 -0
  257. package/dist/utils/ITokenRefreshResult.d.ts +8 -0
  258. package/dist/utils/ITokenRefreshResult.d.ts.map +1 -0
  259. package/dist/utils/ITokenRefreshResult.js +2 -0
  260. package/dist/validation/IHeaderValidationResult.d.ts +15 -0
  261. package/dist/validation/IHeaderValidationResult.d.ts.map +1 -0
  262. package/dist/validation/IHeaderValidationResult.js +2 -0
  263. package/dist/validation/IValidatedAuthConfig.d.ts +46 -0
  264. package/dist/validation/IValidatedAuthConfig.d.ts.map +1 -0
  265. package/dist/validation/IValidatedAuthConfig.js +15 -0
  266. package/package.json +42 -0
@@ -0,0 +1,84 @@
1
+ import type { ServiceBindingVariant } from '../adt/IAdtServiceBinding';
2
+ export type ServiceBindingType = 'ODATA' | 'INA' | 'SQL';
3
+ export type ServiceBindingVersion = 'V2' | 'V4' | '0001' | '0000' | string;
4
+ export type GeneratedServiceType = 'odatav2' | 'odatav4';
5
+ export type DesiredPublicationState = 'published' | 'unpublished' | 'unchanged';
6
+ export interface IValidateServiceBindingParams {
7
+ objname: string;
8
+ serviceDefinition: string;
9
+ serviceBindingVersion?: string;
10
+ description?: string;
11
+ package?: string;
12
+ }
13
+ export interface IGetServiceBindingODataParams {
14
+ objectname: string;
15
+ servicename?: string;
16
+ serviceversion?: string;
17
+ srvdname?: string;
18
+ }
19
+ export interface IPublishODataV2Params {
20
+ servicename: string;
21
+ serviceversion?: string;
22
+ }
23
+ export interface IUnpublishODataV2Params {
24
+ servicename: string;
25
+ serviceversion?: string;
26
+ }
27
+ export interface IClassifyServiceBindingParams {
28
+ objectname: string;
29
+ bindtype?: string;
30
+ bindtypeversion?: string;
31
+ repositoryid?: string;
32
+ servicename?: string;
33
+ serviceversion?: string;
34
+ }
35
+ export interface ITransportCheckServiceBindingParams {
36
+ objectName: string;
37
+ packageName: string;
38
+ description?: string;
39
+ operation?: 'I' | 'U' | 'D';
40
+ }
41
+ export interface ICreateServiceBindingParams {
42
+ bindingName: string;
43
+ packageName: string;
44
+ description: string;
45
+ serviceDefinitionName: string;
46
+ serviceName: string;
47
+ serviceVersion: string;
48
+ bindingVariant: ServiceBindingVariant;
49
+ masterLanguage?: string;
50
+ masterSystem?: string;
51
+ responsible?: string;
52
+ transportRequest?: string;
53
+ runTransportCheck?: boolean;
54
+ activateAfterCreate?: boolean;
55
+ }
56
+ export interface IReadServiceBindingParams {
57
+ bindingName: string;
58
+ version?: 'active' | 'inactive';
59
+ }
60
+ export interface IUpdateServiceBindingParams {
61
+ bindingName: string;
62
+ desiredPublicationState: DesiredPublicationState;
63
+ serviceType: GeneratedServiceType;
64
+ serviceName: string;
65
+ serviceVersion?: string;
66
+ }
67
+ export interface ICheckServiceBindingParams {
68
+ bindingName: string;
69
+ version?: 'active' | 'inactive';
70
+ }
71
+ export interface IActivateServiceBindingParams {
72
+ bindingName: string;
73
+ preauditRequested?: boolean;
74
+ }
75
+ export interface IGenerateServiceBindingParams {
76
+ serviceType: GeneratedServiceType;
77
+ bindingName: string;
78
+ serviceName: string;
79
+ serviceVersion: string;
80
+ serviceDefinitionName: string;
81
+ }
82
+ export type ICreateAndGenerateServiceBindingParams = ICreateServiceBindingParams;
83
+ export type ICreateAndGenerateServiceBindingParamsLegacy = ICreateAndGenerateServiceBindingParams;
84
+ //# sourceMappingURL=IAdtService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAdtService.d.ts","sourceRoot":"","sources":["../../src/service/IAdtService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * `IServiceBindingResults` was here — the readings keyed for the aggregate that
5
+ * has just gone. Nothing parameterises anything any more, so it named five
6
+ * answers nobody asks for. A consumer's readings are their own, and the atoms
7
+ * take them one at a time.
8
+ */
9
+ /*
10
+ * `IAdtServiceBinding` was here: a per-object aggregate declaring eight members.
11
+ *
12
+ * It is gone, and it is the last of its kind — no other object type ever had
13
+ * one. It arrived in `bd5926f` with a one-line message and no reasoning, and
14
+ * 31.0.0 did not reach it: that sweep took out result *shapes*, and a
15
+ * method-bearing interface was not in its scope. So it was never kept on
16
+ * purpose; it was never looked at.
17
+ *
18
+ * Four of its members no longer exist in any implementation —
19
+ * `getODataV2ServiceBinding`, `getODataV4ServiceBinding`, `publishODataV2` and
20
+ * `unpublishODataV2` — because a protocol is a parameter, not a method name.
21
+ * The other four are a chain step exposed to callers, two operations glued into
22
+ * one by an `And` in the name, and two members nothing calls.
23
+ *
24
+ * What a consumer needs to *call* a binding stayed: every parameter type above,
25
+ * and the capability atoms, which compose. What an implementation hands back is
26
+ * its own business, and a consumer names it structurally from the atoms.
27
+ */
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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 });
@@ -0,0 +1,59 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Shared read options for ADT source/metadata operations
3
+ */
4
+ export interface IReadOptions {
5
+ withLongPolling?: boolean;
6
+ accept?: string;
7
+ version?: 'active' | 'inactive';
8
+ }
9
+ //# sourceMappingURL=IReadOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IReadOptions.d.ts","sourceRoot":"","sources":["../../src/shared/IReadOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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
+ };
@@ -0,0 +1,43 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,41 @@
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';
@@ -0,0 +1,27 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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 });
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
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 });
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Token result interface
4
+ *
5
+ * Result returned by ITokenProvider.getTokens() method
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,24 @@
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
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Token refresh result
3
+ */
4
+ export interface ITokenRefreshResult {
5
+ accessToken: string;
6
+ refreshToken?: string;
7
+ }
8
+ //# sourceMappingURL=ITokenRefreshResult.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
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