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 103 Last Updated: 13 June, 2024