dreg1.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <?xml version="1.0"?>
  2. <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:dreg="urn:ietf:params:xml:ns:dreg1" xmlns:iris="urn:ietf:params:xml:ns:iris1" targetNamespace="urn:ietf:params:xml:ns:dreg1" elementFormDefault="qualified">
  3. <import namespace="urn:ietf:params:xml:ns:iris1"/>
  4. <annotation>
  5. <documentation>
  6. Domain registry schema
  7. derived from IRIS schema
  8. </documentation>
  9. </annotation>
  10. <!-- ========================================= -->
  11. <!-- -->
  12. <!-- Query Types -->
  13. <!-- -->
  14. <!-- ========================================= -->
  15. <!-- -->
  16. <!-- Find Registrars By Name -->
  17. <!-- -->
  18. <complexType name="findRegistrarsByNameType">
  19. <complexContent>
  20. <extension base="iris:queryType">
  21. <sequence>
  22. <element ref="dreg:baseDomain" minOccurs="0" maxOccurs="1"/>
  23. <element name="namePart" type="dreg:exactOrPartialMatchParameter" minOccurs="0" maxOccurs="1"/>
  24. </sequence>
  25. </extension>
  26. </complexContent>
  27. </complexType>
  28. <element name="findRegistrarsByName" type="dreg:findRegistrarsByNameType" substitutionGroup="iris:query"/>
  29. <!-- -->
  30. <!-- Find Domains By Contact -->
  31. <!-- -->
  32. <complexType name="findDomainsByContactType">
  33. <complexContent>
  34. <extension base="iris:queryType">
  35. <sequence>
  36. <element ref="dreg:baseDomain" minOccurs="0" maxOccurs="1"/>
  37. <choice>
  38. <group ref="dreg:contactSearchGroup"/>
  39. <element name="contactHandle" type="dreg:exactMatchParameter"/>
  40. </choice>
  41. <element name="role" minOccurs="0" maxOccurs="1">
  42. <simpleType>
  43. <restriction base="string">
  44. <enumeration value="registrant"/>
  45. <enumeration value="billingContact"/>
  46. <enumeration value="technicalContact"/>
  47. <enumeration value="administrativeContact"/>
  48. <enumeration value="legalContact"/>
  49. <enumeration value="zoneContact"/>
  50. <enumeration value="abuseContact"/>
  51. <enumeration value="securityContact"/>
  52. <enumeration value="otherContact"/>
  53. </restriction>
  54. </simpleType>
  55. </element>
  56. <element name="language" type="language" minOccurs="0" maxOccurs="unbounded"/>
  57. </sequence>
  58. </extension>
  59. </complexContent>
  60. </complexType>
  61. <element name="findDomainsByContact" type="dreg:findDomainsByContactType" substitutionGroup="iris:query"/>
  62. <!-- -->
  63. <!-- Find Domains By Name -->
  64. <!-- -->
  65. <complexType name="findDomainsByNameType">
  66. <complexContent>
  67. <extension base="iris:queryType">
  68. <sequence>
  69. <element name="namePart" type="dreg:partialMatchParameter"/>
  70. </sequence>
  71. </extension>
  72. </complexContent>
  73. </complexType>
  74. <element name="findDomainsByName" type="dreg:findDomainsByNameType" substitutionGroup="iris:query"/>
  75. <!-- -->
  76. <!-- Find Domains By Internationalized Name -->
  77. <!-- -->
  78. <complexType name="findDomainsByIDNType">
  79. <complexContent>
  80. <extension base="iris:queryType">
  81. <sequence>
  82. <element name="namePart" type="dreg:exactMatchParameter"/>
  83. <element name="language" type="language" minOccurs="0" maxOccurs="unbounded"/>
  84. </sequence>
  85. </extension>
  86. </complexContent>
  87. </complexType>
  88. <element name="findDomainsByIDN" type="dreg:findDomainsByIDNType" substitutionGroup="iris:query"/>
  89. <!-- -->
  90. <!-- Find Contacts -->
  91. <!-- -->
  92. <complexType name="findContactsType">
  93. <complexContent>
  94. <extension base="iris:queryType">
  95. <sequence>
  96. <group ref="dreg:contactSearchGroup"/>
  97. <element name="language" type="language" minOccurs="0" maxOccurs="unbounded"/>
  98. </sequence>
  99. </extension>
  100. </complexContent>
  101. </complexType>
  102. <element name="findContacts" type="dreg:findContactsType" substitutionGroup="iris:query"/>
  103. <!-- -->
  104. <!-- Find Domains By Host -->
  105. <!-- -->
  106. <complexType name="findDomainsByHostType">
  107. <complexContent>
  108. <extension base="iris:queryType">
  109. <sequence>
  110. <element ref="dreg:baseDomain" minOccurs="0" maxOccurs="1"/>
  111. <choice>
  112. <element name="hostName" type="dreg:exactMatchParameter"/>
  113. <element name="hostHandle" type="dreg:exactMatchParameter"/>
  114. <element name="ipV4Address" type="dreg:exactMatchParameter"/>
  115. <element name="ipV6Address" type="dreg:exactMatchParameter"/>
  116. </choice>
  117. </sequence>
  118. </extension>
  119. </complexContent>
  120. </complexType>
  121. <element name="findDomainsByHost" type="dreg:findDomainsByHostType" substitutionGroup="iris:query"/>
  122. <!-- -->
  123. <!-- Contact Search Group -->
  124. <!-- -->
  125. <group name="contactSearchGroup">
  126. <choice>
  127. <element name="commonName" type="dreg:exactOrPartialMatchParameter"/>
  128. <element name="organization" type="dreg:exactOrPartialMatchParameter"/>
  129. <element name="eMail" type="dreg:domainResourceParameter"/>
  130. <element name="city" type="dreg:exactMatchParameter"/>
  131. <element name="region" type="dreg:exactMatchParameter"/>
  132. <element name="postalCode" type="dreg:exactMatchParameter"/>
  133. </choice>
  134. </group>
  135. <complexType name="exactOrPartialMatchParameter">
  136. <choice>
  137. <group ref="dreg:partialMatchGroup"/>
  138. <group ref="dreg:exactMatchGroup"/>
  139. </choice>
  140. </complexType>
  141. <complexType name="exactMatchParameter">
  142. <group ref="dreg:exactMatchGroup"/>
  143. </complexType>
  144. <complexType name="partialMatchParameter">
  145. <sequence>
  146. <group ref="dreg:partialMatchGroup"/>
  147. </sequence>
  148. </complexType>
  149. <complexType name="domainResourceParameter">
  150. <choice>
  151. <group ref="dreg:exactMatchGroup"/>
  152. <element name="inDomain" type="token"/>
  153. </choice>
  154. </complexType>
  155. <element name="baseDomain" type="normalizedString"/>
  156. <group name="partialMatchGroup">
  157. <choice>
  158. <sequence>
  159. <element name="beginsWith">
  160. <simpleType>
  161. <restriction base="token">
  162. <minLength value="1"/>
  163. </restriction>
  164. </simpleType>
  165. </element>
  166. <element minOccurs="0" name="endsWith">
  167. <simpleType>
  168. <restriction base="token">
  169. <minLength value="1"/>
  170. </restriction>
  171. </simpleType>
  172. </element>
  173. </sequence>
  174. <element name="endsWith">
  175. <simpleType>
  176. <restriction base="token">
  177. <minLength value="1"/>
  178. </restriction>
  179. </simpleType>
  180. </element>
  181. </choice>
  182. </group>
  183. <group name="exactMatchGroup">
  184. <sequence>
  185. <element name="exactMatch" type="normalizedString"/>
  186. </sequence>
  187. </group>
  188. <!-- ========================================= -->
  189. <!-- -->
  190. <!-- Result Types -->
  191. <!-- -->
  192. <!-- ========================================= -->
  193. <!-- -->
  194. <!-- Domain -->
  195. <!-- -->
  196. <complexType name="domainType">
  197. <complexContent>
  198. <extension base="iris:resultType">
  199. <sequence>
  200. <element name="domainName" type="token"/>
  201. <element name="idn" type="token" minOccurs="0" maxOccurs="1"/>
  202. <element name="domainHandle" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  203. <element name="nameServer" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  204. <element name="registrant" type="iris:entityType" minOccurs="0" maxOccurs="1"/>
  205. <element name="billingContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  206. <element name="technicalContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  207. <element name="administrativeContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  208. <element name="legalContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  209. <element name="zoneContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  210. <element name="abuseContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  211. <element name="securityContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  212. <element name="otherContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  213. <element name="lastContactModificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  214. <element name="lastContactModificationBy" type="iris:entityType" minOccurs="0" maxOccurs="1"/>
  215. <element name="status" minOccurs="0" maxOccurs="1">
  216. <complexType>
  217. <all>
  218. <element name="reservedDelegation" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  219. <element name="assignedAndActive" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  220. <element name="assignedAndInactive" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  221. <element name="assignedAndOnHold" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  222. <element name="revoked" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  223. <element name="transferPending" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  224. <element name="registryLock" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  225. <element name="registrarLock" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  226. <element name="other" minOccurs="0" maxOccurs="1" type="dreg:domainStatusType"/>
  227. </all>
  228. </complexType>
  229. </element>
  230. <element name="domainVariant" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  231. <element name="registrationReference" type="iris:entityType" minOccurs="0" maxOccurs="1"/>
  232. <element name="registry" minOccurs="0" maxOccurs="1">
  233. <complexType>
  234. <complexContent>
  235. <extension base="iris:entityType">
  236. <attribute name="hosting" type="boolean"/>
  237. </extension>
  238. </complexContent>
  239. </complexType>
  240. </element>
  241. <element name="registrar" minOccurs="0" maxOccurs="1">
  242. <complexType>
  243. <complexContent>
  244. <extension base="iris:entityType">
  245. <attribute name="hosting" type="boolean"/>
  246. </extension>
  247. </complexContent>
  248. </complexType>
  249. </element>
  250. <element name="initialDelegationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  251. <element name="lastRenewalDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  252. <element name="expirationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  253. <element name="lastDelegationModificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  254. <element name="lastDelegationModificationBy" type="iris:entityType" minOccurs="0" maxOccurs="1"/>
  255. <element name="lastVerificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  256. <element ref="iris:seeAlso" minOccurs="0" maxOccurs="unbounded"/>
  257. </sequence>
  258. </extension>
  259. </complexContent>
  260. </complexType>
  261. <element name="domain" type="dreg:domainType" substitutionGroup="iris:result"/>
  262. <!-- -->
  263. <!-- Host -->
  264. <!-- -->
  265. <complexType name="hostType">
  266. <complexContent>
  267. <extension base="iris:resultType">
  268. <sequence>
  269. <element name="hostHandle" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  270. <element name="hostName" type="normalizedString"/>
  271. <element name="ipV4Address" type="token" minOccurs="0" maxOccurs="unbounded"/>
  272. <element name="ipV6Address" type="token" minOccurs="0" maxOccurs="unbounded"/>
  273. <element name="hostContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  274. <element name="createdDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  275. <element name="lastModificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  276. <element name="lastVerificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  277. <element ref="iris:seeAlso" minOccurs="0" maxOccurs="unbounded"/>
  278. </sequence>
  279. </extension>
  280. </complexContent>
  281. </complexType>
  282. <element name="host" type="dreg:hostType" substitutionGroup="iris:result"/>
  283. <!-- -->
  284. <!-- Contact -->
  285. <!-- -->
  286. <complexType name="contactType">
  287. <complexContent>
  288. <extension base="iris:resultType">
  289. <sequence>
  290. <element name="contactHandle" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  291. <element name="commonName" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  292. <element name="language" type="language" minOccurs="0" maxOccurs="1"/>
  293. <element name="type" minOccurs="0" maxOccurs="1">
  294. <complexType>
  295. <choice>
  296. <element name="person" type="dreg:contactTypeType"/>
  297. <element name="organization" type="dreg:contactTypeType"/>
  298. <element name="role" type="dreg:contactTypeType"/>
  299. <element name="other" type="dreg:contactTypeType"/>
  300. </choice>
  301. </complexType>
  302. </element>
  303. <element name="organization" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  304. <element name="eMail" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
  305. <element name="IDNeMail" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
  306. <element name="sip" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
  307. <element name="postalAddress" minOccurs="0" maxOccurs="unbounded">
  308. <complexType>
  309. <sequence>
  310. <element name="address" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  311. <element name="city" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  312. <element name="region" type="dreg:stringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  313. <element name="postalCode" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  314. <element name="country" type="dreg:tokenPrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  315. </sequence>
  316. </complexType>
  317. </element>
  318. <element name="phone" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
  319. <element name="fax" type="dreg:normalizedStringPrivacyType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
  320. <element name="createdDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  321. <element name="lastModificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  322. <element name="lastVerificationDateTime" type="dreg:dateTimePrivacyType" nillable="true" minOccurs="0" maxOccurs="1"/>
  323. <element name="translatedContact" type="iris:entityType" minOccurs="0" maxOccurs="unbounded"/>
  324. <element ref="iris:seeAlso" minOccurs="0" maxOccurs="unbounded"/>
  325. </sequence>
  326. </extension>
  327. </complexContent>
  328. </complexType>
  329. <element name="contact" type="dreg:contactType" substitutionGroup="iris:result"/>
  330. <!-- -->
  331. <!-- Registration Authority -->
  332. <!-- -->
  333. <complexType name="registrationAuthorityType">
  334. <complexContent>
  335. <extension base="iris:resultType">
  336. <sequence>
  337. <element name="serviceInstance" type="iris:entityType"/>
  338. <element name="organizationName" type="string" minOccurs="0" maxOccurs="1"/>
  339. <choice minOccurs="0" maxOccurs="3">
  340. <element name="registry">
  341. <complexType/>
  342. </element>
  343. <element name="registrar">
  344. <complexType/>
  345. </element>
  346. <element name="other">
  347. <complexType/>
  348. </element>
  349. </choice>
  350. <element name="domain" type="token" minOccurs="0" maxOccurs="unbounded"/>
  351. </sequence>
  352. </extension>
  353. </complexContent>
  354. </complexType>
  355. <element name="registrationAuthority" type="dreg:registrationAuthorityType" substitutionGroup="iris:result"/>
  356. <!-- -->
  357. <!-- Privacy Label Types -->
  358. <!-- -->
  359. <attributeGroup name="privacyLabelAttributeGroup">
  360. <attribute name="private" type="boolean"/>
  361. <attribute name="denied" type="boolean"/>
  362. <attribute name="doNotRedistribute" type="boolean"/>
  363. <attribute name="specialAccess" type="boolean"/>
  364. </attributeGroup>
  365. <complexType name="dateTimePrivacyType">
  366. <simpleContent>
  367. <extension base="dateTime">
  368. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  369. </extension>
  370. </simpleContent>
  371. </complexType>
  372. <complexType name="stringPrivacyType">
  373. <simpleContent>
  374. <extension base="string">
  375. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  376. </extension>
  377. </simpleContent>
  378. </complexType>
  379. <complexType name="normalizedStringPrivacyType">
  380. <simpleContent>
  381. <extension base="normalizedString">
  382. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  383. </extension>
  384. </simpleContent>
  385. </complexType>
  386. <complexType name="tokenPrivacyType">
  387. <simpleContent>
  388. <extension base="token">
  389. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  390. </extension>
  391. </simpleContent>
  392. </complexType>
  393. <complexType name="domainStatusType">
  394. <sequence>
  395. <element name="appliedDate" type="dateTime" minOccurs="0" maxOccurs="1"/>
  396. <element name="description" minOccurs="0" maxOccurs="unbounded">
  397. <complexType>
  398. <simpleContent>
  399. <extension base="string">
  400. <attribute name="language" type="language" use="required"/>
  401. </extension>
  402. </simpleContent>
  403. </complexType>
  404. </element>
  405. </sequence>
  406. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  407. <attribute name="scope" type="string"/>
  408. </complexType>
  409. <complexType name="contactTypeType">
  410. <sequence>
  411. <element name="description" minOccurs="0" maxOccurs="unbounded">
  412. <complexType>
  413. <simpleContent>
  414. <extension base="string">
  415. <attribute name="language" type="language" use="required"/>
  416. </extension>
  417. </simpleContent>
  418. </complexType>
  419. </element>
  420. </sequence>
  421. <attributeGroup ref="dreg:privacyLabelAttributeGroup"/>
  422. </complexType>
  423. <!-- ========================================= -->
  424. <!-- -->
  425. <!-- Error Codes -->
  426. <!-- -->
  427. <!-- ========================================= -->
  428. <!-- -->
  429. <!-- Search Too Wide -->
  430. <!-- -->
  431. <element name="searchTooWide" type="iris:codeType" substitutionGroup="iris:genericCode"/>
  432. <!-- -->
  433. <!-- Language Not Supported -->
  434. <!-- -->
  435. <complexType name="languageNotSupportedType">
  436. <complexContent>
  437. <extension base="iris:codeType">
  438. <sequence>
  439. <element name="unsupportedLanguage" type="language" minOccurs="1" maxOccurs="unbounded"/>
  440. </sequence>
  441. </extension>
  442. </complexContent>
  443. </complexType>
  444. <element name="languageNotSupported" type="dreg:languageNotSupportedType" substitutionGroup="iris:genericCode"/>
  445. </schema>