From a1a2ab98fcfaa77fb4bdeea7b512659b56a3ce7c Mon Sep 17 00:00:00 2001 From: Johannes Freden Jansson Date: Thu, 11 Jan 2024 14:03:25 +0100 Subject: [PATCH 1/2] Update spec for update_api_key to include expiration --- 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..25731b0e55 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 } } From 511f9e6dddf92dfbe1c37e9f414eb6cc797044fb Mon Sep 17 00:00:00 2001 From: Johannes Freden Jansson Date: Thu, 11 Jan 2024 14:16:36 +0100 Subject: [PATCH 2/2] fixup! Formatting --- specification/security/update_api_key/Request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/security/update_api_key/Request.ts b/specification/security/update_api_key/Request.ts index 25731b0e55..c6ce07fde2 100644 --- a/specification/security/update_api_key/Request.ts +++ b/specification/security/update_api_key/Request.ts @@ -21,7 +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"; +import { Duration } from '@_types/Time' /** * Updates attributes of an existing API key.