@gbg/go-core 0.1.3 → 0.2.0-alpha.1

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 (918) hide show
  1. package/FUNCTIONS.md +6 -4
  2. package/README.md +159 -59
  3. package/dist/commonjs/funcs/addresses-retrieve.d.ts +19 -0
  4. package/dist/commonjs/funcs/addresses-retrieve.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/{tasks-list.js → addresses-retrieve.js} +21 -10
  6. package/dist/commonjs/funcs/addresses-retrieve.js.map +1 -0
  7. package/dist/{esm/funcs/tasks-list-schema.d.ts → commonjs/funcs/addresses-search.d.ts} +6 -6
  8. package/dist/commonjs/funcs/addresses-search.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/{tasks-update.js → addresses-search.js} +21 -10
  10. package/dist/commonjs/funcs/addresses-search.js.map +1 -0
  11. package/dist/commonjs/funcs/devices-add.d.ts +5 -3
  12. package/dist/commonjs/funcs/devices-add.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/devices-add.js +8 -3
  14. package/dist/commonjs/funcs/devices-add.js.map +1 -1
  15. package/dist/commonjs/funcs/devices-connect.d.ts +5 -3
  16. package/dist/commonjs/funcs/devices-connect.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/devices-connect.js +9 -5
  18. package/dist/commonjs/funcs/devices-connect.js.map +1 -1
  19. package/dist/{esm/funcs/health-get.d.ts → commonjs/funcs/devices-refresh.d.ts} +6 -5
  20. package/dist/commonjs/funcs/devices-refresh.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/{health-get.js → devices-refresh.js} +16 -17
  22. package/dist/commonjs/funcs/devices-refresh.js.map +1 -0
  23. package/dist/commonjs/funcs/{health-get.d.ts → devices-validate.d.ts} +6 -4
  24. package/dist/commonjs/funcs/devices-validate.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/devices-validate.js +113 -0
  26. package/dist/commonjs/funcs/devices-validate.js.map +1 -0
  27. package/dist/commonjs/funcs/instances-delete.d.ts +5 -3
  28. package/dist/commonjs/funcs/instances-delete.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/instances-delete.js +8 -3
  30. package/dist/commonjs/funcs/instances-delete.js.map +1 -1
  31. package/dist/commonjs/funcs/instances-handoff-token.d.ts +19 -0
  32. package/dist/commonjs/funcs/instances-handoff-token.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/instances-handoff-token.js +130 -0
  34. package/dist/commonjs/funcs/instances-handoff-token.js.map +1 -0
  35. package/dist/commonjs/funcs/interactions-fetch.d.ts +4 -3
  36. package/dist/commonjs/funcs/interactions-fetch.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/interactions-fetch.js +18 -6
  38. package/dist/commonjs/funcs/interactions-fetch.js.map +1 -1
  39. package/dist/commonjs/funcs/interactions-submit.d.ts +5 -3
  40. package/dist/commonjs/funcs/interactions-submit.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/interactions-submit.js +14 -3
  42. package/dist/commonjs/funcs/interactions-submit.js.map +1 -1
  43. package/dist/commonjs/funcs/interactions-upload-asset.d.ts +18 -0
  44. package/dist/commonjs/funcs/interactions-upload-asset.d.ts.map +1 -0
  45. package/dist/commonjs/funcs/interactions-upload-asset.js +119 -0
  46. package/dist/commonjs/funcs/interactions-upload-asset.js.map +1 -0
  47. package/dist/commonjs/funcs/journeys-get-schemas.d.ts +46 -0
  48. package/dist/commonjs/funcs/journeys-get-schemas.d.ts.map +1 -0
  49. package/dist/commonjs/funcs/journeys-get-schemas.js +150 -0
  50. package/dist/commonjs/funcs/journeys-get-schemas.js.map +1 -0
  51. package/dist/commonjs/funcs/journeys-get-state.d.ts +4 -3
  52. package/dist/commonjs/funcs/journeys-get-state.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/journeys-get-state.js +12 -6
  54. package/dist/commonjs/funcs/journeys-get-state.js.map +1 -1
  55. package/dist/commonjs/funcs/journeys-start.d.ts +5 -3
  56. package/dist/commonjs/funcs/journeys-start.d.ts.map +1 -1
  57. package/dist/commonjs/funcs/journeys-start.js +8 -3
  58. package/dist/commonjs/funcs/journeys-start.js.map +1 -1
  59. package/dist/commonjs/funcs/journeys-terminate.d.ts +21 -0
  60. package/dist/commonjs/funcs/journeys-terminate.d.ts.map +1 -0
  61. package/dist/commonjs/funcs/{tasks-list-schema.js → journeys-terminate.js} +14 -9
  62. package/dist/commonjs/funcs/journeys-terminate.js.map +1 -0
  63. package/dist/commonjs/funcs/tasks-get-schema.d.ts +8 -3
  64. package/dist/commonjs/funcs/tasks-get-schema.d.ts.map +1 -1
  65. package/dist/commonjs/funcs/tasks-get-schema.js +9 -3
  66. package/dist/commonjs/funcs/tasks-get-schema.js.map +1 -1
  67. package/dist/commonjs/funcs/test-scenarios-create.d.ts +21 -0
  68. package/dist/commonjs/funcs/test-scenarios-create.d.ts.map +1 -0
  69. package/dist/commonjs/funcs/test-scenarios-create.js +129 -0
  70. package/dist/commonjs/funcs/test-scenarios-create.js.map +1 -0
  71. package/dist/commonjs/funcs/test-scenarios-delete.d.ts +20 -0
  72. package/dist/commonjs/funcs/test-scenarios-delete.d.ts.map +1 -0
  73. package/dist/commonjs/funcs/test-scenarios-delete.js +131 -0
  74. package/dist/commonjs/funcs/test-scenarios-delete.js.map +1 -0
  75. package/dist/commonjs/funcs/test-scenarios-get.d.ts +21 -0
  76. package/dist/commonjs/funcs/test-scenarios-get.d.ts.map +1 -0
  77. package/dist/commonjs/funcs/test-scenarios-get.js +136 -0
  78. package/dist/commonjs/funcs/test-scenarios-get.js.map +1 -0
  79. package/dist/commonjs/funcs/test-scenarios-list.d.ts +21 -0
  80. package/dist/commonjs/funcs/test-scenarios-list.d.ts.map +1 -0
  81. package/dist/commonjs/funcs/test-scenarios-list.js +132 -0
  82. package/dist/commonjs/funcs/test-scenarios-list.js.map +1 -0
  83. package/dist/commonjs/funcs/test-scenarios-put.d.ts +21 -0
  84. package/dist/commonjs/funcs/test-scenarios-put.d.ts.map +1 -0
  85. package/dist/commonjs/funcs/test-scenarios-put.js +133 -0
  86. package/dist/commonjs/funcs/test-scenarios-put.js.map +1 -0
  87. package/dist/commonjs/funcs/tokens-generate.d.ts +2 -1
  88. package/dist/commonjs/funcs/tokens-generate.d.ts.map +1 -1
  89. package/dist/commonjs/funcs/tokens-generate.js +6 -2
  90. package/dist/commonjs/funcs/tokens-generate.js.map +1 -1
  91. package/dist/commonjs/lib/config.d.ts +4 -4
  92. package/dist/commonjs/lib/config.d.ts.map +1 -1
  93. package/dist/commonjs/lib/config.js +13 -4
  94. package/dist/commonjs/lib/config.js.map +1 -1
  95. package/dist/commonjs/models/create-test-scenario-request.d.ts +29 -0
  96. package/dist/commonjs/models/create-test-scenario-request.d.ts.map +1 -0
  97. package/dist/commonjs/models/create-test-scenario-request.js +56 -0
  98. package/dist/commonjs/models/create-test-scenario-request.js.map +1 -0
  99. package/dist/commonjs/models/delete-response.d.ts +19 -0
  100. package/dist/commonjs/models/delete-response.d.ts.map +1 -0
  101. package/dist/commonjs/models/delete-response.js +57 -0
  102. package/dist/commonjs/models/delete-response.js.map +1 -0
  103. package/dist/commonjs/models/device-connect-request.d.ts +29 -0
  104. package/dist/commonjs/models/device-connect-request.d.ts.map +1 -0
  105. package/dist/commonjs/models/device-connect-request.js +59 -0
  106. package/dist/commonjs/models/device-connect-request.js.map +1 -0
  107. package/dist/commonjs/models/device-connect-response.d.ts +25 -0
  108. package/dist/commonjs/models/device-connect-response.d.ts.map +1 -0
  109. package/dist/commonjs/models/device-connect-response.js +63 -0
  110. package/dist/commonjs/models/device-connect-response.js.map +1 -0
  111. package/dist/commonjs/models/device-refresh-response.d.ts +16 -0
  112. package/dist/commonjs/models/device-refresh-response.d.ts.map +1 -0
  113. package/dist/commonjs/models/device-refresh-response.js +56 -0
  114. package/dist/commonjs/models/device-refresh-response.js.map +1 -0
  115. package/dist/commonjs/models/device-start-response.d.ts +20 -0
  116. package/dist/commonjs/models/device-start-response.d.ts.map +1 -0
  117. package/dist/commonjs/models/device-start-response.js +58 -0
  118. package/dist/commonjs/models/device-start-response.js.map +1 -0
  119. package/dist/commonjs/models/device-validate-response.d.ts +14 -0
  120. package/dist/commonjs/models/device-validate-response.d.ts.map +1 -0
  121. package/dist/commonjs/models/device-validate-response.js +54 -0
  122. package/dist/commonjs/models/device-validate-response.js.map +1 -0
  123. package/dist/commonjs/models/errors/error-response.d.ts +19 -0
  124. package/dist/commonjs/models/errors/error-response.d.ts.map +1 -0
  125. package/dist/commonjs/models/errors/error-response.js +68 -0
  126. package/dist/commonjs/models/errors/error-response.js.map +1 -0
  127. package/dist/commonjs/models/errors/index.d.ts +2 -0
  128. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  129. package/dist/commonjs/models/errors/index.js +2 -0
  130. package/dist/commonjs/models/errors/index.js.map +1 -1
  131. package/dist/commonjs/models/errors/o-auth-error-response.d.ts +32 -0
  132. package/dist/commonjs/models/errors/o-auth-error-response.d.ts.map +1 -0
  133. package/dist/commonjs/models/errors/o-auth-error-response.js +75 -0
  134. package/dist/commonjs/models/errors/o-auth-error-response.js.map +1 -0
  135. package/dist/commonjs/models/gbg-error.d.ts +28 -0
  136. package/dist/commonjs/models/gbg-error.d.ts.map +1 -0
  137. package/dist/commonjs/models/gbg-error.js +68 -0
  138. package/dist/commonjs/models/gbg-error.js.map +1 -0
  139. package/dist/commonjs/models/handoff-token-response.d.ts +20 -0
  140. package/dist/commonjs/models/handoff-token-response.d.ts.map +1 -0
  141. package/dist/commonjs/models/handoff-token-response.js +59 -0
  142. package/dist/commonjs/models/handoff-token-response.js.map +1 -0
  143. package/dist/commonjs/models/index.d.ts +33 -0
  144. package/dist/commonjs/models/index.d.ts.map +1 -1
  145. package/dist/commonjs/models/index.js +33 -0
  146. package/dist/commonjs/models/index.js.map +1 -1
  147. package/dist/commonjs/models/interaction-fetch-response.d.ts +40 -0
  148. package/dist/commonjs/models/interaction-fetch-response.d.ts.map +1 -0
  149. package/dist/commonjs/models/interaction-fetch-response.js +78 -0
  150. package/dist/commonjs/models/interaction-fetch-response.js.map +1 -0
  151. package/dist/commonjs/models/interaction-submit-response.d.ts +17 -0
  152. package/dist/commonjs/models/interaction-submit-response.d.ts.map +1 -0
  153. package/dist/commonjs/models/interaction-submit-response.js +55 -0
  154. package/dist/commonjs/models/interaction-submit-response.js.map +1 -0
  155. package/dist/commonjs/models/journey-start-response.d.ts +34 -0
  156. package/dist/commonjs/models/journey-start-response.d.ts.map +1 -0
  157. package/dist/commonjs/models/journey-start-response.js +67 -0
  158. package/dist/commonjs/models/journey-start-response.js.map +1 -0
  159. package/dist/commonjs/models/loqate-retrieve-response.d.ts +12 -0
  160. package/dist/commonjs/models/loqate-retrieve-response.d.ts.map +1 -0
  161. package/dist/commonjs/models/loqate-retrieve-response.js +55 -0
  162. package/dist/commonjs/models/loqate-retrieve-response.js.map +1 -0
  163. package/dist/commonjs/models/loqate-search-response.d.ts +12 -0
  164. package/dist/commonjs/models/loqate-search-response.d.ts.map +1 -0
  165. package/dist/commonjs/models/loqate-search-response.js +55 -0
  166. package/dist/commonjs/models/loqate-search-response.js.map +1 -0
  167. package/dist/commonjs/models/operations/add-device.d.ts +8 -92
  168. package/dist/commonjs/models/operations/add-device.d.ts.map +1 -1
  169. package/dist/commonjs/models/operations/add-device.js +6 -76
  170. package/dist/commonjs/models/operations/add-device.js.map +1 -1
  171. package/dist/commonjs/models/operations/create-handoff-token.d.ts +22 -0
  172. package/dist/commonjs/models/operations/create-handoff-token.d.ts.map +1 -0
  173. package/dist/commonjs/models/operations/create-handoff-token.js +62 -0
  174. package/dist/commonjs/models/operations/create-handoff-token.js.map +1 -0
  175. package/dist/commonjs/models/operations/create-test-scenario.d.ts +18 -0
  176. package/dist/commonjs/models/operations/create-test-scenario.d.ts.map +1 -0
  177. package/dist/commonjs/models/operations/create-test-scenario.js +51 -0
  178. package/dist/commonjs/models/operations/create-test-scenario.js.map +1 -0
  179. package/dist/commonjs/models/operations/delete-instance.d.ts +1 -14
  180. package/dist/commonjs/models/operations/delete-instance.d.ts.map +1 -1
  181. package/dist/commonjs/models/operations/delete-instance.js +3 -13
  182. package/dist/commonjs/models/operations/delete-instance.js.map +1 -1
  183. package/dist/commonjs/models/operations/delete-test-scenario.d.ts +20 -0
  184. package/dist/commonjs/models/operations/delete-test-scenario.d.ts.map +1 -0
  185. package/dist/commonjs/models/operations/delete-test-scenario.js +50 -0
  186. package/dist/commonjs/models/operations/delete-test-scenario.js.map +1 -0
  187. package/dist/commonjs/models/operations/device-connect.d.ts +0 -91
  188. package/dist/commonjs/models/operations/device-connect.d.ts.map +1 -1
  189. package/dist/commonjs/models/operations/device-connect.js +1 -69
  190. package/dist/commonjs/models/operations/device-connect.js.map +1 -1
  191. package/dist/commonjs/models/operations/device-validate.d.ts +12 -0
  192. package/dist/commonjs/models/operations/device-validate.d.ts.map +1 -0
  193. package/dist/commonjs/models/operations/device-validate.js +54 -0
  194. package/dist/commonjs/models/operations/device-validate.js.map +1 -0
  195. package/dist/commonjs/models/operations/fetch-interaction.d.ts +35 -1621
  196. package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
  197. package/dist/commonjs/models/operations/fetch-interaction.js +24 -1336
  198. package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
  199. package/dist/commonjs/models/operations/get-journey-schemas.d.ts +16 -0
  200. package/dist/commonjs/models/operations/get-journey-schemas.d.ts.map +1 -0
  201. package/dist/commonjs/models/operations/get-journey-schemas.js +51 -0
  202. package/dist/commonjs/models/operations/get-journey-schemas.js.map +1 -0
  203. package/dist/commonjs/models/operations/get-journey-state.d.ts +19 -1383
  204. package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
  205. package/dist/commonjs/models/operations/get-journey-state.js +15 -1068
  206. package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
  207. package/dist/commonjs/models/operations/get-task-schema.d.ts +1 -17
  208. package/dist/commonjs/models/operations/get-task-schema.d.ts.map +1 -1
  209. package/dist/commonjs/models/operations/get-task-schema.js +1 -19
  210. package/dist/commonjs/models/operations/get-task-schema.js.map +1 -1
  211. package/dist/commonjs/models/operations/get-test-scenario.d.ts +39 -0
  212. package/dist/commonjs/models/operations/get-test-scenario.d.ts.map +1 -0
  213. package/dist/commonjs/models/operations/get-test-scenario.js +60 -0
  214. package/dist/commonjs/models/operations/get-test-scenario.js.map +1 -0
  215. package/dist/commonjs/models/operations/index.d.ts +12 -4
  216. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  217. package/dist/commonjs/models/operations/index.js +12 -4
  218. package/dist/commonjs/models/operations/index.js.map +1 -1
  219. package/dist/commonjs/models/operations/list-test-scenarios.d.ts +34 -0
  220. package/dist/commonjs/models/operations/list-test-scenarios.d.ts.map +1 -0
  221. package/dist/commonjs/models/operations/list-test-scenarios.js +59 -0
  222. package/dist/commonjs/models/operations/list-test-scenarios.js.map +1 -0
  223. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts +2 -2
  224. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  225. package/dist/commonjs/models/operations/post-as-token-oauth2.js +4 -5
  226. package/dist/commonjs/models/operations/post-as-token-oauth2.js.map +1 -1
  227. package/dist/commonjs/models/operations/put-test-scenario.d.ts +23 -0
  228. package/dist/commonjs/models/operations/put-test-scenario.d.ts.map +1 -0
  229. package/dist/commonjs/models/operations/put-test-scenario.js +52 -0
  230. package/dist/commonjs/models/operations/put-test-scenario.js.map +1 -0
  231. package/dist/commonjs/models/operations/retrieve-address.d.ts +29 -0
  232. package/dist/commonjs/models/operations/retrieve-address.d.ts.map +1 -0
  233. package/dist/commonjs/models/operations/retrieve-address.js +65 -0
  234. package/dist/commonjs/models/operations/retrieve-address.js.map +1 -0
  235. package/dist/commonjs/models/operations/search-addresses.d.ts +33 -0
  236. package/dist/commonjs/models/operations/search-addresses.d.ts.map +1 -0
  237. package/dist/commonjs/models/operations/search-addresses.js +67 -0
  238. package/dist/commonjs/models/operations/search-addresses.js.map +1 -0
  239. package/dist/commonjs/models/operations/start-journey.d.ts +1214 -112
  240. package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
  241. package/dist/commonjs/models/operations/start-journey.js +602 -66
  242. package/dist/commonjs/models/operations/start-journey.js.map +1 -1
  243. package/dist/commonjs/models/operations/submit-interaction.d.ts +1074 -92
  244. package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
  245. package/dist/commonjs/models/operations/submit-interaction.js +535 -51
  246. package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
  247. package/dist/commonjs/models/operations/terminate-journey.d.ts +19 -0
  248. package/dist/commonjs/models/operations/terminate-journey.d.ts.map +1 -0
  249. package/dist/commonjs/models/operations/terminate-journey.js +50 -0
  250. package/dist/commonjs/models/operations/terminate-journey.js.map +1 -0
  251. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts +26 -0
  252. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts.map +1 -0
  253. package/dist/commonjs/models/operations/upload-interaction-asset.js +66 -0
  254. package/dist/commonjs/models/operations/upload-interaction-asset.js.map +1 -0
  255. package/dist/commonjs/models/outstanding-group.d.ts +15 -0
  256. package/dist/commonjs/models/outstanding-group.d.ts.map +1 -0
  257. package/dist/commonjs/models/{operations/health.js → outstanding-group.js} +11 -10
  258. package/dist/commonjs/models/outstanding-group.js.map +1 -0
  259. package/dist/commonjs/models/schema-fetch-response.d.ts +22 -0
  260. package/dist/commonjs/models/schema-fetch-response.d.ts.map +1 -0
  261. package/dist/commonjs/models/schema-fetch-response.js +62 -0
  262. package/dist/commonjs/models/schema-fetch-response.js.map +1 -0
  263. package/dist/commonjs/models/slim-document.d.ts +57 -0
  264. package/dist/commonjs/models/slim-document.d.ts.map +1 -0
  265. package/dist/commonjs/models/slim-document.js +92 -0
  266. package/dist/commonjs/models/slim-document.js.map +1 -0
  267. package/dist/commonjs/models/slim-extraction.d.ts +74 -0
  268. package/dist/commonjs/models/slim-extraction.d.ts.map +1 -0
  269. package/dist/commonjs/models/slim-extraction.js +128 -0
  270. package/dist/commonjs/models/slim-extraction.js.map +1 -0
  271. package/dist/commonjs/models/slim-identity.d.ts +202 -0
  272. package/dist/commonjs/models/slim-identity.d.ts.map +1 -0
  273. package/dist/commonjs/models/slim-identity.js +142 -0
  274. package/dist/commonjs/models/slim-identity.js.map +1 -0
  275. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts +46 -0
  276. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts.map +1 -0
  277. package/dist/commonjs/models/slim-interaction-fetch-response.js +87 -0
  278. package/dist/commonjs/models/slim-interaction-fetch-response.js.map +1 -0
  279. package/dist/commonjs/models/slim-journey.d.ts +14 -0
  280. package/dist/commonjs/models/slim-journey.d.ts.map +1 -0
  281. package/dist/commonjs/models/slim-journey.js +55 -0
  282. package/dist/commonjs/models/slim-journey.js.map +1 -0
  283. package/dist/commonjs/models/slim-module-step-error.d.ts +50 -0
  284. package/dist/commonjs/models/slim-module-step-error.d.ts.map +1 -0
  285. package/dist/commonjs/models/slim-module-step-error.js +79 -0
  286. package/dist/commonjs/models/slim-module-step-error.js.map +1 -0
  287. package/dist/commonjs/models/slim-result.d.ts +49 -0
  288. package/dist/commonjs/models/slim-result.d.ts.map +1 -0
  289. package/dist/commonjs/models/slim-result.js +76 -0
  290. package/dist/commonjs/models/slim-result.js.map +1 -0
  291. package/dist/commonjs/models/slim-state-fetch-response.d.ts +27 -0
  292. package/dist/commonjs/models/slim-state-fetch-response.d.ts.map +1 -0
  293. package/dist/commonjs/models/slim-state-fetch-response.js +66 -0
  294. package/dist/commonjs/models/slim-state-fetch-response.js.map +1 -0
  295. package/dist/commonjs/models/slim-step.d.ts +40 -0
  296. package/dist/commonjs/models/slim-step.d.ts.map +1 -0
  297. package/dist/commonjs/models/slim-step.js +73 -0
  298. package/dist/commonjs/models/slim-step.js.map +1 -0
  299. package/dist/commonjs/models/slim-validation.d.ts +69 -0
  300. package/dist/commonjs/models/slim-validation.d.ts.map +1 -0
  301. package/dist/commonjs/models/slim-validation.js +121 -0
  302. package/dist/commonjs/models/slim-validation.js.map +1 -0
  303. package/dist/commonjs/models/slim-verified-data.d.ts +16 -0
  304. package/dist/commonjs/models/slim-verified-data.d.ts.map +1 -0
  305. package/dist/commonjs/models/slim-verified-data.js +53 -0
  306. package/dist/commonjs/models/slim-verified-data.js.map +1 -0
  307. package/dist/commonjs/models/state-fetch-response.d.ts +25 -0
  308. package/dist/commonjs/models/state-fetch-response.d.ts.map +1 -0
  309. package/dist/commonjs/models/state-fetch-response.js +59 -0
  310. package/dist/commonjs/models/state-fetch-response.js.map +1 -0
  311. package/dist/commonjs/models/terminate-response.d.ts +10 -0
  312. package/dist/commonjs/models/terminate-response.d.ts.map +1 -0
  313. package/dist/commonjs/models/terminate-response.js +50 -0
  314. package/dist/commonjs/models/terminate-response.js.map +1 -0
  315. package/dist/commonjs/models/test-scenario-summary.d.ts +29 -0
  316. package/dist/commonjs/models/test-scenario-summary.d.ts.map +1 -0
  317. package/dist/commonjs/models/test-scenario-summary.js +62 -0
  318. package/dist/commonjs/models/test-scenario-summary.js.map +1 -0
  319. package/dist/commonjs/models/test-scenario-written.d.ts +19 -0
  320. package/dist/commonjs/models/test-scenario-written.d.ts.map +1 -0
  321. package/dist/commonjs/models/test-scenario-written.js +57 -0
  322. package/dist/commonjs/models/test-scenario-written.js.map +1 -0
  323. package/dist/commonjs/models/test-scenario.d.ts +31 -0
  324. package/dist/commonjs/models/test-scenario.d.ts.map +1 -0
  325. package/dist/commonjs/models/test-scenario.js +62 -0
  326. package/dist/commonjs/models/test-scenario.js.map +1 -0
  327. package/dist/commonjs/models/update-test-scenario-request.d.ts +24 -0
  328. package/dist/commonjs/models/update-test-scenario-request.d.ts.map +1 -0
  329. package/dist/commonjs/models/update-test-scenario-request.js +55 -0
  330. package/dist/commonjs/models/update-test-scenario-request.js.map +1 -0
  331. package/dist/commonjs/sdk/addresses.d.ts +20 -0
  332. package/dist/commonjs/sdk/addresses.d.ts.map +1 -0
  333. package/dist/commonjs/sdk/addresses.js +32 -0
  334. package/dist/commonjs/sdk/addresses.js.map +1 -0
  335. package/dist/commonjs/sdk/devices.d.ts +21 -6
  336. package/dist/commonjs/sdk/devices.d.ts.map +1 -1
  337. package/dist/commonjs/sdk/devices.js +26 -6
  338. package/dist/commonjs/sdk/devices.js.map +1 -1
  339. package/dist/commonjs/sdk/instances.d.ts +11 -3
  340. package/dist/commonjs/sdk/instances.d.ts.map +1 -1
  341. package/dist/commonjs/sdk/instances.js +12 -2
  342. package/dist/commonjs/sdk/instances.js.map +1 -1
  343. package/dist/commonjs/sdk/interactions.d.ts +14 -6
  344. package/dist/commonjs/sdk/interactions.d.ts.map +1 -1
  345. package/dist/commonjs/sdk/interactions.js +16 -6
  346. package/dist/commonjs/sdk/interactions.js.map +1 -1
  347. package/dist/commonjs/sdk/journeys.d.ts +45 -5
  348. package/dist/commonjs/sdk/journeys.d.ts.map +1 -1
  349. package/dist/commonjs/sdk/journeys.js +49 -4
  350. package/dist/commonjs/sdk/journeys.js.map +1 -1
  351. package/dist/commonjs/sdk/sdk.d.ts +14 -11
  352. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  353. package/dist/commonjs/sdk/sdk.js +17 -13
  354. package/dist/commonjs/sdk/sdk.js.map +1 -1
  355. package/dist/commonjs/sdk/tasks.d.ts +6 -23
  356. package/dist/commonjs/sdk/tasks.d.ts.map +1 -1
  357. package/dist/commonjs/sdk/tasks.js +3 -31
  358. package/dist/commonjs/sdk/tasks.js.map +1 -1
  359. package/dist/commonjs/sdk/test-scenarios.d.ts +41 -0
  360. package/dist/commonjs/sdk/test-scenarios.d.ts.map +1 -0
  361. package/dist/commonjs/sdk/test-scenarios.js +62 -0
  362. package/dist/commonjs/sdk/test-scenarios.js.map +1 -0
  363. package/dist/commonjs/types/discriminated-union.d.ts.map +1 -1
  364. package/dist/commonjs/types/discriminated-union.js +0 -4
  365. package/dist/commonjs/types/discriminated-union.js.map +1 -1
  366. package/dist/commonjs/types/index.d.ts +0 -2
  367. package/dist/commonjs/types/index.d.ts.map +1 -1
  368. package/dist/commonjs/types/index.js +0 -2
  369. package/dist/commonjs/types/index.js.map +1 -1
  370. package/dist/commonjs/types/smart-union.d.ts.map +1 -1
  371. package/dist/commonjs/types/smart-union.js +14 -14
  372. package/dist/commonjs/types/smart-union.js.map +1 -1
  373. package/dist/esm/funcs/addresses-retrieve.d.ts +19 -0
  374. package/dist/esm/funcs/addresses-retrieve.d.ts.map +1 -0
  375. package/dist/esm/funcs/{tasks-update.js → addresses-retrieve.js} +20 -9
  376. package/dist/esm/funcs/addresses-retrieve.js.map +1 -0
  377. package/dist/{commonjs/funcs/tasks-list-schema.d.ts → esm/funcs/addresses-search.d.ts} +6 -6
  378. package/dist/esm/funcs/addresses-search.d.ts.map +1 -0
  379. package/dist/esm/funcs/{tasks-list.js → addresses-search.js} +20 -9
  380. package/dist/esm/funcs/addresses-search.js.map +1 -0
  381. package/dist/esm/funcs/devices-add.d.ts +5 -3
  382. package/dist/esm/funcs/devices-add.d.ts.map +1 -1
  383. package/dist/esm/funcs/devices-add.js +8 -3
  384. package/dist/esm/funcs/devices-add.js.map +1 -1
  385. package/dist/esm/funcs/devices-connect.d.ts +5 -3
  386. package/dist/esm/funcs/devices-connect.d.ts.map +1 -1
  387. package/dist/esm/funcs/devices-connect.js +9 -5
  388. package/dist/esm/funcs/devices-connect.js.map +1 -1
  389. package/dist/{commonjs/funcs/tasks-update.d.ts → esm/funcs/devices-refresh.d.ts} +6 -5
  390. package/dist/esm/funcs/devices-refresh.d.ts.map +1 -0
  391. package/dist/esm/funcs/{health-get.js → devices-refresh.js} +15 -16
  392. package/dist/esm/funcs/devices-refresh.js.map +1 -0
  393. package/dist/{commonjs/funcs/tasks-list.d.ts → esm/funcs/devices-validate.d.ts} +6 -4
  394. package/dist/esm/funcs/devices-validate.d.ts.map +1 -0
  395. package/dist/esm/funcs/devices-validate.js +77 -0
  396. package/dist/esm/funcs/devices-validate.js.map +1 -0
  397. package/dist/esm/funcs/instances-delete.d.ts +5 -3
  398. package/dist/esm/funcs/instances-delete.d.ts.map +1 -1
  399. package/dist/esm/funcs/instances-delete.js +8 -3
  400. package/dist/esm/funcs/instances-delete.js.map +1 -1
  401. package/dist/esm/funcs/instances-handoff-token.d.ts +19 -0
  402. package/dist/esm/funcs/instances-handoff-token.d.ts.map +1 -0
  403. package/dist/esm/funcs/instances-handoff-token.js +94 -0
  404. package/dist/esm/funcs/instances-handoff-token.js.map +1 -0
  405. package/dist/esm/funcs/interactions-fetch.d.ts +4 -3
  406. package/dist/esm/funcs/interactions-fetch.d.ts.map +1 -1
  407. package/dist/esm/funcs/interactions-fetch.js +19 -7
  408. package/dist/esm/funcs/interactions-fetch.js.map +1 -1
  409. package/dist/esm/funcs/interactions-submit.d.ts +5 -3
  410. package/dist/esm/funcs/interactions-submit.d.ts.map +1 -1
  411. package/dist/esm/funcs/interactions-submit.js +14 -3
  412. package/dist/esm/funcs/interactions-submit.js.map +1 -1
  413. package/dist/esm/funcs/interactions-upload-asset.d.ts +18 -0
  414. package/dist/esm/funcs/interactions-upload-asset.d.ts.map +1 -0
  415. package/dist/esm/funcs/interactions-upload-asset.js +83 -0
  416. package/dist/esm/funcs/interactions-upload-asset.js.map +1 -0
  417. package/dist/esm/funcs/journeys-get-schemas.d.ts +46 -0
  418. package/dist/esm/funcs/journeys-get-schemas.d.ts.map +1 -0
  419. package/dist/esm/funcs/journeys-get-schemas.js +114 -0
  420. package/dist/esm/funcs/journeys-get-schemas.js.map +1 -0
  421. package/dist/esm/funcs/journeys-get-state.d.ts +4 -3
  422. package/dist/esm/funcs/journeys-get-state.d.ts.map +1 -1
  423. package/dist/esm/funcs/journeys-get-state.js +13 -7
  424. package/dist/esm/funcs/journeys-get-state.js.map +1 -1
  425. package/dist/esm/funcs/journeys-start.d.ts +5 -3
  426. package/dist/esm/funcs/journeys-start.d.ts.map +1 -1
  427. package/dist/esm/funcs/journeys-start.js +8 -3
  428. package/dist/esm/funcs/journeys-start.js.map +1 -1
  429. package/dist/esm/funcs/journeys-terminate.d.ts +21 -0
  430. package/dist/esm/funcs/journeys-terminate.d.ts.map +1 -0
  431. package/dist/esm/funcs/{tasks-list-schema.js → journeys-terminate.js} +13 -8
  432. package/dist/esm/funcs/journeys-terminate.js.map +1 -0
  433. package/dist/esm/funcs/tasks-get-schema.d.ts +8 -3
  434. package/dist/esm/funcs/tasks-get-schema.d.ts.map +1 -1
  435. package/dist/esm/funcs/tasks-get-schema.js +9 -3
  436. package/dist/esm/funcs/tasks-get-schema.js.map +1 -1
  437. package/dist/esm/funcs/test-scenarios-create.d.ts +21 -0
  438. package/dist/esm/funcs/test-scenarios-create.d.ts.map +1 -0
  439. package/dist/esm/funcs/test-scenarios-create.js +93 -0
  440. package/dist/esm/funcs/test-scenarios-create.js.map +1 -0
  441. package/dist/esm/funcs/test-scenarios-delete.d.ts +20 -0
  442. package/dist/esm/funcs/test-scenarios-delete.d.ts.map +1 -0
  443. package/dist/esm/funcs/test-scenarios-delete.js +95 -0
  444. package/dist/esm/funcs/test-scenarios-delete.js.map +1 -0
  445. package/dist/esm/funcs/test-scenarios-get.d.ts +21 -0
  446. package/dist/esm/funcs/test-scenarios-get.d.ts.map +1 -0
  447. package/dist/esm/funcs/test-scenarios-get.js +100 -0
  448. package/dist/esm/funcs/test-scenarios-get.js.map +1 -0
  449. package/dist/esm/funcs/test-scenarios-list.d.ts +21 -0
  450. package/dist/esm/funcs/test-scenarios-list.d.ts.map +1 -0
  451. package/dist/esm/funcs/test-scenarios-list.js +96 -0
  452. package/dist/esm/funcs/test-scenarios-list.js.map +1 -0
  453. package/dist/esm/funcs/test-scenarios-put.d.ts +21 -0
  454. package/dist/esm/funcs/test-scenarios-put.d.ts.map +1 -0
  455. package/dist/esm/funcs/test-scenarios-put.js +97 -0
  456. package/dist/esm/funcs/test-scenarios-put.js.map +1 -0
  457. package/dist/esm/funcs/tokens-generate.d.ts +2 -1
  458. package/dist/esm/funcs/tokens-generate.d.ts.map +1 -1
  459. package/dist/esm/funcs/tokens-generate.js +6 -2
  460. package/dist/esm/funcs/tokens-generate.js.map +1 -1
  461. package/dist/esm/lib/config.d.ts +4 -4
  462. package/dist/esm/lib/config.d.ts.map +1 -1
  463. package/dist/esm/lib/config.js +13 -4
  464. package/dist/esm/lib/config.js.map +1 -1
  465. package/dist/esm/models/create-test-scenario-request.d.ts +29 -0
  466. package/dist/esm/models/create-test-scenario-request.d.ts.map +1 -0
  467. package/dist/esm/models/create-test-scenario-request.js +18 -0
  468. package/dist/esm/models/create-test-scenario-request.js.map +1 -0
  469. package/dist/esm/models/delete-response.d.ts +19 -0
  470. package/dist/esm/models/delete-response.d.ts.map +1 -0
  471. package/dist/esm/models/delete-response.js +20 -0
  472. package/dist/esm/models/delete-response.js.map +1 -0
  473. package/dist/esm/models/device-connect-request.d.ts +29 -0
  474. package/dist/esm/models/device-connect-request.d.ts.map +1 -0
  475. package/dist/esm/models/device-connect-request.js +21 -0
  476. package/dist/esm/models/device-connect-request.js.map +1 -0
  477. package/dist/esm/models/device-connect-response.d.ts +25 -0
  478. package/dist/esm/models/device-connect-response.d.ts.map +1 -0
  479. package/dist/esm/models/device-connect-response.js +26 -0
  480. package/dist/esm/models/device-connect-response.js.map +1 -0
  481. package/dist/esm/models/device-refresh-response.d.ts +16 -0
  482. package/dist/esm/models/device-refresh-response.d.ts.map +1 -0
  483. package/dist/esm/models/device-refresh-response.js +19 -0
  484. package/dist/esm/models/device-refresh-response.js.map +1 -0
  485. package/dist/esm/models/device-start-response.d.ts +20 -0
  486. package/dist/esm/models/device-start-response.d.ts.map +1 -0
  487. package/dist/esm/models/device-start-response.js +21 -0
  488. package/dist/esm/models/device-start-response.js.map +1 -0
  489. package/dist/esm/models/device-validate-response.d.ts +14 -0
  490. package/dist/esm/models/device-validate-response.d.ts.map +1 -0
  491. package/dist/esm/models/device-validate-response.js +17 -0
  492. package/dist/esm/models/device-validate-response.js.map +1 -0
  493. package/dist/esm/models/errors/error-response.d.ts +19 -0
  494. package/dist/esm/models/errors/error-response.d.ts.map +1 -0
  495. package/dist/esm/models/errors/error-response.js +31 -0
  496. package/dist/esm/models/errors/error-response.js.map +1 -0
  497. package/dist/esm/models/errors/index.d.ts +2 -0
  498. package/dist/esm/models/errors/index.d.ts.map +1 -1
  499. package/dist/esm/models/errors/index.js +2 -0
  500. package/dist/esm/models/errors/index.js.map +1 -1
  501. package/dist/esm/models/errors/o-auth-error-response.d.ts +32 -0
  502. package/dist/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
  503. package/dist/esm/models/errors/o-auth-error-response.js +38 -0
  504. package/dist/esm/models/errors/o-auth-error-response.js.map +1 -0
  505. package/dist/esm/models/gbg-error.d.ts +28 -0
  506. package/dist/esm/models/gbg-error.d.ts.map +1 -0
  507. package/dist/esm/models/gbg-error.js +31 -0
  508. package/dist/esm/models/gbg-error.js.map +1 -0
  509. package/dist/esm/models/handoff-token-response.d.ts +20 -0
  510. package/dist/esm/models/handoff-token-response.d.ts.map +1 -0
  511. package/dist/esm/models/handoff-token-response.js +22 -0
  512. package/dist/esm/models/handoff-token-response.js.map +1 -0
  513. package/dist/esm/models/index.d.ts +33 -0
  514. package/dist/esm/models/index.d.ts.map +1 -1
  515. package/dist/esm/models/index.js +33 -0
  516. package/dist/esm/models/index.js.map +1 -1
  517. package/dist/esm/models/interaction-fetch-response.d.ts +40 -0
  518. package/dist/esm/models/interaction-fetch-response.d.ts.map +1 -0
  519. package/dist/esm/models/interaction-fetch-response.js +39 -0
  520. package/dist/esm/models/interaction-fetch-response.js.map +1 -0
  521. package/dist/esm/models/interaction-submit-response.d.ts +17 -0
  522. package/dist/esm/models/interaction-submit-response.d.ts.map +1 -0
  523. package/dist/esm/models/interaction-submit-response.js +18 -0
  524. package/dist/esm/models/interaction-submit-response.js.map +1 -0
  525. package/dist/esm/models/journey-start-response.d.ts +34 -0
  526. package/dist/esm/models/journey-start-response.d.ts.map +1 -0
  527. package/dist/esm/models/journey-start-response.js +30 -0
  528. package/dist/esm/models/journey-start-response.js.map +1 -0
  529. package/dist/esm/models/loqate-retrieve-response.d.ts +12 -0
  530. package/dist/esm/models/loqate-retrieve-response.d.ts.map +1 -0
  531. package/dist/esm/models/loqate-retrieve-response.js +18 -0
  532. package/dist/esm/models/loqate-retrieve-response.js.map +1 -0
  533. package/dist/esm/models/loqate-search-response.d.ts +12 -0
  534. package/dist/esm/models/loqate-search-response.d.ts.map +1 -0
  535. package/dist/esm/models/loqate-search-response.js +18 -0
  536. package/dist/esm/models/loqate-search-response.js.map +1 -0
  537. package/dist/esm/models/operations/add-device.d.ts +8 -92
  538. package/dist/esm/models/operations/add-device.d.ts.map +1 -1
  539. package/dist/esm/models/operations/add-device.js +5 -72
  540. package/dist/esm/models/operations/add-device.js.map +1 -1
  541. package/dist/esm/models/operations/create-handoff-token.d.ts +22 -0
  542. package/dist/esm/models/operations/create-handoff-token.d.ts.map +1 -0
  543. package/dist/esm/models/operations/create-handoff-token.js +24 -0
  544. package/dist/esm/models/operations/create-handoff-token.js.map +1 -0
  545. package/dist/esm/models/operations/create-test-scenario.d.ts +18 -0
  546. package/dist/esm/models/operations/create-test-scenario.d.ts.map +1 -0
  547. package/dist/esm/models/operations/create-test-scenario.js +14 -0
  548. package/dist/esm/models/operations/create-test-scenario.js.map +1 -0
  549. package/dist/esm/models/operations/delete-instance.d.ts +1 -14
  550. package/dist/esm/models/operations/delete-instance.d.ts.map +1 -1
  551. package/dist/esm/models/operations/delete-instance.js +2 -11
  552. package/dist/esm/models/operations/delete-instance.js.map +1 -1
  553. package/dist/esm/models/operations/delete-test-scenario.d.ts +20 -0
  554. package/dist/esm/models/operations/delete-test-scenario.d.ts.map +1 -0
  555. package/dist/esm/models/operations/delete-test-scenario.js +13 -0
  556. package/dist/esm/models/operations/delete-test-scenario.js.map +1 -0
  557. package/dist/esm/models/operations/device-connect.d.ts +0 -91
  558. package/dist/esm/models/operations/device-connect.d.ts.map +1 -1
  559. package/dist/esm/models/operations/device-connect.js +0 -63
  560. package/dist/esm/models/operations/device-connect.js.map +1 -1
  561. package/dist/esm/models/operations/device-validate.d.ts +12 -0
  562. package/dist/esm/models/operations/device-validate.d.ts.map +1 -0
  563. package/dist/esm/models/operations/device-validate.js +17 -0
  564. package/dist/esm/models/operations/device-validate.js.map +1 -0
  565. package/dist/esm/models/operations/fetch-interaction.d.ts +35 -1621
  566. package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
  567. package/dist/esm/models/operations/fetch-interaction.js +22 -1247
  568. package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
  569. package/dist/esm/models/operations/get-journey-schemas.d.ts +16 -0
  570. package/dist/esm/models/operations/get-journey-schemas.d.ts.map +1 -0
  571. package/dist/esm/models/operations/get-journey-schemas.js +14 -0
  572. package/dist/esm/models/operations/get-journey-schemas.js.map +1 -0
  573. package/dist/esm/models/operations/get-journey-state.d.ts +19 -1383
  574. package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
  575. package/dist/esm/models/operations/get-journey-state.js +13 -997
  576. package/dist/esm/models/operations/get-journey-state.js.map +1 -1
  577. package/dist/esm/models/operations/get-task-schema.d.ts +1 -17
  578. package/dist/esm/models/operations/get-task-schema.d.ts.map +1 -1
  579. package/dist/esm/models/operations/get-task-schema.js +0 -17
  580. package/dist/esm/models/operations/get-task-schema.js.map +1 -1
  581. package/dist/esm/models/operations/get-test-scenario.d.ts +39 -0
  582. package/dist/esm/models/operations/get-test-scenario.d.ts.map +1 -0
  583. package/dist/esm/models/operations/get-test-scenario.js +23 -0
  584. package/dist/esm/models/operations/get-test-scenario.js.map +1 -0
  585. package/dist/esm/models/operations/index.d.ts +12 -4
  586. package/dist/esm/models/operations/index.d.ts.map +1 -1
  587. package/dist/esm/models/operations/index.js +12 -4
  588. package/dist/esm/models/operations/index.js.map +1 -1
  589. package/dist/esm/models/operations/list-test-scenarios.d.ts +34 -0
  590. package/dist/esm/models/operations/list-test-scenarios.d.ts.map +1 -0
  591. package/dist/esm/models/operations/list-test-scenarios.js +22 -0
  592. package/dist/esm/models/operations/list-test-scenarios.js.map +1 -0
  593. package/dist/esm/models/operations/post-as-token-oauth2.d.ts +2 -2
  594. package/dist/esm/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  595. package/dist/esm/models/operations/post-as-token-oauth2.js +4 -5
  596. package/dist/esm/models/operations/post-as-token-oauth2.js.map +1 -1
  597. package/dist/esm/models/operations/put-test-scenario.d.ts +23 -0
  598. package/dist/esm/models/operations/put-test-scenario.d.ts.map +1 -0
  599. package/dist/esm/models/operations/put-test-scenario.js +15 -0
  600. package/dist/esm/models/operations/put-test-scenario.js.map +1 -0
  601. package/dist/esm/models/operations/retrieve-address.d.ts +29 -0
  602. package/dist/esm/models/operations/retrieve-address.d.ts.map +1 -0
  603. package/dist/esm/models/operations/retrieve-address.js +27 -0
  604. package/dist/esm/models/operations/retrieve-address.js.map +1 -0
  605. package/dist/esm/models/operations/search-addresses.d.ts +33 -0
  606. package/dist/esm/models/operations/search-addresses.d.ts.map +1 -0
  607. package/dist/esm/models/operations/search-addresses.js +29 -0
  608. package/dist/esm/models/operations/search-addresses.js.map +1 -0
  609. package/dist/esm/models/operations/start-journey.d.ts +1214 -112
  610. package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
  611. package/dist/esm/models/operations/start-journey.js +565 -58
  612. package/dist/esm/models/operations/start-journey.js.map +1 -1
  613. package/dist/esm/models/operations/submit-interaction.d.ts +1074 -92
  614. package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
  615. package/dist/esm/models/operations/submit-interaction.js +505 -45
  616. package/dist/esm/models/operations/submit-interaction.js.map +1 -1
  617. package/dist/esm/models/operations/terminate-journey.d.ts +19 -0
  618. package/dist/esm/models/operations/terminate-journey.d.ts.map +1 -0
  619. package/dist/esm/models/operations/terminate-journey.js +13 -0
  620. package/dist/esm/models/operations/terminate-journey.js.map +1 -0
  621. package/dist/esm/models/operations/upload-interaction-asset.d.ts +26 -0
  622. package/dist/esm/models/operations/upload-interaction-asset.d.ts.map +1 -0
  623. package/dist/esm/models/operations/upload-interaction-asset.js +28 -0
  624. package/dist/esm/models/operations/upload-interaction-asset.js.map +1 -0
  625. package/dist/esm/models/outstanding-group.d.ts +15 -0
  626. package/dist/esm/models/outstanding-group.d.ts.map +1 -0
  627. package/dist/esm/models/outstanding-group.js +15 -0
  628. package/dist/esm/models/outstanding-group.js.map +1 -0
  629. package/dist/esm/models/schema-fetch-response.d.ts +22 -0
  630. package/dist/esm/models/schema-fetch-response.d.ts.map +1 -0
  631. package/dist/esm/models/schema-fetch-response.js +24 -0
  632. package/dist/esm/models/schema-fetch-response.js.map +1 -0
  633. package/dist/esm/models/slim-document.d.ts +57 -0
  634. package/dist/esm/models/slim-document.d.ts.map +1 -0
  635. package/dist/esm/models/slim-document.js +53 -0
  636. package/dist/esm/models/slim-document.js.map +1 -0
  637. package/dist/esm/models/slim-extraction.d.ts +74 -0
  638. package/dist/esm/models/slim-extraction.d.ts.map +1 -0
  639. package/dist/esm/models/slim-extraction.js +84 -0
  640. package/dist/esm/models/slim-extraction.js.map +1 -0
  641. package/dist/esm/models/slim-identity.d.ts +202 -0
  642. package/dist/esm/models/slim-identity.d.ts.map +1 -0
  643. package/dist/esm/models/slim-identity.js +100 -0
  644. package/dist/esm/models/slim-identity.js.map +1 -0
  645. package/dist/esm/models/slim-interaction-fetch-response.d.ts +46 -0
  646. package/dist/esm/models/slim-interaction-fetch-response.d.ts.map +1 -0
  647. package/dist/esm/models/slim-interaction-fetch-response.js +48 -0
  648. package/dist/esm/models/slim-interaction-fetch-response.js.map +1 -0
  649. package/dist/esm/models/slim-journey.d.ts +14 -0
  650. package/dist/esm/models/slim-journey.d.ts.map +1 -0
  651. package/dist/esm/models/slim-journey.js +18 -0
  652. package/dist/esm/models/slim-journey.js.map +1 -0
  653. package/dist/esm/models/slim-module-step-error.d.ts +50 -0
  654. package/dist/esm/models/slim-module-step-error.d.ts.map +1 -0
  655. package/dist/esm/models/slim-module-step-error.js +41 -0
  656. package/dist/esm/models/slim-module-step-error.js.map +1 -0
  657. package/dist/esm/models/slim-result.d.ts +49 -0
  658. package/dist/esm/models/slim-result.d.ts.map +1 -0
  659. package/dist/esm/models/slim-result.js +39 -0
  660. package/dist/esm/models/slim-result.js.map +1 -0
  661. package/dist/esm/models/slim-state-fetch-response.d.ts +27 -0
  662. package/dist/esm/models/slim-state-fetch-response.d.ts.map +1 -0
  663. package/dist/esm/models/slim-state-fetch-response.js +29 -0
  664. package/dist/esm/models/slim-state-fetch-response.js.map +1 -0
  665. package/dist/esm/models/slim-step.d.ts +40 -0
  666. package/dist/esm/models/slim-step.d.ts.map +1 -0
  667. package/dist/esm/models/slim-step.js +36 -0
  668. package/dist/esm/models/slim-step.js.map +1 -0
  669. package/dist/esm/models/slim-validation.d.ts +69 -0
  670. package/dist/esm/models/slim-validation.d.ts.map +1 -0
  671. package/dist/esm/models/slim-validation.js +78 -0
  672. package/dist/esm/models/slim-validation.js.map +1 -0
  673. package/dist/esm/models/slim-verified-data.d.ts +16 -0
  674. package/dist/esm/models/slim-verified-data.d.ts.map +1 -0
  675. package/dist/esm/models/slim-verified-data.js +16 -0
  676. package/dist/esm/models/slim-verified-data.js.map +1 -0
  677. package/dist/esm/models/state-fetch-response.d.ts +25 -0
  678. package/dist/esm/models/state-fetch-response.d.ts.map +1 -0
  679. package/dist/esm/models/state-fetch-response.js +22 -0
  680. package/dist/esm/models/state-fetch-response.js.map +1 -0
  681. package/dist/esm/models/terminate-response.d.ts +10 -0
  682. package/dist/esm/models/terminate-response.d.ts.map +1 -0
  683. package/dist/esm/models/terminate-response.js +13 -0
  684. package/dist/esm/models/terminate-response.js.map +1 -0
  685. package/dist/esm/models/test-scenario-summary.d.ts +29 -0
  686. package/dist/esm/models/test-scenario-summary.d.ts.map +1 -0
  687. package/dist/esm/models/test-scenario-summary.js +25 -0
  688. package/dist/esm/models/test-scenario-summary.js.map +1 -0
  689. package/dist/esm/models/test-scenario-written.d.ts +19 -0
  690. package/dist/esm/models/test-scenario-written.d.ts.map +1 -0
  691. package/dist/esm/models/test-scenario-written.js +20 -0
  692. package/dist/esm/models/test-scenario-written.js.map +1 -0
  693. package/dist/esm/models/test-scenario.d.ts +31 -0
  694. package/dist/esm/models/test-scenario.d.ts.map +1 -0
  695. package/dist/esm/models/test-scenario.js +25 -0
  696. package/dist/esm/models/test-scenario.js.map +1 -0
  697. package/dist/esm/models/update-test-scenario-request.d.ts +24 -0
  698. package/dist/esm/models/update-test-scenario-request.d.ts.map +1 -0
  699. package/dist/esm/models/update-test-scenario-request.js +17 -0
  700. package/dist/esm/models/update-test-scenario-request.js.map +1 -0
  701. package/dist/esm/sdk/addresses.d.ts +20 -0
  702. package/dist/esm/sdk/addresses.d.ts.map +1 -0
  703. package/dist/esm/sdk/addresses.js +28 -0
  704. package/dist/esm/sdk/addresses.js.map +1 -0
  705. package/dist/esm/sdk/devices.d.ts +21 -6
  706. package/dist/esm/sdk/devices.d.ts.map +1 -1
  707. package/dist/esm/sdk/devices.js +26 -6
  708. package/dist/esm/sdk/devices.js.map +1 -1
  709. package/dist/esm/sdk/instances.d.ts +11 -3
  710. package/dist/esm/sdk/instances.d.ts.map +1 -1
  711. package/dist/esm/sdk/instances.js +12 -2
  712. package/dist/esm/sdk/instances.js.map +1 -1
  713. package/dist/esm/sdk/interactions.d.ts +14 -6
  714. package/dist/esm/sdk/interactions.d.ts.map +1 -1
  715. package/dist/esm/sdk/interactions.js +16 -6
  716. package/dist/esm/sdk/interactions.js.map +1 -1
  717. package/dist/esm/sdk/journeys.d.ts +45 -5
  718. package/dist/esm/sdk/journeys.d.ts.map +1 -1
  719. package/dist/esm/sdk/journeys.js +49 -4
  720. package/dist/esm/sdk/journeys.js.map +1 -1
  721. package/dist/esm/sdk/sdk.d.ts +14 -11
  722. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  723. package/dist/esm/sdk/sdk.js +17 -13
  724. package/dist/esm/sdk/sdk.js.map +1 -1
  725. package/dist/esm/sdk/tasks.d.ts +6 -23
  726. package/dist/esm/sdk/tasks.d.ts.map +1 -1
  727. package/dist/esm/sdk/tasks.js +3 -31
  728. package/dist/esm/sdk/tasks.js.map +1 -1
  729. package/dist/esm/sdk/test-scenarios.d.ts +41 -0
  730. package/dist/esm/sdk/test-scenarios.d.ts.map +1 -0
  731. package/dist/esm/sdk/test-scenarios.js +58 -0
  732. package/dist/esm/sdk/test-scenarios.js.map +1 -0
  733. package/dist/esm/types/discriminated-union.d.ts.map +1 -1
  734. package/dist/esm/types/discriminated-union.js +0 -4
  735. package/dist/esm/types/discriminated-union.js.map +1 -1
  736. package/dist/esm/types/index.d.ts +0 -2
  737. package/dist/esm/types/index.d.ts.map +1 -1
  738. package/dist/esm/types/index.js +0 -2
  739. package/dist/esm/types/index.js.map +1 -1
  740. package/dist/esm/types/smart-union.d.ts.map +1 -1
  741. package/dist/esm/types/smart-union.js +14 -14
  742. package/dist/esm/types/smart-union.js.map +1 -1
  743. package/examples/{tokensGenerate.example.ts → journeysStart.example.ts} +5 -3
  744. package/jsr.json +1 -1
  745. package/package.json +1 -1
  746. package/src/funcs/{tasks-update.ts → addresses-retrieve.ts} +39 -18
  747. package/src/funcs/addresses-search.ts +196 -0
  748. package/src/funcs/devices-add.ts +20 -10
  749. package/src/funcs/devices-connect.ts +23 -16
  750. package/src/funcs/{health-get.ts → devices-refresh.ts} +26 -22
  751. package/src/funcs/{tasks-list.ts → devices-validate.ts} +26 -37
  752. package/src/funcs/instances-delete.ts +20 -9
  753. package/src/funcs/instances-handoff-token.ts +191 -0
  754. package/src/funcs/interactions-fetch.ts +29 -9
  755. package/src/funcs/interactions-submit.ts +27 -9
  756. package/src/funcs/interactions-upload-asset.ts +173 -0
  757. package/src/funcs/journeys-get-schemas.ts +207 -0
  758. package/src/funcs/journeys-get-state.ts +22 -9
  759. package/src/funcs/journeys-start.ts +23 -10
  760. package/src/funcs/{tasks-list-schema.ts → journeys-terminate.ts} +26 -15
  761. package/src/funcs/tasks-get-schema.ts +21 -9
  762. package/src/funcs/test-scenarios-create.ts +183 -0
  763. package/src/funcs/test-scenarios-delete.ts +187 -0
  764. package/src/funcs/test-scenarios-get.ts +192 -0
  765. package/src/funcs/test-scenarios-list.ts +187 -0
  766. package/src/funcs/test-scenarios-put.ts +188 -0
  767. package/src/funcs/tokens-generate.ts +12 -3
  768. package/src/lib/config.ts +13 -4
  769. package/src/models/create-test-scenario-request.ts +63 -0
  770. package/src/models/delete-response.ts +45 -0
  771. package/src/models/device-connect-request.ts +60 -0
  772. package/src/models/device-connect-response.ts +59 -0
  773. package/src/models/device-refresh-response.ts +42 -0
  774. package/src/models/device-start-response.ts +49 -0
  775. package/src/models/device-validate-response.ts +38 -0
  776. package/src/models/errors/error-response.ts +52 -0
  777. package/src/models/errors/index.ts +2 -0
  778. package/src/models/errors/o-auth-error-response.ts +74 -0
  779. package/src/models/gbg-error.ts +56 -0
  780. package/src/models/handoff-token-response.ts +48 -0
  781. package/src/models/index.ts +33 -0
  782. package/src/models/interaction-fetch-response.ts +103 -0
  783. package/src/models/interaction-submit-response.ts +43 -0
  784. package/src/models/journey-start-response.ts +71 -0
  785. package/src/models/loqate-retrieve-response.ts +38 -0
  786. package/src/models/loqate-search-response.ts +38 -0
  787. package/src/models/operations/add-device.ts +17 -176
  788. package/src/models/operations/create-handoff-token.ts +63 -0
  789. package/src/models/operations/create-test-scenario.ts +37 -0
  790. package/src/models/operations/delete-instance.ts +7 -38
  791. package/src/models/operations/delete-test-scenario.ts +39 -0
  792. package/src/models/operations/device-connect.ts +0 -189
  793. package/src/models/operations/device-validate.ts +38 -0
  794. package/src/models/operations/fetch-interaction.ts +100 -3798
  795. package/src/models/operations/get-journey-schemas.ts +36 -0
  796. package/src/models/operations/get-journey-state.ts +62 -3183
  797. package/src/models/operations/get-task-schema.ts +1 -44
  798. package/src/models/operations/get-test-scenario.ts +65 -0
  799. package/src/models/operations/index.ts +12 -4
  800. package/src/models/operations/list-test-scenarios.ts +59 -0
  801. package/src/models/operations/post-as-token-oauth2.ts +8 -9
  802. package/src/models/operations/put-test-scenario.ts +43 -0
  803. package/src/models/operations/retrieve-address.ts +73 -0
  804. package/src/models/operations/search-addresses.ts +79 -0
  805. package/src/models/operations/start-journey.ts +2838 -1025
  806. package/src/models/operations/submit-interaction.ts +2787 -1092
  807. package/src/models/operations/terminate-journey.ts +41 -0
  808. package/src/models/operations/upload-interaction-asset.ts +74 -0
  809. package/src/models/outstanding-group.ts +37 -0
  810. package/src/models/schema-fetch-response.ts +57 -0
  811. package/src/models/slim-document.ts +134 -0
  812. package/src/models/slim-extraction.ts +235 -0
  813. package/src/models/slim-identity.ts +347 -0
  814. package/src/models/slim-interaction-fetch-response.ts +124 -0
  815. package/src/models/slim-journey.ts +36 -0
  816. package/src/models/slim-module-step-error.ts +99 -0
  817. package/src/models/slim-result.ts +92 -0
  818. package/src/models/slim-state-fetch-response.ts +60 -0
  819. package/src/models/slim-step.ts +80 -0
  820. package/src/models/slim-validation.ts +229 -0
  821. package/src/models/slim-verified-data.ts +37 -0
  822. package/src/models/state-fetch-response.ts +49 -0
  823. package/src/models/terminate-response.ts +30 -0
  824. package/src/models/test-scenario-summary.ts +62 -0
  825. package/src/models/test-scenario-written.ts +47 -0
  826. package/src/models/test-scenario.ts +60 -0
  827. package/src/models/update-test-scenario-request.ts +57 -0
  828. package/src/sdk/addresses.ts +50 -0
  829. package/src/sdk/devices.ts +46 -11
  830. package/src/sdk/instances.ts +24 -3
  831. package/src/sdk/interactions.ts +30 -11
  832. package/src/sdk/journeys.ts +67 -5
  833. package/src/sdk/sdk.ts +25 -19
  834. package/src/sdk/tasks.ts +4 -60
  835. package/src/sdk/test-scenarios.ts +100 -0
  836. package/src/types/discriminated-union.ts +1 -4
  837. package/src/types/index.ts +0 -2
  838. package/src/types/smart-union.ts +19 -14
  839. package/dist/commonjs/funcs/health-get.d.ts.map +0 -1
  840. package/dist/commonjs/funcs/health-get.js.map +0 -1
  841. package/dist/commonjs/funcs/tasks-list-schema.d.ts.map +0 -1
  842. package/dist/commonjs/funcs/tasks-list-schema.js.map +0 -1
  843. package/dist/commonjs/funcs/tasks-list.d.ts.map +0 -1
  844. package/dist/commonjs/funcs/tasks-list.js.map +0 -1
  845. package/dist/commonjs/funcs/tasks-update.d.ts.map +0 -1
  846. package/dist/commonjs/funcs/tasks-update.js.map +0 -1
  847. package/dist/commonjs/models/operations/get-tasks-schema.d.ts +0 -71
  848. package/dist/commonjs/models/operations/get-tasks-schema.d.ts.map +0 -1
  849. package/dist/commonjs/models/operations/get-tasks-schema.js +0 -108
  850. package/dist/commonjs/models/operations/get-tasks-schema.js.map +0 -1
  851. package/dist/commonjs/models/operations/get-tasks.d.ts +0 -62
  852. package/dist/commonjs/models/operations/get-tasks.d.ts.map +0 -1
  853. package/dist/commonjs/models/operations/get-tasks.js +0 -91
  854. package/dist/commonjs/models/operations/get-tasks.js.map +0 -1
  855. package/dist/commonjs/models/operations/health.d.ts +0 -14
  856. package/dist/commonjs/models/operations/health.d.ts.map +0 -1
  857. package/dist/commonjs/models/operations/health.js.map +0 -1
  858. package/dist/commonjs/models/operations/update-task.d.ts +0 -2105
  859. package/dist/commonjs/models/operations/update-task.d.ts.map +0 -1
  860. package/dist/commonjs/models/operations/update-task.js +0 -1115
  861. package/dist/commonjs/models/operations/update-task.js.map +0 -1
  862. package/dist/commonjs/sdk/health.d.ts +0 -12
  863. package/dist/commonjs/sdk/health.d.ts.map +0 -1
  864. package/dist/commonjs/sdk/health.js +0 -22
  865. package/dist/commonjs/sdk/health.js.map +0 -1
  866. package/dist/commonjs/types/default-to-zero-value.d.ts +0 -12
  867. package/dist/commonjs/types/default-to-zero-value.d.ts.map +0 -1
  868. package/dist/commonjs/types/default-to-zero-value.js +0 -35
  869. package/dist/commonjs/types/default-to-zero-value.js.map +0 -1
  870. package/dist/commonjs/types/primitives.d.ts +0 -9
  871. package/dist/commonjs/types/primitives.d.ts.map +0 -1
  872. package/dist/commonjs/types/primitives.js +0 -151
  873. package/dist/commonjs/types/primitives.js.map +0 -1
  874. package/dist/esm/funcs/health-get.d.ts.map +0 -1
  875. package/dist/esm/funcs/health-get.js.map +0 -1
  876. package/dist/esm/funcs/tasks-list-schema.d.ts.map +0 -1
  877. package/dist/esm/funcs/tasks-list-schema.js.map +0 -1
  878. package/dist/esm/funcs/tasks-list.d.ts +0 -17
  879. package/dist/esm/funcs/tasks-list.d.ts.map +0 -1
  880. package/dist/esm/funcs/tasks-list.js.map +0 -1
  881. package/dist/esm/funcs/tasks-update.d.ts +0 -17
  882. package/dist/esm/funcs/tasks-update.d.ts.map +0 -1
  883. package/dist/esm/funcs/tasks-update.js.map +0 -1
  884. package/dist/esm/models/operations/get-tasks-schema.d.ts +0 -71
  885. package/dist/esm/models/operations/get-tasks-schema.d.ts.map +0 -1
  886. package/dist/esm/models/operations/get-tasks-schema.js +0 -67
  887. package/dist/esm/models/operations/get-tasks-schema.js.map +0 -1
  888. package/dist/esm/models/operations/get-tasks.d.ts +0 -62
  889. package/dist/esm/models/operations/get-tasks.d.ts.map +0 -1
  890. package/dist/esm/models/operations/get-tasks.js +0 -51
  891. package/dist/esm/models/operations/get-tasks.js.map +0 -1
  892. package/dist/esm/models/operations/health.d.ts +0 -14
  893. package/dist/esm/models/operations/health.d.ts.map +0 -1
  894. package/dist/esm/models/operations/health.js +0 -14
  895. package/dist/esm/models/operations/health.js.map +0 -1
  896. package/dist/esm/models/operations/update-task.d.ts +0 -2105
  897. package/dist/esm/models/operations/update-task.d.ts.map +0 -1
  898. package/dist/esm/models/operations/update-task.js +0 -1007
  899. package/dist/esm/models/operations/update-task.js.map +0 -1
  900. package/dist/esm/sdk/health.d.ts +0 -12
  901. package/dist/esm/sdk/health.d.ts.map +0 -1
  902. package/dist/esm/sdk/health.js +0 -18
  903. package/dist/esm/sdk/health.js.map +0 -1
  904. package/dist/esm/types/default-to-zero-value.d.ts +0 -12
  905. package/dist/esm/types/default-to-zero-value.d.ts.map +0 -1
  906. package/dist/esm/types/default-to-zero-value.js +0 -31
  907. package/dist/esm/types/default-to-zero-value.js.map +0 -1
  908. package/dist/esm/types/primitives.d.ts +0 -9
  909. package/dist/esm/types/primitives.d.ts.map +0 -1
  910. package/dist/esm/types/primitives.js +0 -109
  911. package/dist/esm/types/primitives.js.map +0 -1
  912. package/src/models/operations/get-tasks-schema.ts +0 -173
  913. package/src/models/operations/get-tasks.ts +0 -144
  914. package/src/models/operations/health.ts +0 -38
  915. package/src/models/operations/update-task.ts +0 -3818
  916. package/src/sdk/health.ts +0 -25
  917. package/src/types/default-to-zero-value.ts +0 -33
  918. package/src/types/primitives.ts +0 -140
