UNPKG

@anthropic-ai/sdk

Version:
106 lines • 4.63 kB
import { APIResource } from "../../../../../core/resource.mjs"; import * as BetaAPI from "../../../beta.mjs"; import { APIPromise } from "../../../../../core/api-promise.mjs"; import { RequestOptions } from "../../../../../internal/request-options.mjs"; export declare class RBACGroupDefault extends APIResource { /** * Retrieve the default Claude Code managed settings, which members who belong to * no RBAC Group in `rbac_group_order` receive in `rbac_groups` mode. * * **Accepted credentials:** an organization-level Admin API key with the * `read:claude_code_managed_settings` scope. * * Every request must include the beta header * `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without * it, or from an organization not enabled for this beta, returns `404`. The Claude * Code Managed Settings API is in beta and is available to Claude Enterprise * organizations only. * * @throws {BetaCMEKFeatureUnsupportedError} * @throws {CMEKKeyDisabledError} * * @example * ```ts * const betaClaudeCodeRBACGroupDefaultManagedSettings = * await client.beta.organization.claudeCode.managedSettings.rbacGroupDefault.retrieve(); * ``` */ retrieve(params?: RBACGroupDefaultRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<BetaClaudeCodeRBACGroupDefaultManagedSettings>; /** * Set or replace the default Claude Code managed settings, or clear them with * `null`. * * **Accepted credentials:** an organization-level Admin API key with the * `write:claude_code_managed_settings` scope. * * Every request must include the beta header * `anthropic-beta: ce-claude-code-managed-settings-2026-10-06`. A request without * it, or from an organization not enabled for this beta, returns `404`. The Claude * Code Managed Settings API is in beta and is available to Claude Enterprise * organizations only. * * A write that returns `503` may have applied. Retrying it is safe. * * @throws {BetaCMEKFeatureUnsupportedError} * @throws {CMEKKeyDisabledError} * @throws {BetaRequestBodyTimeoutError} * @throws {BetaSettingsDocumentLimitExceededError} * @throws {BetaSettingsHistoryLimitExceededError} * @throws {SandboxEgressRestrictedError} * * @example * ```ts * const betaClaudeCodeRBACGroupDefaultManagedSettings = * await client.beta.organization.claudeCode.managedSettings.rbacGroupDefault.update( * { settings: { foo: 'bar' } }, * ); * ``` */ update(params: RBACGroupDefaultUpdateParams, options?: RequestOptions): APIPromise<BetaClaudeCodeRBACGroupDefaultManagedSettings>; } export interface BetaClaudeCodeRBACGroupDefaultManagedSettings { /** * The default settings document, or `null` if none are set or the stored document * is damaged and can no longer be read. To tell these apart, `updated_at` is * `null` only when none are set. Replacing a damaged document fixes this. */ settings: { [key: string]: unknown; } | null; /** * Always `claude_code_rbac_group_default_managed_settings`. */ type: 'claude_code_rbac_group_default_managed_settings'; /** * When the default settings last changed, in RFC 3339 format, or `null` if none * are set. */ updated_at: string | null; } export interface RBACGroupDefaultRetrieveParams { /** * This endpoint is in beta: requests must send * `ce-claude-code-managed-settings-2026-10-06` in this header. */ betas?: Array<BetaAPI.AnthropicBeta>; } export interface RBACGroupDefaultUpdateParams { /** * Body param: The whole settings document, a JSON object of Claude Code managed * settings. It replaces any stored document, or `null` clears the default * settings. At most 1 MiB as the server stores it, which can be larger than the * request body. */ settings: { [key: string]: unknown; } | null; /** * Header param: This endpoint is in beta: requests must send * `ce-claude-code-managed-settings-2026-10-06` in this header. */ betas?: Array<BetaAPI.AnthropicBeta>; } export declare namespace RBACGroupDefault { export { type BetaClaudeCodeRBACGroupDefaultManagedSettings as BetaClaudeCodeRBACGroupDefaultManagedSettings, type RBACGroupDefaultRetrieveParams as RBACGroupDefaultRetrieveParams, type RBACGroupDefaultUpdateParams as RBACGroupDefaultUpdateParams, }; } //# sourceMappingURL=rbac-group-default.d.mts.map