Class BetaPlugin
-
- All Implemented Interfaces:
public final class BetaPlugin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaPlugin.BuilderA builder for BetaPlugin.
public final classBetaPlugin.CreatedByWho created the Plugin; null when no creator is recorded.
public final classBetaPlugin.OrganizationInstallationPreferenceOrganization-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.public final classBetaPlugin.OwnerWho owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
public final classBetaPlugin.ReachHow far the served version reaches, or
nullif it is not classified.remotemeans it declares an MCP server or a CLI, or something that counts as one.privilegedmeans it is notremote, but declares a hook (of any type, even one that posts to a URL), monitor, language server, Claude Code workflow (any file in aworkflows/folder at its root counts as one), or settings, or has a skill, command, or other Markdown file whose frontmatter pre-approves tools (allowed-toolswith any value other than an empty one or one that names onlyAskUserQuestion,TodoWrite, andToolSearch). Otherwise it iscontained.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
nullorprivileged(orremote, if something else it declares makes itremote), notcontained. The value is normally worked out when a version is stored, under the rules of that time, so an older version can benull,containedwhere the same files stored today would beprivileged,remote, ornull, orprivilegedwhere they would beremote.
-
Method Summary
Modifier and Type Method Description final Stringid()The Plugin's ID. final Optional<List<BetaPluginComponent>>components()What the served version contains; null when not enumerated. final Optional<BetaPluginContentScan>contentScan()The served version's content scan; null when it has not been scanned. final OffsetDateTimecreatedAt()RFC 3339. final Optional<BetaPlugin.CreatedBy>createdBy()Who created the Plugin; null when no creator is recorded. final Optional<String>description()The served version's description. final Optional<String>displayName()The served version's display name. final StringlatestVersionId()The newest version. final Optional<String>manifestVersion()The served version's manifest version, normalized for display, ornull(the Plugin Version'smanifest_versionsays how and when).final StringmarketplaceId()The ID of the plugin marketplace the Plugin lives in. final Stringname()Lowercase identifier, unique within its plugin marketplace. final Optional<BetaPlugin.OrganizationInstallationPreference>organizationInstallationPreference()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. final Optional<Boolean>organizationInstallationPreferenceInherited()Organization-owned Plugin: true while it has no organization-wide setting of its own and organization_installation_preferenceis its plugin marketplace's default.final BetaPlugin.Ownerowner()Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in. final Optional<BetaPlugin.Reach>reach()How far the served version reaches, or nullif it is not classified.final StringservedVersionId()The version claude.ai serves to members. final BooleanservedVersionPinned()True once the served version has been pinned, through Update Plugin or in claude.ai. final OffsetDateTimeupdatedAt()RFC 3339. final JsonValue_type()Always plugin.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<BetaPluginComponent>>_components()Returns the raw JSON value of components. final JsonField<BetaPluginContentScan>_contentScan()Returns the raw JSON value of contentScan. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<BetaPlugin.CreatedBy>_createdBy()Returns the raw JSON value of createdBy. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_latestVersionId()Returns the raw JSON value of latestVersionId. final JsonField<String>_manifestVersion()Returns the raw JSON value of manifestVersion. final JsonField<String>_marketplaceId()Returns the raw JSON value of marketplaceId. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaPlugin.OrganizationInstallationPreference>_organizationInstallationPreference()Returns the raw JSON value of organizationInstallationPreference. final JsonField<Boolean>_organizationInstallationPreferenceInherited()Returns the raw JSON value of organizationInstallationPreferenceInherited. final JsonField<BetaPlugin.Owner>_owner()Returns the raw JSON value of owner. final JsonField<BetaPlugin.Reach>_reach()Returns the raw JSON value of reach. final JsonField<String>_servedVersionId()Returns the raw JSON value of servedVersionId. final JsonField<Boolean>_servedVersionPinned()Returns the raw JSON value of servedVersionPinned. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final Map<String, JsonValue>_additionalProperties()final BetaPlugin.BuildertoBuilder()final BetaPluginvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaPlugin.Builderbuilder()Returns a mutable builder for constructing an instance of BetaPlugin. -
-
Method Detail
-
components
final Optional<List<BetaPluginComponent>> components()
What the served version contains; null when not enumerated.
-
contentScan
final Optional<BetaPluginContentScan> contentScan()
The served version's content scan; null when it has not been scanned.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339.
-
createdBy
final Optional<BetaPlugin.CreatedBy> createdBy()
Who created the Plugin; null when no creator is recorded.
-
description
final Optional<String> description()
The served version's description.
-
displayName
final Optional<String> displayName()
The served version's display name.
-
latestVersionId
final String latestVersionId()
The newest version.
-
manifestVersion
final Optional<String> manifestVersion()
The served version's manifest
version, normalized for display, ornull(the Plugin Version'smanifest_versionsays how and when).
-
marketplaceId
final String marketplaceId()
The ID of the plugin marketplace the Plugin lives in.
-
name
final String name()
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
idstays the same.
-
organizationInstallationPreference
final Optional<BetaPlugin.OrganizationInstallationPreference> organizationInstallationPreference()
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.
-
organizationInstallationPreferenceInherited
final Optional<Boolean> organizationInstallationPreferenceInherited()
Organization-owned Plugin: true while it has no organization-wide setting of its own and
organization_installation_preferenceis its plugin marketplace's default. Null for a member-owned Plugin.
-
owner
final BetaPlugin.Owner owner()
Who owns the Plugin: the organization, or the member whose personal plugin marketplace it lives in.
-
reach
final Optional<BetaPlugin.Reach> reach()
How far the served version reaches, or
nullif it is not classified.remotemeans it declares an MCP server or a CLI, or something that counts as one.privilegedmeans it is notremote, but declares a hook (of any type, even one that posts to a URL), monitor, language server, Claude Code workflow (any file in aworkflows/folder at its root counts as one), or settings, or has a skill, command, or other Markdown file whose frontmatter pre-approves tools (allowed-toolswith any value other than an empty one or one that names onlyAskUserQuestion,TodoWrite, andToolSearch). Otherwise it iscontained.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
nullorprivileged(orremote, if something else it declares makes itremote), notcontained. The value is normally worked out when a version is stored, under the rules of that time, so an older version can benull,containedwhere the same files stored today would beprivileged,remote, ornull, orprivilegedwhere they would beremote.
-
servedVersionId
final String servedVersionId()
The version claude.ai serves to members.
-
servedVersionPinned
final Boolean servedVersionPinned()
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_iddiffers fromlatest_version_id.
-
updatedAt
final OffsetDateTime updatedAt()
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.
-
_type
final JsonValue _type()
Always
plugin.Expected to always return the following:
JsonValue.from("plugin")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_components
final JsonField<List<BetaPluginComponent>> _components()
Returns the raw JSON value of components.
Unlike components, this method doesn't throw if the JSON field has an unexpected type.
-
_contentScan
final JsonField<BetaPluginContentScan> _contentScan()
Returns the raw JSON value of contentScan.
Unlike contentScan, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<BetaPlugin.CreatedBy> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_latestVersionId
final JsonField<String> _latestVersionId()
Returns the raw JSON value of latestVersionId.
Unlike latestVersionId, this method doesn't throw if the JSON field has an unexpected type.
-
_manifestVersion
final JsonField<String> _manifestVersion()
Returns the raw JSON value of manifestVersion.
Unlike manifestVersion, this method doesn't throw if the JSON field has an unexpected type.
-
_marketplaceId
final JsonField<String> _marketplaceId()
Returns the raw JSON value of marketplaceId.
Unlike marketplaceId, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_organizationInstallationPreference
final JsonField<BetaPlugin.OrganizationInstallationPreference> _organizationInstallationPreference()
Returns the raw JSON value of organizationInstallationPreference.
Unlike organizationInstallationPreference, this method doesn't throw if the JSON field has an unexpected type.
-
_organizationInstallationPreferenceInherited
final JsonField<Boolean> _organizationInstallationPreferenceInherited()
Returns the raw JSON value of organizationInstallationPreferenceInherited.
Unlike organizationInstallationPreferenceInherited, this method doesn't throw if the JSON field has an unexpected type.
-
_owner
final JsonField<BetaPlugin.Owner> _owner()
Returns the raw JSON value of owner.
Unlike owner, this method doesn't throw if the JSON field has an unexpected type.
-
_reach
final JsonField<BetaPlugin.Reach> _reach()
Returns the raw JSON value of reach.
Unlike reach, this method doesn't throw if the JSON field has an unexpected type.
-
_servedVersionId
final JsonField<String> _servedVersionId()
Returns the raw JSON value of servedVersionId.
Unlike servedVersionId, this method doesn't throw if the JSON field has an unexpected type.
-
_servedVersionPinned
final JsonField<Boolean> _servedVersionPinned()
Returns the raw JSON value of servedVersionPinned.
Unlike servedVersionPinned, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaPlugin.Builder toBuilder()
-
validate
final BetaPlugin validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaPlugin.Builder builder()
Returns a mutable builder for constructing an instance of BetaPlugin.
The following fields are required:
.id() .components() .contentScan() .createdAt() .createdBy() .description() .displayName() .latestVersionId() .manifestVersion() .marketplaceId() .name() .organizationInstallationPreference() .organizationInstallationPreferenceInherited() .owner() .reach() .servedVersionId() .servedVersionPinned() .updatedAt()
-
-
-
-