MCPcopy Create free account
hub / github.com/hashintel/hash / getWebMachineId

Function getWebMachineId

libs/@local/hash-backend-utils/src/machine-actors.ts:57–64  ·  view source on GitHub ↗
(
  context: { graphApi: GraphApi },
  authentication: { actorId: ActorEntityUuid },
  { webId }: { webId: WebId },
)

Source from the content-addressed store, hash-verified

55 );
56
57export const getWebMachineId = async (
58 context: { graphApi: GraphApi },
59 authentication: { actorId: ActorEntityUuid },
60 { webId }: { webId: WebId },
61): Promise<MachineId | null> =>
62 getMachineIdByIdentifier(context, authentication, {
63 identifier: `system-${webId}`,
64 });
65
66export const getMachineEntityByIdentifier = async (
67 context: { graphApi: GraphApi },

Callers 12

createOrgFunction · 0.90
migrateFunction · 0.90
migrateFunction · 0.90
upgradeWebEntitiesFunction · 0.90
writeGoogleSheetActionFunction · 0.90
persistEntityFunction · 0.90
createFileEntityFromUrlFunction · 0.90
getWebServiceUsageFunction · 0.85

Calls 1

getMachineIdByIdentifierFunction · 0.85

Tested by

no test coverage detected