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.18"
".": "0.1.0-beta.19"
}
6 changes: 3 additions & 3 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-88f0d558bab37f46f8961eb9ef3a985ec282251991f28863d7b1738927900d6e.yml
openapi_spec_hash: 4aaa720e9246944b90c95405efd652aa
config_hash: 0ab0f5c37a96aad83824aad473011f38
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stigg/stigg-4b036ae37ac7dc36a2dd01f48a5913d32202264b3c4b4d221c9cc8dd2af02913.yml
openapi_spec_hash: e597fd274819cafb888ca653d5e8f3e5
config_hash: da19ab71a4a80274895d7b4b295c08af
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.19 (2026-06-10)

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

### Features

* **api:** add parentId/scopeEntityIds/currencyId/featureId, remove capabilityId from assignments ([e716d2f](https://github.com/stiggio/stigg-java/commit/e716d2f23608d1815943f34b4eee563e813bc2a6))

## 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)
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.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)
[![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.19)
[![javadoc](https://javadoc.io/badge2/io.stigg/stigg-java/0.1.0-beta.19/javadoc.svg)](https://javadoc.io/doc/io.stigg/stigg-java/0.1.0-beta.19)

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

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

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package io.stigg.client

import io.stigg.core.ClientOptions
import io.stigg.services.blocking.V1BetaService
import io.stigg.services.blocking.V1Service
import java.util.function.Consumer

Expand Down Expand Up @@ -44,6 +45,8 @@ interface StiggClient {

fun v1(): V1Service

fun v1Beta(): V1BetaService

/**
* Closes this client, relinquishing any underlying resources.
*
Expand All @@ -68,5 +71,7 @@ interface StiggClient {
fun withOptions(modifier: Consumer<ClientOptions.Builder>): StiggClient.WithRawResponse

fun v1(): V1Service.WithRawResponse

fun v1Beta(): V1BetaService.WithRawResponse
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package io.stigg.client

import io.stigg.core.ClientOptions
import io.stigg.services.async.V1BetaServiceAsync
import io.stigg.services.async.V1ServiceAsync
import java.util.function.Consumer

Expand Down Expand Up @@ -44,6 +45,8 @@ interface StiggClientAsync {

fun v1(): V1ServiceAsync

fun v1Beta(): V1BetaServiceAsync

/**
* Closes this client, relinquishing any underlying resources.
*
Expand All @@ -68,5 +71,7 @@ interface StiggClientAsync {
fun withOptions(modifier: Consumer<ClientOptions.Builder>): StiggClientAsync.WithRawResponse

fun v1(): V1ServiceAsync.WithRawResponse

fun v1Beta(): V1BetaServiceAsync.WithRawResponse
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package io.stigg.client

import io.stigg.core.ClientOptions
import io.stigg.core.getPackageVersion
import io.stigg.services.async.V1BetaServiceAsync
import io.stigg.services.async.V1BetaServiceAsyncImpl
import io.stigg.services.async.V1ServiceAsync
import io.stigg.services.async.V1ServiceAsyncImpl
import java.util.function.Consumer
Expand All @@ -27,6 +29,10 @@ class StiggClientAsyncImpl(private val clientOptions: ClientOptions) : StiggClie

private val v1: V1ServiceAsync by lazy { V1ServiceAsyncImpl(clientOptionsWithUserAgent) }

private val v1Beta: V1BetaServiceAsync by lazy {
V1BetaServiceAsyncImpl(clientOptionsWithUserAgent)
}

override fun sync(): StiggClient = sync

override fun withRawResponse(): StiggClientAsync.WithRawResponse = withRawResponse
Expand All @@ -36,6 +42,8 @@ class StiggClientAsyncImpl(private val clientOptions: ClientOptions) : StiggClie

override fun v1(): V1ServiceAsync = v1

override fun v1Beta(): V1BetaServiceAsync = v1Beta

override fun close() = clientOptions.close()

class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
Expand All @@ -45,6 +53,10 @@ class StiggClientAsyncImpl(private val clientOptions: ClientOptions) : StiggClie
V1ServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

private val v1Beta: V1BetaServiceAsync.WithRawResponse by lazy {
V1BetaServiceAsyncImpl.WithRawResponseImpl(clientOptions)
}

override fun withOptions(
modifier: Consumer<ClientOptions.Builder>
): StiggClientAsync.WithRawResponse =
Expand All @@ -53,5 +65,7 @@ class StiggClientAsyncImpl(private val clientOptions: ClientOptions) : StiggClie
)

override fun v1(): V1ServiceAsync.WithRawResponse = v1

override fun v1Beta(): V1BetaServiceAsync.WithRawResponse = v1Beta
}
}
12 changes: 12 additions & 0 deletions stigg-java-core/src/main/kotlin/io/stigg/client/StiggClientImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package io.stigg.client

import io.stigg.core.ClientOptions
import io.stigg.core.getPackageVersion
import io.stigg.services.blocking.V1BetaService
import io.stigg.services.blocking.V1BetaServiceImpl
import io.stigg.services.blocking.V1Service
import io.stigg.services.blocking.V1ServiceImpl
import java.util.function.Consumer
Expand All @@ -27,6 +29,8 @@ class StiggClientImpl(private val clientOptions: ClientOptions) : StiggClient {

private val v1: V1Service by lazy { V1ServiceImpl(clientOptionsWithUserAgent) }

private val v1Beta: V1BetaService by lazy { V1BetaServiceImpl(clientOptionsWithUserAgent) }

override fun async(): StiggClientAsync = async

override fun withRawResponse(): StiggClient.WithRawResponse = withRawResponse
Expand All @@ -36,6 +40,8 @@ class StiggClientImpl(private val clientOptions: ClientOptions) : StiggClient {

override fun v1(): V1Service = v1

override fun v1Beta(): V1BetaService = v1Beta

override fun close() = clientOptions.close()

class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
Expand All @@ -45,6 +51,10 @@ class StiggClientImpl(private val clientOptions: ClientOptions) : StiggClient {
V1ServiceImpl.WithRawResponseImpl(clientOptions)
}

private val v1Beta: V1BetaService.WithRawResponse by lazy {
V1BetaServiceImpl.WithRawResponseImpl(clientOptions)
}

override fun withOptions(
modifier: Consumer<ClientOptions.Builder>
): StiggClient.WithRawResponse =
Expand All @@ -53,5 +63,7 @@ class StiggClientImpl(private val clientOptions: ClientOptions) : StiggClient {
)

override fun v1(): V1Service.WithRawResponse = v1

override fun v1Beta(): V1BetaService.WithRawResponse = v1Beta
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,24 @@ import io.stigg.errors.StiggInvalidDataException
import java.util.Collections
import java.util.Objects
import java.util.Optional
import kotlin.jvm.optionals.getOrNull

/**
* Mint a scoped JWT for the FE embedded SDK. Lazy-creates the DATA_EXPORT integration if needed.
*/
class DataExportMintScopedTokenParams
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)

/**
* FE origin the resulting JWT is bound to (provider-side anti-fraud)
*
Expand Down Expand Up @@ -87,19 +94,34 @@ private constructor(
/** A builder for [DataExportMintScopedTokenParams]. */
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(dataExportMintScopedTokenParams: DataExportMintScopedTokenParams) =
apply {
xAccountId = dataExportMintScopedTokenParams.xAccountId
xEnvironmentId = dataExportMintScopedTokenParams.xEnvironmentId
body = dataExportMintScopedTokenParams.body.toBuilder()
additionalHeaders = dataExportMintScopedTokenParams.additionalHeaders.toBuilder()
additionalQueryParams =
dataExportMintScopedTokenParams.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 @@ -273,6 +295,8 @@ private constructor(
*/
fun build(): DataExportMintScopedTokenParams =
DataExportMintScopedTokenParams(
xAccountId,
xEnvironmentId,
body.build(),
additionalHeaders.build(),
additionalQueryParams.build(),
Expand All @@ -281,7 +305,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 @@ -515,13 +546,16 @@ private constructor(
}

return other is DataExportMintScopedTokenParams &&
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() =
"DataExportMintScopedTokenParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
"DataExportMintScopedTokenParams{xAccountId=$xAccountId, xEnvironmentId=$xEnvironmentId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
}
Loading
Loading