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

Function webScopedKey

apps/hash-api/src/analysis/shared/storage-key.ts:20–24  ·  view source on GitHub ↗
(
  webId: WebId,
  namespace: string,
  ...parts: string[]
)

Source from the content-addressed store, hash-verified

18 * through this helper so that invariant holds.
19 */
20export const webScopedKey = (
21 webId: WebId,
22 namespace: string,
23 ...parts: string[]
24): string => [ANALYSIS_STORAGE_PREFIX, webId, namespace, ...parts].join("/");
25
26export const isWebScopedKeyForWeb = (key: string, webId: WebId): boolean => {
27 const [prefix, scopedWebId, ...artifactParts] = key.split("/");

Callers 6

uploadJsonFunction · 0.90
uploadSupplyChainDatasetFunction · 0.90
seedSupplyChainDemoFunction · 0.90
datasetPointerKeyFunction · 0.90
datasetBaseKeyFunction · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected