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.17"
".": "0.1.0-beta.18"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 108
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-0e7a852999fb6517cef96afbdb99e46f08db292a85a5d209e5e5172792eb4a7c.yml
openapi_spec_hash: 53ace6b360ff3441f3e46e12ddcf34a6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-88f0d558bab37f46f8961eb9ef3a985ec282251991f28863d7b1738927900d6e.yml
openapi_spec_hash: 4aaa720e9246944b90c95405efd652aa
config_hash: 0ab0f5c37a96aad83824aad473011f38
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.18 (2026-06-08)

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

### Features

* **STIGG-8103:** support user JWT (Bearer) auth on REST API ([a527e1d](https://github.com/stiggio/stigg-java/commit/a527e1d68ca2fcf4846603bd9a3fee449a4cf455))

## 0.1.0-beta.17 (2026-06-08)

Full Changelog: [v0.1.0-beta.16...v0.1.0-beta.17](https://github.com/stiggio/stigg-java/compare/v0.1.0-beta.16...v0.1.0-beta.17)
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.17)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.17/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.17)
[![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.18)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.18/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.18)

<!-- 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.17).
Javadocs are available on [javadoc.io](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.18).

<!-- 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.17")
implementation("io.stigg:stigg-java:0.1.0-beta.18")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("io.stigg:stigg-java:0.1.0-beta.17")
<dependency>
<groupId>io.stigg</groupId>
<artifactId>stigg-java</artifactId>
<version>0.1.0-beta.17</version>
<version>0.1.0-beta.18</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.17" // x-release-please-version
version = "0.1.0-beta.18" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ import kotlin.jvm.optionals.getOrNull
class AddonArchiveParams
private constructor(
private val id: String?,
private val xAccountId: String?,
private val xEnvironmentId: String?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
private val additionalBodyProperties: Map<String, JsonValue>,
) : Params {

fun id(): Optional<String> = Optional.ofNullable(id)

fun xAccountId(): Optional<String> = Optional.ofNullable(xAccountId)

fun xEnvironmentId(): Optional<String> = Optional.ofNullable(xEnvironmentId)

/** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map<String, JsonValue> = additionalBodyProperties

Expand All @@ -45,13 +51,17 @@ private constructor(
class Builder internal constructor() {

private var id: String? = null
private var xAccountId: String? = null
private var xEnvironmentId: String? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
private var additionalBodyProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(addonArchiveParams: AddonArchiveParams) = apply {
id = addonArchiveParams.id
xAccountId = addonArchiveParams.xAccountId
xEnvironmentId = addonArchiveParams.xEnvironmentId
additionalHeaders = addonArchiveParams.additionalHeaders.toBuilder()
additionalQueryParams = addonArchiveParams.additionalQueryParams.toBuilder()
additionalBodyProperties = addonArchiveParams.additionalBodyProperties.toMutableMap()
Expand All @@ -62,6 +72,17 @@ private constructor(
/** Alias for calling [Builder.id] with `id.orElse(null)`. */
fun id(id: Optional<String>) = id(id.getOrNull())

fun xAccountId(xAccountId: String?) = apply { this.xAccountId = xAccountId }

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

fun xEnvironmentId(xEnvironmentId: String?) = apply { this.xEnvironmentId = xEnvironmentId }

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

fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
putAllAdditionalHeaders(additionalHeaders)
Expand Down Expand Up @@ -190,6 +211,8 @@ private constructor(
fun build(): AddonArchiveParams =
AddonArchiveParams(
id,
xAccountId,
xEnvironmentId,
additionalHeaders.build(),
additionalQueryParams.build(),
additionalBodyProperties.toImmutable(),
Expand All @@ -205,7 +228,14 @@ private constructor(
else -> ""
}

override fun _headers(): Headers = additionalHeaders
override fun _headers(): Headers =
Headers.builder()
.apply {
xAccountId?.let { put("X-ACCOUNT-ID", it) }
xEnvironmentId?.let { put("X-ENVIRONMENT-ID", it) }
putAll(additionalHeaders)
}
.build()

override fun _queryParams(): QueryParams = additionalQueryParams

Expand All @@ -216,14 +246,23 @@ private constructor(

return other is AddonArchiveParams &&
id == other.id &&
xAccountId == other.xAccountId &&
xEnvironmentId == other.xEnvironmentId &&
additionalHeaders == other.additionalHeaders &&
additionalQueryParams == other.additionalQueryParams &&
additionalBodyProperties == other.additionalBodyProperties
}

override fun hashCode(): Int =
Objects.hash(id, additionalHeaders, additionalQueryParams, additionalBodyProperties)
Objects.hash(
id,
xAccountId,
xEnvironmentId,
additionalHeaders,
additionalQueryParams,
additionalBodyProperties,
)

override fun toString() =
"AddonArchiveParams{id=$id, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
"AddonArchiveParams{id=$id, xAccountId=$xAccountId, xEnvironmentId=$xEnvironmentId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ import kotlin.jvm.optionals.getOrNull
class AddonCreateDraftParams
private constructor(
private val id: String?,
private val xAccountId: String?,
private val xEnvironmentId: String?,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
private val additionalBodyProperties: Map<String, JsonValue>,
) : Params {

fun id(): Optional<String> = Optional.ofNullable(id)

fun xAccountId(): Optional<String> = Optional.ofNullable(xAccountId)

fun xEnvironmentId(): Optional<String> = Optional.ofNullable(xEnvironmentId)

/** Additional body properties to send with the request. */
fun _additionalBodyProperties(): Map<String, JsonValue> = additionalBodyProperties

Expand All @@ -45,13 +51,17 @@ private constructor(
class Builder internal constructor() {

private var id: String? = null
private var xAccountId: String? = null
private var xEnvironmentId: String? = null
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()
private var additionalBodyProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(addonCreateDraftParams: AddonCreateDraftParams) = apply {
id = addonCreateDraftParams.id
xAccountId = addonCreateDraftParams.xAccountId
xEnvironmentId = addonCreateDraftParams.xEnvironmentId
additionalHeaders = addonCreateDraftParams.additionalHeaders.toBuilder()
additionalQueryParams = addonCreateDraftParams.additionalQueryParams.toBuilder()
additionalBodyProperties =
Expand All @@ -63,6 +73,17 @@ private constructor(
/** Alias for calling [Builder.id] with `id.orElse(null)`. */
fun id(id: Optional<String>) = id(id.getOrNull())

fun xAccountId(xAccountId: String?) = apply { this.xAccountId = xAccountId }

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

fun xEnvironmentId(xEnvironmentId: String?) = apply { this.xEnvironmentId = xEnvironmentId }

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

fun additionalHeaders(additionalHeaders: Headers) = apply {
this.additionalHeaders.clear()
putAllAdditionalHeaders(additionalHeaders)
Expand Down Expand Up @@ -191,6 +212,8 @@ private constructor(
fun build(): AddonCreateDraftParams =
AddonCreateDraftParams(
id,
xAccountId,
xEnvironmentId,
additionalHeaders.build(),
additionalQueryParams.build(),
additionalBodyProperties.toImmutable(),
Expand All @@ -206,7 +229,14 @@ private constructor(
else -> ""
}

override fun _headers(): Headers = additionalHeaders
override fun _headers(): Headers =
Headers.builder()
.apply {
xAccountId?.let { put("X-ACCOUNT-ID", it) }
xEnvironmentId?.let { put("X-ENVIRONMENT-ID", it) }
putAll(additionalHeaders)
}
.build()

override fun _queryParams(): QueryParams = additionalQueryParams

Expand All @@ -217,14 +247,23 @@ private constructor(

return other is AddonCreateDraftParams &&
id == other.id &&
xAccountId == other.xAccountId &&
xEnvironmentId == other.xEnvironmentId &&
additionalHeaders == other.additionalHeaders &&
additionalQueryParams == other.additionalQueryParams &&
additionalBodyProperties == other.additionalBodyProperties
}

override fun hashCode(): Int =
Objects.hash(id, additionalHeaders, additionalQueryParams, additionalBodyProperties)
Objects.hash(
id,
xAccountId,
xEnvironmentId,
additionalHeaders,
additionalQueryParams,
additionalBodyProperties,
)

override fun toString() =
"AddonCreateDraftParams{id=$id, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
"AddonCreateDraftParams{id=$id, xAccountId=$xAccountId, xEnvironmentId=$xEnvironmentId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ import kotlin.jvm.optionals.getOrNull
/** Creates a new addon in draft status, associated with a specific product. */
class AddonCreateParams
private constructor(
private val xAccountId: String?,
private val xEnvironmentId: String?,
private val body: Body,
private val additionalHeaders: Headers,
private val additionalQueryParams: QueryParams,
) : Params {

fun xAccountId(): Optional<String> = Optional.ofNullable(xAccountId)

fun xEnvironmentId(): Optional<String> = Optional.ofNullable(xEnvironmentId)

/**
* The unique identifier for the entity
*
Expand Down Expand Up @@ -193,17 +199,32 @@ private constructor(
/** A builder for [AddonCreateParams]. */
class Builder internal constructor() {

private var xAccountId: String? = null
private var xEnvironmentId: String? = null
private var body: Body.Builder = Body.builder()
private var additionalHeaders: Headers.Builder = Headers.builder()
private var additionalQueryParams: QueryParams.Builder = QueryParams.builder()

@JvmSynthetic
internal fun from(addonCreateParams: AddonCreateParams) = apply {
xAccountId = addonCreateParams.xAccountId
xEnvironmentId = addonCreateParams.xEnvironmentId
body = addonCreateParams.body.toBuilder()
additionalHeaders = addonCreateParams.additionalHeaders.toBuilder()
additionalQueryParams = addonCreateParams.additionalQueryParams.toBuilder()
}

fun xAccountId(xAccountId: String?) = apply { this.xAccountId = xAccountId }

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

fun xEnvironmentId(xEnvironmentId: String?) = apply { this.xEnvironmentId = xEnvironmentId }

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

/**
* Sets the entire request body.
*
Expand Down Expand Up @@ -478,6 +499,8 @@ private constructor(
*/
fun build(): AddonCreateParams =
AddonCreateParams(
xAccountId,
xEnvironmentId,
body.build(),
additionalHeaders.build(),
additionalQueryParams.build(),
Expand All @@ -486,7 +509,14 @@ private constructor(

fun _body(): Body = body

override fun _headers(): Headers = additionalHeaders
override fun _headers(): Headers =
Headers.builder()
.apply {
xAccountId?.let { put("X-ACCOUNT-ID", it) }
xEnvironmentId?.let { put("X-ENVIRONMENT-ID", it) }
putAll(additionalHeaders)
}
.build()

override fun _queryParams(): QueryParams = additionalQueryParams

Expand Down Expand Up @@ -1416,13 +1446,16 @@ private constructor(
}

return other is AddonCreateParams &&
xAccountId == other.xAccountId &&
xEnvironmentId == other.xEnvironmentId &&
body == other.body &&
additionalHeaders == other.additionalHeaders &&
additionalQueryParams == other.additionalQueryParams
}

override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
override fun hashCode(): Int =
Objects.hash(xAccountId, xEnvironmentId, body, additionalHeaders, additionalQueryParams)

override fun toString() =
"AddonCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
"AddonCreateParams{xAccountId=$xAccountId, xEnvironmentId=$xEnvironmentId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
Loading
Loading