From 2136412d760200c2dd89ca2ba84bf5264060fa8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Saint-F=C3=A9lix?= Date: Fri, 12 Jan 2024 16:31:26 +0100 Subject: [PATCH] Update spec for `update_api_key` to include `expiration` (#2381) (#2383) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update spec for update_api_key to include expiration * fixup! Formatting --------- Co-authored-by: Johannes Fredén <109296772+jfreden@users.noreply.github.com> --- specification/security/update_api_key/Request.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/security/update_api_key/Request.ts b/specification/security/update_api_key/Request.ts index 6b76534152..c6ce07fde2 100644 --- a/specification/security/update_api_key/Request.ts +++ b/specification/security/update_api_key/Request.ts @@ -21,6 +21,7 @@ import { RequestBase } from '@_types/Base' import { Id, Metadata } from '@_types/common' import { Dictionary } from '@spec_utils/Dictionary' import { RoleDescriptor } from '@security/_types/RoleDescriptor' +import { Duration } from '@_types/Time' /** * Updates attributes of an existing API key. @@ -58,5 +59,7 @@ export interface Request extends RequestBase { * Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. */ metadata?: Metadata + /** Expiration time for the API key. */ + expiration?: Duration } }