From 9acb512d5cfa1cbc5c3848fa44379ab6d18ca6d4 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:03:10 +0200 Subject: [PATCH] feat(#385): updated createSubAPIKey params to match docs --- package-lock.json | 4 ++-- package.json | 2 +- src/types/request/v5-user.ts | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1d69a4f4..99fb7700 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "3.10.21", + "version": "3.10.22", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "3.10.21", + "version": "3.10.22", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index 93170a36..237d47e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.21", + "version": "3.10.22", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/types/request/v5-user.ts b/src/types/request/v5-user.ts index 42a0c7ef..33dd7ec3 100644 --- a/src/types/request/v5-user.ts +++ b/src/types/request/v5-user.ts @@ -1,6 +1,5 @@ import { PermissionsV5 } from '../v5-shared'; - export interface CreateSubMemberParamsV5 { username: string; password?: string; @@ -20,7 +19,7 @@ export interface CreateSubApiKeyParamsV5 { subuid: number; note?: string; readOnly: 0 | 1; - ips?: string[]; + ips?: string; permissions: PermissionsV5; } @@ -45,4 +44,4 @@ export interface GetSubAccountAllApiKeysParamsV5 { subMemberId: string; limit?: number; cursor?: string; -} \ No newline at end of file +}