import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; export declare class IndexingDocuments extends ClientSDK { /** * Index document * * @remarks * Adds a document to the index or updates an existing document. */ addOrUpdate(request: components.IndexDocumentRequest, options?: RequestOptions): Promise; /** * Index documents * * @remarks * Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint. */ index(request: components.IndexDocumentsRequest, options?: RequestOptions): Promise; /** * Bulk index documents * * @remarks * Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. */ bulkIndex(request: components.BulkIndexDocumentsRequest, options?: RequestOptions): Promise; /** * Schedules the processing of uploaded documents * * @remarks * Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. * * If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. * #### Rate Limits * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. * * For more frequent document processing, contact Glean support. */ processAll(request?: components.ProcessAllDocumentsRequest | undefined, options?: RequestOptions): Promise; /** * Delete document * * @remarks * Deletes the specified document from the index. Succeeds if document is not present. */ delete(request: components.DeleteDocumentRequest, options?: RequestOptions): Promise; /** * Beta: Get document information * * @remarks * Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. * * Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. */ debug(debugDocumentRequest: components.DebugDocumentRequest, datasource: string, options?: RequestOptions): Promise; /** * Beta: Get information of a batch of documents * * @remarks * Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice. * * Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. */ debugMany(debugDocumentsRequest: components.DebugDocumentsRequest, datasource: string, options?: RequestOptions): Promise; /** * Check document access * * @remarks * Check if a given user has access to access a document in a custom datasource * * Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. */ checkAccess(request: components.CheckDocumentAccessRequest, options?: RequestOptions): Promise; /** * Get document upload and indexing status * * @remarks * Intended for debugging/validation. Fetches the current upload and indexing status of documents. * * Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information. * * @deprecated method: Deprecated on 2026-02-03, removal scheduled for 2026-10-15: Endpoint is deprecated. */ status(request: components.GetDocumentStatusRequest, options?: RequestOptions): Promise; /** * Get document count * * @remarks * Fetches document count for the specified custom datasource. * * Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. * * @deprecated method: Deprecated on 2026-02-03, removal scheduled for 2026-10-15: Endpoint is deprecated. */ count(request: components.GetDocumentCountRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=indexingdocuments.d.ts.map