diff --git a/packages/client-search/src/types/GetApiKeyResponse.ts b/packages/client-search/src/types/GetApiKeyResponse.ts index c9196619e..9a894dfcb 100644 --- a/packages/client-search/src/types/GetApiKeyResponse.ts +++ b/packages/client-search/src/types/GetApiKeyResponse.ts @@ -2,14 +2,14 @@ import { ApiKeyACLType } from '.'; export type GetApiKeyResponse = { /** - * A Unix timestamp used to define the expiration date of the API key. + * The api key value */ value: string; /** - * Date of creation. + * Date of creation (Unix timestamp). */ - createdAt: string; + createdAt: number; /** * List of permissions the key contains. diff --git a/packages/client-search/src/types/UpdateApiKeyOptions.ts b/packages/client-search/src/types/UpdateApiKeyOptions.ts index 2bfe7768d..c5c3929f4 100644 --- a/packages/client-search/src/types/UpdateApiKeyOptions.ts +++ b/packages/client-search/src/types/UpdateApiKeyOptions.ts @@ -1,4 +1,11 @@ +import { ApiKeyACLType } from '.'; + export type UpdateApiKeyOptions = { + /** + * List of permissions the key contains. + */ + readonly acl?: readonly ApiKeyACLType[]; + /** * A Unix timestamp used to define the expiration date of the API key. */