@vepler/sdk 6.61.4 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/README.md +14 -2
  2. package/dist/commonjs/funcs/companiesGetCompaniesByLocation.d.ts +1 -1
  3. package/dist/commonjs/funcs/companiesGetCompaniesByLocation.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/companiesGetCompaniesByLocation.js +1 -1
  5. package/dist/commonjs/funcs/companiesGetCompaniesByLocation.js.map +1 -1
  6. package/dist/commonjs/funcs/companiesGetCompany.d.ts +2 -2
  7. package/dist/commonjs/funcs/companiesGetCompany.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/companiesGetCompany.js +2 -2
  9. package/dist/commonjs/funcs/companiesGetCompany.js.map +1 -1
  10. package/dist/commonjs/funcs/companiesGetCompanyOfficers.d.ts +1 -1
  11. package/dist/commonjs/funcs/companiesGetCompanyOfficers.d.ts.map +1 -1
  12. package/dist/commonjs/funcs/companiesGetCompanyOfficers.js +1 -1
  13. package/dist/commonjs/funcs/companiesGetCompanyOfficers.js.map +1 -1
  14. package/dist/commonjs/funcs/companiesGetCompanyPscs.d.ts +2 -2
  15. package/dist/commonjs/funcs/companiesGetCompanyPscs.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/companiesGetCompanyPscs.js +2 -2
  17. package/dist/commonjs/funcs/companiesGetCompanyPscs.js.map +1 -1
  18. package/dist/commonjs/funcs/companiesGetOfficer.d.ts +1 -1
  19. package/dist/commonjs/funcs/companiesGetOfficer.d.ts.map +1 -1
  20. package/dist/commonjs/funcs/companiesGetOfficer.js +1 -1
  21. package/dist/commonjs/funcs/companiesGetOfficer.js.map +1 -1
  22. package/dist/commonjs/funcs/companiesGetPerson.d.ts +1 -1
  23. package/dist/commonjs/funcs/companiesGetPerson.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/companiesGetPerson.js +1 -1
  25. package/dist/commonjs/funcs/companiesGetPerson.js.map +1 -1
  26. package/dist/commonjs/funcs/companiesGetPersonAppointments.d.ts +1 -1
  27. package/dist/commonjs/funcs/companiesGetPersonAppointments.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/companiesGetPersonAppointments.js +2 -1
  29. package/dist/commonjs/funcs/companiesGetPersonAppointments.js.map +1 -1
  30. package/dist/commonjs/funcs/companiesGetPersonCluster.d.ts +1 -1
  31. package/dist/commonjs/funcs/companiesGetPersonCluster.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/companiesGetPersonCluster.js +1 -1
  33. package/dist/commonjs/funcs/companiesGetPersonCluster.js.map +1 -1
  34. package/dist/commonjs/funcs/companiesGetPsc.d.ts +1 -1
  35. package/dist/commonjs/funcs/companiesGetPsc.d.ts.map +1 -1
  36. package/dist/commonjs/funcs/companiesGetPsc.js +1 -1
  37. package/dist/commonjs/funcs/companiesGetPsc.js.map +1 -1
  38. package/dist/commonjs/funcs/companiesQueryCompanies.d.ts +2 -2
  39. package/dist/commonjs/funcs/companiesQueryCompanies.d.ts.map +1 -1
  40. package/dist/commonjs/funcs/companiesQueryCompanies.js +4 -6
  41. package/dist/commonjs/funcs/companiesQueryCompanies.js.map +1 -1
  42. package/dist/commonjs/funcs/companiesQueryPersons.d.ts +1 -1
  43. package/dist/commonjs/funcs/companiesQueryPersons.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/companiesQueryPersons.js +1 -1
  45. package/dist/commonjs/funcs/companiesQueryPersons.js.map +1 -1
  46. package/dist/commonjs/lib/config.d.ts +3 -3
  47. package/dist/commonjs/lib/config.js +3 -3
  48. package/dist/commonjs/lib/config.js.map +1 -1
  49. package/dist/commonjs/sdk/companies.d.ts +4 -4
  50. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  51. package/dist/commonjs/sdk/companies.js +3 -3
  52. package/dist/commonjs/sdk/companies.js.map +1 -1
  53. package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.d.ts +65 -0
  54. package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.d.ts.map +1 -1
  55. package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.js +57 -1
  56. package/dist/commonjs/sdk/models/errors/getcompaniesbylocation.js.map +1 -1
  57. package/dist/commonjs/sdk/models/errors/getcompany.d.ts +65 -0
  58. package/dist/commonjs/sdk/models/errors/getcompany.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/models/errors/getcompany.js +57 -1
  60. package/dist/commonjs/sdk/models/errors/getcompany.js.map +1 -1
  61. package/dist/commonjs/sdk/models/errors/getcompanyofficers.d.ts +65 -0
  62. package/dist/commonjs/sdk/models/errors/getcompanyofficers.d.ts.map +1 -1
  63. package/dist/commonjs/sdk/models/errors/getcompanyofficers.js +57 -1
  64. package/dist/commonjs/sdk/models/errors/getcompanyofficers.js.map +1 -1
  65. package/dist/commonjs/sdk/models/errors/getcompanypscs.d.ts +130 -0
  66. package/dist/commonjs/sdk/models/errors/getcompanypscs.d.ts.map +1 -1
  67. package/dist/commonjs/sdk/models/errors/getcompanypscs.js +113 -1
  68. package/dist/commonjs/sdk/models/errors/getcompanypscs.js.map +1 -1
  69. package/dist/commonjs/sdk/models/errors/getofficer.d.ts +65 -0
  70. package/dist/commonjs/sdk/models/errors/getofficer.d.ts.map +1 -1
  71. package/dist/commonjs/sdk/models/errors/getofficer.js +57 -1
  72. package/dist/commonjs/sdk/models/errors/getofficer.js.map +1 -1
  73. package/dist/commonjs/sdk/models/errors/getperson.d.ts +65 -0
  74. package/dist/commonjs/sdk/models/errors/getperson.d.ts.map +1 -1
  75. package/dist/commonjs/sdk/models/errors/getperson.js +57 -1
  76. package/dist/commonjs/sdk/models/errors/getperson.js.map +1 -1
  77. package/dist/commonjs/sdk/models/errors/getpersonappointments.d.ts +65 -0
  78. package/dist/commonjs/sdk/models/errors/getpersonappointments.d.ts.map +1 -1
  79. package/dist/commonjs/sdk/models/errors/getpersonappointments.js +57 -1
  80. package/dist/commonjs/sdk/models/errors/getpersonappointments.js.map +1 -1
  81. package/dist/commonjs/sdk/models/errors/getpersoncluster.d.ts +65 -0
  82. package/dist/commonjs/sdk/models/errors/getpersoncluster.d.ts.map +1 -1
  83. package/dist/commonjs/sdk/models/errors/getpersoncluster.js +57 -1
  84. package/dist/commonjs/sdk/models/errors/getpersoncluster.js.map +1 -1
  85. package/dist/commonjs/sdk/models/errors/getpsc.d.ts +65 -0
  86. package/dist/commonjs/sdk/models/errors/getpsc.d.ts.map +1 -1
  87. package/dist/commonjs/sdk/models/errors/getpsc.js +57 -1
  88. package/dist/commonjs/sdk/models/errors/getpsc.js.map +1 -1
  89. package/dist/commonjs/sdk/models/errors/querycompanies.d.ts +65 -0
  90. package/dist/commonjs/sdk/models/errors/querycompanies.d.ts.map +1 -1
  91. package/dist/commonjs/sdk/models/errors/querycompanies.js +57 -1
  92. package/dist/commonjs/sdk/models/errors/querycompanies.js.map +1 -1
  93. package/dist/commonjs/sdk/models/errors/querypersons.d.ts +65 -0
  94. package/dist/commonjs/sdk/models/errors/querypersons.d.ts.map +1 -1
  95. package/dist/commonjs/sdk/models/errors/querypersons.js +57 -1
  96. package/dist/commonjs/sdk/models/errors/querypersons.js.map +1 -1
  97. package/dist/commonjs/sdk/models/operations/getcompany.d.ts +2 -2
  98. package/dist/commonjs/sdk/models/operations/getnearestpoi.d.ts +3 -3
  99. package/dist/commonjs/sdk/models/operations/getpoimultipletiles.d.ts +1 -1
  100. package/dist/commonjs/sdk/models/operations/getpoitile.d.ts +1 -1
  101. package/dist/commonjs/sdk/models/shared/airqualityinstallations.d.ts +4 -4
  102. package/dist/commonjs/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
  103. package/dist/commonjs/sdk/models/shared/airqualityinstallations.js +6 -7
  104. package/dist/commonjs/sdk/models/shared/airqualityinstallations.js.map +1 -1
  105. package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts +1 -0
  106. package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
  107. package/dist/commonjs/sdk/models/shared/appointmentsresponse.js +1 -0
  108. package/dist/commonjs/sdk/models/shared/appointmentsresponse.js.map +1 -1
  109. package/dist/commonjs/sdk/models/shared/company.d.ts +19 -88
  110. package/dist/commonjs/sdk/models/shared/company.d.ts.map +1 -1
  111. package/dist/commonjs/sdk/models/shared/company.js +9 -52
  112. package/dist/commonjs/sdk/models/shared/company.js.map +1 -1
  113. package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts +5 -33
  114. package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
  115. package/dist/commonjs/sdk/models/shared/companyqueryrequest.js +3 -19
  116. package/dist/commonjs/sdk/models/shared/companyqueryrequest.js.map +1 -1
  117. package/dist/commonjs/sdk/models/shared/companyresponse.d.ts +4 -0
  118. package/dist/commonjs/sdk/models/shared/companyresponse.d.ts.map +1 -1
  119. package/dist/commonjs/sdk/models/shared/companyresponse.js +1 -0
  120. package/dist/commonjs/sdk/models/shared/companyresponse.js.map +1 -1
  121. package/dist/commonjs/sdk/models/shared/companysummary.d.ts +18 -35
  122. package/dist/commonjs/sdk/models/shared/companysummary.d.ts.map +1 -1
  123. package/dist/commonjs/sdk/models/shared/companysummary.js +9 -22
  124. package/dist/commonjs/sdk/models/shared/companysummary.js.map +1 -1
  125. package/dist/commonjs/sdk/models/shared/index.d.ts +5 -0
  126. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  127. package/dist/commonjs/sdk/models/shared/index.js +5 -0
  128. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  129. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +13 -1
  130. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  131. package/dist/commonjs/sdk/models/shared/propertyaddress.js +3 -0
  132. package/dist/commonjs/sdk/models/shared/propertyaddress.js.map +1 -1
  133. package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts +3 -4
  134. package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts.map +1 -1
  135. package/dist/commonjs/sdk/models/shared/propertydataapi.js +2 -1
  136. package/dist/commonjs/sdk/models/shared/propertydataapi.js.map +1 -1
  137. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.d.ts +110 -0
  138. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.d.ts.map +1 -0
  139. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.js +133 -0
  140. package/dist/commonjs/sdk/models/shared/propertyfieldprovenance.js.map +1 -0
  141. package/dist/commonjs/sdk/models/shared/propertysourcevalue.d.ts +29 -0
  142. package/dist/commonjs/sdk/models/shared/propertysourcevalue.d.ts.map +1 -0
  143. package/dist/commonjs/sdk/models/shared/propertysourcevalue.js +54 -0
  144. package/dist/commonjs/sdk/models/shared/propertysourcevalue.js.map +1 -0
  145. package/dist/commonjs/sdk/models/shared/psc.d.ts +8 -4
  146. package/dist/commonjs/sdk/models/shared/psc.d.ts.map +1 -1
  147. package/dist/commonjs/sdk/models/shared/psc.js +3 -2
  148. package/dist/commonjs/sdk/models/shared/psc.js.map +1 -1
  149. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts +33 -0
  150. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts.map +1 -0
  151. package/dist/commonjs/sdk/models/shared/pscexemption.js +61 -0
  152. package/dist/commonjs/sdk/models/shared/pscexemption.js.map +1 -0
  153. package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts +19 -1
  154. package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts.map +1 -1
  155. package/dist/commonjs/sdk/models/shared/psclistresponse.js +6 -0
  156. package/dist/commonjs/sdk/models/shared/psclistresponse.js.map +1 -1
  157. package/dist/commonjs/sdk/models/shared/pscresponse.d.ts +4 -0
  158. package/dist/commonjs/sdk/models/shared/pscresponse.d.ts.map +1 -1
  159. package/dist/commonjs/sdk/models/shared/pscresponse.js +1 -0
  160. package/dist/commonjs/sdk/models/shared/pscresponse.js.map +1 -1
  161. package/dist/commonjs/sdk/models/shared/pscstatement.d.ts +32 -0
  162. package/dist/commonjs/sdk/models/shared/pscstatement.d.ts.map +1 -0
  163. package/dist/commonjs/sdk/models/shared/pscstatement.js +54 -0
  164. package/dist/commonjs/sdk/models/shared/pscstatement.js.map +1 -0
  165. package/dist/commonjs/sdk/models/shared/pscsummary.d.ts +8 -4
  166. package/dist/commonjs/sdk/models/shared/pscsummary.d.ts.map +1 -1
  167. package/dist/commonjs/sdk/models/shared/pscsummary.js +3 -2
  168. package/dist/commonjs/sdk/models/shared/pscsummary.js.map +1 -1
  169. package/dist/commonjs/sdk/models/shared/site.d.ts +6 -2
  170. package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
  171. package/dist/commonjs/sdk/models/shared/site.js +1 -0
  172. package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
  173. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
  174. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
  175. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js +73 -0
  176. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
  177. package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts +19 -14
  178. package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
  179. package/dist/commonjs/sdk/models/shared/siteplanningstats.js +3 -1
  180. package/dist/commonjs/sdk/models/shared/siteplanningstats.js.map +1 -1
  181. package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts +1 -1
  182. package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts.map +1 -1
  183. package/dist/esm/funcs/companiesGetCompaniesByLocation.js +1 -1
  184. package/dist/esm/funcs/companiesGetCompaniesByLocation.js.map +1 -1
  185. package/dist/esm/funcs/companiesGetCompany.d.ts +2 -2
  186. package/dist/esm/funcs/companiesGetCompany.d.ts.map +1 -1
  187. package/dist/esm/funcs/companiesGetCompany.js +2 -2
  188. package/dist/esm/funcs/companiesGetCompany.js.map +1 -1
  189. package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts +1 -1
  190. package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts.map +1 -1
  191. package/dist/esm/funcs/companiesGetCompanyOfficers.js +1 -1
  192. package/dist/esm/funcs/companiesGetCompanyOfficers.js.map +1 -1
  193. package/dist/esm/funcs/companiesGetCompanyPscs.d.ts +2 -2
  194. package/dist/esm/funcs/companiesGetCompanyPscs.d.ts.map +1 -1
  195. package/dist/esm/funcs/companiesGetCompanyPscs.js +2 -2
  196. package/dist/esm/funcs/companiesGetCompanyPscs.js.map +1 -1
  197. package/dist/esm/funcs/companiesGetOfficer.d.ts +1 -1
  198. package/dist/esm/funcs/companiesGetOfficer.d.ts.map +1 -1
  199. package/dist/esm/funcs/companiesGetOfficer.js +1 -1
  200. package/dist/esm/funcs/companiesGetOfficer.js.map +1 -1
  201. package/dist/esm/funcs/companiesGetPerson.d.ts +1 -1
  202. package/dist/esm/funcs/companiesGetPerson.d.ts.map +1 -1
  203. package/dist/esm/funcs/companiesGetPerson.js +1 -1
  204. package/dist/esm/funcs/companiesGetPerson.js.map +1 -1
  205. package/dist/esm/funcs/companiesGetPersonAppointments.d.ts +1 -1
  206. package/dist/esm/funcs/companiesGetPersonAppointments.d.ts.map +1 -1
  207. package/dist/esm/funcs/companiesGetPersonAppointments.js +2 -1
  208. package/dist/esm/funcs/companiesGetPersonAppointments.js.map +1 -1
  209. package/dist/esm/funcs/companiesGetPersonCluster.d.ts +1 -1
  210. package/dist/esm/funcs/companiesGetPersonCluster.d.ts.map +1 -1
  211. package/dist/esm/funcs/companiesGetPersonCluster.js +1 -1
  212. package/dist/esm/funcs/companiesGetPersonCluster.js.map +1 -1
  213. package/dist/esm/funcs/companiesGetPsc.d.ts +1 -1
  214. package/dist/esm/funcs/companiesGetPsc.d.ts.map +1 -1
  215. package/dist/esm/funcs/companiesGetPsc.js +1 -1
  216. package/dist/esm/funcs/companiesGetPsc.js.map +1 -1
  217. package/dist/esm/funcs/companiesQueryCompanies.d.ts +2 -2
  218. package/dist/esm/funcs/companiesQueryCompanies.d.ts.map +1 -1
  219. package/dist/esm/funcs/companiesQueryCompanies.js +4 -6
  220. package/dist/esm/funcs/companiesQueryCompanies.js.map +1 -1
  221. package/dist/esm/funcs/companiesQueryPersons.d.ts +1 -1
  222. package/dist/esm/funcs/companiesQueryPersons.d.ts.map +1 -1
  223. package/dist/esm/funcs/companiesQueryPersons.js +1 -1
  224. package/dist/esm/funcs/companiesQueryPersons.js.map +1 -1
  225. package/dist/esm/lib/config.d.ts +3 -3
  226. package/dist/esm/lib/config.js +3 -3
  227. package/dist/esm/lib/config.js.map +1 -1
  228. package/dist/esm/sdk/companies.d.ts +4 -4
  229. package/dist/esm/sdk/companies.d.ts.map +1 -1
  230. package/dist/esm/sdk/companies.js +3 -3
  231. package/dist/esm/sdk/companies.js.map +1 -1
  232. package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts +65 -0
  233. package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts.map +1 -1
  234. package/dist/esm/sdk/models/errors/getcompaniesbylocation.js +54 -0
  235. package/dist/esm/sdk/models/errors/getcompaniesbylocation.js.map +1 -1
  236. package/dist/esm/sdk/models/errors/getcompany.d.ts +65 -0
  237. package/dist/esm/sdk/models/errors/getcompany.d.ts.map +1 -1
  238. package/dist/esm/sdk/models/errors/getcompany.js +54 -0
  239. package/dist/esm/sdk/models/errors/getcompany.js.map +1 -1
  240. package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts +65 -0
  241. package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts.map +1 -1
  242. package/dist/esm/sdk/models/errors/getcompanyofficers.js +54 -0
  243. package/dist/esm/sdk/models/errors/getcompanyofficers.js.map +1 -1
  244. package/dist/esm/sdk/models/errors/getcompanypscs.d.ts +130 -0
  245. package/dist/esm/sdk/models/errors/getcompanypscs.d.ts.map +1 -1
  246. package/dist/esm/sdk/models/errors/getcompanypscs.js +108 -0
  247. package/dist/esm/sdk/models/errors/getcompanypscs.js.map +1 -1
  248. package/dist/esm/sdk/models/errors/getofficer.d.ts +65 -0
  249. package/dist/esm/sdk/models/errors/getofficer.d.ts.map +1 -1
  250. package/dist/esm/sdk/models/errors/getofficer.js +54 -0
  251. package/dist/esm/sdk/models/errors/getofficer.js.map +1 -1
  252. package/dist/esm/sdk/models/errors/getperson.d.ts +65 -0
  253. package/dist/esm/sdk/models/errors/getperson.d.ts.map +1 -1
  254. package/dist/esm/sdk/models/errors/getperson.js +54 -0
  255. package/dist/esm/sdk/models/errors/getperson.js.map +1 -1
  256. package/dist/esm/sdk/models/errors/getpersonappointments.d.ts +65 -0
  257. package/dist/esm/sdk/models/errors/getpersonappointments.d.ts.map +1 -1
  258. package/dist/esm/sdk/models/errors/getpersonappointments.js +54 -0
  259. package/dist/esm/sdk/models/errors/getpersonappointments.js.map +1 -1
  260. package/dist/esm/sdk/models/errors/getpersoncluster.d.ts +65 -0
  261. package/dist/esm/sdk/models/errors/getpersoncluster.d.ts.map +1 -1
  262. package/dist/esm/sdk/models/errors/getpersoncluster.js +54 -0
  263. package/dist/esm/sdk/models/errors/getpersoncluster.js.map +1 -1
  264. package/dist/esm/sdk/models/errors/getpsc.d.ts +65 -0
  265. package/dist/esm/sdk/models/errors/getpsc.d.ts.map +1 -1
  266. package/dist/esm/sdk/models/errors/getpsc.js +54 -0
  267. package/dist/esm/sdk/models/errors/getpsc.js.map +1 -1
  268. package/dist/esm/sdk/models/errors/querycompanies.d.ts +65 -0
  269. package/dist/esm/sdk/models/errors/querycompanies.d.ts.map +1 -1
  270. package/dist/esm/sdk/models/errors/querycompanies.js +54 -0
  271. package/dist/esm/sdk/models/errors/querycompanies.js.map +1 -1
  272. package/dist/esm/sdk/models/errors/querypersons.d.ts +65 -0
  273. package/dist/esm/sdk/models/errors/querypersons.d.ts.map +1 -1
  274. package/dist/esm/sdk/models/errors/querypersons.js +54 -0
  275. package/dist/esm/sdk/models/errors/querypersons.js.map +1 -1
  276. package/dist/esm/sdk/models/operations/getcompany.d.ts +2 -2
  277. package/dist/esm/sdk/models/operations/getnearestpoi.d.ts +3 -3
  278. package/dist/esm/sdk/models/operations/getpoimultipletiles.d.ts +1 -1
  279. package/dist/esm/sdk/models/operations/getpoitile.d.ts +1 -1
  280. package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts +4 -4
  281. package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
  282. package/dist/esm/sdk/models/shared/airqualityinstallations.js +4 -5
  283. package/dist/esm/sdk/models/shared/airqualityinstallations.js.map +1 -1
  284. package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts +1 -0
  285. package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
  286. package/dist/esm/sdk/models/shared/appointmentsresponse.js +1 -0
  287. package/dist/esm/sdk/models/shared/appointmentsresponse.js.map +1 -1
  288. package/dist/esm/sdk/models/shared/company.d.ts +19 -88
  289. package/dist/esm/sdk/models/shared/company.d.ts.map +1 -1
  290. package/dist/esm/sdk/models/shared/company.js +8 -51
  291. package/dist/esm/sdk/models/shared/company.js.map +1 -1
  292. package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts +5 -33
  293. package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
  294. package/dist/esm/sdk/models/shared/companyqueryrequest.js +2 -18
  295. package/dist/esm/sdk/models/shared/companyqueryrequest.js.map +1 -1
  296. package/dist/esm/sdk/models/shared/companyresponse.d.ts +4 -0
  297. package/dist/esm/sdk/models/shared/companyresponse.d.ts.map +1 -1
  298. package/dist/esm/sdk/models/shared/companyresponse.js +1 -0
  299. package/dist/esm/sdk/models/shared/companyresponse.js.map +1 -1
  300. package/dist/esm/sdk/models/shared/companysummary.d.ts +18 -35
  301. package/dist/esm/sdk/models/shared/companysummary.d.ts.map +1 -1
  302. package/dist/esm/sdk/models/shared/companysummary.js +8 -21
  303. package/dist/esm/sdk/models/shared/companysummary.js.map +1 -1
  304. package/dist/esm/sdk/models/shared/index.d.ts +5 -0
  305. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  306. package/dist/esm/sdk/models/shared/index.js +5 -0
  307. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  308. package/dist/esm/sdk/models/shared/propertyaddress.d.ts +13 -1
  309. package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  310. package/dist/esm/sdk/models/shared/propertyaddress.js +3 -0
  311. package/dist/esm/sdk/models/shared/propertyaddress.js.map +1 -1
  312. package/dist/esm/sdk/models/shared/propertydataapi.d.ts +3 -4
  313. package/dist/esm/sdk/models/shared/propertydataapi.d.ts.map +1 -1
  314. package/dist/esm/sdk/models/shared/propertydataapi.js +2 -1
  315. package/dist/esm/sdk/models/shared/propertydataapi.js.map +1 -1
  316. package/dist/esm/sdk/models/shared/propertyfieldprovenance.d.ts +110 -0
  317. package/dist/esm/sdk/models/shared/propertyfieldprovenance.d.ts.map +1 -0
  318. package/dist/esm/sdk/models/shared/propertyfieldprovenance.js +95 -0
  319. package/dist/esm/sdk/models/shared/propertyfieldprovenance.js.map +1 -0
  320. package/dist/esm/sdk/models/shared/propertysourcevalue.d.ts +29 -0
  321. package/dist/esm/sdk/models/shared/propertysourcevalue.d.ts.map +1 -0
  322. package/dist/esm/sdk/models/shared/propertysourcevalue.js +17 -0
  323. package/dist/esm/sdk/models/shared/propertysourcevalue.js.map +1 -0
  324. package/dist/esm/sdk/models/shared/psc.d.ts +8 -4
  325. package/dist/esm/sdk/models/shared/psc.d.ts.map +1 -1
  326. package/dist/esm/sdk/models/shared/psc.js +3 -2
  327. package/dist/esm/sdk/models/shared/psc.js.map +1 -1
  328. package/dist/esm/sdk/models/shared/pscexemption.d.ts +33 -0
  329. package/dist/esm/sdk/models/shared/pscexemption.d.ts.map +1 -0
  330. package/dist/esm/sdk/models/shared/pscexemption.js +23 -0
  331. package/dist/esm/sdk/models/shared/pscexemption.js.map +1 -0
  332. package/dist/esm/sdk/models/shared/psclistresponse.d.ts +19 -1
  333. package/dist/esm/sdk/models/shared/psclistresponse.d.ts.map +1 -1
  334. package/dist/esm/sdk/models/shared/psclistresponse.js +6 -0
  335. package/dist/esm/sdk/models/shared/psclistresponse.js.map +1 -1
  336. package/dist/esm/sdk/models/shared/pscresponse.d.ts +4 -0
  337. package/dist/esm/sdk/models/shared/pscresponse.d.ts.map +1 -1
  338. package/dist/esm/sdk/models/shared/pscresponse.js +1 -0
  339. package/dist/esm/sdk/models/shared/pscresponse.js.map +1 -1
  340. package/dist/esm/sdk/models/shared/pscstatement.d.ts +32 -0
  341. package/dist/esm/sdk/models/shared/pscstatement.d.ts.map +1 -0
  342. package/dist/esm/sdk/models/shared/pscstatement.js +17 -0
  343. package/dist/esm/sdk/models/shared/pscstatement.js.map +1 -0
  344. package/dist/esm/sdk/models/shared/pscsummary.d.ts +8 -4
  345. package/dist/esm/sdk/models/shared/pscsummary.d.ts.map +1 -1
  346. package/dist/esm/sdk/models/shared/pscsummary.js +3 -2
  347. package/dist/esm/sdk/models/shared/pscsummary.js.map +1 -1
  348. package/dist/esm/sdk/models/shared/site.d.ts +6 -2
  349. package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
  350. package/dist/esm/sdk/models/shared/site.js +1 -0
  351. package/dist/esm/sdk/models/shared/site.js.map +1 -1
  352. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
  353. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
  354. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js +36 -0
  355. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
  356. package/dist/esm/sdk/models/shared/siteplanningstats.d.ts +19 -14
  357. package/dist/esm/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
  358. package/dist/esm/sdk/models/shared/siteplanningstats.js +3 -1
  359. package/dist/esm/sdk/models/shared/siteplanningstats.js.map +1 -1
  360. package/package.json +1 -1
  361. package/src/funcs/companiesGetCompaniesByLocation.ts +7 -0
  362. package/src/funcs/companiesGetCompany.ts +8 -1
  363. package/src/funcs/companiesGetCompanyOfficers.ts +7 -0
  364. package/src/funcs/companiesGetCompanyPscs.ts +16 -2
  365. package/src/funcs/companiesGetOfficer.ts +7 -0
  366. package/src/funcs/companiesGetPerson.ts +7 -0
  367. package/src/funcs/companiesGetPersonAppointments.ts +8 -0
  368. package/src/funcs/companiesGetPersonCluster.ts +7 -0
  369. package/src/funcs/companiesGetPsc.ts +4 -0
  370. package/src/funcs/companiesQueryCompanies.ts +12 -8
  371. package/src/funcs/companiesQueryPersons.ts +7 -0
  372. package/src/lib/config.ts +3 -3
  373. package/src/sdk/companies.ts +4 -4
  374. package/src/sdk/models/errors/getcompaniesbylocation.ts +140 -0
  375. package/src/sdk/models/errors/getcompany.ts +126 -0
  376. package/src/sdk/models/errors/getcompanyofficers.ts +136 -0
  377. package/src/sdk/models/errors/getcompanypscs.ts +265 -0
  378. package/src/sdk/models/errors/getofficer.ts +126 -0
  379. package/src/sdk/models/errors/getperson.ts +128 -0
  380. package/src/sdk/models/errors/getpersonappointments.ts +140 -0
  381. package/src/sdk/models/errors/getpersoncluster.ts +138 -0
  382. package/src/sdk/models/errors/getpsc.ts +127 -0
  383. package/src/sdk/models/errors/querycompanies.ts +129 -0
  384. package/src/sdk/models/errors/querypersons.ts +128 -0
  385. package/src/sdk/models/operations/getcompany.ts +2 -2
  386. package/src/sdk/models/operations/getnearestpoi.ts +3 -3
  387. package/src/sdk/models/operations/getpoimultipletiles.ts +1 -1
  388. package/src/sdk/models/operations/getpoitile.ts +1 -1
  389. package/src/sdk/models/shared/airqualityinstallations.ts +20 -17
  390. package/src/sdk/models/shared/appointmentsresponse.ts +1 -0
  391. package/src/sdk/models/shared/company.ts +25 -114
  392. package/src/sdk/models/shared/companyqueryrequest.ts +5 -39
  393. package/src/sdk/models/shared/companyresponse.ts +5 -0
  394. package/src/sdk/models/shared/companysummary.ts +24 -47
  395. package/src/sdk/models/shared/index.ts +5 -0
  396. package/src/sdk/models/shared/propertyaddress.ts +16 -1
  397. package/src/sdk/models/shared/propertydataapi.ts +7 -3
  398. package/src/sdk/models/shared/propertyfieldprovenance.ts +196 -0
  399. package/src/sdk/models/shared/propertysourcevalue.ts +54 -0
  400. package/src/sdk/models/shared/psc.ts +11 -6
  401. package/src/sdk/models/shared/pscexemption.ts +70 -0
  402. package/src/sdk/models/shared/psclistresponse.ts +23 -1
  403. package/src/sdk/models/shared/pscresponse.ts +5 -0
  404. package/src/sdk/models/shared/pscstatement.ts +57 -0
  405. package/src/sdk/models/shared/pscsummary.ts +11 -6
  406. package/src/sdk/models/shared/site.ts +7 -2
  407. package/src/sdk/models/shared/siteplanningapplicationlink.ts +92 -0
  408. package/src/sdk/models/shared/siteplanningstats.ts +24 -15
