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/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") } 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..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 @@ -141,10 +141,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -479,10 +479,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1010,10 +1010,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1033,11 +1033,13 @@ 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") - @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)) } @@ -1045,9 +1047,10 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -1061,9 +1064,10 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _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, } @@ -1078,9 +1082,10 @@ 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 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -1096,9 +1101,10 @@ 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 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -9446,10 +9452,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -9950,10 +9956,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11564,10 +11570,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -11590,11 +11596,13 @@ 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") - @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)) } @@ -11602,9 +11610,10 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -11618,9 +11627,10 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown * value. @@ -11638,9 +11648,10 @@ 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 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -11656,9 +11667,10 @@ 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 - _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..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 @@ -75,10 +75,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -463,10 +463,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -1080,10 +1080,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -1514,10 +1514,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2215,10 +2215,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -2238,11 +2238,13 @@ 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") - @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)) } @@ -2250,9 +2252,10 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -2266,9 +2269,10 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _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, } @@ -2283,9 +2287,10 @@ 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 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -2301,9 +2306,10 @@ 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 - _2025_12_11 -> Known._2025_12_11 + _2026_06_15 -> Known._2026_06_15 else -> throw LlamaCloudInvalidDataException("Unknown Version: $value") } @@ -10651,10 +10657,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. * @@ -11155,10 +11161,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -12769,10 +12775,10 @@ 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` + * - `agentic_plus`: `2026-07-08` * * Full list: `GET /api/v2/parse/versions`. */ @@ -12795,11 +12801,13 @@ 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") - @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)) } @@ -12807,9 +12815,10 @@ private constructor( /** An enum containing [Version]'s known values. */ enum class Known { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, } /** @@ -12823,9 +12832,10 @@ private constructor( */ enum class Value { LATEST, + _2026_07_08, _2026_06_26, _2026_06_18, - _2025_12_11, + _2026_06_15, /** * An enum member indicating that [Version] was instantiated with an unknown * value. @@ -12843,9 +12853,10 @@ 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 - _2025_12_11 -> Value._2025_12_11 + _2026_06_15 -> Value._2026_06_15 else -> Value._UNKNOWN } @@ -12861,9 +12872,10 @@ 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 - _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/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"))