API Reference > imodeljs-common > Codes > CodeScopeSpec > CodeScopeSpec.Type CodeScopeSpec.Type Enumeration The standard ways the CodeScope can be specified. Members Name Value Description Repository 1 The Code value must be unique within (at least) the iModel repository Model 2 The Code value must be unique within the scope of the Model ParentElement 3 The Code value must be unique among other children of the same parent element RelatedElement 4 The Code value must be unique among other elements also scoped by the same element Defined in core/common/src/Code.ts Line 203 Last Updated: 11 June, 2024