@@ -322,6 +322,7 @@ export * from "./propertyattributeentry.js";
322
322
  export * from "./propertyattributegroup.js";
323
323
  export * from "./propertybyslugsrequest.js";
324
324
  export * from "./propertydataapi.js";
325
+ export * from "./propertyfieldprovenance.js";
325
326
  export * from "./propertyfilterfield.js";
326
327
  export * from "./propertylistresponse.js";
327
328
  export * from "./propertylocationidareafilter.js";
@@ -335,6 +336,7 @@ export * from "./propertyquerycondition.js";
335
336
  export * from "./propertyquerygroup.js";
336
337
  export * from "./propertyqueryoperator.js";
337
338
  export * from "./propertyqueryrequest.js";
339
+ export * from "./propertysourcevalue.js";
338
340
  export * from "./propertytags.js";
339
341
  export * from "./propertytierinfo.js";
340
342
  export * from "./propertyvalueimpact.js";
@@ -344,8 +346,10 @@ export * from "./prosperityindicator.js";
344
346
  export * from "./prosperitylistresponse.js";
345
347
  export * from "./provenance.js";
346
348
  export * from "./psc.js";
349
+ export * from "./pscexemption.js";
347
350
  export * from "./psclistresponse.js";
348
351
  export * from "./pscresponse.js";
