Skip to content

Commit 4805a0d

Browse files
author
stlc-bot
committed
Build SDK
Stainless-Generated-From: 567750d
1 parent f3b7bb4 commit 4805a0d

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎llama-cloud-admin-core/src/main/kotlin/ai/llamaindex/llamacloudadmin/models/apikeys/ApiKeyCreateParams.kt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ import kotlin.jvm.optionals.getOrNull
2525
* Create an API key.
2626
*
2727
* Scope it to a project with `project_id`, which requires read access to that project; omit it for
28-
* a key that reaches every project you can read. A project-scoped key cannot escape its own
29-
* project: it confines an omitted `project_id` to that project and refuses any other. The response
30-
* carries the secret in `redacted_api_key`, and only this once.
28+
* a key that reaches every project you can read. A project-scoped or agent key cannot create an API
29+
* key. The response carries the secret in `redacted_api_key`, and only this once.
3130
*/
3231
class ApiKeyCreateParams
3332
private constructor(

‎llama-cloud-admin-core/src/main/kotlin/ai/llamaindex/llamacloudadmin/services/async/ApiKeyServiceAsync.kt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ interface ApiKeyServiceAsync {
3232
* Create an API key.
3333
*
3434
* Scope it to a project with `project_id`, which requires read access to that project; omit it
35-
* for a key that reaches every project you can read. A project-scoped key cannot escape its own
36-
* project: it confines an omitted `project_id` to that project and refuses any other. The
37-
* response carries the secret in `redacted_api_key`, and only this once.
35+
* for a key that reaches every project you can read. A project-scoped or agent key cannot
36+
* create an API key. The response carries the secret in `redacted_api_key`, and only this once.
3837
*/
3938
fun create(): CompletableFuture<ApiKey> = create(ApiKeyCreateParams.none())
4039

‎llama-cloud-admin-core/src/main/kotlin/ai/llamaindex/llamacloudadmin/services/blocking/ApiKeyService.kt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ interface ApiKeyService {
3232
* Create an API key.
3333
*
3434
* Scope it to a project with `project_id`, which requires read access to that project; omit it
35-
* for a key that reaches every project you can read. A project-scoped key cannot escape its own
36-
* project: it confines an omitted `project_id` to that project and refuses any other. The
37-
* response carries the secret in `redacted_api_key`, and only this once.
35+
* for a key that reaches every project you can read. A project-scoped or agent key cannot
36+
* create an API key. The response carries the secret in `redacted_api_key`, and only this once.
3837
*/
3938
fun create(): ApiKey = create(ApiKeyCreateParams.none())
4039

0 commit comments

Comments
 (0)