Class BetaPluginMarketplace

    • Constructor Detail

    • Method Detail

      • id

         final String id()

        The plugin marketplace's ID, prefixed marketplace_.

      • lastSyncEndedAt

         final Optional<OffsetDateTime> lastSyncEndedAt()

        RFC 3339. When the most recent synchronization attempt to finish did so, whatever its outcome; for a repository plugin marketplace no synchronization has run on yet, when it was created. Null for a plugin marketplace that is not synchronized from a repository.

      • lastSyncReadSha

         final Optional<String> lastSyncReadSha()

        The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see sync_status); an attempt that ends failed_auth or failed_transient leaves it unchanged. Null until an attempt has first read the repository, and for a plugin marketplace that is not synchronized from a repository.

      • name

         final String name()

        Fixed for the plugin marketplace's lifetime.

      • source

         final BetaPluginMarketplace.Source source()

        Where the plugin marketplace's Plugins come from: manual when they are uploaded; github, gitlab or public_git when they are synchronized from the Git repository the owner connected, into which nothing can be uploaded; directory is Anthropic's own catalog, which this API does not list. A value this API does not yet name is returned as stored.

      • syncStatus

         final Optional<BetaPluginMarketplace.SyncStatus> syncStatus()

        Outcome of the plugin marketplace's most recent synchronization: one of success, in_progress, failed_content, failed_transient, failed_auth, failed_limits; a value this API does not yet name is returned as stored. Null until a synchronization is first attempted — so always for a manual plugin marketplace.

      • _type

         final JsonValue _type()

        Always plugin_marketplace.

        Expected to always return the following:

        JsonValue.from("plugin_marketplace")

        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.

      • _lastSyncEndedAt

         final JsonField<OffsetDateTime> _lastSyncEndedAt()

        Returns the raw JSON value of lastSyncEndedAt.

        Unlike lastSyncEndedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _lastSyncReadSha

         final JsonField<String> _lastSyncReadSha()

        Returns the raw JSON value of lastSyncReadSha.

        Unlike lastSyncReadSha, 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.

      • validate

         final BetaPluginMarketplace 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 BetaPluginMarketplace.Builder builder()

        Returns a mutable builder for constructing an instance of BetaPluginMarketplace.

        The following fields are required:

        .id()
        .createdAt()
        .defaultInstallationPreference()
        .lastSyncEndedAt()
        .lastSyncReadSha()
        .name()
        .owner()
        .source()
        .syncStatus()