Class BetaPlugin

  • All Implemented Interfaces:

    
    public final class BetaPlugin
    
                        
    • Constructor Detail

    • Method Detail

      • manifestVersion

         final Optional<String> manifestVersion()

        The served version's manifest version, normalized for display, or null (the Plugin Version's manifest_version says 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 id stays 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_preference is 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 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.

      • 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_id differs from latest_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.

      • _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.

      • _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.

      • _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.

      • 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()