UNPKG

@anthropic-ai/sdk

Version:
99 lines • 5.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ManagedSettings = exports.BetaRBACGroupManagedSettingsNotFoundError = exports.BetaSettingsHistoryLimitExceededError = exports.BetaSettingsDocumentLimitExceededError = exports.BetaRBACGroupOrderLimitExceededError = exports.BetaCMEKFeatureUnsupportedError = void 0; const tslib_1 = require("../../../../../internal/tslib.js"); const resource_1 = require("../../../../../core/resource.js"); const ConfigurationAPI = tslib_1.__importStar(require("./configuration.js")); const configuration_1 = require("./configuration.js"); const RBACGroupDefaultAPI = tslib_1.__importStar(require("./rbac-group-default.js")); const rbac_group_default_1 = require("./rbac-group-default.js"); const RBACGroupsAPI = tslib_1.__importStar(require("./rbac-groups.js")); const rbac_groups_1 = require("./rbac-groups.js"); const error_1 = require("../../../../../core/error.js"); 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 error_1.BadRequestError { } /** @internal */ BetaCMEKFeatureUnsupportedError._errorName = 'BetaCMEKFeatureUnsupportedError'; return BetaCMEKFeatureUnsupportedError; })(); exports.BetaCMEKFeatureUnsupportedError = BetaCMEKFeatureUnsupportedError; var BetaRBACGroupOrderLimitExceededError = /* @__PURE__ */ (() => { /** * The RBAC Group order already has the most groups allowed. Delete another group's * settings first. */ class BetaRBACGroupOrderLimitExceededError extends error_1.BadRequestError { } /** @internal */ BetaRBACGroupOrderLimitExceededError._errorName = 'BetaRBACGroupOrderLimitExceededError'; return BetaRBACGroupOrderLimitExceededError; })(); exports.BetaRBACGroupOrderLimitExceededError = BetaRBACGroupOrderLimitExceededError; 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 error_1.BadRequestError { } /** @internal */ BetaSettingsDocumentLimitExceededError._errorName = 'BetaSettingsDocumentLimitExceededError'; return BetaSettingsDocumentLimitExceededError; })(); exports.BetaSettingsDocumentLimitExceededError = BetaSettingsDocumentLimitExceededError; 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 error_1.BadRequestError { } /** @internal */ BetaSettingsHistoryLimitExceededError._errorName = 'BetaSettingsHistoryLimitExceededError'; return BetaSettingsHistoryLimitExceededError; })(); exports.BetaSettingsHistoryLimitExceededError = BetaSettingsHistoryLimitExceededError; var BetaRBACGroupManagedSettingsNotFoundError = /* @__PURE__ */ (() => { /** * This RBAC Group has no Claude Code managed settings. */ class BetaRBACGroupManagedSettingsNotFoundError extends error_1.NotFoundError { } /** @internal */ BetaRBACGroupManagedSettingsNotFoundError._errorName = 'BetaRBACGroupManagedSettingsNotFoundError'; return BetaRBACGroupManagedSettingsNotFoundError; })(); exports.BetaRBACGroupManagedSettingsNotFoundError = BetaRBACGroupManagedSettingsNotFoundError; var ManagedSettings = /* @__PURE__ */ (() => { class ManagedSettings extends resource_1.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_1.Configuration; ManagedSettings.RBACGroups = rbac_groups_1.RBACGroups; ManagedSettings.RBACGroupDefault = rbac_group_default_1.RBACGroupDefault; return ManagedSettings; })(); exports.ManagedSettings = ManagedSettings; //# sourceMappingURL=managed-settings.js.map