/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 91d5cfe290c1 */ import { projectsConfigureAiProviderHeaders } from "../funcs/projectsConfigureAiProviderHeaders.js"; import { projectsConfigureBuckets } from "../funcs/projectsConfigureBuckets.js"; import { projectsConfigureDeployments } from "../funcs/projectsConfigureDeployments.js"; import { projectsConfigureKeys } from "../funcs/projectsConfigureKeys.js"; import { projectsConfigureModels } from "../funcs/projectsConfigureModels.js"; import { projectsConfigureRegistry } from "../funcs/projectsConfigureRegistry.js"; import { projectsConfigureRemoteSandbox } from "../funcs/projectsConfigureRemoteSandbox.js"; import { projectsConfigureSource } from "../funcs/projectsConfigureSource.js"; import { projectsCreate } from "../funcs/projectsCreate.js"; import { projectsCreateFromTemplate } from "../funcs/projectsCreateFromTemplate.js"; import { projectsDelete } from "../funcs/projectsDelete.js"; import { projectsGet } from "../funcs/projectsGet.js"; import { projectsGetActiveRelease } from "../funcs/projectsGetActiveRelease.js"; import { projectsGetAiProviderHeaders } from "../funcs/projectsGetAiProviderHeaders.js"; import { projectsGetAiUsage } from "../funcs/projectsGetAiUsage.js"; import { projectsGetCapabilityOverview } from "../funcs/projectsGetCapabilityOverview.js"; import { projectsGetDeploymentLinkSetup } from "../funcs/projectsGetDeploymentLinkSetup.js"; import { projectsGetDeploymentPortalDomain } from "../funcs/projectsGetDeploymentPortalDomain.js"; import { projectsGetEncryptionUsage } from "../funcs/projectsGetEncryptionUsage.js"; import { projectsGetGcpOAuthProvider } from "../funcs/projectsGetGcpOAuthProvider.js"; import { projectsGetSandboxMetrics } from "../funcs/projectsGetSandboxMetrics.js"; import { projectsGetTemplateUrls } from "../funcs/projectsGetTemplateUrls.js"; import { projectsList } from "../funcs/projectsList.js"; import { projectsPreviewModelsImpact } from "../funcs/projectsPreviewModelsImpact.js"; import { projectsSetCapabilities } from "../funcs/projectsSetCapabilities.js"; import { projectsUpdate } from "../funcs/projectsUpdate.js"; import { projectsUpdateGcpOAuthProvider } from "../funcs/projectsUpdateGcpOAuthProvider.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Projects extends ClientSDK { /** * Retrieve all projects. */ async list( request?: operations.ListProjectsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(projectsList( this, request, options, )); } /** * Create a new project. */ async create( request?: operations.CreateProjectRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(projectsCreate( this, request, options, )); } /** * Retrieve a project by ID or name. */ async get( request: operations.GetProjectRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGet( this, request, options, )); } /** * Update a project. */ async update( request: operations.UpdateProjectRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsUpdate( this, request, options, )); } /** * Delete a project. The project must have no deployments. */ async delete( request: operations.DeleteProjectRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsDelete( this, request, options, )); } /** * Retrieve redacted project-level Google Cloud OAuth provider settings. */ async getGcpOAuthProvider( request: operations.GetProjectGcpOAuthProviderRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetGcpOAuthProvider( this, request, options, )); } /** * Update project-level Google Cloud OAuth provider settings. */ async updateGcpOAuthProvider( request: operations.UpdateProjectGcpOAuthProviderRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsUpdateGcpOAuthProvider( this, request, options, )); } /** * Connect a GitHub repository or Alien template to an existing project. */ async configureSource( request: operations.ConfigureProjectSourceRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureSource( this, request, options, )); } /** * Get the deployment portal domain binding for a project. */ async getDeploymentPortalDomain( request: operations.GetProjectDeploymentPortalDomainRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetDeploymentPortalDomain( this, request, options, )); } /** * Create a project by forking alienplatform/alien into your namespace. */ async createFromTemplate( request?: operations.CreateProjectFromTemplateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(projectsCreateFromTemplate( this, request, options, )); } /** * Get template URLs for deploying setup stacks in this project. */ async getTemplateUrls( request: operations.GetProjectTemplateUrlsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetTemplateUrls( this, request, options, )); } /** * Get the active release stack and portal-visible setup availability for deployment-link configuration. */ async getDeploymentLinkSetup( request: operations.GetProjectDeploymentLinkSetupRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetDeploymentLinkSetup( this, request, options, )); } /** * Get the production channel's current release. When deploymentId is provided, returns that deployment's effective release: its pin, or its followed channel's current release. */ async getActiveRelease( request: operations.GetProjectActiveReleaseRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetActiveRelease( this, request, options, )); } /** * Preview which customer model connections a configuration change may affect. */ async previewModelsImpact( request: operations.PreviewProjectModelsImpactRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsPreviewModelsImpact( this, request, options, )); } /** * Set the capabilities offered by a Project. Removing a capability prevents new setup without deleting existing customer resources. */ async setCapabilities( request: operations.SetProjectCapabilitiesRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsSetCapabilities( this, request, options, )); } /** * Enable deployments for a Project. */ async configureDeployments( request: operations.ConfigureProjectDeploymentsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureDeployments( this, request, options, )); } /** * Get static headers added to AI requests for each provider. */ async getAiProviderHeaders( request: operations.GetProjectAiProviderHeadersRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetAiProviderHeaders( this, request, options, )); } /** * Replace the static headers added to AI requests for each provider. */ async configureAiProviderHeaders( request: operations.ConfigureProjectAiProviderHeadersRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureAiProviderHeaders( this, request, options, )); } /** * Configure customer-owned model providers without requiring an application Release. */ async configureModels( request: operations.ConfigureProjectModelsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureModels( this, request, options, )); } /** * Enable customer-owned application encryption without requiring an application Release. */ async configureKeys( request: operations.ConfigureProjectKeysRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureKeys( this, request, options, )); } /** * Enable buckets without requiring a project Release. */ async configureBuckets( request: operations.ConfigureProjectBucketsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureBuckets( this, request, options, )); } /** * Enable customer-owned container registries without requiring an application Release. */ async configureRegistry( request: operations.ConfigureProjectRegistryRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureRegistry( this, request, options, )); } /** * Enable a customer-owned sandbox a hosted caller can drive through Remote Bindings. The clouds it publishes to follow the sources configured: an AWS bundle, an Azure catalog image, or both. */ async configureRemoteSandbox( request: operations.ConfigureProjectRemoteSandboxRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsConfigureRemoteSandbox( this, request, options, )); } /** * Get safe, server-derived capability status for a Project. */ async getCapabilityOverview( request: operations.GetProjectCapabilityOverviewRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetCapabilityOverview( this, request, options, )); } async getAiUsage( request: operations.GetProjectAiUsageRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetAiUsage( this, request, options, )); } async getEncryptionUsage( request: operations.GetProjectEncryptionUsageRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetEncryptionUsage( this, request, options, )); } async getSandboxMetrics( request: operations.GetProjectSandboxMetricsRequest, options?: RequestOptions, ): Promise { return unwrapAsync(projectsGetSandboxMetrics( this, request, options, )); } }