File tree Expand file tree Collapse file tree
llama-cloud-admin-core/src/main/kotlin/ai/llamaindex/llamacloudadmin Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
3231class ApiKeyCreateParams
3332private constructor (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments