diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 1332969..fea3454 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.0.1"
+ ".": "1.0.0"
}
\ No newline at end of file
diff --git a/README.md b/README.md
index ccdf68e..ca194c2 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.llamacloud_prod.api/llama-cloud/0.0.1)
-[](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/0.0.1)
+[](https://central.sonatype.com/artifact/com.llamacloud_prod.api/llama-cloud/1.0.0)
+[](https://javadoc.io/doc/com.llamacloud_prod.api/llama-cloud/1.0.0)
@@ -22,7 +22,7 @@ Use the Llama Cloud MCP Server to enable AI assistants to interact with this API
-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).
@@ -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
@@ -42,7 +42,7 @@ implementation("ai.llamaindex:llama-cloud:0.0.1")
ai.llamaindex
llama-cloud
- 0.0.1
+ 1.0.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 538ea70..9945957 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/BatchCreateParams.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/BatchCreateParams.kt
index ea2a607..c9cf31c 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/BatchCreateParams.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/BatchCreateParams.kt
@@ -9335,6 +9335,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -9350,6 +9351,9 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
@@ -9357,6 +9361,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
mutableMapOf(),
)
@@ -9389,6 +9394,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* URL to receive webhook POST notifications
*
@@ -9427,6 +9444,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -9464,6 +9491,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap =
mutableMapOf()
@@ -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()
@@ -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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) =
webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -9614,6 +9670,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -9639,6 +9696,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -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
@@ -10103,6 +10162,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -10112,6 +10172,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/jobitems/JobItemGetProcessingResultsResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/jobitems/JobItemGetProcessingResultsResponse.kt
index 0cf8178..850dd92 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/jobitems/JobItemGetProcessingResultsResponse.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/batch/jobitems/JobItemGetProcessingResultsResponse.kt
@@ -9430,6 +9430,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -9445,6 +9446,9 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
@@ -9452,6 +9456,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
mutableMapOf(),
)
@@ -9487,6 +9492,19 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* URL to receive webhook POST notifications
*
@@ -9526,6 +9544,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -9563,6 +9591,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap =
mutableMapOf()
@@ -9573,6 +9602,7 @@ private constructor(
webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties =
webhookConfiguration.additionalProperties.toMutableMap()
@@ -9664,6 +9694,35 @@ 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='). 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) =
+ 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) =
+ apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) =
webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -9719,6 +9778,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -9744,6 +9804,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -9768,6 +9829,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
@@ -10213,6 +10275,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -10222,6 +10285,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -10230,7 +10294,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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexCreateResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexCreateResponse.kt
index ea455f1..c096155 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexCreateResponse.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexCreateResponse.kt
@@ -26,6 +26,7 @@ private constructor(
private val id: JsonField,
private val exportConfigId: JsonField,
private val name: JsonField,
+ private val outputDirectoryId: JsonField,
private val projectId: JsonField,
private val sourceDirectoryId: JsonField,
private val syncConfigId: JsonField,
@@ -45,6 +46,9 @@ private constructor(
@ExcludeMissing
exportConfigId: JsonField = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ outputDirectoryId: JsonField = JsonMissing.of(),
@JsonProperty("project_id") @ExcludeMissing projectId: JsonField = JsonMissing.of(),
@JsonProperty("source_directory_id")
@ExcludeMissing
@@ -72,6 +76,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -108,6 +113,14 @@ private constructor(
*/
fun name(): String = name.getRequired("name")
+ /**
+ * ID of the output directory holding the indexed files.
+ *
+ * @throws LlamaCloudInvalidDataException 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 outputDirectoryId(): String = outputDirectoryId.getRequired("output_directory_id")
+
/**
* Project this index belongs to.
*
@@ -203,6 +216,16 @@ private constructor(
*/
@JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name
+ /**
+ * Returns the raw JSON value of [outputDirectoryId].
+ *
+ * Unlike [outputDirectoryId], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ fun _outputDirectoryId(): JsonField = outputDirectoryId
+
/**
* Returns the raw JSON value of [projectId].
*
@@ -301,6 +324,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -315,6 +339,7 @@ private constructor(
private var id: JsonField? = null
private var exportConfigId: JsonField? = null
private var name: JsonField? = null
+ private var outputDirectoryId: JsonField? = null
private var projectId: JsonField? = null
private var sourceDirectoryId: JsonField? = null
private var syncConfigId: JsonField? = null
@@ -331,6 +356,7 @@ private constructor(
id = indexCreateResponse.id
exportConfigId = indexCreateResponse.exportConfigId
name = indexCreateResponse.name
+ outputDirectoryId = indexCreateResponse.outputDirectoryId
projectId = indexCreateResponse.projectId
sourceDirectoryId = indexCreateResponse.sourceDirectoryId
syncConfigId = indexCreateResponse.syncConfigId
@@ -379,6 +405,21 @@ private constructor(
*/
fun name(name: JsonField) = apply { this.name = name }
+ /** ID of the output directory holding the indexed files. */
+ fun outputDirectoryId(outputDirectoryId: String) =
+ outputDirectoryId(JsonField.of(outputDirectoryId))
+
+ /**
+ * Sets [Builder.outputDirectoryId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.outputDirectoryId] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun outputDirectoryId(outputDirectoryId: JsonField) = apply {
+ this.outputDirectoryId = outputDirectoryId
+ }
+
/** Project this index belongs to. */
fun projectId(projectId: String) = projectId(JsonField.of(projectId))
@@ -544,6 +585,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -556,6 +598,7 @@ private constructor(
checkRequired("id", id),
checkRequired("exportConfigId", exportConfigId),
checkRequired("name", name),
+ checkRequired("outputDirectoryId", outputDirectoryId),
checkRequired("projectId", projectId),
checkRequired("sourceDirectoryId", sourceDirectoryId),
checkRequired("syncConfigId", syncConfigId),
@@ -587,6 +630,7 @@ private constructor(
id()
exportConfigId()
name()
+ outputDirectoryId()
projectId()
sourceDirectoryId()
syncConfigId()
@@ -617,6 +661,7 @@ private constructor(
(if (id.asKnown().isPresent) 1 else 0) +
(if (exportConfigId.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0) +
+ (if (outputDirectoryId.asKnown().isPresent) 1 else 0) +
(if (projectId.asKnown().isPresent) 1 else 0) +
(if (sourceDirectoryId.asKnown().isPresent) 1 else 0) +
(if (syncConfigId.asKnown().isPresent) 1 else 0) +
@@ -745,6 +790,7 @@ private constructor(
id == other.id &&
exportConfigId == other.exportConfigId &&
name == other.name &&
+ outputDirectoryId == other.outputDirectoryId &&
projectId == other.projectId &&
sourceDirectoryId == other.sourceDirectoryId &&
syncConfigId == other.syncConfigId &&
@@ -762,6 +808,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -778,5 +825,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "IndexCreateResponse{id=$id, exportConfigId=$exportConfigId, name=$name, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
+ "IndexCreateResponse{id=$id, exportConfigId=$exportConfigId, name=$name, outputDirectoryId=$outputDirectoryId, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexGetResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexGetResponse.kt
index 7ebac05..030d5a3 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexGetResponse.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexGetResponse.kt
@@ -26,6 +26,7 @@ private constructor(
private val id: JsonField,
private val exportConfigId: JsonField,
private val name: JsonField,
+ private val outputDirectoryId: JsonField,
private val projectId: JsonField,
private val sourceDirectoryId: JsonField,
private val syncConfigId: JsonField,
@@ -45,6 +46,9 @@ private constructor(
@ExcludeMissing
exportConfigId: JsonField = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ outputDirectoryId: JsonField = JsonMissing.of(),
@JsonProperty("project_id") @ExcludeMissing projectId: JsonField = JsonMissing.of(),
@JsonProperty("source_directory_id")
@ExcludeMissing
@@ -72,6 +76,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -108,6 +113,14 @@ private constructor(
*/
fun name(): String = name.getRequired("name")
+ /**
+ * ID of the output directory holding the indexed files.
+ *
+ * @throws LlamaCloudInvalidDataException 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 outputDirectoryId(): String = outputDirectoryId.getRequired("output_directory_id")
+
/**
* Project this index belongs to.
*
@@ -203,6 +216,16 @@ private constructor(
*/
@JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name
+ /**
+ * Returns the raw JSON value of [outputDirectoryId].
+ *
+ * Unlike [outputDirectoryId], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ fun _outputDirectoryId(): JsonField = outputDirectoryId
+
/**
* Returns the raw JSON value of [projectId].
*
@@ -301,6 +324,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -315,6 +339,7 @@ private constructor(
private var id: JsonField? = null
private var exportConfigId: JsonField? = null
private var name: JsonField? = null
+ private var outputDirectoryId: JsonField? = null
private var projectId: JsonField? = null
private var sourceDirectoryId: JsonField? = null
private var syncConfigId: JsonField? = null
@@ -331,6 +356,7 @@ private constructor(
id = indexGetResponse.id
exportConfigId = indexGetResponse.exportConfigId
name = indexGetResponse.name
+ outputDirectoryId = indexGetResponse.outputDirectoryId
projectId = indexGetResponse.projectId
sourceDirectoryId = indexGetResponse.sourceDirectoryId
syncConfigId = indexGetResponse.syncConfigId
@@ -379,6 +405,21 @@ private constructor(
*/
fun name(name: JsonField) = apply { this.name = name }
+ /** ID of the output directory holding the indexed files. */
+ fun outputDirectoryId(outputDirectoryId: String) =
+ outputDirectoryId(JsonField.of(outputDirectoryId))
+
+ /**
+ * Sets [Builder.outputDirectoryId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.outputDirectoryId] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun outputDirectoryId(outputDirectoryId: JsonField) = apply {
+ this.outputDirectoryId = outputDirectoryId
+ }
+
/** Project this index belongs to. */
fun projectId(projectId: String) = projectId(JsonField.of(projectId))
@@ -544,6 +585,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -556,6 +598,7 @@ private constructor(
checkRequired("id", id),
checkRequired("exportConfigId", exportConfigId),
checkRequired("name", name),
+ checkRequired("outputDirectoryId", outputDirectoryId),
checkRequired("projectId", projectId),
checkRequired("sourceDirectoryId", sourceDirectoryId),
checkRequired("syncConfigId", syncConfigId),
@@ -587,6 +630,7 @@ private constructor(
id()
exportConfigId()
name()
+ outputDirectoryId()
projectId()
sourceDirectoryId()
syncConfigId()
@@ -617,6 +661,7 @@ private constructor(
(if (id.asKnown().isPresent) 1 else 0) +
(if (exportConfigId.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0) +
+ (if (outputDirectoryId.asKnown().isPresent) 1 else 0) +
(if (projectId.asKnown().isPresent) 1 else 0) +
(if (sourceDirectoryId.asKnown().isPresent) 1 else 0) +
(if (syncConfigId.asKnown().isPresent) 1 else 0) +
@@ -745,6 +790,7 @@ private constructor(
id == other.id &&
exportConfigId == other.exportConfigId &&
name == other.name &&
+ outputDirectoryId == other.outputDirectoryId &&
projectId == other.projectId &&
sourceDirectoryId == other.sourceDirectoryId &&
syncConfigId == other.syncConfigId &&
@@ -762,6 +808,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -778,5 +825,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "IndexGetResponse{id=$id, exportConfigId=$exportConfigId, name=$name, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
+ "IndexGetResponse{id=$id, exportConfigId=$exportConfigId, name=$name, outputDirectoryId=$outputDirectoryId, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexListResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexListResponse.kt
index 1bf8e97..bff74d3 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexListResponse.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/indexes/IndexListResponse.kt
@@ -26,6 +26,7 @@ private constructor(
private val id: JsonField,
private val exportConfigId: JsonField,
private val name: JsonField,
+ private val outputDirectoryId: JsonField,
private val projectId: JsonField,
private val sourceDirectoryId: JsonField,
private val syncConfigId: JsonField,
@@ -45,6 +46,9 @@ private constructor(
@ExcludeMissing
exportConfigId: JsonField = JsonMissing.of(),
@JsonProperty("name") @ExcludeMissing name: JsonField = JsonMissing.of(),
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ outputDirectoryId: JsonField = JsonMissing.of(),
@JsonProperty("project_id") @ExcludeMissing projectId: JsonField = JsonMissing.of(),
@JsonProperty("source_directory_id")
@ExcludeMissing
@@ -72,6 +76,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -108,6 +113,14 @@ private constructor(
*/
fun name(): String = name.getRequired("name")
+ /**
+ * ID of the output directory holding the indexed files.
+ *
+ * @throws LlamaCloudInvalidDataException 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 outputDirectoryId(): String = outputDirectoryId.getRequired("output_directory_id")
+
/**
* Project this index belongs to.
*
@@ -203,6 +216,16 @@ private constructor(
*/
@JsonProperty("name") @ExcludeMissing fun _name(): JsonField = name
+ /**
+ * Returns the raw JSON value of [outputDirectoryId].
+ *
+ * Unlike [outputDirectoryId], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("output_directory_id")
+ @ExcludeMissing
+ fun _outputDirectoryId(): JsonField = outputDirectoryId
+
/**
* Returns the raw JSON value of [projectId].
*
@@ -301,6 +324,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -315,6 +339,7 @@ private constructor(
private var id: JsonField? = null
private var exportConfigId: JsonField? = null
private var name: JsonField? = null
+ private var outputDirectoryId: JsonField? = null
private var projectId: JsonField? = null
private var sourceDirectoryId: JsonField? = null
private var syncConfigId: JsonField? = null
@@ -331,6 +356,7 @@ private constructor(
id = indexListResponse.id
exportConfigId = indexListResponse.exportConfigId
name = indexListResponse.name
+ outputDirectoryId = indexListResponse.outputDirectoryId
projectId = indexListResponse.projectId
sourceDirectoryId = indexListResponse.sourceDirectoryId
syncConfigId = indexListResponse.syncConfigId
@@ -379,6 +405,21 @@ private constructor(
*/
fun name(name: JsonField) = apply { this.name = name }
+ /** ID of the output directory holding the indexed files. */
+ fun outputDirectoryId(outputDirectoryId: String) =
+ outputDirectoryId(JsonField.of(outputDirectoryId))
+
+ /**
+ * Sets [Builder.outputDirectoryId] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.outputDirectoryId] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun outputDirectoryId(outputDirectoryId: JsonField) = apply {
+ this.outputDirectoryId = outputDirectoryId
+ }
+
/** Project this index belongs to. */
fun projectId(projectId: String) = projectId(JsonField.of(projectId))
@@ -544,6 +585,7 @@ private constructor(
* .id()
* .exportConfigId()
* .name()
+ * .outputDirectoryId()
* .projectId()
* .sourceDirectoryId()
* .syncConfigId()
@@ -556,6 +598,7 @@ private constructor(
checkRequired("id", id),
checkRequired("exportConfigId", exportConfigId),
checkRequired("name", name),
+ checkRequired("outputDirectoryId", outputDirectoryId),
checkRequired("projectId", projectId),
checkRequired("sourceDirectoryId", sourceDirectoryId),
checkRequired("syncConfigId", syncConfigId),
@@ -587,6 +630,7 @@ private constructor(
id()
exportConfigId()
name()
+ outputDirectoryId()
projectId()
sourceDirectoryId()
syncConfigId()
@@ -617,6 +661,7 @@ private constructor(
(if (id.asKnown().isPresent) 1 else 0) +
(if (exportConfigId.asKnown().isPresent) 1 else 0) +
(if (name.asKnown().isPresent) 1 else 0) +
+ (if (outputDirectoryId.asKnown().isPresent) 1 else 0) +
(if (projectId.asKnown().isPresent) 1 else 0) +
(if (sourceDirectoryId.asKnown().isPresent) 1 else 0) +
(if (syncConfigId.asKnown().isPresent) 1 else 0) +
@@ -745,6 +790,7 @@ private constructor(
id == other.id &&
exportConfigId == other.exportConfigId &&
name == other.name &&
+ outputDirectoryId == other.outputDirectoryId &&
projectId == other.projectId &&
sourceDirectoryId == other.sourceDirectoryId &&
syncConfigId == other.syncConfigId &&
@@ -762,6 +808,7 @@ private constructor(
id,
exportConfigId,
name,
+ outputDirectoryId,
projectId,
sourceDirectoryId,
syncConfigId,
@@ -778,5 +825,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "IndexListResponse{id=$id, exportConfigId=$exportConfigId, name=$name, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
+ "IndexListResponse{id=$id, exportConfigId=$exportConfigId, name=$name, outputDirectoryId=$outputDirectoryId, projectId=$projectId, sourceDirectoryId=$sourceDirectoryId, syncConfigId=$syncConfigId, createdAt=$createdAt, description=$description, lastExportedAt=$lastExportedAt, lastSyncedAt=$lastSyncedAt, metadata=$metadata, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetCreateParams.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetCreateParams.kt
index 1617940..474e46f 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetCreateParams.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetCreateParams.kt
@@ -847,6 +847,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -862,10 +863,20 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
- ) : this(webhookEvents, webhookHeaders, webhookOutputFormat, webhookUrl, mutableMapOf())
+ ) : this(
+ webhookEvents,
+ webhookHeaders,
+ webhookOutputFormat,
+ webhookSigningSecret,
+ webhookUrl,
+ mutableMapOf(),
+ )
/**
* Events to subscribe to (e.g. 'parse.success', 'extract.error'). If null, all events are
@@ -895,6 +906,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* URL to receive webhook POST notifications
*
@@ -933,6 +956,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -966,6 +999,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -974,6 +1008,7 @@ private constructor(
webhookEvents = webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties = webhookConfiguration.additionalProperties.toMutableMap()
}
@@ -1053,6 +1088,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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) = webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -1097,6 +1159,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -1121,6 +1184,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -1144,6 +1208,7 @@ private constructor(
(webhookEvents.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 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 @JsonCreator private constructor(private val value: JsonField) :
@@ -1565,6 +1630,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -1574,6 +1640,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -1582,7 +1649,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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetsJob.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetsJob.kt
index 5dc0afb..aa819ce 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetsJob.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/sheets/SheetsJob.kt
@@ -1315,6 +1315,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -1330,10 +1331,20 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
- ) : this(webhookEvents, webhookHeaders, webhookOutputFormat, webhookUrl, mutableMapOf())
+ ) : this(
+ webhookEvents,
+ webhookHeaders,
+ webhookOutputFormat,
+ webhookSigningSecret,
+ webhookUrl,
+ mutableMapOf(),
+ )
/**
* Events to subscribe to (e.g. 'parse.success', 'extract.error'). If null, all events
@@ -1363,6 +1374,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* URL to receive webhook POST notifications
*
@@ -1401,6 +1424,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -1437,6 +1470,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -1445,6 +1479,7 @@ private constructor(
webhookEvents = webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties = webhookConfiguration.additionalProperties.toMutableMap()
}
@@ -1526,6 +1561,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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) = webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -1575,6 +1637,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -1600,6 +1663,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -1623,6 +1687,7 @@ private constructor(
(webhookEvents.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 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
@@ -2052,6 +2117,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -2061,6 +2127,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -2069,7 +2136,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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classifier/jobs/JobCreateParams.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classifier/jobs/JobCreateParams.kt
index 3636135..86c8d79 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classifier/jobs/JobCreateParams.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classifier/jobs/JobCreateParams.kt
@@ -965,6 +965,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -980,10 +981,20 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
- ) : this(webhookEvents, webhookHeaders, webhookOutputFormat, webhookUrl, mutableMapOf())
+ ) : this(
+ webhookEvents,
+ webhookHeaders,
+ webhookOutputFormat,
+ webhookSigningSecret,
+ webhookUrl,
+ mutableMapOf(),
+ )
/**
* Events that trigger this webhook. Options: 'parse.success' (job completed), 'parse.error'
@@ -1015,6 +1026,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* HTTPS URL to receive webhook POST requests. Must be publicly accessible
*
@@ -1053,6 +1076,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -1086,6 +1119,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -1094,6 +1128,7 @@ private constructor(
webhookEvents = webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties = webhookConfiguration.additionalProperties.toMutableMap()
}
@@ -1181,6 +1216,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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** HTTPS URL to receive webhook POST requests. Must be publicly accessible */
fun webhookUrl(webhookUrl: String?) = webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -1225,6 +1287,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -1249,6 +1312,7 @@ private constructor(
webhookEvents()
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat().ifPresent { it.validate() }
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -1272,6 +1336,7 @@ private constructor(
(webhookEvents.asKnown().getOrNull()?.size ?: 0) +
(webhookHeaders.asKnown().getOrNull()?.validity() ?: 0) +
(webhookOutputFormat.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (webhookSigningSecret.asKnown().isPresent) 1 else 0) +
(if (webhookUrl.asKnown().isPresent) 1 else 0)
/**
@@ -1548,6 +1613,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -1557,6 +1623,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -1565,7 +1632,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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classify/ClassifyCreateRequest.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classify/ClassifyCreateRequest.kt
index 2bb7e31..a1dae1b 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classify/ClassifyCreateRequest.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/classify/ClassifyCreateRequest.kt
@@ -465,6 +465,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -480,10 +481,20 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
- ) : this(webhookEvents, webhookHeaders, webhookOutputFormat, webhookUrl, mutableMapOf())
+ ) : this(
+ webhookEvents,
+ webhookHeaders,
+ webhookOutputFormat,
+ webhookSigningSecret,
+ webhookUrl,
+ mutableMapOf(),
+ )
/**
* Events to subscribe to (e.g. 'parse.success', 'extract.error'). If null, all events are
@@ -513,6 +524,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* URL to receive webhook POST notifications
*
@@ -551,6 +574,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -584,6 +617,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -592,6 +626,7 @@ private constructor(
webhookEvents = webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties = webhookConfiguration.additionalProperties.toMutableMap()
}
@@ -671,6 +706,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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** URL to receive webhook POST notifications */
fun webhookUrl(webhookUrl: String?) = webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -715,6 +777,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -739,6 +802,7 @@ private constructor(
webhookEvents().ifPresent { it.forEach { it.validate() } }
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat()
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -762,6 +826,7 @@ private constructor(
(webhookEvents.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 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 @JsonCreator private constructor(private val value: JsonField) :
@@ -1183,6 +1248,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -1192,6 +1258,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -1200,7 +1267,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 {
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/configurations/ParseV2Parameters.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/configurations/ParseV2Parameters.kt
index b795bbe..66f84bb 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/configurations/ParseV2Parameters.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/configurations/ParseV2Parameters.kt
@@ -54,6 +54,7 @@ private constructor(
private val pageRanges: JsonField,
private val processingControl: JsonField,
private val processingOptions: JsonField,
+ private val webhookConfigurationIds: JsonField>,
private val webhookConfigurations: JsonField>,
private val additionalProperties: MutableMap,
) {
@@ -89,6 +90,9 @@ private constructor(
@JsonProperty("processing_options")
@ExcludeMissing
processingOptions: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_configuration_ids")
+ @ExcludeMissing
+ webhookConfigurationIds: JsonField> = JsonMissing.of(),
@JsonProperty("webhook_configurations")
@ExcludeMissing
webhookConfigurations: JsonField> = JsonMissing.of(),
@@ -106,6 +110,7 @@ private constructor(
pageRanges,
processingControl,
processingOptions,
+ webhookConfigurationIds,
webhookConfigurations,
mutableMapOf(),
)
@@ -137,7 +142,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -242,6 +247,15 @@ private constructor(
fun processingOptions(): Optional =
processingOptions.getOptional("processing_options")
+ /**
+ * IDs of saved webhook configurations to notify for this job.
+ *
+ * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun webhookConfigurationIds(): Optional> =
+ webhookConfigurationIds.getOptional("webhook_configuration_ids")
+
/**
* Webhook endpoints for job status notifications. Multiple webhooks can be configured for
* different events or services
@@ -345,6 +359,16 @@ private constructor(
@ExcludeMissing
fun _processingOptions(): JsonField = processingOptions
+ /**
+ * Returns the raw JSON value of [webhookConfigurationIds].
+ *
+ * Unlike [webhookConfigurationIds], this method doesn't throw if the JSON field has an
+ * unexpected type.
+ */
+ @JsonProperty("webhook_configuration_ids")
+ @ExcludeMissing
+ fun _webhookConfigurationIds(): JsonField> = webhookConfigurationIds
+
/**
* Returns the raw JSON value of [webhookConfigurations].
*
@@ -397,6 +421,7 @@ private constructor(
private var pageRanges: JsonField = JsonMissing.of()
private var processingControl: JsonField = JsonMissing.of()
private var processingOptions: JsonField = JsonMissing.of()
+ private var webhookConfigurationIds: JsonField>? = null
private var webhookConfigurations: JsonField>? = null
private var additionalProperties: MutableMap = mutableMapOf()
@@ -415,6 +440,8 @@ private constructor(
pageRanges = parseV2Parameters.pageRanges
processingControl = parseV2Parameters.processingControl
processingOptions = parseV2Parameters.processingOptions
+ webhookConfigurationIds =
+ parseV2Parameters.webhookConfigurationIds.map { it.toMutableList() }
webhookConfigurations =
parseV2Parameters.webhookConfigurations.map { it.toMutableList() }
additionalProperties = parseV2Parameters.additionalProperties.toMutableMap()
@@ -453,7 +480,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -643,6 +670,40 @@ private constructor(
this.processingOptions = processingOptions
}
+ /** IDs of saved webhook configurations to notify for this job. */
+ fun webhookConfigurationIds(webhookConfigurationIds: List?) =
+ webhookConfigurationIds(JsonField.ofNullable(webhookConfigurationIds))
+
+ /**
+ * Alias for calling [Builder.webhookConfigurationIds] with
+ * `webhookConfigurationIds.orElse(null)`.
+ */
+ fun webhookConfigurationIds(webhookConfigurationIds: Optional>) =
+ webhookConfigurationIds(webhookConfigurationIds.getOrNull())
+
+ /**
+ * Sets [Builder.webhookConfigurationIds] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.webhookConfigurationIds] with a well-typed
+ * `List` value instead. This method is primarily for setting the field to an
+ * undocumented or not yet supported value.
+ */
+ fun webhookConfigurationIds(webhookConfigurationIds: JsonField>) = apply {
+ this.webhookConfigurationIds = webhookConfigurationIds.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [String] to [webhookConfigurationIds].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addWebhookConfigurationId(webhookConfigurationId: String) = apply {
+ webhookConfigurationIds =
+ (webhookConfigurationIds ?: JsonField.of(mutableListOf())).also {
+ checkKnown("webhookConfigurationIds", it).add(webhookConfigurationId)
+ }
+ }
+
/**
* Webhook endpoints for job status notifications. Multiple webhooks can be configured for
* different events or services
@@ -721,6 +782,7 @@ private constructor(
pageRanges,
processingControl,
processingOptions,
+ (webhookConfigurationIds ?: JsonMissing.of()).map { it.toImmutable() },
(webhookConfigurations ?: JsonMissing.of()).map { it.toImmutable() },
additionalProperties.toMutableMap(),
)
@@ -757,6 +819,7 @@ private constructor(
pageRanges().ifPresent { it.validate() }
processingControl().ifPresent { it.validate() }
processingOptions().ifPresent { it.validate() }
+ webhookConfigurationIds()
webhookConfigurations().ifPresent { it.forEach { it.validate() } }
validated = true
}
@@ -788,6 +851,7 @@ private constructor(
(pageRanges.asKnown().getOrNull()?.validity() ?: 0) +
(processingControl.asKnown().getOrNull()?.validity() ?: 0) +
(processingOptions.asKnown().getOrNull()?.validity() ?: 0) +
+ (webhookConfigurationIds.asKnown().getOrNull()?.size ?: 0) +
(webhookConfigurations.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ?: 0)
/**
@@ -947,7 +1011,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -969,6 +1033,8 @@ private constructor(
@JvmField val LATEST = of("latest")
+ @JvmField val _2026_06_26 = of("2026-06-26")
+
@JvmField val _2026_06_18 = of("2026-06-18")
@JvmField val _2025_12_11 = of("2025-12-11")
@@ -979,6 +1045,7 @@ private constructor(
/** An enum containing [Version]'s known values. */
enum class Known {
LATEST,
+ _2026_06_26,
_2026_06_18,
_2025_12_11,
}
@@ -994,6 +1061,7 @@ private constructor(
*/
enum class Value {
LATEST,
+ _2026_06_26,
_2026_06_18,
_2025_12_11,
/** An enum member indicating that [Version] was instantiated with an unknown value. */
@@ -1010,6 +1078,7 @@ private constructor(
fun value(): Value =
when (this) {
LATEST -> Value.LATEST
+ _2026_06_26 -> Value._2026_06_26
_2026_06_18 -> Value._2026_06_18
_2025_12_11 -> Value._2025_12_11
else -> Value._UNKNOWN
@@ -1027,6 +1096,7 @@ private constructor(
fun known(): Known =
when (this) {
LATEST -> Known.LATEST
+ _2026_06_26 -> Known._2026_06_26
_2026_06_18 -> Known._2026_06_18
_2025_12_11 -> Known._2025_12_11
else -> throw LlamaCloudInvalidDataException("Unknown Version: $value")
@@ -9377,7 +9447,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -9881,7 +9951,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -11495,7 +11565,7 @@ private constructor(
*
* Current `latest` by tier:
* - `fast`: `2025-12-11`
- * - `cost_effective`: `2026-06-18`
+ * - `cost_effective`: `2026-06-26`
* - `agentic`: `2026-06-18`
* - `agentic_plus`: `2026-06-18`
*
@@ -11520,6 +11590,8 @@ private constructor(
@JvmField val LATEST = of("latest")
+ @JvmField val _2026_06_26 = of("2026-06-26")
+
@JvmField val _2026_06_18 = of("2026-06-18")
@JvmField val _2025_12_11 = of("2025-12-11")
@@ -11530,6 +11602,7 @@ private constructor(
/** An enum containing [Version]'s known values. */
enum class Known {
LATEST,
+ _2026_06_26,
_2026_06_18,
_2025_12_11,
}
@@ -11545,6 +11618,7 @@ private constructor(
*/
enum class Value {
LATEST,
+ _2026_06_26,
_2026_06_18,
_2025_12_11,
/**
@@ -11564,6 +11638,7 @@ private constructor(
fun value(): Value =
when (this) {
LATEST -> Value.LATEST
+ _2026_06_26 -> Value._2026_06_26
_2026_06_18 -> Value._2026_06_18
_2025_12_11 -> Value._2025_12_11
else -> Value._UNKNOWN
@@ -11581,6 +11656,7 @@ private constructor(
fun known(): Known =
when (this) {
LATEST -> Known.LATEST
+ _2026_06_26 -> Known._2026_06_26
_2026_06_18 -> Known._2026_06_18
_2025_12_11 -> Known._2025_12_11
else -> throw LlamaCloudInvalidDataException("Unknown Version: $value")
@@ -17681,6 +17757,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField,
+ private val webhookSigningSecret: JsonField,
private val webhookUrl: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -17696,10 +17773,20 @@ private constructor(
@JsonProperty("webhook_output_format")
@ExcludeMissing
webhookOutputFormat: JsonField = JsonMissing.of(),
+ @JsonProperty("webhook_signing_secret")
+ @ExcludeMissing
+ webhookSigningSecret: JsonField = JsonMissing.of(),
@JsonProperty("webhook_url")
@ExcludeMissing
webhookUrl: JsonField = JsonMissing.of(),
- ) : this(webhookEvents, webhookHeaders, webhookOutputFormat, webhookUrl, mutableMapOf())
+ ) : this(
+ webhookEvents,
+ webhookHeaders,
+ webhookOutputFormat,
+ webhookSigningSecret,
+ webhookUrl,
+ mutableMapOf(),
+ )
/**
* Events that trigger this webhook. Options: 'parse.success' (job completed), 'parse.error'
@@ -17731,6 +17818,18 @@ private constructor(
fun webhookOutputFormat(): Optional =
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='). 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 =
+ webhookSigningSecret.getOptional("webhook_signing_secret")
+
/**
* HTTPS URL to receive webhook POST requests. Must be publicly accessible
*
@@ -17769,6 +17868,16 @@ private constructor(
@ExcludeMissing
fun _webhookOutputFormat(): JsonField = 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 = webhookSigningSecret
+
/**
* Returns the raw JSON value of [webhookUrl].
*
@@ -17802,6 +17911,7 @@ private constructor(
private var webhookEvents: JsonField>? = null
private var webhookHeaders: JsonField = JsonMissing.of()
private var webhookOutputFormat: JsonField = JsonMissing.of()
+ private var webhookSigningSecret: JsonField = JsonMissing.of()
private var webhookUrl: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -17810,6 +17920,7 @@ private constructor(
webhookEvents = webhookConfiguration.webhookEvents.map { it.toMutableList() }
webhookHeaders = webhookConfiguration.webhookHeaders
webhookOutputFormat = webhookConfiguration.webhookOutputFormat
+ webhookSigningSecret = webhookConfiguration.webhookSigningSecret
webhookUrl = webhookConfiguration.webhookUrl
additionalProperties = webhookConfiguration.additionalProperties.toMutableMap()
}
@@ -17897,6 +18008,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='). 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) =
+ 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) = apply {
+ this.webhookSigningSecret = webhookSigningSecret
+ }
+
/** HTTPS URL to receive webhook POST requests. Must be publicly accessible */
fun webhookUrl(webhookUrl: String?) = webhookUrl(JsonField.ofNullable(webhookUrl))
@@ -17941,6 +18079,7 @@ private constructor(
(webhookEvents ?: JsonMissing.of()).map { it.toImmutable() },
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties.toMutableMap(),
)
@@ -17965,6 +18104,7 @@ private constructor(
webhookEvents()
webhookHeaders().ifPresent { it.validate() }
webhookOutputFormat().ifPresent { it.validate() }
+ webhookSigningSecret()
webhookUrl()
validated = true
}
@@ -17988,6 +18128,7 @@ private constructor(
(webhookEvents.asKnown().getOrNull()?.size ?: 0) +
(webhookHeaders.asKnown().getOrNull()?.validity() ?: 0) +
(webhookOutputFormat.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (webhookSigningSecret.asKnown().isPresent) 1 else 0) +
(if (webhookUrl.asKnown().isPresent) 1 else 0)
/**
@@ -18264,6 +18405,7 @@ private constructor(
webhookEvents == other.webhookEvents &&
webhookHeaders == other.webhookHeaders &&
webhookOutputFormat == other.webhookOutputFormat &&
+ webhookSigningSecret == other.webhookSigningSecret &&
webhookUrl == other.webhookUrl &&
additionalProperties == other.additionalProperties
}
@@ -18273,6 +18415,7 @@ private constructor(
webhookEvents,
webhookHeaders,
webhookOutputFormat,
+ webhookSigningSecret,
webhookUrl,
additionalProperties,
)
@@ -18281,7 +18424,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 {
@@ -18303,6 +18446,7 @@ private constructor(
pageRanges == other.pageRanges &&
processingControl == other.processingControl &&
processingOptions == other.processingOptions &&
+ webhookConfigurationIds == other.webhookConfigurationIds &&
webhookConfigurations == other.webhookConfigurations &&
additionalProperties == other.additionalProperties
}
@@ -18322,6 +18466,7 @@ private constructor(
pageRanges,
processingControl,
processingOptions,
+ webhookConfigurationIds,
webhookConfigurations,
additionalProperties,
)
@@ -18330,5 +18475,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "ParseV2Parameters{productType=$productType, tier=$tier, version=$version, agenticOptions=$agenticOptions, clientName=$clientName, cropBox=$cropBox, disableCache=$disableCache, fastOptions=$fastOptions, inputOptions=$inputOptions, outputOptions=$outputOptions, pageRanges=$pageRanges, processingControl=$processingControl, processingOptions=$processingOptions, webhookConfigurations=$webhookConfigurations, additionalProperties=$additionalProperties}"
+ "ParseV2Parameters{productType=$productType, tier=$tier, version=$version, agenticOptions=$agenticOptions, clientName=$clientName, cropBox=$cropBox, disableCache=$disableCache, fastOptions=$fastOptions, inputOptions=$inputOptions, outputOptions=$outputOptions, pageRanges=$pageRanges, processingControl=$processingControl, processingOptions=$processingOptions, webhookConfigurationIds=$webhookConfigurationIds, webhookConfigurations=$webhookConfigurations, additionalProperties=$additionalProperties}"
}
diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/extract/ExtractV2JobCreate.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/extract/ExtractV2JobCreate.kt
index 2eec138..22ff640 100644
--- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/extract/ExtractV2JobCreate.kt
+++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/extract/ExtractV2JobCreate.kt
@@ -332,6 +332,7 @@ private constructor(
private val webhookEvents: JsonField>,
private val webhookHeaders: JsonField,
private val webhookOutputFormat: JsonField