MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / createReadOnly

Function createReadOnly

packages/typesense/src/utils/keys.ts:62–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62export async function createReadOnly() {
63 return await client.keys().create({
64 description: `read-only`,
65 actions: [
66 'collections:get',
67 'collections:list',
68 'documents:search',
69 'documents:get',
70 'aliases:list',
71 'aliases:get',
72 'synonyms:list',
73 'synonyms:get',
74 'overrides:list',
75 'overrides:get',
76 'metrics.json:list',
77 ],
78 collections: ['*'],
79 });
80}
81
82export async function createSearchOnlyKey(collectionName: string) {
83 const key = await client.keys().create({

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected