MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / attrPath

Function attrPath

packages/sdk/src/engine/patches.ts:56–60  ·  view source on GitHub ↗
(id: string, name: string)

Source from the content-addressed store, hash-verified

54}
55
56export function attrPath(id: string, name: string): string {
57 // RFC 6902 JSON Pointer: ~ → ~0, / → ~1
58 const escapedName = name.replace(/~/g, "~0").replace(/\//g, "~1");
59 return `/elements/${escapeIdForPath(id)}/attributes/${escapedName}`;
60}
61
62export function timingPath(id: string, field: "start" | "end" | "duration" | "trackIndex"): string {
63 return `/elements/${escapeIdForPath(id)}/timing/${field}`;

Callers 1

handleSetAttributeFunction · 0.85

Calls 1

escapeIdForPathFunction · 0.85

Tested by

no test coverage detected