Skip to content

Commit fec87a9

Browse files
authored
fix(api-keys): fix typing issues (#1270)
* fix(api-keys): fix GetApiKeyResponse createdAt attribute typing * fix(api-keys): missing attribute in UpdateApiKeyOptions
1 parent 3bb8e2d commit fec87a9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: packages/client-search/src/types/GetApiKeyResponse.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { ApiKeyACLType } from '.';
22

33
export type GetApiKeyResponse = {
44
/**
5-
* A Unix timestamp used to define the expiration date of the API key.
5+
* The api key value
66
*/
77
value: string;
88

99
/**
10-
* Date of creation.
10+
* Date of creation (Unix timestamp).
1111
*/
12-
createdAt: string;
12+
createdAt: number;
1313

1414
/**
1515
* List of permissions the key contains.

Diff for: packages/client-search/src/types/UpdateApiKeyOptions.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
import { ApiKeyACLType } from '.';
2+
13
export type UpdateApiKeyOptions = {
4+
/**
5+
* List of permissions the key contains.
6+
*/
7+
readonly acl?: readonly ApiKeyACLType[];
8+
29
/**
310
* A Unix timestamp used to define the expiration date of the API key.
411
*/

0 commit comments

Comments
 (0)