/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 9a1b36425210 */ import { betaRagSearchIndexesGetDeploymentSummaries } from "../funcs/betaRagSearchIndexesGetDeploymentSummaries.js"; import { betaRagSearchIndexesRegisterDeployment } from "../funcs/betaRagSearchIndexesRegisterDeployment.js"; import { betaRagSearchIndexesUnregisterDeployment } from "../funcs/betaRagSearchIndexesUnregisterDeployment.js"; import { betaRagSearchIndexesUpdateIndexMetrics } from "../funcs/betaRagSearchIndexesUpdateIndexMetrics.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class SearchIndexes extends ClientSDK { /** * Get Deployment Summaries * * @remarks * Fetch all indexes available to a user */ async getDeploymentSummaries( options?: RequestOptions, ): Promise { return unwrapAsync(betaRagSearchIndexesGetDeploymentSummaries( this, options, )); } /** * Register (or re-register) a search index */ async registerDeployment( request: components.RegisterDeploymentRequestDeployment, options?: RequestOptions, ): Promise { return unwrapAsync(betaRagSearchIndexesRegisterDeployment( this, request, options, )); } /** * Unregister Deployment * * @remarks * Delete all information about a deployment */ async unregisterDeployment( request: operations.UnregisterDeploymentV1RagDeploymentsDeploymentIdDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(betaRagSearchIndexesUnregisterDeployment( this, request, options, )); } /** * Update Index Metrics * * @remarks * Update the metrics for a given index */ async updateIndexMetrics( request: operations.UpdateIndexMetricsV1RagDeploymentsDeploymentIdMetricsPutRequest, options?: RequestOptions, ): Promise { return unwrapAsync(betaRagSearchIndexesUpdateIndexMetrics( this, request, options, )); } }