algolia / algolia/algoliasearch-client-javascript

[bug]: Property 'generateSecuredApiKey' does not exist on type 'Algoliasearch'

Open
#1,583 14 comments 9 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.4k
Forks
226
PR merge metrics
No merged PRs in 30d

Description

### Description

type definitions are missing for generateSecuredApiKey. This issue was also metioned in #1548

```
import { algoliasearch } from 'algoliasearch'
const client = algoliasearch('applicationId', 'adminApiKey')
const securedKey = client.generateSecuredApiKey({
parentApiKey: 'publicApiKey',
restrictions: {
filters: 'visible_by:public'
}
})
```

```
Property 'generateSecuredApiKey' does not exist on type 'Algoliasearch'.ts(2339)
```

### Client

Search

### Version

5.21.0

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.