@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
115 lines • 5.63 kB
JavaScript
import { APIResource } from "../../../../../core/resource.mjs";
import * as ConfigurationAPI from "./configuration.mjs";
import { Configuration, } from "./configuration.mjs";
import * as RBACGroupDefaultAPI from "./rbac-group-default.mjs";
import { RBACGroupDefault, } from "./rbac-group-default.mjs";
import * as RBACGroupsAPI from "./rbac-groups.mjs";
import { RBACGroups, } from "./rbac-groups.mjs";
import { BadRequestError, NotFoundError } from "../../../../../core/error.mjs";
/**
* This stored settings document currently cannot be read or replaced. Contact
* support, or, if you no longer need these settings, delete the group's settings
* or clear the default.
*/
export var BetaCMEKFeatureUnsupportedError = /* @__PURE__ */ (() => {
/**
* This stored settings document currently cannot be read or replaced. Contact
* support, or, if you no longer need these settings, delete the group's settings
* or clear the default.
*/
class BetaCMEKFeatureUnsupportedError extends BadRequestError {
}
/** @internal */
BetaCMEKFeatureUnsupportedError._errorName = 'BetaCMEKFeatureUnsupportedError';
return BetaCMEKFeatureUnsupportedError;
})();
/**
* The RBAC Group order already has the most groups allowed. Delete another group's
* settings first.
*/
export var BetaRBACGroupOrderLimitExceededError = /* @__PURE__ */ (() => {
/**
* The RBAC Group order already has the most groups allowed. Delete another group's
* settings first.
*/
class BetaRBACGroupOrderLimitExceededError extends BadRequestError {
}
/** @internal */
BetaRBACGroupOrderLimitExceededError._errorName = 'BetaRBACGroupOrderLimitExceededError';
return BetaRBACGroupOrderLimitExceededError;
})();
/**
* The organization has reached its limit of settings documents, counting unused
* ones. An owner can remove unused documents in claude.ai. Deleting a group's
* settings or clearing the default settings also frees a document, if nothing else
* uses it. None of these works once the organization has also reached its settings
* history limit.
*/
export var BetaSettingsDocumentLimitExceededError = /* @__PURE__ */ (() => {
/**
* The organization has reached its limit of settings documents, counting unused
* ones. An owner can remove unused documents in claude.ai. Deleting a group's
* settings or clearing the default settings also frees a document, if nothing else
* uses it. None of these works once the organization has also reached its settings
* history limit.
*/
class BetaSettingsDocumentLimitExceededError extends BadRequestError {
}
/** @internal */
BetaSettingsDocumentLimitExceededError._errorName = 'BetaSettingsDocumentLimitExceededError';
return BetaSettingsDocumentLimitExceededError;
})();
/**
* The organization has reached its settings history limit, a cap on stored
* versions of its settings documents. Nothing in the API or claude.ai lowers the
* count, so contact support. Creating or deleting group settings, creating or
* clearing the default settings, and reordering are refused. Changing the mode
* still works, unless it would copy the organization settings into a new default.
*/
export var BetaSettingsHistoryLimitExceededError = /* @__PURE__ */ (() => {
/**
* The organization has reached its settings history limit, a cap on stored
* versions of its settings documents. Nothing in the API or claude.ai lowers the
* count, so contact support. Creating or deleting group settings, creating or
* clearing the default settings, and reordering are refused. Changing the mode
* still works, unless it would copy the organization settings into a new default.
*/
class BetaSettingsHistoryLimitExceededError extends BadRequestError {
}
/** @internal */
BetaSettingsHistoryLimitExceededError._errorName = 'BetaSettingsHistoryLimitExceededError';
return BetaSettingsHistoryLimitExceededError;
})();
/**
* This RBAC Group has no Claude Code managed settings.
*/
export var BetaRBACGroupManagedSettingsNotFoundError = /* @__PURE__ */ (() => {
/**
* This RBAC Group has no Claude Code managed settings.
*/
class BetaRBACGroupManagedSettingsNotFoundError extends NotFoundError {
}
/** @internal */
BetaRBACGroupManagedSettingsNotFoundError._errorName = 'BetaRBACGroupManagedSettingsNotFoundError';
return BetaRBACGroupManagedSettingsNotFoundError;
})();
export var ManagedSettings = /* @__PURE__ */ (() => {
class ManagedSettings extends APIResource {
constructor() {
super(...arguments);
this.configuration = new ConfigurationAPI.Configuration(this._client);
this.rbacGroups = new RBACGroupsAPI.RBACGroups(this._client);
this.rbacGroupDefault = new RBACGroupDefaultAPI.RBACGroupDefault(this._client);
}
}
ManagedSettings.BetaCMEKFeatureUnsupportedError = BetaCMEKFeatureUnsupportedError;
ManagedSettings.BetaRBACGroupOrderLimitExceededError = BetaRBACGroupOrderLimitExceededError;
ManagedSettings.BetaSettingsDocumentLimitExceededError = BetaSettingsDocumentLimitExceededError;
ManagedSettings.BetaSettingsHistoryLimitExceededError = BetaSettingsHistoryLimitExceededError;
ManagedSettings.BetaRBACGroupManagedSettingsNotFoundError = BetaRBACGroupManagedSettingsNotFoundError;
ManagedSettings.Configuration = Configuration;
ManagedSettings.RBACGroups = RBACGroups;
ManagedSettings.RBACGroupDefault = RBACGroupDefault;
return ManagedSettings;
})();
//# sourceMappingURL=managed-settings.mjs.map