@@ -4,25 +4,18 @@
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import * as discriminatedUnionTypes from "../../types/discriminated-union.js";
9
- import { discriminatedUnion } from "../../types/discriminated-union.js";
10
7
  import { ClosedEnum } from "../../types/enums.js";
11
- import { Result as SafeParseResult } from "../../types/fp.js";
12
- import * as types from "../../types/primitives.js";
13
8
  import { smartUnion } from "../../types/smart-union.js";
14
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
15
9
 
16
10
  export type SubmitInteractionSecurity = {
17
- interactionAccess: string;
11
+ customerAccess?: string | undefined;
12
+ interactionAccess?: string | undefined;
18
13
  };
19
14
 
20
15
  export type Participant = {
21
- /**
22
- * Optional domain element identifier
23
- */
24
16
  domainElementId?: string | undefined;
25
- instruction?: string | undefined;
17
+ instructions?: Array<string> | undefined;
18
+ [additionalProperties: string]: unknown;
26
19
  };
27
20
 
28
21
  export type SubmitInteractionIdentityAlias = {
@@ -46,11 +39,16 @@ export type SubmitInteractionIdentityAlias = {
46
39
  * Any family names for the individual
47
40
  */
48
41
  lastNamesAtBirth?: Array<string> | undefined;
42
+ /**
43
+ * The whole name as stated, unsplit into parts — used when the alias has no meaningful name parts
44
+ */
45
+ fullName?: string | undefined;
49
46
  };
50
47
 
51
48
  export const SubmitInteractionIdentityRelationship = {
52
49
  Mother: "mother",
53
50
  Father: "father",
51
+ Spouse: "spouse",
54
52
  MaternalGrandFather: "maternalGrandFather",
55
53
  MaternalGrandMother: "maternalGrandMother",
56
54
  PaternalGrandFather: "paternalGrandFather",
@@ -104,15 +102,15 @@ export type SubmitInteractionIdentityCurrentAddress = {
104
102
  */
105
103
  addressString?: string | undefined;
106
104
  /**
107
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
105
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
108
106
  */
109
107
  premise?: string | undefined;
110
108
  /**
111
- * The name of a building or a building complex. In the US, this is the street number.
109
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
112
110
  */
113
111
  building?: string | undefined;
114
112
  /**
115
- * The name of a sub-building, such as a flat or apartment number.
113
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
116
114
  */
117
115
  subBuilding?: string | undefined;
118
116
  /**
@@ -174,15 +172,15 @@ export type SubmitInteractionIdentityPreviousAddress = {
174
172
  */
175
173
  addressString?: string | undefined;
176
174
  /**
177
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
175
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
178
176
  */
179
177
  premise?: string | undefined;
180
178
  /**
181
- * The name of a building or a building complex. In the US, this is the street number.
179
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
182
180
  */
183
181
  building?: string | undefined;
184
182
  /**
185
- * The name of a sub-building, such as a flat or apartment number.
183
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
186
184
  */
187
185
  subBuilding?: string | undefined;
188
186
  /**
@@ -225,11 +223,11 @@ export type SubmitInteractionIdentityPreviousAddress = {
225
223
  /**
226
224
  * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
227
225
  */
228
- fromDate: string;
226
+ fromDate?: string | undefined;
229
227
  /**
230
228
  * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
231
229
  */
232
- toDate: string;
230
+ toDate?: string | undefined;
233
231
  };
234
232
 
235
233
  export type SubmitInteractionIdentityPlaceOfBirthLocation = {
@@ -252,15 +250,15 @@ export type SubmitInteractionIdentityPlaceOfBirth = {
252
250
  */
253
251
  addressString?: string | undefined;
254
252
  /**
255
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
253
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
256
254
  */
257
255
  premise?: string | undefined;
258
256
  /**
259
- * The name of a building or a building complex. In the US, this is the street number.
257
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
260
258
  */
261
259
  building?: string | undefined;
262
260
  /**
263
- * The name of a sub-building, such as a flat or apartment number.
261
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
264
262
  */
265
263
  subBuilding?: string | undefined;
266
264
  /**
@@ -330,7 +328,7 @@ export type SubmitInteractionIdentityPhone = {
330
328
 
331
329
  export type SubmitInteractionIdentityEmail = {
332
330
  /**
333
- * The type of email, such as home, work, unknown etc
331
+ * Email type discriminator. Canonical values: 'personal', 'work', 'home', 'other', 'unknown'. Four map to a domain element by exact match: 'personal' -> PersonalEmail, 'work' -> WorkEmail, 'other' -> OtherEmails, 'unknown' -> UnknownEmail (the domainElementId used to collect them). 'home' is the only canonical value with no domain element: a 'home' email is accepted and stored but cannot be retrieved through any v2 read (it matches no getter); use 'personal', 'work', 'other' or 'unknown' to have the email surfaced. Legacy inputs normalize at the API boundary (e.g. 'email' -> 'personal').
334
332
  */
335
333
  type: string;
336
334
  /**
@@ -371,6 +369,9 @@ export type SubmitInteractionIdentity = {
371
369
  * Any family names for the individual
372
370
  */
373
371
  lastNamesAtBirth?: Array<string> | undefined;
372
+ /**
373
+ * Names the subject is otherwise or was previously known by — applicant-declared, unordered, duplicates permitted
374
+ */
374
375
  aliases?: Array<SubmitInteractionIdentityAlias> | undefined;
375
376
  relatedPersons?: Array<SubmitInteractionIdentityRelatedPerson> | undefined;
376
377
  /**
@@ -391,307 +392,236 @@ export type SubmitInteractionIdentity = {
391
392
  * The subject's mother's maiden name, used for identity verification
392
393
  */
393
394
  mothersMaidenName?: string | undefined;
395
+ /**
396
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
397
+ */
398
+ nationality?: string | undefined;
394
399
  };
395
400
 
396
- export type SubmitInteractionAddress = {
397
- addressString?: string | undefined;
398
- extractedAddressString?: string | undefined;
399
- addressLine1?: string | undefined;
400
- addressLine2?: string | undefined;
401
- locality?: string | undefined;
402
- administrativeArea?: string | undefined;
403
- postalCode?: string | undefined;
404
- };
405
-
406
- export type SubmitInteractionDocumentDevice = {
407
- type?: string | undefined;
408
- model?: string | undefined;
409
- hasContactlessReader?: boolean | undefined;
410
- hasMagneticStripeReader?: boolean | undefined;
411
- hasCamera?: boolean | undefined;
412
- serialNumber?: string | undefined;
413
- manufacturer?: string | undefined;
414
- };
401
+ export const SubmitInteractionTypePrimary1 = {
402
+ Primary: "primary",
403
+ } as const;
404
+ export type SubmitInteractionTypePrimary1 = ClosedEnum<
405
+ typeof SubmitInteractionTypePrimary1
406
+ >;
415
407
 
416
- export const SubmitInteractionName = {
417
- Com: "COM",
418
- Sod: "SOD",
419
- Dg1: "DG1",
420
- Dg2: "DG2",
421
- Dg3: "DG3",
422
- Dg4: "DG4",
423
- Dg5: "DG5",
424
- Dg6: "DG6",
425
- Dg7: "DG7",
426
- Dg8: "DG8",
427
- Dg9: "DG9",
428
- Dg10: "DG10",
429
- Dg11: "DG11",
430
- Dg12: "DG12",
431
- Dg13: "DG13",
432
- Dg14: "DG14",
433
- Dg15: "DG15",
408
+ export const SubmitInteractionStatus = {
409
+ Active: "active",
410
+ Suspended: "suspended",
411
+ Dormant: "dormant",
412
+ Dissolved: "dissolved",
413
+ StruckOff: "struckOff",
414
+ Unknown: "unknown",
434
415
  } as const;
435
- export type SubmitInteractionName = ClosedEnum<typeof SubmitInteractionName>;
416
+ export type SubmitInteractionStatus = ClosedEnum<
417
+ typeof SubmitInteractionStatus
418
+ >;
436
419
 
437
- export type SubmitInteractionLd = {
438
- name: SubmitInteractionName;
439
- data: string;
440
- [additionalProperties: string]: unknown;
420
+ export type SubmitInteractionAddressLocation = {
421
+ latitude?: string | undefined;
422
+ longitude?: string | undefined;
423
+ geoAccuracy?: string | undefined;
424
+ /**
425
+ * A What3words designation associated with this location with '.' separator.
426
+ */
427
+ what3words?: string | undefined;
441
428
  };
442
429
 
443
- export const SubmitInteractionAuthType = {
444
- ActiveAuthentication: "ActiveAuthentication",
445
- BasicAccessControl: "BasicAccessControl",
446
- ChipAuthentication: "ChipAuthentication",
447
- PassiveAuthentication: "PassiveAuthentication",
448
- SupplementalAccessControl: "SupplementalAccessControl",
449
- ExtendedAccessControl: "ExtendedAccessControl",
450
- TerminalAuthentication: "TerminalAuthentication",
430
+ export const SubmitInteractionPurpose = {
431
+ Registered: "registered",
432
+ Mailing: "mailing",
433
+ Site: "site",
434
+ Agent: "agent",
435
+ Headquarters: "headquarters",
451
436
  } as const;
452
- export type SubmitInteractionAuthType = ClosedEnum<
453
- typeof SubmitInteractionAuthType
437
+ export type SubmitInteractionPurpose = ClosedEnum<
438
+ typeof SubmitInteractionPurpose
454
439
  >;
455
440
 
456
- export const SubmitInteractionResult = {
457
- Success: "Success",
458
- Failure: "Failure",
459
- Skipped: "Skipped",
441
+ export type SubmitInteractionAddressPrimary = {
442
+ /**
443
+ * Unformatted line based address
444
+ */
445
+ lines?: Array<string> | undefined;
446
+ /**
447
+ * The address as a single line
448
+ */
449
+ addressString?: string | undefined;
450
+ /**
451
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
452
+ */
453
+ premise?: string | undefined;
454
+ /**
455
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
456
+ */
457
+ building?: string | undefined;
458
+ /**
459
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
460
+ */
461
+ subBuilding?: string | undefined;
462
+ /**
463
+ * This field holds the most common street or block data element within a country. For instance, USA Street
464
+ */
465
+ thoroughfare?: string | undefined;
466
+ /**
467
+ * The name of a dependent street or block, such as a street within a complex.
468
+ */
469
+ dependentThoroughfare?: string | undefined;
470
+ /**
471
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
472
+ */
473
+ locality?: string | undefined;
474
+ /**
475
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
476
+ */
477
+ dependentLocality?: string | undefined;
478
+ /**
479
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
480
+ */
481
+ doubleDependentLocality?: string | undefined;
482
+ /**
483
+ * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
484
+ */
485
+ postalCode?: string | undefined;
486
+ /**
487
+ * This field contains the post box number associated with a particular delivery point, should one exist.
488
+ */
489
+ postBox?: string | undefined;
490
+ /**
491
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
492
+ */
493
+ country?: string | undefined;
494
+ superAdministrativeArea?: string | undefined;
495
+ administrativeArea?: string | undefined;
496
+ subAdministrativeArea?: string | undefined;
497
+ organization?: string | undefined;
498
+ location?: SubmitInteractionAddressLocation | undefined;
499
+ purpose?: SubmitInteractionPurpose | undefined;
500
+ };
501
+
502
+ export const SubmitInteractionTaxIdentifierType = {
503
+ Tin: "TIN",
504
+ Ein: "EIN",
460
505
  } as const;
461
- export type SubmitInteractionResult = ClosedEnum<
462
- typeof SubmitInteractionResult
506
+ export type SubmitInteractionTaxIdentifierType = ClosedEnum<
507
+ typeof SubmitInteractionTaxIdentifierType
463
508
  >;
464
509
 
465
- export type SubmitInteractionChipAuth = {
466
- type: SubmitInteractionAuthType;
467
- result: SubmitInteractionResult;
468
- [additionalProperties: string]: unknown;
510
+ export type SubmitInteractionTaxIdentifier = {
511
+ type: SubmitInteractionTaxIdentifierType;
512
+ value: string;
513
+ /**
514
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
515
+ */
516
+ country?: string | undefined;
469
517
  };
470
518
 
471
- export type SubmitInteractionChip = {
472
- lds: Array<SubmitInteractionLd>;
473
- auth: Array<SubmitInteractionChipAuth>;
474
- [additionalProperties: string]: unknown;
475
- };
519
+ export const SubmitInteractionSystem = {
520
+ Naics2017: "naics2017",
521
+ Naics2022: "naics2022",
522
+ Sic: "sic",
523
+ Mcc: "mcc",
524
+ } as const;
525
+ export type SubmitInteractionSystem = ClosedEnum<
526
+ typeof SubmitInteractionSystem
527
+ >;
476
528
 
477
- export type SubmitInteractionSide = {
478
- side: string;
479
- id: string;
480
- documentQuality: string;
481
- documentQualityScore: number;
529
+ export type SubmitInteractionIndustryClassification = {
530
+ system: SubmitInteractionSystem;
531
+ code: string;
532
+ description?: string | undefined;
482
533
  };
483
534
 
484
- export type SubmitInteractionClassification = {
485
- ids?: Array<string> | undefined;
486
- category?: string | undefined;
487
- type?: string | undefined;
488
- subtype?: string | undefined;
489
- isDoubleSided?: boolean | undefined;
490
- hasNFC?: boolean | undefined;
491
- year?: string | undefined;
492
- countryCode?: string | undefined;
493
- countryName?: string | undefined;
494
- stateCode?: string | undefined;
495
- stateName?: string | undefined;
496
- sides?: Array<SubmitInteractionSide> | undefined;
497
- };
535
+ export const SubmitInteractionRegistrationType = {
536
+ Domestic: "domestic",
537
+ Foreign: "foreign",
538
+ Unknown: "unknown",
539
+ } as const;
540
+ export type SubmitInteractionRegistrationType = ClosedEnum<
541
+ typeof SubmitInteractionRegistrationType
542
+ >;
498
543
 
499
- export type SubmitInteractionAggregatedFieldBoundingBox = {
500
- x: number;
501
- y: number;
502
- width: number;
503
- height: number;
544
+ export type SubmitInteractionRegisteredAddressLocation = {
545
+ latitude?: string | undefined;
546
+ longitude?: string | undefined;
547
+ geoAccuracy?: string | undefined;
548
+ /**
549
+ * A What3words designation associated with this location with '.' separator.
550
+ */
551
+ what3words?: string | undefined;
504
552
  };
505
553
 
506
- export type SubmitInteractionAggregatedFieldRegionOfInterest = {
507
- boundingBox?: SubmitInteractionAggregatedFieldBoundingBox | undefined;
508
- side: string;
509
- spectrum?: string | undefined;
510
- imageId?: string | undefined;
554
+ export type SubmitInteractionRegisteredAddress = {
555
+ /**
556
+ * Unformatted line based address
557
+ */
558
+ lines?: Array<string> | undefined;
559
+ /**
560
+ * The address as a single line
561
+ */
562
+ addressString?: string | undefined;
563
+ /**
564
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
565
+ */
566
+ premise?: string | undefined;
567
+ /**
568
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
569
+ */
570
+ building?: string | undefined;
571
+ /**
572
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
573
+ */
574
+ subBuilding?: string | undefined;
575
+ /**
576
+ * This field holds the most common street or block data element within a country. For instance, USA Street
577
+ */
578
+ thoroughfare?: string | undefined;
579
+ /**
580
+ * The name of a dependent street or block, such as a street within a complex.
581
+ */
582
+ dependentThoroughfare?: string | undefined;
583
+ /**
584
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
585
+ */
586
+ locality?: string | undefined;
587
+ /**
588
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
589
+ */
590
+ dependentLocality?: string | undefined;
591
+ /**
592
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
593
+ */
594
+ doubleDependentLocality?: string | undefined;
595
+ /**
596
+ * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
597
+ */
598
+ postalCode?: string | undefined;
599
+ /**
600
+ * This field contains the post box number associated with a particular delivery point, should one exist.
601
+ */
602
+ postBox?: string | undefined;
603
+ /**
604
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
605
+ */
606
+ country?: string | undefined;
607
+ superAdministrativeArea?: string | undefined;
608
+ administrativeArea?: string | undefined;
609
+ subAdministrativeArea?: string | undefined;
610
+ organization?: string | undefined;
611
+ location?: SubmitInteractionRegisteredAddressLocation | undefined;
511
612
  };
512
613
 
513
- export type SubmitInteractionAggregatedField = {
514
- label: string;
515
- value: string;
516
- source: string;
517
- isNonLatin: boolean;
518
- regionOfInterest?:
519
- | SubmitInteractionAggregatedFieldRegionOfInterest
520
- | undefined;
614
+ export type SubmitInteractionAgentAddressLocation = {
615
+ latitude?: string | undefined;
616
+ longitude?: string | undefined;
617
+ geoAccuracy?: string | undefined;
618
+ /**
619
+ * A What3words designation associated with this location with '.' separator.
620
+ */
621
+ what3words?: string | undefined;
521
622
  };
522
623
 
523
- export type SubmitInteractionDetailBoundingBox = {
524
- x: number;
525
- y: number;
526
- width: number;
527
- height: number;
528
- };
529
-
530
- export type SubmitInteractionDetailRegionOfInterest = {
531
- boundingBox?: SubmitInteractionDetailBoundingBox | undefined;
532
- side: string;
533
- spectrum?: string | undefined;
534
- imageId?: string | undefined;
535
- };
536
-
537
- export type SubmitInteractionDetail = {
538
- label: string;
539
- value: string;
540
- source: string;
541
- isNonLatin: boolean;
542
- regionOfInterest?: SubmitInteractionDetailRegionOfInterest | undefined;
543
- };
544
-
545
- export type SubmitInteractionExtractedField = {
546
- label: string;
547
- details: Array<SubmitInteractionDetail>;
548
- };
549
-
550
- export type SubmitInteractionExtractedImage = {
551
- label: string;
552
- side: string;
553
- imageID: string;
554
- };
555
-
556
- export type SubmitInteractionExtraction = {
557
- aggregatedFields?: Array<SubmitInteractionAggregatedField> | undefined;
558
- extractedFields?: Array<SubmitInteractionExtractedField> | undefined;
559
- extractedImages?: Array<SubmitInteractionExtractedImage> | undefined;
560
- };
561
-
562
- export type SubmitInteractionValidationCheckBoundingBox = {
563
- x: number;
564
- y: number;
565
- width: number;
566
- height: number;
567
- };
568
-
569
- export type SubmitInteractionValidationCheckRegionOfInterest = {
570
- boundingBox?: SubmitInteractionValidationCheckBoundingBox | undefined;
571
- side: string;
572
- spectrum?: string | undefined;
573
- imageId?: string | undefined;
574
- };
575
-
576
- export type SubmitInteractionValidationCheck = {
577
- name: string;
578
- title: string;
579
- info: string;
580
- validationResult: string;
581
- resultInfo: string;
582
- weight: string;
583
- regionOfInterests?:
584
- | Array<SubmitInteractionValidationCheckRegionOfInterest>
585
- | undefined;
586
- type: string;
587
- };
588
-
589
- export type SubmitInteractionAggregatedValidationCheckBoundingBox = {
590
- x: number;
591
- y: number;
592
- width: number;
593
- height: number;
594
- };
595
-
596
- export type SubmitInteractionAggregatedValidationCheckRegionOfInterest = {
597
- boundingBox?:
598
- | SubmitInteractionAggregatedValidationCheckBoundingBox
599
- | undefined;
600
- side: string;
601
- spectrum?: string | undefined;
602
- imageId?: string | undefined;
603
- };
604
-
605
- export type SubmitInteractionAggregatedValidationCheck = {
606
- name: string;
607
- title: string;
608
- info: string;
609
- validationResult: string;
610
- resultInfo: string;
611
- weight: string;
612
- regionOfInterests?:
613
- | Array<SubmitInteractionAggregatedValidationCheckRegionOfInterest>
614
- | undefined;
615
- type: string;
616
- };
617
-
618
- export type SubmitInteractionValidation = {
619
- validationChecks?: Array<SubmitInteractionValidationCheck> | undefined;
620
- aggregatedValidationChecks?:
621
- | Array<SubmitInteractionAggregatedValidationCheck>
622
- | undefined;
623
- };
624
-
625
- export type SubmitInteractionDocumentAlias = {
626
- /**
627
- * Title of an individual such as Mr, Mrs, Dr, Sir
628
- */
629
- title?: string | undefined;
630
- /**
631
- * A person's name used by their collegues and friends to address them
632
- */
633
- firstName?: string | undefined;
634
- /**
635
- * Any other registered names used by the individual, not aliases
636
- */
637
- middleNames?: Array<string> | undefined;
638
- /**
639
- * Any family names for the individual
640
- */
641
- lastNames?: Array<string> | undefined;
642
- /**
643
- * Any family names for the individual
644
- */
645
- lastNamesAtBirth?: Array<string> | undefined;
646
- };
647
-
648
- export const SubmitInteractionDocumentRelationship = {
649
- Mother: "mother",
650
- Father: "father",
651
- MaternalGrandFather: "maternalGrandFather",
652
- MaternalGrandMother: "maternalGrandMother",
653
- PaternalGrandFather: "paternalGrandFather",
654
- PaternalGrandMother: "paternalGrandMother",
655
- } as const;
656
- export type SubmitInteractionDocumentRelationship = ClosedEnum<
657
- typeof SubmitInteractionDocumentRelationship
658
- >;
659
-
660
- export type SubmitInteractionDocumentRelatedPerson = {
661
- /**
662
- * Title of an individual such as Mr, Mrs, Dr, Sir
663
- */
664
- title?: string | undefined;
665
- /**
666
- * A person's name used by their collegues and friends to address them
667
- */
668
- firstName?: string | undefined;
669
- /**
670
- * Any other registered names used by the individual, not aliases
671
- */
672
- middleNames?: Array<string> | undefined;
673
- /**
674
- * Any family names for the individual
675
- */
676
- lastNames?: Array<string> | undefined;
677
- /**
678
- * Any family names for the individual
679
- */
680
- lastNamesAtBirth?: Array<string> | undefined;
681
- relationship: SubmitInteractionDocumentRelationship;
682
- };
683
-
684
- export type SubmitInteractionDocumentCurrentAddressLocation = {
685
- latitude?: string | undefined;
686
- longitude?: string | undefined;
687
- geoAccuracy?: string | undefined;
688
- /**
689
- * A What3words designation associated with this location with '.' separator.
690
- */
691
- what3words?: string | undefined;
692
- };
693
-
694
- export type SubmitInteractionDocumentCurrentAddress = {
624
+ export type SubmitInteractionAgentAddress = {
695
625
  /**
696
626
  * Unformatted line based address
697
627
  */
@@ -701,15 +631,15 @@ export type SubmitInteractionDocumentCurrentAddress = {
701
631
  */
702
632
  addressString?: string | undefined;
703
633
  /**
704
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
634
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
705
635
  */
706
636
  premise?: string | undefined;
707
637
  /**
708
- * The name of a building or a building complex. In the US, this is the street number.
638
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
709
639
  */
710
640
  building?: string | undefined;
711
641
  /**
712
- * The name of a sub-building, such as a flat or apartment number.
642
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
713
643
  */
714
644
  subBuilding?: string | undefined;
715
645
  /**
@@ -748,10 +678,40 @@ export type SubmitInteractionDocumentCurrentAddress = {
748
678
  administrativeArea?: string | undefined;
749
679
  subAdministrativeArea?: string | undefined;
750
680
  organization?: string | undefined;
751
- location?: SubmitInteractionDocumentCurrentAddressLocation | undefined;
681
+ location?: SubmitInteractionAgentAddressLocation | undefined;
752
682
  };
753
683
 
754
- export type SubmitInteractionDocumentPreviousAddressLocation = {
684
+ export type SubmitInteractionRegistration = {
685
+ jurisdiction?: string | undefined;
686
+ registrationType?: SubmitInteractionRegistrationType | undefined;
687
+ fileNumber?: string | undefined;
688
+ /**
689
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
690
+ */
691
+ issueDate?: string | undefined;
692
+ registeredAddress?: SubmitInteractionRegisteredAddress | undefined;
693
+ agentName?: string | undefined;
694
+ agentAddress?: SubmitInteractionAgentAddress | undefined;
695
+ };
696
+
697
+ export const SubmitInteractionTypePrimary2 = {
698
+ Primary: "primary",
699
+ } as const;
700
+ export type SubmitInteractionTypePrimary2 = ClosedEnum<
701
+ typeof SubmitInteractionTypePrimary2
702
+ >;
703
+
704
+ export const SubmitInteractionRole = {
705
+ UltimateBeneficialOwner: "ultimateBeneficialOwner",
706
+ Director: "director",
707
+ Officer: "officer",
708
+ Secretary: "secretary",
709
+ Shareholder: "shareholder",
710
+ Partner: "partner",
711
+ } as const;
712
+ export type SubmitInteractionRole = ClosedEnum<typeof SubmitInteractionRole>;
713
+
714
+ export type SubmitInteractionCurrentAddressLocationPrimary = {
755
715
  latitude?: string | undefined;
756
716
  longitude?: string | undefined;
757
717
  geoAccuracy?: string | undefined;
@@ -761,7 +721,7 @@ export type SubmitInteractionDocumentPreviousAddressLocation = {
761
721
  what3words?: string | undefined;
762
722
  };
763
723
 
764
- export type SubmitInteractionDocumentPreviousAddress = {
724
+ export type SubmitInteractionCurrentAddressPrimary = {
765
725
  /**
766
726
  * Unformatted line based address
767
727
  */
@@ -771,15 +731,15 @@ export type SubmitInteractionDocumentPreviousAddress = {
771
731
  */
772
732
  addressString?: string | undefined;
773
733
  /**
774
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
734
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
775
735
  */
776
736
  premise?: string | undefined;
777
737
  /**
778
- * The name of a building or a building complex. In the US, this is the street number.
738
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
779
739
  */
780
740
  building?: string | undefined;
781
741
  /**
782
- * The name of a sub-building, such as a flat or apartment number.
742
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
783
743
  */
784
744
  subBuilding?: string | undefined;
785
745
  /**
@@ -818,621 +778,1974 @@ export type SubmitInteractionDocumentPreviousAddress = {
818
778
  administrativeArea?: string | undefined;
819
779
  subAdministrativeArea?: string | undefined;
820
780
  organization?: string | undefined;
821
- location?: SubmitInteractionDocumentPreviousAddressLocation | undefined;
822
- /**
823
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
824
- */
825
- fromDate: string;
826
- /**
827
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
828
- */
829
- toDate: string;
781
+ location?: SubmitInteractionCurrentAddressLocationPrimary | undefined;
830
782
  };
831
783
 
832
- export type SubmitInteractionDocumentPlaceOfBirthLocation = {
833
- latitude?: string | undefined;
834
- longitude?: string | undefined;
835
- geoAccuracy?: string | undefined;
784
+ export type SubmitInteractionPerson = {
836
785
  /**
837
- * A What3words designation associated with this location with '.' separator.
786
+ * Title of an individual such as Mr, Mrs, Dr, Sir
838
787
  */
839
- what3words?: string | undefined;
840
- };
841
-
842
- export type SubmitInteractionDocumentPlaceOfBirth = {
788
+ title?: string | undefined;
843
789
  /**
844
- * Unformatted line based address
790
+ * A person's name used by their collegues and friends to address them
845
791
  */
846
- lines?: Array<string> | undefined;
792
+ firstName?: string | undefined;
847
793
  /**
848
- * The address as a single line
794
+ * Any other registered names used by the individual, not aliases
849
795
  */
850
- addressString?: string | undefined;
796
+ middleNames?: Array<string> | undefined;
851
797
  /**
852
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
798
+ * Any family names for the individual
853
799
  */
854
- premise?: string | undefined;
800
+ lastNames?: Array<string> | undefined;
855
801
  /**
856
- * The name of a building or a building complex. In the US, this is the street number.
802
+ * Any family names for the individual
857
803
  */
858
- building?: string | undefined;
804
+ lastNamesAtBirth?: Array<string> | undefined;
805
+ id?: string | undefined;
806
+ type?: SubmitInteractionTypePrimary2 | undefined;
807
+ role?: SubmitInteractionRole | undefined;
808
+ position?: string | undefined;
809
+ ownershipPercentage?: number | undefined;
859
810
  /**
860
- * The name of a sub-building, such as a flat or apartment number.
811
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
861
812
  */
862
- subBuilding?: string | undefined;
813
+ nationality?: string | undefined;
814
+ dateOfBirth?: string | undefined;
863
815
  /**
864
- * This field holds the most common street or block data element within a country. For instance, USA Street
816
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
865
817
  */
866
- thoroughfare?: string | undefined;
818
+ startDate?: string | undefined;
867
819
  /**
868
- * The name of a dependent street or block, such as a street within a complex.
820
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
869
821
  */
870
- dependentThoroughfare?: string | undefined;
822
+ endDate?: string | undefined;
823
+ currentAddress?: SubmitInteractionCurrentAddressPrimary | undefined;
824
+ };
825
+
826
+ export type SubmitInteractionPhonePrimary = {
871
827
  /**
872
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
828
+ * The type of phone number, such as landline, mobile, fax, unknown etc
873
829
  */
874
- locality?: string | undefined;
830
+ type: string;
875
831
  /**
876
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
832
+ * Phone number, ideally in international format with +(Country Code)
877
833
  */
878
- dependentLocality?: string | undefined;
834
+ number: string;
835
+ };
836
+
837
+ export type SubmitInteractionEntity = {
838
+ id?: string | undefined;
839
+ type?: SubmitInteractionTypePrimary1 | undefined;
840
+ name?: string | undefined;
841
+ aliases?: Array<string> | undefined;
842
+ businessType?: string | undefined;
843
+ status?: SubmitInteractionStatus | undefined;
844
+ description?: string | undefined;
845
+ addresses?: Array<SubmitInteractionAddressPrimary> | undefined;
846
+ taxIdentifiers?: Array<SubmitInteractionTaxIdentifier> | undefined;
847
+ companyNumber?: string | undefined;
848
+ industryClassifications?:
849
+ | Array<SubmitInteractionIndustryClassification>
850
+ | undefined;
851
+ registrations?: Array<SubmitInteractionRegistration> | undefined;
852
+ corporateStructure?: string | undefined;
853
+ persons?: Array<SubmitInteractionPerson> | undefined;
879
854
  /**
880
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
855
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
881
856
  */
882
- doubleDependentLocality?: string | undefined;
857
+ incorporationDate?: string | undefined;
883
858
  /**
884
- * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
859
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
885
860
  */
861
+ dissolutionDate?: string | undefined;
862
+ phones?: Array<SubmitInteractionPhonePrimary> | undefined;
863
+ websites?: Array<string> | undefined;
864
+ headcount?: number | undefined;
865
+ isNonProfit?: boolean | undefined;
866
+ };
867
+
868
+ export type SubmitInteractionDocumentAddress = {
869
+ addressString?: string | undefined;
870
+ extractedAddressString?: string | undefined;
871
+ addressLine1?: string | undefined;
872
+ addressLine2?: string | undefined;
873
+ locality?: string | undefined;
874
+ administrativeArea?: string | undefined;
886
875
  postalCode?: string | undefined;
876
+ };
877
+
878
+ export type SubmitInteractionDocumentDevice = {
879
+ type?: string | undefined;
880
+ model?: string | undefined;
881
+ hasContactlessReader?: boolean | undefined;
882
+ hasMagneticStripeReader?: boolean | undefined;
883
+ hasCamera?: boolean | undefined;
884
+ serialNumber?: string | undefined;
885
+ manufacturer?: string | undefined;
886
+ };
887
+
888
+ export type SubmitInteractionSide1Device = {
889
+ type?: string | undefined;
890
+ model?: string | undefined;
891
+ hasContactlessReader?: boolean | undefined;
892
+ hasMagneticStripeReader?: boolean | undefined;
893
+ hasCamera?: boolean | undefined;
894
+ serialNumber?: string | undefined;
895
+ manufacturer?: string | undefined;
896
+ };
897
+
898
+ export type SubmitInteractionSide2Device = {
899
+ type?: string | undefined;
900
+ model?: string | undefined;
901
+ hasContactlessReader?: boolean | undefined;
902
+ hasMagneticStripeReader?: boolean | undefined;
903
+ hasCamera?: boolean | undefined;
904
+ serialNumber?: string | undefined;
905
+ manufacturer?: string | undefined;
906
+ };
907
+
908
+ export const SubmitInteractionName = {
909
+ Com: "COM",
910
+ Sod: "SOD",
911
+ Dg1: "DG1",
912
+ Dg2: "DG2",
913
+ Dg3: "DG3",
914
+ Dg4: "DG4",
915
+ Dg5: "DG5",
916
+ Dg6: "DG6",
917
+ Dg7: "DG7",
918
+ Dg8: "DG8",
919
+ Dg9: "DG9",
920
+ Dg10: "DG10",
921
+ Dg11: "DG11",
922
+ Dg12: "DG12",
923
+ Dg13: "DG13",
924
+ Dg14: "DG14",
925
+ Dg15: "DG15",
926
+ } as const;
927
+ export type SubmitInteractionName = ClosedEnum<typeof SubmitInteractionName>;
928
+
929
+ export type SubmitInteractionLd = {
930
+ name: SubmitInteractionName;
931
+ data: string;
932
+ [additionalProperties: string]: unknown;
933
+ };
934
+
935
+ export const SubmitInteractionAuthType = {
936
+ ActiveAuthentication: "ActiveAuthentication",
937
+ BasicAccessControl: "BasicAccessControl",
938
+ ChipAuthentication: "ChipAuthentication",
939
+ PassiveAuthentication: "PassiveAuthentication",
940
+ SupplementalAccessControl: "SupplementalAccessControl",
941
+ ExtendedAccessControl: "ExtendedAccessControl",
942
+ TerminalAuthentication: "TerminalAuthentication",
943
+ } as const;
944
+ export type SubmitInteractionAuthType = ClosedEnum<
945
+ typeof SubmitInteractionAuthType
946
+ >;
947
+
948
+ export const SubmitInteractionResult = {
949
+ Success: "Success",
950
+ Failure: "Failure",
951
+ Skipped: "Skipped",
952
+ } as const;
953
+ export type SubmitInteractionResult = ClosedEnum<
954
+ typeof SubmitInteractionResult
955
+ >;
956
+
957
+ export type SubmitInteractionChipAuth = {
958
+ type: SubmitInteractionAuthType;
959
+ result: SubmitInteractionResult;
960
+ [additionalProperties: string]: unknown;
961
+ };
962
+
963
+ export type SubmitInteractionChip = {
964
+ lds: Array<SubmitInteractionLd>;
965
+ auth: Array<SubmitInteractionChipAuth>;
966
+ [additionalProperties: string]: unknown;
967
+ };
968
+
969
+ export type SubmitInteractionSide = {
970
+ side: string;
971
+ id: string;
972
+ documentQuality: string;
973
+ documentQualityScore: number;
974
+ };
975
+
976
+ export type SubmitInteractionClassification = {
977
+ ids?: Array<string> | undefined;
978
+ category?: string | undefined;
979
+ type?: string | undefined;
980
+ subtype?: string | undefined;
981
+ isDoubleSided?: boolean | undefined;
982
+ hasNFC?: boolean | undefined;
983
+ year?: string | undefined;
984
+ countryCode?: string | undefined;
985
+ countryName?: string | undefined;
986
+ stateCode?: string | undefined;
987
+ stateName?: string | undefined;
988
+ sides?: Array<SubmitInteractionSide> | undefined;
989
+ };
990
+
991
+ export type SubmitInteractionAggregatedFieldBoundingBox = {
992
+ x: number;
993
+ y: number;
994
+ width: number;
995
+ height: number;
996
+ };
997
+
998
+ export type SubmitInteractionAggregatedFieldRegionOfInterest = {
999
+ boundingBox?: SubmitInteractionAggregatedFieldBoundingBox | undefined;
1000
+ side: string;
1001
+ spectrum?: string | undefined;
1002
+ imageId?: string | undefined;
1003
+ };
1004
+
1005
+ export type SubmitInteractionAggregatedField = {
1006
+ label: string;
1007
+ value: string;
1008
+ source: string;
1009
+ isNonLatin: boolean;
1010
+ regionOfInterest?:
1011
+ | SubmitInteractionAggregatedFieldRegionOfInterest
1012
+ | undefined;
1013
+ };
1014
+
1015
+ export type SubmitInteractionDetailBoundingBox = {
1016
+ x: number;
1017
+ y: number;
1018
+ width: number;
1019
+ height: number;
1020
+ };
1021
+
1022
+ export type SubmitInteractionDetailRegionOfInterest = {
1023
+ boundingBox?: SubmitInteractionDetailBoundingBox | undefined;
1024
+ side: string;
1025
+ spectrum?: string | undefined;
1026
+ imageId?: string | undefined;
1027
+ };
1028
+
1029
+ export type SubmitInteractionDetail = {
1030
+ label: string;
1031
+ value: string;
1032
+ source: string;
1033
+ isNonLatin: boolean;
1034
+ regionOfInterest?: SubmitInteractionDetailRegionOfInterest | undefined;
1035
+ };
1036
+
1037
+ export type SubmitInteractionExtractedField = {
1038
+ label: string;
1039
+ details: Array<SubmitInteractionDetail>;
1040
+ };
1041
+
1042
+ export type SubmitInteractionExtractedImage = {
1043
+ label: string;
1044
+ side: string;
1045
+ imageID: string;
1046
+ };
1047
+
1048
+ export type SubmitInteractionExtraction = {
1049
+ aggregatedFields?: Array<SubmitInteractionAggregatedField> | undefined;
1050
+ extractedFields?: Array<SubmitInteractionExtractedField> | undefined;
1051
+ extractedImages?: Array<SubmitInteractionExtractedImage> | undefined;
1052
+ };
1053
+
1054
+ export type SubmitInteractionValidationCheckBoundingBox = {
1055
+ x: number;
1056
+ y: number;
1057
+ width: number;
1058
+ height: number;
1059
+ };
1060
+
1061
+ export type SubmitInteractionValidationCheckRegionOfInterest = {
1062
+ boundingBox?: SubmitInteractionValidationCheckBoundingBox | undefined;
1063
+ side: string;
1064
+ spectrum?: string | undefined;
1065
+ imageId?: string | undefined;
1066
+ };
1067
+
1068
+ export type SubmitInteractionValidationCheck = {
1069
+ name: string;
1070
+ title: string;
1071
+ info: string;
1072
+ validationResult: string;
1073
+ resultInfo: string;
1074
+ weight: string;
1075
+ regionOfInterests?:
1076
+ | Array<SubmitInteractionValidationCheckRegionOfInterest>
1077
+ | undefined;
1078
+ type: string;
1079
+ };
1080
+
1081
+ export type SubmitInteractionAggregatedValidationCheckBoundingBox = {
1082
+ x: number;
1083
+ y: number;
1084
+ width: number;
1085
+ height: number;
1086
+ };
1087
+
1088
+ export type SubmitInteractionAggregatedValidationCheckRegionOfInterest = {
1089
+ boundingBox?:
1090
+ | SubmitInteractionAggregatedValidationCheckBoundingBox
1091
+ | undefined;
1092
+ side: string;
1093
+ spectrum?: string | undefined;
1094
+ imageId?: string | undefined;
1095
+ };
1096
+
1097
+ export type SubmitInteractionAggregatedValidationCheck = {
1098
+ name: string;
1099
+ title: string;
1100
+ info: string;
1101
+ validationResult: string;
1102
+ resultInfo: string;
1103
+ weight: string;
1104
+ regionOfInterests?:
1105
+ | Array<SubmitInteractionAggregatedValidationCheckRegionOfInterest>
1106
+ | undefined;
1107
+ type: string;
1108
+ };
1109
+
1110
+ export type SubmitInteractionValidation = {
1111
+ validationChecks?: Array<SubmitInteractionValidationCheck> | undefined;
1112
+ aggregatedValidationChecks?:
1113
+ | Array<SubmitInteractionAggregatedValidationCheck>
1114
+ | undefined;
1115
+ };
1116
+
1117
+ export type SubmitInteractionDocumentAlias = {
1118
+ /**
1119
+ * Title of an individual such as Mr, Mrs, Dr, Sir
1120
+ */
1121
+ title?: string | undefined;
1122
+ /**
1123
+ * A person's name used by their collegues and friends to address them
1124
+ */
1125
+ firstName?: string | undefined;
1126
+ /**
1127
+ * Any other registered names used by the individual, not aliases
1128
+ */
1129
+ middleNames?: Array<string> | undefined;
1130
+ /**
1131
+ * Any family names for the individual
1132
+ */
1133
+ lastNames?: Array<string> | undefined;
1134
+ /**
1135
+ * Any family names for the individual
1136
+ */
1137
+ lastNamesAtBirth?: Array<string> | undefined;
1138
+ /**
1139
+ * The whole name as stated, unsplit into parts — used when the alias has no meaningful name parts
1140
+ */
1141
+ fullName?: string | undefined;
1142
+ };
1143
+
1144
+ export const SubmitInteractionDocumentRelationship = {
1145
+ Mother: "mother",
1146
+ Father: "father",
1147
+ Spouse: "spouse",
1148
+ MaternalGrandFather: "maternalGrandFather",
1149
+ MaternalGrandMother: "maternalGrandMother",
1150
+ PaternalGrandFather: "paternalGrandFather",
1151
+ PaternalGrandMother: "paternalGrandMother",
1152
+ } as const;
1153
+ export type SubmitInteractionDocumentRelationship = ClosedEnum<
1154
+ typeof SubmitInteractionDocumentRelationship
1155
+ >;
1156
+
1157
+ export type SubmitInteractionDocumentRelatedPerson = {
1158
+ /**
1159
+ * Title of an individual such as Mr, Mrs, Dr, Sir
1160
+ */
1161
+ title?: string | undefined;
1162
+ /**
1163
+ * A person's name used by their collegues and friends to address them
1164
+ */
1165
+ firstName?: string | undefined;
1166
+ /**
1167
+ * Any other registered names used by the individual, not aliases
1168
+ */
1169
+ middleNames?: Array<string> | undefined;
1170
+ /**
1171
+ * Any family names for the individual
1172
+ */
1173
+ lastNames?: Array<string> | undefined;
1174
+ /**
1175
+ * Any family names for the individual
1176
+ */
1177
+ lastNamesAtBirth?: Array<string> | undefined;
1178
+ relationship: SubmitInteractionDocumentRelationship;
1179
+ };
1180
+
1181
+ export type SubmitInteractionDocumentCurrentAddressLocation = {
1182
+ latitude?: string | undefined;
1183
+ longitude?: string | undefined;
1184
+ geoAccuracy?: string | undefined;
1185
+ /**
1186
+ * A What3words designation associated with this location with '.' separator.
1187
+ */
1188
+ what3words?: string | undefined;
1189
+ };
1190
+
1191
+ export type SubmitInteractionDocumentCurrentAddress = {
1192
+ /**
1193
+ * Unformatted line based address
1194
+ */
1195
+ lines?: Array<string> | undefined;
1196
+ /**
1197
+ * The address as a single line
1198
+ */
1199
+ addressString?: string | undefined;
1200
+ /**
1201
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
1202
+ */
1203
+ premise?: string | undefined;
1204
+ /**
1205
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
1206
+ */
1207
+ building?: string | undefined;
1208
+ /**
1209
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
1210
+ */
1211
+ subBuilding?: string | undefined;
1212
+ /**
1213
+ * This field holds the most common street or block data element within a country. For instance, USA Street
1214
+ */
1215
+ thoroughfare?: string | undefined;
1216
+ /**
1217
+ * The name of a dependent street or block, such as a street within a complex.
1218
+ */
1219
+ dependentThoroughfare?: string | undefined;
1220
+ /**
1221
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
1222
+ */
1223
+ locality?: string | undefined;
1224
+ /**
1225
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
1226
+ */
1227
+ dependentLocality?: string | undefined;
1228
+ /**
1229
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
1230
+ */
1231
+ doubleDependentLocality?: string | undefined;
1232
+ /**
1233
+ * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
1234
+ */
1235
+ postalCode?: string | undefined;
1236
+ /**
1237
+ * This field contains the post box number associated with a particular delivery point, should one exist.
1238
+ */
1239
+ postBox?: string | undefined;
1240
+ /**
1241
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1242
+ */
1243
+ country?: string | undefined;
1244
+ superAdministrativeArea?: string | undefined;
1245
+ administrativeArea?: string | undefined;
1246
+ subAdministrativeArea?: string | undefined;
1247
+ organization?: string | undefined;
1248
+ location?: SubmitInteractionDocumentCurrentAddressLocation | undefined;
1249
+ };
1250
+
1251
+ export type SubmitInteractionDocumentPreviousAddressLocation = {
1252
+ latitude?: string | undefined;
1253
+ longitude?: string | undefined;
1254
+ geoAccuracy?: string | undefined;
1255
+ /**
1256
+ * A What3words designation associated with this location with '.' separator.
1257
+ */
1258
+ what3words?: string | undefined;
1259
+ };
1260
+
1261
+ export type SubmitInteractionDocumentPreviousAddress = {
1262
+ /**
1263
+ * Unformatted line based address
1264
+ */
1265
+ lines?: Array<string> | undefined;
1266
+ /**
1267
+ * The address as a single line
1268
+ */
1269
+ addressString?: string | undefined;
1270
+ /**
1271
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
1272
+ */
1273
+ premise?: string | undefined;
1274
+ /**
1275
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
1276
+ */
1277
+ building?: string | undefined;
1278
+ /**
1279
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
1280
+ */
1281
+ subBuilding?: string | undefined;
1282
+ /**
1283
+ * This field holds the most common street or block data element within a country. For instance, USA Street
1284
+ */
1285
+ thoroughfare?: string | undefined;
1286
+ /**
1287
+ * The name of a dependent street or block, such as a street within a complex.
1288
+ */
1289
+ dependentThoroughfare?: string | undefined;
1290
+ /**
1291
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
1292
+ */
1293
+ locality?: string | undefined;
1294
+ /**
1295
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
1296
+ */
1297
+ dependentLocality?: string | undefined;
1298
+ /**
1299
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
1300
+ */
1301
+ doubleDependentLocality?: string | undefined;
1302
+ /**
1303
+ * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
1304
+ */
1305
+ postalCode?: string | undefined;
1306
+ /**
1307
+ * This field contains the post box number associated with a particular delivery point, should one exist.
1308
+ */
1309
+ postBox?: string | undefined;
1310
+ /**
1311
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1312
+ */
1313
+ country?: string | undefined;
1314
+ superAdministrativeArea?: string | undefined;
1315
+ administrativeArea?: string | undefined;
1316
+ subAdministrativeArea?: string | undefined;
1317
+ organization?: string | undefined;
1318
+ location?: SubmitInteractionDocumentPreviousAddressLocation | undefined;
1319
+ /**
1320
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1321
+ */
1322
+ fromDate?: string | undefined;
1323
+ /**
1324
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1325
+ */
1326
+ toDate?: string | undefined;
1327
+ };
1328
+
1329
+ export type SubmitInteractionDocumentPlaceOfBirthLocation = {
1330
+ latitude?: string | undefined;
1331
+ longitude?: string | undefined;
1332
+ geoAccuracy?: string | undefined;
1333
+ /**
1334
+ * A What3words designation associated with this location with '.' separator.
1335
+ */
1336
+ what3words?: string | undefined;
1337
+ };
1338
+
1339
+ export type SubmitInteractionDocumentPlaceOfBirth = {
1340
+ /**
1341
+ * Unformatted line based address
1342
+ */
1343
+ lines?: Array<string> | undefined;
1344
+ /**
1345
+ * The address as a single line
1346
+ */
1347
+ addressString?: string | undefined;
1348
+ /**
1349
+ * The number identifying the property's delivery point on its street — "128", "30A", "8-12". Not the street name (thoroughfare), the unit (subBuilding), or a building or property name (building). Empty for a property identified only by a name.
1350
+ */
1351
+ premise?: string | undefined;
1352
+ /**
1353
+ * The name of the building, complex, or named property — "Landmark House", "The Shard". Never the street number, in any country; that is premise. A property identified only by a name populates this field with premise left empty.
1354
+ */
1355
+ building?: string | undefined;
1356
+ /**
1357
+ * The unit within the property, such as a flat, apartment or suite number — "FLAT 1", "SUITE 212".
1358
+ */
1359
+ subBuilding?: string | undefined;
1360
+ /**
1361
+ * This field holds the most common street or block data element within a country. For instance, USA Street
1362
+ */
1363
+ thoroughfare?: string | undefined;
1364
+ /**
1365
+ * The name of a dependent street or block, such as a street within a complex.
1366
+ */
1367
+ dependentThoroughfare?: string | undefined;
1368
+ /**
1369
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
1370
+ */
1371
+ locality?: string | undefined;
1372
+ /**
1373
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
1374
+ */
1375
+ dependentLocality?: string | undefined;
1376
+ /**
1377
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
1378
+ */
1379
+ doubleDependentLocality?: string | undefined;
1380
+ /**
1381
+ * This field contains the complete postal code for a particular delivery point, should such detail be able to be determined. For example ZIP code in the US
1382
+ */
1383
+ postalCode?: string | undefined;
1384
+ /**
1385
+ * This field contains the post box number associated with a particular delivery point, should one exist.
1386
+ */
1387
+ postBox?: string | undefined;
1388
+ /**
1389
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1390
+ */
1391
+ country?: string | undefined;
1392
+ superAdministrativeArea?: string | undefined;
1393
+ administrativeArea?: string | undefined;
1394
+ subAdministrativeArea?: string | undefined;
1395
+ organization?: string | undefined;
1396
+ location?: SubmitInteractionDocumentPlaceOfBirthLocation | undefined;
1397
+ };
1398
+
1399
+ export type SubmitInteractionDocumentIdNumber = {
1400
+ /**
1401
+ * The type of phone number, such as landline, mobile, fax, unknown etc
1402
+ */
1403
+ type: string;
1404
+ /**
1405
+ * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
1406
+ */
1407
+ idNumber: string;
1408
+ /**
1409
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1410
+ */
1411
+ country?: string | undefined;
1412
+ };
1413
+
1414
+ export type SubmitInteractionDocumentPhone = {
1415
+ /**
1416
+ * The type of phone number, such as landline, mobile, fax, unknown etc
1417
+ */
1418
+ type: string;
1419
+ /**
1420
+ * Phone number, ideally in international format with +(Country Code)
1421
+ */
1422
+ number: string;
1423
+ };
1424
+
1425
+ export type SubmitInteractionDocumentEmail = {
1426
+ /**
1427
+ * Email type discriminator. Canonical values: 'personal', 'work', 'home', 'other', 'unknown'. Four map to a domain element by exact match: 'personal' -> PersonalEmail, 'work' -> WorkEmail, 'other' -> OtherEmails, 'unknown' -> UnknownEmail (the domainElementId used to collect them). 'home' is the only canonical value with no domain element: a 'home' email is accepted and stored but cannot be retrieved through any v2 read (it matches no getter); use 'personal', 'work', 'other' or 'unknown' to have the email surfaced. Legacy inputs normalize at the API boundary (e.g. 'email' -> 'personal').
1428
+ */
1429
+ type: string;
1430
+ /**
1431
+ * Email address
1432
+ */
1433
+ email: string;
1434
+ };
1435
+
1436
+ export type SubmitInteractionDocumentSocial = {
1437
+ /**
1438
+ * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
1439
+ */
1440
+ type: string;
1441
+ /**
1442
+ * the identity used on this platform
1443
+ */
1444
+ identity: string;
1445
+ };
1446
+
1447
+ export type SubmitInteractionDocumentSubject = {
1448
+ /**
1449
+ * Title of an individual such as Mr, Mrs, Dr, Sir
1450
+ */
1451
+ title?: string | undefined;
1452
+ /**
1453
+ * A person's name used by their collegues and friends to address them
1454
+ */
1455
+ firstName?: string | undefined;
1456
+ /**
1457
+ * Any other registered names used by the individual, not aliases
1458
+ */
1459
+ middleNames?: Array<string> | undefined;
1460
+ /**
1461
+ * Any family names for the individual
1462
+ */
1463
+ lastNames?: Array<string> | undefined;
1464
+ /**
1465
+ * Any family names for the individual
1466
+ */
1467
+ lastNamesAtBirth?: Array<string> | undefined;
1468
+ /**
1469
+ * Names the subject is otherwise or was previously known by — applicant-declared, unordered, duplicates permitted
1470
+ */
1471
+ aliases?: Array<SubmitInteractionDocumentAlias> | undefined;
1472
+ relatedPersons?: Array<SubmitInteractionDocumentRelatedPerson> | undefined;
1473
+ /**
1474
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1475
+ */
1476
+ dateOfBirth?: string | undefined;
1477
+ gender?: string | undefined;
1478
+ currentAddress?: SubmitInteractionDocumentCurrentAddress | undefined;
1479
+ previousAddresses?:
1480
+ | Array<SubmitInteractionDocumentPreviousAddress>
1481
+ | undefined;
1482
+ placeOfBirth?: SubmitInteractionDocumentPlaceOfBirth | undefined;
1483
+ idNumbers?: Array<SubmitInteractionDocumentIdNumber> | undefined;
1484
+ phones?: Array<SubmitInteractionDocumentPhone> | undefined;
1485
+ emails?: Array<SubmitInteractionDocumentEmail> | undefined;
1486
+ socials?: Array<SubmitInteractionDocumentSocial> | undefined;
1487
+ /**
1488
+ * The subject's mother's maiden name, used for identity verification
1489
+ */
1490
+ mothersMaidenName?: string | undefined;
1491
+ /**
1492
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1493
+ */
1494
+ nationality?: string | undefined;
1495
+ };
1496
+
1497
+ export type SubmitInteractionDocument = {
1498
+ oneDBarcode?: string | undefined;
1499
+ address?: SubmitInteractionDocumentAddress | undefined;
1500
+ applicationDate?: string | undefined;
1501
+ applicationNumber?: string | undefined;
1502
+ dateOfBirth?: string | undefined;
1503
+ placeOfBirth?: string | undefined;
1504
+ placeOfBirthNative?: string | undefined;
1505
+ bloodType?: string | undefined;
1506
+ controlNumber?: string | undefined;
1507
+ countryCode?: string | undefined;
1508
+ countryName?: string | undefined;
1509
+ documentClassCode?: string | undefined;
1510
+ documentClassName?: string | undefined;
1511
+ documentNumber?: string | undefined;
1512
+ documentSignerCertificate?: string | undefined;
1513
+ employer?: string | undefined;
1514
+ employerAddress?: string | undefined;
1515
+ entries?: string | undefined;
1516
+ expirationDate?: string | undefined;
1517
+ eyeColor?: string | undefined;
1518
+ fathersName?: string | undefined;
1519
+ fathersNameNative?: string | undefined;
1520
+ fathersSurname?: string | undefined;
1521
+ firstName?: string | undefined;
1522
+ fullName?: string | undefined;
1523
+ fullNameNative?: string | undefined;
1524
+ givenName?: string | undefined;
1525
+ givenNameNative?: string | undefined;
1526
+ hairColor?: string | undefined;
1527
+ height?: string | undefined;
1528
+ /**
1529
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1530
+ */
1531
+ issueDate?: string | undefined;
1532
+ issuingAuthority?: string | undefined;
1533
+ issuingAuthorityNative?: string | undefined;
1534
+ issuingStateCode?: string | undefined;
1535
+ issuingStateName?: string | undefined;
1536
+ licenseClass?: string | undefined;
1537
+ licenseEndorsements?: string | undefined;
1538
+ licenseRestrictions?: string | undefined;
1539
+ mrz?: string | undefined;
1540
+ mrz1?: string | undefined;
1541
+ mrz2?: string | undefined;
1542
+ mrz3?: string | undefined;
1543
+ middleName?: string | undefined;
1544
+ mothersName?: string | undefined;
1545
+ mothersNameNative?: string | undefined;
1546
+ mothersSurname?: string | undefined;
1547
+ nameSuffix?: string | undefined;
1548
+ nationalityCode?: string | undefined;
1549
+ nationalityName?: string | undefined;
1550
+ nationalityNameNative?: string | undefined;
1551
+ occupation?: string | undefined;
1552
+ organDonor?: boolean | undefined;
1553
+ passportNumber?: string | undefined;
1554
+ permitNumber?: string | undefined;
1555
+ personalNumber?: string | undefined;
1556
+ photo?: string | undefined;
1557
+ photoCompressed?: string | undefined;
1558
+ photoEncoding?: string | undefined;
1559
+ sex?: string | undefined;
1560
+ sexNative?: string | undefined;
1561
+ signature?: string | undefined;
1562
+ signatureCompressed?: string | undefined;
1563
+ signatureEncoding?: string | undefined;
1564
+ socialSecurityNumber?: string | undefined;
1565
+ startDate?: string | undefined;
1566
+ surname?: string | undefined;
1567
+ surnameNative?: string | undefined;
1568
+ visaClass?: string | undefined;
1569
+ visaNumber?: string | undefined;
1570
+ weight?: string | undefined;
1571
+ cardNumber?: string | undefined;
887
1572
  /**
888
- * This field contains the post box number associated with a particular delivery point, should one exist.
1573
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
889
1574
  */
890
- postBox?: string | undefined;
1575
+ issuerCountryCode?: string | undefined;
1576
+ id?: string | undefined;
1577
+ type: string;
1578
+ category?: string | undefined;
1579
+ subtype?: string | undefined;
1580
+ format?: string | undefined;
1581
+ device?: SubmitInteractionDocumentDevice | undefined;
1582
+ side1Image?: string | undefined;
1583
+ side2Image?: string | undefined;
1584
+ side1Device?: SubmitInteractionSide1Device | undefined;
1585
+ side2Device?: SubmitInteractionSide2Device | undefined;
1586
+ chip?: SubmitInteractionChip | undefined;
1587
+ classification?: SubmitInteractionClassification | undefined;
1588
+ extraction?: SubmitInteractionExtraction | undefined;
1589
+ validation?: SubmitInteractionValidation | undefined;
1590
+ subType?: string | undefined;
1591
+ number?: string | undefined;
1592
+ /**
1593
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1594
+ */
1595
+ expiryDate?: string | undefined;
1596
+ cardType?: string | undefined;
1597
+ /**
1598
+ * Year and month in ISO 8601 format: YYYY-MM
1599
+ */
1600
+ expiryMonth?: string | undefined;
1601
+ cardColour?: string | undefined;
1602
+ cardStatus?: string | undefined;
1603
+ subject?: SubmitInteractionDocumentSubject | undefined;
891
1604
  /**
892
1605
  * Country the address is in. It must be a valid ISO2 or ISO3 country code
893
1606
  */
894
1607
  country?: string | undefined;
895
- superAdministrativeArea?: string | undefined;
896
- administrativeArea?: string | undefined;
897
- subAdministrativeArea?: string | undefined;
898
- organization?: string | undefined;
899
- location?: SubmitInteractionDocumentPlaceOfBirthLocation | undefined;
1608
+ certificateFormat?: string | undefined;
1609
+ registrationNumber?: string | undefined;
1610
+ /**
1611
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1612
+ */
1613
+ registrationDate?: string | undefined;
1614
+ /**
1615
+ * Four-digit calendar year in ISO 8601 format: YYYY
1616
+ */
1617
+ registrationYear?: string | undefined;
1618
+ partyRole?: string | undefined;
1619
+ /**
1620
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1621
+ */
1622
+ dateOfEvent?: string | undefined;
1623
+ /**
1624
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1625
+ */
1626
+ acquisitionDate?: string | undefined;
1627
+ previousFirstName?: string | undefined;
1628
+ previousMiddleName?: string | undefined;
1629
+ previousSurname?: string | undefined;
1630
+ individualReferenceNumber?: string | undefined;
1631
+ nameLine1?: string | undefined;
1632
+ nameLine2?: string | undefined;
1633
+ nameLine3?: string | undefined;
1634
+ nameLine4?: string | undefined;
900
1635
  };
901
1636
 
902
- export type SubmitInteractionDocumentIdNumber = {
1637
+ export const SubmitInteractionTypeOrphanedStoredFace = {
1638
+ OrphanedStoredFace: "orphanedStoredFace",
1639
+ } as const;
1640
+ export type SubmitInteractionTypeOrphanedStoredFace = ClosedEnum<
1641
+ typeof SubmitInteractionTypeOrphanedStoredFace
1642
+ >;
1643
+
1644
+ export type SubmitInteractionBiometricOrphanedStoredFace = {
1645
+ id?: string | undefined;
1646
+ type: SubmitInteractionTypeOrphanedStoredFace;
1647
+ templateReference: string;
1648
+ collectionReference?: string | undefined;
1649
+ };
1650
+
1651
+ export const SubmitInteractionTypeStoredFace = {
1652
+ StoredFace: "storedFace",
1653
+ } as const;
1654
+ export type SubmitInteractionTypeStoredFace = ClosedEnum<
1655
+ typeof SubmitInteractionTypeStoredFace
1656
+ >;
1657
+
1658
+ export type SubmitInteractionBiometricStoredFace = {
1659
+ id?: string | undefined;
1660
+ type: SubmitInteractionTypeStoredFace;
1661
+ templateReference: string;
1662
+ collectionReference?: string | undefined;
1663
+ };
1664
+
1665
+ export type SubmitInteractionBiometric5 = {
1666
+ id?: string | undefined;
1667
+ type?: string | undefined;
1668
+ anchorImage: string;
1669
+ };
1670
+
1671
+ export type SubmitInteractionBiometric4 = {
1672
+ id?: string | undefined;
1673
+ type?: string | undefined;
1674
+ selfieImage: string;
1675
+ selfieImageEncryption?: boolean | undefined;
1676
+ };
1677
+
1678
+ export type SubmitInteractionBiometric3 = {
1679
+ id?: string | undefined;
1680
+ type?: string | undefined;
1681
+ faceImage: string;
1682
+ };
1683
+
1684
+ export type SubmitInteractionBiometric2 = {
1685
+ id?: string | undefined;
1686
+ type?: string | undefined;
1687
+ selfieImage: string;
1688
+ anchorImage: string;
1689
+ };
1690
+
1691
+ export type SubmitInteractionBiometric1 = {
1692
+ id?: string | undefined;
1693
+ type?: string | undefined;
1694
+ face1Image: string;
1695
+ face2Image: string;
1696
+ };
1697
+
1698
+ export type SubmitInteractionBiometricUnion =
1699
+ | SubmitInteractionBiometric1
1700
+ | SubmitInteractionBiometric2
1701
+ | SubmitInteractionBiometricStoredFace
1702
+ | SubmitInteractionBiometricOrphanedStoredFace
1703
+ | SubmitInteractionBiometric3
1704
+ | SubmitInteractionBiometric4
1705
+ | SubmitInteractionBiometric5;
1706
+
1707
+ export type SubmitInteractionUser = {
1708
+ id: string;
1709
+ email?: string | undefined;
1710
+ domain?: string | undefined;
1711
+ };
1712
+
1713
+ export type SubmitInteractionClient = {
1714
+ id: string;
1715
+ ip: string;
1716
+ address: string;
1717
+ };
1718
+
1719
+ export type SubmitInteractionModel = {
1720
+ identifier: string;
1721
+ name: string;
1722
+ };
1723
+
1724
+ export type SubmitInteractionSessionDevice = {
1725
+ id: string;
1726
+ manufacturer: string;
1727
+ model: SubmitInteractionModel;
1728
+ };
1729
+
1730
+ export type SubmitInteractionTrace = {
1731
+ id: string;
1732
+ };
1733
+
1734
+ export type SubmitInteractionSpan = {
1735
+ id: string;
1736
+ };
1737
+
1738
+ export type SubmitInteractionTransaction = {
1739
+ id: string;
1740
+ };
1741
+
1742
+ export type SubmitInteractionSessionAuth = {
1743
+ id: string;
1744
+ scope?: string | undefined;
1745
+ codeVerifier?: string | undefined;
1746
+ code?: string | undefined;
1747
+ state?: string | undefined;
1748
+ redirectUri?: string | undefined;
1749
+ responseType?: string | undefined;
1750
+ clientId?: string | undefined;
1751
+ clientSecret?: string | undefined;
1752
+ };
1753
+
1754
+ export type SubmitInteractionSession = {
1755
+ id?: string | undefined;
1756
+ type?: string | undefined;
1757
+ provider?: string | undefined;
1758
+ user?: SubmitInteractionUser | undefined;
1759
+ client?: SubmitInteractionClient | undefined;
1760
+ device?: SubmitInteractionSessionDevice | undefined;
1761
+ trace?: SubmitInteractionTrace | undefined;
1762
+ span?: SubmitInteractionSpan | undefined;
1763
+ transaction?: SubmitInteractionTransaction | undefined;
1764
+ auth?: Array<SubmitInteractionSessionAuth> | undefined;
1765
+ };
1766
+
1767
+ export const SubmitInteractionConsentType = {
1768
+ Rollup: "rollup",
1769
+ Explicit: "explicit",
1770
+ Implicit: "implicit",
1771
+ } as const;
1772
+ export type SubmitInteractionConsentType = ClosedEnum<
1773
+ typeof SubmitInteractionConsentType
1774
+ >;
1775
+
1776
+ export type SubmitInteractionConsent = {
1777
+ type?: SubmitInteractionConsentType | undefined;
1778
+ id?: string | undefined;
1779
+ version?: string | undefined;
1780
+ url: string;
1781
+ effectiveDate?: string | undefined;
1782
+ expiryDate?: string | undefined;
1783
+ terms?: string | undefined;
1784
+ purpose?: string | undefined;
1785
+ legalBasis?: string | undefined;
1786
+ jurisdiction?: string | undefined;
1787
+ subject?: string | undefined;
1788
+ signatory?: string | undefined;
1789
+ };
1790
+
1791
+ export type SubmitInteractionAccount = {
903
1792
  /**
904
- * The type of phone number, such as landline, mobile, fax, unknown etc
1793
+ * The type of account (canonical camelCase, e.g. "bankAccount"). Legacy value "Bank Account" is still read but new writes emit the canonical form.
905
1794
  */
906
1795
  type: string;
907
1796
  /**
908
- * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
1797
+ * Account number in its domestic form. Optional on its own: an account must carry at least one account identifier — `accountNumber` or `iban` — and either alone is enough. Independent of `iban`; when both are supplied they are not cross-checked.
909
1798
  */
910
- idNumber: string;
1799
+ accountNumber?: string | undefined;
1800
+ /**
1801
+ * UK sort code
1802
+ */
1803
+ sortCode?: string | undefined;
1804
+ /**
1805
+ * US ABA routing number
1806
+ */
1807
+ routingNumber?: string | undefined;
1808
+ /**
1809
+ * International Bank Account Number, stored exactly as supplied — not format-checked (no ISO 13616 mod-97) at this boundary. Optional on its own: an account must carry at least one account identifier — `accountNumber` or `iban` — and either alone is enough.
1810
+ */
1811
+ iban?: string | undefined;
1812
+ /**
1813
+ * BIC/SWIFT code
1814
+ */
1815
+ bic?: string | undefined;
1816
+ /**
1817
+ * Name on the account
1818
+ */
1819
+ accountHolderName?: string | undefined;
1820
+ /**
1821
+ * Name of the financial institution
1822
+ */
1823
+ bankName?: string | undefined;
911
1824
  /**
912
1825
  * Country the address is in. It must be a valid ISO2 or ISO3 country code
913
1826
  */
914
1827
  country?: string | undefined;
1828
+ /**
1829
+ * Account classification, e.g. current, savings
1830
+ */
1831
+ accountType?: string | undefined;
1832
+ };
1833
+
1834
+ export type SubmitInteractionChoice = {
1835
+ label: string;
1836
+ text: string;
1837
+ };
1838
+
1839
+ export type SubmitInteractionQuestion = {
1840
+ id: number;
1841
+ questionText: string;
1842
+ helpText?: string | undefined;
1843
+ choices: Array<SubmitInteractionChoice>;
1844
+ };
1845
+
1846
+ export type SubmitInteractionAnswer = {
1847
+ id: number;
1848
+ choices: Array<string>;
1849
+ };
1850
+
1851
+ export type SubmitInteractionKba = {
1852
+ questions: Array<SubmitInteractionQuestion>;
1853
+ answers: Array<SubmitInteractionAnswer>;
1854
+ };
1855
+
1856
+ export const SubmitInteractionOffered = {
1857
+ AustraliaPassport: "australiaPassport",
1858
+ AustraliaDrivingLicense: "australiaDrivingLicense",
1859
+ AustraliaBirthCertificate: "australiaBirthCertificate",
1860
+ AustraliaCentrelink: "australiaCentrelink",
1861
+ AustraliaCitizenshipCertificate: "australiaCitizenshipCertificate",
1862
+ AustraliaVisa: "australiaVisa",
1863
+ AustraliaMedicare: "australiaMedicare",
1864
+ AustraliaImmicard: "australiaImmicard",
1865
+ AustraliaMarriageCertificate: "australiaMarriageCertificate",
1866
+ AustraliaChangeOfNameCertificate: "australiaChangeOfNameCertificate",
1867
+ AustraliaElectoralRoll: "australiaElectoralRoll",
1868
+ NewZealandPassport: "newZealandPassport",
1869
+ NewZealandDrivingLicense: "newZealandDrivingLicense",
1870
+ NewZealandBirthCertificate: "newZealandBirthCertificate",
1871
+ NewZealandCitizenshipCertificate: "newZealandCitizenshipCertificate",
1872
+ NoneOfThese: "noneOfThese",
1873
+ } as const;
1874
+ export type SubmitInteractionOffered = ClosedEnum<
1875
+ typeof SubmitInteractionOffered
1876
+ >;
1877
+
1878
+ export const SubmitInteractionSelected = {
1879
+ AustraliaPassport: "australiaPassport",
1880
+ AustraliaDrivingLicense: "australiaDrivingLicense",
1881
+ AustraliaBirthCertificate: "australiaBirthCertificate",
1882
+ AustraliaCentrelink: "australiaCentrelink",
1883
+ AustraliaCitizenshipCertificate: "australiaCitizenshipCertificate",
1884
+ AustraliaVisa: "australiaVisa",
1885
+ AustraliaMedicare: "australiaMedicare",
1886
+ AustraliaImmicard: "australiaImmicard",
1887
+ AustraliaMarriageCertificate: "australiaMarriageCertificate",
1888
+ AustraliaChangeOfNameCertificate: "australiaChangeOfNameCertificate",
1889
+ AustraliaElectoralRoll: "australiaElectoralRoll",
1890
+ NewZealandPassport: "newZealandPassport",
1891
+ NewZealandDrivingLicense: "newZealandDrivingLicense",
1892
+ NewZealandBirthCertificate: "newZealandBirthCertificate",
1893
+ NewZealandCitizenshipCertificate: "newZealandCitizenshipCertificate",
1894
+ NoneOfThese: "noneOfThese",
1895
+ } as const;
1896
+ export type SubmitInteractionSelected = ClosedEnum<
1897
+ typeof SubmitInteractionSelected
1898
+ >;
1899
+
1900
+ export type SubmitInteractionDocumentTypeSelection = {
1901
+ offered?: Array<SubmitInteractionOffered> | undefined;
1902
+ selected?: SubmitInteractionSelected | undefined;
1903
+ };
1904
+
1905
+ export type SubmitInteractionSubject = {
1906
+ identity?: SubmitInteractionIdentity | undefined;
1907
+ entities?: Array<SubmitInteractionEntity> | undefined;
1908
+ documents?: Array<SubmitInteractionDocument> | undefined;
1909
+ biometrics?:
1910
+ | Array<
1911
+ | SubmitInteractionBiometric1
1912
+ | SubmitInteractionBiometric2
1913
+ | SubmitInteractionBiometricStoredFace
1914
+ | SubmitInteractionBiometricOrphanedStoredFace
1915
+ | SubmitInteractionBiometric3
1916
+ | SubmitInteractionBiometric4
1917
+ | SubmitInteractionBiometric5
1918
+ >
1919
+ | undefined;
1920
+ sessions?: Array<SubmitInteractionSession> | undefined;
1921
+ consent?: Array<SubmitInteractionConsent> | undefined;
1922
+ accounts?: Array<SubmitInteractionAccount> | undefined;
1923
+ kba?: SubmitInteractionKba | undefined;
1924
+ documentTypeSelection?: SubmitInteractionDocumentTypeSelection | undefined;
1925
+ uid?: string | undefined;
915
1926
  };
916
1927
 
917
- export type SubmitInteractionDocumentPhone = {
1928
+ /**
1929
+ * Reviewer-supplied manual-review input: a required decision ordinal plus optional notes. Identity fields are Captain-populated and rejected here.
1930
+ */
1931
+ export type ManualReview = {
918
1932
  /**
919
- * The type of phone number, such as landline, mobile, fax, unknown etc
1933
+ * Ordinal decision outcome (0-9) submitted by the reviewer
920
1934
  */
921
- type: string;
1935
+ decision: number;
922
1936
  /**
923
- * Phone number, ideally in international format with +(Country Code)
1937
+ * Free-text justification or notes provided by the reviewer
924
1938
  */
925
- number: string;
1939
+ notes?: string | undefined;
926
1940
  };
927
1941
 
928
- export type SubmitInteractionDocumentEmail = {
929
- /**
930
- * The type of email, such as home, work, unknown etc
931
- */
932
- type: string;
1942
+ /**
1943
+ * Caller-facing reviewer entry for a submit request.
1944
+ */
1945
+ export type Reviewer = {
933
1946
  /**
934
- * Email address
1947
+ * Reviewer-supplied manual-review input: a required decision ordinal plus optional notes. Identity fields are Captain-populated and rejected here.
935
1948
  */
936
- email: string;
1949
+ manualReview?: ManualReview | undefined;
937
1950
  };
938
1951
 
939
- export type SubmitInteractionDocumentSocial = {
940
- /**
941
- * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
942
- */
943
- type: string;
1952
+ export type SubmitInteractionContext = {
1953
+ subject: SubmitInteractionSubject;
944
1954
  /**
945
- * the identity used on this platform
1955
+ * Reviewer decisions for this submit. Single reviewer at v1 (max 1).
946
1956
  */
947
- identity: string;
1957
+ reviewers?: Array<Reviewer> | undefined;
948
1958
  };
949
1959
 
950
- export type SubmitInteractionDocumentSubject = {
1960
+ export type SubmitInteractionRequest = {
951
1961
  /**
952
- * Title of an individual such as Mr, Mrs, Dr, Sir
1962
+ * Journey Instance Id, a unique identifier for a started journey instance.
953
1963
  */
1964
+ instanceId: string;
1965
+ interactionId: string;
1966
+ participants?: Array<Participant> | undefined;
1967
+ context?: SubmitInteractionContext | undefined;
1968
+ [additionalProperties: string]: unknown;
1969
+ };
1970
+
1971
+ /** @internal */
1972
+ export type SubmitInteractionSecurity$Outbound = {
1973
+ CustomerAccess?: string | undefined;
1974
+ InteractionAccess?: string | undefined;
1975
+ };
1976
+
1977
+ /** @internal */
1978
+ export const SubmitInteractionSecurity$outboundSchema: z.ZodMiniType<
1979
+ SubmitInteractionSecurity$Outbound,
1980
+ SubmitInteractionSecurity
1981
+ > = z.pipe(
1982
+ z.object({
1983
+ customerAccess: z.optional(z.string()),
1984
+ interactionAccess: z.optional(z.string()),
1985
+ }),
1986
+ z.transform((v) => {
1987
+ return remap$(v, {
1988
+ customerAccess: "CustomerAccess",
1989
+ interactionAccess: "InteractionAccess",
1990
+ });
1991
+ }),
1992
+ );
1993
+
1994
+ export function submitInteractionSecurityToJSON(
1995
+ submitInteractionSecurity: SubmitInteractionSecurity,
1996
+ ): string {
1997
+ return JSON.stringify(
1998
+ SubmitInteractionSecurity$outboundSchema.parse(submitInteractionSecurity),
1999
+ );
2000
+ }
2001
+
2002
+ /** @internal */
2003
+ export type Participant$Outbound = {
2004
+ domainElementId?: string | undefined;
2005
+ instructions?: Array<string> | undefined;
2006
+ [additionalProperties: string]: unknown;
2007
+ };
2008
+
2009
+ /** @internal */
2010
+ export const Participant$outboundSchema: z.ZodMiniType<
2011
+ Participant$Outbound,
2012
+ Participant
2013
+ > = z.catchall(
2014
+ z.object({
2015
+ domainElementId: z.optional(z.string()),
2016
+ instructions: z.optional(z.array(z.string())),
2017
+ }),
2018
+ z.any(),
2019
+ );
2020
+
2021
+ export function participantToJSON(participant: Participant): string {
2022
+ return JSON.stringify(Participant$outboundSchema.parse(participant));
2023
+ }
2024
+
2025
+ /** @internal */
2026
+ export type SubmitInteractionIdentityAlias$Outbound = {
954
2027
  title?: string | undefined;
955
- /**
956
- * A person's name used by their collegues and friends to address them
957
- */
958
2028
  firstName?: string | undefined;
959
- /**
960
- * Any other registered names used by the individual, not aliases
961
- */
962
2029
  middleNames?: Array<string> | undefined;
963
- /**
964
- * Any family names for the individual
965
- */
966
2030
  lastNames?: Array<string> | undefined;
967
- /**
968
- * Any family names for the individual
969
- */
970
2031
  lastNamesAtBirth?: Array<string> | undefined;
971
- aliases?: Array<SubmitInteractionDocumentAlias> | undefined;
972
- relatedPersons?: Array<SubmitInteractionDocumentRelatedPerson> | undefined;
973
- /**
974
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
975
- */
976
- dateOfBirth?: string | undefined;
977
- gender?: string | undefined;
978
- currentAddress?: SubmitInteractionDocumentCurrentAddress | undefined;
979
- previousAddresses?:
980
- | Array<SubmitInteractionDocumentPreviousAddress>
981
- | undefined;
982
- placeOfBirth?: SubmitInteractionDocumentPlaceOfBirth | undefined;
983
- idNumbers?: Array<SubmitInteractionDocumentIdNumber> | undefined;
984
- phones?: Array<SubmitInteractionDocumentPhone> | undefined;
985
- emails?: Array<SubmitInteractionDocumentEmail> | undefined;
986
- socials?: Array<SubmitInteractionDocumentSocial> | undefined;
987
- /**
988
- * The subject's mother's maiden name, used for identity verification
989
- */
990
- mothersMaidenName?: string | undefined;
2032
+ fullName?: string | undefined;
991
2033
  };
992
2034
 
993
- export type SubmitInteractionDocument = {
994
- oneDBarcode?: string | undefined;
995
- address?: SubmitInteractionAddress | undefined;
996
- applicationDate?: string | undefined;
997
- applicationNumber?: string | undefined;
998
- dateOfBirth?: string | undefined;
999
- placeOfBirth?: string | undefined;
1000
- placeOfBirthNative?: string | undefined;
1001
- bloodType?: string | undefined;
1002
- controlNumber?: string | undefined;
1003
- countryCode?: string | undefined;
1004
- countryName?: string | undefined;
1005
- documentClassCode?: string | undefined;
1006
- documentClassName?: string | undefined;
1007
- documentNumber?: string | undefined;
1008
- documentSignerCertificate?: string | undefined;
1009
- employer?: string | undefined;
1010
- employerAddress?: string | undefined;
1011
- entries?: string | undefined;
1012
- expirationDate?: string | undefined;
1013
- eyeColor?: string | undefined;
1014
- fathersName?: string | undefined;
1015
- fathersNameNative?: string | undefined;
1016
- fathersSurname?: string | undefined;
2035
+ /** @internal */
2036
+ export const SubmitInteractionIdentityAlias$outboundSchema: z.ZodMiniType<
2037
+ SubmitInteractionIdentityAlias$Outbound,
2038
+ SubmitInteractionIdentityAlias
2039
+ > = z.object({
2040
+ title: z.optional(z.string()),
2041
+ firstName: z.optional(z.string()),
2042
+ middleNames: z.optional(z.array(z.string())),
2043
+ lastNames: z.optional(z.array(z.string())),
2044
+ lastNamesAtBirth: z.optional(z.array(z.string())),
2045
+ fullName: z.optional(z.string()),
2046
+ });
2047
+
2048
+ export function submitInteractionIdentityAliasToJSON(
2049
+ submitInteractionIdentityAlias: SubmitInteractionIdentityAlias,
2050
+ ): string {
2051
+ return JSON.stringify(
2052
+ SubmitInteractionIdentityAlias$outboundSchema.parse(
2053
+ submitInteractionIdentityAlias,
2054
+ ),
2055
+ );
2056
+ }
2057
+
2058
+ /** @internal */
2059
+ export const SubmitInteractionIdentityRelationship$outboundSchema:
2060
+ z.ZodMiniEnum<typeof SubmitInteractionIdentityRelationship> = z.enum(
2061
+ SubmitInteractionIdentityRelationship,
2062
+ );
2063
+
2064
+ /** @internal */
2065
+ export type SubmitInteractionIdentityRelatedPerson$Outbound = {
2066
+ title?: string | undefined;
1017
2067
  firstName?: string | undefined;
1018
- fullName?: string | undefined;
1019
- fullNameNative?: string | undefined;
1020
- givenName?: string | undefined;
1021
- givenNameNative?: string | undefined;
1022
- hairColor?: string | undefined;
1023
- height?: string | undefined;
1024
- /**
1025
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1026
- */
1027
- issueDate?: string | undefined;
1028
- issuingAuthority?: string | undefined;
1029
- issuingAuthorityNative?: string | undefined;
1030
- issuingStateCode?: string | undefined;
1031
- issuingStateName?: string | undefined;
1032
- licenseClass?: string | undefined;
1033
- licenseEndorsements?: string | undefined;
1034
- licenseRestrictions?: string | undefined;
1035
- mrz?: string | undefined;
1036
- mrz1?: string | undefined;
1037
- mrz2?: string | undefined;
1038
- mrz3?: string | undefined;
1039
- middleName?: string | undefined;
1040
- mothersName?: string | undefined;
1041
- mothersNameNative?: string | undefined;
1042
- mothersSurname?: string | undefined;
1043
- nameSuffix?: string | undefined;
1044
- nationalityCode?: string | undefined;
1045
- nationalityName?: string | undefined;
1046
- nationalityNameNative?: string | undefined;
1047
- occupation?: string | undefined;
1048
- organDonor?: boolean | undefined;
1049
- passportNumber?: string | undefined;
1050
- permitNumber?: string | undefined;
1051
- personalNumber?: string | undefined;
1052
- photo?: string | undefined;
1053
- photoCompressed?: string | undefined;
1054
- photoEncoding?: string | undefined;
1055
- sex?: string | undefined;
1056
- sexNative?: string | undefined;
1057
- signature?: string | undefined;
1058
- signatureCompressed?: string | undefined;
1059
- signatureEncoding?: string | undefined;
1060
- socialSecurityNumber?: string | undefined;
1061
- startDate?: string | undefined;
1062
- surname?: string | undefined;
1063
- surnameNative?: string | undefined;
1064
- visaClass?: string | undefined;
1065
- visaNumber?: string | undefined;
1066
- weight?: string | undefined;
1067
- cardNumber?: string | undefined;
1068
- /**
1069
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1070
- */
1071
- issuerCountryCode?: string | undefined;
1072
- id?: string | undefined;
1073
- type?: string | undefined;
1074
- category?: string | undefined;
1075
- subtype?: string | undefined;
1076
- format?: string | undefined;
1077
- device?: SubmitInteractionDocumentDevice | undefined;
1078
- side1Image?: string | undefined;
1079
- side2Image?: string | undefined;
1080
- chip?: SubmitInteractionChip | undefined;
1081
- classification?: SubmitInteractionClassification | undefined;
1082
- extraction?: SubmitInteractionExtraction | undefined;
1083
- validation?: SubmitInteractionValidation | undefined;
1084
- subType?: string | undefined;
1085
- number?: string | undefined;
1086
- /**
1087
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1088
- */
1089
- expiryDate?: string | undefined;
1090
- subject?: SubmitInteractionDocumentSubject | undefined;
1091
- /**
1092
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1093
- */
1094
- country?: string | undefined;
2068
+ middleNames?: Array<string> | undefined;
2069
+ lastNames?: Array<string> | undefined;
2070
+ lastNamesAtBirth?: Array<string> | undefined;
2071
+ relationship: string;
1095
2072
  };
1096
2073
 
1097
- export type SubmitInteractionBiometric4 = {
1098
- id?: string | undefined;
1099
- type?: string | undefined;
1100
- selfieImage: string;
1101
- selfieImageEncryption?: boolean | undefined;
1102
- };
2074
+ /** @internal */
2075
+ export const SubmitInteractionIdentityRelatedPerson$outboundSchema:
2076
+ z.ZodMiniType<
2077
+ SubmitInteractionIdentityRelatedPerson$Outbound,
2078
+ SubmitInteractionIdentityRelatedPerson
2079
+ > = z.object({
2080
+ title: z.optional(z.string()),
2081
+ firstName: z.optional(z.string()),
2082
+ middleNames: z.optional(z.array(z.string())),
2083
+ lastNames: z.optional(z.array(z.string())),
2084
+ lastNamesAtBirth: z.optional(z.array(z.string())),
2085
+ relationship: SubmitInteractionIdentityRelationship$outboundSchema,
2086
+ });
1103
2087
 
1104
- export type SubmitInteractionBiometric3 = {
1105
- id?: string | undefined;
1106
- type?: string | undefined;
1107
- faceImage: string;
1108
- };
2088
+ export function submitInteractionIdentityRelatedPersonToJSON(
2089
+ submitInteractionIdentityRelatedPerson:
2090
+ SubmitInteractionIdentityRelatedPerson,
2091
+ ): string {
2092
+ return JSON.stringify(
2093
+ SubmitInteractionIdentityRelatedPerson$outboundSchema.parse(
2094
+ submitInteractionIdentityRelatedPerson,
2095
+ ),
2096
+ );
2097
+ }
1109
2098
 
1110
- export type SubmitInteractionBiometric2 = {
1111
- id?: string | undefined;
1112
- type?: string | undefined;
1113
- selfieImage: string;
1114
- anchorImage: string;
2099
+ /** @internal */
2100
+ export type SubmitInteractionIdentityCurrentAddressLocation$Outbound = {
2101
+ latitude?: string | undefined;
2102
+ longitude?: string | undefined;
2103
+ geoAccuracy?: string | undefined;
2104
+ what3words?: string | undefined;
1115
2105
  };
1116
2106
 
1117
- export type SubmitInteractionBiometric1 = {
1118
- id?: string | undefined;
1119
- type?: string | undefined;
1120
- face1Image: string;
1121
- face2Image: string;
1122
- };
2107
+ /** @internal */
2108
+ export const SubmitInteractionIdentityCurrentAddressLocation$outboundSchema:
2109
+ z.ZodMiniType<
2110
+ SubmitInteractionIdentityCurrentAddressLocation$Outbound,
2111
+ SubmitInteractionIdentityCurrentAddressLocation
2112
+ > = z.object({
2113
+ latitude: z.optional(z.string()),
2114
+ longitude: z.optional(z.string()),
2115
+ geoAccuracy: z.optional(z.string()),
2116
+ what3words: z.optional(z.string()),
2117
+ });
1123
2118
 
1124
- export type SubmitInteractionBiometricUnion =
1125
- | SubmitInteractionBiometric1
1126
- | SubmitInteractionBiometric2
1127
- | SubmitInteractionBiometric3
1128
- | SubmitInteractionBiometric4;
2119
+ export function submitInteractionIdentityCurrentAddressLocationToJSON(
2120
+ submitInteractionIdentityCurrentAddressLocation:
2121
+ SubmitInteractionIdentityCurrentAddressLocation,
2122
+ ): string {
2123
+ return JSON.stringify(
2124
+ SubmitInteractionIdentityCurrentAddressLocation$outboundSchema.parse(
2125
+ submitInteractionIdentityCurrentAddressLocation,
2126
+ ),
2127
+ );
2128
+ }
1129
2129
 
1130
- export type SubmitInteractionUser = {
1131
- id: string;
1132
- email: string;
1133
- domain: string;
2130
+ /** @internal */
2131
+ export type SubmitInteractionIdentityCurrentAddress$Outbound = {
2132
+ lines?: Array<string> | undefined;
2133
+ addressString?: string | undefined;
2134
+ premise?: string | undefined;
2135
+ building?: string | undefined;
2136
+ subBuilding?: string | undefined;
2137
+ thoroughfare?: string | undefined;
2138
+ dependentThoroughfare?: string | undefined;
2139
+ locality?: string | undefined;
2140
+ dependentLocality?: string | undefined;
2141
+ doubleDependentLocality?: string | undefined;
2142
+ postalCode?: string | undefined;
2143
+ postBox?: string | undefined;
2144
+ country?: string | undefined;
2145
+ superAdministrativeArea?: string | undefined;
2146
+ administrativeArea?: string | undefined;
2147
+ subAdministrativeArea?: string | undefined;
2148
+ organization?: string | undefined;
2149
+ location?:
2150
+ | SubmitInteractionIdentityCurrentAddressLocation$Outbound
2151
+ | undefined;
1134
2152
  };
1135
2153
 
1136
- export type SubmitInteractionClient = {
1137
- id: string;
1138
- ip: string;
1139
- address: string;
1140
- };
2154
+ /** @internal */
2155
+ export const SubmitInteractionIdentityCurrentAddress$outboundSchema:
2156
+ z.ZodMiniType<
2157
+ SubmitInteractionIdentityCurrentAddress$Outbound,
2158
+ SubmitInteractionIdentityCurrentAddress
2159
+ > = z.object({
2160
+ lines: z.optional(z.array(z.string())),
2161
+ addressString: z.optional(z.string()),
2162
+ premise: z.optional(z.string()),
2163
+ building: z.optional(z.string()),
2164
+ subBuilding: z.optional(z.string()),
2165
+ thoroughfare: z.optional(z.string()),
2166
+ dependentThoroughfare: z.optional(z.string()),
2167
+ locality: z.optional(z.string()),
2168
+ dependentLocality: z.optional(z.string()),
2169
+ doubleDependentLocality: z.optional(z.string()),
2170
+ postalCode: z.optional(z.string()),
2171
+ postBox: z.optional(z.string()),
2172
+ country: z.optional(z.string()),
2173
+ superAdministrativeArea: z.optional(z.string()),
2174
+ administrativeArea: z.optional(z.string()),
2175
+ subAdministrativeArea: z.optional(z.string()),
2176
+ organization: z.optional(z.string()),
2177
+ location: z.optional(
2178
+ z.lazy(() =>
2179
+ SubmitInteractionIdentityCurrentAddressLocation$outboundSchema
2180
+ ),
2181
+ ),
2182
+ });
1141
2183
 
1142
- export type SubmitInteractionModel = {
1143
- identifier: string;
1144
- name: string;
1145
- };
2184
+ export function submitInteractionIdentityCurrentAddressToJSON(
2185
+ submitInteractionIdentityCurrentAddress:
2186
+ SubmitInteractionIdentityCurrentAddress,
2187
+ ): string {
2188
+ return JSON.stringify(
2189
+ SubmitInteractionIdentityCurrentAddress$outboundSchema.parse(
2190
+ submitInteractionIdentityCurrentAddress,
2191
+ ),
2192
+ );
2193
+ }
1146
2194
 
1147
- export type SubmitInteractionSessionDevice = {
1148
- id: string;
1149
- manufacturer: string;
1150
- model: SubmitInteractionModel;
2195
+ /** @internal */
2196
+ export type SubmitInteractionIdentityPreviousAddressLocation$Outbound = {
2197
+ latitude?: string | undefined;
2198
+ longitude?: string | undefined;
2199
+ geoAccuracy?: string | undefined;
2200
+ what3words?: string | undefined;
1151
2201
  };
1152
2202
 
1153
- export type SubmitInteractionTrace = {
1154
- id: string;
2203
+ /** @internal */
2204
+ export const SubmitInteractionIdentityPreviousAddressLocation$outboundSchema:
2205
+ z.ZodMiniType<
2206
+ SubmitInteractionIdentityPreviousAddressLocation$Outbound,
2207
+ SubmitInteractionIdentityPreviousAddressLocation
2208
+ > = z.object({
2209
+ latitude: z.optional(z.string()),
2210
+ longitude: z.optional(z.string()),
2211
+ geoAccuracy: z.optional(z.string()),
2212
+ what3words: z.optional(z.string()),
2213
+ });
2214
+
2215
+ export function submitInteractionIdentityPreviousAddressLocationToJSON(
2216
+ submitInteractionIdentityPreviousAddressLocation:
2217
+ SubmitInteractionIdentityPreviousAddressLocation,
2218
+ ): string {
2219
+ return JSON.stringify(
2220
+ SubmitInteractionIdentityPreviousAddressLocation$outboundSchema.parse(
2221
+ submitInteractionIdentityPreviousAddressLocation,
2222
+ ),
2223
+ );
2224
+ }
2225
+
2226
+ /** @internal */
2227
+ export type SubmitInteractionIdentityPreviousAddress$Outbound = {
2228
+ lines?: Array<string> | undefined;
2229
+ addressString?: string | undefined;
2230
+ premise?: string | undefined;
2231
+ building?: string | undefined;
2232
+ subBuilding?: string | undefined;
2233
+ thoroughfare?: string | undefined;
2234
+ dependentThoroughfare?: string | undefined;
2235
+ locality?: string | undefined;
2236
+ dependentLocality?: string | undefined;
2237
+ doubleDependentLocality?: string | undefined;
2238
+ postalCode?: string | undefined;
2239
+ postBox?: string | undefined;
2240
+ country?: string | undefined;
2241
+ superAdministrativeArea?: string | undefined;
2242
+ administrativeArea?: string | undefined;
2243
+ subAdministrativeArea?: string | undefined;
2244
+ organization?: string | undefined;
2245
+ location?:
2246
+ | SubmitInteractionIdentityPreviousAddressLocation$Outbound
2247
+ | undefined;
2248
+ fromDate?: string | undefined;
2249
+ toDate?: string | undefined;
1155
2250
  };
1156
2251
 
1157
- export type SubmitInteractionSpan = {
1158
- id: string;
2252
+ /** @internal */
2253
+ export const SubmitInteractionIdentityPreviousAddress$outboundSchema:
2254
+ z.ZodMiniType<
2255
+ SubmitInteractionIdentityPreviousAddress$Outbound,
2256
+ SubmitInteractionIdentityPreviousAddress
2257
+ > = z.object({
2258
+ lines: z.optional(z.array(z.string())),
2259
+ addressString: z.optional(z.string()),
2260
+ premise: z.optional(z.string()),
2261
+ building: z.optional(z.string()),
2262
+ subBuilding: z.optional(z.string()),
2263
+ thoroughfare: z.optional(z.string()),
2264
+ dependentThoroughfare: z.optional(z.string()),
2265
+ locality: z.optional(z.string()),
2266
+ dependentLocality: z.optional(z.string()),
2267
+ doubleDependentLocality: z.optional(z.string()),
2268
+ postalCode: z.optional(z.string()),
2269
+ postBox: z.optional(z.string()),
2270
+ country: z.optional(z.string()),
2271
+ superAdministrativeArea: z.optional(z.string()),
2272
+ administrativeArea: z.optional(z.string()),
2273
+ subAdministrativeArea: z.optional(z.string()),
2274
+ organization: z.optional(z.string()),
2275
+ location: z.optional(
2276
+ z.lazy(() =>
2277
+ SubmitInteractionIdentityPreviousAddressLocation$outboundSchema
2278
+ ),
2279
+ ),
2280
+ fromDate: z.optional(z.string()),
2281
+ toDate: z.optional(z.string()),
2282
+ });
2283
+
2284
+ export function submitInteractionIdentityPreviousAddressToJSON(
2285
+ submitInteractionIdentityPreviousAddress:
2286
+ SubmitInteractionIdentityPreviousAddress,
2287
+ ): string {
2288
+ return JSON.stringify(
2289
+ SubmitInteractionIdentityPreviousAddress$outboundSchema.parse(
2290
+ submitInteractionIdentityPreviousAddress,
2291
+ ),
2292
+ );
2293
+ }
2294
+
2295
+ /** @internal */
2296
+ export type SubmitInteractionIdentityPlaceOfBirthLocation$Outbound = {
2297
+ latitude?: string | undefined;
2298
+ longitude?: string | undefined;
2299
+ geoAccuracy?: string | undefined;
2300
+ what3words?: string | undefined;
1159
2301
  };
1160
2302
 
1161
- export type SubmitInteractionTransaction = {
1162
- id: string;
1163
- };
2303
+ /** @internal */
2304
+ export const SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema:
2305
+ z.ZodMiniType<
2306
+ SubmitInteractionIdentityPlaceOfBirthLocation$Outbound,
2307
+ SubmitInteractionIdentityPlaceOfBirthLocation
2308
+ > = z.object({
2309
+ latitude: z.optional(z.string()),
2310
+ longitude: z.optional(z.string()),
2311
+ geoAccuracy: z.optional(z.string()),
2312
+ what3words: z.optional(z.string()),
2313
+ });
1164
2314
 
1165
- export type SubmitInteractionSessionAuth = {
1166
- id: string;
1167
- scope?: string | undefined;
1168
- codeVerifier?: string | undefined;
1169
- code?: string | undefined;
1170
- state?: string | undefined;
1171
- redirectUri?: string | undefined;
1172
- responseType?: string | undefined;
1173
- clientId?: string | undefined;
1174
- clientSecret?: string | undefined;
1175
- };
2315
+ export function submitInteractionIdentityPlaceOfBirthLocationToJSON(
2316
+ submitInteractionIdentityPlaceOfBirthLocation:
2317
+ SubmitInteractionIdentityPlaceOfBirthLocation,
2318
+ ): string {
2319
+ return JSON.stringify(
2320
+ SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema.parse(
2321
+ submitInteractionIdentityPlaceOfBirthLocation,
2322
+ ),
2323
+ );
2324
+ }
1176
2325
 
1177
- export type SubmitInteractionSession = {
1178
- user?: SubmitInteractionUser | undefined;
1179
- client?: SubmitInteractionClient | undefined;
1180
- device?: SubmitInteractionSessionDevice | undefined;
1181
- trace?: SubmitInteractionTrace | undefined;
1182
- span?: SubmitInteractionSpan | undefined;
1183
- transaction?: SubmitInteractionTransaction | undefined;
1184
- auth?: Array<SubmitInteractionSessionAuth> | undefined;
2326
+ /** @internal */
2327
+ export type SubmitInteractionIdentityPlaceOfBirth$Outbound = {
2328
+ lines?: Array<string> | undefined;
2329
+ addressString?: string | undefined;
2330
+ premise?: string | undefined;
2331
+ building?: string | undefined;
2332
+ subBuilding?: string | undefined;
2333
+ thoroughfare?: string | undefined;
2334
+ dependentThoroughfare?: string | undefined;
2335
+ locality?: string | undefined;
2336
+ dependentLocality?: string | undefined;
2337
+ doubleDependentLocality?: string | undefined;
2338
+ postalCode?: string | undefined;
2339
+ postBox?: string | undefined;
2340
+ country?: string | undefined;
2341
+ superAdministrativeArea?: string | undefined;
2342
+ administrativeArea?: string | undefined;
2343
+ subAdministrativeArea?: string | undefined;
2344
+ organization?: string | undefined;
2345
+ location?: SubmitInteractionIdentityPlaceOfBirthLocation$Outbound | undefined;
1185
2346
  };
1186
2347
 
1187
- export const SubmitInteractionConsentType = {
1188
- Rollup: "rollup",
1189
- Explicit: "explicit",
1190
- Implicit: "implicit",
1191
- } as const;
1192
- export type SubmitInteractionConsentType = ClosedEnum<
1193
- typeof SubmitInteractionConsentType
1194
- >;
2348
+ /** @internal */
2349
+ export const SubmitInteractionIdentityPlaceOfBirth$outboundSchema:
2350
+ z.ZodMiniType<
2351
+ SubmitInteractionIdentityPlaceOfBirth$Outbound,
2352
+ SubmitInteractionIdentityPlaceOfBirth
2353
+ > = z.object({
2354
+ lines: z.optional(z.array(z.string())),
2355
+ addressString: z.optional(z.string()),
2356
+ premise: z.optional(z.string()),
2357
+ building: z.optional(z.string()),
2358
+ subBuilding: z.optional(z.string()),
2359
+ thoroughfare: z.optional(z.string()),
2360
+ dependentThoroughfare: z.optional(z.string()),
2361
+ locality: z.optional(z.string()),
2362
+ dependentLocality: z.optional(z.string()),
2363
+ doubleDependentLocality: z.optional(z.string()),
2364
+ postalCode: z.optional(z.string()),
2365
+ postBox: z.optional(z.string()),
2366
+ country: z.optional(z.string()),
2367
+ superAdministrativeArea: z.optional(z.string()),
2368
+ administrativeArea: z.optional(z.string()),
2369
+ subAdministrativeArea: z.optional(z.string()),
2370
+ organization: z.optional(z.string()),
2371
+ location: z.optional(
2372
+ z.lazy(() =>
2373
+ SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema
2374
+ ),
2375
+ ),
2376
+ });
1195
2377
 
1196
- export type SubmitInteractionConsent = {
1197
- type?: SubmitInteractionConsentType | undefined;
1198
- id?: string | undefined;
1199
- version?: string | undefined;
1200
- url: string;
1201
- effectiveDate?: string | undefined;
1202
- expiryDate?: string | undefined;
1203
- terms?: string | undefined;
1204
- purpose?: string | undefined;
1205
- legalBasis?: string | undefined;
1206
- jurisdiction?: string | undefined;
1207
- subject?: string | undefined;
1208
- signatory?: string | undefined;
1209
- };
2378
+ export function submitInteractionIdentityPlaceOfBirthToJSON(
2379
+ submitInteractionIdentityPlaceOfBirth: SubmitInteractionIdentityPlaceOfBirth,
2380
+ ): string {
2381
+ return JSON.stringify(
2382
+ SubmitInteractionIdentityPlaceOfBirth$outboundSchema.parse(
2383
+ submitInteractionIdentityPlaceOfBirth,
2384
+ ),
2385
+ );
2386
+ }
1210
2387
 
1211
- export type SubmitInteractionAccount = {
1212
- /**
1213
- * The type of account, e.g. Bank Account, Building Society
1214
- */
2388
+ /** @internal */
2389
+ export type SubmitInteractionIdentityIdNumber$Outbound = {
1215
2390
  type: string;
1216
- /**
1217
- * Account number
1218
- */
1219
- accountNumber: string;
1220
- /**
1221
- * UK sort code
1222
- */
1223
- sortCode?: string | undefined;
1224
- /**
1225
- * US ABA routing number
1226
- */
1227
- routingNumber?: string | undefined;
1228
- /**
1229
- * International Bank Account Number
1230
- */
1231
- iban?: string | undefined;
1232
- /**
1233
- * BIC/SWIFT code
1234
- */
1235
- bic?: string | undefined;
1236
- /**
1237
- * Name on the account
1238
- */
1239
- accountHolderName?: string | undefined;
1240
- /**
1241
- * Name of the financial institution
1242
- */
1243
- bankName?: string | undefined;
1244
- /**
1245
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1246
- */
2391
+ idNumber: string;
1247
2392
  country?: string | undefined;
1248
- /**
1249
- * Account classification, e.g. current, savings
1250
- */
1251
- accountType?: string | undefined;
1252
- };
1253
-
1254
- export type SubmitInteractionSubject = {
1255
- identity?: SubmitInteractionIdentity | undefined;
1256
- documents?: Array<SubmitInteractionDocument> | undefined;
1257
- biometrics?:
1258
- | Array<
1259
- | SubmitInteractionBiometric1
1260
- | SubmitInteractionBiometric2
1261
- | SubmitInteractionBiometric3
1262
- | SubmitInteractionBiometric4
1263
- >
1264
- | undefined;
1265
- sessions?: Array<SubmitInteractionSession> | undefined;
1266
- consent?: Array<SubmitInteractionConsent> | undefined;
1267
- accounts?: Array<SubmitInteractionAccount> | undefined;
1268
- uid?: string | undefined;
1269
- };
1270
-
1271
- export type SubmitInteractionContext = {
1272
- subject: SubmitInteractionSubject;
1273
2393
  };
1274
2394
 
1275
- export type SubmitInteractionRequest = {
1276
- /**
1277
- * Journey instance identifier
1278
- */
1279
- instanceId: string;
1280
- /**
1281
- * Interaction identifier
1282
- */
1283
- interactionId: string;
1284
- /**
1285
- * List of participant identifiers involved in the interaction
1286
- */
1287
- participants?: Array<Participant> | undefined;
1288
- context?: SubmitInteractionContext | undefined;
1289
- };
2395
+ /** @internal */
2396
+ export const SubmitInteractionIdentityIdNumber$outboundSchema: z.ZodMiniType<
2397
+ SubmitInteractionIdentityIdNumber$Outbound,
2398
+ SubmitInteractionIdentityIdNumber
2399
+ > = z.object({
2400
+ type: z.string(),
2401
+ idNumber: z.string(),
2402
+ country: z.optional(z.string()),
2403
+ });
1290
2404
 
1291
- export type SubmitInteractionError = {
1292
- status: "error";
1293
- /**
1294
- * Error code indicating the type of error
1295
- */
1296
- code: number;
1297
- /**
1298
- * Error message detailing the issue
1299
- */
1300
- message: string;
1301
- };
2405
+ export function submitInteractionIdentityIdNumberToJSON(
2406
+ submitInteractionIdentityIdNumber: SubmitInteractionIdentityIdNumber,
2407
+ ): string {
2408
+ return JSON.stringify(
2409
+ SubmitInteractionIdentityIdNumber$outboundSchema.parse(
2410
+ submitInteractionIdentityIdNumber,
2411
+ ),
2412
+ );
2413
+ }
1302
2414
 
1303
- export type Success = {
1304
- status: "success";
2415
+ /** @internal */
2416
+ export type SubmitInteractionIdentityPhone$Outbound = {
2417
+ type: string;
2418
+ number: string;
1305
2419
  };
1306
2420
 
1307
- /**
1308
- * Success
1309
- */
1310
- export type SubmitInteractionResponse =
1311
- | Success
1312
- | SubmitInteractionError
1313
- | discriminatedUnionTypes.Unknown<"status">;
1314
-
1315
2421
  /** @internal */
1316
- export type SubmitInteractionSecurity$Outbound = {
1317
- InteractionAccess: string;
1318
- };
2422
+ export const SubmitInteractionIdentityPhone$outboundSchema: z.ZodMiniType<
2423
+ SubmitInteractionIdentityPhone$Outbound,
2424
+ SubmitInteractionIdentityPhone
2425
+ > = z.object({
2426
+ type: z.string(),
2427
+ number: z.string(),
2428
+ });
2429
+
2430
+ export function submitInteractionIdentityPhoneToJSON(
2431
+ submitInteractionIdentityPhone: SubmitInteractionIdentityPhone,
2432
+ ): string {
2433
+ return JSON.stringify(
2434
+ SubmitInteractionIdentityPhone$outboundSchema.parse(
2435
+ submitInteractionIdentityPhone,
2436
+ ),
2437
+ );
2438
+ }
1319
2439
 
1320
2440
  /** @internal */
1321
- export const SubmitInteractionSecurity$outboundSchema: z.ZodMiniType<
1322
- SubmitInteractionSecurity$Outbound,
1323
- SubmitInteractionSecurity
1324
- > = z.pipe(
1325
- z.object({
1326
- interactionAccess: z.string(),
1327
- }),
1328
- z.transform((v) => {
1329
- return remap$(v, {
1330
- interactionAccess: "InteractionAccess",
1331
- });
1332
- }),
1333
- );
2441
+ export type SubmitInteractionIdentityEmail$Outbound = {
2442
+ type: string;
2443
+ email: string;
2444
+ };
1334
2445
 
1335
- export function submitInteractionSecurityToJSON(
1336
- submitInteractionSecurity: SubmitInteractionSecurity,
2446
+ /** @internal */
2447
+ export const SubmitInteractionIdentityEmail$outboundSchema: z.ZodMiniType<
2448
+ SubmitInteractionIdentityEmail$Outbound,
2449
+ SubmitInteractionIdentityEmail
2450
+ > = z.object({
2451
+ type: z.string(),
2452
+ email: z.string(),
2453
+ });
2454
+
2455
+ export function submitInteractionIdentityEmailToJSON(
2456
+ submitInteractionIdentityEmail: SubmitInteractionIdentityEmail,
1337
2457
  ): string {
1338
2458
  return JSON.stringify(
1339
- SubmitInteractionSecurity$outboundSchema.parse(submitInteractionSecurity),
2459
+ SubmitInteractionIdentityEmail$outboundSchema.parse(
2460
+ submitInteractionIdentityEmail,
2461
+ ),
1340
2462
  );
1341
2463
  }
1342
2464
 
1343
2465
  /** @internal */
1344
- export type Participant$Outbound = {
1345
- domainElementId?: string | undefined;
1346
- instruction?: string | undefined;
2466
+ export type SubmitInteractionIdentitySocial$Outbound = {
2467
+ type: string;
2468
+ identity: string;
1347
2469
  };
1348
2470
 
1349
2471
  /** @internal */
1350
- export const Participant$outboundSchema: z.ZodMiniType<
1351
- Participant$Outbound,
1352
- Participant
2472
+ export const SubmitInteractionIdentitySocial$outboundSchema: z.ZodMiniType<
2473
+ SubmitInteractionIdentitySocial$Outbound,
2474
+ SubmitInteractionIdentitySocial
1353
2475
  > = z.object({
1354
- domainElementId: z.optional(z.string()),
1355
- instruction: z.optional(z.string()),
2476
+ type: z.string(),
2477
+ identity: z.string(),
1356
2478
  });
1357
2479
 
1358
- export function participantToJSON(participant: Participant): string {
1359
- return JSON.stringify(Participant$outboundSchema.parse(participant));
2480
+ export function submitInteractionIdentitySocialToJSON(
2481
+ submitInteractionIdentitySocial: SubmitInteractionIdentitySocial,
2482
+ ): string {
2483
+ return JSON.stringify(
2484
+ SubmitInteractionIdentitySocial$outboundSchema.parse(
2485
+ submitInteractionIdentitySocial,
2486
+ ),
2487
+ );
1360
2488
  }
1361
2489
 
1362
2490
  /** @internal */
1363
- export type SubmitInteractionIdentityAlias$Outbound = {
2491
+ export type SubmitInteractionIdentity$Outbound = {
1364
2492
  title?: string | undefined;
1365
2493
  firstName?: string | undefined;
1366
2494
  middleNames?: Array<string> | undefined;
1367
2495
  lastNames?: Array<string> | undefined;
1368
2496
  lastNamesAtBirth?: Array<string> | undefined;
2497
+ aliases?: Array<SubmitInteractionIdentityAlias$Outbound> | undefined;
2498
+ relatedPersons?:
2499
+ | Array<SubmitInteractionIdentityRelatedPerson$Outbound>
2500
+ | undefined;
2501
+ dateOfBirth?: string | undefined;
2502
+ gender?: string | undefined;
2503
+ currentAddress?: SubmitInteractionIdentityCurrentAddress$Outbound | undefined;
2504
+ previousAddresses?:
2505
+ | Array<SubmitInteractionIdentityPreviousAddress$Outbound>
2506
+ | undefined;
2507
+ placeOfBirth?: SubmitInteractionIdentityPlaceOfBirth$Outbound | undefined;
2508
+ idNumbers?: Array<SubmitInteractionIdentityIdNumber$Outbound> | undefined;
2509
+ phones?: Array<SubmitInteractionIdentityPhone$Outbound> | undefined;
2510
+ emails?: Array<SubmitInteractionIdentityEmail$Outbound> | undefined;
2511
+ socials?: Array<SubmitInteractionIdentitySocial$Outbound> | undefined;
2512
+ mothersMaidenName?: string | undefined;
2513
+ nationality?: string | undefined;
1369
2514
  };
1370
2515
 
1371
2516
  /** @internal */
1372
- export const SubmitInteractionIdentityAlias$outboundSchema: z.ZodMiniType<
1373
- SubmitInteractionIdentityAlias$Outbound,
1374
- SubmitInteractionIdentityAlias
2517
+ export const SubmitInteractionIdentity$outboundSchema: z.ZodMiniType<
2518
+ SubmitInteractionIdentity$Outbound,
2519
+ SubmitInteractionIdentity
1375
2520
  > = z.object({
1376
2521
  title: z.optional(z.string()),
1377
2522
  firstName: z.optional(z.string()),
1378
2523
  middleNames: z.optional(z.array(z.string())),
1379
2524
  lastNames: z.optional(z.array(z.string())),
1380
2525
  lastNamesAtBirth: z.optional(z.array(z.string())),
2526
+ aliases: z.optional(
2527
+ z.array(z.lazy(() => SubmitInteractionIdentityAlias$outboundSchema)),
2528
+ ),
2529
+ relatedPersons: z.optional(
2530
+ z.array(
2531
+ z.lazy(() => SubmitInteractionIdentityRelatedPerson$outboundSchema),
2532
+ ),
2533
+ ),
2534
+ dateOfBirth: z.optional(z.string()),
2535
+ gender: z.optional(z.string()),
2536
+ currentAddress: z.optional(
2537
+ z.lazy(() => SubmitInteractionIdentityCurrentAddress$outboundSchema),
2538
+ ),
2539
+ previousAddresses: z.optional(
2540
+ z.array(
2541
+ z.lazy(() => SubmitInteractionIdentityPreviousAddress$outboundSchema),
2542
+ ),
2543
+ ),
2544
+ placeOfBirth: z.optional(
2545
+ z.lazy(() => SubmitInteractionIdentityPlaceOfBirth$outboundSchema),
2546
+ ),
2547
+ idNumbers: z.optional(
2548
+ z.array(z.lazy(() => SubmitInteractionIdentityIdNumber$outboundSchema)),
2549
+ ),
2550
+ phones: z.optional(
2551
+ z.array(z.lazy(() => SubmitInteractionIdentityPhone$outboundSchema)),
2552
+ ),
2553
+ emails: z.optional(
2554
+ z.array(z.lazy(() => SubmitInteractionIdentityEmail$outboundSchema)),
2555
+ ),
2556
+ socials: z.optional(
2557
+ z.array(z.lazy(() => SubmitInteractionIdentitySocial$outboundSchema)),
2558
+ ),
2559
+ mothersMaidenName: z.optional(z.string()),
2560
+ nationality: z.optional(z.string()),
1381
2561
  });
1382
2562
 
1383
- export function submitInteractionIdentityAliasToJSON(
1384
- submitInteractionIdentityAlias: SubmitInteractionIdentityAlias,
2563
+ export function submitInteractionIdentityToJSON(
2564
+ submitInteractionIdentity: SubmitInteractionIdentity,
1385
2565
  ): string {
1386
2566
  return JSON.stringify(
1387
- SubmitInteractionIdentityAlias$outboundSchema.parse(
1388
- submitInteractionIdentityAlias,
2567
+ SubmitInteractionIdentity$outboundSchema.parse(submitInteractionIdentity),
2568
+ );
2569
+ }
2570
+
2571
+ /** @internal */
2572
+ export const SubmitInteractionTypePrimary1$outboundSchema: z.ZodMiniEnum<
2573
+ typeof SubmitInteractionTypePrimary1
2574
+ > = z.enum(SubmitInteractionTypePrimary1);
2575
+
2576
+ /** @internal */
2577
+ export const SubmitInteractionStatus$outboundSchema: z.ZodMiniEnum<
2578
+ typeof SubmitInteractionStatus
2579
+ > = z.enum(SubmitInteractionStatus);
2580
+
2581
+ /** @internal */
2582
+ export type SubmitInteractionAddressLocation$Outbound = {
2583
+ latitude?: string | undefined;
2584
+ longitude?: string | undefined;
2585
+ geoAccuracy?: string | undefined;
2586
+ what3words?: string | undefined;
2587
+ };
2588
+
2589
+ /** @internal */
2590
+ export const SubmitInteractionAddressLocation$outboundSchema: z.ZodMiniType<
2591
+ SubmitInteractionAddressLocation$Outbound,
2592
+ SubmitInteractionAddressLocation
2593
+ > = z.object({
2594
+ latitude: z.optional(z.string()),
2595
+ longitude: z.optional(z.string()),
2596
+ geoAccuracy: z.optional(z.string()),
2597
+ what3words: z.optional(z.string()),
2598
+ });
2599
+
2600
+ export function submitInteractionAddressLocationToJSON(
2601
+ submitInteractionAddressLocation: SubmitInteractionAddressLocation,
2602
+ ): string {
2603
+ return JSON.stringify(
2604
+ SubmitInteractionAddressLocation$outboundSchema.parse(
2605
+ submitInteractionAddressLocation,
1389
2606
  ),
1390
2607
  );
1391
2608
  }
1392
2609
 
1393
2610
  /** @internal */
1394
- export const SubmitInteractionIdentityRelationship$outboundSchema:
1395
- z.ZodMiniEnum<typeof SubmitInteractionIdentityRelationship> = z.enum(
1396
- SubmitInteractionIdentityRelationship,
2611
+ export const SubmitInteractionPurpose$outboundSchema: z.ZodMiniEnum<
2612
+ typeof SubmitInteractionPurpose
2613
+ > = z.enum(SubmitInteractionPurpose);
2614
+
2615
+ /** @internal */
2616
+ export type SubmitInteractionAddressPrimary$Outbound = {
2617
+ lines?: Array<string> | undefined;
2618
+ addressString?: string | undefined;
2619
+ premise?: string | undefined;
2620
+ building?: string | undefined;
2621
+ subBuilding?: string | undefined;
2622
+ thoroughfare?: string | undefined;
2623
+ dependentThoroughfare?: string | undefined;
2624
+ locality?: string | undefined;
2625
+ dependentLocality?: string | undefined;
2626
+ doubleDependentLocality?: string | undefined;
2627
+ postalCode?: string | undefined;
2628
+ postBox?: string | undefined;
2629
+ country?: string | undefined;
2630
+ superAdministrativeArea?: string | undefined;
2631
+ administrativeArea?: string | undefined;
2632
+ subAdministrativeArea?: string | undefined;
2633
+ organization?: string | undefined;
2634
+ location?: SubmitInteractionAddressLocation$Outbound | undefined;
2635
+ purpose?: string | undefined;
2636
+ };
2637
+
2638
+ /** @internal */
2639
+ export const SubmitInteractionAddressPrimary$outboundSchema: z.ZodMiniType<
2640
+ SubmitInteractionAddressPrimary$Outbound,
2641
+ SubmitInteractionAddressPrimary
2642
+ > = z.object({
2643
+ lines: z.optional(z.array(z.string())),
2644
+ addressString: z.optional(z.string()),
2645
+ premise: z.optional(z.string()),
2646
+ building: z.optional(z.string()),
2647
+ subBuilding: z.optional(z.string()),
2648
+ thoroughfare: z.optional(z.string()),
2649
+ dependentThoroughfare: z.optional(z.string()),
2650
+ locality: z.optional(z.string()),
2651
+ dependentLocality: z.optional(z.string()),
2652
+ doubleDependentLocality: z.optional(z.string()),
2653
+ postalCode: z.optional(z.string()),
2654
+ postBox: z.optional(z.string()),
2655
+ country: z.optional(z.string()),
2656
+ superAdministrativeArea: z.optional(z.string()),
2657
+ administrativeArea: z.optional(z.string()),
2658
+ subAdministrativeArea: z.optional(z.string()),
2659
+ organization: z.optional(z.string()),
2660
+ location: z.optional(
2661
+ z.lazy(() => SubmitInteractionAddressLocation$outboundSchema),
2662
+ ),
2663
+ purpose: z.optional(SubmitInteractionPurpose$outboundSchema),
2664
+ });
2665
+
2666
+ export function submitInteractionAddressPrimaryToJSON(
2667
+ submitInteractionAddressPrimary: SubmitInteractionAddressPrimary,
2668
+ ): string {
2669
+ return JSON.stringify(
2670
+ SubmitInteractionAddressPrimary$outboundSchema.parse(
2671
+ submitInteractionAddressPrimary,
2672
+ ),
1397
2673
  );
2674
+ }
1398
2675
 
1399
2676
  /** @internal */
1400
- export type SubmitInteractionIdentityRelatedPerson$Outbound = {
1401
- title?: string | undefined;
1402
- firstName?: string | undefined;
1403
- middleNames?: Array<string> | undefined;
1404
- lastNames?: Array<string> | undefined;
1405
- lastNamesAtBirth?: Array<string> | undefined;
1406
- relationship: string;
2677
+ export const SubmitInteractionTaxIdentifierType$outboundSchema: z.ZodMiniEnum<
2678
+ typeof SubmitInteractionTaxIdentifierType
2679
+ > = z.enum(SubmitInteractionTaxIdentifierType);
2680
+
2681
+ /** @internal */
2682
+ export type SubmitInteractionTaxIdentifier$Outbound = {
2683
+ type: string;
2684
+ value: string;
2685
+ country?: string | undefined;
1407
2686
  };
1408
2687
 
1409
2688
  /** @internal */
1410
- export const SubmitInteractionIdentityRelatedPerson$outboundSchema:
2689
+ export const SubmitInteractionTaxIdentifier$outboundSchema: z.ZodMiniType<
2690
+ SubmitInteractionTaxIdentifier$Outbound,
2691
+ SubmitInteractionTaxIdentifier
2692
+ > = z.object({
2693
+ type: SubmitInteractionTaxIdentifierType$outboundSchema,
2694
+ value: z.string(),
2695
+ country: z.optional(z.string()),
2696
+ });
2697
+
2698
+ export function submitInteractionTaxIdentifierToJSON(
2699
+ submitInteractionTaxIdentifier: SubmitInteractionTaxIdentifier,
2700
+ ): string {
2701
+ return JSON.stringify(
2702
+ SubmitInteractionTaxIdentifier$outboundSchema.parse(
2703
+ submitInteractionTaxIdentifier,
2704
+ ),
2705
+ );
2706
+ }
2707
+
2708
+ /** @internal */
2709
+ export const SubmitInteractionSystem$outboundSchema: z.ZodMiniEnum<
2710
+ typeof SubmitInteractionSystem
2711
+ > = z.enum(SubmitInteractionSystem);
2712
+
2713
+ /** @internal */
2714
+ export type SubmitInteractionIndustryClassification$Outbound = {
2715
+ system: string;
2716
+ code: string;
2717
+ description?: string | undefined;
2718
+ };
2719
+
2720
+ /** @internal */
2721
+ export const SubmitInteractionIndustryClassification$outboundSchema:
1411
2722
  z.ZodMiniType<
1412
- SubmitInteractionIdentityRelatedPerson$Outbound,
1413
- SubmitInteractionIdentityRelatedPerson
2723
+ SubmitInteractionIndustryClassification$Outbound,
2724
+ SubmitInteractionIndustryClassification
1414
2725
  > = z.object({
1415
- title: z.optional(z.string()),
1416
- firstName: z.optional(z.string()),
1417
- middleNames: z.optional(z.array(z.string())),
1418
- lastNames: z.optional(z.array(z.string())),
1419
- lastNamesAtBirth: z.optional(z.array(z.string())),
1420
- relationship: SubmitInteractionIdentityRelationship$outboundSchema,
2726
+ system: SubmitInteractionSystem$outboundSchema,
2727
+ code: z.string(),
2728
+ description: z.optional(z.string()),
1421
2729
  });
1422
2730
 
1423
- export function submitInteractionIdentityRelatedPersonToJSON(
1424
- submitInteractionIdentityRelatedPerson:
1425
- SubmitInteractionIdentityRelatedPerson,
2731
+ export function submitInteractionIndustryClassificationToJSON(
2732
+ submitInteractionIndustryClassification:
2733
+ SubmitInteractionIndustryClassification,
1426
2734
  ): string {
1427
2735
  return JSON.stringify(
1428
- SubmitInteractionIdentityRelatedPerson$outboundSchema.parse(
1429
- submitInteractionIdentityRelatedPerson,
2736
+ SubmitInteractionIndustryClassification$outboundSchema.parse(
2737
+ submitInteractionIndustryClassification,
1430
2738
  ),
1431
2739
  );
1432
2740
  }
1433
2741
 
1434
2742
  /** @internal */
1435
- export type SubmitInteractionIdentityCurrentAddressLocation$Outbound = {
2743
+ export const SubmitInteractionRegistrationType$outboundSchema: z.ZodMiniEnum<
2744
+ typeof SubmitInteractionRegistrationType
2745
+ > = z.enum(SubmitInteractionRegistrationType);
2746
+
2747
+ /** @internal */
2748
+ export type SubmitInteractionRegisteredAddressLocation$Outbound = {
1436
2749
  latitude?: string | undefined;
1437
2750
  longitude?: string | undefined;
1438
2751
  geoAccuracy?: string | undefined;
@@ -1440,10 +2753,10 @@ export type SubmitInteractionIdentityCurrentAddressLocation$Outbound = {
1440
2753
  };
1441
2754
 
1442
2755
  /** @internal */
1443
- export const SubmitInteractionIdentityCurrentAddressLocation$outboundSchema:
2756
+ export const SubmitInteractionRegisteredAddressLocation$outboundSchema:
1444
2757
  z.ZodMiniType<
1445
- SubmitInteractionIdentityCurrentAddressLocation$Outbound,
1446
- SubmitInteractionIdentityCurrentAddressLocation
2758
+ SubmitInteractionRegisteredAddressLocation$Outbound,
2759
+ SubmitInteractionRegisteredAddressLocation
1447
2760
  > = z.object({
1448
2761
  latitude: z.optional(z.string()),
1449
2762
  longitude: z.optional(z.string()),
@@ -1451,19 +2764,19 @@ export const SubmitInteractionIdentityCurrentAddressLocation$outboundSchema:
1451
2764
  what3words: z.optional(z.string()),
1452
2765
  });
1453
2766
 
1454
- export function submitInteractionIdentityCurrentAddressLocationToJSON(
1455
- submitInteractionIdentityCurrentAddressLocation:
1456
- SubmitInteractionIdentityCurrentAddressLocation,
2767
+ export function submitInteractionRegisteredAddressLocationToJSON(
2768
+ submitInteractionRegisteredAddressLocation:
2769
+ SubmitInteractionRegisteredAddressLocation,
1457
2770
  ): string {
1458
2771
  return JSON.stringify(
1459
- SubmitInteractionIdentityCurrentAddressLocation$outboundSchema.parse(
1460
- submitInteractionIdentityCurrentAddressLocation,
2772
+ SubmitInteractionRegisteredAddressLocation$outboundSchema.parse(
2773
+ submitInteractionRegisteredAddressLocation,
1461
2774
  ),
1462
2775
  );
1463
2776
  }
1464
2777
 
1465
2778
  /** @internal */
1466
- export type SubmitInteractionIdentityCurrentAddress$Outbound = {
2779
+ export type SubmitInteractionRegisteredAddress$Outbound = {
1467
2780
  lines?: Array<string> | undefined;
1468
2781
  addressString?: string | undefined;
1469
2782
  premise?: string | undefined;
@@ -1481,54 +2794,48 @@ export type SubmitInteractionIdentityCurrentAddress$Outbound = {
1481
2794
  administrativeArea?: string | undefined;
1482
2795
  subAdministrativeArea?: string | undefined;
1483
2796
  organization?: string | undefined;
1484
- location?:
1485
- | SubmitInteractionIdentityCurrentAddressLocation$Outbound
1486
- | undefined;
2797
+ location?: SubmitInteractionRegisteredAddressLocation$Outbound | undefined;
1487
2798
  };
1488
2799
 
1489
- /** @internal */
1490
- export const SubmitInteractionIdentityCurrentAddress$outboundSchema:
1491
- z.ZodMiniType<
1492
- SubmitInteractionIdentityCurrentAddress$Outbound,
1493
- SubmitInteractionIdentityCurrentAddress
1494
- > = z.object({
1495
- lines: z.optional(z.array(z.string())),
1496
- addressString: z.optional(z.string()),
1497
- premise: z.optional(z.string()),
1498
- building: z.optional(z.string()),
1499
- subBuilding: z.optional(z.string()),
1500
- thoroughfare: z.optional(z.string()),
1501
- dependentThoroughfare: z.optional(z.string()),
1502
- locality: z.optional(z.string()),
1503
- dependentLocality: z.optional(z.string()),
1504
- doubleDependentLocality: z.optional(z.string()),
1505
- postalCode: z.optional(z.string()),
1506
- postBox: z.optional(z.string()),
1507
- country: z.optional(z.string()),
1508
- superAdministrativeArea: z.optional(z.string()),
1509
- administrativeArea: z.optional(z.string()),
1510
- subAdministrativeArea: z.optional(z.string()),
1511
- organization: z.optional(z.string()),
1512
- location: z.optional(
1513
- z.lazy(() =>
1514
- SubmitInteractionIdentityCurrentAddressLocation$outboundSchema
1515
- ),
1516
- ),
1517
- });
1518
-
1519
- export function submitInteractionIdentityCurrentAddressToJSON(
1520
- submitInteractionIdentityCurrentAddress:
1521
- SubmitInteractionIdentityCurrentAddress,
2800
+ /** @internal */
2801
+ export const SubmitInteractionRegisteredAddress$outboundSchema: z.ZodMiniType<
2802
+ SubmitInteractionRegisteredAddress$Outbound,
2803
+ SubmitInteractionRegisteredAddress
2804
+ > = z.object({
2805
+ lines: z.optional(z.array(z.string())),
2806
+ addressString: z.optional(z.string()),
2807
+ premise: z.optional(z.string()),
2808
+ building: z.optional(z.string()),
2809
+ subBuilding: z.optional(z.string()),
2810
+ thoroughfare: z.optional(z.string()),
2811
+ dependentThoroughfare: z.optional(z.string()),
2812
+ locality: z.optional(z.string()),
2813
+ dependentLocality: z.optional(z.string()),
2814
+ doubleDependentLocality: z.optional(z.string()),
2815
+ postalCode: z.optional(z.string()),
2816
+ postBox: z.optional(z.string()),
2817
+ country: z.optional(z.string()),
2818
+ superAdministrativeArea: z.optional(z.string()),
2819
+ administrativeArea: z.optional(z.string()),
2820
+ subAdministrativeArea: z.optional(z.string()),
2821
+ organization: z.optional(z.string()),
2822
+ location: z.optional(
2823
+ z.lazy(() => SubmitInteractionRegisteredAddressLocation$outboundSchema),
2824
+ ),
2825
+ });
2826
+
2827
+ export function submitInteractionRegisteredAddressToJSON(
2828
+ submitInteractionRegisteredAddress: SubmitInteractionRegisteredAddress,
1522
2829
  ): string {
1523
2830
  return JSON.stringify(
1524
- SubmitInteractionIdentityCurrentAddress$outboundSchema.parse(
1525
- submitInteractionIdentityCurrentAddress,
2831
+ SubmitInteractionRegisteredAddress$outboundSchema.parse(
2832
+ submitInteractionRegisteredAddress,
1526
2833
  ),
1527
2834
  );
1528
2835
  }
1529
2836
 
1530
2837
  /** @internal */
1531
- export type SubmitInteractionIdentityPreviousAddressLocation$Outbound = {
2838
+ export type SubmitInteractionAgentAddressLocation$Outbound = {
1532
2839
  latitude?: string | undefined;
1533
2840
  longitude?: string | undefined;
1534
2841
  geoAccuracy?: string | undefined;
@@ -1536,10 +2843,10 @@ export type SubmitInteractionIdentityPreviousAddressLocation$Outbound = {
1536
2843
  };
1537
2844
 
1538
2845
  /** @internal */
1539
- export const SubmitInteractionIdentityPreviousAddressLocation$outboundSchema:
2846
+ export const SubmitInteractionAgentAddressLocation$outboundSchema:
1540
2847
  z.ZodMiniType<
1541
- SubmitInteractionIdentityPreviousAddressLocation$Outbound,
1542
- SubmitInteractionIdentityPreviousAddressLocation
2848
+ SubmitInteractionAgentAddressLocation$Outbound,
2849
+ SubmitInteractionAgentAddressLocation
1543
2850
  > = z.object({
1544
2851
  latitude: z.optional(z.string()),
1545
2852
  longitude: z.optional(z.string()),
@@ -1547,19 +2854,18 @@ export const SubmitInteractionIdentityPreviousAddressLocation$outboundSchema:
1547
2854
  what3words: z.optional(z.string()),
1548
2855
  });
1549
2856
 
1550
- export function submitInteractionIdentityPreviousAddressLocationToJSON(
1551
- submitInteractionIdentityPreviousAddressLocation:
1552
- SubmitInteractionIdentityPreviousAddressLocation,
2857
+ export function submitInteractionAgentAddressLocationToJSON(
2858
+ submitInteractionAgentAddressLocation: SubmitInteractionAgentAddressLocation,
1553
2859
  ): string {
1554
2860
  return JSON.stringify(
1555
- SubmitInteractionIdentityPreviousAddressLocation$outboundSchema.parse(
1556
- submitInteractionIdentityPreviousAddressLocation,
2861
+ SubmitInteractionAgentAddressLocation$outboundSchema.parse(
2862
+ submitInteractionAgentAddressLocation,
1557
2863
  ),
1558
2864
  );
1559
2865
  }
1560
2866
 
1561
2867
  /** @internal */
1562
- export type SubmitInteractionIdentityPreviousAddress$Outbound = {
2868
+ export type SubmitInteractionAgentAddress$Outbound = {
1563
2869
  lines?: Array<string> | undefined;
1564
2870
  addressString?: string | undefined;
1565
2871
  premise?: string | undefined;
@@ -1577,58 +2883,99 @@ export type SubmitInteractionIdentityPreviousAddress$Outbound = {
1577
2883
  administrativeArea?: string | undefined;
1578
2884
  subAdministrativeArea?: string | undefined;
1579
2885
  organization?: string | undefined;
1580
- location?:
1581
- | SubmitInteractionIdentityPreviousAddressLocation$Outbound
1582
- | undefined;
1583
- fromDate: string;
1584
- toDate: string;
2886
+ location?: SubmitInteractionAgentAddressLocation$Outbound | undefined;
1585
2887
  };
1586
2888
 
1587
2889
  /** @internal */
1588
- export const SubmitInteractionIdentityPreviousAddress$outboundSchema:
1589
- z.ZodMiniType<
1590
- SubmitInteractionIdentityPreviousAddress$Outbound,
1591
- SubmitInteractionIdentityPreviousAddress
1592
- > = z.object({
1593
- lines: z.optional(z.array(z.string())),
1594
- addressString: z.optional(z.string()),
1595
- premise: z.optional(z.string()),
1596
- building: z.optional(z.string()),
1597
- subBuilding: z.optional(z.string()),
1598
- thoroughfare: z.optional(z.string()),
1599
- dependentThoroughfare: z.optional(z.string()),
1600
- locality: z.optional(z.string()),
1601
- dependentLocality: z.optional(z.string()),
1602
- doubleDependentLocality: z.optional(z.string()),
1603
- postalCode: z.optional(z.string()),
1604
- postBox: z.optional(z.string()),
1605
- country: z.optional(z.string()),
1606
- superAdministrativeArea: z.optional(z.string()),
1607
- administrativeArea: z.optional(z.string()),
1608
- subAdministrativeArea: z.optional(z.string()),
1609
- organization: z.optional(z.string()),
1610
- location: z.optional(
1611
- z.lazy(() =>
1612
- SubmitInteractionIdentityPreviousAddressLocation$outboundSchema
1613
- ),
2890
+ export const SubmitInteractionAgentAddress$outboundSchema: z.ZodMiniType<
2891
+ SubmitInteractionAgentAddress$Outbound,
2892
+ SubmitInteractionAgentAddress
2893
+ > = z.object({
2894
+ lines: z.optional(z.array(z.string())),
2895
+ addressString: z.optional(z.string()),
2896
+ premise: z.optional(z.string()),
2897
+ building: z.optional(z.string()),
2898
+ subBuilding: z.optional(z.string()),
2899
+ thoroughfare: z.optional(z.string()),
2900
+ dependentThoroughfare: z.optional(z.string()),
2901
+ locality: z.optional(z.string()),
2902
+ dependentLocality: z.optional(z.string()),
2903
+ doubleDependentLocality: z.optional(z.string()),
2904
+ postalCode: z.optional(z.string()),
2905
+ postBox: z.optional(z.string()),
2906
+ country: z.optional(z.string()),
2907
+ superAdministrativeArea: z.optional(z.string()),
2908
+ administrativeArea: z.optional(z.string()),
2909
+ subAdministrativeArea: z.optional(z.string()),
2910
+ organization: z.optional(z.string()),
2911
+ location: z.optional(
2912
+ z.lazy(() => SubmitInteractionAgentAddressLocation$outboundSchema),
2913
+ ),
2914
+ });
2915
+
2916
+ export function submitInteractionAgentAddressToJSON(
2917
+ submitInteractionAgentAddress: SubmitInteractionAgentAddress,
2918
+ ): string {
2919
+ return JSON.stringify(
2920
+ SubmitInteractionAgentAddress$outboundSchema.parse(
2921
+ submitInteractionAgentAddress,
1614
2922
  ),
1615
- fromDate: z.string(),
1616
- toDate: z.string(),
1617
- });
2923
+ );
2924
+ }
1618
2925
 
1619
- export function submitInteractionIdentityPreviousAddressToJSON(
1620
- submitInteractionIdentityPreviousAddress:
1621
- SubmitInteractionIdentityPreviousAddress,
2926
+ /** @internal */
2927
+ export type SubmitInteractionRegistration$Outbound = {
2928
+ jurisdiction?: string | undefined;
2929
+ registrationType?: string | undefined;
2930
+ fileNumber?: string | undefined;
2931
+ issueDate?: string | undefined;
2932
+ registeredAddress?: SubmitInteractionRegisteredAddress$Outbound | undefined;
2933
+ agentName?: string | undefined;
2934
+ agentAddress?: SubmitInteractionAgentAddress$Outbound | undefined;
2935
+ };
2936
+
2937
+ /** @internal */
2938
+ export const SubmitInteractionRegistration$outboundSchema: z.ZodMiniType<
2939
+ SubmitInteractionRegistration$Outbound,
2940
+ SubmitInteractionRegistration
2941
+ > = z.object({
2942
+ jurisdiction: z.optional(z.string()),
2943
+ registrationType: z.optional(
2944
+ SubmitInteractionRegistrationType$outboundSchema,
2945
+ ),
2946
+ fileNumber: z.optional(z.string()),
2947
+ issueDate: z.optional(z.string()),
2948
+ registeredAddress: z.optional(
2949
+ z.lazy(() => SubmitInteractionRegisteredAddress$outboundSchema),
2950
+ ),
2951
+ agentName: z.optional(z.string()),
2952
+ agentAddress: z.optional(
2953
+ z.lazy(() => SubmitInteractionAgentAddress$outboundSchema),
2954
+ ),
2955
+ });
2956
+
2957
+ export function submitInteractionRegistrationToJSON(
2958
+ submitInteractionRegistration: SubmitInteractionRegistration,
1622
2959
  ): string {
1623
2960
  return JSON.stringify(
1624
- SubmitInteractionIdentityPreviousAddress$outboundSchema.parse(
1625
- submitInteractionIdentityPreviousAddress,
2961
+ SubmitInteractionRegistration$outboundSchema.parse(
2962
+ submitInteractionRegistration,
1626
2963
  ),
1627
2964
  );
1628
2965
  }
1629
2966
 
1630
2967
  /** @internal */
1631
- export type SubmitInteractionIdentityPlaceOfBirthLocation$Outbound = {
2968
+ export const SubmitInteractionTypePrimary2$outboundSchema: z.ZodMiniEnum<
2969
+ typeof SubmitInteractionTypePrimary2
2970
+ > = z.enum(SubmitInteractionTypePrimary2);
2971
+
2972
+ /** @internal */
2973
+ export const SubmitInteractionRole$outboundSchema: z.ZodMiniEnum<
2974
+ typeof SubmitInteractionRole
2975
+ > = z.enum(SubmitInteractionRole);
2976
+
2977
+ /** @internal */
2978
+ export type SubmitInteractionCurrentAddressLocationPrimary$Outbound = {
1632
2979
  latitude?: string | undefined;
1633
2980
  longitude?: string | undefined;
1634
2981
  geoAccuracy?: string | undefined;
@@ -1636,10 +2983,10 @@ export type SubmitInteractionIdentityPlaceOfBirthLocation$Outbound = {
1636
2983
  };
1637
2984
 
1638
2985
  /** @internal */
1639
- export const SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema:
2986
+ export const SubmitInteractionCurrentAddressLocationPrimary$outboundSchema:
1640
2987
  z.ZodMiniType<
1641
- SubmitInteractionIdentityPlaceOfBirthLocation$Outbound,
1642
- SubmitInteractionIdentityPlaceOfBirthLocation
2988
+ SubmitInteractionCurrentAddressLocationPrimary$Outbound,
2989
+ SubmitInteractionCurrentAddressLocationPrimary
1643
2990
  > = z.object({
1644
2991
  latitude: z.optional(z.string()),
1645
2992
  longitude: z.optional(z.string()),
@@ -1647,19 +2994,19 @@ export const SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema:
1647
2994
  what3words: z.optional(z.string()),
1648
2995
  });
1649
2996
 
1650
- export function submitInteractionIdentityPlaceOfBirthLocationToJSON(
1651
- submitInteractionIdentityPlaceOfBirthLocation:
1652
- SubmitInteractionIdentityPlaceOfBirthLocation,
2997
+ export function submitInteractionCurrentAddressLocationPrimaryToJSON(
2998
+ submitInteractionCurrentAddressLocationPrimary:
2999
+ SubmitInteractionCurrentAddressLocationPrimary,
1653
3000
  ): string {
1654
3001
  return JSON.stringify(
1655
- SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema.parse(
1656
- submitInteractionIdentityPlaceOfBirthLocation,
3002
+ SubmitInteractionCurrentAddressLocationPrimary$outboundSchema.parse(
3003
+ submitInteractionCurrentAddressLocationPrimary,
1657
3004
  ),
1658
3005
  );
1659
3006
  }
1660
3007
 
1661
3008
  /** @internal */
1662
- export type SubmitInteractionIdentityPlaceOfBirth$Outbound = {
3009
+ export type SubmitInteractionCurrentAddressPrimary$Outbound = {
1663
3010
  lines?: Array<string> | undefined;
1664
3011
  addressString?: string | undefined;
1665
3012
  premise?: string | undefined;
@@ -1677,14 +3024,16 @@ export type SubmitInteractionIdentityPlaceOfBirth$Outbound = {
1677
3024
  administrativeArea?: string | undefined;
1678
3025
  subAdministrativeArea?: string | undefined;
1679
3026
  organization?: string | undefined;
1680
- location?: SubmitInteractionIdentityPlaceOfBirthLocation$Outbound | undefined;
3027
+ location?:
3028
+ | SubmitInteractionCurrentAddressLocationPrimary$Outbound
3029
+ | undefined;
1681
3030
  };
1682
3031
 
1683
3032
  /** @internal */
1684
- export const SubmitInteractionIdentityPlaceOfBirth$outboundSchema:
3033
+ export const SubmitInteractionCurrentAddressPrimary$outboundSchema:
1685
3034
  z.ZodMiniType<
1686
- SubmitInteractionIdentityPlaceOfBirth$Outbound,
1687
- SubmitInteractionIdentityPlaceOfBirth
3035
+ SubmitInteractionCurrentAddressPrimary$Outbound,
3036
+ SubmitInteractionCurrentAddressPrimary
1688
3037
  > = z.object({
1689
3038
  lines: z.optional(z.array(z.string())),
1690
3039
  addressString: z.optional(z.string()),
@@ -1705,204 +3054,175 @@ export const SubmitInteractionIdentityPlaceOfBirth$outboundSchema:
1705
3054
  organization: z.optional(z.string()),
1706
3055
  location: z.optional(
1707
3056
  z.lazy(() =>
1708
- SubmitInteractionIdentityPlaceOfBirthLocation$outboundSchema
3057
+ SubmitInteractionCurrentAddressLocationPrimary$outboundSchema
1709
3058
  ),
1710
3059
  ),
1711
3060
  });
1712
3061
 
1713
- export function submitInteractionIdentityPlaceOfBirthToJSON(
1714
- submitInteractionIdentityPlaceOfBirth: SubmitInteractionIdentityPlaceOfBirth,
3062
+ export function submitInteractionCurrentAddressPrimaryToJSON(
3063
+ submitInteractionCurrentAddressPrimary:
3064
+ SubmitInteractionCurrentAddressPrimary,
1715
3065
  ): string {
1716
3066
  return JSON.stringify(
1717
- SubmitInteractionIdentityPlaceOfBirth$outboundSchema.parse(
1718
- submitInteractionIdentityPlaceOfBirth,
3067
+ SubmitInteractionCurrentAddressPrimary$outboundSchema.parse(
3068
+ submitInteractionCurrentAddressPrimary,
1719
3069
  ),
1720
3070
  );
1721
3071
  }
1722
3072
 
1723
3073
  /** @internal */
1724
- export type SubmitInteractionIdentityIdNumber$Outbound = {
1725
- type: string;
1726
- idNumber: string;
1727
- country?: string | undefined;
3074
+ export type SubmitInteractionPerson$Outbound = {
3075
+ title?: string | undefined;
3076
+ firstName?: string | undefined;
3077
+ middleNames?: Array<string> | undefined;
3078
+ lastNames?: Array<string> | undefined;
3079
+ lastNamesAtBirth?: Array<string> | undefined;
3080
+ id?: string | undefined;
3081
+ type?: string | undefined;
3082
+ role?: string | undefined;
3083
+ position?: string | undefined;
3084
+ ownershipPercentage?: number | undefined;
3085
+ nationality?: string | undefined;
3086
+ dateOfBirth?: string | undefined;
3087
+ startDate?: string | undefined;
3088
+ endDate?: string | undefined;
3089
+ currentAddress?: SubmitInteractionCurrentAddressPrimary$Outbound | undefined;
1728
3090
  };
1729
3091
 
1730
3092
  /** @internal */
1731
- export const SubmitInteractionIdentityIdNumber$outboundSchema: z.ZodMiniType<
1732
- SubmitInteractionIdentityIdNumber$Outbound,
1733
- SubmitInteractionIdentityIdNumber
3093
+ export const SubmitInteractionPerson$outboundSchema: z.ZodMiniType<
3094
+ SubmitInteractionPerson$Outbound,
3095
+ SubmitInteractionPerson
1734
3096
  > = z.object({
1735
- type: z.string(),
1736
- idNumber: z.string(),
1737
- country: z.optional(z.string()),
3097
+ title: z.optional(z.string()),
3098
+ firstName: z.optional(z.string()),
3099
+ middleNames: z.optional(z.array(z.string())),
3100
+ lastNames: z.optional(z.array(z.string())),
3101
+ lastNamesAtBirth: z.optional(z.array(z.string())),
3102
+ id: z.optional(z.string()),
3103
+ type: z.optional(SubmitInteractionTypePrimary2$outboundSchema),
3104
+ role: z.optional(SubmitInteractionRole$outboundSchema),
3105
+ position: z.optional(z.string()),
3106
+ ownershipPercentage: z.optional(z.number()),
3107
+ nationality: z.optional(z.string()),
3108
+ dateOfBirth: z.optional(z.string()),
3109
+ startDate: z.optional(z.string()),
3110
+ endDate: z.optional(z.string()),
3111
+ currentAddress: z.optional(
3112
+ z.lazy(() => SubmitInteractionCurrentAddressPrimary$outboundSchema),
3113
+ ),
1738
3114
  });
1739
3115
 
1740
- export function submitInteractionIdentityIdNumberToJSON(
1741
- submitInteractionIdentityIdNumber: SubmitInteractionIdentityIdNumber,
3116
+ export function submitInteractionPersonToJSON(
3117
+ submitInteractionPerson: SubmitInteractionPerson,
1742
3118
  ): string {
1743
3119
  return JSON.stringify(
1744
- SubmitInteractionIdentityIdNumber$outboundSchema.parse(
1745
- submitInteractionIdentityIdNumber,
1746
- ),
3120
+ SubmitInteractionPerson$outboundSchema.parse(submitInteractionPerson),
1747
3121
  );
1748
3122
  }
1749
3123
 
1750
3124
  /** @internal */
1751
- export type SubmitInteractionIdentityPhone$Outbound = {
3125
+ export type SubmitInteractionPhonePrimary$Outbound = {
1752
3126
  type: string;
1753
3127
  number: string;
1754
3128
  };
1755
3129
 
1756
3130
  /** @internal */
1757
- export const SubmitInteractionIdentityPhone$outboundSchema: z.ZodMiniType<
1758
- SubmitInteractionIdentityPhone$Outbound,
1759
- SubmitInteractionIdentityPhone
3131
+ export const SubmitInteractionPhonePrimary$outboundSchema: z.ZodMiniType<
3132
+ SubmitInteractionPhonePrimary$Outbound,
3133
+ SubmitInteractionPhonePrimary
1760
3134
  > = z.object({
1761
3135
  type: z.string(),
1762
3136
  number: z.string(),
1763
3137
  });
1764
3138
 
1765
- export function submitInteractionIdentityPhoneToJSON(
1766
- submitInteractionIdentityPhone: SubmitInteractionIdentityPhone,
1767
- ): string {
1768
- return JSON.stringify(
1769
- SubmitInteractionIdentityPhone$outboundSchema.parse(
1770
- submitInteractionIdentityPhone,
1771
- ),
1772
- );
1773
- }
1774
-
1775
- /** @internal */
1776
- export type SubmitInteractionIdentityEmail$Outbound = {
1777
- type: string;
1778
- email: string;
1779
- };
1780
-
1781
- /** @internal */
1782
- export const SubmitInteractionIdentityEmail$outboundSchema: z.ZodMiniType<
1783
- SubmitInteractionIdentityEmail$Outbound,
1784
- SubmitInteractionIdentityEmail
1785
- > = z.object({
1786
- type: z.string(),
1787
- email: z.string(),
1788
- });
1789
-
1790
- export function submitInteractionIdentityEmailToJSON(
1791
- submitInteractionIdentityEmail: SubmitInteractionIdentityEmail,
1792
- ): string {
1793
- return JSON.stringify(
1794
- SubmitInteractionIdentityEmail$outboundSchema.parse(
1795
- submitInteractionIdentityEmail,
1796
- ),
1797
- );
1798
- }
1799
-
1800
- /** @internal */
1801
- export type SubmitInteractionIdentitySocial$Outbound = {
1802
- type: string;
1803
- identity: string;
1804
- };
1805
-
1806
- /** @internal */
1807
- export const SubmitInteractionIdentitySocial$outboundSchema: z.ZodMiniType<
1808
- SubmitInteractionIdentitySocial$Outbound,
1809
- SubmitInteractionIdentitySocial
1810
- > = z.object({
1811
- type: z.string(),
1812
- identity: z.string(),
1813
- });
1814
-
1815
- export function submitInteractionIdentitySocialToJSON(
1816
- submitInteractionIdentitySocial: SubmitInteractionIdentitySocial,
3139
+ export function submitInteractionPhonePrimaryToJSON(
3140
+ submitInteractionPhonePrimary: SubmitInteractionPhonePrimary,
1817
3141
  ): string {
1818
3142
  return JSON.stringify(
1819
- SubmitInteractionIdentitySocial$outboundSchema.parse(
1820
- submitInteractionIdentitySocial,
3143
+ SubmitInteractionPhonePrimary$outboundSchema.parse(
3144
+ submitInteractionPhonePrimary,
1821
3145
  ),
1822
3146
  );
1823
3147
  }
1824
3148
 
1825
3149
  /** @internal */
1826
- export type SubmitInteractionIdentity$Outbound = {
1827
- title?: string | undefined;
1828
- firstName?: string | undefined;
1829
- middleNames?: Array<string> | undefined;
1830
- lastNames?: Array<string> | undefined;
1831
- lastNamesAtBirth?: Array<string> | undefined;
1832
- aliases?: Array<SubmitInteractionIdentityAlias$Outbound> | undefined;
1833
- relatedPersons?:
1834
- | Array<SubmitInteractionIdentityRelatedPerson$Outbound>
1835
- | undefined;
1836
- dateOfBirth?: string | undefined;
1837
- gender?: string | undefined;
1838
- currentAddress?: SubmitInteractionIdentityCurrentAddress$Outbound | undefined;
1839
- previousAddresses?:
1840
- | Array<SubmitInteractionIdentityPreviousAddress$Outbound>
3150
+ export type SubmitInteractionEntity$Outbound = {
3151
+ id?: string | undefined;
3152
+ type?: string | undefined;
3153
+ name?: string | undefined;
3154
+ aliases?: Array<string> | undefined;
3155
+ businessType?: string | undefined;
3156
+ status?: string | undefined;
3157
+ description?: string | undefined;
3158
+ addresses?: Array<SubmitInteractionAddressPrimary$Outbound> | undefined;
3159
+ taxIdentifiers?: Array<SubmitInteractionTaxIdentifier$Outbound> | undefined;
3160
+ companyNumber?: string | undefined;
3161
+ industryClassifications?:
3162
+ | Array<SubmitInteractionIndustryClassification$Outbound>
1841
3163
  | undefined;
1842
- placeOfBirth?: SubmitInteractionIdentityPlaceOfBirth$Outbound | undefined;
1843
- idNumbers?: Array<SubmitInteractionIdentityIdNumber$Outbound> | undefined;
1844
- phones?: Array<SubmitInteractionIdentityPhone$Outbound> | undefined;
1845
- emails?: Array<SubmitInteractionIdentityEmail$Outbound> | undefined;
1846
- socials?: Array<SubmitInteractionIdentitySocial$Outbound> | undefined;
1847
- mothersMaidenName?: string | undefined;
3164
+ registrations?: Array<SubmitInteractionRegistration$Outbound> | undefined;
3165
+ corporateStructure?: string | undefined;
3166
+ persons?: Array<SubmitInteractionPerson$Outbound> | undefined;
3167
+ incorporationDate?: string | undefined;
3168
+ dissolutionDate?: string | undefined;
3169
+ phones?: Array<SubmitInteractionPhonePrimary$Outbound> | undefined;
3170
+ websites?: Array<string> | undefined;
3171
+ headcount?: number | undefined;
3172
+ isNonProfit?: boolean | undefined;
1848
3173
  };
1849
3174
 
1850
3175
  /** @internal */
1851
- export const SubmitInteractionIdentity$outboundSchema: z.ZodMiniType<
1852
- SubmitInteractionIdentity$Outbound,
1853
- SubmitInteractionIdentity
3176
+ export const SubmitInteractionEntity$outboundSchema: z.ZodMiniType<
3177
+ SubmitInteractionEntity$Outbound,
3178
+ SubmitInteractionEntity
1854
3179
  > = z.object({
1855
- title: z.optional(z.string()),
1856
- firstName: z.optional(z.string()),
1857
- middleNames: z.optional(z.array(z.string())),
1858
- lastNames: z.optional(z.array(z.string())),
1859
- lastNamesAtBirth: z.optional(z.array(z.string())),
1860
- aliases: z.optional(
1861
- z.array(z.lazy(() => SubmitInteractionIdentityAlias$outboundSchema)),
1862
- ),
1863
- relatedPersons: z.optional(
1864
- z.array(
1865
- z.lazy(() => SubmitInteractionIdentityRelatedPerson$outboundSchema),
1866
- ),
3180
+ id: z.optional(z.string()),
3181
+ type: z.optional(SubmitInteractionTypePrimary1$outboundSchema),
3182
+ name: z.optional(z.string()),
3183
+ aliases: z.optional(z.array(z.string())),
3184
+ businessType: z.optional(z.string()),
3185
+ status: z.optional(SubmitInteractionStatus$outboundSchema),
3186
+ description: z.optional(z.string()),
3187
+ addresses: z.optional(
3188
+ z.array(z.lazy(() => SubmitInteractionAddressPrimary$outboundSchema)),
1867
3189
  ),
1868
- dateOfBirth: z.optional(z.string()),
1869
- gender: z.optional(z.string()),
1870
- currentAddress: z.optional(
1871
- z.lazy(() => SubmitInteractionIdentityCurrentAddress$outboundSchema),
3190
+ taxIdentifiers: z.optional(
3191
+ z.array(z.lazy(() => SubmitInteractionTaxIdentifier$outboundSchema)),
1872
3192
  ),
1873
- previousAddresses: z.optional(
3193
+ companyNumber: z.optional(z.string()),
3194
+ industryClassifications: z.optional(
1874
3195
  z.array(
1875
- z.lazy(() => SubmitInteractionIdentityPreviousAddress$outboundSchema),
1876
- ),
1877
- ),
1878
- placeOfBirth: z.optional(
1879
- z.lazy(() => SubmitInteractionIdentityPlaceOfBirth$outboundSchema),
1880
- ),
1881
- idNumbers: z.optional(
1882
- z.array(z.lazy(() => SubmitInteractionIdentityIdNumber$outboundSchema)),
3196
+ z.lazy(() => SubmitInteractionIndustryClassification$outboundSchema),
3197
+ ),
1883
3198
  ),
1884
- phones: z.optional(
1885
- z.array(z.lazy(() => SubmitInteractionIdentityPhone$outboundSchema)),
3199
+ registrations: z.optional(
3200
+ z.array(z.lazy(() => SubmitInteractionRegistration$outboundSchema)),
1886
3201
  ),
1887
- emails: z.optional(
1888
- z.array(z.lazy(() => SubmitInteractionIdentityEmail$outboundSchema)),
3202
+ corporateStructure: z.optional(z.string()),
3203
+ persons: z.optional(
3204
+ z.array(z.lazy(() => SubmitInteractionPerson$outboundSchema)),
1889
3205
  ),
1890
- socials: z.optional(
1891
- z.array(z.lazy(() => SubmitInteractionIdentitySocial$outboundSchema)),
3206
+ incorporationDate: z.optional(z.string()),
3207
+ dissolutionDate: z.optional(z.string()),
3208
+ phones: z.optional(
3209
+ z.array(z.lazy(() => SubmitInteractionPhonePrimary$outboundSchema)),
1892
3210
  ),
1893
- mothersMaidenName: z.optional(z.string()),
3211
+ websites: z.optional(z.array(z.string())),
3212
+ headcount: z.optional(z.int()),
3213
+ isNonProfit: z.optional(z.boolean()),
1894
3214
  });
1895
3215
 
1896
- export function submitInteractionIdentityToJSON(
1897
- submitInteractionIdentity: SubmitInteractionIdentity,
3216
+ export function submitInteractionEntityToJSON(
3217
+ submitInteractionEntity: SubmitInteractionEntity,
1898
3218
  ): string {
1899
3219
  return JSON.stringify(
1900
- SubmitInteractionIdentity$outboundSchema.parse(submitInteractionIdentity),
3220
+ SubmitInteractionEntity$outboundSchema.parse(submitInteractionEntity),
1901
3221
  );
1902
3222
  }
1903
3223
 
1904
3224
  /** @internal */
1905
- export type SubmitInteractionAddress$Outbound = {
3225
+ export type SubmitInteractionDocumentAddress$Outbound = {
1906
3226
  addressString?: string | undefined;
1907
3227
  extractedAddressString?: string | undefined;
1908
3228
  addressLine1?: string | undefined;
@@ -1913,9 +3233,9 @@ export type SubmitInteractionAddress$Outbound = {
1913
3233
  };
1914
3234
 
1915
3235
  /** @internal */
1916
- export const SubmitInteractionAddress$outboundSchema: z.ZodMiniType<
1917
- SubmitInteractionAddress$Outbound,
1918
- SubmitInteractionAddress
3236
+ export const SubmitInteractionDocumentAddress$outboundSchema: z.ZodMiniType<
3237
+ SubmitInteractionDocumentAddress$Outbound,
3238
+ SubmitInteractionDocumentAddress
1919
3239
  > = z.object({
1920
3240
  addressString: z.optional(z.string()),
1921
3241
  extractedAddressString: z.optional(z.string()),
@@ -1926,11 +3246,13 @@ export const SubmitInteractionAddress$outboundSchema: z.ZodMiniType<
1926
3246
  postalCode: z.optional(z.string()),
1927
3247
  });
1928
3248
 
1929
- export function submitInteractionAddressToJSON(
1930
- submitInteractionAddress: SubmitInteractionAddress,
3249
+ export function submitInteractionDocumentAddressToJSON(
3250
+ submitInteractionDocumentAddress: SubmitInteractionDocumentAddress,
1931
3251
  ): string {
1932
3252
  return JSON.stringify(
1933
- SubmitInteractionAddress$outboundSchema.parse(submitInteractionAddress),
3253
+ SubmitInteractionDocumentAddress$outboundSchema.parse(
3254
+ submitInteractionDocumentAddress,
3255
+ ),
1934
3256
  );
1935
3257
  }
1936
3258
 
@@ -1969,6 +3291,76 @@ export function submitInteractionDocumentDeviceToJSON(
1969
3291
  );
1970
3292
  }
1971
3293
 
3294
+ /** @internal */
3295
+ export type SubmitInteractionSide1Device$Outbound = {
3296
+ type?: string | undefined;
3297
+ model?: string | undefined;
3298
+ hasContactlessReader?: boolean | undefined;
3299
+ hasMagneticStripeReader?: boolean | undefined;
3300
+ hasCamera?: boolean | undefined;
3301
+ serialNumber?: string | undefined;
3302
+ manufacturer?: string | undefined;
3303
+ };
3304
+
3305
+ /** @internal */
3306
+ export const SubmitInteractionSide1Device$outboundSchema: z.ZodMiniType<
3307
+ SubmitInteractionSide1Device$Outbound,
3308
+ SubmitInteractionSide1Device
3309
+ > = z.object({
3310
+ type: z.optional(z.string()),
3311
+ model: z.optional(z.string()),
3312
+ hasContactlessReader: z.optional(z.boolean()),
3313
+ hasMagneticStripeReader: z.optional(z.boolean()),
3314
+ hasCamera: z.optional(z.boolean()),
3315
+ serialNumber: z.optional(z.string()),
3316
+ manufacturer: z.optional(z.string()),
3317
+ });
3318
+
3319
+ export function submitInteractionSide1DeviceToJSON(
3320
+ submitInteractionSide1Device: SubmitInteractionSide1Device,
3321
+ ): string {
3322
+ return JSON.stringify(
3323
+ SubmitInteractionSide1Device$outboundSchema.parse(
3324
+ submitInteractionSide1Device,
3325
+ ),
3326
+ );
3327
+ }
3328
+
3329
+ /** @internal */
3330
+ export type SubmitInteractionSide2Device$Outbound = {
3331
+ type?: string | undefined;
3332
+ model?: string | undefined;
3333
+ hasContactlessReader?: boolean | undefined;
3334
+ hasMagneticStripeReader?: boolean | undefined;
3335
+ hasCamera?: boolean | undefined;
3336
+ serialNumber?: string | undefined;
3337
+ manufacturer?: string | undefined;
3338
+ };
3339
+
3340
+ /** @internal */
3341
+ export const SubmitInteractionSide2Device$outboundSchema: z.ZodMiniType<
3342
+ SubmitInteractionSide2Device$Outbound,
3343
+ SubmitInteractionSide2Device
3344
+ > = z.object({
3345
+ type: z.optional(z.string()),
3346
+ model: z.optional(z.string()),
3347
+ hasContactlessReader: z.optional(z.boolean()),
3348
+ hasMagneticStripeReader: z.optional(z.boolean()),
3349
+ hasCamera: z.optional(z.boolean()),
3350
+ serialNumber: z.optional(z.string()),
3351
+ manufacturer: z.optional(z.string()),
3352
+ });
3353
+
3354
+ export function submitInteractionSide2DeviceToJSON(
3355
+ submitInteractionSide2Device: SubmitInteractionSide2Device,
3356
+ ): string {
3357
+ return JSON.stringify(
3358
+ SubmitInteractionSide2Device$outboundSchema.parse(
3359
+ submitInteractionSide2Device,
3360
+ ),
3361
+ );
3362
+ }
3363
+
1972
3364
  /** @internal */
1973
3365
  export const SubmitInteractionName$outboundSchema: z.ZodMiniEnum<
1974
3366
  typeof SubmitInteractionName
@@ -2688,6 +4080,7 @@ export type SubmitInteractionDocumentAlias$Outbound = {
2688
4080
  middleNames?: Array<string> | undefined;
2689
4081
  lastNames?: Array<string> | undefined;
2690
4082
  lastNamesAtBirth?: Array<string> | undefined;
4083
+ fullName?: string | undefined;
2691
4084
  };
2692
4085
 
2693
4086
  /** @internal */
@@ -2700,6 +4093,7 @@ export const SubmitInteractionDocumentAlias$outboundSchema: z.ZodMiniType<
2700
4093
  middleNames: z.optional(z.array(z.string())),
2701
4094
  lastNames: z.optional(z.array(z.string())),
2702
4095
  lastNamesAtBirth: z.optional(z.array(z.string())),
4096
+ fullName: z.optional(z.string()),
2703
4097
  });
2704
4098
 
2705
4099
  export function submitInteractionDocumentAliasToJSON(
@@ -2902,8 +4296,8 @@ export type SubmitInteractionDocumentPreviousAddress$Outbound = {
2902
4296
  location?:
2903
4297
  | SubmitInteractionDocumentPreviousAddressLocation$Outbound
2904
4298
  | undefined;
2905
- fromDate: string;
2906
- toDate: string;
4299
+ fromDate?: string | undefined;
4300
+ toDate?: string | undefined;
2907
4301
  };
2908
4302
 
2909
4303
  /** @internal */
@@ -2934,8 +4328,8 @@ export const SubmitInteractionDocumentPreviousAddress$outboundSchema:
2934
4328
  SubmitInteractionDocumentPreviousAddressLocation$outboundSchema
2935
4329
  ),
2936
4330
  ),
2937
- fromDate: z.string(),
2938
- toDate: z.string(),
4331
+ fromDate: z.optional(z.string()),
4332
+ toDate: z.optional(z.string()),
2939
4333
  });
2940
4334
 
2941
4335
  export function submitInteractionDocumentPreviousAddressToJSON(
@@ -3167,6 +4561,7 @@ export type SubmitInteractionDocumentSubject$Outbound = {
3167
4561
  emails?: Array<SubmitInteractionDocumentEmail$Outbound> | undefined;
3168
4562
  socials?: Array<SubmitInteractionDocumentSocial$Outbound> | undefined;
3169
4563
  mothersMaidenName?: string | undefined;
4564
+ nationality?: string | undefined;
3170
4565
  };
3171
4566
 
3172
4567
  /** @internal */
@@ -3213,6 +4608,7 @@ export const SubmitInteractionDocumentSubject$outboundSchema: z.ZodMiniType<
3213
4608
  z.array(z.lazy(() => SubmitInteractionDocumentSocial$outboundSchema)),
3214
4609
  ),
3215
4610
  mothersMaidenName: z.optional(z.string()),
4611
+ nationality: z.optional(z.string()),
3216
4612
  });
3217
4613
 
3218
4614
  export function submitInteractionDocumentSubjectToJSON(
@@ -3228,7 +4624,7 @@ export function submitInteractionDocumentSubjectToJSON(
3228
4624
  /** @internal */
3229
4625
  export type SubmitInteractionDocument$Outbound = {
3230
4626
  oneDBarcode?: string | undefined;
3231
- address?: SubmitInteractionAddress$Outbound | undefined;
4627
+ address?: SubmitInteractionDocumentAddress$Outbound | undefined;
3232
4628
  applicationDate?: string | undefined;
3233
4629
  applicationNumber?: string | undefined;
3234
4630
  dateOfBirth?: string | undefined;
@@ -3300,13 +4696,15 @@ export type SubmitInteractionDocument$Outbound = {
3300
4696
  cardNumber?: string | undefined;
3301
4697
  issuerCountryCode?: string | undefined;
3302
4698
  id?: string | undefined;
3303
- type?: string | undefined;
4699
+ type: string;
3304
4700
  category?: string | undefined;
3305
4701
  subtype?: string | undefined;
3306
4702
  format?: string | undefined;
3307
4703
  device?: SubmitInteractionDocumentDevice$Outbound | undefined;
3308
4704
  side1Image?: string | undefined;
3309
4705
  side2Image?: string | undefined;
4706
+ side1Device?: SubmitInteractionSide1Device$Outbound | undefined;
4707
+ side2Device?: SubmitInteractionSide2Device$Outbound | undefined;
3310
4708
  chip?: SubmitInteractionChip$Outbound | undefined;
3311
4709
  classification?: SubmitInteractionClassification$Outbound | undefined;
3312
4710
  extraction?: SubmitInteractionExtraction$Outbound | undefined;
@@ -3314,8 +4712,27 @@ export type SubmitInteractionDocument$Outbound = {
3314
4712
  subType?: string | undefined;
3315
4713
  number?: string | undefined;
3316
4714
  expiryDate?: string | undefined;
4715
+ cardType?: string | undefined;
4716
+ expiryMonth?: string | undefined;
4717
+ cardColour?: string | undefined;
4718
+ cardStatus?: string | undefined;
3317
4719
  subject?: SubmitInteractionDocumentSubject$Outbound | undefined;
3318
4720
  country?: string | undefined;
4721
+ certificateFormat?: string | undefined;
4722
+ registrationNumber?: string | undefined;
4723
+ registrationDate?: string | undefined;
4724
+ registrationYear?: string | undefined;
4725
+ partyRole?: string | undefined;
4726
+ dateOfEvent?: string | undefined;
4727
+ acquisitionDate?: string | undefined;
4728
+ previousFirstName?: string | undefined;
4729
+ previousMiddleName?: string | undefined;
4730
+ previousSurname?: string | undefined;
4731
+ individualReferenceNumber?: string | undefined;
4732
+ nameLine1?: string | undefined;
4733
+ nameLine2?: string | undefined;
4734
+ nameLine3?: string | undefined;
4735
+ nameLine4?: string | undefined;
3319
4736
  };
3320
4737
 
3321
4738
  /** @internal */
@@ -3324,7 +4741,9 @@ export const SubmitInteractionDocument$outboundSchema: z.ZodMiniType<
3324
4741
  SubmitInteractionDocument
3325
4742
  > = z.object({
3326
4743
  oneDBarcode: z.optional(z.string()),
3327
- address: z.optional(z.lazy(() => SubmitInteractionAddress$outboundSchema)),
4744
+ address: z.optional(
4745
+ z.lazy(() => SubmitInteractionDocumentAddress$outboundSchema),
4746
+ ),
3328
4747
  applicationDate: z.optional(z.string()),
3329
4748
  applicationNumber: z.optional(z.string()),
3330
4749
  dateOfBirth: z.optional(z.string()),
@@ -3396,7 +4815,7 @@ export const SubmitInteractionDocument$outboundSchema: z.ZodMiniType<
3396
4815
  cardNumber: z.optional(z.string()),
3397
4816
  issuerCountryCode: z.optional(z.string()),
3398
4817
  id: z.optional(z.string()),
3399
- type: z.optional(z.string()),
4818
+ type: z.string(),
3400
4819
  category: z.optional(z.string()),
3401
4820
  subtype: z.optional(z.string()),
3402
4821
  format: z.optional(z.string()),
@@ -3405,6 +4824,12 @@ export const SubmitInteractionDocument$outboundSchema: z.ZodMiniType<
3405
4824
  ),
3406
4825
  side1Image: z.optional(z.string()),
3407
4826
  side2Image: z.optional(z.string()),
4827
+ side1Device: z.optional(
4828
+ z.lazy(() => SubmitInteractionSide1Device$outboundSchema),
4829
+ ),
4830
+ side2Device: z.optional(
4831
+ z.lazy(() => SubmitInteractionSide2Device$outboundSchema),
4832
+ ),
3408
4833
  chip: z.optional(z.lazy(() => SubmitInteractionChip$outboundSchema)),
3409
4834
  classification: z.optional(
3410
4835
  z.lazy(() => SubmitInteractionClassification$outboundSchema),
@@ -3418,10 +4843,29 @@ export const SubmitInteractionDocument$outboundSchema: z.ZodMiniType<
3418
4843
  subType: z.optional(z.string()),
3419
4844
  number: z.optional(z.string()),
3420
4845
  expiryDate: z.optional(z.string()),
4846
+ cardType: z.optional(z.string()),
4847
+ expiryMonth: z.optional(z.string()),
4848
+ cardColour: z.optional(z.string()),
4849
+ cardStatus: z.optional(z.string()),
3421
4850
  subject: z.optional(
3422
4851
  z.lazy(() => SubmitInteractionDocumentSubject$outboundSchema),
3423
4852
  ),
3424
4853
  country: z.optional(z.string()),
4854
+ certificateFormat: z.optional(z.string()),
4855
+ registrationNumber: z.optional(z.string()),
4856
+ registrationDate: z.optional(z.string()),
4857
+ registrationYear: z.optional(z.string()),
4858
+ partyRole: z.optional(z.string()),
4859
+ dateOfEvent: z.optional(z.string()),
4860
+ acquisitionDate: z.optional(z.string()),
4861
+ previousFirstName: z.optional(z.string()),
4862
+ previousMiddleName: z.optional(z.string()),
4863
+ previousSurname: z.optional(z.string()),
4864
+ individualReferenceNumber: z.optional(z.string()),
4865
+ nameLine1: z.optional(z.string()),
4866
+ nameLine2: z.optional(z.string()),
4867
+ nameLine3: z.optional(z.string()),
4868
+ nameLine4: z.optional(z.string()),
3425
4869
  });
3426
4870
 
3427
4871
  export function submitInteractionDocumentToJSON(
@@ -3432,6 +4876,104 @@ export function submitInteractionDocumentToJSON(
3432
4876
  );
3433
4877
  }
3434
4878
 
4879
+ /** @internal */
4880
+ export const SubmitInteractionTypeOrphanedStoredFace$outboundSchema:
4881
+ z.ZodMiniEnum<typeof SubmitInteractionTypeOrphanedStoredFace> = z.enum(
4882
+ SubmitInteractionTypeOrphanedStoredFace,
4883
+ );
4884
+
4885
+ /** @internal */
4886
+ export type SubmitInteractionBiometricOrphanedStoredFace$Outbound = {
4887
+ id?: string | undefined;
4888
+ type: string;
4889
+ templateReference: string;
4890
+ collectionReference?: string | undefined;
4891
+ };
4892
+
4893
+ /** @internal */
4894
+ export const SubmitInteractionBiometricOrphanedStoredFace$outboundSchema:
4895
+ z.ZodMiniType<
4896
+ SubmitInteractionBiometricOrphanedStoredFace$Outbound,
4897
+ SubmitInteractionBiometricOrphanedStoredFace
4898
+ > = z.object({
4899
+ id: z.optional(z.string()),
4900
+ type: SubmitInteractionTypeOrphanedStoredFace$outboundSchema,
4901
+ templateReference: z.string(),
4902
+ collectionReference: z.optional(z.string()),
4903
+ });
4904
+
4905
+ export function submitInteractionBiometricOrphanedStoredFaceToJSON(
4906
+ submitInteractionBiometricOrphanedStoredFace:
4907
+ SubmitInteractionBiometricOrphanedStoredFace,
4908
+ ): string {
4909
+ return JSON.stringify(
4910
+ SubmitInteractionBiometricOrphanedStoredFace$outboundSchema.parse(
4911
+ submitInteractionBiometricOrphanedStoredFace,
4912
+ ),
4913
+ );
4914
+ }
4915
+
4916
+ /** @internal */
4917
+ export const SubmitInteractionTypeStoredFace$outboundSchema: z.ZodMiniEnum<
4918
+ typeof SubmitInteractionTypeStoredFace
4919
+ > = z.enum(SubmitInteractionTypeStoredFace);
4920
+
4921
+ /** @internal */
4922
+ export type SubmitInteractionBiometricStoredFace$Outbound = {
4923
+ id?: string | undefined;
4924
+ type: string;
4925
+ templateReference: string;
4926
+ collectionReference?: string | undefined;
4927
+ };
4928
+
4929
+ /** @internal */
4930
+ export const SubmitInteractionBiometricStoredFace$outboundSchema: z.ZodMiniType<
4931
+ SubmitInteractionBiometricStoredFace$Outbound,
4932
+ SubmitInteractionBiometricStoredFace
4933
+ > = z.object({
4934
+ id: z.optional(z.string()),
4935
+ type: SubmitInteractionTypeStoredFace$outboundSchema,
4936
+ templateReference: z.string(),
4937
+ collectionReference: z.optional(z.string()),
4938
+ });
4939
+
4940
+ export function submitInteractionBiometricStoredFaceToJSON(
4941
+ submitInteractionBiometricStoredFace: SubmitInteractionBiometricStoredFace,
4942
+ ): string {
4943
+ return JSON.stringify(
4944
+ SubmitInteractionBiometricStoredFace$outboundSchema.parse(
4945
+ submitInteractionBiometricStoredFace,
4946
+ ),
4947
+ );
4948
+ }
4949
+
4950
+ /** @internal */
4951
+ export type SubmitInteractionBiometric5$Outbound = {
4952
+ id?: string | undefined;
4953
+ type?: string | undefined;
4954
+ anchorImage: string;
4955
+ };
4956
+
4957
+ /** @internal */
4958
+ export const SubmitInteractionBiometric5$outboundSchema: z.ZodMiniType<
4959
+ SubmitInteractionBiometric5$Outbound,
4960
+ SubmitInteractionBiometric5
4961
+ > = z.object({
4962
+ id: z.optional(z.string()),
4963
+ type: z.optional(z.string()),
4964
+ anchorImage: z.string(),
4965
+ });
4966
+
4967
+ export function submitInteractionBiometric5ToJSON(
4968
+ submitInteractionBiometric5: SubmitInteractionBiometric5,
4969
+ ): string {
4970
+ return JSON.stringify(
4971
+ SubmitInteractionBiometric5$outboundSchema.parse(
4972
+ submitInteractionBiometric5,
4973
+ ),
4974
+ );
4975
+ }
4976
+
3435
4977
  /** @internal */
3436
4978
  export type SubmitInteractionBiometric4$Outbound = {
3437
4979
  id?: string | undefined;
@@ -3550,8 +5092,11 @@ export function submitInteractionBiometric1ToJSON(
3550
5092
  export type SubmitInteractionBiometricUnion$Outbound =
3551
5093
  | SubmitInteractionBiometric1$Outbound
3552
5094
  | SubmitInteractionBiometric2$Outbound
5095
+ | SubmitInteractionBiometricStoredFace$Outbound
5096
+ | SubmitInteractionBiometricOrphanedStoredFace$Outbound
3553
5097
  | SubmitInteractionBiometric3$Outbound
3554
- | SubmitInteractionBiometric4$Outbound;
5098
+ | SubmitInteractionBiometric4$Outbound
5099
+ | SubmitInteractionBiometric5$Outbound;
3555
5100
 
3556
5101
  /** @internal */
3557
5102
  export const SubmitInteractionBiometricUnion$outboundSchema: z.ZodMiniType<
@@ -3560,8 +5105,11 @@ export const SubmitInteractionBiometricUnion$outboundSchema: z.ZodMiniType<
3560
5105
  > = smartUnion([
3561
5106
  z.lazy(() => SubmitInteractionBiometric1$outboundSchema),
3562
5107
  z.lazy(() => SubmitInteractionBiometric2$outboundSchema),
5108
+ z.lazy(() => SubmitInteractionBiometricStoredFace$outboundSchema),
5109
+ z.lazy(() => SubmitInteractionBiometricOrphanedStoredFace$outboundSchema),
3563
5110
  z.lazy(() => SubmitInteractionBiometric3$outboundSchema),
3564
5111
  z.lazy(() => SubmitInteractionBiometric4$outboundSchema),
5112
+ z.lazy(() => SubmitInteractionBiometric5$outboundSchema),
3565
5113
  ]);
3566
5114
 
3567
5115
  export function submitInteractionBiometricUnionToJSON(
@@ -3577,8 +5125,8 @@ export function submitInteractionBiometricUnionToJSON(
3577
5125
  /** @internal */
3578
5126
  export type SubmitInteractionUser$Outbound = {
3579
5127
  id: string;
3580
- email: string;
3581
- domain: string;
5128
+ email?: string | undefined;
5129
+ domain?: string | undefined;
3582
5130
  };
3583
5131
 
3584
5132
  /** @internal */
@@ -3587,8 +5135,8 @@ export const SubmitInteractionUser$outboundSchema: z.ZodMiniType<
3587
5135
  SubmitInteractionUser
3588
5136
  > = z.object({
3589
5137
  id: z.string(),
3590
- email: z.string(),
3591
- domain: z.string(),
5138
+ email: z.optional(z.string()),
5139
+ domain: z.optional(z.string()),
3592
5140
  });
3593
5141
 
3594
5142
  export function submitInteractionUserToJSON(
@@ -3780,6 +5328,9 @@ export function submitInteractionSessionAuthToJSON(
3780
5328
 
3781
5329
  /** @internal */
3782
5330
  export type SubmitInteractionSession$Outbound = {
5331
+ id?: string | undefined;
5332
+ type?: string | undefined;
5333
+ provider?: string | undefined;
3783
5334
  user?: SubmitInteractionUser$Outbound | undefined;
3784
5335
  client?: SubmitInteractionClient$Outbound | undefined;
3785
5336
  device?: SubmitInteractionSessionDevice$Outbound | undefined;
@@ -3794,6 +5345,9 @@ export const SubmitInteractionSession$outboundSchema: z.ZodMiniType<
3794
5345
  SubmitInteractionSession$Outbound,
3795
5346
  SubmitInteractionSession
3796
5347
  > = z.object({
5348
+ id: z.optional(z.string()),
5349
+ type: z.optional(z.string()),
5350
+ provider: z.optional(z.string()),
3797
5351
  user: z.optional(z.lazy(() => SubmitInteractionUser$outboundSchema)),
3798
5352
  client: z.optional(z.lazy(() => SubmitInteractionClient$outboundSchema)),
3799
5353
  device: z.optional(
@@ -3868,7 +5422,7 @@ export function submitInteractionConsentToJSON(
3868
5422
  /** @internal */
3869
5423
  export type SubmitInteractionAccount$Outbound = {
3870
5424
  type: string;
3871
- accountNumber: string;
5425
+ accountNumber?: string | undefined;
3872
5426
  sortCode?: string | undefined;
3873
5427
  routingNumber?: string | undefined;
3874
5428
  iban?: string | undefined;
@@ -3885,7 +5439,7 @@ export const SubmitInteractionAccount$outboundSchema: z.ZodMiniType<
3885
5439
  SubmitInteractionAccount
3886
5440
  > = z.object({
3887
5441
  type: z.string(),
3888
- accountNumber: z.string(),
5442
+ accountNumber: z.optional(z.string()),
3889
5443
  sortCode: z.optional(z.string()),
3890
5444
  routingNumber: z.optional(z.string()),
3891
5445
  iban: z.optional(z.string()),
@@ -3904,21 +5458,162 @@ export function submitInteractionAccountToJSON(
3904
5458
  );
3905
5459
  }
3906
5460
 
5461
+ /** @internal */
5462
+ export type SubmitInteractionChoice$Outbound = {
5463
+ label: string;
5464
+ text: string;
5465
+ };
5466
+
5467
+ /** @internal */
5468
+ export const SubmitInteractionChoice$outboundSchema: z.ZodMiniType<
5469
+ SubmitInteractionChoice$Outbound,
5470
+ SubmitInteractionChoice
5471
+ > = z.object({
5472
+ label: z.string(),
5473
+ text: z.string(),
5474
+ });
5475
+
5476
+ export function submitInteractionChoiceToJSON(
5477
+ submitInteractionChoice: SubmitInteractionChoice,
5478
+ ): string {
5479
+ return JSON.stringify(
5480
+ SubmitInteractionChoice$outboundSchema.parse(submitInteractionChoice),
5481
+ );
5482
+ }
5483
+
5484
+ /** @internal */
5485
+ export type SubmitInteractionQuestion$Outbound = {
5486
+ id: number;
5487
+ questionText: string;
5488
+ helpText?: string | undefined;
5489
+ choices: Array<SubmitInteractionChoice$Outbound>;
5490
+ };
5491
+
5492
+ /** @internal */
5493
+ export const SubmitInteractionQuestion$outboundSchema: z.ZodMiniType<
5494
+ SubmitInteractionQuestion$Outbound,
5495
+ SubmitInteractionQuestion
5496
+ > = z.object({
5497
+ id: z.int(),
5498
+ questionText: z.string(),
5499
+ helpText: z.optional(z.string()),
5500
+ choices: z.array(z.lazy(() => SubmitInteractionChoice$outboundSchema)),
5501
+ });
5502
+
5503
+ export function submitInteractionQuestionToJSON(
5504
+ submitInteractionQuestion: SubmitInteractionQuestion,
5505
+ ): string {
5506
+ return JSON.stringify(
5507
+ SubmitInteractionQuestion$outboundSchema.parse(submitInteractionQuestion),
5508
+ );
5509
+ }
5510
+
5511
+ /** @internal */
5512
+ export type SubmitInteractionAnswer$Outbound = {
5513
+ id: number;
5514
+ choices: Array<string>;
5515
+ };
5516
+
5517
+ /** @internal */
5518
+ export const SubmitInteractionAnswer$outboundSchema: z.ZodMiniType<
5519
+ SubmitInteractionAnswer$Outbound,
5520
+ SubmitInteractionAnswer
5521
+ > = z.object({
5522
+ id: z.int(),
5523
+ choices: z.array(z.string()),
5524
+ });
5525
+
5526
+ export function submitInteractionAnswerToJSON(
5527
+ submitInteractionAnswer: SubmitInteractionAnswer,
5528
+ ): string {
5529
+ return JSON.stringify(
5530
+ SubmitInteractionAnswer$outboundSchema.parse(submitInteractionAnswer),
5531
+ );
5532
+ }
5533
+
5534
+ /** @internal */
5535
+ export type SubmitInteractionKba$Outbound = {
5536
+ questions: Array<SubmitInteractionQuestion$Outbound>;
5537
+ answers: Array<SubmitInteractionAnswer$Outbound>;
5538
+ };
5539
+
5540
+ /** @internal */
5541
+ export const SubmitInteractionKba$outboundSchema: z.ZodMiniType<
5542
+ SubmitInteractionKba$Outbound,
5543
+ SubmitInteractionKba
5544
+ > = z.object({
5545
+ questions: z.array(z.lazy(() => SubmitInteractionQuestion$outboundSchema)),
5546
+ answers: z.array(z.lazy(() => SubmitInteractionAnswer$outboundSchema)),
5547
+ });
5548
+
5549
+ export function submitInteractionKbaToJSON(
5550
+ submitInteractionKba: SubmitInteractionKba,
5551
+ ): string {
5552
+ return JSON.stringify(
5553
+ SubmitInteractionKba$outboundSchema.parse(submitInteractionKba),
5554
+ );
5555
+ }
5556
+
5557
+ /** @internal */
5558
+ export const SubmitInteractionOffered$outboundSchema: z.ZodMiniEnum<
5559
+ typeof SubmitInteractionOffered
5560
+ > = z.enum(SubmitInteractionOffered);
5561
+
5562
+ /** @internal */
5563
+ export const SubmitInteractionSelected$outboundSchema: z.ZodMiniEnum<
5564
+ typeof SubmitInteractionSelected
5565
+ > = z.enum(SubmitInteractionSelected);
5566
+
5567
+ /** @internal */
5568
+ export type SubmitInteractionDocumentTypeSelection$Outbound = {
5569
+ offered?: Array<string> | undefined;
5570
+ selected?: string | undefined;
5571
+ };
5572
+
5573
+ /** @internal */
5574
+ export const SubmitInteractionDocumentTypeSelection$outboundSchema:
5575
+ z.ZodMiniType<
5576
+ SubmitInteractionDocumentTypeSelection$Outbound,
5577
+ SubmitInteractionDocumentTypeSelection
5578
+ > = z.object({
5579
+ offered: z.optional(z.array(SubmitInteractionOffered$outboundSchema)),
5580
+ selected: z.optional(SubmitInteractionSelected$outboundSchema),
5581
+ });
5582
+
5583
+ export function submitInteractionDocumentTypeSelectionToJSON(
5584
+ submitInteractionDocumentTypeSelection:
5585
+ SubmitInteractionDocumentTypeSelection,
5586
+ ): string {
5587
+ return JSON.stringify(
5588
+ SubmitInteractionDocumentTypeSelection$outboundSchema.parse(
5589
+ submitInteractionDocumentTypeSelection,
5590
+ ),
5591
+ );
5592
+ }
5593
+
3907
5594
  /** @internal */
3908
5595
  export type SubmitInteractionSubject$Outbound = {
3909
5596
  identity?: SubmitInteractionIdentity$Outbound | undefined;
5597
+ entities?: Array<SubmitInteractionEntity$Outbound> | undefined;
3910
5598
  documents?: Array<SubmitInteractionDocument$Outbound> | undefined;
3911
5599
  biometrics?:
3912
5600
  | Array<
3913
5601
  | SubmitInteractionBiometric1$Outbound
3914
5602
  | SubmitInteractionBiometric2$Outbound
5603
+ | SubmitInteractionBiometricStoredFace$Outbound
5604
+ | SubmitInteractionBiometricOrphanedStoredFace$Outbound
3915
5605
  | SubmitInteractionBiometric3$Outbound
3916
5606
  | SubmitInteractionBiometric4$Outbound
5607
+ | SubmitInteractionBiometric5$Outbound
3917
5608
  >
3918
5609
  | undefined;
3919
5610
  sessions?: Array<SubmitInteractionSession$Outbound> | undefined;
3920
5611
  consent?: Array<SubmitInteractionConsent$Outbound> | undefined;
3921
5612
  accounts?: Array<SubmitInteractionAccount$Outbound> | undefined;
5613
+ kba?: SubmitInteractionKba$Outbound | undefined;
5614
+ documentTypeSelection?:
5615
+ | SubmitInteractionDocumentTypeSelection$Outbound
5616
+ | undefined;
3922
5617
  uid?: string | undefined;
3923
5618
  };
3924
5619
 
@@ -3928,6 +5623,9 @@ export const SubmitInteractionSubject$outboundSchema: z.ZodMiniType<
3928
5623
  SubmitInteractionSubject
3929
5624
  > = z.object({
3930
5625
  identity: z.optional(z.lazy(() => SubmitInteractionIdentity$outboundSchema)),
5626
+ entities: z.optional(
5627
+ z.array(z.lazy(() => SubmitInteractionEntity$outboundSchema)),
5628
+ ),
3931
5629
  documents: z.optional(
3932
5630
  z.array(z.lazy(() => SubmitInteractionDocument$outboundSchema)),
3933
5631
  ),
@@ -3937,8 +5635,13 @@ export const SubmitInteractionSubject$outboundSchema: z.ZodMiniType<
3937
5635
  z.lazy(() =>
3938
5636
  SubmitInteractionBiometric2$outboundSchema
3939
5637
  ),
3940
- z.lazy(() => SubmitInteractionBiometric3$outboundSchema),
5638
+ z.lazy(() => SubmitInteractionBiometricStoredFace$outboundSchema),
5639
+ z.lazy(() => SubmitInteractionBiometricOrphanedStoredFace$outboundSchema),
5640
+ z.lazy(() =>
5641
+ SubmitInteractionBiometric3$outboundSchema
5642
+ ),
3941
5643
  z.lazy(() => SubmitInteractionBiometric4$outboundSchema),
5644
+ z.lazy(() => SubmitInteractionBiometric5$outboundSchema),
3942
5645
  ])),
3943
5646
  ),
3944
5647
  sessions: z.optional(
@@ -3950,6 +5653,10 @@ export const SubmitInteractionSubject$outboundSchema: z.ZodMiniType<
3950
5653
  accounts: z.optional(
3951
5654
  z.array(z.lazy(() => SubmitInteractionAccount$outboundSchema)),
3952
5655
  ),
5656
+ kba: z.optional(z.lazy(() => SubmitInteractionKba$outboundSchema)),
5657
+ documentTypeSelection: z.optional(
5658
+ z.lazy(() => SubmitInteractionDocumentTypeSelection$outboundSchema),
5659
+ ),
3953
5660
  uid: z.optional(z.string()),
3954
5661
  });
3955
5662
 
@@ -3961,9 +5668,46 @@ export function submitInteractionSubjectToJSON(
3961
5668
  );
3962
5669
  }
3963
5670
 
5671
+ /** @internal */
5672
+ export type ManualReview$Outbound = {
5673
+ decision: number;
5674
+ notes?: string | undefined;
5675
+ };
5676
+
5677
+ /** @internal */
5678
+ export const ManualReview$outboundSchema: z.ZodMiniType<
5679
+ ManualReview$Outbound,
5680
+ ManualReview
5681
+ > = z.object({
5682
+ decision: z.int(),
5683
+ notes: z.optional(z.string()),
5684
+ });
5685
+
5686
+ export function manualReviewToJSON(manualReview: ManualReview): string {
5687
+ return JSON.stringify(ManualReview$outboundSchema.parse(manualReview));
5688
+ }
5689
+
5690
+ /** @internal */
5691
+ export type Reviewer$Outbound = {
5692
+ manualReview?: ManualReview$Outbound | undefined;
5693
+ };
5694
+
5695
+ /** @internal */
5696
+ export const Reviewer$outboundSchema: z.ZodMiniType<
5697
+ Reviewer$Outbound,
5698
+ Reviewer
5699
+ > = z.object({
5700
+ manualReview: z.optional(z.lazy(() => ManualReview$outboundSchema)),
5701
+ });
5702
+
5703
+ export function reviewerToJSON(reviewer: Reviewer): string {
5704
+ return JSON.stringify(Reviewer$outboundSchema.parse(reviewer));
5705
+ }
5706
+
3964
5707
  /** @internal */
3965
5708
  export type SubmitInteractionContext$Outbound = {
3966
5709
  subject: SubmitInteractionSubject$Outbound;
5710
+ reviewers?: Array<Reviewer$Outbound> | undefined;
3967
5711
  };
3968
5712
 
3969
5713
  /** @internal */
@@ -3972,6 +5716,7 @@ export const SubmitInteractionContext$outboundSchema: z.ZodMiniType<
3972
5716
  SubmitInteractionContext
3973
5717
  > = z.object({
3974
5718
  subject: z.lazy(() => SubmitInteractionSubject$outboundSchema),
5719
+ reviewers: z.optional(z.array(z.lazy(() => Reviewer$outboundSchema))),
3975
5720
  });
3976
5721
 
3977
5722
  export function submitInteractionContextToJSON(
@@ -3988,18 +5733,22 @@ export type SubmitInteractionRequest$Outbound = {
3988
5733
  interactionId: string;
3989
5734
  participants?: Array<Participant$Outbound> | undefined;
3990
5735
  context?: SubmitInteractionContext$Outbound | undefined;
5736
+ [additionalProperties: string]: unknown;
3991
5737
  };
3992
5738
 
3993
5739
  /** @internal */
3994
5740
  export const SubmitInteractionRequest$outboundSchema: z.ZodMiniType<
3995
5741
  SubmitInteractionRequest$Outbound,
3996
5742
  SubmitInteractionRequest
3997
- > = z.object({
3998
- instanceId: z.string(),
3999
- interactionId: z.string(),
4000
- participants: z.optional(z.array(z.lazy(() => Participant$outboundSchema))),
4001
- context: z.optional(z.lazy(() => SubmitInteractionContext$outboundSchema)),
4002
- });
5743
+ > = z.catchall(
5744
+ z.object({
5745
+ instanceId: z.string(),
5746
+ interactionId: z.string(),
5747
+ participants: z.optional(z.array(z.lazy(() => Participant$outboundSchema))),
5748
+ context: z.optional(z.lazy(() => SubmitInteractionContext$outboundSchema)),
5749
+ }),
5750
+ z.any(),
5751
+ );
4003
5752
 
4004
5753
  export function submitInteractionRequestToJSON(
4005
5754
  submitInteractionRequest: SubmitInteractionRequest,
@@ -4008,57 +5757,3 @@ export function submitInteractionRequestToJSON(
4008
5757
  SubmitInteractionRequest$outboundSchema.parse(submitInteractionRequest),
4009
5758
  );
4010
5759
  }
4011
-
4012
- /** @internal */
4013
- export const SubmitInteractionError$inboundSchema: z.ZodMiniType<
4014
- SubmitInteractionError,
4015
- unknown
4016
- > = z.object({
4017
- status: types.literal("error"),
4018
- code: types.number(),
4019
- message: types.string(),
4020
- });
4021
-
4022
- export function submitInteractionErrorFromJSON(
4023
- jsonString: string,
4024
- ): SafeParseResult<SubmitInteractionError, SDKValidationError> {
4025
- return safeParse(
4026
- jsonString,
4027
- (x) => SubmitInteractionError$inboundSchema.parse(JSON.parse(x)),
4028
- `Failed to parse 'SubmitInteractionError' from JSON`,
4029
- );
4030
- }
4031
-
4032
- /** @internal */
4033
- export const Success$inboundSchema: z.ZodMiniType<Success, unknown> = z.object({
4034
- status: types.literal("success"),
4035
- });
4036
-
4037
- export function successFromJSON(
4038
- jsonString: string,
4039
- ): SafeParseResult<Success, SDKValidationError> {
4040
- return safeParse(
4041
- jsonString,
4042
- (x) => Success$inboundSchema.parse(JSON.parse(x)),
4043
- `Failed to parse 'Success' from JSON`,
4044
- );
4045
- }
4046
-
4047
- /** @internal */
4048
- export const SubmitInteractionResponse$inboundSchema: z.ZodMiniType<
4049
- SubmitInteractionResponse,
4050
- unknown
4051
- > = discriminatedUnion("status", {
4052
- success: z.lazy(() => Success$inboundSchema),
4053
- error: z.lazy(() => SubmitInteractionError$inboundSchema),
4054
- });
4055
-
4056
- export function submitInteractionResponseFromJSON(
4057
- jsonString: string,
4058
- ): SafeParseResult<SubmitInteractionResponse, SDKValidationError> {
4059
- return safeParse(
4060
- jsonString,
4061
- (x) => SubmitInteractionResponse$inboundSchema.parse(JSON.parse(x)),
4062
- `Failed to parse 'SubmitInteractionResponse' from JSON`,
4063
- );
4064
- }