@abapify/adt-server 0.4.14 → 0.4.18

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.
@@ -1,6 +1,6 @@
1
- import { i as createHttpBrokerOperations, n as createAdtServerMcpOptions, o as startAdtServer, r as executeWithDeadlineAndAbort, t as loadRestRuntimeSecurity } from "../rest-runtime-QwD2kRXE.mjs";
1
+ import { i as createHttpBrokerOperations, n as createAdtServerMcpOptions, o as startAdtServer, r as executeWithDeadlineAndAbort, t as loadRestRuntimeSecurity } from "../rest-runtime-CuV8Stuk.mjs";
2
2
 
3
- //#region src/bin/adt-server.ts
3
+ // src/bin/adt-server.ts
4
4
  const baseUrl = process.env.ADT_BROKER_BASE_URL;
5
5
  const tokenFile = process.env.ADT_SERVER_BROKER_TOKEN_FILE;
6
6
  if (!baseUrl || !tokenFile) throw new Error("ADT_BROKER_BASE_URL and ADT_SERVER_BROKER_TOKEN_FILE are required");
@@ -31,6 +31,5 @@ async function main() {
31
31
  }
32
32
  await main();
33
33
 
34
- //#endregion
35
34
  export { };
36
35
  //# sourceMappingURL=adt-server.mjs.map
package/dist/index.d.mts CHANGED
@@ -2,7 +2,6 @@ import http from "node:http";
2
2
  import { DestinationContextFactory, DestinationContextRegistry, DestinationLeaseProvider, McpInvocationVerifier, ToolContext } from "@abapify/adt-mcp";
3
3
  import { AdtClient } from "@abapify/adt-client";
4
4
  import { z } from "zod";
5
- //#region src/rest-schemas.d.ts
6
5
  declare const transportSourceManifestBody: z.ZodObject<{
7
6
  transports: z.ZodArray<z.ZodString>;
8
7
  }, z.core.$strict>;
@@ -88,8 +87,6 @@ type AtcRunBody = z.infer<typeof atcRunBody>;
88
87
  type TransportSearchCriteria = ReturnType<typeof parseTransportSearchQuery>;
89
88
  type PackageSearchCriteria = ReturnType<typeof parsePackageSearchQuery>['criteria'];
90
89
  type ObjectSearchCriteria = ReturnType<typeof parseObjectSearchQuery>['criteria'];
91
- //#endregion
92
- //#region src/atc-documentation-capabilities.d.ts
93
90
  interface RestAtcDocumentationCapabilityServiceOptions {
94
91
  /** A production deployment shares this secret across all sidecar replicas. */
95
92
  secret: string;
@@ -112,8 +109,6 @@ declare function createRestAtcDocumentationCapabilityService(options: RestAtcDoc
112
109
  documentationUri: string;
113
110
  };
114
111
  };
115
- //#endregion
116
- //#region src/source-capabilities.d.ts
117
112
  interface RestSourceCapabilityServiceOptions {
118
113
  /** A production deployment shares this secret across all sidecar replicas. */
119
114
  secret: string;
@@ -136,8 +131,6 @@ declare function createRestSourceCapabilityService(options: RestSourceCapability
136
131
  sourceUri: string;
137
132
  };
138
133
  };
139
- //#endregion
140
- //#region src/page-cursors.d.ts
141
134
  interface RestPageCursorServiceOptions {
142
135
  /** Production replicas must share a mounted secret; tests may inject one. */
143
136
  secret: string;
@@ -162,8 +155,6 @@ declare function createRestPageCursorService(options: RestPageCursorServiceOptio
162
155
  observedAt: string;
163
156
  };
164
157
  };
165
- //#endregion
166
- //#region src/request-handler.d.ts
167
158
  type RawSourceVersion = {
168
159
  sourceUri: string;
169
160
  };
@@ -190,8 +181,6 @@ type AtcRunOperationResult = {
190
181
  documentationUri?: string;
191
182
  }>;
192
183
  };
193
- //#endregion
194
- //#region src/server.d.ts
195
184
  type AtcRunOperationInput = AtcRunBody & {
196
185
  destination: string;
197
186
  };
@@ -318,8 +307,6 @@ interface RunningAdtServer {
318
307
  close(): Promise<void>;
319
308
  }
320
309
  declare function startAdtServer(options: AdtServerOptions): Promise<RunningAdtServer>;
321
- //#endregion
322
- //#region src/openapi.d.ts
323
310
  /** Deterministic, owned OpenAPI document. Route schemas are deliberately
324
311
  * destination-only; SAP URLs and credentials never occur in this contract. */
325
312
  declare const openApiDocument: {
@@ -1247,8 +1234,6 @@ declare const openApiDocument: {
1247
1234
  };
1248
1235
  };
1249
1236
  declare const openApiYaml: () => string;
1250
- //#endregion
1251
- //#region src/broker.d.ts
1252
1237
  interface HttpBrokerOptions {
1253
1238
  baseUrl: string;
1254
1239
  tokenFile: string;
@@ -1284,8 +1269,6 @@ declare function createHttpDestinationContexts(options: HttpBrokerOptions): {
1284
1269
  sourceCapability: string;
1285
1270
  }>;
1286
1271
  };
1287
- //#endregion
1288
- //#region src/mcp-runtime.d.ts
1289
1272
  type RuntimeEnvironment = Readonly<Record<string, string | undefined>>;
