Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-beta.25"
".": "0.1.0-beta.26"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 110
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-512ec51333e2e803d366c0aebea858913541a7ef0269a56f9371686feed26cd8.yml
openapi_spec_hash: 9b6d9f90c1aff0165ef7769f2311a1bd
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-a3b1cb64a010bc54278d208eb9ef309cb7c31e9099c45470fa3d032b1f4a17f6.yml
openapi_spec_hash: 09e5366c0f3dd1ea84dadb90e7cbf762
config_hash: 0eca08dde117ac62155a012abb0ecac7
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-beta.26 (2026-06-23)

Full Changelog: [v0.1.0-beta.25...v0.1.0-beta.26](https://github.com/stiggio/stigg-java/compare/v0.1.0-beta.25...v0.1.0-beta.26)

### Features

* **api:** add hasSoftLimit field to addon/plan entitlement credit models ([9d0a964](https://github.com/stiggio/stigg-java/commit/9d0a964fa1731e351cfa71f9cd46043a539e31b5))

## 0.1.0-beta.25 (2026-06-22)

Full Changelog: [v0.1.0-beta.24...v0.1.0-beta.25](https://github.com/stiggio/stigg-java/compare/v0.1.0-beta.24...v0.1.0-beta.25)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/io.stigg/stigg-java)](https://central.sonatype.com/artifact/io.stigg/stigg-java/0.1.0-beta.25)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.25/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.25)
[![Maven Central](https://img.shields.io/maven-central/v/io.stigg/stigg-java)](https://central.sonatype.com/artifact/io.stigg/stigg-java/0.1.0-beta.26)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.26/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.26)

<!-- x-release-please-end -->

Expand All @@ -22,7 +22,7 @@ Use the Stigg MCP Server to enable AI assistants to interact with this API, allo

<!-- x-release-please-start-version -->

Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.25).
Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.26).

<!-- x-release-please-end -->

Expand All @@ -33,7 +33,7 @@ Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-jav
### Gradle

```kotlin
implementation("io.stigg:stigg-java:0.1.0-beta.25")
implementation("io.stigg:stigg-java:0.1.0-beta.26")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("io.stigg:stigg-java:0.1.0-beta.25")
<dependency>
<groupId>io.stigg</groupId>
<artifactId>stigg-java</artifactId>
<version>0.1.0-beta.25</version>
<version>0.1.0-beta.26</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "io.stigg"
version = "0.1.0-beta.25" // x-release-please-version
version = "0.1.0-beta.26" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3285,6 +3285,7 @@ private constructor(
private val createdAt: JsonField<OffsetDateTime>,
private val description: JsonField<String>,
private val displayNameOverride: JsonField<String>,
private val hasSoftLimit: JsonField<Boolean>,
private val hiddenFromWidgets: JsonField<List<HiddenFromWidget>>,
private val isCustom: JsonField<Boolean>,
private val isGranted: JsonField<Boolean>,
Expand Down Expand Up @@ -3316,6 +3317,9 @@ private constructor(
@JsonProperty("displayNameOverride")
@ExcludeMissing
displayNameOverride: JsonField<String> = JsonMissing.of(),
@JsonProperty("hasSoftLimit")
@ExcludeMissing
hasSoftLimit: JsonField<Boolean> = JsonMissing.of(),
@JsonProperty("hiddenFromWidgets")
@ExcludeMissing
hiddenFromWidgets: JsonField<List<HiddenFromWidget>> = JsonMissing.of(),
Expand All @@ -3341,6 +3345,7 @@ private constructor(
createdAt,
description,
displayNameOverride,
hasSoftLimit,
hiddenFromWidgets,
isCustom,
isGranted,
Expand Down Expand Up @@ -3411,6 +3416,15 @@ private constructor(
fun displayNameOverride(): Optional<String> =
displayNameOverride.getOptional("displayNameOverride")

/**
* Whether the credit wallet is soft-limited. When true, getEntitlement returns
* hasAccess=true past the limit; vendors decide whether to enforce. Defaults to false.
*
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun hasSoftLimit(): Optional<Boolean> = hasSoftLimit.getOptional("hasSoftLimit")

/**
* Widget types where this entitlement is hidden
*
Expand Down Expand Up @@ -3539,6 +3553,16 @@ private constructor(
@ExcludeMissing
fun _displayNameOverride(): JsonField<String> = displayNameOverride

/**
* Returns the raw JSON value of [hasSoftLimit].
*
* Unlike [hasSoftLimit], this method doesn't throw if the JSON field has an unexpected
* type.
*/
@JsonProperty("hasSoftLimit")
@ExcludeMissing
fun _hasSoftLimit(): JsonField<Boolean> = hasSoftLimit

/**
* Returns the raw JSON value of [hiddenFromWidgets].
*
Expand Down Expand Up @@ -3620,6 +3644,7 @@ private constructor(
* .createdAt()
* .description()
* .displayNameOverride()
* .hasSoftLimit()
* .hiddenFromWidgets()
* .isCustom()
* .isGranted()
Expand All @@ -3640,6 +3665,7 @@ private constructor(
private var createdAt: JsonField<OffsetDateTime>? = null
private var description: JsonField<String>? = null
private var displayNameOverride: JsonField<String>? = null
private var hasSoftLimit: JsonField<Boolean>? = null
private var hiddenFromWidgets: JsonField<MutableList<HiddenFromWidget>>? = null
private var isCustom: JsonField<Boolean>? = null
private var isGranted: JsonField<Boolean>? = null
Expand All @@ -3658,6 +3684,7 @@ private constructor(
createdAt = credit.createdAt
description = credit.description
displayNameOverride = credit.displayNameOverride
hasSoftLimit = credit.hasSoftLimit
hiddenFromWidgets = credit.hiddenFromWidgets.map { it.toMutableList() }
isCustom = credit.isCustom
isGranted = credit.isGranted
Expand Down Expand Up @@ -3784,6 +3811,36 @@ private constructor(
this.displayNameOverride = displayNameOverride
}

/**
* Whether the credit wallet is soft-limited. When true, getEntitlement returns
* hasAccess=true past the limit; vendors decide whether to enforce. Defaults to
* false.
*/
fun hasSoftLimit(hasSoftLimit: Boolean?) =
hasSoftLimit(JsonField.ofNullable(hasSoftLimit))

/**
* Alias for [Builder.hasSoftLimit].
*
* This unboxed primitive overload exists for backwards compatibility.
*/
fun hasSoftLimit(hasSoftLimit: Boolean) = hasSoftLimit(hasSoftLimit as Boolean?)

/** Alias for calling [Builder.hasSoftLimit] with `hasSoftLimit.orElse(null)`. */
fun hasSoftLimit(hasSoftLimit: Optional<Boolean>) =
hasSoftLimit(hasSoftLimit.getOrNull())

/**
* Sets [Builder.hasSoftLimit] to an arbitrary JSON value.
*
* You should usually call [Builder.hasSoftLimit] with a well-typed [Boolean] value
* instead. This method is primarily for setting the field to an undocumented or not
* yet supported value.
*/
fun hasSoftLimit(hasSoftLimit: JsonField<Boolean>) = apply {
this.hasSoftLimit = hasSoftLimit
}

/** Widget types where this entitlement is hidden */
fun hiddenFromWidgets(hiddenFromWidgets: List<HiddenFromWidget>) =
hiddenFromWidgets(JsonField.of(hiddenFromWidgets))
Expand Down Expand Up @@ -3958,6 +4015,7 @@ private constructor(
* .createdAt()
* .description()
* .displayNameOverride()
* .hasSoftLimit()
* .hiddenFromWidgets()
* .isCustom()
* .isGranted()
Expand All @@ -3976,6 +4034,7 @@ private constructor(
checkRequired("createdAt", createdAt),
checkRequired("description", description),
checkRequired("displayNameOverride", displayNameOverride),
checkRequired("hasSoftLimit", hasSoftLimit),
checkRequired("hiddenFromWidgets", hiddenFromWidgets).map {
it.toImmutable()
},
Expand Down Expand Up @@ -4013,6 +4072,7 @@ private constructor(
createdAt()
description()
displayNameOverride()
hasSoftLimit()
hiddenFromWidgets().forEach { it.validate() }
isCustom()
isGranted()
Expand Down Expand Up @@ -4050,6 +4110,7 @@ private constructor(
(if (createdAt.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
(if (displayNameOverride.asKnown().isPresent) 1 else 0) +
(if (hasSoftLimit.asKnown().isPresent) 1 else 0) +
(hiddenFromWidgets.asKnown().getOrNull()?.sumOf { it.validity().toInt() }
?: 0) +
(if (isCustom.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -4506,6 +4567,7 @@ private constructor(
createdAt == other.createdAt &&
description == other.description &&
displayNameOverride == other.displayNameOverride &&
hasSoftLimit == other.hasSoftLimit &&
hiddenFromWidgets == other.hiddenFromWidgets &&
isCustom == other.isCustom &&
isGranted == other.isGranted &&
Expand All @@ -4525,6 +4587,7 @@ private constructor(
createdAt,
description,
displayNameOverride,
hasSoftLimit,
hiddenFromWidgets,
isCustom,
isGranted,
Expand All @@ -4539,7 +4602,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Credit{id=$id, amount=$amount, behavior=$behavior, cadence=$cadence, createdAt=$createdAt, description=$description, displayNameOverride=$displayNameOverride, hiddenFromWidgets=$hiddenFromWidgets, isCustom=$isCustom, isGranted=$isGranted, order=$order, type=$type, updatedAt=$updatedAt, dependencyFeatureId=$dependencyFeatureId, additionalProperties=$additionalProperties}"
"Credit{id=$id, amount=$amount, behavior=$behavior, cadence=$cadence, createdAt=$createdAt, description=$description, displayNameOverride=$displayNameOverride, hasSoftLimit=$hasSoftLimit, hiddenFromWidgets=$hiddenFromWidgets, isCustom=$isCustom, isGranted=$isGranted, order=$order, type=$type, updatedAt=$updatedAt, dependencyFeatureId=$dependencyFeatureId, additionalProperties=$additionalProperties}"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3221,6 +3221,7 @@ private constructor(
private val dependencyFeatureId: JsonField<String>,
private val description: JsonField<String>,
private val displayNameOverride: JsonField<String>,
private val hasSoftLimit: JsonField<Boolean>,
private val hiddenFromWidgets: JsonField<List<HiddenFromWidget>>,
private val isCustom: JsonField<Boolean>,
private val isGranted: JsonField<Boolean>,
Expand Down Expand Up @@ -3250,6 +3251,9 @@ private constructor(
@JsonProperty("displayNameOverride")
@ExcludeMissing
displayNameOverride: JsonField<String> = JsonMissing.of(),
@JsonProperty("hasSoftLimit")
@ExcludeMissing
hasSoftLimit: JsonField<Boolean> = JsonMissing.of(),
@JsonProperty("hiddenFromWidgets")
@ExcludeMissing
hiddenFromWidgets: JsonField<List<HiddenFromWidget>> = JsonMissing.of(),
Expand All @@ -3269,6 +3273,7 @@ private constructor(
dependencyFeatureId,
description,
displayNameOverride,
hasSoftLimit,
hiddenFromWidgets,
isCustom,
isGranted,
Expand Down Expand Up @@ -3350,6 +3355,15 @@ private constructor(
fun displayNameOverride(): Optional<String> =
displayNameOverride.getOptional("displayNameOverride")

/**
* Whether the credit wallet is soft-limited. When true, getEntitlement returns
* hasAccess=true past the limit; vendors decide whether to enforce. Defaults to false.
*
* @throws StiggInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun hasSoftLimit(): Optional<Boolean> = hasSoftLimit.getOptional("hasSoftLimit")

/**
* Widget types where this entitlement is hidden
*
Expand Down Expand Up @@ -3444,6 +3458,16 @@ private constructor(
@ExcludeMissing
fun _displayNameOverride(): JsonField<String> = displayNameOverride

/**
* Returns the raw JSON value of [hasSoftLimit].
*
* Unlike [hasSoftLimit], this method doesn't throw if the JSON field has an unexpected
* type.
*/
@JsonProperty("hasSoftLimit")
@ExcludeMissing
fun _hasSoftLimit(): JsonField<Boolean> = hasSoftLimit

/**
* Returns the raw JSON value of [hiddenFromWidgets].
*
Expand Down Expand Up @@ -3517,6 +3541,7 @@ private constructor(
private var dependencyFeatureId: JsonField<String> = JsonMissing.of()
private var description: JsonField<String> = JsonMissing.of()
private var displayNameOverride: JsonField<String> = JsonMissing.of()
private var hasSoftLimit: JsonField<Boolean> = JsonMissing.of()
private var hiddenFromWidgets: JsonField<MutableList<HiddenFromWidget>>? = null
private var isCustom: JsonField<Boolean> = JsonMissing.of()
private var isGranted: JsonField<Boolean> = JsonMissing.of()
Expand All @@ -3533,6 +3558,7 @@ private constructor(
dependencyFeatureId = credit.dependencyFeatureId
description = credit.description
displayNameOverride = credit.displayNameOverride
hasSoftLimit = credit.hasSoftLimit
hiddenFromWidgets = credit.hiddenFromWidgets.map { it.toMutableList() }
isCustom = credit.isCustom
isGranted = credit.isGranted
Expand Down Expand Up @@ -3659,6 +3685,24 @@ private constructor(
this.displayNameOverride = displayNameOverride
}

/**
* Whether the credit wallet is soft-limited. When true, getEntitlement returns
* hasAccess=true past the limit; vendors decide whether to enforce. Defaults to
* false.
*/
fun hasSoftLimit(hasSoftLimit: Boolean) = hasSoftLimit(JsonField.of(hasSoftLimit))

/**
* Sets [Builder.hasSoftLimit] to an arbitrary JSON value.
*
* You should usually call [Builder.hasSoftLimit] with a well-typed [Boolean] value
* instead. This method is primarily for setting the field to an undocumented or not
* yet supported value.
*/
fun hasSoftLimit(hasSoftLimit: JsonField<Boolean>) = apply {
this.hasSoftLimit = hasSoftLimit
}

/** Widget types where this entitlement is hidden */
fun hiddenFromWidgets(hiddenFromWidgets: List<HiddenFromWidget>) =
hiddenFromWidgets(JsonField.of(hiddenFromWidgets))
Expand Down Expand Up @@ -3769,6 +3813,7 @@ private constructor(
dependencyFeatureId,
description,
displayNameOverride,
hasSoftLimit,
(hiddenFromWidgets ?: JsonMissing.of()).map { it.toImmutable() },
isCustom,
isGranted,
Expand Down Expand Up @@ -3806,6 +3851,7 @@ private constructor(
dependencyFeatureId()
description()
displayNameOverride()
hasSoftLimit()
hiddenFromWidgets().ifPresent { it.forEach { it.validate() } }
isCustom()
isGranted()
Expand Down Expand Up @@ -3837,6 +3883,7 @@ private constructor(
(if (dependencyFeatureId.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
(if (displayNameOverride.asKnown().isPresent) 1 else 0) +
(if (hasSoftLimit.asKnown().isPresent) 1 else 0) +
(hiddenFromWidgets.asKnown().getOrNull()?.sumOf { it.validity().toInt() }
?: 0) +
(if (isCustom.asKnown().isPresent) 1 else 0) +
Expand Down Expand Up @@ -4291,6 +4338,7 @@ private constructor(
dependencyFeatureId == other.dependencyFeatureId &&
description == other.description &&
displayNameOverride == other.displayNameOverride &&
hasSoftLimit == other.hasSoftLimit &&
hiddenFromWidgets == other.hiddenFromWidgets &&
isCustom == other.isCustom &&
isGranted == other.isGranted &&
Expand All @@ -4308,6 +4356,7 @@ private constructor(
dependencyFeatureId,
description,
displayNameOverride,
hasSoftLimit,
hiddenFromWidgets,
isCustom,
isGranted,
Expand All @@ -4319,7 +4368,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"Credit{id=$id, amount=$amount, cadence=$cadence, type=$type, behavior=$behavior, dependencyFeatureId=$dependencyFeatureId, description=$description, displayNameOverride=$displayNameOverride, hiddenFromWidgets=$hiddenFromWidgets, isCustom=$isCustom, isGranted=$isGranted, order=$order, additionalProperties=$additionalProperties}"
"Credit{id=$id, amount=$amount, cadence=$cadence, type=$type, behavior=$behavior, dependencyFeatureId=$dependencyFeatureId, description=$description, displayNameOverride=$displayNameOverride, hasSoftLimit=$hasSoftLimit, hiddenFromWidgets=$hiddenFromWidgets, isCustom=$isCustom, isGranted=$isGranted, order=$order, additionalProperties=$additionalProperties}"
}
}

Expand Down
Loading
Loading