UNPKG

@sap-ai-sdk/document-grounding

Version:

> [!warning] > This package is still in **beta** and is subject to breaking changes. Use it with caution.

77 lines 4.03 kB
/* * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * This is a generated file powered by the SAP Cloud SDK for JavaScript. */ import { OpenApiRequestBuilder } from '@sap-ai-sdk/core'; /** * Representation of the 'MetadataConfigurationsApi'. * This API is part of the 'api' service. */ export const MetadataConfigurationsApi = { _defaultBasePath: '/lm/document-grounding', /** * List all metadata configurations * @param queryParameters - Object containing the following keys: $top, $skip, $count. * @returns The request builder, use the `execute()` method to trigger the request. */ listMetadataConfigurations: (queryParameters) => new OpenApiRequestBuilder('get', '/pipelines/metadata/configurations', { queryParameters }, MetadataConfigurationsApi._defaultBasePath), /** * Creates a new metadata configuration. * @param body - Request body. * @returns The request builder, use the `execute()` method to trigger the request. */ createMetadataConfiguration: (body) => new OpenApiRequestBuilder('post', '/pipelines/metadata/configurations', { body, headerParameters: { 'content-type': 'application/json' } }, MetadataConfigurationsApi._defaultBasePath), /** * Get the details of a configuration by ID * @param metadataConfigId - Metadata Configuration ID * @returns The request builder, use the `execute()` method to trigger the request. */ getMetadataConfigurationById: (metadataConfigId) => new OpenApiRequestBuilder('get', '/pipelines/metadata/configurations/{metadataConfigId}', { pathParameters: { metadataConfigId } }, MetadataConfigurationsApi._defaultBasePath), /** * Delete a metadata configuration by ID * @param metadataConfigId - Metadata Configuration ID * @returns The request builder, use the `execute()` method to trigger the request. */ deleteMetadataConfigurationById: (metadataConfigId) => new OpenApiRequestBuilder('delete', '/pipelines/metadata/configurations/{metadataConfigId}', { pathParameters: { metadataConfigId } }, MetadataConfigurationsApi._defaultBasePath), /** * List the documents for a configuration * @param metadataConfigId - Metadata Configuration ID * @param queryParameters - Object containing the following keys: absolutePath, $top, $skip, $count. * @returns The request builder, use the `execute()` method to trigger the request. */ listMetadataConfigurationDocuments: (metadataConfigId, queryParameters) => new OpenApiRequestBuilder('get', '/pipelines/metadata/configurations/{metadataConfigId}/documents', { pathParameters: { metadataConfigId }, queryParameters }, MetadataConfigurationsApi._defaultBasePath), /** * Patch the documents of a configuration in batch * @param metadataConfigId - Metadata Configuration ID * @param body - Request body. * @returns The request builder, use the `execute()` method to trigger the request. */ batchUpdateDocumentsMetadata: (metadataConfigId, body) => new OpenApiRequestBuilder('patch', '/pipelines/metadata/configurations/{metadataConfigId}/documents', { pathParameters: { metadataConfigId }, body, headerParameters: { 'content-type': 'application/merge-patch+json' } }, MetadataConfigurationsApi._defaultBasePath), /** * Get the details of a document by document id * @param metadataConfigId - Metadata Configuration ID * @param documentId - Document ID * @returns The request builder, use the `execute()` method to trigger the request. */ getMetadataDocumentDetails: (metadataConfigId, documentId) => new OpenApiRequestBuilder('get', '/pipelines/metadata/configurations/{metadataConfigId}/documents/{documentId}', { pathParameters: { metadataConfigId, documentId } }, MetadataConfigurationsApi._defaultBasePath) }; //# sourceMappingURL=metadata-configurations-api.js.map