Skip to content

Commit da8cc64

Browse files
authored
Added support for TeamGetKeys API (#208)
1 parent 6e5009e commit da8cc64

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

keeperapi/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

keeperapi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@keeper-security/keeperapi",
33
"description": "Keeper API Javascript SDK",
4-
"version": "18.0.5",
4+
"version": "18.0.6",
55
"browser": "dist/browser/index.js",
66
"main": "dist/index.cjs.js",
77
"types": "dist/node/index.d.ts",

keeperapi/src/commands.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,24 @@ export const teamEnterpriseUserRemoveCommand = (
379379
request: TeamUserCommandRequest
380380
): RestCommand<TeamUserCommandRequest, KeeperResponse> => createCommand(request, 'team_enterprise_user_remove')
381381

382+
export type TeamGetKeysRequest = {
383+
teams: string[]
384+
}
385+
386+
export type TeamGetKeyEntry = {
387+
team_uid: string
388+
key?: string
389+
type?: number
390+
result_code?: string
391+
}
392+
393+
export type TeamGetKeysResponse = KeeperResponse & {
394+
keys?: TeamGetKeyEntry[]
395+
}
396+
397+
export const teamGetKeysCommand = (request: TeamGetKeysRequest): RestCommand<TeamGetKeysRequest, TeamGetKeysResponse> =>
398+
createCommand(request, 'team_get_keys')
399+
382400
export type GetRecordHistoryRequest = {
383401
record_uid: string
384402
client_time: number

0 commit comments

Comments
 (0)