diff --git a/src/resource_clients/key_value_store.ts b/src/resource_clients/key_value_store.ts index d8f2faad..b5845b82 100644 --- a/src/resource_clients/key_value_store.ts +++ b/src/resource_clients/key_value_store.ts @@ -55,6 +55,8 @@ export class KeyValueStoreClient extends ResourceClient { ow.object.exactShape({ limit: ow.optional.number, exclusiveStartKey: ow.optional.string, + collection: ow.optional.string, + prefix: ow.optional.string, }), ); @@ -253,6 +255,8 @@ export interface KeyValueClientUpdateOptions { export interface KeyValueClientListKeysOptions { limit?: number; exclusiveStartKey?: string; + collection?: string; + prefix?: string; } export interface KeyValueClientListKeysResult { diff --git a/test/key_value_stores.test.js b/test/key_value_stores.test.js index d7e6ab7b..23ef5a07 100644 --- a/test/key_value_stores.test.js +++ b/test/key_value_stores.test.js @@ -129,6 +129,8 @@ describe('Key-Value Store methods', () => { const query = { limit: 10, exclusiveStartKey: 'fromKey', + collection: 'my-collection', + prefix: 'my-prefix', }; const res = await client.keyValueStore(storeId).listKeys(query);