MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / createAccountKey

Function createAccountKey

packages/typesense/src/utils/keys.ts:49–60  ·  view source on GitHub ↗
({
  keyWithSearchPermissions,
  accountId,
}: {
  keyWithSearchPermissions: string;
  accountId: string;
})

Source from the content-addressed store, hash-verified

47}
48
49export 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
62export async function createReadOnly() {
63 return await client.keys().create({

Callers 2

setupFunction · 0.90

Calls 1

createKeyFunction · 0.85

Tested by

no test coverage detected