@vepler/sdk 6.66.0 → 7.1.2

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 (357) 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 +2 -2
  47. package/dist/commonjs/lib/config.js +2 -2
  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/shared/airqualityinstallations.d.ts +4 -4
  99. package/dist/commonjs/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
  100. package/dist/commonjs/sdk/models/shared/airqualityinstallations.js +6 -7
  101. package/dist/commonjs/sdk/models/shared/airqualityinstallations.js.map +1 -1
  102. package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts +1 -0
  103. package/dist/commonjs/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
  104. package/dist/commonjs/sdk/models/shared/appointmentsresponse.js +1 -0
  105. package/dist/commonjs/sdk/models/shared/appointmentsresponse.js.map +1 -1
  106. package/dist/commonjs/sdk/models/shared/company.d.ts +19 -88
  107. package/dist/commonjs/sdk/models/shared/company.d.ts.map +1 -1
  108. package/dist/commonjs/sdk/models/shared/company.js +9 -52
  109. package/dist/commonjs/sdk/models/shared/company.js.map +1 -1
  110. package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts +5 -33
  111. package/dist/commonjs/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
  112. package/dist/commonjs/sdk/models/shared/companyqueryrequest.js +3 -19
  113. package/dist/commonjs/sdk/models/shared/companyqueryrequest.js.map +1 -1
  114. package/dist/commonjs/sdk/models/shared/companyresponse.d.ts +4 -0
  115. package/dist/commonjs/sdk/models/shared/companyresponse.d.ts.map +1 -1
  116. package/dist/commonjs/sdk/models/shared/companyresponse.js +1 -0
  117. package/dist/commonjs/sdk/models/shared/companyresponse.js.map +1 -1
  118. package/dist/commonjs/sdk/models/shared/companysummary.d.ts +18 -35
  119. package/dist/commonjs/sdk/models/shared/companysummary.d.ts.map +1 -1
  120. package/dist/commonjs/sdk/models/shared/companysummary.js +9 -22
  121. package/dist/commonjs/sdk/models/shared/companysummary.js.map +1 -1
  122. package/dist/commonjs/sdk/models/shared/index.d.ts +3 -0
  123. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  124. package/dist/commonjs/sdk/models/shared/index.js +3 -0
  125. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  126. package/dist/commonjs/sdk/models/shared/psc.d.ts +8 -4
  127. package/dist/commonjs/sdk/models/shared/psc.d.ts.map +1 -1
  128. package/dist/commonjs/sdk/models/shared/psc.js +3 -2
  129. package/dist/commonjs/sdk/models/shared/psc.js.map +1 -1
  130. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts +33 -0
  131. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts.map +1 -0
  132. package/dist/commonjs/sdk/models/shared/pscexemption.js +61 -0
  133. package/dist/commonjs/sdk/models/shared/pscexemption.js.map +1 -0
  134. package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts +19 -1
  135. package/dist/commonjs/sdk/models/shared/psclistresponse.d.ts.map +1 -1
  136. package/dist/commonjs/sdk/models/shared/psclistresponse.js +6 -0
  137. package/dist/commonjs/sdk/models/shared/psclistresponse.js.map +1 -1
  138. package/dist/commonjs/sdk/models/shared/pscresponse.d.ts +4 -0
  139. package/dist/commonjs/sdk/models/shared/pscresponse.d.ts.map +1 -1
  140. package/dist/commonjs/sdk/models/shared/pscresponse.js +1 -0
  141. package/dist/commonjs/sdk/models/shared/pscresponse.js.map +1 -1
  142. package/dist/commonjs/sdk/models/shared/pscstatement.d.ts +32 -0
  143. package/dist/commonjs/sdk/models/shared/pscstatement.d.ts.map +1 -0
  144. package/dist/commonjs/sdk/models/shared/pscstatement.js +54 -0
  145. package/dist/commonjs/sdk/models/shared/pscstatement.js.map +1 -0
  146. package/dist/commonjs/sdk/models/shared/pscsummary.d.ts +8 -4
  147. package/dist/commonjs/sdk/models/shared/pscsummary.d.ts.map +1 -1
  148. package/dist/commonjs/sdk/models/shared/pscsummary.js +3 -2
  149. package/dist/commonjs/sdk/models/shared/pscsummary.js.map +1 -1
  150. package/dist/commonjs/sdk/models/shared/site.d.ts +1 -1
  151. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
  152. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
  153. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js +73 -0
  154. package/dist/commonjs/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
  155. package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts +19 -14
  156. package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
  157. package/dist/commonjs/sdk/models/shared/siteplanningstats.js +3 -1
  158. package/dist/commonjs/sdk/models/shared/siteplanningstats.js.map +1 -1
  159. package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts +1 -1
  160. package/dist/esm/funcs/companiesGetCompaniesByLocation.d.ts.map +1 -1
  161. package/dist/esm/funcs/companiesGetCompaniesByLocation.js +1 -1
  162. package/dist/esm/funcs/companiesGetCompaniesByLocation.js.map +1 -1
  163. package/dist/esm/funcs/companiesGetCompany.d.ts +2 -2
  164. package/dist/esm/funcs/companiesGetCompany.d.ts.map +1 -1
  165. package/dist/esm/funcs/companiesGetCompany.js +2 -2
  166. package/dist/esm/funcs/companiesGetCompany.js.map +1 -1
  167. package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts +1 -1
  168. package/dist/esm/funcs/companiesGetCompanyOfficers.d.ts.map +1 -1
  169. package/dist/esm/funcs/companiesGetCompanyOfficers.js +1 -1
  170. package/dist/esm/funcs/companiesGetCompanyOfficers.js.map +1 -1
  171. package/dist/esm/funcs/companiesGetCompanyPscs.d.ts +2 -2
  172. package/dist/esm/funcs/companiesGetCompanyPscs.d.ts.map +1 -1
  173. package/dist/esm/funcs/companiesGetCompanyPscs.js +2 -2
  174. package/dist/esm/funcs/companiesGetCompanyPscs.js.map +1 -1
  175. package/dist/esm/funcs/companiesGetOfficer.d.ts +1 -1
  176. package/dist/esm/funcs/companiesGetOfficer.d.ts.map +1 -1
  177. package/dist/esm/funcs/companiesGetOfficer.js +1 -1
  178. package/dist/esm/funcs/companiesGetOfficer.js.map +1 -1
  179. package/dist/esm/funcs/companiesGetPerson.d.ts +1 -1
  180. package/dist/esm/funcs/companiesGetPerson.d.ts.map +1 -1
  181. package/dist/esm/funcs/companiesGetPerson.js +1 -1
  182. package/dist/esm/funcs/companiesGetPerson.js.map +1 -1
  183. package/dist/esm/funcs/companiesGetPersonAppointments.d.ts +1 -1
  184. package/dist/esm/funcs/companiesGetPersonAppointments.d.ts.map +1 -1
  185. package/dist/esm/funcs/companiesGetPersonAppointments.js +2 -1
  186. package/dist/esm/funcs/companiesGetPersonAppointments.js.map +1 -1
  187. package/dist/esm/funcs/companiesGetPersonCluster.d.ts +1 -1
  188. package/dist/esm/funcs/companiesGetPersonCluster.d.ts.map +1 -1
  189. package/dist/esm/funcs/companiesGetPersonCluster.js +1 -1
  190. package/dist/esm/funcs/companiesGetPersonCluster.js.map +1 -1
  191. package/dist/esm/funcs/companiesGetPsc.d.ts +1 -1
  192. package/dist/esm/funcs/companiesGetPsc.d.ts.map +1 -1
  193. package/dist/esm/funcs/companiesGetPsc.js +1 -1
  194. package/dist/esm/funcs/companiesGetPsc.js.map +1 -1
  195. package/dist/esm/funcs/companiesQueryCompanies.d.ts +2 -2
  196. package/dist/esm/funcs/companiesQueryCompanies.d.ts.map +1 -1
  197. package/dist/esm/funcs/companiesQueryCompanies.js +4 -6
  198. package/dist/esm/funcs/companiesQueryCompanies.js.map +1 -1
  199. package/dist/esm/funcs/companiesQueryPersons.d.ts +1 -1
  200. package/dist/esm/funcs/companiesQueryPersons.d.ts.map +1 -1
  201. package/dist/esm/funcs/companiesQueryPersons.js +1 -1
  202. package/dist/esm/funcs/companiesQueryPersons.js.map +1 -1
  203. package/dist/esm/lib/config.d.ts +2 -2
  204. package/dist/esm/lib/config.js +2 -2
  205. package/dist/esm/lib/config.js.map +1 -1
  206. package/dist/esm/sdk/companies.d.ts +4 -4
  207. package/dist/esm/sdk/companies.d.ts.map +1 -1
  208. package/dist/esm/sdk/companies.js +3 -3
  209. package/dist/esm/sdk/companies.js.map +1 -1
  210. package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts +65 -0
  211. package/dist/esm/sdk/models/errors/getcompaniesbylocation.d.ts.map +1 -1
  212. package/dist/esm/sdk/models/errors/getcompaniesbylocation.js +54 -0
  213. package/dist/esm/sdk/models/errors/getcompaniesbylocation.js.map +1 -1
  214. package/dist/esm/sdk/models/errors/getcompany.d.ts +65 -0
  215. package/dist/esm/sdk/models/errors/getcompany.d.ts.map +1 -1
  216. package/dist/esm/sdk/models/errors/getcompany.js +54 -0
  217. package/dist/esm/sdk/models/errors/getcompany.js.map +1 -1
  218. package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts +65 -0
  219. package/dist/esm/sdk/models/errors/getcompanyofficers.d.ts.map +1 -1
  220. package/dist/esm/sdk/models/errors/getcompanyofficers.js +54 -0
  221. package/dist/esm/sdk/models/errors/getcompanyofficers.js.map +1 -1
  222. package/dist/esm/sdk/models/errors/getcompanypscs.d.ts +130 -0
  223. package/dist/esm/sdk/models/errors/getcompanypscs.d.ts.map +1 -1
  224. package/dist/esm/sdk/models/errors/getcompanypscs.js +108 -0
  225. package/dist/esm/sdk/models/errors/getcompanypscs.js.map +1 -1
  226. package/dist/esm/sdk/models/errors/getofficer.d.ts +65 -0
  227. package/dist/esm/sdk/models/errors/getofficer.d.ts.map +1 -1
  228. package/dist/esm/sdk/models/errors/getofficer.js +54 -0
  229. package/dist/esm/sdk/models/errors/getofficer.js.map +1 -1
  230. package/dist/esm/sdk/models/errors/getperson.d.ts +65 -0
  231. package/dist/esm/sdk/models/errors/getperson.d.ts.map +1 -1
  232. package/dist/esm/sdk/models/errors/getperson.js +54 -0
  233. package/dist/esm/sdk/models/errors/getperson.js.map +1 -1
  234. package/dist/esm/sdk/models/errors/getpersonappointments.d.ts +65 -0
  235. package/dist/esm/sdk/models/errors/getpersonappointments.d.ts.map +1 -1
  236. package/dist/esm/sdk/models/errors/getpersonappointments.js +54 -0
  237. package/dist/esm/sdk/models/errors/getpersonappointments.js.map +1 -1
  238. package/dist/esm/sdk/models/errors/getpersoncluster.d.ts +65 -0
  239. package/dist/esm/sdk/models/errors/getpersoncluster.d.ts.map +1 -1
  240. package/dist/esm/sdk/models/errors/getpersoncluster.js +54 -0
  241. package/dist/esm/sdk/models/errors/getpersoncluster.js.map +1 -1
  242. package/dist/esm/sdk/models/errors/getpsc.d.ts +65 -0
  243. package/dist/esm/sdk/models/errors/getpsc.d.ts.map +1 -1
  244. package/dist/esm/sdk/models/errors/getpsc.js +54 -0
  245. package/dist/esm/sdk/models/errors/getpsc.js.map +1 -1
  246. package/dist/esm/sdk/models/errors/querycompanies.d.ts +65 -0
  247. package/dist/esm/sdk/models/errors/querycompanies.d.ts.map +1 -1
  248. package/dist/esm/sdk/models/errors/querycompanies.js +54 -0
  249. package/dist/esm/sdk/models/errors/querycompanies.js.map +1 -1
  250. package/dist/esm/sdk/models/errors/querypersons.d.ts +65 -0
  251. package/dist/esm/sdk/models/errors/querypersons.d.ts.map +1 -1
  252. package/dist/esm/sdk/models/errors/querypersons.js +54 -0
  253. package/dist/esm/sdk/models/errors/querypersons.js.map +1 -1
  254. package/dist/esm/sdk/models/operations/getcompany.d.ts +2 -2
  255. package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts +4 -4
  256. package/dist/esm/sdk/models/shared/airqualityinstallations.d.ts.map +1 -1
  257. package/dist/esm/sdk/models/shared/airqualityinstallations.js +4 -5
  258. package/dist/esm/sdk/models/shared/airqualityinstallations.js.map +1 -1
  259. package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts +1 -0
  260. package/dist/esm/sdk/models/shared/appointmentsresponse.d.ts.map +1 -1
  261. package/dist/esm/sdk/models/shared/appointmentsresponse.js +1 -0
  262. package/dist/esm/sdk/models/shared/appointmentsresponse.js.map +1 -1
  263. package/dist/esm/sdk/models/shared/company.d.ts +19 -88
  264. package/dist/esm/sdk/models/shared/company.d.ts.map +1 -1
  265. package/dist/esm/sdk/models/shared/company.js +8 -51
  266. package/dist/esm/sdk/models/shared/company.js.map +1 -1
  267. package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts +5 -33
  268. package/dist/esm/sdk/models/shared/companyqueryrequest.d.ts.map +1 -1
  269. package/dist/esm/sdk/models/shared/companyqueryrequest.js +2 -18
  270. package/dist/esm/sdk/models/shared/companyqueryrequest.js.map +1 -1
  271. package/dist/esm/sdk/models/shared/companyresponse.d.ts +4 -0
  272. package/dist/esm/sdk/models/shared/companyresponse.d.ts.map +1 -1
  273. package/dist/esm/sdk/models/shared/companyresponse.js +1 -0
  274. package/dist/esm/sdk/models/shared/companyresponse.js.map +1 -1
  275. package/dist/esm/sdk/models/shared/companysummary.d.ts +18 -35
  276. package/dist/esm/sdk/models/shared/companysummary.d.ts.map +1 -1
  277. package/dist/esm/sdk/models/shared/companysummary.js +8 -21
  278. package/dist/esm/sdk/models/shared/companysummary.js.map +1 -1
  279. package/dist/esm/sdk/models/shared/index.d.ts +3 -0
  280. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  281. package/dist/esm/sdk/models/shared/index.js +3 -0
  282. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  283. package/dist/esm/sdk/models/shared/psc.d.ts +8 -4
  284. package/dist/esm/sdk/models/shared/psc.d.ts.map +1 -1
  285. package/dist/esm/sdk/models/shared/psc.js +3 -2
  286. package/dist/esm/sdk/models/shared/psc.js.map +1 -1
  287. package/dist/esm/sdk/models/shared/pscexemption.d.ts +33 -0
  288. package/dist/esm/sdk/models/shared/pscexemption.d.ts.map +1 -0
  289. package/dist/esm/sdk/models/shared/pscexemption.js +23 -0
  290. package/dist/esm/sdk/models/shared/pscexemption.js.map +1 -0
  291. package/dist/esm/sdk/models/shared/psclistresponse.d.ts +19 -1
  292. package/dist/esm/sdk/models/shared/psclistresponse.d.ts.map +1 -1
  293. package/dist/esm/sdk/models/shared/psclistresponse.js +6 -0
  294. package/dist/esm/sdk/models/shared/psclistresponse.js.map +1 -1
  295. package/dist/esm/sdk/models/shared/pscresponse.d.ts +4 -0
  296. package/dist/esm/sdk/models/shared/pscresponse.d.ts.map +1 -1
  297. package/dist/esm/sdk/models/shared/pscresponse.js +1 -0
  298. package/dist/esm/sdk/models/shared/pscresponse.js.map +1 -1
  299. package/dist/esm/sdk/models/shared/pscstatement.d.ts +32 -0
  300. package/dist/esm/sdk/models/shared/pscstatement.d.ts.map +1 -0
  301. package/dist/esm/sdk/models/shared/pscstatement.js +17 -0
  302. package/dist/esm/sdk/models/shared/pscstatement.js.map +1 -0
  303. package/dist/esm/sdk/models/shared/pscsummary.d.ts +8 -4
  304. package/dist/esm/sdk/models/shared/pscsummary.d.ts.map +1 -1
  305. package/dist/esm/sdk/models/shared/pscsummary.js +3 -2
  306. package/dist/esm/sdk/models/shared/pscsummary.js.map +1 -1
  307. package/dist/esm/sdk/models/shared/site.d.ts +1 -1
  308. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts +56 -0
  309. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.d.ts.map +1 -0
  310. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js +36 -0
  311. package/dist/esm/sdk/models/shared/siteplanningapplicationlink.js.map +1 -0
  312. package/dist/esm/sdk/models/shared/siteplanningstats.d.ts +19 -14
  313. package/dist/esm/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
  314. package/dist/esm/sdk/models/shared/siteplanningstats.js +3 -1
  315. package/dist/esm/sdk/models/shared/siteplanningstats.js.map +1 -1
  316. package/package.json +1 -1
  317. package/src/funcs/companiesGetCompaniesByLocation.ts +7 -0
  318. package/src/funcs/companiesGetCompany.ts +8 -1
  319. package/src/funcs/companiesGetCompanyOfficers.ts +7 -0
  320. package/src/funcs/companiesGetCompanyPscs.ts +16 -2
  321. package/src/funcs/companiesGetOfficer.ts +7 -0
  322. package/src/funcs/companiesGetPerson.ts +7 -0
  323. package/src/funcs/companiesGetPersonAppointments.ts +8 -0
  324. package/src/funcs/companiesGetPersonCluster.ts +7 -0
  325. package/src/funcs/companiesGetPsc.ts +4 -0
  326. package/src/funcs/companiesQueryCompanies.ts +12 -8
  327. package/src/funcs/companiesQueryPersons.ts +7 -0
  328. package/src/lib/config.ts +2 -2
  329. package/src/sdk/companies.ts +4 -4
  330. package/src/sdk/models/errors/getcompaniesbylocation.ts +140 -0
  331. package/src/sdk/models/errors/getcompany.ts +126 -0
  332. package/src/sdk/models/errors/getcompanyofficers.ts +136 -0
  333. package/src/sdk/models/errors/getcompanypscs.ts +265 -0
  334. package/src/sdk/models/errors/getofficer.ts +126 -0
  335. package/src/sdk/models/errors/getperson.ts +128 -0
  336. package/src/sdk/models/errors/getpersonappointments.ts +140 -0
  337. package/src/sdk/models/errors/getpersoncluster.ts +138 -0
  338. package/src/sdk/models/errors/getpsc.ts +127 -0
  339. package/src/sdk/models/errors/querycompanies.ts +129 -0
  340. package/src/sdk/models/errors/querypersons.ts +128 -0
  341. package/src/sdk/models/operations/getcompany.ts +2 -2
  342. package/src/sdk/models/shared/airqualityinstallations.ts +20 -17
  343. package/src/sdk/models/shared/appointmentsresponse.ts +1 -0
  344. package/src/sdk/models/shared/company.ts +25 -114
  345. package/src/sdk/models/shared/companyqueryrequest.ts +5 -39
  346. package/src/sdk/models/shared/companyresponse.ts +5 -0
  347. package/src/sdk/models/shared/companysummary.ts +24 -47
  348. package/src/sdk/models/shared/index.ts +3 -0
  349. package/src/sdk/models/shared/psc.ts +11 -6
  350. package/src/sdk/models/shared/pscexemption.ts +70 -0
  351. package/src/sdk/models/shared/psclistresponse.ts +23 -1
  352. package/src/sdk/models/shared/pscresponse.ts +5 -0
  353. package/src/sdk/models/shared/pscstatement.ts +57 -0
  354. package/src/sdk/models/shared/pscsummary.ts +11 -6
  355. package/src/sdk/models/shared/site.ts +1 -1
  356. package/src/sdk/models/shared/siteplanningapplicationlink.ts +92 -0
  357. package/src/sdk/models/shared/siteplanningstats.ts +24 -15
