Class: Anthropic::Models::Beta::Organization::BetaPlugin
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaPlugin
- Defined in:
- lib/anthropic/models/beta/organization/beta_plugin.rb,
sig/anthropic/models/beta/organization/beta_plugin.rbs
Overview
Defined Under Namespace
Modules: CreatedBy, OrganizationInstallationPreference, Owner, Reach
Instance Attribute Summary collapse
-
#components ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginComponent>?
What the served version contains; null when not enumerated.
-
#content_scan ⇒ Anthropic::Models::Beta::Organization::BetaPluginContentScan?
The served version's content scan; null when it has not been scanned.
-
#created_at ⇒ Time
RFC 3339.
-
#created_by ⇒ Anthropic::Models::Beta::Organization::BetaPluginUserActor, ...
Who created the Plugin; null when no creator is recorded.
-
#description ⇒ String?
The served version's description.
-
#display_name ⇒ String?
The served version's display name.
-
#id ⇒ String
The Plugin's ID.
-
#latest_version_id ⇒ String
The newest version.
-
#manifest_version ⇒ String?
The served version's manifest
version, normalized for display, ornull(the Plugin Version'smanifest_versionsays how and when). -
#marketplace_id ⇒ String
The ID of the plugin marketplace the Plugin lives in.
-
#name ⇒ String
Lowercase identifier, unique within its plugin marketplace.
-
#organization_installation_preference ⇒ Symbol, ...
Organization-owned Plugin: the organization-wide installation setting every member gets unless an RBAC Group they belong to holds its own — the Plugin's own setting, or its plugin marketplace's default.
-
#organization_installation_preference_inherited ⇒ Boolean?
Organization-owned Plugin: true while it has no organization-wide setting of its own and
organization_installation_preferenceis its plugin marketplace's default. -
#owner ⇒ Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser
Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
-
#reach ⇒ Symbol, ...
How far the served version reaches, or
nullif it is not classified. -
#served_version_id ⇒ String
The version claude.ai serves to members.
-
#served_version_pinned ⇒ Boolean
True once the served version has been pinned, through Update Plugin or in claude.ai.
-
#type ⇒ Symbol, :plugin
Always
plugin. -
#updated_at ⇒ Time
RFC 3339.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, components:, content_scan:, created_at:, created_by:, description:, display_name:, latest_version_id:, manifest_version:, marketplace_id:, name:, organization_installation_preference:, organization_installation_preference_inherited:, owner:, reach:, served_version_id:, served_version_pinned:, updated_at:, type: :plugin) ⇒ BetaPlugin
constructor
Some parameter documentations has been truncated, see BetaPlugin for more details.
- #to_hash ⇒ { id: String, components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?, content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?, created_at: Time, created_by: Anthropic::Models::Beta::Organization::BetaPlugin::created_by?, description: String?, display_name: String?, latest_version_id: String, manifest_version: String?, marketplace_id: String, name: String, organization_installation_preference: Anthropic::Models::Beta::Organization::BetaPlugin::organization_installation_preference?, organization_installation_preference_inherited: bool?, owner: Anthropic::Models::Beta::Organization::BetaPlugin::owner, reach: Anthropic::Models::Beta::Organization::BetaPlugin::reach?, served_version_id: String, served_version_pinned: bool, type: :plugin, updated_at: Time }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, components:, content_scan:, created_at:, created_by:, description:, display_name:, latest_version_id:, manifest_version:, marketplace_id:, name:, organization_installation_preference:, organization_installation_preference_inherited:, owner:, reach:, served_version_id:, served_version_pinned:, updated_at:, type: :plugin) ⇒ BetaPlugin
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaPlugin for more details.
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 166
|
Instance Attribute Details
#components ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginComponent>?
What the served version contains; null when not enumerated.
19 20 21 22 23 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 19 required :components, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaPluginComponent] }, nil?: true |
#content_scan ⇒ Anthropic::Models::Beta::Organization::BetaPluginContentScan?
The served version's content scan; null when it has not been scanned.
29 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 29 required :content_scan, -> { Anthropic::Beta::Organization::BetaPluginContentScan }, nil?: true |
#created_at ⇒ Time
RFC 3339.
35 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 35 required :created_at, Time |
#created_by ⇒ Anthropic::Models::Beta::Organization::BetaPluginUserActor, ...
Who created the Plugin; null when no creator is recorded.
41 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 41 required :created_by, union: -> { Anthropic::Beta::Organization::BetaPlugin::CreatedBy }, nil?: true |
#description ⇒ String?
The served version's description.
47 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 47 required :description, String, nil?: true |
#display_name ⇒ String?
The served version's display name.
53 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 53 required :display_name, String, nil?: true |
#id ⇒ String
The Plugin's ID.
13 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 13 required :id, String |
#latest_version_id ⇒ String
The newest version.
59 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 59 required :latest_version_id, String |
#manifest_version ⇒ String?
The served version's manifest version, normalized for display, or null (the
Plugin Version's manifest_version says how and when).
66 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 66 required :manifest_version, String, nil?: true |
#marketplace_id ⇒ String
The ID of the plugin marketplace the Plugin lives in.
72 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 72 required :marketplace_id, String |
#name ⇒ String
Lowercase identifier, unique within its plugin marketplace. Fixed for an
organization-owned Plugin's lifetime; a member-owned Plugin's changes when its
owner renames it in claude.ai, while its id stays the same.
80 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 80 required :name, String |
#organization_installation_preference ⇒ Symbol, ...
Organization-owned Plugin: the organization-wide installation setting every
member gets unless an RBAC Group they belong to holds its own — the Plugin's own
setting, or its plugin marketplace's default. Null for a member-owned Plugin,
which has shares instead. One of required, auto_install, available,
not_available; a value this API does not yet name is returned as stored.
90 91 92 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 90 required :organization_installation_preference, enum: -> { Anthropic::Beta::Organization::BetaPlugin::OrganizationInstallationPreference }, nil?: true |
#organization_installation_preference_inherited ⇒ Boolean?
Organization-owned Plugin: true while it has no organization-wide setting of its
own and organization_installation_preference is its plugin marketplace's
default. Null for a member-owned Plugin.
100 101 102 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 100 required :organization_installation_preference_inherited, Anthropic::Internal::Type::Boolean, nil?: true |
#owner ⇒ Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser
Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
109 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 109 required :owner, union: -> { Anthropic::Beta::Organization::BetaPlugin::Owner } |
#reach ⇒ Symbol, ...
How far the served version reaches, or null if it is not classified.
remote means it declares an MCP server or a CLI, or something that counts as
one. privileged means it is not remote, but declares a hook (of any type,
even one that posts to a URL), monitor, language server, Claude Code workflow
(any file in a workflows/ folder at its root counts as one), or settings, or
has a skill, command, or other Markdown file whose frontmatter pre-approves
tools (allowed-tools with any value other than an empty one or one that names
only AskUserQuestion, TodoWrite, and ToolSearch). Otherwise it is
contained.
If the frontmatter of a skill, command, or other Markdown file that could change
the value could not be read, or was past a size limit, the version is null or
privileged (or remote, if something else it declares makes it remote), not
contained. The value is normally worked out when a version is stored, under
the rules of that time, so an older version can be null, contained where the
same files stored today would be privileged, remote, or null, or
privileged where they would be remote.
132 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 132 required :reach, enum: -> { Anthropic::Beta::Organization::BetaPlugin::Reach }, nil?: true |
#served_version_id ⇒ String
The version claude.ai serves to members.
138 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 138 required :served_version_id, String |
#served_version_pinned ⇒ Boolean
True once the served version has been pinned, through Update Plugin or in
claude.ai. While false, a new version normally becomes the served version when
it is stored. While the newest version is not the served version, as when a
version saved in claude.ai is waiting for its content scan, served_version_id
differs from latest_version_id.
148 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 148 required :served_version_pinned, Anthropic::Internal::Type::Boolean |
#type ⇒ Symbol, :plugin
Always plugin.
154 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 154 required :type, const: :plugin |
#updated_at ⇒ Time
RFC 3339. Moves on a served-version change (including pinning an unpinned Plugin to the version it already serves) and, normally, on a new version. A version saved in claude.ai that waits for its content scan moves it when it becomes the served version, and not necessarily when it is stored. A change to the Plugin's installation settings or shares does not move it.
164 |
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 164 required :updated_at, Time |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/beta_plugin.rb', line 278
|
Instance Method Details
#to_hash ⇒ { id: String, components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?, content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?, created_at: Time, created_by: Anthropic::Models::Beta::Organization::BetaPlugin::created_by?, description: String?, display_name: String?, latest_version_id: String, manifest_version: String?, marketplace_id: String, name: String, organization_installation_preference: Anthropic::Models::Beta::Organization::BetaPlugin::organization_installation_preference?, organization_installation_preference_inherited: bool?, owner: Anthropic::Models::Beta::Organization::BetaPlugin::owner, reach: Anthropic::Models::Beta::Organization::BetaPlugin::reach?, served_version_id: String, served_version_pinned: bool, type: :plugin, updated_at: Time }
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'sig/anthropic/models/beta/organization/beta_plugin.rbs', line 89
def to_hash: -> {
id: String,
components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?,
content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?,
created_at: Time,
created_by: Anthropic::Models::Beta::Organization::BetaPlugin::created_by?,
description: String?,
display_name: String?,
latest_version_id: String,
manifest_version: String?,
marketplace_id: String,
name: String,
organization_installation_preference: Anthropic::Models::Beta::Organization::BetaPlugin::organization_installation_preference?,
organization_installation_preference_inherited: bool?,
owner: Anthropic::Models::Beta::Organization::BetaPlugin::owner,
reach: Anthropic::Models::Beta::Organization::BetaPlugin::reach?,
served_version_id: String,
served_version_pinned: bool,
type: :plugin,
updated_at: Time
}
|