@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
129 lines • 6.31 kB
JavaScript
import { APIResource } from "../../core/resource.mjs";
import * as DeploymentRunsAPI from "./deployment-runs.mjs";
import { DeploymentRuns, } from "./deployment-runs.mjs";
import * as DeploymentsAPI from "./deployments.mjs";
import { Deployments, } from "./deployments.mjs";
import * as DreamsAPI from "./dreams.mjs";
import { Dreams, } from "./dreams.mjs";
import * as FilesAPI from "./files.mjs";
import { Files, } from "./files.mjs";
import * as ModelsAPI from "./models.mjs";
import { Models, } from "./models.mjs";
import * as WebhooksAPI from "./webhooks.mjs";
import { Webhooks, } from "./webhooks.mjs";
import * as AgentsAPI from "./agents/agents.mjs";
import { Agents, } from "./agents/agents.mjs";
import * as EnvironmentsAPI from "./environments/environments.mjs";
import { BetaEnvironmentArchivedError, BetaEnvironmentCreateDisabledError, BetaEnvironmentNotFoundError, BetaEnvironmentUpdateDisabledError, BetaInvalidConfigTypeChangeError, BetaInvalidMetadataError, Environments, } from "./environments/environments.mjs";
import * as MemoryStoresAPI from "./memory-stores/memory-stores.mjs";
import { MemoryStores, } from "./memory-stores/memory-stores.mjs";
import * as MessagesAPI from "./messages/messages.mjs";
import { Messages, } from "./messages/messages.mjs";
import * as OrganizationAPI from "./organization/organization.mjs";
import { Organization } from "./organization/organization.mjs";
import * as SessionsAPI from "./sessions/sessions.mjs";
import { Sessions, } from "./sessions/sessions.mjs";
import * as SkillsAPI from "./skills/skills.mjs";
import { Skills, } from "./skills/skills.mjs";
import * as TunnelsAPI from "./tunnels/tunnels.mjs";
import { Tunnels, } from "./tunnels/tunnels.mjs";
import * as UserProfilesAPI from "./user-profiles/user-profiles.mjs";
import { UserProfiles, } from "./user-profiles/user-profiles.mjs";
import * as VaultsAPI from "./vaults/vaults.mjs";
import { Vaults, } from "./vaults/vaults.mjs";
import { BadRequestError } from "../../core/error.mjs";
/**
* The beta that the endpoint requires is not enabled for the organization. The
* message names the beta value.
*/
export var BetaOrganizationNotEnrolledInBetaError = /* @__PURE__ */ (() => {
/**
* The beta that the endpoint requires is not enabled for the organization. The
* message names the beta value.
*/
class BetaOrganizationNotEnrolledInBetaError extends BadRequestError {
}
/** @internal */
BetaOrganizationNotEnrolledInBetaError._errorName = 'BetaOrganizationNotEnrolledInBetaError';
return BetaOrganizationNotEnrolledInBetaError;
})();
/**
* The request body did not finish arriving in time, so nothing was done. Send a
* smaller body, or send it over a faster connection.
*/
export var BetaRequestBodyTimeoutError = /* @__PURE__ */ (() => {
/**
* The request body did not finish arriving in time, so nothing was done. Send a
* smaller body, or send it over a faster connection.
*/
class BetaRequestBodyTimeoutError extends BadRequestError {
}
/** @internal */
BetaRequestBodyTimeoutError._errorName = 'BetaRequestBodyTimeoutError';
return BetaRequestBodyTimeoutError;
})();
/**
* The request's `Content-Type` header names a charset other than UTF-8, ISO-8859-1
* or US-ASCII. Send the request with no charset, or with one of these.
*/
export var BetaUnsupportedCharsetError = /* @__PURE__ */ (() => {
/**
* The request's `Content-Type` header names a charset other than UTF-8, ISO-8859-1
* or US-ASCII. Send the request with no charset, or with one of these.
*/
class BetaUnsupportedCharsetError extends BadRequestError {
}
/** @internal */
BetaUnsupportedCharsetError._errorName = 'BetaUnsupportedCharsetError';
return BetaUnsupportedCharsetError;
})();
export var Beta = /* @__PURE__ */ (() => {
class Beta extends APIResource {
constructor() {
super(...arguments);
this.models = new ModelsAPI.Models(this._client);
this.messages = new MessagesAPI.Messages(this._client);
this.agents = new AgentsAPI.Agents(this._client);
this.environments = new EnvironmentsAPI.Environments(this._client);
this.sessions = new SessionsAPI.Sessions(this._client);
this.deployments = new DeploymentsAPI.Deployments(this._client);
this.deploymentRuns = new DeploymentRunsAPI.DeploymentRuns(this._client);
this.vaults = new VaultsAPI.Vaults(this._client);
this.memoryStores = new MemoryStoresAPI.MemoryStores(this._client);
this.files = new FilesAPI.Files(this._client);
this.skills = new SkillsAPI.Skills(this._client);
this.webhooks = new WebhooksAPI.Webhooks(this._client);
this.userProfiles = new UserProfilesAPI.UserProfiles(this._client);
this.dreams = new DreamsAPI.Dreams(this._client);
this.tunnels = new TunnelsAPI.Tunnels(this._client);
this.organization = new OrganizationAPI.Organization(this._client);
}
}
Beta.BetaOrganizationNotEnrolledInBetaError = BetaOrganizationNotEnrolledInBetaError;
Beta.BetaRequestBodyTimeoutError = BetaRequestBodyTimeoutError;
Beta.BetaUnsupportedCharsetError = BetaUnsupportedCharsetError;
Beta.Models = Models;
Beta.Messages = Messages;
Beta.Agents = Agents;
Beta.Environments = Environments;
Beta.BetaEnvironmentArchivedError = BetaEnvironmentArchivedError;
Beta.BetaInvalidConfigTypeChangeError = BetaInvalidConfigTypeChangeError;
Beta.BetaInvalidMetadataError = BetaInvalidMetadataError;
Beta.BetaEnvironmentCreateDisabledError = BetaEnvironmentCreateDisabledError;
Beta.BetaEnvironmentUpdateDisabledError = BetaEnvironmentUpdateDisabledError;
Beta.BetaEnvironmentNotFoundError = BetaEnvironmentNotFoundError;
Beta.Sessions = Sessions;
Beta.Deployments = Deployments;
Beta.DeploymentRuns = DeploymentRuns;
Beta.Vaults = Vaults;
Beta.MemoryStores = MemoryStores;
Beta.Files = Files;
Beta.Skills = Skills;
Beta.Webhooks = Webhooks;
Beta.UserProfiles = UserProfiles;
Beta.Dreams = Dreams;
Beta.Tunnels = Tunnels;
Beta.Organization = Organization;
return Beta;
})();
//# sourceMappingURL=beta.mjs.map