{"ast":null,"code":"import { v4 as uuidv4 } from 'uuid';\nimport { EntityId } from './entity-id';\n/**\n * Strongly-typed identifier for Relay entities.\n * Prevents accidental mixing with other ID types.\n */\nexport class RelayId extends EntityId {\n  _brand = 'RelayId';\n  constructor(value) {\n    super(value);\n  }\n  /**\n   * Generate a new unique RelayId.\n   */\n  static generate() {\n    return new RelayId(uuidv4());\n  }\n  /**\n   * Create a RelayId from an existing string value.\n   * Use this when reconstituting from storage.\n   */\n  static from(value) {\n    return new RelayId(value);\n  }\n  /**\n   * Type guard to check if two IDs are equal.\n   */\n  equals(other) {\n    return other instanceof RelayId && this._value === other._value;\n  }\n}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}