352
+ export * from "./pscstatement.js";
349
353
  export * from "./pscsummary.js";
350
354
  export * from "./purchasestatus.js";
351
355
  export * from "./rangedefinition.js";
@@ -411,6 +415,7 @@ export * from "./siteleafaggregation.js";
411
415
  export * from "./sitelistresponse.js";
412
416
  export * from "./sitemultipolygonareafilter.js";
413
417
  export * from "./sitenestedaggregation.js";
418
+ export * from "./siteplanningapplicationlink.js";
414
419
  export * from "./siteplanningstats.js";
415
420
  export * from "./sitepointareafilter.js";
416
421
  export * from "./sitepolygonareafilter.js";
@@ -25,6 +25,14 @@ export type PropertyAddressCountryCode = OpenEnum<
25
25
  >;
26
26
 
27
27
  export type PropertyAddress = {
28
+ /**
29
+ * The building's name: Royal Mail's where the address has one, otherwise Ordnance Survey's. `_provenance` names which it is and the date of that record. Absent when neither names the building, and on properties whose stored address predates the field.
30
+ */
31
+ buildingName?: string | undefined;
32
+ /**
33
+ * The building's number on its street, as text: Royal Mail's where the address has one, otherwise Ordnance Survey's. `_provenance` names which it is and the date of that record. Absent when the building has no number, and on properties whose stored address predates the field.
34
+ */
35
+ buildingNumber?: string | undefined;
28
36
  /**
29
37
  * The UK nation the address sits in, as a slug: `england`, `scotland`, `wales` or `northern-ireland`. Null when the nation could not be resolved.
30
38
  */
@@ -66,7 +74,7 @@ export type PropertyAddress = {
66
74
  */
67
75
  outcode?: string | undefined;
68
76
  /**
69
- * Post town the address is delivered through.
77
+ * The settlement the street sits in (city, town, village, hamlet or parish), as Ordnance Survey names it. Despite the field name this is the geographic town, not the Royal Mail post town the address is delivered through, and the two can differ.
70
78
  */
71
79
  postTown?: string | undefined;
72
80
  /**
@@ -77,6 +85,10 @@ export type PropertyAddress = {
77
85
  * The postcode with the space removed. This is the form a postcode area filter matches against.
78
86
  */
79
87
  postcodeNoSpace?: string | undefined;
88
+ /**
89
+ * The street the address is on: the Royal Mail thoroughfare where the address has one, otherwise the Ordnance Survey street name. `_provenance` names which it is and the date of that record. Absent when neither names a street, and on properties whose stored address predates the field.
90
+ */
91
+ street?: string | undefined;
80
92
  };
81
93
 
82
94
  /** @internal */
@@ -92,6 +104,8 @@ export const PropertyAddress$inboundSchema: z.ZodType<
92
104
  z.ZodTypeDef,
93
105
  unknown
94
106
  > = z.object({
107
+ buildingName: z.string().optional(),
108
+ buildingNumber: z.string().optional(),
95
109
  country: z.nullable(z.string()).optional(),
96
110
  countryCode: PropertyAddressCountryCode$inboundSchema.optional(),
97
111
  county: z.string().optional(),
@@ -105,6 +119,7 @@ export const PropertyAddress$inboundSchema: z.ZodType<
105
119
  post_town: z.string().optional(),
106
120
  postcode: z.string().optional(),
107
121
  postcodeNoSpace: z.string().optional(),
122
+ street: z.string().optional(),
108
123
  }).transform((v) => {
109
124
  return remap$(v, {
110
125
  "line_1": "line1",
@@ -31,6 +31,10 @@ import {
31
31
  PropertyAssessments,
32
32
  PropertyAssessments$inboundSchema,
33
33
  } from "./propertyassessments.js";
34
+ import {
35
+ PropertyFieldProvenance,
36
+ PropertyFieldProvenance$inboundSchema,
37
+ } from "./propertyfieldprovenance.js";
34
38
  import { PropertyTags, PropertyTags$inboundSchema } from "./propertytags.js";
35
39
  import {
36
40
  RefurbishmentData,
@@ -437,9 +441,9 @@ export type PropertyDataApiSpatial = {
437
441
 
438
442
  export type PropertyDataApi = {
439
443
  /**
440
- * Where each claim-resolved value came from, keyed by the field it applies to. Request it through `attributes`; it is returned only to callers holding the source-data permission.
444
+ * Where each served value came from and the date of its evidence, keyed by the served field's dotted path, such as `address.street`, `classificationCode` or `roomDetails.beds`. Request it through `attributes`; it is returned only to callers holding the source-data permission.
441
445
  */
442
- provenance?: { [k: string]: { [k: string]: any } } | undefined;
446
+ provenance?: { [k: string]: PropertyFieldProvenance } | undefined;
443
447
  address?: PropertyAddress | undefined;
444
448
  /**
445
449
  * Heritage and conservation designations assessed at this property's location. A product that is absent was not assessed.
@@ -924,7 +928,7 @@ export const PropertyDataApi$inboundSchema: z.ZodType<
924
928
  z.ZodTypeDef,
925
929
  unknown
926
930
  > = z.object({
927
- _provenance: z.record(z.record(z.any())).optional(),
931
+ _provenance: z.record(PropertyFieldProvenance$inboundSchema).optional(),
928
932
  address: PropertyAddress$inboundSchema.optional(),
929
933
  assessments: PropertyAssessments$inboundSchema.optional(),
930
934
  build: BuildData$inboundSchema.optional(),
@@ -0,0 +1,196 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+ import {
13
+ PropertySourceValue,
14
+ PropertySourceValue$inboundSchema,
15
+ } from "./propertysourcevalue.js";
16
+
17
+ export const ContributingSources = {
18
+ Paf: "paf",
19
+ Os: "os",
20
+ OsNgd: "os_ngd",
21
+ NgdAddresses: "ngd_addresses",
22
+ Epc: "epc",
23
+ Hmlr: "hmlr",
24
+ Voa: "voa",
25
+ Hmrc: "hmrc",
26
+ HistoricEngland: "historic_england",
27
+ Listing: "listing",
28
+ OpenData: "open_data",
29
+ Council: "council",
30
+ Claim: "claim",
31
+ } as const;
32
+ export type ContributingSources = OpenEnum<typeof ContributingSources>;
33
+
34
+ /**
35
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
36
+ */
37
+ export const ResolutionRule = {
38
+ SingleSource: "single_source",
39
+ FirstNonNull: "first_non_null",
40
+ NewestEvidence: "newest_evidence",
41
+ HighestConfidence: "highest_confidence",
42
+ NarrowestRange: "narrowest_range",
43
+ } as const;
44
+ /**
45
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
46
+ */
47
+ export type ResolutionRule = OpenEnum<typeof ResolutionRule>;
48
+
49
+ /**
50
+ * Data source whose value won under `resolutionRule`.
51
+ */
52
+ export const PropertyFieldProvenanceSource = {
53
+ Paf: "paf",
54
+ Os: "os",
55
+ OsNgd: "os_ngd",
56
+ NgdAddresses: "ngd_addresses",
57
+ Epc: "epc",
58
+ Hmlr: "hmlr",
59
+ Voa: "voa",
60
+ Hmrc: "hmrc",
61
+ HistoricEngland: "historic_england",
62
+ Listing: "listing",
63
+ OpenData: "open_data",
64
+ Council: "council",
65
+ Claim: "claim",
66
+ } as const;
67
+ /**
68
+ * Data source whose value won under `resolutionRule`.
69
+ */
70
+ export type PropertyFieldProvenanceSource = OpenEnum<
71
+ typeof PropertyFieldProvenanceSource
72
+ >;
73
+
74
+ /**
75
+ * What each contributing source reported, keyed by source. Only contributing sources appear.
76
+ */
77
+ export type SourceValues = {
78
+ claim?: PropertySourceValue | undefined;
79
+ council?: PropertySourceValue | undefined;
80
+ epc?: PropertySourceValue | undefined;
81
+ historicEngland?: PropertySourceValue | undefined;
82
+ hmlr?: PropertySourceValue | undefined;
83
+ hmrc?: PropertySourceValue | undefined;
84
+ listing?: PropertySourceValue | undefined;
85
+ ngdAddresses?: PropertySourceValue | undefined;
86
+ openData?: PropertySourceValue | undefined;
87
+ os?: PropertySourceValue | undefined;
88
+ osNgd?: PropertySourceValue | undefined;
89
+ paf?: PropertySourceValue | undefined;
90
+ voa?: PropertySourceValue | undefined;
91
+ };
92
+
93
+ export type PropertyFieldProvenance = {
94
+ /**
95
+ * Every data source that had a value for this field, whether or not it won.
96
+ */
97
+ contributingSources?: Array<ContributingSources> | undefined;
98
+ /**
99
+ * How the winning value was chosen. `single_source` and `first_non_null` take the first source in priority order that had a value, `newest_evidence` takes the one with the most recent evidence date, `highest_confidence` the one with the highest confidence score, and `narrowest_range` the one giving the tightest year range.
100
+ */
101
+ resolutionRule?: ResolutionRule | undefined;
102
+ /**
103
+ * Data source whose value won under `resolutionRule`.
104
+ */
105
+ source?: PropertyFieldProvenanceSource | undefined;
106
+ /**
107
+ * What each contributing source reported, keyed by source. Only contributing sources appear.
108
+ */
109
+ sourceValues?: SourceValues | undefined;
110
+ /**
111
+ * The value that won, which is the one served at the field's path.
112
+ */
113
+ value?: any | undefined;
114
+ };
115
+
116
+ /** @internal */
117
+ export const ContributingSources$inboundSchema: z.ZodType<
118
+ ContributingSources,
119
+ z.ZodTypeDef,
120
+ unknown
121
+ > = openEnums.inboundSchema(ContributingSources);
122
+
123
+ /** @internal */
124
+ export const ResolutionRule$inboundSchema: z.ZodType<
125
+ ResolutionRule,
126
+ z.ZodTypeDef,
127
+ unknown
128
+ > = openEnums.inboundSchema(ResolutionRule);
129
+
130
+ /** @internal */
131
+ export const PropertyFieldProvenanceSource$inboundSchema: z.ZodType<
132
+ PropertyFieldProvenanceSource,
133
+ z.ZodTypeDef,
134
+ unknown
135
+ > = openEnums.inboundSchema(PropertyFieldProvenanceSource);
136
+
137
+ /** @internal */
138
+ export const SourceValues$inboundSchema: z.ZodType<
139
+ SourceValues,
140
+ z.ZodTypeDef,
141
+ unknown
142
+ > = z.object({
143
+ claim: PropertySourceValue$inboundSchema.optional(),
144
+ council: PropertySourceValue$inboundSchema.optional(),
145
+ epc: PropertySourceValue$inboundSchema.optional(),
146
+ historic_england: PropertySourceValue$inboundSchema.optional(),
147
+ hmlr: PropertySourceValue$inboundSchema.optional(),
148
+ hmrc: PropertySourceValue$inboundSchema.optional(),
149
+ listing: PropertySourceValue$inboundSchema.optional(),
150
+ ngd_addresses: PropertySourceValue$inboundSchema.optional(),
151
+ open_data: PropertySourceValue$inboundSchema.optional(),
152
+ os: PropertySourceValue$inboundSchema.optional(),
153
+ os_ngd: PropertySourceValue$inboundSchema.optional(),
154
+ paf: PropertySourceValue$inboundSchema.optional(),
155
+ voa: PropertySourceValue$inboundSchema.optional(),
156
+ }).transform((v) => {
157
+ return remap$(v, {
158
+ "historic_england": "historicEngland",
159
+ "ngd_addresses": "ngdAddresses",
160
+ "open_data": "openData",
161
+ "os_ngd": "osNgd",
162
+ });
163
+ });
164
+
165
+ export function sourceValuesFromJSON(
166
+ jsonString: string,
167
+ ): SafeParseResult<SourceValues, SDKValidationError> {
168
+ return safeParse(
169
+ jsonString,
170
+ (x) => SourceValues$inboundSchema.parse(JSON.parse(x)),
171
+ `Failed to parse 'SourceValues' from JSON`,
172
+ );
173
+ }
174
+
175
+ /** @internal */
176
+ export const PropertyFieldProvenance$inboundSchema: z.ZodType<
177
+ PropertyFieldProvenance,
178
+ z.ZodTypeDef,
179
+ unknown
180
+ > = z.object({
181
+ contributingSources: z.array(ContributingSources$inboundSchema).optional(),
182
+ resolutionRule: ResolutionRule$inboundSchema.optional(),
183
+ source: PropertyFieldProvenanceSource$inboundSchema.optional(),
184
+ sourceValues: z.lazy(() => SourceValues$inboundSchema).optional(),
185
+ value: z.any().optional(),
186
+ });
187
+
188
+ export function propertyFieldProvenanceFromJSON(
189
+ jsonString: string,
190
+ ): SafeParseResult<PropertyFieldProvenance, SDKValidationError> {
191
+ return safeParse(
192
+ jsonString,
193
+ (x) => PropertyFieldProvenance$inboundSchema.parse(JSON.parse(x)),
194
+ `Failed to parse 'PropertyFieldProvenance' from JSON`,
195
+ );
196
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type PropertySourceValue = {
11
+ /**
12
+ * How this source captured the value, in its own wording, for example `epc:survey` or `advert`.
13
+ */
14
+ captureMethod?: string | null | undefined;
15
+ /**
16
+ * How far this source's value is trusted, from 0 to 100, where higher is more trusted. The `highest_confidence` rule picks the winner on this number, and `narrowest_range` uses it to break ties.
17
+ */
18
+ confidence?: number | undefined;
19
+ /**
20
+ * Date of the evidence behind this value, as an ISO 8601 date, such as the date the address record it was read from was last updated or the date the advert stating it was published. Absent when the source gives no date.
21
+ */
22
+ evidenceDate?: string | null | undefined;
23
+ /**
24
+ * When the source last reported this value, as an ISO 8601 date.
25
+ */
26
+ updatedAt?: string | null | undefined;
27
+ /**
28
+ * The value this source reported for the field. Its type follows the field.
29
+ */
30
+ value?: any | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const PropertySourceValue$inboundSchema: z.ZodType<
35
+ PropertySourceValue,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ captureMethod: z.nullable(z.string()).optional(),
40
+ confidence: z.number().optional(),
41
+ evidenceDate: z.nullable(z.string()).optional(),
42
+ updatedAt: z.nullable(z.string()).optional(),
43
+ value: z.any().optional(),
44
+ });
45
+
46
+ export function propertySourceValueFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<PropertySourceValue, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => PropertySourceValue$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'PropertySourceValue' from JSON`,
53
+ );
54
+ }
@@ -105,14 +105,18 @@ export type Psc = {
105
105
  * When this record first appeared in the API, as an ISO 8601 timestamp.
106
106
  */
107
107
  createdAt: Date;
108
+ /**
109
+ * What the record is, as Companies House describes it, for a PSC whose identity is protected by court order and so carries no name, for example `super-secure-persons-with-significant-control`. Null for every other PSC.
110
+ */
111
+ description: string | null;
108
112
  /**
109
113
  * Identifier for this PSC notification, as a UUID.
110
114
  */
111
115
  id: string;
112
116
  /**
113
- * True when this PSC is subject to financial sanctions. UK sanctions are administered by the Office of Financial Sanctions Implementation (OFSI).
117
+ * True when this PSC is subject to financial sanctions. Companies House publishes this for the beneficial owners of overseas entities; null where it is not published.
114
118
  */
115
- isSanctioned: boolean;
119
+ isSanctioned: boolean | null;
116
120
  /**
117
121
  * True when this PSC's identity is protected by a court order under s.790ZG of the Companies Act 2006, granted to individuals at serious risk of violence or intimidation. Personal details are withheld from the public register for these records.
118
122
  */
@@ -126,9 +130,9 @@ export type Psc = {
126
130
  */
127
131
  linkingKind?: string | null | undefined;
128
132
  /**
129
- * The PSC's name as recorded on the notification. For an individual this includes the title; for a corporate entity it is the registered entity name.
133
+ * The PSC's name as recorded on the notification. For an individual this includes the title; for a corporate entity it is the registered entity name. Null for a PSC whose identity is protected by court order, which Companies House publishes without a name.
130
134
  */
131
- name: string;
135
+ name: string | null;
132
136
  /**
133
137
  * The PSC's nationality. Set for individuals only.
134
138
  */
@@ -204,12 +208,13 @@ export const Psc$inboundSchema: z.ZodType<Psc, z.ZodTypeDef, unknown> = z
204
208
  createdAt: z.string().datetime({ offset: true }).transform(v =>
205
209
  new Date(v)
206
210
  ),
211
+ description: z.nullable(z.string()),
207
212
  id: z.string(),
208
- isSanctioned: z.boolean(),
213
+ isSanctioned: z.nullable(z.boolean()),
209
214
  isSuperSecure: z.boolean(),
210
215
  kind: PscKind$inboundSchema,
211
216
  linkingKind: z.nullable(z.string()).optional(),
212
- name: z.string(),
217
+ name: z.nullable(z.string()),
213
218
  nationality: z.nullable(z.string()).optional(),
214
219
  naturesOfControl: z.array(z.string()),
215
220
  notificationId: z.nullable(z.string()).optional(),
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Items = {
11
+ /**
12
+ * When the exemption began, as YYYY-MM-DD.
13
+ */
14
+ exemptFrom: string;
15
+ /**
16
+ * When the exemption ended, as YYYY-MM-DD. Null while it applies.
17
+ */
18
+ exemptTo: string | null;
19
+ };
20
+
21
+ /**
22
+ * An exemption from the PSC register requirements that Companies House holds for the company.
23
+ */
24
+ export type PscExemption = {
25
+ /**
26
+ * Why the company is exempt from keeping a PSC register, as the Companies House code, for example `psc-exempt-as-shares-admitted-on-market`.
27
+ */
28
+ exemptionType: string;
29
+ /**
30
+ * The periods the exemption covered, one entry each.
31
+ */
32
+ items: Array<Items>;
33
+ };
34
+
35
+ /** @internal */
36
+ export const Items$inboundSchema: z.ZodType<Items, z.ZodTypeDef, unknown> = z
37
+ .object({
38
+ exemptFrom: z.string(),
39
+ exemptTo: z.nullable(z.string()),
40
+ });
41
+
42
+ export function itemsFromJSON(
43
+ jsonString: string,
44
+ ): SafeParseResult<Items, SDKValidationError> {
45
+ return safeParse(
46
+ jsonString,
47
+ (x) => Items$inboundSchema.parse(JSON.parse(x)),
48
+ `Failed to parse 'Items' from JSON`,
49
+ );
50
+ }
51
+
52
+ /** @internal */
53
+ export const PscExemption$inboundSchema: z.ZodType<
54
+ PscExemption,
55
+ z.ZodTypeDef,
56
+ unknown
57
+ > = z.object({
58
+ exemptionType: z.string(),
59
+ items: z.array(z.lazy(() => Items$inboundSchema)),
60
+ });
61
+
62
+ export function pscExemptionFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<PscExemption, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => PscExemption$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'PscExemption' from JSON`,
69
+ );
70
+ }
@@ -6,12 +6,22 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { PscExemption, PscExemption$inboundSchema } from "./pscexemption.js";
10
+ import { PscStatement, PscStatement$inboundSchema } from "./pscstatement.js";
9
11
  import { PscSummary, PscSummary$inboundSchema } from "./pscsummary.js";
10
12
 
11
13
  /**
12
- * A page of PSC notifications for one company, with the total number of matches.
14
+ * A page of PSC notifications for one company, with the total number of matches and the company's PSC statements and exemptions.
13
15
  */
14
16
  export type PscListResponse = {
17
+ /**
18
+ * True when the company is on the register of companies, so /companies/{companyNumber} returns its record. False when the company is known from PSC data only and has no company record here.
19
+ */
20
+ companyInRegister: boolean;
21
+ /**
22
+ * The company's exemptions from keeping a PSC register. Empty when it has none.
23
+ */
24
+ exemptions: Array<PscExemption>;
15
25
  /**
16
26
  * True when further results exist beyond this page.
17
27
  */
@@ -24,10 +34,18 @@ export type PscListResponse = {
24
34
  * The number of results skipped before this page.
25
35
  */
26
36
  offset: number;
37
+ /**
38
+ * The date of the Companies House PSC data this answer was read from, as YYYY-MM-DD. Changes made at Companies House after this date are not reflected.
39
+ */
40
+ pscDataAsOf: string;
27
41
  /**
28
42
  * The PSC notifications matching the filters, one summary each.
29
43
  */
30
44
  results: Array<PscSummary>;
45
+ /**
46
+ * The statements the company has filed about its PSC register, such as that it has no PSC. Only statements that still stand, unless activeOnly is set to `false`. When results is empty, a statement here says why.
47
+ */
48
+ statements: Array<PscStatement>;
31
49
  /**
32
50
  * Always true. A failed request returns an error object instead.
33
51
  */
@@ -44,10 +62,14 @@ export const PscListResponse$inboundSchema: z.ZodType<
44
62
  z.ZodTypeDef,
45
63
  unknown
46
64
  > = z.object({
65
+ companyInRegister: z.boolean(),
66
+ exemptions: z.array(PscExemption$inboundSchema),
47
67
  hasMore: z.boolean(),
48
68
  limit: z.number().int(),
49
69
  offset: z.number().int(),
70
+ pscDataAsOf: z.string(),
50
71
  results: z.array(PscSummary$inboundSchema),
72
+ statements: z.array(PscStatement$inboundSchema),
51
73
  success: z.literal(true),
52
74
  total: z.number().int(),
53
75
  });
@@ -12,6 +12,10 @@ import { Psc, Psc$inboundSchema } from "./psc.js";
12
12
  * One PSC notification.
13
13
  */
14
14
  export type PscResponse = {
15
+ /**
16
+ * The date of the Companies House PSC data this answer was read from, as YYYY-MM-DD. Changes made at Companies House after this date are not reflected.
17
+ */
18
+ pscDataAsOf: string;
15
19
  /**
16
20
  * The PSC notification.
17
21
  */
@@ -28,6 +32,7 @@ export const PscResponse$inboundSchema: z.ZodType<
28
32
  z.ZodTypeDef,
29
33
  unknown
30
34
  > = z.object({
35
+ pscDataAsOf: z.string(),
31
36
  result: Psc$inboundSchema,
32
37
  success: z.literal(true),
33
38
  });
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * A statement a company filed about its PSC register, for example that no individual or entity has significant control, or that a PSC exists but has not been identified.
12
+ */
13
+ export type PscStatement = {
14
+ /**
15
+ * When the statement was withdrawn, as YYYY-MM-DD. Null while it stands.
16
+ */
17
+ ceasedOn: string | null;
18
+ /**
19
+ * The PSC the statement concerns, where it names one, such as a PSC who has not confirmed details.
20
+ */
21
+ linkedPscName: string | null;
22
+ /**
23
+ * When the statement was notified, as YYYY-MM-DD.
24
+ */
25
+ notifiedOn: string | null;
26
+ /**
27
+ * Why a restrictions notice the statement concerns was withdrawn, as the Companies House code.
28
+ */
29
+ restrictionsNoticeWithdrawalReason: string | null;
30
+ /**
31
+ * The statement as the Companies House statement code, for example `no-individual-or-entity-with-signficant-control` (the spelling is Companies House's own).
32
+ */
33
+ statement: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const PscStatement$inboundSchema: z.ZodType<
38
+ PscStatement,
39
+ z.ZodTypeDef,
40
+ unknown
41
+ > = z.object({
42
+ ceasedOn: z.nullable(z.string()),
43
+ linkedPscName: z.nullable(z.string()),
44
+ notifiedOn: z.nullable(z.string()),
45
+ restrictionsNoticeWithdrawalReason: z.nullable(z.string()),
46
+ statement: z.string(),
47
+ });
48
+
49
+ export function pscStatementFromJSON(
50
+ jsonString: string,
51
+ ): SafeParseResult<PscStatement, SDKValidationError> {
52
+ return safeParse(
53
+ jsonString,
54
+ (x) => PscStatement$inboundSchema.parse(JSON.parse(x)),
55
+ `Failed to parse 'PscStatement' from JSON`,
56
+ );
57
+ }
@@ -43,14 +43,18 @@ export type PscSummary = {
43
43
  * The eight-character registration number of the company this PSC has control over.
44
44
  */
45
45
  companyNumber: string;
46
+ /**
47
+ * What the record is, as Companies House describes it, for a PSC whose identity is protected by court order and so carries no name, for example `super-secure-persons-with-significant-control`. Null for every other PSC.
48
+ */
49
+ description: string | null;
46
50
  /**
47
51
  * Identifier for this PSC notification, as a UUID.
48
52
  */
49
53
  id: string;
50
54
  /**
51
- * True when this PSC is subject to financial sanctions.
55
+ * True when this PSC is subject to financial sanctions. Companies House publishes this for the beneficial owners of overseas entities; null where it is not published.
52
56
  */
53
- isSanctioned: boolean;
57
+ isSanctioned: boolean | null;
54
58
  /**
55
59
  * True when this PSC's identity is protected by a court order.
56
60
  */
@@ -60,9 +64,9 @@ export type PscSummary = {
60
64
  */
61
65
  kind: PscSummaryKind;
62
66
  /**
63
- * The PSC's name as recorded on the notification.
67
+ * The PSC's name as recorded on the notification. Null for a PSC whose identity is protected by court order, which Companies House publishes without a name.
64
68
  */
65
- name: string;
69
+ name: string | null;
66
70
  /**
67
71
  * How this PSC controls the company, one entry per type and threshold of control.
68
72
  */
@@ -94,11 +98,12 @@ export const PscSummary$inboundSchema: z.ZodType<
94
98
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
95
99
  ).optional(),
96
100
  companyNumber: z.string(),
101
+ description: z.nullable(z.string()),
97
102
  id: z.string(),
98
- isSanctioned: z.boolean(),
103
+ isSanctioned: z.nullable(z.boolean()),
99
104
  isSuperSecure: z.boolean(),
100
105
  kind: PscSummaryKind$inboundSchema,
101
- name: z.string(),
106
+ name: z.nullable(z.string()),
102
107
  naturesOfControl: z.array(z.string()),
103
108
  notifiedOn: z.nullable(
104
109
  z.string().datetime({ offset: true }).transform(v => new Date(v)),