Skip to content

Commit c2a852b

Browse files
committed
feat(sdk/js): make getKey path argument optional
align with Rust SDK (Option<String>) and Python SDK (str | None) where path defaults to empty string when not provided.
1 parent 4520abf commit c2a852b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/js/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class DstackClient<T extends TcbInfo = TcbInfoV05x> {
213213
}
214214
}
215215

216-
async getKey(path: string, purpose: string = '', algorithm: string = 'secp256k1'): Promise<GetKeyResponse> {
216+
async getKey(path: string = '', purpose: string = '', algorithm: string = 'secp256k1'): Promise<GetKeyResponse> {
217217
await this.ensureAlgorithmSupported(algorithm)
218218
const payload = JSON.stringify({
219219
path: path,

0 commit comments

Comments
 (0)