1290
1273
  interface AdtServerMcpRuntimeOptions {
1291
1274
  env: RuntimeEnvironment;
@@ -1313,8 +1296,6 @@ declare function executeWithDeadlineAndAbort(input: {
1313
1296
  * aborts startup rather than risking a weaker authentication mode.
1314
1297
  */
1315
1298
  declare function createAdtServerMcpOptions(options: AdtServerMcpRuntimeOptions): Promise<AdtServerMcpOptions | undefined>;
1316
- //#endregion
1317
- //#region src/rest-runtime.d.ts
1318
1299
  interface RestRuntimeSecurityOptions {
1319
1300
  tokenFile?: string;
1320
1301
  sourceSecretFile?: string;
@@ -1327,6 +1308,5 @@ type RestRuntimeSecurity = Pick<AdtServerOptions, 'restAuthorizer' | 'sourceCapa
1327
1308
  * source capabilities and page cursors survive a replica or process restart.
1328
1309
  */
1329
1310
  declare function loadRestRuntimeSecurity(options: RestRuntimeSecurityOptions): Promise<RestRuntimeSecurity>;
1330
- //#endregion
1331
1311
  export { type AdtServerMcpOptions, type AdtServerMcpRuntimeOptions, type AdtServerOperations, type AdtServerOptions, type DestinationSummary, type HttpBrokerOptions, type RestRuntimeSecurity, type RestRuntimeSecurityOptions, type RestServiceAuthorizer, type RunningAdtServer, createAdtServerMcpOptions, createHttpBrokerOperations, createHttpDestinationContexts, executeWithDeadlineAndAbort, loadRestRuntimeSecurity, openApiDocument, openApiYaml, startAdtServer };
1332
1312
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/rest-schemas.ts","../src/atc-documentation-capabilities.ts","../src/source-capabilities.ts","../src/page-cursors.ts","../src/request-handler.ts","../src/server.ts","../src/openapi.ts","../src/broker.ts","../src/mcp-runtime.ts","../src/rest-runt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1
+ {"version":3,"file":"index.d.mts","names":["_$__rest_schemas_js0.PackageSearchCriteria","_$__rest_schemas_js0.ObjectSearchCriteria"],"sources":["../src/rest-schemas.ts","../src/atc-documentation-capabilities.ts","../src/source-capabilities.ts","../src/page-cursors.ts","../src/request-handler.ts","../src/server.ts","../src/openapi.ts","../src/broker.ts","../src/mcp-runtime.ts","../src/rest-runtime.ts"],"mappings":";;;;cAuBa,6BAA2B,EAAA;;GAI7B,EAAA,KAAA;;cAodE,YAAU,EAAA;;;;;;;;;;;;;;;GAwBZ,EAAA,KAAA;;cAWE,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BpB,EAAA,KAAA;iBAiCK,0BAA0B;;;;;;;;;;iBAU1B,wBAAwB;;;;;;;;;;iBAQxB,uBAAuB;;;;;;;;;;;;KAqB3B,+BAA+B,EAAE,aACpC;KAGG,aAAa,EAAE,aAAa;KAG5B,0BAA0B,kBAC7B;KAGG,wBAAwB,kBAC3B;KAGG,uBAAuB,kBAC1B;UC3nBQ;;EAEf;EACA;EACA;;;;;;iBAWc,4CACd,SAAS;EAYM,MAAA;IAAE;IAAqB;;EAGrB,QAAA;IAAE;IAAiC;;IAChD;;;UCjCW;;EAEf;EACA;EACA;;;;;;iBAgBc,kCACd,SAAS;EAYM,MAAA;IAAE;IAAqB;;EAGrB,QAAA;IAAE;IAA0B;;IACzC;;;UC9BW;;EAEf;EACA;;;;;;iBAac,4BACd,SAAS;EAiEE,SAAA,GAAC;IACR,eAAe;IACf;IACA;IACA;IACA;IACA,QAAQ,MAAM;;IAEd,MAAM;IACN;IACA;IACA;;;KCrDD;EACH;;KAGU;EACV;EACA;EACA,WAAW;IAAgB;KAAe;;EAC1C,SAAS;IACP;MACE;MACA;;IAEF,OAAO;IACP,OAAO;;;KAIC;EACV;EACA,UAAU,MACR,KAAK,EAAE,aAAa;;IAElB;;;KC5DD,uBAAuB;EAAe;;UAE1B;EACf;EACA;EACA;EACA;EACA;;KAGU;EACR;;EA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AyB,YAAY;;;;EAIrC,sBAAsB,YAAY;;;;;;iBA4Bd,4BAA4B;EAChD;EACA,iBAAiB;IACf;;;;;;iBAgMkB,0BACpB,SAAS,6BACR,QAAQ;UCxPM;EACf;EACA;EACA;;KAGU,sBAAsB,KAChC;;;;;;iBAoBoB,wBACpB,SAAS,6BACR,QAAQ"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a as createHttpDestinationContexts, i as createHttpBrokerOperations, n as createAdtServerMcpOptions, o as startAdtServer, r as executeWithDeadlineAndAbort, t as loadRestRuntimeSecurity } from "./rest-runtime-QwD2kRXE.mjs";
2
- import { n as openApiYaml, t as openApiDocument } from "./openapi-DRwts-9_.mjs";
1
+ import { a as createHttpDestinationContexts, i as createHttpBrokerOperations, n as createAdtServerMcpOptions, o as startAdtServer, r as executeWithDeadlineAndAbort, t as loadRestRuntimeSecurity } from "./rest-runtime-CuV8Stuk.mjs";
2
+ import { n as openApiYaml, t as openApiDocument } from "./openapi-VGfMFg-1.mjs";
3
3
 
4
4
  export { createAdtServerMcpOptions, createHttpBrokerOperations, createHttpDestinationContexts, executeWithDeadlineAndAbort, loadRestRuntimeSecurity, openApiDocument, openApiYaml, startAdtServer };
@@ -1,3 +1,3 @@
1
- import { n as openApiYaml, t as openApiDocument } from "./openapi-DRwts-9_.mjs";
1
+ import { n as openApiYaml, t as openApiDocument } from "./openapi-VGfMFg-1.mjs";
2
2
 
3
3
  export { openApiDocument, openApiYaml };
@@ -1,8 +1,8 @@
1
- import { A as sourceVersionReadResponse, C as packageTreeQuery, F as transportSearchQuery, I as transportSourceManifestBody, L as transportSourceManifestResponse, M as transportListResponse, N as transportObjectsResponse, P as transportPathParameter, _ as objectSourceReadBody, a as atcDocumentationReadResponse, b as packagePathParameter, c as atcRunResponse, d as objectMetadataResponse, f as objectNamePathParameter, g as objectSourceHistoryResponse, i as atcDocumentationReadBody, j as transportDetailResponse, k as sourceVersionReadBody, l as badiResponse, m as objectSearchQuery, p as objectPageResponse, s as atcRunBody, u as destinationSummaryResponse, v as objectTypePathParameter, x as packageSearchQuery, y as packagePageResponse } from "./rest-schemas-Dwj5ck3i.mjs";
1
+ import { A as sourceVersionReadResponse, C as packageTreeQuery, F as transportSearchQuery, I as transportSourceManifestBody, L as transportSourceManifestResponse, M as transportListResponse, N as transportObjectsResponse, P as transportPathParameter, _ as objectSourceReadBody, a as atcDocumentationReadResponse, b as packagePathParameter, c as atcRunResponse, d as objectMetadataResponse, f as objectNamePathParameter, g as objectSourceHistoryResponse, i as atcDocumentationReadBody, j as transportDetailResponse, k as sourceVersionReadBody, l as badiResponse, m as objectSearchQuery, p as objectPageResponse, s as atcRunBody, u as destinationSummaryResponse, v as objectTypePathParameter, x as packageSearchQuery, y as packagePageResponse } from "./rest-schemas-DYA_Mvyk.mjs";
2
2
  import { z } from "zod";
3
3
  import YAML from "yaml";
4
4
 
5
- //#region src/openapi.ts
5
+ // src/openapi.ts
6
6
  const atcDocumentationReadBodySchema = z.toJSONSchema(atcDocumentationReadBody);
7
7
  const atcDocumentationReadResponseSchema = z.toJSONSchema(atcDocumentationReadResponse);
8
8
  const atcRunBodySchema = z.toJSONSchema(atcRunBody);
@@ -385,6 +385,5 @@ const openApiDocument = {
385
385
  };
386
386
  const openApiYaml = () => YAML.stringify(openApiDocument);
387
387
 
388
- //#endregion
389
388
  export { openApiYaml as n, openApiDocument as t };
390
- //# sourceMappingURL=openapi-DRwts-9_.mjs.map
389
+ //# sourceMappingURL=openapi-VGfMFg-1.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"openapi-DRwts-9_.mjs","names":[],"sources":["../src/openapi.ts"],"sourcesContent":["import YAML from 'yaml';\nimport { z } from 'zod';\nimport {\n atcDocumentationReadBody,\n atcDocumentationReadResponse,\n atcRunBody,\n atcRunResponse,\n destinationSummaryResponse,\n objectMetadataResponse,\n badiResponse,\n objectNamePathParameter,\n objectPageResponse,\n objectSearchQuery,\n objectSourceReadBody,\n objectSourceHistoryResponse,\n objectTypePathParameter,\n packagePathParameter,\n packagePageResponse,\n packageSearchQuery,\n packageTreeQuery,\n sourceVersionReadBody,\n sourceVersionReadResponse,\n transportDetailResponse,\n transportListResponse,\n transportObjectsResponse,\n transportPathParameter,\n transportSearchQuery,\n transportSourceManifestBody,\n transportSourceManifestResponse,\n} from './rest-schemas.js';\n\nconst atcDocumentationReadBodySchema = z.toJSONSchema(atcDocumentationReadBody);\nconst atcDocumentationReadResponseSchema = z.toJSONSchema(\n atcDocumentationReadResponse,\n);\nconst atcRunBodySchema = z.toJSONSchema(atcRunBody);\nconst atcRunResponseSchema = z.toJSONSchema(atcRunResponse);\nconst destinationSummaryResponseSchema = z.toJSONSchema(\n destinationSummaryResponse,\n);\n\nconst transportSourceManifestSchema = z.toJSONSchema(\n transportSourceManifestBody,\n);\nconst sourceVersionReadSchema = z.toJSONSchema(sourceVersionReadBody);\nconst sourceVersionReadResponseSchema = z.toJSONSchema(\n sourceVersionReadResponse,\n);\nconst transportSourceManifestResponseSchema = z.toJSONSchema(\n transportSourceManifestResponse,\n);\nconst packagePageResponseSchema = z.toJSONSchema(packagePageResponse);\nconst packageSearchQuerySchema = z.toJSONSchema(packageSearchQuery);\nconst packageTreeQuerySchema = z.toJSONSchema(packageTreeQuery);\nconst objectPageResponseSchema = z.toJSONSchema(objectPageResponse);\nconst objectMetadataResponseSchema = z.toJSONSchema(objectMetadataResponse);\nconst badiResponseSchema = z.toJSONSchema(badiResponse);\nconst objectSourceHistoryResponseSchema = z.toJSONSchema(\n objectSourceHistoryResponse,\n);\nconst objectSourceReadBodySchema = z.toJSONSchema(objectSourceReadBody);\nconst objectSearchQuerySchema = z.toJSONSchema(objectSearchQuery);\nconst objectTypePathParameterSchema = z.toJSONSchema(objectTypePathParameter);\nconst objectNamePathParameterSchema = z.toJSONSchema(objectNamePathParameter);\nconst packagePathParameterSchema = z.toJSONSchema(packagePathParameter);\nconst transportSearchQuerySchema = z.toJSONSchema(transportSearchQuery);\nconst transportListResponseSchema = z.toJSONSchema(transportListResponse);\nconst transportDetailResponseSchema = z.toJSONSchema(transportDetailResponse);\nconst transportObjectsResponseSchema = z.toJSONSchema(transportObjectsResponse);\nconst transportPathParameterSchema = z.toJSONSchema(transportPathParameter);\nconst transportQueryProperties =\n transportSearchQuerySchema.properties as Record<string, unknown>;\nconst packageQueryProperties = packageSearchQuerySchema.properties as Record<\n string,\n unknown\n>;\nconst packageTreeQueryProperties = packageTreeQuerySchema.properties as Record<\n string,\n unknown\n>;\nconst objectQueryProperties = objectSearchQuerySchema.properties as Record<\n string,\n unknown\n>;\n\nfunction transportQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: transportQueryProperties[name],\n };\n}\n\nfunction packageQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: packageQueryProperties[name],\n };\n}\n\nfunction objectQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: objectQueryProperties[name],\n };\n}\n\n/** Deterministic, owned OpenAPI document. Route schemas are deliberately\n * destination-only; SAP URLs and credentials never occur in this contract. */\nexport const openApiDocument = {\n openapi: '3.1.0',\n info: { title: 'ADT Server', version: '1.0.0' },\n paths: {\n '/v1/destinations': {\n get: {\n operationId: 'listDestinations',\n responses: {\n '200': {\n description: 'Accessible safe destination summaries',\n content: {\n 'application/json': { schema: destinationSummaryResponseSchema },\n },\n },\n },\n },\n },\n '/v1/destinations/{destination}/transports': {\n get: {\n operationId: 'listTransports',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n transportQueryParameter('owner', 'Case-insensitive owner match'),\n transportQueryParameter('type', 'Case-insensitive CTS type match'),\n transportQueryParameter(\n 'status',\n 'Case-insensitive normalized status match',\n ),\n transportQueryParameter('target', 'Case-insensitive target match'),\n transportQueryParameter(\n 'dateFrom',\n 'Inclusive changed date, YYYY-MM-DD',\n ),\n transportQueryParameter(\n 'dateTo',\n 'Inclusive changed date, YYYY-MM-DD',\n ),\n transportQueryParameter(\n 'text',\n 'Description/owner text, exact transport or explicit prefix',\n ),\n transportQueryParameter(\n 'includeTasks',\n 'Whether task transport headers are included',\n ),\n ],\n responses: {\n '200': {\n description: 'Normalized system-wide transport headers',\n content: {\n 'application/json': { schema: transportListResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transports/{transport}': {\n get: {\n operationId: 'getTransportDetail',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/transport' },\n ],\n responses: {\n '200': {\n description:\n 'Request/task hierarchy with canonical object references',\n content: {\n 'application/json': { schema: transportDetailResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transports/{transport}/objects': {\n get: {\n operationId: 'listTransportObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/transport' },\n ],\n responses: {\n '200': {\n description:\n 'Canonical object references aggregated over request and tasks',\n content: {\n 'application/json': { schema: transportObjectsResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transport-source-manifests': {\n post: {\n operationId: 'buildTransportSourceManifest',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: transportSourceManifestSchema,\n },\n },\n },\n responses: {\n '200': {\n description:\n 'Metadata-only transport source manifest with opaque source capabilities',\n content: {\n 'application/json': {\n schema: transportSourceManifestResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/source-versions:read': {\n post: {\n operationId: 'readSourceVersion',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: sourceVersionReadSchema,\n },\n },\n },\n responses: {\n '200': {\n description: 'Complete immutable source body under byte cap',\n content: {\n 'application/json': { schema: sourceVersionReadResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n '404': { description: 'Source capability unavailable' },\n '413': { description: 'Source exceeds requested byte cap' },\n },\n },\n },\n '/v1/destinations/{destination}/packages': {\n get: {\n operationId: 'searchPackages',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n packageQueryParameter('q', 'Package prefix or wildcard query'),\n packageQueryParameter(\n 'maxResults',\n 'Bounded upstream package search cap',\n ),\n packageQueryParameter('limit', 'Page size, maximum 200'),\n packageQueryParameter('cursor', 'Opaque query-bound page cursor'),\n ],\n responses: {\n '200': {\n description: 'Bounded canonical package search page',\n content: {\n 'application/json': { schema: packagePageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/packages/tree': {\n get: {\n operationId: 'getPackageTree',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n {\n name: 'root',\n in: 'query',\n required: true,\n description:\n 'Named package root. The service never enumerates a global package forest.',\n schema: packageTreeQueryProperties.root,\n },\n {\n name: 'limit',\n in: 'query',\n required: false,\n description: 'Page size, maximum 200',\n schema: packageTreeQueryProperties.limit,\n },\n {\n name: 'cursor',\n in: 'query',\n required: false,\n description: 'Opaque root-bound page cursor',\n schema: packageTreeQueryProperties.cursor,\n },\n ],\n responses: {\n '200': {\n description:\n 'Bounded canonical package subtree rooted at the requested package',\n content: {\n 'application/json': { schema: packagePageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/packages/{package}/objects': {\n get: {\n operationId: 'listPackageObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/package' },\n objectQueryParameter('limit', 'Page size, maximum 200'),\n objectQueryParameter('cursor', 'Opaque package-bound page cursor'),\n ],\n responses: {\n '200': {\n description:\n 'Bounded direct package objects with canonical identity',\n content: {\n 'application/json': { schema: objectPageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects': {\n get: {\n operationId: 'searchObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n objectQueryParameter('query', 'Object prefix or wildcard query'),\n objectQueryParameter('packageName', 'Exact package filter'),\n objectQueryParameter('objectType', 'Repository object type filter'),\n objectQueryParameter(\n 'maxResults',\n 'Bounded upstream object search cap',\n ),\n objectQueryParameter('limit', 'Page size, maximum 200'),\n objectQueryParameter('cursor', 'Opaque query-bound page cursor'),\n ],\n responses: {\n '200': {\n description: 'Bounded canonical repository object search page',\n content: {\n 'application/json': { schema: objectPageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}': {\n get: {\n operationId: 'getObjectMetadata',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n responses: {\n '200': {\n description:\n 'Canonical object metadata, facets and allowlisted relation capabilities',\n content: {\n 'application/json': { schema: objectMetadataResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/badi/{name}': {\n get: {\n operationId: 'getBadi',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n {\n name: 'name',\n in: 'path',\n required: true,\n schema: objectNamePathParameterSchema,\n description:\n 'BAdI name — definition, implementation, or ENHO container',\n },\n {\n name: 'implementations',\n in: 'query',\n required: false,\n schema: { type: 'boolean' },\n description:\n 'When name is a classic definition (SXSD/XD), include its SXCI/XI implementations',\n },\n ],\n responses: {\n '200': {\n description:\n 'Canonical BAdI metadata; kind is resolved from repository type',\n content: {\n 'application/json': { schema: badiResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}/source-history': {\n get: {\n operationId: 'getObjectSourceHistory',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n responses: {\n '200': {\n description: 'Metadata-only canonical object source history',\n content: {\n 'application/json': {\n schema: objectSourceHistoryResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}/source:read': {\n post: {\n operationId: 'readObjectSource',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: objectSourceReadBodySchema },\n },\n },\n responses: {\n '200': {\n description: 'Complete bounded canonical object source body',\n content: {\n 'application/json': { schema: sourceVersionReadResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n '413': { description: 'Source exceeds the fixed byte cap' },\n },\n },\n },\n '/v1/destinations/{destination}/atc-runs': {\n post: {\n operationId: 'runAtc',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: atcRunBodySchema },\n },\n },\n responses: {\n '200': {\n description:\n 'Normalized ATC findings with opaque documentation capabilities',\n content: {\n 'application/json': { schema: atcRunResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/atc-finding-documentation:read': {\n post: {\n operationId: 'readAtcFindingDocumentation',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: atcDocumentationReadBodySchema },\n },\n },\n responses: {\n '200': {\n description: 'Complete bounded ATC documentation HTML',\n content: {\n 'application/json': {\n schema: atcDocumentationReadResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n '404': { description: 'Documentation capability is unavailable' },\n '413': { description: 'Documentation exceeds the byte cap' },\n },\n },\n },\n },\n components: {\n parameters: {\n destination: {\n name: 'destination',\n in: 'path',\n required: true,\n schema: { type: 'string', pattern: '^[a-z][a-z0-9-]{1,62}$' },\n },\n transport: {\n name: 'transport',\n in: 'path',\n required: true,\n schema: transportPathParameterSchema,\n },\n package: {\n name: 'package',\n in: 'path',\n required: true,\n schema: packagePathParameterSchema,\n },\n objectType: {\n name: 'type',\n in: 'path',\n required: true,\n schema: objectTypePathParameterSchema,\n },\n objectName: {\n name: 'name',\n in: 'path',\n required: true,\n schema: objectNamePathParameterSchema,\n },\n },\n },\n} as const;\n\nexport const openApiYaml = (): string => YAML.stringify(openApiDocument);\n"],"mappings":";;;;;AA+BA,MAAM,iCAAiC,EAAE,aAAa,wBAAwB;AAC9E,MAAM,qCAAqC,EAAE,aAC3C,4BACF;AACA,MAAM,mBAAmB,EAAE,aAAa,UAAU;AAClD,MAAM,uBAAuB,EAAE,aAAa,cAAc;AAC1D,MAAM,mCAAmC,EAAE,aACzC,0BACF;AAEA,MAAM,gCAAgC,EAAE,aACtC,2BACF;AACA,MAAM,0BAA0B,EAAE,aAAa,qBAAqB;AACpE,MAAM,kCAAkC,EAAE,aACxC,yBACF;AACA,MAAM,wCAAwC,EAAE,aAC9C,+BACF;AACA,MAAM,4BAA4B,EAAE,aAAa,mBAAmB;AACpE,MAAM,2BAA2B,EAAE,aAAa,kBAAkB;AAClE,MAAM,yBAAyB,EAAE,aAAa,gBAAgB;AAC9D,MAAM,2BAA2B,EAAE,aAAa,kBAAkB;AAClE,MAAM,+BAA+B,EAAE,aAAa,sBAAsB;AAC1E,MAAM,qBAAqB,EAAE,aAAa,YAAY;AACtD,MAAM,oCAAoC,EAAE,aAC1C,2BACF;AACA,MAAM,6BAA6B,EAAE,aAAa,oBAAoB;AACtE,MAAM,0BAA0B,EAAE,aAAa,iBAAiB;AAChE,MAAM,gCAAgC,EAAE,aAAa,uBAAuB;AAC5E,MAAM,gCAAgC,EAAE,aAAa,uBAAuB;AAC5E,MAAM,6BAA6B,EAAE,aAAa,oBAAoB;AACtE,MAAM,6BAA6B,EAAE,aAAa,oBAAoB;AACtE,MAAM,8BAA8B,EAAE,aAAa,qBAAqB;AACxE,MAAM,gCAAgC,EAAE,aAAa,uBAAuB;AAC5E,MAAM,iCAAiC,EAAE,aAAa,wBAAwB;AAC9E,MAAM,+BAA+B,EAAE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ACA,OAAO,EAAE,aAAa,kBAAkB;IACxC,OAAO,EAAE,aAAa,oCAAoC;GAC5D;EACF,EACF;EACA,2CAA2C,EACzC,MAAM;GACJ,aAAa;GACb,YAAY,CAAC,EAAE,MAAM,sCAAsC,CAAC;GAC5D,aAAa;IACX,UAAU;IACV,SAAS,EACP,oBAAoB,EAAE,QAAQ,iBAAiB,EACjD;GACF;GACA,WAAW;IACT,OAAO;KACL,aACE;KACF,SAAS,EACP,oBAAoB,EAAE,QAAQ,qBAAqB,EACrD;IACF;IACA,OAAO,EAAE,aAAa,kBAAkB;GAC1C;EACF,EACF;EACA,iEAAiE,EAC/D,MAAM;GACJ,aAAa;GACb,YAAY,CAAC,EAAE,MAAM,sCAAsC,CAAC;GAC5D,aAAa;IACX,UAAU;IACV,SAAS,EACP,oBAAoB,EAAE,QAAQ,+BAA+B,EAC/D;GACF;GACA,WAAW;IACT,OAAO;KACL,aAAa;KACb,SAAS,EACP,oBAAoB,EAClB,QAAQ,mCACV,EACF;IACF;IACA,OAAO,EAAE,aAAa,kBAAkB;IACxC,OAAO,EAAE,aAAa,0CAA0C;IAChE,OAAO,EAAE,aAAa,qCAAqC;GAC7D;EACF,EACF;CACF;CACA,YAAY,EACV,YAAY;EACV,aAAa;GACX,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;IAAE,MAAM;IAAU,SAAS;GAAyB;EAC9D;EACA,WAAW;GACT,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;EACV;EACA,SAAS;GACP,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;EACV;EACA,YAAY;GACV,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;EACV;EACA,YAAY;GACV,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;EACV;CACF,EACF;AACF;AAEA,MAAa,oBAA4B,KAAK,UAAU,eAAe"}
1
+ {"version":3,"file":"openapi-VGfMFg-1.mjs","names":[],"sources":["../src/openapi.ts"],"sourcesContent":["import YAML from 'yaml';\nimport { z } from 'zod';\nimport {\n atcDocumentationReadBody,\n atcDocumentationReadResponse,\n atcRunBody,\n atcRunResponse,\n destinationSummaryResponse,\n objectMetadataResponse,\n badiResponse,\n objectNamePathParameter,\n objectPageResponse,\n objectSearchQuery,\n objectSourceReadBody,\n objectSourceHistoryResponse,\n objectTypePathParameter,\n packagePathParameter,\n packagePageResponse,\n packageSearchQuery,\n packageTreeQuery,\n sourceVersionReadBody,\n sourceVersionReadResponse,\n transportDetailResponse,\n transportListResponse,\n transportObjectsResponse,\n transportPathParameter,\n transportSearchQuery,\n transportSourceManifestBody,\n transportSourceManifestResponse,\n} from './rest-schemas.js';\n\nconst atcDocumentationReadBodySchema = z.toJSONSchema(atcDocumentationReadBody);\nconst atcDocumentationReadResponseSchema = z.toJSONSchema(\n atcDocumentationReadResponse,\n);\nconst atcRunBodySchema = z.toJSONSchema(atcRunBody);\nconst atcRunResponseSchema = z.toJSONSchema(atcRunResponse);\nconst destinationSummaryResponseSchema = z.toJSONSchema(\n destinationSummaryResponse,\n);\n\nconst transportSourceManifestSchema = z.toJSONSchema(\n transportSourceManifestBody,\n);\nconst sourceVersionReadSchema = z.toJSONSchema(sourceVersionReadBody);\nconst sourceVersionReadResponseSchema = z.toJSONSchema(\n sourceVersionReadResponse,\n);\nconst transportSourceManifestResponseSchema = z.toJSONSchema(\n transportSourceManifestResponse,\n);\nconst packagePageResponseSchema = z.toJSONSchema(packagePageResponse);\nconst packageSearchQuerySchema = z.toJSONSchema(packageSearchQuery);\nconst packageTreeQuerySchema = z.toJSONSchema(packageTreeQuery);\nconst objectPageResponseSchema = z.toJSONSchema(objectPageResponse);\nconst objectMetadataResponseSchema = z.toJSONSchema(objectMetadataResponse);\nconst badiResponseSchema = z.toJSONSchema(badiResponse);\nconst objectSourceHistoryResponseSchema = z.toJSONSchema(\n objectSourceHistoryResponse,\n);\nconst objectSourceReadBodySchema = z.toJSONSchema(objectSourceReadBody);\nconst objectSearchQuerySchema = z.toJSONSchema(objectSearchQuery);\nconst objectTypePathParameterSchema = z.toJSONSchema(objectTypePathParameter);\nconst objectNamePathParameterSchema = z.toJSONSchema(objectNamePathParameter);\nconst packagePathParameterSchema = z.toJSONSchema(packagePathParameter);\nconst transportSearchQuerySchema = z.toJSONSchema(transportSearchQuery);\nconst transportListResponseSchema = z.toJSONSchema(transportListResponse);\nconst transportDetailResponseSchema = z.toJSONSchema(transportDetailResponse);\nconst transportObjectsResponseSchema = z.toJSONSchema(transportObjectsResponse);\nconst transportPathParameterSchema = z.toJSONSchema(transportPathParameter);\nconst transportQueryProperties =\n transportSearchQuerySchema.properties as Record<string, unknown>;\nconst packageQueryProperties = packageSearchQuerySchema.properties as Record<\n string,\n unknown\n>;\nconst packageTreeQueryProperties = packageTreeQuerySchema.properties as Record<\n string,\n unknown\n>;\nconst objectQueryProperties = objectSearchQuerySchema.properties as Record<\n string,\n unknown\n>;\n\nfunction transportQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: transportQueryProperties[name],\n };\n}\n\nfunction packageQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: packageQueryProperties[name],\n };\n}\n\nfunction objectQueryParameter(name: string, description: string) {\n return {\n name,\n in: 'query',\n required: false,\n description,\n schema: objectQueryProperties[name],\n };\n}\n\n/** Deterministic, owned OpenAPI document. Route schemas are deliberately\n * destination-only; SAP URLs and credentials never occur in this contract. */\nexport const openApiDocument = {\n openapi: '3.1.0',\n info: { title: 'ADT Server', version: '1.0.0' },\n paths: {\n '/v1/destinations': {\n get: {\n operationId: 'listDestinations',\n responses: {\n '200': {\n description: 'Accessible safe destination summaries',\n content: {\n 'application/json': { schema: destinationSummaryResponseSchema },\n },\n },\n },\n },\n },\n '/v1/destinations/{destination}/transports': {\n get: {\n operationId: 'listTransports',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n transportQueryParameter('owner', 'Case-insensitive owner match'),\n transportQueryParameter('type', 'Case-insensitive CTS type match'),\n transportQueryParameter(\n 'status',\n 'Case-insensitive normalized status match',\n ),\n transportQueryParameter('target', 'Case-insensitive target match'),\n transportQueryParameter(\n 'dateFrom',\n 'Inclusive changed date, YYYY-MM-DD',\n ),\n transportQueryParameter(\n 'dateTo',\n 'Inclusive changed date, YYYY-MM-DD',\n ),\n transportQueryParameter(\n 'text',\n 'Description/owner text, exact transport or explicit prefix',\n ),\n transportQueryParameter(\n 'includeTasks',\n 'Whether task transport headers are included',\n ),\n ],\n responses: {\n '200': {\n description: 'Normalized system-wide transport headers',\n content: {\n 'application/json': { schema: transportListResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transports/{transport}': {\n get: {\n operationId: 'getTransportDetail',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/transport' },\n ],\n responses: {\n '200': {\n description:\n 'Request/task hierarchy with canonical object references',\n content: {\n 'application/json': { schema: transportDetailResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transports/{transport}/objects': {\n get: {\n operationId: 'listTransportObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/transport' },\n ],\n responses: {\n '200': {\n description:\n 'Canonical object references aggregated over request and tasks',\n content: {\n 'application/json': { schema: transportObjectsResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/transport-source-manifests': {\n post: {\n operationId: 'buildTransportSourceManifest',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: transportSourceManifestSchema,\n },\n },\n },\n responses: {\n '200': {\n description:\n 'Metadata-only transport source manifest with opaque source capabilities',\n content: {\n 'application/json': {\n schema: transportSourceManifestResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/source-versions:read': {\n post: {\n operationId: 'readSourceVersion',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: sourceVersionReadSchema,\n },\n },\n },\n responses: {\n '200': {\n description: 'Complete immutable source body under byte cap',\n content: {\n 'application/json': { schema: sourceVersionReadResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n '404': { description: 'Source capability unavailable' },\n '413': { description: 'Source exceeds requested byte cap' },\n },\n },\n },\n '/v1/destinations/{destination}/packages': {\n get: {\n operationId: 'searchPackages',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n packageQueryParameter('q', 'Package prefix or wildcard query'),\n packageQueryParameter(\n 'maxResults',\n 'Bounded upstream package search cap',\n ),\n packageQueryParameter('limit', 'Page size, maximum 200'),\n packageQueryParameter('cursor', 'Opaque query-bound page cursor'),\n ],\n responses: {\n '200': {\n description: 'Bounded canonical package search page',\n content: {\n 'application/json': { schema: packagePageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/packages/tree': {\n get: {\n operationId: 'getPackageTree',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n {\n name: 'root',\n in: 'query',\n required: true,\n description:\n 'Named package root. The service never enumerates a global package forest.',\n schema: packageTreeQueryProperties.root,\n },\n {\n name: 'limit',\n in: 'query',\n required: false,\n description: 'Page size, maximum 200',\n schema: packageTreeQueryProperties.limit,\n },\n {\n name: 'cursor',\n in: 'query',\n required: false,\n description: 'Opaque root-bound page cursor',\n schema: packageTreeQueryProperties.cursor,\n },\n ],\n responses: {\n '200': {\n description:\n 'Bounded canonical package subtree rooted at the requested package',\n content: {\n 'application/json': { schema: packagePageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/packages/{package}/objects': {\n get: {\n operationId: 'listPackageObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/package' },\n objectQueryParameter('limit', 'Page size, maximum 200'),\n objectQueryParameter('cursor', 'Opaque package-bound page cursor'),\n ],\n responses: {\n '200': {\n description:\n 'Bounded direct package objects with canonical identity',\n content: {\n 'application/json': { schema: objectPageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects': {\n get: {\n operationId: 'searchObjects',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n objectQueryParameter('query', 'Object prefix or wildcard query'),\n objectQueryParameter('packageName', 'Exact package filter'),\n objectQueryParameter('objectType', 'Repository object type filter'),\n objectQueryParameter(\n 'maxResults',\n 'Bounded upstream object search cap',\n ),\n objectQueryParameter('limit', 'Page size, maximum 200'),\n objectQueryParameter('cursor', 'Opaque query-bound page cursor'),\n ],\n responses: {\n '200': {\n description: 'Bounded canonical repository object search page',\n content: {\n 'application/json': { schema: objectPageResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}': {\n get: {\n operationId: 'getObjectMetadata',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n responses: {\n '200': {\n description:\n 'Canonical object metadata, facets and allowlisted relation capabilities',\n content: {\n 'application/json': { schema: objectMetadataResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/badi/{name}': {\n get: {\n operationId: 'getBadi',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n {\n name: 'name',\n in: 'path',\n required: true,\n schema: objectNamePathParameterSchema,\n description:\n 'BAdI name — definition, implementation, or ENHO container',\n },\n {\n name: 'implementations',\n in: 'query',\n required: false,\n schema: { type: 'boolean' },\n description:\n 'When name is a classic definition (SXSD/XD), include its SXCI/XI implementations',\n },\n ],\n responses: {\n '200': {\n description:\n 'Canonical BAdI metadata; kind is resolved from repository type',\n content: {\n 'application/json': { schema: badiResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}/source-history': {\n get: {\n operationId: 'getObjectSourceHistory',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n responses: {\n '200': {\n description: 'Metadata-only canonical object source history',\n content: {\n 'application/json': {\n schema: objectSourceHistoryResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/objects/{type}/{name}/source:read': {\n post: {\n operationId: 'readObjectSource',\n parameters: [\n { $ref: '#/components/parameters/destination' },\n { $ref: '#/components/parameters/objectType' },\n { $ref: '#/components/parameters/objectName' },\n ],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: objectSourceReadBodySchema },\n },\n },\n responses: {\n '200': {\n description: 'Complete bounded canonical object source body',\n content: {\n 'application/json': { schema: sourceVersionReadResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n '413': { description: 'Source exceeds the fixed byte cap' },\n },\n },\n },\n '/v1/destinations/{destination}/atc-runs': {\n post: {\n operationId: 'runAtc',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: atcRunBodySchema },\n },\n },\n responses: {\n '200': {\n description:\n 'Normalized ATC findings with opaque documentation capabilities',\n content: {\n 'application/json': { schema: atcRunResponseSchema },\n },\n },\n '400': { description: 'Invalid request' },\n },\n },\n },\n '/v1/destinations/{destination}/atc-finding-documentation:read': {\n post: {\n operationId: 'readAtcFindingDocumentation',\n parameters: [{ $ref: '#/components/parameters/destination' }],\n requestBody: {\n required: true,\n content: {\n 'application/json': { schema: atcDocumentationReadBodySchema },\n },\n },\n responses: {\n '200': {\n description: 'Complete bounded ATC documentation HTML',\n content: {\n 'application/json': {\n schema: atcDocumentationReadResponseSchema,\n },\n },\n },\n '400': { description: 'Invalid request' },\n '404': { description: 'Documentation capability is unavailable' },\n '413': { description: 'Documentation exceeds the byte cap' },\n },\n },\n },\n },\n components: {\n parameters: {\n destination: {\n name: 'destination',\n in: 'path',\n required: true,\n schema: { type: 'string', pattern: '^[a-z][a-z0-9-]{1,62}$' },\n },\n transport: {\n name: 'transport',\n in: 'path',\n required: true,\n schema: transportPathParameterSchema,\n },\n package: {\n name: 'package',\n in: 'path',\n required: true,\n schema: packagePathParameterSchema,\n },\n objectType: {\n name: 'type',\n in: 'path',\n required: true,\n schema: objectTypePathParameterSchema,\n },\n objectName: {\n name: 'name',\n in: 'path',\n required: true,\n schema: objectNamePathParameterSchema,\n },\n },\n },\n} as const;\n\nexport const openApiYaml = (): string => YAML.stringify(openApiDocument);\n"],"mappings":";;;;;AA+BA,MAAM,iCAAiC,EAAE,aAAa,wBAAwB;AAC9E,MAAM,qCAAqC,EAAE,aAC3C,4BACF;AACA,MAAM,mBAAmB,EAAE,aAAa,UAAU;AAClD,MAAM,uBAAuB,EAAE,aAAa,cAAc;AAC1D,MAAM,mCAAmC,EAAE,aACzC,0BACF;AAEA,MAAM,gCAAgC,EAAE,aACtC,2BACF;AACA,MAAM,0BAA0B,EAAE,aAAa,qBAAqB;AACpE,MAAM,kCAAkC,EAAE,aACxC,yBACF;AACA,MAAM,wCAAwC,EAAE,aAC9C,+BACF;AACA,MAAM,4BAA4B,EAAE,aAAa,mBAAmB;AACpE,MAAM,2BAA2B,EAAE,aAAa,kBAAkB;AAClE,MAAM,yBAAyB,EAAE,aAAa,gBAAgB;AAC9D,MAAM,2BAA2B,EAAE,aAAa,kBAAkB;AAClE,MAAM,+BAA+B,EAAE,aAAa,sBAAsB;AAC1E,MAAM,qBAAqB,EAAE,aAAa,YAAY;AACtD,MAAM,oCAAoC,EAAE,aAC1C,2BACF;AACA,MAAM,6BAA6B,EAAE,aAAa,oBAAoB;AACtE,MAAM,0BAA0B,EAAE,aAAa,iBAAiB;AAChE,MAAM,gCAAgC,EAAE,aAAa,uBAAuB;AAC5E,MAAM,gCAAgC,EAAE,aAAa,uBAAuB;AAC5E,MAAM,6BAA6B,E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UAAU;GACV,QAAQ;EACV;EACA,YAAY;GACV,MAAM;GACN,IAAI;GACJ,UAAU;GACV,QAAQ;EACV;CACF,EACF;AACF;AAEA,MAAa,oBAA4B,KAAK,UAAU,eAAe"}
@@ -1,4 +1,4 @@
1
- import { A as sourceVersionReadResponse, D as parsePageQuery, E as parsePackageTreeQuery, I as transportSourceManifestBody, L as transportSourceManifestResponse, M as transportListResponse, N as transportObjectsResponse, O as parseTransportSearchQuery, P as transportPathParameter, S as packageSearchResult, T as parsePackageSearchQuery, _ as objectSourceReadBody, a as atcDocumentationReadResponse, b as packagePathParameter, c as atcRunResponse, d as objectMetadataResponse, f as objectNamePathParameter, g as objectSourceHistoryResponse, h as objectSearchResult, i as atcDocumentationReadBody, j as transportDetailResponse, k as sourceVersionReadBody, l as badiResponse, n as MAX_PACKAGE_SEARCH_RESULTS, o as atcFindingResponse, p as objectPageResponse, r as MAX_SOURCE_BYTES, s as atcRunBody, t as MAX_ATC_DOCUMENTATION_BYTES, v as objectTypePathParameter, w as parseObjectSearchQuery, y as packagePageResponse } from "./rest-schemas-Dwj5ck3i.mjs";
1
+ import { A as sourceVersionReadResponse, D as parsePageQuery, E as parsePackageTreeQuery, I as transportSourceManifestBody, L as transportSourceManifestResponse, M as transportListResponse, N as transportObjectsResponse, O as parseTransportSearchQuery, P as transportPathParameter, S as packageSearchResult, T as parsePackageSearchQuery, _ as objectSourceReadBody, a as atcDocumentationReadResponse, b as packagePathParameter, c as atcRunResponse, d as objectMetadataResponse, f as objectNamePathParameter, g as objectSourceHistoryResponse, h as objectSearchResult, i as atcDocumentationReadBody, j as transportDetailResponse, k as sourceVersionReadBody, l as badiResponse, n as MAX_PACKAGE_SEARCH_RESULTS, o as atcFindingResponse, p as objectPageResponse, r as MAX_SOURCE_BYTES, s as atcRunBody, t as MAX_ATC_DOCUMENTATION_BYTES, v as objectTypePathParameter, w as parseObjectSearchQuery, y as packagePageResponse } from "./rest-schemas-DYA_Mvyk.mjs";
2
2
  import http from "node:http";
3
3
  import { createDestinationContextRegistry, createHttpMcpHandler, createMcpInvocationVerifier, resolveObjectUri } from "@abapify/adt-mcp";
4
4
  import { createCipheriv, createDecipheriv, createHash, createHmac, createPublicKey, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -8,7 +8,7 @@ import { readFile } from "node:fs/promises";
8
8
  import { request } from "node:https";
9
9
  import { BadiService, ExactSourceHistoryService } from "@abapify/adt-services";
10
10
 
11
- //#region src/sealed-capability.ts
11
+ // src/sealed-capability.ts
12
12
  function assertSecret(value, name) {
13
13
  const secret = value?.trim();
14
14
  if (!secret) throw new Error(`${name} secret is required and must be a stable, deployment-shared value.`);
@@ -125,8 +125,7 @@ function createSealedCapabilityService(options) {
125
125
  };
126
126
  }
127
127
 
128
- //#endregion
129
- //#region src/atc-documentation-capabilities.ts
128
+ // src/atc-documentation-capabilities.ts
130
129
  const DOCUMENTATION_URI = /^\/sap\/bc\/adt\/documentation\/atc\/documents\/itemid\/[A-Za-z0-9_-]+\/index\/\d+$/u;
131
130
  var RestAtcDocumentationCapabilityError = class extends Error {
132
131
  constructor() {
@@ -160,8 +159,7 @@ function createRestAtcDocumentationCapabilityService(options) {
160
159
  };
161
160
  }
162
161
 
163
- //#endregion
164
- //#region src/source-capabilities.ts
162
+ // src/source-capabilities.ts
165
163
  const ADT_PATH_PREFIX = "/sap/bc/adt/";
166
164
  var RestSourceCapabilityError = class extends Error {
167
165
  constructor() {
@@ -195,8 +193,7 @@ function createRestSourceCapabilityService(options) {
195
193
  };
196
194
  }
197
195
 
198
- //#endregion
199
- //#region src/page-cursors.ts
196
+ // src/page-cursors.ts
200
197
  const MAX_CURSOR_LENGTH = 4096;
201
198
  var RestPageCursorError = class extends Error {
202
199
  constructor() {
@@ -280,8 +277,7 @@ function createRestPageCursorService(options) {
280
277
  } };
281
278
  }
282
279
 
283
- //#endregion
284
- //#region src/request-handler.ts
280
+ // src/request-handler.ts
285
281
  const MAX_JSON_BODY_BYTES = 65536;
286
282
  var InvalidJsonBodyError = class extends Error {};
287
283
  var InvalidPathParameterError = class extends Error {};
@@ -469,11 +465,11 @@ async function handleReady(_ctx, _request, response) {
469
465
  sendJson(response, { status: "ready" });
470
466
  }
471
467
  async function handleOpenApiJson(_ctx, _request, response) {
472
- const { openApiDocument } = await import("./openapi-DRrSJgE_.mjs");
468
+ const { openApiDocument } = await import("./openapi-DmQRE-AJ.mjs");
473
469
  sendJson(response, openApiDocument);
474
470
  }
475
471
  async function handleOpenApiYaml(_ctx, _request, response) {
476
- const { openApiYaml } = await import("./openapi-DRrSJgE_.mjs");
472
+ const { openApiYaml } = await import("./openapi-DmQRE-AJ.mjs");
477
473
  response.writeHead(200, { "content-type": "application/yaml" });
478
474
  response.end(openApiYaml());
479
475
  }
@@ -917,8 +913,7 @@ function createRequestHandler(ctx) {
917
913
  };
918
914
  }
919
915
 
920
- //#endregion
921
- //#region src/server.ts
916
+ // src/server.ts
922
917
  /**
923
918
  * The ADT broker may return a direct adapter URI or a source capability
924
919
  * previously issued by this same sidecar REST process. Redeem the latter
@@ -1016,8 +1011,7 @@ async function startAdtServer(options) {
1016
1011
  };
1017
1012
  }
1018
1013
 
1019
- //#endregion
1020
- //#region src/broker.ts
1014
+ // src/broker.ts
1021
1015
  function isBrokerLease(value) {
1022
1016
  return typeof value === "object" && value !== null && typeof value.leaseId === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu.test(value.leaseId);
1023
1017
  }
@@ -1889,8 +1883,7 @@ function createHttpDestinationContexts(options) {
1889
1883
  };
1890
1884
  }
1891
1885
 
1892
- //#endregion
1893
- //#region src/mcp-runtime.ts
1886
+ // src/mcp-runtime.ts
1894
1887
  const INVOCATION_AUDIENCE = "adt-server-mcp";
1895
1888
  const MAX_TIMER_DELAY_MS = 2147483647;
1896
1889
  function scheduleDeadline(deadline, onDeadline) {
@@ -2063,8 +2056,7 @@ async function createAdtServerMcpOptions(options) {
2063
2056
  };
2064
2057
  }
2065
2058
 
2066
- //#endregion
2067
- //#region src/rest-auth.ts
2059
+ // src/rest-auth.ts
2068
2060
  function tokensMatch(expected, actual) {
2069
2061
  const expectedBytes = Buffer.from(expected, "utf8");
2070
2062
  const actualBytes = Buffer.from(actual, "utf8");
@@ -2090,8 +2082,7 @@ async function loadOptionalRestBearerAuthorizer(tokenFile) {
2090
2082
  return token ? createRestBearerAuthorizer(token) : void 0;
2091
2083
  }
2092
2084
 
2093
- //#endregion
2094
- //#region src/rest-runtime.ts
2085
+ // src/rest-runtime.ts
2095
2086
  async function readOptionalMountedSecret(secretFile) {
2096
2087
  if (!secretFile) return void 0;
2097
2088
  return (await readFile(secretFile, "utf8")).trim() || void 0;
@@ -2119,6 +2110,5 @@ async function loadRestRuntimeSecurity(options) {
2119
2110
  };
2120
2111
  }
2121
2112
 
2122
- //#endregion
2123
2113
  export { createHttpDestinationContexts as a, createHttpBrokerOperations as i, createAdtServerMcpOptions as n, startAdtServer as o, executeWithDeadlineAndAbort as r, loadRestRuntimeSecurity as t };
2124
- //# sourceMappingURL=rest-runtime-QwD2kRXE.mjs.map
2114
+ //# sourceMappingURL=rest-runtime-CuV8Stuk.mjs.map