@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,99 @@
1
+ /**
2
+ * ATC (ABAP Test Cockpit): starting a check run, asking whether it is done,
3
+ * and reading what it found.
4
+ *
5
+ * Separate from `IAtcLog`, which reads the execution log and the check-failure
6
+ * logs. Same subject, different resources — a worklist is not a log, and
7
+ * nothing here takes an execution id.
8
+ */
9
+ import type { IAdtResponse } from '../adt/IAdtResponse';
10
+ /**
11
+ * The object kinds ATC will check, at a URI a client can build for them.
12
+ *
13
+ * **Confirmed on an ABAP Cloud trial**, each by a run submitted at the URI the
14
+ * client builds whose finished worklist then listed that object under that
15
+ * type. A run being *accepted* proves nothing: a URI that cannot exist is
16
+ * answered `201` too.
17
+ *
18
+ * **This set is expected to grow, and growing it is a breaking change.**
19
+ * `program` and `include` are absent because ABAP Cloud refuses to hold either
20
+ * (`403`, authorization object `S_DEVELOP`), so nothing there could confirm
21
+ * them; an on-prem system would. Adding a member does not disturb a caller
22
+ * *passing* a value, but it does break one *exhausting* the union —
23
+ * `Record<AtcObjectType, …>`, or a `switch` with a `never` check. Do not build
24
+ * an exhaustive structure over this without meaning to revisit it.
25
+ */
26
+ export type AtcObjectType = 'class' | 'interface' | 'function_group' | 'package' | 'ddl_source' | 'table' | 'behavior_definition';
27
+ /** One object to check, by kind and name. The client builds the URI. */
28
+ export interface IAtcObjectRef {
29
+ objectType: AtcObjectType;
30
+ objectName: string;
31
+ }
32
+ export interface IAtcRunTarget {
33
+ /**
34
+ * One or more objects to check, as one inclusive object set.
35
+ *
36
+ * A non-empty tuple rather than an array: "one or more" in a doc comment
37
+ * over a type that admits `[]` is a promise the compiler does not keep, and
38
+ * an empty object set would start a run over nothing.
39
+ */
40
+ objects: readonly [IAtcObjectRef, ...IAtcObjectRef[]];
41
+ }
42
+ export interface IAtcRunOptions {
43
+ /**
44
+ * Have the server hold the request until the checks finish (`clientWait`).
45
+ *
46
+ * Defaults to **false**: that is the mode which answers with a run id, and a
47
+ * run id is the only thing that can be polled, reported on while it runs, or
48
+ * abandoned on the caller's own timetable. `true` is one request instead of
49
+ * a loop, at the cost of a connection held for as long as the checks take —
50
+ * which nothing bounds, and which grows with the object set.
51
+ *
52
+ * The two modes answer with different shapes, and what those shapes are is the
53
+ * implementation's since 31.0.0.
54
+ */
55
+ wait?: boolean;
56
+ /**
57
+ * The check variant to run.
58
+ *
59
+ * Omitted, the client reads `systemCheckVariant` from ATC customizing. That
60
+ * is not a convenience: on a system where the variant list comes back empty,
61
+ * customizing is the only source of a usable one, and a contract demanding
62
+ * the caller supply it would be unusable there.
63
+ */
64
+ checkVariant?: string;
65
+ /**
66
+ * `maximumVerdicts` in the run payload: a **cap on results**, not a page
67
+ * size. Defaults to 100.
68
+ *
69
+ * A caller wanting everything raises it rather than paging — nothing
70
+ * observed says what happens at the boundary, so a truncated worklist is
71
+ * the failure to design against. Must be a positive integer; the server
72
+ * answers `0` with a 400.
73
+ */
74
+ maximumVerdicts?: number;
75
+ }
76
+ export interface IAtcRunStatusReadable<TStatus> {
77
+ /**
78
+ * Status of a run started with `wait: false`.
79
+ *
80
+ * **Poll it under a bound you choose.** There is no `waitForRun` helper here
81
+ * and that is deliberate: waiting needs a stopping condition for the case
82
+ * where a run does not finish, no failed run has ever been observed, and a
83
+ * helper would have to invent one. Whoever knows how long their checks take
84
+ * is the one who can decide when to give up — and `status` travels beside
85
+ * `isFinished` so they can report the state they last saw.
86
+ */
87
+ getRunStatus(runId: string): Promise<IAdtResponse<TStatus>>;
88
+ }
89
+ export interface IAtcFindings<TFindings> {
90
+ /**
91
+ * The worklist for a run: every object it checked, each with its findings,
92
+ * empty for the ones that were clean.
93
+ *
94
+ * Read it after the run reports finished. Read earlier it is empty whatever
95
+ * happened, which is indistinguishable from a run that found nothing.
96
+ */
97
+ getFindings(worklistId: string): Promise<IAdtResponse<TFindings>>;
98
+ }
99
+ //# sourceMappingURL=IAtcRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAtcRun.d.ts","sourceRoot":"","sources":["../../src/runtime/IAtcRun.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,aAAa,GACrB,OAAO,GACP,WAAW,GACX,gBAAgB,GAChB,SAAS,GACT,YAAY,GACZ,OAAO,GACP,qBAAqB,CAAC;AAE1B,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,OAAO,EAAE,SAAS,CAAC,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB,CAAC,OAAO;IAC5C;;;;;;;;;OASG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,YAAY,CAAC,SAAS;IACrC;;;;;;OAMG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;CACnE"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * ATC (ABAP Test Cockpit): starting a check run, asking whether it is done,
4
+ * and reading what it found.
5
+ *
6
+ * Separate from `IAtcLog`, which reads the execution log and the check-failure
7
+ * logs. Same subject, different resources — a worklist is not a log, and
8
+ * nothing here takes an execution id.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ export interface IListCrossTracesOptions {
3
+ traceUser?: string;
4
+ actCreateUser?: string;
5
+ actChangeUser?: string;
6
+ }
7
+ /**
8
+ * One key per distinct answer this contract has, not one per member.
9
+ *
10
+ * Five separate type parameters would make the fourth unnameable without
11
+ * spelling the first three; a record names them, and a consumer overriding one
12
+ * reading writes the key rather than counting positions. The same shape
13
+ * `@mcp-abap-adt/adt-clients` carries its result sets in.
14
+ */
15
+ export interface ICrossTraceResults {
16
+ list: unknown;
17
+ trace: unknown;
18
+ records: unknown;
19
+ recordContent: unknown;
20
+ activations: unknown;
21
+ }
22
+ export interface ICrossTrace<R extends ICrossTraceResults> {
23
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
24
+ readonly kind: 'crossTrace';
25
+ /** The traces this system holds. */
26
+ list(options?: IListCrossTracesOptions): Promise<IAdtResponse<R['list']>>;
27
+ getById(traceId: string, includeSensitiveData?: boolean): Promise<IAdtResponse<R['trace']>>;
28
+ getRecords(traceId: string): Promise<IAdtResponse<R['records']>>;
29
+ getRecordContent(traceId: string, recordNumber: number): Promise<IAdtResponse<R['recordContent']>>;
30
+ getActivations(): Promise<IAdtResponse<R['activations']>>;
31
+ }
32
+ //# sourceMappingURL=ICrossTrace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICrossTrace.d.ts","sourceRoot":"","sources":["../../src/runtime/ICrossTrace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,kBAAkB;IACvD,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAE5B,oCAAoC;IACpC,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAE1E,OAAO,CACL,OAAO,EAAE,MAAM,EACf,oBAAoB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACrC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACjE,gBAAgB,CACd,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAC7C,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ export interface IGetActivationGraphOptions {
3
+ objectName?: string;
4
+ objectType?: string;
5
+ logName?: string;
6
+ }
7
+ export interface IDdicActivation<TGraph> {
8
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
9
+ readonly kind: 'ddicActivation';
10
+ getGraph(options?: IGetActivationGraphOptions): Promise<IAdtResponse<TGraph>>;
11
+ }
12
+ //# sourceMappingURL=IDdicActivation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDdicActivation.d.ts","sourceRoot":"","sources":["../../src/runtime/IDdicActivation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe,CAAC,MAAM;IACrC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAEhC,QAAQ,CAAC,OAAO,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;CAC/E"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ import type { IFeedQueryOptions } from '../feeds/types';
3
+ export interface IGatewayErrorLog<TList, TError> {
4
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
5
+ readonly kind: 'gatewayErrorLog';
6
+ /** The errors the gateway has logged. */
7
+ list(options?: IFeedQueryOptions): Promise<IAdtResponse<TList>>;
8
+ getById(errorType: string, errorId: string): Promise<IAdtResponse<TError>>;
9
+ }
10
+ //# sourceMappingURL=IGatewayErrorLog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGatewayErrorLog.d.ts","sourceRoot":"","sources":["../../src/runtime/IGatewayErrorLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,WAAW,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAC7C,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC,yCAAyC;IACzC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhE,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;CAC5E"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,65 @@
1
+ import type { ITraceDeletion, ITraceEntry, ITraceFamily, ITraceListing, ITraceReading, ITraceView } from './ITrace';
2
+ /**
3
+ * The profiler: what a run left behind, and what a caller passes to ask for it.
4
+ *
5
+ * `IProfiler` is a **composition of atoms**, and it stayed — a consumer needs it
6
+ * to type a profiler and to implement one, and making each of them spell the
7
+ * intersection by hand is the bloat decision 24 is against, not the bloat it is
8
+ * about. What left in 31.0.0 are the concrete readings it used to name:
9
+ * `IAbapTraceEntry`, `IAbapTraceViews` and the view shapes. They arrive as type
10
+ * parameters now, with **no defaults**, exactly as {@link IClassExecutor} and
11
+ * {@link ICrossTrace} take theirs.
12
+ */
13
+ export interface IProfilerListOptions {
14
+ user?: string;
15
+ }
16
+ /**
17
+ * What to measure.
18
+ *
19
+ * This is an argument to a *run*, not to a read, which is why it travels with
20
+ * scheduling rather than staying on the reading surface.
21
+ */
22
+ export interface IProfilerTraceParameters {
23
+ allMiscAbapStatements?: boolean;
24
+ allProceduralUnits?: boolean;
25
+ allInternalTableEvents?: boolean;
26
+ allDynproEvents?: boolean;
27
+ description?: string;
28
+ aggregate?: boolean;
29
+ explicitOnOff?: boolean;
30
+ withRfcTracing?: boolean;
31
+ allSystemKernelEvents?: boolean;
32
+ sqlTrace?: boolean;
33
+ allDbEvents?: boolean;
34
+ maxSizeForTraceFile?: number;
35
+ amdpTrace?: boolean;
36
+ maxTimeForTracing?: number;
37
+ }
38
+ export interface IProfilerTraceHitListOptions {
39
+ withSystemEvents?: boolean;
40
+ }
41
+ export interface IProfilerTraceStatementsOptions {
42
+ id?: number;
43
+ withDetails?: boolean;
44
+ autoDrillDownThreshold?: number;
45
+ withSystemEvents?: boolean;
46
+ }
47
+ export interface IProfilerTraceDbAccessesOptions {
48
+ withSystemEvents?: boolean;
49
+ }
50
+ /**
51
+ * A profiler, composed.
52
+ *
53
+ * `TEntry` is what its listing answers per trace; `TViews` maps each view name
54
+ * to the reading that view performs. Both are the implementation's — this
55
+ * package says a profiler lists, reads and deletes, and says nothing about what
56
+ * a hit list looks like.
57
+ *
58
+ * ```typescript
59
+ * type MyProfiler = IProfiler<MyTraceEntry, { hitlist: ITraceView<MyHitList> }>;
60
+ * ```
61
+ */
62
+ export type IProfiler<TEntry extends ITraceEntry, TViews extends {
63
+ [K in keyof TViews]: ITraceView<unknown, unknown>;
64
+ }> = ITraceFamily<'profiler'> & ITraceListing<TEntry, IProfilerListOptions> & ITraceReading<TViews> & ITraceDeletion;
65
+ //# sourceMappingURL=IProfiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IProfiler.d.ts","sourceRoot":"","sources":["../../src/runtime/IProfiler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,UAAU,CAAC;AAElB;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,+BAA+B;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,+BAA+B;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,SAAS,CACnB,MAAM,SAAS,WAAW,EAC1B,MAAM,SAAS;KAAG,CAAC,IAAI,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC;CAAE,IAClE,YAAY,CAAC,UAAU,CAAC,GAC1B,aAAa,CAAC,MAAM,EAAE,oBAAoB,CAAC,GAC3C,aAAa,CAAC,MAAM,CAAC,GACrB,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ export type IRuntimeDumpReadView = 'default' | 'summary' | 'formatted';
3
+ export interface IRuntimeDumpsListOptions {
4
+ query?: string;
5
+ inlinecount?: 'allpages' | 'none';
6
+ top?: number;
7
+ skip?: number;
8
+ orderby?: string;
9
+ from?: string;
10
+ to?: string;
11
+ }
12
+ export interface IRuntimeDumpReadOptions {
13
+ view?: IRuntimeDumpReadView;
14
+ }
15
+ export interface IRuntimeDumps<TList, TDump> {
16
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
17
+ readonly kind: 'runtimeDumps';
18
+ /** The dumps this system holds. */
19
+ list(options?: IRuntimeDumpsListOptions): Promise<IAdtResponse<TList>>;
20
+ listByUser(user?: string, options?: Omit<IRuntimeDumpsListOptions, 'query'>): Promise<IAdtResponse<TList>>;
21
+ getById(dumpId: string, options?: IRuntimeDumpReadOptions): Promise<IAdtResponse<TDump>>;
22
+ }
23
+ //# sourceMappingURL=IRuntimeDumps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRuntimeDumps.d.ts","sourceRoot":"","sources":["../../src/runtime/IRuntimeDumps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAEvE,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa,CAAC,KAAK,EAAE,KAAK;IACzC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAE9B,mCAAmC;IACnC,IAAI,CAAC,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAEvE,UAAU,CACR,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,OAAO,CAAC,GAChD,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAChC,OAAO,CACL,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;CACjC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ export interface ISt05Trace<TState, TDirectory> {
3
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
4
+ readonly kind: 'st05Trace';
5
+ getState(): Promise<IAdtResponse<TState>>;
6
+ getDirectory(): Promise<IAdtResponse<TDirectory>>;
7
+ }
8
+ //# sourceMappingURL=ISt05Trace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISt05Trace.d.ts","sourceRoot":"","sources":["../../src/runtime/ISt05Trace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,UAAU,CAAC,MAAM,EAAE,UAAU;IAC5C,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAE3B,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;CACnD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type { IAdtResponse } from '../adt/IAdtResponse';
2
+ import type { IFeedQueryOptions } from '../feeds/types';
3
+ export interface ISystemMessages<TList, TMessage> {
4
+ /** Which runtime resource this is, for a consumer narrowing a union of them. */
5
+ readonly kind: 'systemMessages';
6
+ /** The messages this system is showing. */
7
+ list(options?: IFeedQueryOptions): Promise<IAdtResponse<TList>>;
8
+ getById(messageId: string): Promise<IAdtResponse<TMessage>>;
9
+ }
10
+ //# sourceMappingURL=ISystemMessages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISystemMessages.d.ts","sourceRoot":"","sources":["../../src/runtime/ISystemMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,WAAW,eAAe,CAAC,KAAK,EAAE,QAAQ;IAC9C,gFAAgF;IAChF,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAEhC,2CAA2C;IAC3C,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhE,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC7D"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Reading what a run left behind.
3
+ *
4
+ * Two atoms — a listing and a read — composed per trace family. A family that
5
+ * has views composes {@link ITraceReading} in; a family that has none says
6
+ * nothing about reading, which is the only truthful way for a type to say it.
7
+ *
8
+ * The shapes here are transcribed from measurements, not designed. `ITraceEntry`
9
+ * is what an `abaptraces` feed entry carries — measured on a cloud tenant and on
10
+ * an on-prem system, every field present in every entry of both. The systems,
11
+ * releases and raw bodies are in the design spec and its evidence files.
12
+ */
13
+ import type { IAdtResponse } from '../adt/IAdtResponse';
14
+ /**
15
+ * A trace's lifecycle state.
16
+ *
17
+ * A named type rather than an inline `{ value; text }`, because a consumer that
18
+ * implements the contract has to *return* this, and an anonymous shape leaves it
19
+ * re-declaring the same two fields in its own code — which is the duplication
20
+ * this package exists to remove. Naming it costs one export.
21
+ */
22
+ export interface ITraceState {
23
+ /** `trc:state/@value` — `R` on every entry read. */
24
+ value: string;
25
+ /** `trc:state/@text` — `Finished` for `R`. */
26
+ text: string;
27
+ }
28
+ /**
29
+ * One trace, as every family can describe it.
30
+ *
31
+ * The optional members are optional because a family other than `abaptraces`
32
+ * may not have them — not because that one sometimes omits them.
33
+ */
34
+ export interface ITraceEntry {
35
+ /** `atom:id` — a URI, not an opaque token. */
36
+ id: string;
37
+ /**
38
+ * `atom:published`.
39
+ *
40
+ * Position in a feed is NOT age: measured, a feed's first entries were minutes
41
+ * old while its last were eight days older, so anything picking "the first id
42
+ * in the document" gets a trace chosen at random.
43
+ */
44
+ recordedAt: string;
45
+ /** `trc:user`, which equals `atom:author/atom:name`. */
46
+ user?: string;
47
+ /** `trc:objectName` — the generated form, e.g. `ZCL_SOMETHING=========CP`. */
48
+ objectName?: string;
49
+ uri?: string;
50
+ /**
51
+ * `trc:state` — `R`/Finished on every entry seen.
52
+ *
53
+ * A trace has a lifecycle, so "it exists" and "it is readable" are not the
54
+ * same claim.
55
+ */
56
+ state?: ITraceState;
57
+ /**
58
+ * `trc:expiration`. The system deletes traces — about four weeks out on both
59
+ * systems measured, though that is a system setting and not a contract.
60
+ * Reading one a week later is fine; a year later is not, and this says when.
61
+ */
62
+ expiresAt?: string;
63
+ }
64
+ /**
65
+ * What a view yields, and what it must be given.
66
+ *
67
+ * A pair from the start: a map of result types alone has nowhere to keep
68
+ * options, and nothing about a result implies them — cross-trace's
69
+ * `recordContent` needs a record number that no result type mentions.
70
+ */
71
+ export interface ITraceView<TResult, TOptions = void> {
72
+ result: TResult;
73
+ options: TOptions;
74
+ }
75
+ export type ViewResult<TViews, K extends keyof TViews> = TViews[K] extends ITraceView<infer TResult, infer _TOptions> ? TResult : never;
76
+ export type ViewOptions<TViews, K extends keyof TViews> = TViews[K] extends ITraceView<infer _TResult, infer TOptions> ? TOptions : never;
77
+ /** Options are required when the view says so, and absent when it says `void`. */
78
+ export type ViewArgs<TViews, K extends keyof TViews> = ViewOptions<TViews, K> extends void ? [] : undefined extends ViewOptions<TViews, K> ? [options?: ViewOptions<TViews, K>] : [options: ViewOptions<TViews, K>];
79
+ /** What traces exist. */
80
+ export interface ITraceListing<TEntry extends ITraceEntry = ITraceEntry, TOptions = void> {
81
+ list(options?: TOptions): Promise<IAdtResponse<TEntry[]>>;
82
+ }
83
+ /**
84
+ * What is inside one trace.
85
+ *
86
+ * The constraint is self-mapped — every property of the map must BE a view.
87
+ * `Record<string, unknown>` cannot be used, because an `interface` has no
88
+ * implicit index signature and would be rejected; a bare `object` would accept
89
+ * anything, so a map with a non-view member would compile and fail later,
90
+ * silently, with a result of `never` at the call site. This form needs no index
91
+ * signature and refuses the bad map where it is written.
92
+ */
93
+ export interface ITraceReading<TViews extends {
94
+ [K in keyof TViews]: ITraceView<unknown, unknown>;
95
+ }> {
96
+ read<K extends keyof TViews>(traceId: string, view: K, ...args: ViewArgs<TViews, K>): Promise<IAdtResponse<ViewResult<TViews, K>>>;
97
+ }
98
+ /**
99
+ * Reading a trace differently is a strategy, not a member.
100
+ *
101
+ * `ITraceReadingWithParser` stood here until 30.0.0, taking
102
+ * `parse: (data: unknown) => T` at the call. It is gone for the reason decision
103
+ * 22 gives: a reading is chosen once, when the implementation is constructed,
104
+ * and the member's result type follows it. A consumer that needs a trace read
105
+ * differently — or that runs against a system answering in a shape the default
106
+ * does not fit — supplies an `IResultStrategy` and keeps a type, exactly as
107
+ * before, without every implementer owing a second signature.
108
+ *
109
+ * What has not changed is what this is *not* for. Searching and filtering
110
+ * belong to the server, which has endpoints for them.
111
+ */
112
+ /**
113
+ * Removing a trace.
114
+ *
115
+ * Its own atom, beside {@link ITraceListing} and {@link ITraceReading}, because
116
+ * not every family need offer it and a composition should say which does.
117
+ *
118
+ * ADT advertises this itself: every entry in the ABAP trace feed carries
119
+ * `<atom:link rel="http://www.sap.com/adt/relations/delete">` next to the links
120
+ * for its three views, and the `DELETE` it points at answers `200` — measured
121
+ * on an on-prem system, 2026-08-30, on a trace produced by a profiled run.
122
+ *
123
+ * The value is `void`: a caller has nothing to read from a deletion. The
124
+ * *answer* is not — it is {@link IAdtResponse} like everything else, so whether
125
+ * the deletion happened is asked of `ok`, not caught. Until 30.0.0 this member
126
+ * resolved with nothing and rejected on failure, and a consumer migrating from
127
+ * that contract replaces the `catch` with the check.
128
+ *
129
+ * **What deleting an id that is not there does has NOT been measured.** Only the
130
+ * `200` above was: one existing trace, once. An earlier draft said a trace that
131
+ * is gone and one that never was leave the caller in the same place, and a
132
+ * caller writing cleanup would have relied on that.
133
+ *
134
+ * Note what the HTTP definition does and does not give here. `DELETE` is
135
+ * idempotent (RFC 9110 §9.2.2), but that is a statement about the **effect on
136
+ * the server** — the resource ends up absent either way. It promises nothing
137
+ * about the **status returned**, and the status is what a strategy reads to
138
+ * decide whether this is a failure. So idempotence is true and useless to a
139
+ * caller.
140
+ *
141
+ * What a caller needs to know is still unmeasured: whether a second delete
142
+ * answers `200` or `404`. What has changed is what to do about it — code that
143
+ * must tolerate a missing id reads `ok` and decides, instead of catching.
144
+ *
145
+ * **This member takes no options, so there is no per-call `analyse` here.**
146
+ * `IAdtOperationOptions` is carried by eleven members on the capability atoms,
147
+ * where a caller overrules
148
+ * the verdict for one request; a consumer who wants a repeat delete counted as
149
+ * success everywhere states that in the error strategy their implementation is
150
+ * constructed with, which is the same place its result strategy comes from
151
+ * (decision 22). A member with no options is not a member with no choice.
152
+ */
153
+ export interface ITraceDeletion {
154
+ delete(traceId: string): Promise<IAdtResponse<void>>;
155
+ }
156
+ /**
157
+ * What a trace family is called.
158
+ *
159
+ * Nothing is extended in here. Until 30.0.0 this carried `ITraceListing` along
160
+ * with the name, so a family that only lists and one that also reads could not
161
+ * be told apart by their types — inheritance decides for the composer what
162
+ * belongs together. `IProfiler` and `ICrossTrace` are published compositions of
163
+ * this with listing, reading and deletion — the composition is a contract, and
164
+ * the readings it is instantiated with are the implementation's.
165
+ */
166
+ export interface ITraceFamily<TKind extends string> {
167
+ /** Literal, so it still discriminates when several families share a shape. */
168
+ readonly kind: TKind;
169
+ }
170
+ //# sourceMappingURL=ITrace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITrace.d.ts","sourceRoot":"","sources":["../../src/runtime/ITrace.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * Reading what a run left behind.
4
+ *
5
+ * Two atoms — a listing and a read — composed per trace family. A family that
6
+ * has views composes {@link ITraceReading} in; a family that has none says
7
+ * nothing about reading, which is the only truthful way for a type to say it.
8
+ *
9
+ * The shapes here are transcribed from measurements, not designed. `ITraceEntry`
10
+ * is what an `abaptraces` feed entry carries — measured on a cloud tenant and on
11
+ * an on-prem system, every field present in every entry of both. The systems,
12
+ * releases and raw bodies are in the design spec and its evidence files.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type SapAuthType = 'basic' | 'jwt' | 'saml' | 'certificate' | 'kerberos';
2
+ export type SapConnectionType = 'http' | 'rfc';
3
+ //# sourceMappingURL=SapAuthType.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });