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.0.1"
".": "1.0.0"
}
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/com.llamacloud_prod.api/llama-cloud)](https://central.sonatype.com/artifact/com.llamacloud_prod.api/llama-cloud/0.0.1)
[![javadoc](https://javadoc.io/badge2/com.llamacloud_prod.api/llama-cloud/0.0.1/javadoc.svg)](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/0.0.1)
[![Maven Central](https://img.shields.io/maven-central/v/com.llamacloud_prod.api/llama-cloud)](https://central.sonatype.com/artifact/com.llamacloud_prod.api/llama-cloud/1.0.0)
[![javadoc](https://javadoc.io/badge2/com.llamacloud_prod.api/llama-cloud/1.0.0/javadoc.svg)](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/1.0.0)

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

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

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

The REST API documentation can be found on [developers.llamaindex.ai](https://developers.llamaindex.ai/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/0.0.1).
The REST API documentation can be found on [developers.llamaindex.ai](https://developers.llamaindex.ai/). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/1.0.0).

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

Expand All @@ -33,7 +33,7 @@ The REST API documentation can be found on [developers.llamaindex.ai](https://de
### Gradle

```kotlin
implementation("ai.llamaindex:llama-cloud:0.0.1")
implementation("ai.llamaindex:llama-cloud:1.0.0")
```

### Maven
Expand All @@ -42,7 +42,7 @@ implementation("ai.llamaindex:llama-cloud:0.0.1")
<dependency>
<groupId>ai.llamaindex</groupId>
<artifactId>llama-cloud</artifactId>
<version>0.0.1</version>
<version>1.0.0</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 = "ai.llamaindex"
version = "0.0.1" // x-release-please-version
version = "1.0.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9335,6 +9335,7 @@ private constructor(
private val webhookEvents: JsonField<List<WebhookEvent>>,
private val webhookHeaders: JsonField<WebhookHeaders>,
private val webhookOutputFormat: JsonField<String>,
private val webhookSigningSecret: JsonField<String>,
private val webhookUrl: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {
Expand All @@ -9350,13 +9351,17 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField<String> = JsonMissing.of(),
@JsonProperty("webhook_signing_secret")
@ExcludeMissing
webhookSigningSecret: JsonField<String> = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField<String> = JsonMissing.of(),
) : this(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
webhookSigningSecret,
webhookUrl,
mutableMapOf(),
)
Expand Down Expand Up @@ -9389,6 +9394,18 @@ private constructor(
fun webhookOutputFormat(): Optional<String> =
webhookOutputFormat.getOptional("webhook_output_format")

/**
* Shared signing secret used to sign webhook deliveries. When set, each request
* includes an HMAC-SHA256 signature of the request body in the 'LC-Signature'
* header (value 'sha256=<hex>'). Recompute the HMAC over the raw request body
* with this secret to verify the delivery is authentic.
*
* @throws LlamaCloudInvalidDataException if the JSON field has an unexpected
* type (e.g. if the server responded with an unexpected value).
*/
fun webhookSigningSecret(): Optional<String> =
webhookSigningSecret.getOptional("webhook_signing_secret")

/**
* URL to receive webhook POST notifications
*
Expand Down Expand Up @@ -9427,6 +9444,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField<String> = webhookOutputFormat

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

/**
* Returns the raw JSON value of [webhookUrl].
*
Expand Down Expand Up @@ -9464,6 +9491,7 @@ private constructor(
private var webhookEvents: JsonField<MutableList<WebhookEvent>>? = null
private var webhookHeaders: JsonField<WebhookHeaders> = JsonMissing.of()
private var webhookOutputFormat: JsonField<String> = JsonMissing.of()
private var webhookSigningSecret: JsonField<String> = JsonMissing.of()
private var webhookUrl: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> =
mutableMapOf()
Expand All @@ -9474,6 +9502,7 @@ private constructor(
webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties =
webhookConfiguration.additionalProperties.toMutableMap()
Expand Down Expand Up @@ -9561,6 +9590,33 @@ private constructor(
this.webhookOutputFormat = webhookOutputFormat
}

/**
* Shared signing secret used to sign webhook deliveries. When set, each
* request includes an HMAC-SHA256 signature of the request body in the
* 'LC-Signature' header (value 'sha256=<hex>'). Recompute the HMAC over the
* raw request body with this secret to verify the delivery is authentic.
*/
fun webhookSigningSecret(webhookSigningSecret: String?) =
webhookSigningSecret(JsonField.ofNullable(webhookSigningSecret))

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

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

/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) =
webhookUrl(JsonField.ofNullable(webhookUrl))
Expand Down Expand Up @@ -9614,6 +9670,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
Expand All @@ -9639,6 +9696,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
webhookSigningSecret()
webhookUrl()
validated = true
}
Expand All @@ -9663,6 +9721,7 @@ private constructor(
?: 0) +
(webhookHeaders.asKnown().getOrNull()?.validity() ?: 0) +
(if (webhookOutputFormat.asKnown().isPresent) 1 else 0) +
(if (webhookSigningSecret.asKnown().isPresent) 1 else 0) +
(if (webhookUrl.asKnown().isPresent) 1 else 0)

class WebhookEvent
Expand Down Expand Up @@ -10103,6 +10162,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
Expand All @@ -10112,6 +10172,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
webhookSigningSecret,
webhookUrl,
additionalProperties,
)
Expand All @@ -10120,7 +10181,7 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"WebhookConfiguration{webhookEvents=$webhookEvents, webhookHeaders=$webhookHeaders, webhookOutputFormat=$webhookOutputFormat, webhookUrl=$webhookUrl, additionalProperties=$additionalProperties}"
"WebhookConfiguration{webhookEvents=$webhookEvents, webhookHeaders=$webhookHeaders, webhookOutputFormat=$webhookOutputFormat, webhookSigningSecret=$webhookSigningSecret, webhookUrl=$webhookUrl, additionalProperties=$additionalProperties}"
}

override fun equals(other: Any?): Boolean {
Expand Down
Loading
Loading