/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vellum from "../../../index"; export declare namespace Integrations { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey: core.Supplier; /** Override the X-API-Version header */ apiVersion?: core.Supplier; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the X-API-Version header */ apiVersion?: Vellum.ApiVersionEnum | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class Integrations { protected readonly _options: Integrations.Options; constructor(_options: Integrations.Options); /** * @param {string} integrationName - The integration name * @param {string} integrationProvider - The integration provider name * @param {string} toolName - The tool's unique name, as specified by the integration provider * @param {Vellum.RetrieveIntegrationToolDefinitionRequest} request * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vellum.NotFoundError} * * @example * await client.integrations.retrieveIntegrationToolDefinition("integration_name", "integration_provider", "tool_name") */ retrieveIntegrationToolDefinition(integrationName: string, integrationProvider: string, toolName: string, request?: Vellum.RetrieveIntegrationToolDefinitionRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise; private __retrieveIntegrationToolDefinition; /** * @param {string} integrationName - The integration name * @param {string} integrationProvider - The integration provider name * @param {string} toolName - The tool's unique name, as specified by the integration provider * @param {Vellum.ExecuteIntegrationToolRequest} request * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vellum.BadRequestError} * @throws {@link Vellum.UnauthorizedError} * @throws {@link Vellum.ForbiddenError} * @throws {@link Vellum.NotFoundError} * @throws {@link Vellum.GoneError} * @throws {@link Vellum.ContentTooLargeError} * @throws {@link Vellum.UnprocessableEntityError} * @throws {@link Vellum.TooManyRequestsError} * @throws {@link Vellum.BadGatewayError} * @throws {@link Vellum.ServiceUnavailableError} * * @example * await client.integrations.executeIntegrationTool("integration_name", "integration_provider", "tool_name", { * body: { * provider: "COMPOSIO", * arguments: { * "arguments": { * "key": "value" * } * } * } * }) */ executeIntegrationTool(integrationName: string, integrationProvider: string, toolName: string, request: Vellum.ExecuteIntegrationToolRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise; private __executeIntegrationTool; /** * List all integrations * * @param {Vellum.IntegrationsListRequest} request * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.integrations.list() */ list(request?: Vellum.IntegrationsListRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise; private __list; /** * Retrieve an integration * * @param {string} id - A UUID string identifying this integration. * @param {Integrations.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.integrations.retrieve("id") */ retrieve(id: string, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise; private __retrieve; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }