UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

108 lines 5.5 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { deploymentsUpdateIntegrationDeploymentAction } from "../funcs/deploymentsUpdateIntegrationDeploymentAction.js"; import { integrationsConnectIntegrationResourceToProject } from "../funcs/integrationsConnectIntegrationResourceToProject.js"; import { integrationsCreateIntegrationStoreDirect } from "../funcs/integrationsCreateIntegrationStoreDirect.js"; import { integrationsDeleteConfiguration } from "../funcs/integrationsDeleteConfiguration.js"; import { integrationsGetBillingPlans } from "../funcs/integrationsGetBillingPlans.js"; import { integrationsGetConfiguration } from "../funcs/integrationsGetConfiguration.js"; import { integrationsGetConfigurationProducts } from "../funcs/integrationsGetConfigurationProducts.js"; import { integrationsGetConfigurations } from "../funcs/integrationsGetConfigurations.js"; import { integrationsGitNamespaces } from "../funcs/integrationsGitNamespaces.js"; import { integrationsSearchRepo } from "../funcs/integrationsSearchRepo.js"; import { ClientSDK } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; export class Integrations extends ClientSDK { /** * Update deployment integration action * * @remarks * Updates the deployment integration action for the specified integration installation */ async updateIntegrationDeploymentAction(request, options) { return unwrapAsync(deploymentsUpdateIntegrationDeploymentAction(this, request, options)); } /** * List git namespaces by provider * * @remarks * Lists git namespaces for a supported provider. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider is not provided, it will try to obtain it from the user that authenticated the request. */ async gitNamespaces(request, options) { return unwrapAsync(integrationsGitNamespaces(this, request, options)); } /** * List git repositories linked to namespace by provider * * @remarks * Lists git repositories linked to a namespace `id` for a supported provider. A specific namespace `id` can be obtained via the `git-namespaces` endpoint. Supported providers are `github`, `gitlab` and `bitbucket`. If the provider or namespace is not provided, it will try to obtain it from the user that authenticated the request. */ async searchRepo(request, options) { return unwrapAsync(integrationsSearchRepo(this, request, options)); } /** * List integration billing plans * * @remarks * Get a list of billing plans for an integration and product. */ async getBillingPlans(request, options) { return unwrapAsync(integrationsGetBillingPlans(this, request, options)); } /** * Connect integration resource to project * * @remarks * Connects an integration resource to a Vercel project. This endpoint establishes a connection between a provisioned integration resource (from storage APIs like `POST /v1/storage/stores/integration/direct`) and a specific Vercel project. */ async connectIntegrationResourceToProject(request, options) { return unwrapAsync(integrationsConnectIntegrationResourceToProject(this, request, options)); } /** * Get configurations for the authenticated user or team * * @remarks * Allows to retrieve all configurations for an authenticated integration. When the `project` view is used, configurations generated for the authorization flow will be filtered out of the results. */ async getConfigurations(request, options) { return unwrapAsync(integrationsGetConfigurations(this, request, options)); } /** * Retrieve an integration configuration * * @remarks * Allows to retrieve a the configuration with the provided id in case it exists. The authenticated user or team must be the owner of the config in order to access it. */ async getConfiguration(request, options) { return unwrapAsync(integrationsGetConfiguration(this, request, options)); } /** * Delete an integration configuration * * @remarks * Allows to remove the configuration with the `id` provided in the parameters. The configuration and all of its resources will be removed. This includes Webhooks, LogDrains and Project Env variables. */ async deleteConfiguration(request, options) { return unwrapAsync(integrationsDeleteConfiguration(this, request, options)); } /** * List products for integration configuration * * @remarks * Returns products available for an integration configuration. Each product includes a `metadataSchema` field with the JSON Schema for required and optional metadata fields. */ async getConfigurationProducts(request, options) { return unwrapAsync(integrationsGetConfigurationProducts(this, request, options)); } /** * Create integration store (free and paid plans) * * @remarks * Creates an integration store with automatic billing plan handling. For free resources, omit `billingPlanId` to auto-discover free plans. For paid resources, provide a `billingPlanId` from the billing plans endpoint. */ async createIntegrationStoreDirect(request, options) { return unwrapAsync(integrationsCreateIntegrationStoreDirect(this, request, options)); } } //# sourceMappingURL=integrations.js.map