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

Function createUserKey

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

Source from the content-addressed store, hash-verified

32}
33
34export function createUserKey({
35 keyWithSearchPermissions,
36 accountId,
37 userId,
38}: {
39 keyWithSearchPermissions: string;
40 accountId: string;
41 userId: string;
42}) {
43 return createKey({
44 keyWithSearchPermissions,
45 filter_by: `accountId:=${accountId} && (is_public:=true || accessible_to:=${userId})`,
46 });
47}
48
49export function createAccountKey({
50 keyWithSearchPermissions,

Callers 1

createUserKeyAndPersistFunction · 0.90

Calls 1

createKeyFunction · 0.85

Tested by

no test coverage detected