diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b56c3d0b..e8285b71 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.4" + ".": "0.1.0-alpha.5" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7eda3596..9a756baa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 959 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-a393b1d7074c56c47932ec0f1e328d567f1466ecdbc04c19e7067df1b097ecb0.yml -openapi_spec_hash: d0e76c7f7ecb1e8f701d4ced83be404f -config_hash: 3c65b4da968b08d5322cacebf983ccb9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hubspot/hubspot-sdk-823cfd41f503bd00779bc02af045a44617ded14a4612bc128567301eb2982763.yml +openapi_spec_hash: 3a53f40c597fb1a8ded7d5f8939b8cc1 +config_hash: 8397c3cc951490dffa28dc7f9f0635e4 diff --git a/CHANGELOG.md b/CHANGELOG.md index e055b053..bdcd2c04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.5 (2026-05-07) + +Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/HubSpot/hubspot-sdk-java/compare/v0.1.0-alpha.4...v0.1.0-alpha.5) + +### Features + +* **api:** manual updates ([95e362e](https://github.com/HubSpot/hubspot-sdk-java/commit/95e362ea8404c308485a64437b0cb438d5abe868)) + ## 0.1.0-alpha.4 (2026-05-06) Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/HubSpot/hubspot-sdk-java/compare/v0.1.0-alpha.3...v0.1.0-alpha.4) diff --git a/README.md b/README.md index c210613e..4f49e0fc 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.hubspot.sdk/hubspot-java)](https://central.sonatype.com/artifact/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4) -[![javadoc](https://javadoc.io/badge2/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4/javadoc.svg)](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4) +[![Maven Central](https://img.shields.io/maven-central/v/com.hubspot.sdk/hubspot-java)](https://central.sonatype.com/artifact/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5) +[![javadoc](https://javadoc.io/badge2/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5/javadoc.svg)](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5) @@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/). -The REST API documentation can be found on [developers.hubspot.com](https://developers.hubspot.com/docs/api-reference/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.4). +The REST API documentation can be found on [developers.hubspot.com](https://developers.hubspot.com/docs/api-reference/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.hubspot.sdk/hubspot-java/0.1.0-alpha.5). @@ -24,7 +24,7 @@ The REST API documentation can be found on [developers.hubspot.com](https://deve ### Gradle ```kotlin -implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.4") +implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.5") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.hubspot.sdk:hubspot-java:0.1.0-alpha.4") com.hubspot.sdk hubspot-java - 0.1.0-alpha.4 + 0.1.0-alpha.5 ``` diff --git a/build.gradle.kts b/build.gradle.kts index 8bdf6961..f9a4e4df 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ repositories { allprojects { group = "com.hubspot.sdk" - version = "0.1.0-alpha.4" // x-release-please-version + version = "0.1.0-alpha.5" // x-release-please-version } subprojects { diff --git a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseAssociationDefinition.kt b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/AssociationDefinition.kt similarity index 92% rename from hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseAssociationDefinition.kt rename to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/AssociationDefinition.kt index 91a6e74f..7eca1834 100644 --- a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseAssociationDefinition.kt +++ b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/AssociationDefinition.kt @@ -18,7 +18,7 @@ import java.util.Objects import java.util.Optional /** The definition of an association */ -class BaseAssociationDefinition +class AssociationDefinition @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, @@ -162,7 +162,7 @@ private constructor( companion object { /** - * Returns a mutable builder for constructing an instance of [BaseAssociationDefinition]. + * Returns a mutable builder for constructing an instance of [AssociationDefinition]. * * The following fields are required: * ```java @@ -174,7 +174,7 @@ private constructor( @JvmStatic fun builder() = Builder() } - /** A builder for [BaseAssociationDefinition]. */ + /** A builder for [AssociationDefinition]. */ class Builder internal constructor() { private var id: JsonField? = null @@ -186,14 +186,14 @@ private constructor( private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic - internal fun from(baseAssociationDefinition: BaseAssociationDefinition) = apply { - id = baseAssociationDefinition.id - fromObjectTypeId = baseAssociationDefinition.fromObjectTypeId - toObjectTypeId = baseAssociationDefinition.toObjectTypeId - createdAt = baseAssociationDefinition.createdAt - name = baseAssociationDefinition.name - updatedAt = baseAssociationDefinition.updatedAt - additionalProperties = baseAssociationDefinition.additionalProperties.toMutableMap() + internal fun from(associationDefinition: AssociationDefinition) = apply { + id = associationDefinition.id + fromObjectTypeId = associationDefinition.fromObjectTypeId + toObjectTypeId = associationDefinition.toObjectTypeId + createdAt = associationDefinition.createdAt + name = associationDefinition.name + updatedAt = associationDefinition.updatedAt + additionalProperties = associationDefinition.additionalProperties.toMutableMap() } /** The unique ID of the associated object (e.g., a contact ID). */ @@ -291,7 +291,7 @@ private constructor( } /** - * Returns an immutable instance of [BaseAssociationDefinition]. + * Returns an immutable instance of [AssociationDefinition]. * * Further updates to this [Builder] will not mutate the returned instance. * @@ -304,8 +304,8 @@ private constructor( * * @throws IllegalStateException if any required field is unset. */ - fun build(): BaseAssociationDefinition = - BaseAssociationDefinition( + fun build(): AssociationDefinition = + AssociationDefinition( checkRequired("id", id), checkRequired("fromObjectTypeId", fromObjectTypeId), checkRequired("toObjectTypeId", toObjectTypeId), @@ -326,7 +326,7 @@ private constructor( * @throws HubSpotInvalidDataException if any value type in this object doesn't match its * expected type. */ - fun validate(): BaseAssociationDefinition = apply { + fun validate(): AssociationDefinition = apply { if (validated) { return@apply } @@ -367,7 +367,7 @@ private constructor( return true } - return other is BaseAssociationDefinition && + return other is AssociationDefinition && id == other.id && fromObjectTypeId == other.fromObjectTypeId && toObjectTypeId == other.toObjectTypeId && @@ -392,5 +392,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "BaseAssociationDefinition{id=$id, fromObjectTypeId=$fromObjectTypeId, toObjectTypeId=$toObjectTypeId, createdAt=$createdAt, name=$name, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" + "AssociationDefinition{id=$id, fromObjectTypeId=$fromObjectTypeId, toObjectTypeId=$toObjectTypeId, createdAt=$createdAt, name=$name, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" } diff --git a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseError.kt b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ErrorData.kt similarity index 96% rename from hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseError.kt rename to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ErrorData.kt index 2a0b943d..6cae22de 100644 --- a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseError.kt +++ b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ErrorData.kt @@ -19,7 +19,7 @@ import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull -class BaseError +class ErrorData @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val category: JsonField, @@ -173,7 +173,7 @@ private constructor( companion object { /** - * Returns a mutable builder for constructing an instance of [BaseError]. + * Returns a mutable builder for constructing an instance of [ErrorData]. * * The following fields are required: * ```java @@ -185,7 +185,7 @@ private constructor( @JvmStatic fun builder() = Builder() } - /** A builder for [BaseError]. */ + /** A builder for [ErrorData]. */ class Builder internal constructor() { private var category: JsonField? = null @@ -198,15 +198,15 @@ private constructor( private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic - internal fun from(baseError: BaseError) = apply { - category = baseError.category - correlationId = baseError.correlationId - message = baseError.message - context = baseError.context - errors = baseError.errors.map { it.toMutableList() } - links = baseError.links - subCategory = baseError.subCategory - additionalProperties = baseError.additionalProperties.toMutableMap() + internal fun from(errorData: ErrorData) = apply { + category = errorData.category + correlationId = errorData.correlationId + message = errorData.message + context = errorData.context + errors = errorData.errors.map { it.toMutableList() } + links = errorData.links + subCategory = errorData.subCategory + additionalProperties = errorData.additionalProperties.toMutableMap() } /** The error category */ @@ -334,7 +334,7 @@ private constructor( } /** - * Returns an immutable instance of [BaseError]. + * Returns an immutable instance of [ErrorData]. * * Further updates to this [Builder] will not mutate the returned instance. * @@ -347,8 +347,8 @@ private constructor( * * @throws IllegalStateException if any required field is unset. */ - fun build(): BaseError = - BaseError( + fun build(): ErrorData = + ErrorData( checkRequired("category", category), checkRequired("correlationId", correlationId), checkRequired("message", message), @@ -370,7 +370,7 @@ private constructor( * @throws HubSpotInvalidDataException if any value type in this object doesn't match its * expected type. */ - fun validate(): BaseError = apply { + fun validate(): ErrorData = apply { if (validated) { return@apply } @@ -634,7 +634,7 @@ private constructor( return true } - return other is BaseError && + return other is ErrorData && category == other.category && correlationId == other.correlationId && message == other.message && @@ -661,5 +661,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "BaseError{category=$category, correlationId=$correlationId, message=$message, context=$context, errors=$errors, links=$links, subCategory=$subCategory, additionalProperties=$additionalProperties}" + "ErrorData{category=$category, correlationId=$correlationId, message=$message, context=$context, errors=$errors, links=$links, subCategory=$subCategory, additionalProperties=$additionalProperties}" } diff --git a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseObjectTypeDefinition.kt b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ObjectTypeDefinition.kt similarity index 93% rename from hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseObjectTypeDefinition.kt rename to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ObjectTypeDefinition.kt index ca12dd03..9aff4b25 100644 --- a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseObjectTypeDefinition.kt +++ b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/ObjectTypeDefinition.kt @@ -20,7 +20,7 @@ import java.util.Objects import java.util.Optional import kotlin.jvm.optionals.getOrNull -class BaseObjectTypeDefinition +class ObjectTypeDefinition @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, @@ -339,7 +339,7 @@ private constructor( companion object { /** - * Returns a mutable builder for constructing an instance of [BaseObjectTypeDefinition]. + * Returns a mutable builder for constructing an instance of [ObjectTypeDefinition]. * * The following fields are required: * ```java @@ -358,7 +358,7 @@ private constructor( @JvmStatic fun builder() = Builder() } - /** A builder for [BaseObjectTypeDefinition]. */ + /** A builder for [ObjectTypeDefinition]. */ class Builder internal constructor() { private var id: JsonField? = null @@ -379,26 +379,25 @@ private constructor( private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic - internal fun from(baseObjectTypeDefinition: BaseObjectTypeDefinition) = apply { - id = baseObjectTypeDefinition.id - allowsSensitiveProperties = baseObjectTypeDefinition.allowsSensitiveProperties - archived = baseObjectTypeDefinition.archived - fullyQualifiedName = baseObjectTypeDefinition.fullyQualifiedName - labels = baseObjectTypeDefinition.labels - name = baseObjectTypeDefinition.name - objectTypeId = baseObjectTypeDefinition.objectTypeId - requiredProperties = - baseObjectTypeDefinition.requiredProperties.map { it.toMutableList() } + internal fun from(objectTypeDefinition: ObjectTypeDefinition) = apply { + id = objectTypeDefinition.id + allowsSensitiveProperties = objectTypeDefinition.allowsSensitiveProperties + archived = objectTypeDefinition.archived + fullyQualifiedName = objectTypeDefinition.fullyQualifiedName + labels = objectTypeDefinition.labels + name = objectTypeDefinition.name + objectTypeId = objectTypeDefinition.objectTypeId + requiredProperties = objectTypeDefinition.requiredProperties.map { it.toMutableList() } searchableProperties = - baseObjectTypeDefinition.searchableProperties.map { it.toMutableList() } + objectTypeDefinition.searchableProperties.map { it.toMutableList() } secondaryDisplayProperties = - baseObjectTypeDefinition.secondaryDisplayProperties.map { it.toMutableList() } - createdAt = baseObjectTypeDefinition.createdAt - description = baseObjectTypeDefinition.description - portalId = baseObjectTypeDefinition.portalId - primaryDisplayProperty = baseObjectTypeDefinition.primaryDisplayProperty - updatedAt = baseObjectTypeDefinition.updatedAt - additionalProperties = baseObjectTypeDefinition.additionalProperties.toMutableMap() + objectTypeDefinition.secondaryDisplayProperties.map { it.toMutableList() } + createdAt = objectTypeDefinition.createdAt + description = objectTypeDefinition.description + portalId = objectTypeDefinition.portalId + primaryDisplayProperty = objectTypeDefinition.primaryDisplayProperty + updatedAt = objectTypeDefinition.updatedAt + additionalProperties = objectTypeDefinition.additionalProperties.toMutableMap() } fun id(id: String) = id(JsonField.of(id)) @@ -641,7 +640,7 @@ private constructor( } /** - * Returns an immutable instance of [BaseObjectTypeDefinition]. + * Returns an immutable instance of [ObjectTypeDefinition]. * * Further updates to this [Builder] will not mutate the returned instance. * @@ -661,8 +660,8 @@ private constructor( * * @throws IllegalStateException if any required field is unset. */ - fun build(): BaseObjectTypeDefinition = - BaseObjectTypeDefinition( + fun build(): ObjectTypeDefinition = + ObjectTypeDefinition( checkRequired("id", id), checkRequired("allowsSensitiveProperties", allowsSensitiveProperties), checkRequired("archived", archived), @@ -696,7 +695,7 @@ private constructor( * @throws HubSpotInvalidDataException if any value type in this object doesn't match its * expected type. */ - fun validate(): BaseObjectTypeDefinition = apply { + fun validate(): ObjectTypeDefinition = apply { if (validated) { return@apply } @@ -755,7 +754,7 @@ private constructor( return true } - return other is BaseObjectTypeDefinition && + return other is ObjectTypeDefinition && id == other.id && allowsSensitiveProperties == other.allowsSensitiveProperties && archived == other.archived && @@ -798,5 +797,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "BaseObjectTypeDefinition{id=$id, allowsSensitiveProperties=$allowsSensitiveProperties, archived=$archived, fullyQualifiedName=$fullyQualifiedName, labels=$labels, name=$name, objectTypeId=$objectTypeId, requiredProperties=$requiredProperties, searchableProperties=$searchableProperties, secondaryDisplayProperties=$secondaryDisplayProperties, createdAt=$createdAt, description=$description, portalId=$portalId, primaryDisplayProperty=$primaryDisplayProperty, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" + "ObjectTypeDefinition{id=$id, allowsSensitiveProperties=$allowsSensitiveProperties, archived=$archived, fullyQualifiedName=$fullyQualifiedName, labels=$labels, name=$name, objectTypeId=$objectTypeId, requiredProperties=$requiredProperties, searchableProperties=$searchableProperties, secondaryDisplayProperties=$secondaryDisplayProperties, createdAt=$createdAt, description=$description, portalId=$portalId, primaryDisplayProperty=$primaryDisplayProperty, updatedAt=$updatedAt, additionalProperties=$additionalProperties}" } diff --git a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseOption.kt b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Option.kt similarity index 93% rename from hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseOption.kt rename to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Option.kt index 9166c940..243c623a 100644 --- a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseOption.kt +++ b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Option.kt @@ -17,7 +17,7 @@ import java.util.Objects import java.util.Optional /** A HubSpot property option */ -class BaseOption +class Option @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val hidden: JsonField, @@ -133,7 +133,7 @@ private constructor( companion object { /** - * Returns a mutable builder for constructing an instance of [BaseOption]. + * Returns a mutable builder for constructing an instance of [Option]. * * The following fields are required: * ```java @@ -145,7 +145,7 @@ private constructor( @JvmStatic fun builder() = Builder() } - /** A builder for [BaseOption]. */ + /** A builder for [Option]. */ class Builder internal constructor() { private var hidden: JsonField? = null @@ -156,13 +156,13 @@ private constructor( private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic - internal fun from(baseOption: BaseOption) = apply { - hidden = baseOption.hidden - label = baseOption.label - value = baseOption.value - description = baseOption.description - displayOrder = baseOption.displayOrder - additionalProperties = baseOption.additionalProperties.toMutableMap() + internal fun from(option: Option) = apply { + hidden = option.hidden + label = option.label + value = option.value + description = option.description + displayOrder = option.displayOrder + additionalProperties = option.additionalProperties.toMutableMap() } /** Hidden options will not be displayed in HubSpot. */ @@ -248,7 +248,7 @@ private constructor( } /** - * Returns an immutable instance of [BaseOption]. + * Returns an immutable instance of [Option]. * * Further updates to this [Builder] will not mutate the returned instance. * @@ -261,8 +261,8 @@ private constructor( * * @throws IllegalStateException if any required field is unset. */ - fun build(): BaseOption = - BaseOption( + fun build(): Option = + Option( checkRequired("hidden", hidden), checkRequired("label", label), checkRequired("value", value), @@ -282,7 +282,7 @@ private constructor( * @throws HubSpotInvalidDataException if any value type in this object doesn't match its * expected type. */ - fun validate(): BaseOption = apply { + fun validate(): Option = apply { if (validated) { return@apply } @@ -321,7 +321,7 @@ private constructor( return true } - return other is BaseOption && + return other is Option && hidden == other.hidden && label == other.label && value == other.value && @@ -337,5 +337,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "BaseOption{hidden=$hidden, label=$label, value=$value, description=$description, displayOrder=$displayOrder, additionalProperties=$additionalProperties}" + "Option{hidden=$hidden, label=$label, value=$value, description=$description, displayOrder=$displayOrder, additionalProperties=$additionalProperties}" } diff --git a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseProperty.kt b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Property.kt similarity index 95% rename from hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseProperty.kt rename to hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Property.kt index b243c708..fc315b82 100644 --- a/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/BaseProperty.kt +++ b/hubspot-java-core/src/main/kotlin/com/hubspot/sdk/models/Property.kt @@ -22,7 +22,7 @@ import java.util.Optional import kotlin.jvm.optionals.getOrNull /** A HubSpot property */ -class BaseProperty +class Property @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val description: JsonField, @@ -30,7 +30,7 @@ private constructor( private val groupName: JsonField, private val label: JsonField, private val name: JsonField, - private val options: JsonField>, + private val options: JsonField>, private val type: JsonField, private val archived: JsonField, private val archivedAt: JsonField, @@ -68,7 +68,7 @@ private constructor( @JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(), @JsonProperty("options") @ExcludeMissing - options: JsonField> = JsonMissing.of(), + options: JsonField> = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), @JsonProperty("archived") @ExcludeMissing archived: JsonField = JsonMissing.of(), @JsonProperty("archivedAt") @@ -210,7 +210,7 @@ private constructor( * @throws HubSpotInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun options(): List = options.getRequired("options") + fun options(): List