({
keyWithSearchPermissions,
accountId,
}: {
keyWithSearchPermissions: string;
accountId: string;
})
| 47 | } |
| 48 | |
| 49 | export function createAccountKey({ |
| 50 | keyWithSearchPermissions, |
| 51 | accountId, |
| 52 | }: { |
| 53 | keyWithSearchPermissions: string; |
| 54 | accountId: string; |
| 55 | }) { |
| 56 | return createKey({ |
| 57 | keyWithSearchPermissions, |
| 58 | filter_by: `accountId:=${accountId} && is_public:=true`, |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | export async function createReadOnly() { |
| 63 | return await client.keys().create({ |
no test coverage detected