@@ -7,11 +7,12 @@ import { safeParse } from "../../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
8
  import { OpenEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { RFCDate } from "../../types/rfcdate.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
  import { SicCode, SicCode$inboundSchema } from "./siccode.js";
12
13
 
13
14
  /**
14
- * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
15
+ * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
15
16
  */
16
17
  export const CompanySummaryCompanyStatus = {
17
18
  Active: "active",
@@ -26,16 +27,17 @@ export const CompanySummaryCompanyStatus = {
26
27
  Closed: "closed",
27
28
  Registered: "registered",
28
29
  Removed: "removed",
30
+ NotInLatestRegister: "not-in-latest-register",
29
31
  } as const;
30
32
  /**
31
- * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
33
+ * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
32
34
  */
33
35
  export type CompanySummaryCompanyStatus = OpenEnum<
34
36
  typeof CompanySummaryCompanyStatus
35
37
  >;
36
38
 
37
39
  /**
38
- * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
40
+ * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
39
41
  */
40
42
  export const CompanySummaryCompanyType = {
41
43
  PrivateUnlimited: "private-unlimited",
@@ -82,32 +84,12 @@ export const CompanySummaryCompanyType = {
82
84
  RegisteredOverseasEntity: "registered-overseas-entity",
83
85
  } as const;
84
86
  /**
85
- * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
87
+ * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
86
88
  */
87
89
  export type CompanySummaryCompanyType = OpenEnum<
88
90
  typeof CompanySummaryCompanyType
89
91
  >;
90
92
 
91
- /**
92
- * The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
93
- */
94
- export const CompanySummaryJurisdiction = {
95
- EnglandWales: "england-wales",
96
- Wales: "wales",
97
- Scotland: "scotland",
98
- NorthernIreland: "northern-ireland",
99
- EuropeanUnion: "european-union",
100
- UnitedKingdom: "united-kingdom",
101
- England: "england",
102
- Noneu: "noneu",
103
- } as const;
104
- /**
105
- * The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
106
- */
107
- export type CompanySummaryJurisdiction = OpenEnum<
108
- typeof CompanySummaryJurisdiction
109
- >;
110
-
111
93
  /**
112
94
  * The company's registered office address. Not returned in list responses; fetch the company by its number to read it.
113
95
  */
@@ -167,33 +149,33 @@ export type CompanySummary = {
167
149
  */
168
150
  companyNumber: string;
169
151
  /**
170
- * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`.
152
+ * Where the company stands on the Companies House register. `active` and `registered` are live, `dissolved` and `removed` have left the register, and `liquidation`, `receivership`, `administration`, `voluntary-arrangement` and `insolvency-proceedings` are stages of insolvency. Overseas entities use `open` and `closed` rather than `active` and `dissolved`. `not-in-latest-register` means the latest monthly release of the register, which lists live companies only, no longer lists the company; the status it last carried no longer applies, and notInLatestRegisterSince gives the release it first went missing from. Null when the register records no status for the company.
171
153
  */
172
- companyStatus: CompanySummaryCompanyStatus;
154
+ companyStatus: CompanySummaryCompanyStatus | null;
173
155
  /**
174
- * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types.
156
+ * The legal structure the entity is registered under. Most companies are `ltd` (private company limited by shares), `plc` (public limited company) or `llp` (limited liability partnership); the remaining values cover overseas entities, investment vehicles, charitable forms and older company types. Null when the register records no type for the company.
175
157
  */
176
- companyType: CompanySummaryCompanyType;
158
+ companyType: CompanySummaryCompanyType | null;
177
159
  /**
178
160
  * True when the company has charges registered against it.
179
161
  */
180
162
  hasCharges: boolean;
181
- /**
182
- * True when the register holds insolvency events for the company.
183
- */
184
- hasInsolvencyHistory: boolean;
185
163
  /**
186
164
  * When the company came into legal existence, as an ISO 8601 date.
187
165
  */
188
166
  incorporationDate?: Date | null | undefined;
189
- /**
190
- * The UK jurisdiction the company is registered in, which sets the legal framework that applies to it and the Companies House office that holds the record. Most companies are `england-wales`.
191
- */
192
- jurisdiction: CompanySummaryJurisdiction;
193
167
  /**
194
168
  * Identifier for a single addressable location. In Great Britain this is the Unique Property Reference Number (UPRN). Null when the registered office address could not be matched to one.
195
169
  */
196
170
  locationId?: string | null | undefined;
171
+ /**
172
+ * The release date of the first monthly release of the register that no longer listed the company, as an ISO 8601 date. The release lists live companies only, so this marks when the company stopped being listed; it is not a dissolution date. Null while the latest release lists the company, and companyStatus is `not-in-latest-register` whenever it is set.
173
+ */
174
+ notInLatestRegisterSince?: RFCDate | null | undefined;
175
+ /**
176
+ * The company's status exactly as Companies House published it in the latest monthly release of the register that listed the company, such as `Active - Proposal to Strike off`. It keeps detail that companyStatus groups together. Null when no published status is held for the company.
177
+ */
178
+ registerStatus?: string | null | undefined;
197
179
  /**
198
180
  * The company's registered office address. Not returned in list responses; fetch the company by its number to read it.
199
181
  */
@@ -221,13 +203,6 @@ export const CompanySummaryCompanyType$inboundSchema: z.ZodType<
221
203
  unknown
222
204
  > = openEnums.inboundSchema(CompanySummaryCompanyType);
223
205
 
224
- /** @internal */
225
- export const CompanySummaryJurisdiction$inboundSchema: z.ZodType<
226
- CompanySummaryJurisdiction,
227
- z.ZodTypeDef,
228
- unknown
229
- > = openEnums.inboundSchema(CompanySummaryJurisdiction);
230
-
231
206
  /** @internal */
232
207
  export const CompanySummaryRegisteredOfficeAddress$inboundSchema: z.ZodType<
233
208
  CompanySummaryRegisteredOfficeAddress,
@@ -265,15 +240,17 @@ export const CompanySummary$inboundSchema: z.ZodType<
265
240
  > = z.object({
266
241
  companyName: z.string(),
267
242
  companyNumber: z.string(),
268
- companyStatus: CompanySummaryCompanyStatus$inboundSchema,
269
- companyType: CompanySummaryCompanyType$inboundSchema,
243
+ companyStatus: z.nullable(CompanySummaryCompanyStatus$inboundSchema),
244
+ companyType: z.nullable(CompanySummaryCompanyType$inboundSchema),
270
245
  hasCharges: z.boolean(),
271
- hasInsolvencyHistory: z.boolean(),
272
246
  incorporationDate: z.nullable(
273
247
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
274
248
  ).optional(),
275
- jurisdiction: CompanySummaryJurisdiction$inboundSchema,
276
249
  locationId: z.nullable(z.string()).optional(),
250
+ notInLatestRegisterSince: z.nullable(
251
+ z.string().transform(v => new RFCDate(v)),
252
+ ).optional(),
253
+ registerStatus: z.nullable(z.string()).optional(),
277
254
  registeredOfficeAddress: z.nullable(
278
255
  z.lazy(() => CompanySummaryRegisteredOfficeAddress$inboundSchema),
279
256
  ).optional(),
@@ -346,8 +346,10 @@ export * from "./prosperityindicator.js";
346
346
  export * from "./prosperitylistresponse.js";
347
347
  export * from "./provenance.js";
348
348
  export * from "./psc.js";
349
+ export * from "./pscexemption.js";
349
350
  export * from "./psclistresponse.js";
350
351
  export * from "./pscresponse.js";
352
+ export * from "./pscstatement.js";
351
353
  export * from "./pscsummary.js";
352
354
  export * from "./purchasestatus.js";
353
355
  export * from "./rangedefinition.js";
@@ -413,6 +415,7 @@ export * from "./siteleafaggregation.js";
413
415
  export * from "./sitelistresponse.js";
414
416
  export * from "./sitemultipolygonareafilter.js";
415
417
  export * from "./sitenestedaggregation.js";
418
+ export * from "./siteplanningapplicationlink.js";
416
419
  export * from "./siteplanningstats.js";
417
420
  export * from "./sitepointareafilter.js";
418
421
  export * from "./sitepolygonareafilter.js";
@@ -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)),
@@ -361,7 +361,7 @@ export type Site = {
361
361
  */
362
362
  ownership?: Ownership | null | undefined;
363
363
  /**
364
- * Statistics across the planning applications whose boundary intersects this site. Null when none intersect it.
364
+ * The planning applications linked to this site, with counts. Null when no application is linked.
365
365
  */
366
366
  planning?: SitePlanningStats | null | undefined;
367
367
  /**
@@ -0,0 +1,92 @@
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 * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
14
+ */
15
+ export const Relationship = {
16
+ ApplicationWithinTitle: "application_within_title",
17
+ TitleWithinApplication: "title_within_application",
18
+ Partial: "partial",
19
+ } as const;
20
+ /**
21
+ * How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
22
+ */
23
+ export type Relationship = OpenEnum<typeof Relationship>;
24
+
25
+ export const Routes = {
26
+ SiteId: "siteId",
27
+ UprnLinks: "uprnLinks",
28
+ Spatial: "spatial",
29
+ } as const;
30
+ export type Routes = OpenEnum<typeof Routes>;
31
+
32
+ export type SitePlanningApplicationLink = {
33
+ /**
34
+ * Land area inside the application boundary, in square metres to one decimal place. Null when the application has no boundary or its boundary does not lie in Great Britain.
35
+ */
36
+ applicationAreaSqm?: number | null | undefined;
37
+ /**
38
+ * Identifier of the planning application. Pass it to GET /v1/planning/{applicationIds} to fetch it.
39
+ */
40
+ id?: string | undefined;
41
+ /**
42
+ * Share of the application boundary's land area that falls on this title, as a percentage from 0 to 100 to one decimal place. Null when 'spatial' is not in routes.
43
+ */
44
+ overlapPctOfApplication?: number | null | undefined;
45
+ /**
46
+ * Share of the title's land area covered by the application boundary, as a percentage from 0 to 100 to one decimal place. Null when 'spatial' is not in routes.
47
+ */
48
+ overlapPctOfTitle?: number | null | undefined;
49
+ /**
50
+ * How the application boundary sits against the title boundary: 'application_within_title' when the application lies inside the title, 'title_within_application' when the whole title lies inside the application, and 'partial' when the two overlap in part. Boundaries that only meet along a shared edge do not count as overlapping. Null when 'spatial' is not in routes.
51
+ */
52
+ relationship?: Relationship | null | undefined;
53
+ /**
54
+ * Every way this application was found on the title: 'siteId' when the application is recorded against this site, 'uprnLinks' when the application's property is one the title covers, and 'spatial' when the application boundary overlaps the title boundary. An application found by more than one route lists each of them.
55
+ */
56
+ routes?: Array<Routes> | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const Relationship$inboundSchema: z.ZodType<
61
+ Relationship,
62
+ z.ZodTypeDef,
63
+ unknown
64
+ > = openEnums.inboundSchema(Relationship);
65
+
66
+ /** @internal */
67
+ export const Routes$inboundSchema: z.ZodType<Routes, z.ZodTypeDef, unknown> =
68
+ openEnums.inboundSchema(Routes);
69
+
70
+ /** @internal */
71
+ export const SitePlanningApplicationLink$inboundSchema: z.ZodType<
72
+ SitePlanningApplicationLink,
73
+ z.ZodTypeDef,
74
+ unknown
75
+ > = z.object({
76
+ applicationAreaSqm: z.nullable(z.number()).optional(),
77
+ id: z.string().optional(),
78
+ overlapPctOfApplication: z.nullable(z.number()).optional(),
79
+ overlapPctOfTitle: z.nullable(z.number()).optional(),
80
+ relationship: z.nullable(Relationship$inboundSchema).optional(),
81
+ routes: z.array(Routes$inboundSchema).optional(),
82
+ });
83
+
84
+ export function sitePlanningApplicationLinkFromJSON(
85
+ jsonString: string,
86
+ ): SafeParseResult<SitePlanningApplicationLink, SDKValidationError> {
87
+ return safeParse(
88
+ jsonString,
89
+ (x) => SitePlanningApplicationLink$inboundSchema.parse(JSON.parse(x)),
90
+ `Failed to parse 'SitePlanningApplicationLink' from JSON`,
91
+ );
92
+ }