I'm updating my app from a previous version to 1.2.103 and I notice you now support pagination in the SDK (nice!). I'm trying to replace a bunch of custom pagination code with this:
const response = await this.client.apiKeys.list({
includeDisabled,
workspaceId: this.workspaceId,
});
for await (const page of response /* <-- this fails */) {
allKeys.push(...page);
}
I'm getting this TS error:
Type 'ListResponse' must have a 'Symbol.asyncIterator' method that returns an async iterator.
If I try what I see in the docs, and do the same thing with byok.list() it works, since the latter is returning a response wrapped in PageIterator. Can we get pagination on apiKeys too?
I'm updating my app from a previous version to
1.2.103and I notice you now support pagination in the SDK (nice!). I'm trying to replace a bunch of custom pagination code with this:I'm getting this TS error:
If I try what I see in the docs, and do the same thing with
byok.list()it works, since the latter is returning a response wrapped inPageIterator. Can we get pagination onapiKeystoo?