From e02e918e9b7127445a7604f376a8500ad09b66f1 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Thu, 2 Jul 2026 01:26:19 +0000 Subject: [PATCH 1/4] LI-7871 Hide system ephemeral directories from API (#21108) Stainless-Generated-From: f378d4a4c012c79cb19fa5bb03e2fd3924bf4e72 --- .../beta/directories/DirectoryCreateResponse.kt | 12 +++--------- .../models/beta/directories/DirectoryGetResponse.kt | 12 +++--------- .../models/beta/directories/DirectoryListResponse.kt | 12 +++--------- .../beta/directories/DirectoryUpdateResponse.kt | 12 +++--------- 4 files changed, 12 insertions(+), 36 deletions(-) diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryCreateResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryCreateResponse.kt index 36f844d..4222f0a 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryCreateResponse.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryCreateResponse.kt @@ -140,7 +140,7 @@ private constructor( fun systemMetadata(): Optional = systemMetadata.getOptional("system_metadata") /** - * Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. + * Directory type: 'user', 'index', or 'ephemeral'. * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -405,7 +405,7 @@ private constructor( this.systemMetadata = systemMetadata } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ fun type(type: Type?) = type(JsonField.ofNullable(type)) /** Alias for calling [Builder.type] with `type.orElse(null)`. */ @@ -646,7 +646,7 @@ private constructor( override fun toString() = "SystemMetadata{additionalProperties=$additionalProperties}" } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -665,8 +665,6 @@ private constructor( @JvmField val INDEX = of("index") - @JvmField val SYSTEM_EPHEMERAL = of("system_ephemeral") - @JvmField val USER = of("user") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) @@ -676,7 +674,6 @@ private constructor( enum class Known { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, } @@ -692,7 +689,6 @@ private constructor( enum class Value { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, /** An enum member indicating that [Type] was instantiated with an unknown value. */ _UNKNOWN, @@ -709,7 +705,6 @@ private constructor( when (this) { EPHEMERAL -> Value.EPHEMERAL INDEX -> Value.INDEX - SYSTEM_EPHEMERAL -> Value.SYSTEM_EPHEMERAL USER -> Value.USER else -> Value._UNKNOWN } @@ -727,7 +722,6 @@ private constructor( when (this) { EPHEMERAL -> Known.EPHEMERAL INDEX -> Known.INDEX - SYSTEM_EPHEMERAL -> Known.SYSTEM_EPHEMERAL USER -> Known.USER else -> throw LlamaCloudInvalidDataException("Unknown Type: $value") } diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryGetResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryGetResponse.kt index a004084..b938f86 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryGetResponse.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryGetResponse.kt @@ -140,7 +140,7 @@ private constructor( fun systemMetadata(): Optional = systemMetadata.getOptional("system_metadata") /** - * Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. + * Directory type: 'user', 'index', or 'ephemeral'. * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -405,7 +405,7 @@ private constructor( this.systemMetadata = systemMetadata } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ fun type(type: Type?) = type(JsonField.ofNullable(type)) /** Alias for calling [Builder.type] with `type.orElse(null)`. */ @@ -646,7 +646,7 @@ private constructor( override fun toString() = "SystemMetadata{additionalProperties=$additionalProperties}" } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -665,8 +665,6 @@ private constructor( @JvmField val INDEX = of("index") - @JvmField val SYSTEM_EPHEMERAL = of("system_ephemeral") - @JvmField val USER = of("user") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) @@ -676,7 +674,6 @@ private constructor( enum class Known { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, } @@ -692,7 +689,6 @@ private constructor( enum class Value { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, /** An enum member indicating that [Type] was instantiated with an unknown value. */ _UNKNOWN, @@ -709,7 +705,6 @@ private constructor( when (this) { EPHEMERAL -> Value.EPHEMERAL INDEX -> Value.INDEX - SYSTEM_EPHEMERAL -> Value.SYSTEM_EPHEMERAL USER -> Value.USER else -> Value._UNKNOWN } @@ -727,7 +722,6 @@ private constructor( when (this) { EPHEMERAL -> Known.EPHEMERAL INDEX -> Known.INDEX - SYSTEM_EPHEMERAL -> Known.SYSTEM_EPHEMERAL USER -> Known.USER else -> throw LlamaCloudInvalidDataException("Unknown Type: $value") } diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryListResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryListResponse.kt index a2a4d57..73ce24b 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryListResponse.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryListResponse.kt @@ -140,7 +140,7 @@ private constructor( fun systemMetadata(): Optional = systemMetadata.getOptional("system_metadata") /** - * Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. + * Directory type: 'user', 'index', or 'ephemeral'. * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -405,7 +405,7 @@ private constructor( this.systemMetadata = systemMetadata } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ fun type(type: Type?) = type(JsonField.ofNullable(type)) /** Alias for calling [Builder.type] with `type.orElse(null)`. */ @@ -646,7 +646,7 @@ private constructor( override fun toString() = "SystemMetadata{additionalProperties=$additionalProperties}" } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -665,8 +665,6 @@ private constructor( @JvmField val INDEX = of("index") - @JvmField val SYSTEM_EPHEMERAL = of("system_ephemeral") - @JvmField val USER = of("user") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) @@ -676,7 +674,6 @@ private constructor( enum class Known { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, } @@ -692,7 +689,6 @@ private constructor( enum class Value { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, /** An enum member indicating that [Type] was instantiated with an unknown value. */ _UNKNOWN, @@ -709,7 +705,6 @@ private constructor( when (this) { EPHEMERAL -> Value.EPHEMERAL INDEX -> Value.INDEX - SYSTEM_EPHEMERAL -> Value.SYSTEM_EPHEMERAL USER -> Value.USER else -> Value._UNKNOWN } @@ -727,7 +722,6 @@ private constructor( when (this) { EPHEMERAL -> Known.EPHEMERAL INDEX -> Known.INDEX - SYSTEM_EPHEMERAL -> Known.SYSTEM_EPHEMERAL USER -> Known.USER else -> throw LlamaCloudInvalidDataException("Unknown Type: $value") } diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryUpdateResponse.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryUpdateResponse.kt index e63ba76..80b0b7c 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryUpdateResponse.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/beta/directories/DirectoryUpdateResponse.kt @@ -140,7 +140,7 @@ private constructor( fun systemMetadata(): Optional = systemMetadata.getOptional("system_metadata") /** - * Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. + * Directory type: 'user', 'index', or 'ephemeral'. * * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the * server responded with an unexpected value). @@ -405,7 +405,7 @@ private constructor( this.systemMetadata = systemMetadata } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ fun type(type: Type?) = type(JsonField.ofNullable(type)) /** Alias for calling [Builder.type] with `type.orElse(null)`. */ @@ -646,7 +646,7 @@ private constructor( override fun toString() = "SystemMetadata{additionalProperties=$additionalProperties}" } - /** Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'. */ + /** Directory type: 'user', 'index', or 'ephemeral'. */ class Type @JsonCreator private constructor(private val value: JsonField) : Enum { /** @@ -665,8 +665,6 @@ private constructor( @JvmField val INDEX = of("index") - @JvmField val SYSTEM_EPHEMERAL = of("system_ephemeral") - @JvmField val USER = of("user") @JvmStatic fun of(value: String) = Type(JsonField.of(value)) @@ -676,7 +674,6 @@ private constructor( enum class Known { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, } @@ -692,7 +689,6 @@ private constructor( enum class Value { EPHEMERAL, INDEX, - SYSTEM_EPHEMERAL, USER, /** An enum member indicating that [Type] was instantiated with an unknown value. */ _UNKNOWN, @@ -709,7 +705,6 @@ private constructor( when (this) { EPHEMERAL -> Value.EPHEMERAL INDEX -> Value.INDEX - SYSTEM_EPHEMERAL -> Value.SYSTEM_EPHEMERAL USER -> Value.USER else -> Value._UNKNOWN } @@ -727,7 +722,6 @@ private constructor( when (this) { EPHEMERAL -> Known.EPHEMERAL INDEX -> Known.INDEX - SYSTEM_EPHEMERAL -> Known.SYSTEM_EPHEMERAL USER -> Known.USER else -> throw LlamaCloudInvalidDataException("Unknown Type: $value") } From 3fb03059def285ca14291d9d597435180f87a8e8 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Tue, 7 Jul 2026 17:54:55 +0000 Subject: [PATCH 2/4] feat: update fast tier latest version to use liteparse + markdown (#21669) Stainless-Generated-From: d2e5c7b6dd084cb6e09a1419fdf810450cbba299 --- .../configurations/ParseV2Parameters.kt | 32 ++++++++--------- .../api/models/parsing/ParsingCreateParams.kt | 36 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) 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 66f84bb..6504f69 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 @@ -141,7 +141,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -479,7 +479,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -1010,7 +1010,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -1037,7 +1037,7 @@ private constructor( @JvmField val _2026_06_18 = of("2026-06-18") - @JvmField val _2025_12_11 = of("2025-12-11") + @JvmField val _2026_06_15 = of("2026-06-15") @JvmStatic fun of(value: String) = Version(JsonField.of(value)) } @@ -1047,7 +1047,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -1063,7 +1063,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** An enum member indicating that [Version] was instantiated with an unknown value. */ _UNKNOWN, } @@ -1080,7 +1080,7 @@ private constructor( LATEST -> Value.LATEST _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -1098,7 +1098,7 @@ private constructor( LATEST -> Known.LATEST _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -9446,7 +9446,7 @@ private constructor( * one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -9950,7 +9950,7 @@ private constructor( * pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -11564,7 +11564,7 @@ private constructor( * one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -11594,7 +11594,7 @@ private constructor( @JvmField val _2026_06_18 = of("2026-06-18") - @JvmField val _2025_12_11 = of("2025-12-11") + @JvmField val _2026_06_15 = of("2026-06-15") @JvmStatic fun of(value: String) = Version(JsonField.of(value)) } @@ -11604,7 +11604,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -11620,7 +11620,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown * value. @@ -11640,7 +11640,7 @@ private constructor( LATEST -> Value.LATEST _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -11658,7 +11658,7 @@ private constructor( LATEST -> Known.LATEST _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt index 302c88c..c3134b1 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt @@ -75,7 +75,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -463,7 +463,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -1080,7 +1080,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -1514,7 +1514,7 @@ private constructor( * versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -2215,7 +2215,7 @@ private constructor( * Version for the selected tier. Use `latest`, or pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -2242,7 +2242,7 @@ private constructor( @JvmField val _2026_06_18 = of("2026-06-18") - @JvmField val _2025_12_11 = of("2025-12-11") + @JvmField val _2026_06_15 = of("2026-06-15") @JvmStatic fun of(value: String) = Version(JsonField.of(value)) } @@ -2252,7 +2252,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -2268,7 +2268,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** An enum member indicating that [Version] was instantiated with an unknown value. */ _UNKNOWN, } @@ -2285,7 +2285,7 @@ private constructor( LATEST -> Value.LATEST _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -2303,7 +2303,7 @@ private constructor( LATEST -> Known.LATEST _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -10651,7 +10651,7 @@ private constructor( * one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -11155,7 +11155,7 @@ private constructor( * pin one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -12769,7 +12769,7 @@ private constructor( * one of that tier's dated versions. * * Current `latest` by tier: - * - `fast`: `2025-12-11` + * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` * - `agentic_plus`: `2026-06-18` @@ -12799,7 +12799,7 @@ private constructor( @JvmField val _2026_06_18 = of("2026-06-18") - @JvmField val _2025_12_11 = of("2025-12-11") + @JvmField val _2026_06_15 = of("2026-06-15") @JvmStatic fun of(value: String) = Version(JsonField.of(value)) } @@ -12809,7 +12809,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -12825,7 +12825,7 @@ private constructor( LATEST, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown * value. @@ -12845,7 +12845,7 @@ private constructor( LATEST -> Value.LATEST _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -12863,7 +12863,7 @@ private constructor( LATEST -> Known.LATEST _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } From 82df927182e8f8c7ff5e2a3e5474926148e55426 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Tue, 7 Jul 2026 18:38:37 +0000 Subject: [PATCH 3/4] Accept brokered creds on CloudGoogleDriveDataSource + vend for healthcheck (#21363) Stainless-Generated-From: 6407c395dcb736b9f52013f9b17c752df0a96ba2 --- .../api/models/CloudGoogleDriveDataSource.kt | 52 ++++++++++++++++++- .../models/CloudGoogleDriveDataSourceTest.kt | 3 ++ 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSource.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSource.kt index af6dd12..4de3fd6 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSource.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSource.kt @@ -23,6 +23,7 @@ class CloudGoogleDriveDataSource private constructor( private val folderId: JsonField, private val className: JsonField, + private val folderName: JsonField, private val serviceAccountKey: JsonField, private val supportsAccessControl: JsonField, private val additionalProperties: MutableMap, @@ -32,13 +33,23 @@ private constructor( private constructor( @JsonProperty("folder_id") @ExcludeMissing folderId: JsonField = JsonMissing.of(), @JsonProperty("class_name") @ExcludeMissing className: JsonField = JsonMissing.of(), + @JsonProperty("folder_name") + @ExcludeMissing + folderName: JsonField = JsonMissing.of(), @JsonProperty("service_account_key") @ExcludeMissing serviceAccountKey: JsonField = JsonMissing.of(), @JsonProperty("supports_access_control") @ExcludeMissing supportsAccessControl: JsonField = JsonMissing.of(), - ) : this(folderId, className, serviceAccountKey, supportsAccessControl, mutableMapOf()) + ) : this( + folderId, + className, + folderName, + serviceAccountKey, + supportsAccessControl, + mutableMapOf(), + ) /** * The ID of the Google Drive folder to read from. @@ -54,6 +65,14 @@ private constructor( */ fun className(): Optional = className.getOptional("class_name") + /** + * Human-readable name of the selected folder, for display. + * + * @throws LlamaCloudInvalidDataException if the JSON field has an unexpected type (e.g. if the + * server responded with an unexpected value). + */ + fun folderName(): Optional = folderName.getOptional("folder_name") + /** * A dictionary containing secret values * @@ -84,6 +103,13 @@ private constructor( */ @JsonProperty("class_name") @ExcludeMissing fun _className(): JsonField = className + /** + * Returns the raw JSON value of [folderName]. + * + * Unlike [folderName], this method doesn't throw if the JSON field has an unexpected type. + */ + @JsonProperty("folder_name") @ExcludeMissing fun _folderName(): JsonField = folderName + /** * Returns the raw JSON value of [serviceAccountKey]. * @@ -134,6 +160,7 @@ private constructor( private var folderId: JsonField? = null private var className: JsonField = JsonMissing.of() + private var folderName: JsonField = JsonMissing.of() private var serviceAccountKey: JsonField = JsonMissing.of() private var supportsAccessControl: JsonField = JsonMissing.of() private var additionalProperties: MutableMap = mutableMapOf() @@ -142,6 +169,7 @@ private constructor( internal fun from(cloudGoogleDriveDataSource: CloudGoogleDriveDataSource) = apply { folderId = cloudGoogleDriveDataSource.folderId className = cloudGoogleDriveDataSource.className + folderName = cloudGoogleDriveDataSource.folderName serviceAccountKey = cloudGoogleDriveDataSource.serviceAccountKey supportsAccessControl = cloudGoogleDriveDataSource.supportsAccessControl additionalProperties = cloudGoogleDriveDataSource.additionalProperties.toMutableMap() @@ -169,6 +197,21 @@ private constructor( */ fun className(className: JsonField) = apply { this.className = className } + /** Human-readable name of the selected folder, for display. */ + fun folderName(folderName: String?) = folderName(JsonField.ofNullable(folderName)) + + /** Alias for calling [Builder.folderName] with `folderName.orElse(null)`. */ + fun folderName(folderName: Optional) = folderName(folderName.getOrNull()) + + /** + * Sets [Builder.folderName] to an arbitrary JSON value. + * + * You should usually call [Builder.folderName] with a well-typed [String] value instead. + * This method is primarily for setting the field to an undocumented or not yet supported + * value. + */ + fun folderName(folderName: JsonField) = apply { this.folderName = folderName } + /** A dictionary containing secret values */ fun serviceAccountKey(serviceAccountKey: ServiceAccountKey?) = serviceAccountKey(JsonField.ofNullable(serviceAccountKey)) @@ -237,6 +280,7 @@ private constructor( CloudGoogleDriveDataSource( checkRequired("folderId", folderId), className, + folderName, serviceAccountKey, supportsAccessControl, additionalProperties.toMutableMap(), @@ -260,6 +304,7 @@ private constructor( folderId() className() + folderName() serviceAccountKey().ifPresent { it.validate() } supportsAccessControl() validated = true @@ -282,6 +327,7 @@ private constructor( internal fun validity(): Int = (if (folderId.asKnown().isPresent) 1 else 0) + (if (className.asKnown().isPresent) 1 else 0) + + (if (folderName.asKnown().isPresent) 1 else 0) + (serviceAccountKey.asKnown().getOrNull()?.validity() ?: 0) + (if (supportsAccessControl.asKnown().isPresent) 1 else 0) @@ -402,6 +448,7 @@ private constructor( return other is CloudGoogleDriveDataSource && folderId == other.folderId && className == other.className && + folderName == other.folderName && serviceAccountKey == other.serviceAccountKey && supportsAccessControl == other.supportsAccessControl && additionalProperties == other.additionalProperties @@ -411,6 +458,7 @@ private constructor( Objects.hash( folderId, className, + folderName, serviceAccountKey, supportsAccessControl, additionalProperties, @@ -420,5 +468,5 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "CloudGoogleDriveDataSource{folderId=$folderId, className=$className, serviceAccountKey=$serviceAccountKey, supportsAccessControl=$supportsAccessControl, additionalProperties=$additionalProperties}" + "CloudGoogleDriveDataSource{folderId=$folderId, className=$className, folderName=$folderName, serviceAccountKey=$serviceAccountKey, supportsAccessControl=$supportsAccessControl, additionalProperties=$additionalProperties}" } diff --git a/llama-cloud-core/src/test/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSourceTest.kt b/llama-cloud-core/src/test/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSourceTest.kt index 435a1e5..24d1685 100644 --- a/llama-cloud-core/src/test/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSourceTest.kt +++ b/llama-cloud-core/src/test/kotlin/com/llamacloud_prod/api/models/CloudGoogleDriveDataSourceTest.kt @@ -16,6 +16,7 @@ internal class CloudGoogleDriveDataSourceTest { CloudGoogleDriveDataSource.builder() .folderId("folder_id") .className("class_name") + .folderName("folder_name") .serviceAccountKey( CloudGoogleDriveDataSource.ServiceAccountKey.builder() .putAdditionalProperty("foo", JsonValue.from("string")) @@ -26,6 +27,7 @@ internal class CloudGoogleDriveDataSourceTest { assertThat(cloudGoogleDriveDataSource.folderId()).isEqualTo("folder_id") assertThat(cloudGoogleDriveDataSource.className()).contains("class_name") + assertThat(cloudGoogleDriveDataSource.folderName()).contains("folder_name") assertThat(cloudGoogleDriveDataSource.serviceAccountKey()) .contains( CloudGoogleDriveDataSource.ServiceAccountKey.builder() @@ -42,6 +44,7 @@ internal class CloudGoogleDriveDataSourceTest { CloudGoogleDriveDataSource.builder() .folderId("folder_id") .className("class_name") + .folderName("folder_name") .serviceAccountKey( CloudGoogleDriveDataSource.ServiceAccountKey.builder() .putAdditionalProperty("foo", JsonValue.from("string")) From 68fbd72c6e99cfc9a4a615ce92aab33fd948fff1 Mon Sep 17 00:00:00 2001 From: stlc-bot Date: Wed, 8 Jul 2026 12:55:19 +0000 Subject: [PATCH 4/4] =?UTF-8?q?feat(agentic-plus):=20dated=20version=20202?= =?UTF-8?q?6-07-08=20=E2=80=94=20graduate=20decomposed-gemini=20(flash-lit?= =?UTF-8?q?e),=20fallback=20to=202026-06-18=20(#21738)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stainless-Generated-From: 7c38010b616e44773ad426a7e84704f4c6005574 --- .../configurations/ParseV2Parameters.kt | 24 ++++++++++++---- .../api/models/parsing/ParsingCreateParams.kt | 28 +++++++++++++------ 2 files changed, 38 insertions(+), 14 deletions(-) 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 6504f69..dc07875 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 @@ -144,7 +144,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -482,7 +482,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1013,7 +1013,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1033,6 +1033,8 @@ private constructor( @JvmField val LATEST = of("latest") + @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_06_26 = of("2026-06-26") @JvmField val _2026_06_18 = of("2026-06-18") @@ -1045,6 +1047,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -1061,6 +1064,7 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -1078,6 +1082,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST + _2026_07_08 -> Value._2026_07_08 _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 _2026_06_15 -> Value._2026_06_15 @@ -1096,6 +1101,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST + _2026_07_08 -> Known._2026_07_08 _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 _2026_06_15 -> Known._2026_06_15 @@ -9449,7 +9455,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -9953,7 +9959,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11567,7 +11573,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11590,6 +11596,8 @@ private constructor( @JvmField val LATEST = of("latest") + @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_06_26 = of("2026-06-26") @JvmField val _2026_06_18 = of("2026-06-18") @@ -11602,6 +11610,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -11618,6 +11627,7 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -11638,6 +11648,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST + _2026_07_08 -> Value._2026_07_08 _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 _2026_06_15 -> Value._2026_06_15 @@ -11656,6 +11667,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST + _2026_07_08 -> Known._2026_07_08 _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 _2026_06_15 -> Known._2026_06_15 diff --git a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt index c3134b1..648e502 100644 --- a/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt +++ b/llama-cloud-core/src/main/kotlin/com/llamacloud_prod/api/models/parsing/ParsingCreateParams.kt @@ -78,7 +78,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -466,7 +466,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1083,7 +1083,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -1517,7 +1517,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2218,7 +2218,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2238,6 +2238,8 @@ private constructor( @JvmField val LATEST = of("latest") + @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_06_26 = of("2026-06-26") @JvmField val _2026_06_18 = of("2026-06-18") @@ -2250,6 +2252,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -2266,6 +2269,7 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -2283,6 +2287,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST + _2026_07_08 -> Value._2026_07_08 _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 _2026_06_15 -> Value._2026_06_15 @@ -2301,6 +2306,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST + _2026_07_08 -> Known._2026_07_08 _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 _2026_06_15 -> Known._2026_06_15 @@ -10654,7 +10660,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -11158,7 +11164,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -12772,7 +12778,7 @@ private constructor( * - `fast`: `2026-06-15` * - `cost_effective`: `2026-06-26` * - `agentic`: `2026-06-18` - * - `agentic_plus`: `2026-06-18` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -12795,6 +12801,8 @@ private constructor( @JvmField val LATEST = of("latest") + @JvmField val _2026_07_08 = of("2026-07-08") + @JvmField val _2026_06_26 = of("2026-06-26") @JvmField val _2026_06_18 = of("2026-06-18") @@ -12807,6 +12815,7 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -12823,6 +12832,7 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, _2026_06_15, @@ -12843,6 +12853,7 @@ private constructor( fun value(): Value = when (this) { LATEST -> Value.LATEST + _2026_07_08 -> Value._2026_07_08 _2026_06_26 -> Value._2026_06_26 _2026_06_18 -> Value._2026_06_18 _2026_06_15 -> Value._2026_06_15 @@ -12861,6 +12872,7 @@ private constructor( fun known(): Known = when (this) { LATEST -> Known.LATEST + _2026_07_08 -> Known._2026_07_08 _2026_06_26 -> Known._2026_06_26 _2026_06_18 -> Known._2026_06_18 _2026_06_15 -> Known._2026_06_15