@gbg/go-core 0.1.2 → 0.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (853) hide show
  1. package/FUNCTIONS.md +6 -4
  2. package/README.md +92 -61
  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 +9 -4
  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 +11 -8
  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 +9 -4
  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 +19 -7
  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 +15 -4
  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 +13 -7
  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 +9 -4
  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/sandbox-create-scenario.d.ts +21 -0
  64. package/dist/commonjs/funcs/sandbox-create-scenario.d.ts.map +1 -0
  65. package/dist/commonjs/funcs/sandbox-create-scenario.js +129 -0
  66. package/dist/commonjs/funcs/sandbox-create-scenario.js.map +1 -0
  67. package/dist/commonjs/funcs/sandbox-delete-scenario.d.ts +20 -0
  68. package/dist/commonjs/funcs/sandbox-delete-scenario.d.ts.map +1 -0
  69. package/dist/commonjs/funcs/sandbox-delete-scenario.js +131 -0
  70. package/dist/commonjs/funcs/sandbox-delete-scenario.js.map +1 -0
  71. package/dist/commonjs/funcs/sandbox-get-scenario.d.ts +21 -0
  72. package/dist/commonjs/funcs/sandbox-get-scenario.d.ts.map +1 -0
  73. package/dist/commonjs/funcs/sandbox-get-scenario.js +136 -0
  74. package/dist/commonjs/funcs/sandbox-get-scenario.js.map +1 -0
  75. package/dist/commonjs/funcs/sandbox-list-scenarios.d.ts +21 -0
  76. package/dist/commonjs/funcs/sandbox-list-scenarios.d.ts.map +1 -0
  77. package/dist/commonjs/funcs/sandbox-list-scenarios.js +132 -0
  78. package/dist/commonjs/funcs/sandbox-list-scenarios.js.map +1 -0
  79. package/dist/commonjs/funcs/sandbox-put-scenario.d.ts +21 -0
  80. package/dist/commonjs/funcs/sandbox-put-scenario.d.ts.map +1 -0
  81. package/dist/commonjs/funcs/sandbox-put-scenario.js +133 -0
  82. package/dist/commonjs/funcs/sandbox-put-scenario.js.map +1 -0
  83. package/dist/commonjs/funcs/tasks-get-schema.d.ts +8 -3
  84. package/dist/commonjs/funcs/tasks-get-schema.d.ts.map +1 -1
  85. package/dist/commonjs/funcs/tasks-get-schema.js +10 -4
  86. package/dist/commonjs/funcs/tasks-get-schema.js.map +1 -1
  87. package/dist/commonjs/funcs/tokens-generate.js +1 -1
  88. package/dist/commonjs/funcs/tokens-generate.js.map +1 -1
  89. package/dist/commonjs/lib/config.d.ts +5 -5
  90. package/dist/commonjs/lib/config.d.ts.map +1 -1
  91. package/dist/commonjs/lib/config.js +16 -7
  92. package/dist/commonjs/lib/config.js.map +1 -1
  93. package/dist/commonjs/models/create-sandbox-scenario-request.d.ts +29 -0
  94. package/dist/commonjs/models/create-sandbox-scenario-request.d.ts.map +1 -0
  95. package/dist/commonjs/models/create-sandbox-scenario-request.js +56 -0
  96. package/dist/commonjs/models/create-sandbox-scenario-request.js.map +1 -0
  97. package/dist/commonjs/models/delete-response.d.ts +19 -0
  98. package/dist/commonjs/models/delete-response.d.ts.map +1 -0
  99. package/dist/commonjs/models/delete-response.js +58 -0
  100. package/dist/commonjs/models/delete-response.js.map +1 -0
  101. package/dist/commonjs/models/device-connect-response.d.ts +23 -0
  102. package/dist/commonjs/models/device-connect-response.d.ts.map +1 -0
  103. package/dist/commonjs/models/device-connect-response.js +62 -0
  104. package/dist/commonjs/models/device-connect-response.js.map +1 -0
  105. package/dist/commonjs/models/device-refresh-response.d.ts +16 -0
  106. package/dist/commonjs/models/device-refresh-response.d.ts.map +1 -0
  107. package/dist/commonjs/models/device-refresh-response.js +57 -0
  108. package/dist/commonjs/models/device-refresh-response.js.map +1 -0
  109. package/dist/commonjs/models/device-start-response.d.ts +20 -0
  110. package/dist/commonjs/models/device-start-response.d.ts.map +1 -0
  111. package/dist/commonjs/models/device-start-response.js +59 -0
  112. package/dist/commonjs/models/device-start-response.js.map +1 -0
  113. package/dist/commonjs/models/device-validate-response.d.ts +14 -0
  114. package/dist/commonjs/models/device-validate-response.d.ts.map +1 -0
  115. package/dist/commonjs/models/device-validate-response.js +55 -0
  116. package/dist/commonjs/models/device-validate-response.js.map +1 -0
  117. package/dist/commonjs/models/errors/error-response.d.ts +19 -0
  118. package/dist/commonjs/models/errors/error-response.d.ts.map +1 -0
  119. package/dist/commonjs/models/errors/error-response.js +68 -0
  120. package/dist/commonjs/models/errors/error-response.js.map +1 -0
  121. package/dist/commonjs/models/errors/index.d.ts +1 -0
  122. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  123. package/dist/commonjs/models/errors/index.js +1 -0
  124. package/dist/commonjs/models/errors/index.js.map +1 -1
  125. package/dist/commonjs/models/gbg-error.d.ts +28 -0
  126. package/dist/commonjs/models/gbg-error.d.ts.map +1 -0
  127. package/dist/commonjs/models/gbg-error.js +69 -0
  128. package/dist/commonjs/models/gbg-error.js.map +1 -0
  129. package/dist/commonjs/models/handoff-token-response.d.ts +20 -0
  130. package/dist/commonjs/models/handoff-token-response.d.ts.map +1 -0
  131. package/dist/commonjs/models/handoff-token-response.js +60 -0
  132. package/dist/commonjs/models/handoff-token-response.js.map +1 -0
  133. package/dist/commonjs/models/index.d.ts +30 -0
  134. package/dist/commonjs/models/index.d.ts.map +1 -1
  135. package/dist/commonjs/models/index.js +30 -0
  136. package/dist/commonjs/models/index.js.map +1 -1
  137. package/dist/commonjs/models/interaction-fetch-response.d.ts +53 -0
  138. package/dist/commonjs/models/interaction-fetch-response.d.ts.map +1 -0
  139. package/dist/commonjs/models/interaction-fetch-response.js +92 -0
  140. package/dist/commonjs/models/interaction-fetch-response.js.map +1 -0
  141. package/dist/commonjs/models/interaction-submit-response.d.ts +17 -0
  142. package/dist/commonjs/models/interaction-submit-response.d.ts.map +1 -0
  143. package/dist/commonjs/models/interaction-submit-response.js +55 -0
  144. package/dist/commonjs/models/interaction-submit-response.js.map +1 -0
  145. package/dist/commonjs/models/journey-start-response.d.ts +27 -0
  146. package/dist/commonjs/models/journey-start-response.d.ts.map +1 -0
  147. package/dist/commonjs/models/journey-start-response.js +67 -0
  148. package/dist/commonjs/models/journey-start-response.js.map +1 -0
  149. package/dist/commonjs/models/loqate-retrieve-response.d.ts +12 -0
  150. package/dist/commonjs/models/loqate-retrieve-response.d.ts.map +1 -0
  151. package/dist/commonjs/models/loqate-retrieve-response.js +55 -0
  152. package/dist/commonjs/models/loqate-retrieve-response.js.map +1 -0
  153. package/dist/commonjs/models/loqate-search-response.d.ts +12 -0
  154. package/dist/commonjs/models/loqate-search-response.d.ts.map +1 -0
  155. package/dist/commonjs/models/loqate-search-response.js +55 -0
  156. package/dist/commonjs/models/loqate-search-response.js.map +1 -0
  157. package/dist/commonjs/models/operations/add-device.d.ts +8 -92
  158. package/dist/commonjs/models/operations/add-device.d.ts.map +1 -1
  159. package/dist/commonjs/models/operations/add-device.js +6 -76
  160. package/dist/commonjs/models/operations/add-device.js.map +1 -1
  161. package/dist/commonjs/models/operations/create-handoff-token.d.ts +22 -0
  162. package/dist/commonjs/models/operations/create-handoff-token.d.ts.map +1 -0
  163. package/dist/commonjs/models/operations/create-handoff-token.js +62 -0
  164. package/dist/commonjs/models/operations/create-handoff-token.js.map +1 -0
  165. package/dist/commonjs/models/operations/create-sandbox-scenario.d.ts +18 -0
  166. package/dist/commonjs/models/operations/create-sandbox-scenario.d.ts.map +1 -0
  167. package/dist/commonjs/models/operations/create-sandbox-scenario.js +51 -0
  168. package/dist/commonjs/models/operations/create-sandbox-scenario.js.map +1 -0
  169. package/dist/commonjs/models/operations/delete-instance.d.ts +1 -14
  170. package/dist/commonjs/models/operations/delete-instance.d.ts.map +1 -1
  171. package/dist/commonjs/models/operations/delete-instance.js +3 -13
  172. package/dist/commonjs/models/operations/delete-instance.js.map +1 -1
  173. package/dist/commonjs/models/operations/delete-sandbox-scenario.d.ts +20 -0
  174. package/dist/commonjs/models/operations/delete-sandbox-scenario.d.ts.map +1 -0
  175. package/dist/commonjs/models/operations/delete-sandbox-scenario.js +50 -0
  176. package/dist/commonjs/models/operations/delete-sandbox-scenario.js.map +1 -0
  177. package/dist/commonjs/models/operations/device-connect.d.ts +0 -59
  178. package/dist/commonjs/models/operations/device-connect.d.ts.map +1 -1
  179. package/dist/commonjs/models/operations/device-connect.js +1 -50
  180. package/dist/commonjs/models/operations/device-connect.js.map +1 -1
  181. package/dist/commonjs/models/operations/device-validate.d.ts +12 -0
  182. package/dist/commonjs/models/operations/device-validate.d.ts.map +1 -0
  183. package/dist/commonjs/models/operations/device-validate.js +54 -0
  184. package/dist/commonjs/models/operations/device-validate.js.map +1 -0
  185. package/dist/commonjs/models/operations/fetch-interaction.d.ts +34 -1621
  186. package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
  187. package/dist/commonjs/models/operations/fetch-interaction.js +22 -1334
  188. package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
  189. package/dist/commonjs/models/operations/get-journey-schemas.d.ts +16 -0
  190. package/dist/commonjs/models/operations/get-journey-schemas.d.ts.map +1 -0
  191. package/dist/commonjs/models/operations/get-journey-schemas.js +51 -0
  192. package/dist/commonjs/models/operations/get-journey-schemas.js.map +1 -0
  193. package/dist/commonjs/models/operations/get-journey-state.d.ts +16 -1383
  194. package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
  195. package/dist/commonjs/models/operations/get-journey-state.js +14 -1067
  196. package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
  197. package/dist/commonjs/models/operations/get-sandbox-scenario.d.ts +39 -0
  198. package/dist/commonjs/models/operations/get-sandbox-scenario.d.ts.map +1 -0
  199. package/dist/commonjs/models/operations/get-sandbox-scenario.js +60 -0
  200. package/dist/commonjs/models/operations/get-sandbox-scenario.js.map +1 -0
  201. package/dist/commonjs/models/operations/get-task-schema.d.ts +1 -17
  202. package/dist/commonjs/models/operations/get-task-schema.d.ts.map +1 -1
  203. package/dist/commonjs/models/operations/get-task-schema.js +1 -19
  204. package/dist/commonjs/models/operations/get-task-schema.js.map +1 -1
  205. package/dist/commonjs/models/operations/index.d.ts +12 -4
  206. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  207. package/dist/commonjs/models/operations/index.js +12 -4
  208. package/dist/commonjs/models/operations/index.js.map +1 -1
  209. package/dist/commonjs/models/operations/list-sandbox-scenarios.d.ts +34 -0
  210. package/dist/commonjs/models/operations/list-sandbox-scenarios.d.ts.map +1 -0
  211. package/dist/commonjs/models/operations/list-sandbox-scenarios.js +59 -0
  212. package/dist/commonjs/models/operations/list-sandbox-scenarios.js.map +1 -0
  213. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts +2 -2
  214. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  215. package/dist/commonjs/models/operations/post-as-token-oauth2.js +1 -1
  216. package/dist/commonjs/models/operations/post-as-token-oauth2.js.map +1 -1
  217. package/dist/commonjs/models/operations/put-sandbox-scenario.d.ts +23 -0
  218. package/dist/commonjs/models/operations/put-sandbox-scenario.d.ts.map +1 -0
  219. package/dist/commonjs/models/operations/put-sandbox-scenario.js +52 -0
  220. package/dist/commonjs/models/operations/put-sandbox-scenario.js.map +1 -0
  221. package/dist/commonjs/models/operations/retrieve-address.d.ts +29 -0
  222. package/dist/commonjs/models/operations/retrieve-address.d.ts.map +1 -0
  223. package/dist/commonjs/models/operations/retrieve-address.js +65 -0
  224. package/dist/commonjs/models/operations/retrieve-address.js.map +1 -0
  225. package/dist/commonjs/models/operations/search-addresses.d.ts +33 -0
  226. package/dist/commonjs/models/operations/search-addresses.d.ts.map +1 -0
  227. package/dist/commonjs/models/operations/search-addresses.js +67 -0
  228. package/dist/commonjs/models/operations/search-addresses.js.map +1 -0
  229. package/dist/commonjs/models/operations/start-journey.d.ts +1071 -108
  230. package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
  231. package/dist/commonjs/models/operations/start-journey.js +504 -62
  232. package/dist/commonjs/models/operations/start-journey.js.map +1 -1
  233. package/dist/commonjs/models/operations/submit-interaction.d.ts +989 -92
  234. package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
  235. package/dist/commonjs/models/operations/submit-interaction.js +464 -50
  236. package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
  237. package/dist/commonjs/models/operations/terminate-journey.d.ts +19 -0
  238. package/dist/commonjs/models/operations/terminate-journey.d.ts.map +1 -0
  239. package/dist/commonjs/models/operations/terminate-journey.js +50 -0
  240. package/dist/commonjs/models/operations/terminate-journey.js.map +1 -0
  241. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts +26 -0
  242. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts.map +1 -0
  243. package/dist/commonjs/models/operations/upload-interaction-asset.js +67 -0
  244. package/dist/commonjs/models/operations/upload-interaction-asset.js.map +1 -0
  245. package/dist/commonjs/models/sandbox-scenario-summary.d.ts +29 -0
  246. package/dist/commonjs/models/sandbox-scenario-summary.d.ts.map +1 -0
  247. package/dist/commonjs/models/sandbox-scenario-summary.js +63 -0
  248. package/dist/commonjs/models/sandbox-scenario-summary.js.map +1 -0
  249. package/dist/commonjs/models/sandbox-scenario-written.d.ts +19 -0
  250. package/dist/commonjs/models/sandbox-scenario-written.d.ts.map +1 -0
  251. package/dist/commonjs/models/sandbox-scenario-written.js +58 -0
  252. package/dist/commonjs/models/sandbox-scenario-written.js.map +1 -0
  253. package/dist/commonjs/models/sandbox-scenario.d.ts +31 -0
  254. package/dist/commonjs/models/sandbox-scenario.d.ts.map +1 -0
  255. package/dist/commonjs/models/sandbox-scenario.js +63 -0
  256. package/dist/commonjs/models/sandbox-scenario.js.map +1 -0
  257. package/dist/commonjs/models/schema-fetch-response.d.ts +22 -0
  258. package/dist/commonjs/models/schema-fetch-response.d.ts.map +1 -0
  259. package/dist/commonjs/models/schema-fetch-response.js +63 -0
  260. package/dist/commonjs/models/schema-fetch-response.js.map +1 -0
  261. package/dist/commonjs/models/slim-document.d.ts +57 -0
  262. package/dist/commonjs/models/slim-document.d.ts.map +1 -0
  263. package/dist/commonjs/models/slim-document.js +93 -0
  264. package/dist/commonjs/models/slim-document.js.map +1 -0
  265. package/dist/commonjs/models/slim-extraction.d.ts +74 -0
  266. package/dist/commonjs/models/slim-extraction.d.ts.map +1 -0
  267. package/dist/commonjs/models/slim-extraction.js +129 -0
  268. package/dist/commonjs/models/slim-extraction.js.map +1 -0
  269. package/dist/commonjs/models/slim-identity.d.ts +202 -0
  270. package/dist/commonjs/models/slim-identity.d.ts.map +1 -0
  271. package/dist/commonjs/models/slim-identity.js +143 -0
  272. package/dist/commonjs/models/slim-identity.js.map +1 -0
  273. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts +58 -0
  274. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts.map +1 -0
  275. package/dist/commonjs/models/slim-interaction-fetch-response.js +102 -0
  276. package/dist/commonjs/models/slim-interaction-fetch-response.js.map +1 -0
  277. package/dist/commonjs/models/slim-journey.d.ts +14 -0
  278. package/dist/commonjs/models/slim-journey.d.ts.map +1 -0
  279. package/dist/commonjs/models/slim-journey.js +56 -0
  280. package/dist/commonjs/models/slim-journey.js.map +1 -0
  281. package/dist/commonjs/models/slim-result.d.ts +46 -0
  282. package/dist/commonjs/models/slim-result.d.ts.map +1 -0
  283. package/dist/commonjs/models/slim-result.js +77 -0
  284. package/dist/commonjs/models/slim-result.js.map +1 -0
  285. package/dist/commonjs/models/slim-state-fetch-response.d.ts +26 -0
  286. package/dist/commonjs/models/slim-state-fetch-response.d.ts.map +1 -0
  287. package/dist/commonjs/models/slim-state-fetch-response.js +66 -0
  288. package/dist/commonjs/models/slim-state-fetch-response.js.map +1 -0
  289. package/dist/commonjs/models/slim-step.d.ts +22 -0
  290. package/dist/commonjs/models/slim-step.d.ts.map +1 -0
  291. package/dist/commonjs/models/slim-step.js +63 -0
  292. package/dist/commonjs/models/slim-step.js.map +1 -0
  293. package/dist/commonjs/models/slim-validation.d.ts +69 -0
  294. package/dist/commonjs/models/slim-validation.d.ts.map +1 -0
  295. package/dist/commonjs/models/slim-validation.js +122 -0
  296. package/dist/commonjs/models/slim-validation.js.map +1 -0
  297. package/dist/commonjs/models/slim-verified-data.d.ts +16 -0
  298. package/dist/commonjs/models/slim-verified-data.d.ts.map +1 -0
  299. package/dist/commonjs/models/slim-verified-data.js +54 -0
  300. package/dist/commonjs/models/slim-verified-data.js.map +1 -0
  301. package/dist/commonjs/models/state-fetch-response.d.ts +17 -0
  302. package/dist/commonjs/models/state-fetch-response.d.ts.map +1 -0
  303. package/dist/commonjs/models/state-fetch-response.js +54 -0
  304. package/dist/commonjs/models/state-fetch-response.js.map +1 -0
  305. package/dist/commonjs/models/terminate-response.d.ts +10 -0
  306. package/dist/commonjs/models/terminate-response.d.ts.map +1 -0
  307. package/dist/commonjs/models/{operations/health.js → terminate-response.js} +10 -10
  308. package/dist/commonjs/models/terminate-response.js.map +1 -0
  309. package/dist/commonjs/models/update-sandbox-scenario-request.d.ts +24 -0
  310. package/dist/commonjs/models/update-sandbox-scenario-request.d.ts.map +1 -0
  311. package/dist/commonjs/models/update-sandbox-scenario-request.js +55 -0
  312. package/dist/commonjs/models/update-sandbox-scenario-request.js.map +1 -0
  313. package/dist/commonjs/sdk/addresses.d.ts +20 -0
  314. package/dist/commonjs/sdk/addresses.d.ts.map +1 -0
  315. package/dist/commonjs/sdk/addresses.js +32 -0
  316. package/dist/commonjs/sdk/addresses.js.map +1 -0
  317. package/dist/commonjs/sdk/devices.d.ts +21 -6
  318. package/dist/commonjs/sdk/devices.d.ts.map +1 -1
  319. package/dist/commonjs/sdk/devices.js +26 -6
  320. package/dist/commonjs/sdk/devices.js.map +1 -1
  321. package/dist/commonjs/sdk/instances.d.ts +11 -3
  322. package/dist/commonjs/sdk/instances.d.ts.map +1 -1
  323. package/dist/commonjs/sdk/instances.js +12 -2
  324. package/dist/commonjs/sdk/instances.js.map +1 -1
  325. package/dist/commonjs/sdk/interactions.d.ts +14 -6
  326. package/dist/commonjs/sdk/interactions.d.ts.map +1 -1
  327. package/dist/commonjs/sdk/interactions.js +16 -6
  328. package/dist/commonjs/sdk/interactions.js.map +1 -1
  329. package/dist/commonjs/sdk/journeys.d.ts +45 -5
  330. package/dist/commonjs/sdk/journeys.d.ts.map +1 -1
  331. package/dist/commonjs/sdk/journeys.js +49 -4
  332. package/dist/commonjs/sdk/journeys.js.map +1 -1
  333. package/dist/commonjs/sdk/sandbox.d.ts +41 -0
  334. package/dist/commonjs/sdk/sandbox.d.ts.map +1 -0
  335. package/dist/commonjs/sdk/sandbox.js +62 -0
  336. package/dist/commonjs/sdk/sandbox.js.map +1 -0
  337. package/dist/commonjs/sdk/sdk.d.ts +14 -11
  338. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  339. package/dist/commonjs/sdk/sdk.js +17 -13
  340. package/dist/commonjs/sdk/sdk.js.map +1 -1
  341. package/dist/commonjs/sdk/tasks.d.ts +6 -23
  342. package/dist/commonjs/sdk/tasks.d.ts.map +1 -1
  343. package/dist/commonjs/sdk/tasks.js +3 -31
  344. package/dist/commonjs/sdk/tasks.js.map +1 -1
  345. package/dist/commonjs/types/smart-union.d.ts.map +1 -1
  346. package/dist/commonjs/types/smart-union.js +14 -10
  347. package/dist/commonjs/types/smart-union.js.map +1 -1
  348. package/dist/esm/funcs/addresses-retrieve.d.ts +19 -0
  349. package/dist/esm/funcs/addresses-retrieve.d.ts.map +1 -0
  350. package/dist/esm/funcs/{tasks-update.js → addresses-retrieve.js} +20 -9
  351. package/dist/esm/funcs/addresses-retrieve.js.map +1 -0
  352. package/dist/{commonjs/funcs/tasks-list-schema.d.ts → esm/funcs/addresses-search.d.ts} +6 -6
  353. package/dist/esm/funcs/addresses-search.d.ts.map +1 -0
  354. package/dist/esm/funcs/{tasks-list.js → addresses-search.js} +20 -9
  355. package/dist/esm/funcs/addresses-search.js.map +1 -0
  356. package/dist/esm/funcs/devices-add.d.ts +5 -3
  357. package/dist/esm/funcs/devices-add.d.ts.map +1 -1
  358. package/dist/esm/funcs/devices-add.js +9 -4
  359. package/dist/esm/funcs/devices-add.js.map +1 -1
  360. package/dist/esm/funcs/devices-connect.d.ts +5 -3
  361. package/dist/esm/funcs/devices-connect.d.ts.map +1 -1
  362. package/dist/esm/funcs/devices-connect.js +11 -8
  363. package/dist/esm/funcs/devices-connect.js.map +1 -1
  364. package/dist/{commonjs/funcs/tasks-update.d.ts → esm/funcs/devices-refresh.d.ts} +6 -5
  365. package/dist/esm/funcs/devices-refresh.d.ts.map +1 -0
  366. package/dist/esm/funcs/{health-get.js → devices-refresh.js} +15 -16
  367. package/dist/esm/funcs/devices-refresh.js.map +1 -0
  368. package/dist/{commonjs/funcs/tasks-list.d.ts → esm/funcs/devices-validate.d.ts} +6 -4
  369. package/dist/esm/funcs/devices-validate.d.ts.map +1 -0
  370. package/dist/esm/funcs/devices-validate.js +77 -0
  371. package/dist/esm/funcs/devices-validate.js.map +1 -0
  372. package/dist/esm/funcs/instances-delete.d.ts +5 -3
  373. package/dist/esm/funcs/instances-delete.d.ts.map +1 -1
  374. package/dist/esm/funcs/instances-delete.js +9 -4
  375. package/dist/esm/funcs/instances-delete.js.map +1 -1
  376. package/dist/esm/funcs/instances-handoff-token.d.ts +19 -0
  377. package/dist/esm/funcs/instances-handoff-token.d.ts.map +1 -0
  378. package/dist/esm/funcs/instances-handoff-token.js +94 -0
  379. package/dist/esm/funcs/instances-handoff-token.js.map +1 -0
  380. package/dist/esm/funcs/interactions-fetch.d.ts +4 -3
  381. package/dist/esm/funcs/interactions-fetch.d.ts.map +1 -1
  382. package/dist/esm/funcs/interactions-fetch.js +20 -8
  383. package/dist/esm/funcs/interactions-fetch.js.map +1 -1
  384. package/dist/esm/funcs/interactions-submit.d.ts +5 -3
  385. package/dist/esm/funcs/interactions-submit.d.ts.map +1 -1
  386. package/dist/esm/funcs/interactions-submit.js +15 -4
  387. package/dist/esm/funcs/interactions-submit.js.map +1 -1
  388. package/dist/esm/funcs/interactions-upload-asset.d.ts +18 -0
  389. package/dist/esm/funcs/interactions-upload-asset.d.ts.map +1 -0
  390. package/dist/esm/funcs/interactions-upload-asset.js +83 -0
  391. package/dist/esm/funcs/interactions-upload-asset.js.map +1 -0
  392. package/dist/esm/funcs/journeys-get-schemas.d.ts +46 -0
  393. package/dist/esm/funcs/journeys-get-schemas.d.ts.map +1 -0
  394. package/dist/esm/funcs/journeys-get-schemas.js +114 -0
  395. package/dist/esm/funcs/journeys-get-schemas.js.map +1 -0
  396. package/dist/esm/funcs/journeys-get-state.d.ts +4 -3
  397. package/dist/esm/funcs/journeys-get-state.d.ts.map +1 -1
  398. package/dist/esm/funcs/journeys-get-state.js +14 -8
  399. package/dist/esm/funcs/journeys-get-state.js.map +1 -1
  400. package/dist/esm/funcs/journeys-start.d.ts +5 -3
  401. package/dist/esm/funcs/journeys-start.d.ts.map +1 -1
  402. package/dist/esm/funcs/journeys-start.js +9 -4
  403. package/dist/esm/funcs/journeys-start.js.map +1 -1
  404. package/dist/esm/funcs/journeys-terminate.d.ts +21 -0
  405. package/dist/esm/funcs/journeys-terminate.d.ts.map +1 -0
  406. package/dist/esm/funcs/{tasks-list-schema.js → journeys-terminate.js} +13 -8
  407. package/dist/esm/funcs/journeys-terminate.js.map +1 -0
  408. package/dist/esm/funcs/sandbox-create-scenario.d.ts +21 -0
  409. package/dist/esm/funcs/sandbox-create-scenario.d.ts.map +1 -0
  410. package/dist/esm/funcs/sandbox-create-scenario.js +93 -0
  411. package/dist/esm/funcs/sandbox-create-scenario.js.map +1 -0
  412. package/dist/esm/funcs/sandbox-delete-scenario.d.ts +20 -0
  413. package/dist/esm/funcs/sandbox-delete-scenario.d.ts.map +1 -0
  414. package/dist/esm/funcs/sandbox-delete-scenario.js +95 -0
  415. package/dist/esm/funcs/sandbox-delete-scenario.js.map +1 -0
  416. package/dist/esm/funcs/sandbox-get-scenario.d.ts +21 -0
  417. package/dist/esm/funcs/sandbox-get-scenario.d.ts.map +1 -0
  418. package/dist/esm/funcs/sandbox-get-scenario.js +100 -0
  419. package/dist/esm/funcs/sandbox-get-scenario.js.map +1 -0
  420. package/dist/esm/funcs/sandbox-list-scenarios.d.ts +21 -0
  421. package/dist/esm/funcs/sandbox-list-scenarios.d.ts.map +1 -0
  422. package/dist/esm/funcs/sandbox-list-scenarios.js +96 -0
  423. package/dist/esm/funcs/sandbox-list-scenarios.js.map +1 -0
  424. package/dist/esm/funcs/sandbox-put-scenario.d.ts +21 -0
  425. package/dist/esm/funcs/sandbox-put-scenario.d.ts.map +1 -0
  426. package/dist/esm/funcs/sandbox-put-scenario.js +97 -0
  427. package/dist/esm/funcs/sandbox-put-scenario.js.map +1 -0
  428. package/dist/esm/funcs/tasks-get-schema.d.ts +8 -3
  429. package/dist/esm/funcs/tasks-get-schema.d.ts.map +1 -1
  430. package/dist/esm/funcs/tasks-get-schema.js +10 -4
  431. package/dist/esm/funcs/tasks-get-schema.js.map +1 -1
  432. package/dist/esm/funcs/tokens-generate.js +1 -1
  433. package/dist/esm/funcs/tokens-generate.js.map +1 -1
  434. package/dist/esm/lib/config.d.ts +5 -5
  435. package/dist/esm/lib/config.d.ts.map +1 -1
  436. package/dist/esm/lib/config.js +16 -7
  437. package/dist/esm/lib/config.js.map +1 -1
  438. package/dist/esm/models/create-sandbox-scenario-request.d.ts +29 -0
  439. package/dist/esm/models/create-sandbox-scenario-request.d.ts.map +1 -0
  440. package/dist/esm/models/create-sandbox-scenario-request.js +18 -0
  441. package/dist/esm/models/create-sandbox-scenario-request.js.map +1 -0
  442. package/dist/esm/models/delete-response.d.ts +19 -0
  443. package/dist/esm/models/delete-response.d.ts.map +1 -0
  444. package/dist/esm/models/delete-response.js +21 -0
  445. package/dist/esm/models/delete-response.js.map +1 -0
  446. package/dist/esm/models/device-connect-response.d.ts +23 -0
  447. package/dist/esm/models/device-connect-response.d.ts.map +1 -0
  448. package/dist/esm/models/device-connect-response.js +25 -0
  449. package/dist/esm/models/device-connect-response.js.map +1 -0
  450. package/dist/esm/models/device-refresh-response.d.ts +16 -0
  451. package/dist/esm/models/device-refresh-response.d.ts.map +1 -0
  452. package/dist/esm/models/device-refresh-response.js +20 -0
  453. package/dist/esm/models/device-refresh-response.js.map +1 -0
  454. package/dist/esm/models/device-start-response.d.ts +20 -0
  455. package/dist/esm/models/device-start-response.d.ts.map +1 -0
  456. package/dist/esm/models/device-start-response.js +22 -0
  457. package/dist/esm/models/device-start-response.js.map +1 -0
  458. package/dist/esm/models/device-validate-response.d.ts +14 -0
  459. package/dist/esm/models/device-validate-response.d.ts.map +1 -0
  460. package/dist/esm/models/device-validate-response.js +18 -0
  461. package/dist/esm/models/device-validate-response.js.map +1 -0
  462. package/dist/esm/models/errors/error-response.d.ts +19 -0
  463. package/dist/esm/models/errors/error-response.d.ts.map +1 -0
  464. package/dist/esm/models/errors/error-response.js +31 -0
  465. package/dist/esm/models/errors/error-response.js.map +1 -0
  466. package/dist/esm/models/errors/index.d.ts +1 -0
  467. package/dist/esm/models/errors/index.d.ts.map +1 -1
  468. package/dist/esm/models/errors/index.js +1 -0
  469. package/dist/esm/models/errors/index.js.map +1 -1
  470. package/dist/esm/models/gbg-error.d.ts +28 -0
  471. package/dist/esm/models/gbg-error.d.ts.map +1 -0
  472. package/dist/esm/models/gbg-error.js +32 -0
  473. package/dist/esm/models/gbg-error.js.map +1 -0
  474. package/dist/esm/models/handoff-token-response.d.ts +20 -0
  475. package/dist/esm/models/handoff-token-response.d.ts.map +1 -0
  476. package/dist/esm/models/handoff-token-response.js +23 -0
  477. package/dist/esm/models/handoff-token-response.js.map +1 -0
  478. package/dist/esm/models/index.d.ts +30 -0
  479. package/dist/esm/models/index.d.ts.map +1 -1
  480. package/dist/esm/models/index.js +30 -0
  481. package/dist/esm/models/index.js.map +1 -1
  482. package/dist/esm/models/interaction-fetch-response.d.ts +53 -0
  483. package/dist/esm/models/interaction-fetch-response.d.ts.map +1 -0
  484. package/dist/esm/models/interaction-fetch-response.js +52 -0
  485. package/dist/esm/models/interaction-fetch-response.js.map +1 -0
  486. package/dist/esm/models/interaction-submit-response.d.ts +17 -0
  487. package/dist/esm/models/interaction-submit-response.d.ts.map +1 -0
  488. package/dist/esm/models/interaction-submit-response.js +18 -0
  489. package/dist/esm/models/interaction-submit-response.js.map +1 -0
  490. package/dist/esm/models/journey-start-response.d.ts +27 -0
  491. package/dist/esm/models/journey-start-response.d.ts.map +1 -0
  492. package/dist/esm/models/journey-start-response.js +30 -0
  493. package/dist/esm/models/journey-start-response.js.map +1 -0
  494. package/dist/esm/models/loqate-retrieve-response.d.ts +12 -0
  495. package/dist/esm/models/loqate-retrieve-response.d.ts.map +1 -0
  496. package/dist/esm/models/loqate-retrieve-response.js +18 -0
  497. package/dist/esm/models/loqate-retrieve-response.js.map +1 -0
  498. package/dist/esm/models/loqate-search-response.d.ts +12 -0
  499. package/dist/esm/models/loqate-search-response.d.ts.map +1 -0
  500. package/dist/esm/models/loqate-search-response.js +18 -0
  501. package/dist/esm/models/loqate-search-response.js.map +1 -0
  502. package/dist/esm/models/operations/add-device.d.ts +8 -92
  503. package/dist/esm/models/operations/add-device.d.ts.map +1 -1
  504. package/dist/esm/models/operations/add-device.js +5 -72
  505. package/dist/esm/models/operations/add-device.js.map +1 -1
  506. package/dist/esm/models/operations/create-handoff-token.d.ts +22 -0
  507. package/dist/esm/models/operations/create-handoff-token.d.ts.map +1 -0
  508. package/dist/esm/models/operations/create-handoff-token.js +24 -0
  509. package/dist/esm/models/operations/create-handoff-token.js.map +1 -0
  510. package/dist/esm/models/operations/create-sandbox-scenario.d.ts +18 -0
  511. package/dist/esm/models/operations/create-sandbox-scenario.d.ts.map +1 -0
  512. package/dist/esm/models/operations/create-sandbox-scenario.js +14 -0
  513. package/dist/esm/models/operations/create-sandbox-scenario.js.map +1 -0
  514. package/dist/esm/models/operations/delete-instance.d.ts +1 -14
  515. package/dist/esm/models/operations/delete-instance.d.ts.map +1 -1
  516. package/dist/esm/models/operations/delete-instance.js +2 -11
  517. package/dist/esm/models/operations/delete-instance.js.map +1 -1
  518. package/dist/esm/models/operations/delete-sandbox-scenario.d.ts +20 -0
  519. package/dist/esm/models/operations/delete-sandbox-scenario.d.ts.map +1 -0
  520. package/dist/esm/models/operations/delete-sandbox-scenario.js +13 -0
  521. package/dist/esm/models/operations/delete-sandbox-scenario.js.map +1 -0
  522. package/dist/esm/models/operations/device-connect.d.ts +0 -59
  523. package/dist/esm/models/operations/device-connect.d.ts.map +1 -1
  524. package/dist/esm/models/operations/device-connect.js +0 -46
  525. package/dist/esm/models/operations/device-connect.js.map +1 -1
  526. package/dist/esm/models/operations/device-validate.d.ts +12 -0
  527. package/dist/esm/models/operations/device-validate.d.ts.map +1 -0
  528. package/dist/esm/models/operations/device-validate.js +17 -0
  529. package/dist/esm/models/operations/device-validate.js.map +1 -0
  530. package/dist/esm/models/operations/fetch-interaction.d.ts +34 -1621
  531. package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
  532. package/dist/esm/models/operations/fetch-interaction.js +20 -1245
  533. package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
  534. package/dist/esm/models/operations/get-journey-schemas.d.ts +16 -0
  535. package/dist/esm/models/operations/get-journey-schemas.d.ts.map +1 -0
  536. package/dist/esm/models/operations/get-journey-schemas.js +14 -0
  537. package/dist/esm/models/operations/get-journey-schemas.js.map +1 -0
  538. package/dist/esm/models/operations/get-journey-state.d.ts +16 -1383
  539. package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
  540. package/dist/esm/models/operations/get-journey-state.js +12 -996
  541. package/dist/esm/models/operations/get-journey-state.js.map +1 -1
  542. package/dist/esm/models/operations/get-sandbox-scenario.d.ts +39 -0
  543. package/dist/esm/models/operations/get-sandbox-scenario.d.ts.map +1 -0
  544. package/dist/esm/models/operations/get-sandbox-scenario.js +23 -0
  545. package/dist/esm/models/operations/get-sandbox-scenario.js.map +1 -0
  546. package/dist/esm/models/operations/get-task-schema.d.ts +1 -17
  547. package/dist/esm/models/operations/get-task-schema.d.ts.map +1 -1
  548. package/dist/esm/models/operations/get-task-schema.js +0 -17
  549. package/dist/esm/models/operations/get-task-schema.js.map +1 -1
  550. package/dist/esm/models/operations/index.d.ts +12 -4
  551. package/dist/esm/models/operations/index.d.ts.map +1 -1
  552. package/dist/esm/models/operations/index.js +12 -4
  553. package/dist/esm/models/operations/index.js.map +1 -1
  554. package/dist/esm/models/operations/list-sandbox-scenarios.d.ts +34 -0
  555. package/dist/esm/models/operations/list-sandbox-scenarios.d.ts.map +1 -0
  556. package/dist/esm/models/operations/list-sandbox-scenarios.js +22 -0
  557. package/dist/esm/models/operations/list-sandbox-scenarios.js.map +1 -0
  558. package/dist/esm/models/operations/post-as-token-oauth2.d.ts +2 -2
  559. package/dist/esm/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  560. package/dist/esm/models/operations/post-as-token-oauth2.js +1 -1
  561. package/dist/esm/models/operations/post-as-token-oauth2.js.map +1 -1
  562. package/dist/esm/models/operations/put-sandbox-scenario.d.ts +23 -0
  563. package/dist/esm/models/operations/put-sandbox-scenario.d.ts.map +1 -0
  564. package/dist/esm/models/operations/put-sandbox-scenario.js +15 -0
  565. package/dist/esm/models/operations/put-sandbox-scenario.js.map +1 -0
  566. package/dist/esm/models/operations/retrieve-address.d.ts +29 -0
  567. package/dist/esm/models/operations/retrieve-address.d.ts.map +1 -0
  568. package/dist/esm/models/operations/retrieve-address.js +27 -0
  569. package/dist/esm/models/operations/retrieve-address.js.map +1 -0
  570. package/dist/esm/models/operations/search-addresses.d.ts +33 -0
  571. package/dist/esm/models/operations/search-addresses.d.ts.map +1 -0
  572. package/dist/esm/models/operations/search-addresses.js +29 -0
  573. package/dist/esm/models/operations/search-addresses.js.map +1 -0
  574. package/dist/esm/models/operations/start-journey.d.ts +1071 -108
  575. package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
  576. package/dist/esm/models/operations/start-journey.js +473 -55
  577. package/dist/esm/models/operations/start-journey.js.map +1 -1
  578. package/dist/esm/models/operations/submit-interaction.d.ts +989 -92
  579. package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
  580. package/dist/esm/models/operations/submit-interaction.js +436 -44
  581. package/dist/esm/models/operations/submit-interaction.js.map +1 -1
  582. package/dist/esm/models/operations/terminate-journey.d.ts +19 -0
  583. package/dist/esm/models/operations/terminate-journey.d.ts.map +1 -0
  584. package/dist/esm/models/operations/terminate-journey.js +13 -0
  585. package/dist/esm/models/operations/terminate-journey.js.map +1 -0
  586. package/dist/esm/models/operations/upload-interaction-asset.d.ts +26 -0
  587. package/dist/esm/models/operations/upload-interaction-asset.d.ts.map +1 -0
  588. package/dist/esm/models/operations/upload-interaction-asset.js +29 -0
  589. package/dist/esm/models/operations/upload-interaction-asset.js.map +1 -0
  590. package/dist/esm/models/sandbox-scenario-summary.d.ts +29 -0
  591. package/dist/esm/models/sandbox-scenario-summary.d.ts.map +1 -0
  592. package/dist/esm/models/sandbox-scenario-summary.js +26 -0
  593. package/dist/esm/models/sandbox-scenario-summary.js.map +1 -0
  594. package/dist/esm/models/sandbox-scenario-written.d.ts +19 -0
  595. package/dist/esm/models/sandbox-scenario-written.d.ts.map +1 -0
  596. package/dist/esm/models/sandbox-scenario-written.js +21 -0
  597. package/dist/esm/models/sandbox-scenario-written.js.map +1 -0
  598. package/dist/esm/models/sandbox-scenario.d.ts +31 -0
  599. package/dist/esm/models/sandbox-scenario.d.ts.map +1 -0
  600. package/dist/esm/models/sandbox-scenario.js +26 -0
  601. package/dist/esm/models/sandbox-scenario.js.map +1 -0
  602. package/dist/esm/models/schema-fetch-response.d.ts +22 -0
  603. package/dist/esm/models/schema-fetch-response.d.ts.map +1 -0
  604. package/dist/esm/models/schema-fetch-response.js +25 -0
  605. package/dist/esm/models/schema-fetch-response.js.map +1 -0
  606. package/dist/esm/models/slim-document.d.ts +57 -0
  607. package/dist/esm/models/slim-document.d.ts.map +1 -0
  608. package/dist/esm/models/slim-document.js +54 -0
  609. package/dist/esm/models/slim-document.js.map +1 -0
  610. package/dist/esm/models/slim-extraction.d.ts +74 -0
  611. package/dist/esm/models/slim-extraction.d.ts.map +1 -0
  612. package/dist/esm/models/slim-extraction.js +85 -0
  613. package/dist/esm/models/slim-extraction.js.map +1 -0
  614. package/dist/esm/models/slim-identity.d.ts +202 -0
  615. package/dist/esm/models/slim-identity.d.ts.map +1 -0
  616. package/dist/esm/models/slim-identity.js +101 -0
  617. package/dist/esm/models/slim-identity.js.map +1 -0
  618. package/dist/esm/models/slim-interaction-fetch-response.d.ts +58 -0
  619. package/dist/esm/models/slim-interaction-fetch-response.d.ts.map +1 -0
  620. package/dist/esm/models/slim-interaction-fetch-response.js +62 -0
  621. package/dist/esm/models/slim-interaction-fetch-response.js.map +1 -0
  622. package/dist/esm/models/slim-journey.d.ts +14 -0
  623. package/dist/esm/models/slim-journey.d.ts.map +1 -0
  624. package/dist/esm/models/slim-journey.js +19 -0
  625. package/dist/esm/models/slim-journey.js.map +1 -0
  626. package/dist/esm/models/slim-result.d.ts +46 -0
  627. package/dist/esm/models/slim-result.d.ts.map +1 -0
  628. package/dist/esm/models/slim-result.js +40 -0
  629. package/dist/esm/models/slim-result.js.map +1 -0
  630. package/dist/esm/models/slim-state-fetch-response.d.ts +26 -0
  631. package/dist/esm/models/slim-state-fetch-response.d.ts.map +1 -0
  632. package/dist/esm/models/slim-state-fetch-response.js +29 -0
  633. package/dist/esm/models/slim-state-fetch-response.js.map +1 -0
  634. package/dist/esm/models/slim-step.d.ts +22 -0
  635. package/dist/esm/models/slim-step.d.ts.map +1 -0
  636. package/dist/esm/models/slim-step.js +26 -0
  637. package/dist/esm/models/slim-step.js.map +1 -0
  638. package/dist/esm/models/slim-validation.d.ts +69 -0
  639. package/dist/esm/models/slim-validation.d.ts.map +1 -0
  640. package/dist/esm/models/slim-validation.js +79 -0
  641. package/dist/esm/models/slim-validation.js.map +1 -0
  642. package/dist/esm/models/slim-verified-data.d.ts +16 -0
  643. package/dist/esm/models/slim-verified-data.d.ts.map +1 -0
  644. package/dist/esm/models/slim-verified-data.js +17 -0
  645. package/dist/esm/models/slim-verified-data.js.map +1 -0
  646. package/dist/esm/models/state-fetch-response.d.ts +17 -0
  647. package/dist/esm/models/state-fetch-response.d.ts.map +1 -0
  648. package/dist/esm/models/state-fetch-response.js +17 -0
  649. package/dist/esm/models/state-fetch-response.js.map +1 -0
  650. package/dist/esm/models/terminate-response.d.ts +10 -0
  651. package/dist/esm/models/terminate-response.d.ts.map +1 -0
  652. package/dist/esm/models/terminate-response.js +14 -0
  653. package/dist/esm/models/terminate-response.js.map +1 -0
  654. package/dist/esm/models/update-sandbox-scenario-request.d.ts +24 -0
  655. package/dist/esm/models/update-sandbox-scenario-request.d.ts.map +1 -0
  656. package/dist/esm/models/update-sandbox-scenario-request.js +17 -0
  657. package/dist/esm/models/update-sandbox-scenario-request.js.map +1 -0
  658. package/dist/esm/sdk/addresses.d.ts +20 -0
  659. package/dist/esm/sdk/addresses.d.ts.map +1 -0
  660. package/dist/esm/sdk/addresses.js +28 -0
  661. package/dist/esm/sdk/addresses.js.map +1 -0
  662. package/dist/esm/sdk/devices.d.ts +21 -6
  663. package/dist/esm/sdk/devices.d.ts.map +1 -1
  664. package/dist/esm/sdk/devices.js +26 -6
  665. package/dist/esm/sdk/devices.js.map +1 -1
  666. package/dist/esm/sdk/instances.d.ts +11 -3
  667. package/dist/esm/sdk/instances.d.ts.map +1 -1
  668. package/dist/esm/sdk/instances.js +12 -2
  669. package/dist/esm/sdk/instances.js.map +1 -1
  670. package/dist/esm/sdk/interactions.d.ts +14 -6
  671. package/dist/esm/sdk/interactions.d.ts.map +1 -1
  672. package/dist/esm/sdk/interactions.js +16 -6
  673. package/dist/esm/sdk/interactions.js.map +1 -1
  674. package/dist/esm/sdk/journeys.d.ts +45 -5
  675. package/dist/esm/sdk/journeys.d.ts.map +1 -1
  676. package/dist/esm/sdk/journeys.js +49 -4
  677. package/dist/esm/sdk/journeys.js.map +1 -1
  678. package/dist/esm/sdk/sandbox.d.ts +41 -0
  679. package/dist/esm/sdk/sandbox.d.ts.map +1 -0
  680. package/dist/esm/sdk/sandbox.js +58 -0
  681. package/dist/esm/sdk/sandbox.js.map +1 -0
  682. package/dist/esm/sdk/sdk.d.ts +14 -11
  683. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  684. package/dist/esm/sdk/sdk.js +17 -13
  685. package/dist/esm/sdk/sdk.js.map +1 -1
  686. package/dist/esm/sdk/tasks.d.ts +6 -23
  687. package/dist/esm/sdk/tasks.d.ts.map +1 -1
  688. package/dist/esm/sdk/tasks.js +3 -31
  689. package/dist/esm/sdk/tasks.js.map +1 -1
  690. package/dist/esm/types/smart-union.d.ts.map +1 -1
  691. package/dist/esm/types/smart-union.js +14 -10
  692. package/dist/esm/types/smart-union.js.map +1 -1
  693. package/examples/{tokensGenerate.example.ts → journeysStart.example.ts} +5 -3
  694. package/jsr.json +1 -1
  695. package/package.json +1 -1
  696. package/src/funcs/{tasks-update.ts → addresses-retrieve.ts} +39 -18
  697. package/src/funcs/addresses-search.ts +196 -0
  698. package/src/funcs/devices-add.ts +21 -11
  699. package/src/funcs/devices-connect.ts +25 -21
  700. package/src/funcs/{health-get.ts → devices-refresh.ts} +26 -22
  701. package/src/funcs/{tasks-list.ts → devices-validate.ts} +26 -37
  702. package/src/funcs/instances-delete.ts +21 -10
  703. package/src/funcs/instances-handoff-token.ts +191 -0
  704. package/src/funcs/interactions-fetch.ts +30 -10
  705. package/src/funcs/interactions-submit.ts +28 -10
  706. package/src/funcs/interactions-upload-asset.ts +173 -0
  707. package/src/funcs/journeys-get-schemas.ts +207 -0
  708. package/src/funcs/journeys-get-state.ts +23 -10
  709. package/src/funcs/journeys-start.ts +21 -11
  710. package/src/funcs/{tasks-list-schema.ts → journeys-terminate.ts} +26 -15
  711. package/src/funcs/sandbox-create-scenario.ts +185 -0
  712. package/src/funcs/sandbox-delete-scenario.ts +187 -0
  713. package/src/funcs/sandbox-get-scenario.ts +193 -0
  714. package/src/funcs/sandbox-list-scenarios.ts +189 -0
  715. package/src/funcs/sandbox-put-scenario.ts +189 -0
  716. package/src/funcs/tasks-get-schema.ts +22 -10
  717. package/src/funcs/tokens-generate.ts +1 -1
  718. package/src/lib/config.ts +16 -7
  719. package/src/models/create-sandbox-scenario-request.ts +65 -0
  720. package/src/models/delete-response.ts +46 -0
  721. package/src/models/device-connect-response.ts +56 -0
  722. package/src/models/device-refresh-response.ts +43 -0
  723. package/src/models/device-start-response.ts +50 -0
  724. package/src/models/device-validate-response.ts +39 -0
  725. package/src/models/errors/error-response.ts +52 -0
  726. package/src/models/errors/index.ts +1 -0
  727. package/src/models/gbg-error.ts +55 -0
  728. package/src/models/handoff-token-response.ts +49 -0
  729. package/src/models/index.ts +30 -0
  730. package/src/models/interaction-fetch-response.ts +147 -0
  731. package/src/models/interaction-submit-response.ts +43 -0
  732. package/src/models/journey-start-response.ts +64 -0
  733. package/src/models/loqate-retrieve-response.ts +38 -0
  734. package/src/models/loqate-search-response.ts +38 -0
  735. package/src/models/operations/add-device.ts +17 -176
  736. package/src/models/operations/create-handoff-token.ts +63 -0
  737. package/src/models/operations/create-sandbox-scenario.ts +39 -0
  738. package/src/models/operations/delete-instance.ts +7 -38
  739. package/src/models/operations/delete-sandbox-scenario.ts +41 -0
  740. package/src/models/operations/device-connect.ts +0 -128
  741. package/src/models/operations/device-validate.ts +38 -0
  742. package/src/models/operations/fetch-interaction.ts +95 -3795
  743. package/src/models/operations/get-journey-schemas.ts +36 -0
  744. package/src/models/operations/get-journey-state.ts +57 -3183
  745. package/src/models/operations/get-sandbox-scenario.ts +65 -0
  746. package/src/models/operations/get-task-schema.ts +1 -44
  747. package/src/models/operations/index.ts +12 -4
  748. package/src/models/operations/list-sandbox-scenarios.ts +63 -0
  749. package/src/models/operations/post-as-token-oauth2.ts +5 -5
  750. package/src/models/operations/put-sandbox-scenario.ts +43 -0
  751. package/src/models/operations/retrieve-address.ts +73 -0
  752. package/src/models/operations/search-addresses.ts +79 -0
  753. package/src/models/operations/start-journey.ts +2624 -1052
  754. package/src/models/operations/submit-interaction.ts +2648 -1114
  755. package/src/models/operations/terminate-journey.ts +41 -0
  756. package/src/models/operations/upload-interaction-asset.ts +75 -0
  757. package/src/models/sandbox-scenario-summary.ts +63 -0
  758. package/src/models/sandbox-scenario-written.ts +48 -0
  759. package/src/models/sandbox-scenario.ts +61 -0
  760. package/src/models/schema-fetch-response.ts +58 -0
  761. package/src/models/slim-document.ts +135 -0
  762. package/src/models/slim-extraction.ts +236 -0
  763. package/src/models/slim-identity.ts +348 -0
  764. package/src/models/slim-interaction-fetch-response.ts +169 -0
  765. package/src/models/slim-journey.ts +37 -0
  766. package/src/models/slim-result.ts +87 -0
  767. package/src/models/slim-state-fetch-response.ts +59 -0
  768. package/src/models/slim-step.ts +54 -0
  769. package/src/models/slim-validation.ts +230 -0
  770. package/src/models/slim-verified-data.ts +38 -0
  771. package/src/models/state-fetch-response.ts +37 -0
  772. package/src/models/terminate-response.ts +31 -0
  773. package/src/models/update-sandbox-scenario-request.ts +59 -0
  774. package/src/sdk/addresses.ts +50 -0
  775. package/src/sdk/devices.ts +46 -11
  776. package/src/sdk/instances.ts +24 -3
  777. package/src/sdk/interactions.ts +30 -11
  778. package/src/sdk/journeys.ts +67 -5
  779. package/src/sdk/sandbox.ts +100 -0
  780. package/src/sdk/sdk.ts +25 -19
  781. package/src/sdk/tasks.ts +4 -60
  782. package/src/types/smart-union.ts +18 -10
  783. package/dist/commonjs/funcs/health-get.d.ts.map +0 -1
  784. package/dist/commonjs/funcs/health-get.js.map +0 -1
  785. package/dist/commonjs/funcs/tasks-list-schema.d.ts.map +0 -1
  786. package/dist/commonjs/funcs/tasks-list-schema.js.map +0 -1
  787. package/dist/commonjs/funcs/tasks-list.d.ts.map +0 -1
  788. package/dist/commonjs/funcs/tasks-list.js.map +0 -1
  789. package/dist/commonjs/funcs/tasks-update.d.ts.map +0 -1
  790. package/dist/commonjs/funcs/tasks-update.js.map +0 -1
  791. package/dist/commonjs/models/operations/get-tasks-schema.d.ts +0 -71
  792. package/dist/commonjs/models/operations/get-tasks-schema.d.ts.map +0 -1
  793. package/dist/commonjs/models/operations/get-tasks-schema.js +0 -108
  794. package/dist/commonjs/models/operations/get-tasks-schema.js.map +0 -1
  795. package/dist/commonjs/models/operations/get-tasks.d.ts +0 -62
  796. package/dist/commonjs/models/operations/get-tasks.d.ts.map +0 -1
  797. package/dist/commonjs/models/operations/get-tasks.js +0 -91
  798. package/dist/commonjs/models/operations/get-tasks.js.map +0 -1
  799. package/dist/commonjs/models/operations/health.d.ts +0 -14
  800. package/dist/commonjs/models/operations/health.d.ts.map +0 -1
  801. package/dist/commonjs/models/operations/health.js.map +0 -1
  802. package/dist/commonjs/models/operations/update-task.d.ts +0 -2105
  803. package/dist/commonjs/models/operations/update-task.d.ts.map +0 -1
  804. package/dist/commonjs/models/operations/update-task.js +0 -1115
  805. package/dist/commonjs/models/operations/update-task.js.map +0 -1
  806. package/dist/commonjs/sdk/health.d.ts +0 -12
  807. package/dist/commonjs/sdk/health.d.ts.map +0 -1
  808. package/dist/commonjs/sdk/health.js +0 -22
  809. package/dist/commonjs/sdk/health.js.map +0 -1
  810. package/dist/commonjs/types/discriminated-union.d.ts +0 -25
  811. package/dist/commonjs/types/discriminated-union.d.ts.map +0 -1
  812. package/dist/commonjs/types/discriminated-union.js +0 -98
  813. package/dist/commonjs/types/discriminated-union.js.map +0 -1
  814. package/dist/esm/funcs/health-get.d.ts.map +0 -1
  815. package/dist/esm/funcs/health-get.js.map +0 -1
  816. package/dist/esm/funcs/tasks-list-schema.d.ts.map +0 -1
  817. package/dist/esm/funcs/tasks-list-schema.js.map +0 -1
  818. package/dist/esm/funcs/tasks-list.d.ts +0 -17
  819. package/dist/esm/funcs/tasks-list.d.ts.map +0 -1
  820. package/dist/esm/funcs/tasks-list.js.map +0 -1
  821. package/dist/esm/funcs/tasks-update.d.ts +0 -17
  822. package/dist/esm/funcs/tasks-update.d.ts.map +0 -1
  823. package/dist/esm/funcs/tasks-update.js.map +0 -1
  824. package/dist/esm/models/operations/get-tasks-schema.d.ts +0 -71
  825. package/dist/esm/models/operations/get-tasks-schema.d.ts.map +0 -1
  826. package/dist/esm/models/operations/get-tasks-schema.js +0 -67
  827. package/dist/esm/models/operations/get-tasks-schema.js.map +0 -1
  828. package/dist/esm/models/operations/get-tasks.d.ts +0 -62
  829. package/dist/esm/models/operations/get-tasks.d.ts.map +0 -1
  830. package/dist/esm/models/operations/get-tasks.js +0 -51
  831. package/dist/esm/models/operations/get-tasks.js.map +0 -1
  832. package/dist/esm/models/operations/health.d.ts +0 -14
  833. package/dist/esm/models/operations/health.d.ts.map +0 -1
  834. package/dist/esm/models/operations/health.js +0 -14
  835. package/dist/esm/models/operations/health.js.map +0 -1
  836. package/dist/esm/models/operations/update-task.d.ts +0 -2105
  837. package/dist/esm/models/operations/update-task.d.ts.map +0 -1
  838. package/dist/esm/models/operations/update-task.js +0 -1007
  839. package/dist/esm/models/operations/update-task.js.map +0 -1
  840. package/dist/esm/sdk/health.d.ts +0 -12
  841. package/dist/esm/sdk/health.d.ts.map +0 -1
  842. package/dist/esm/sdk/health.js +0 -18
  843. package/dist/esm/sdk/health.js.map +0 -1
  844. package/dist/esm/types/discriminated-union.d.ts +0 -25
  845. package/dist/esm/types/discriminated-union.d.ts.map +0 -1
  846. package/dist/esm/types/discriminated-union.js +0 -61
  847. package/dist/esm/types/discriminated-union.js.map +0 -1
  848. package/src/models/operations/get-tasks-schema.ts +0 -173
  849. package/src/models/operations/get-tasks.ts +0 -144
  850. package/src/models/operations/health.ts +0 -38
  851. package/src/models/operations/update-task.ts +0 -3818
  852. package/src/sdk/health.ts +0 -25
  853. package/src/types/discriminated-union.ts +0 -101
@@ -5,3831 +5,132 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import * as openEnums from "../../types/enums.js";
9
- import { ClosedEnum, OpenEnum } from "../../types/enums.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
10
9
  import { Result as SafeParseResult } from "../../types/fp.js";
11
- import * as types from "../../types/primitives.js";
12
10
  import { smartUnion } from "../../types/smart-union.js";
13
11
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
12
+ import * as models from "../index.js";
14
13
 
15
14
  export type FetchInteractionSecurity = {
16
- interactionAccess: string;
15
+ customerAccess?: string | undefined;
16
+ interactionAccess?: string | undefined;
17
17
  };
18
18
 
19
- export type FetchInteractionRequest = {
20
- /**
21
- * Journey instance identifier
22
- */
23
- instanceId: string;
24
- };
25
-
26
- export const JourneyStatus2 = {
27
- Completed: "Completed",
28
- InProgress: "InProgress",
29
- Failed: "Failed",
30
- Paused: "Paused",
31
- } as const;
32
- export type JourneyStatus2 = OpenEnum<typeof JourneyStatus2>;
33
-
34
- export type Journey2 = {
35
- status: JourneyStatus2;
36
- };
37
-
38
- export type ResponseBody2 = {
39
- /**
40
- * Journey instance identifier
41
- */
42
- instanceId: string;
43
- journey: Journey2;
44
- /**
45
- * True when the journey is still working and no interaction is available yet. Clients should poll /journey/interaction/fetch until this is absent/false and an `interaction` is returned.
46
- */
47
- processing?: boolean | undefined;
48
- };
49
-
50
- export const FetchInteractionStatusError = {
51
- Error: "error",
52
- } as const;
53
- export type FetchInteractionStatusError = ClosedEnum<
54
- typeof FetchInteractionStatusError
55
- >;
56
-
57
- export type FetchInteractionError = {
58
- status: FetchInteractionStatusError;
59
- /**
60
- * Error code indicating the type of error
61
- */
62
- code: number;
63
- /**
64
- * Error message detailing the issue
65
- */
66
- message: string;
67
- };
68
-
69
- export const JourneyStatus1 = {
70
- Completed: "Completed",
71
- InProgress: "InProgress",
72
- Failed: "Failed",
73
- Paused: "Paused",
74
- } as const;
75
- export type JourneyStatus1 = OpenEnum<typeof JourneyStatus1>;
76
-
77
- export type Journey1 = {
78
- status: JourneyStatus1;
79
- };
80
-
81
- export const ResourceType = {
82
- Brand: "brand",
83
- Delivery: "delivery",
84
- Flow: "flow",
85
- Form: "form",
86
- I18n: "i18n",
87
- Journey: "journey",
88
- License: "license",
89
- Model: "model",
90
- Organization: "organization",
91
- Template: "template",
92
- Interaction: "interaction",
93
- } as const;
94
- export type ResourceType = OpenEnum<typeof ResourceType>;
95
-
96
- export type Card = {
97
- id: string;
98
- version?: string | undefined;
99
- config?: any | undefined;
100
- };
101
-
102
- export type Page = {
103
- id: string;
104
- label?: string | undefined;
105
- cards: Array<Card>;
106
- };
107
-
108
- export type Data = {
109
- pages: Array<Page>;
110
- };
111
-
112
- export type Resource = {
113
- id: string;
114
- name: string;
115
- hash?: string | undefined;
116
- version?: string | undefined;
117
- type?: ResourceType | undefined;
118
- data?: Data | undefined;
119
- };
120
-
121
- export const CollectSpec2 = {
122
- Required: "required",
123
- Optional: "optional",
124
- Conditional: "conditional",
125
- } as const;
126
- export type CollectSpec2 = OpenEnum<typeof CollectSpec2>;
127
-
128
- export const CollectCombinator = {
129
- OneOf: "oneOf",
130
- AllOf: "allOf",
131
- } as const;
132
- export type CollectCombinator = OpenEnum<typeof CollectCombinator>;
133
-
134
- export const CollectInputSpec = {
135
- Required: "required",
136
- Optional: "optional",
137
- Conditional: "conditional",
138
- } as const;
139
- export type CollectInputSpec = OpenEnum<typeof CollectInputSpec>;
140
-
141
- export type CollectInput = {
142
- ref: string;
143
- spec: CollectInputSpec;
144
- recommended?: boolean | undefined;
145
- };
146
-
147
- export type Collect2 = {
148
- ref: string;
149
- spec: CollectSpec2;
150
- recommended?: boolean | undefined;
151
- combinator: CollectCombinator;
152
- inputs: Array<CollectInput>;
153
- };
154
-
155
- export const CollectSpec1 = {
156
- Required: "required",
157
- Optional: "optional",
158
- Conditional: "conditional",
159
- } as const;
160
- export type CollectSpec1 = OpenEnum<typeof CollectSpec1>;
161
-
162
- export type Collect1 = {
163
- ref: string;
164
- spec: CollectSpec1;
165
- recommended?: boolean | undefined;
166
- };
167
-
168
- export type CollectUnion = Collect2 | Collect1;
169
-
170
- export const ConsumeSpec2 = {
171
- Required: "required",
172
- Optional: "optional",
173
- Conditional: "conditional",
174
- } as const;
175
- export type ConsumeSpec2 = OpenEnum<typeof ConsumeSpec2>;
176
-
177
- export const ConsumeCombinator = {
178
- OneOf: "oneOf",
179
- AllOf: "allOf",
180
- } as const;
181
- export type ConsumeCombinator = OpenEnum<typeof ConsumeCombinator>;
182
-
183
- export const ConsumeInputSpec = {
184
- Required: "required",
185
- Optional: "optional",
186
- Conditional: "conditional",
187
- } as const;
188
- export type ConsumeInputSpec = OpenEnum<typeof ConsumeInputSpec>;
189
-
190
- export type ConsumeInput = {
191
- ref: string;
192
- spec: ConsumeInputSpec;
193
- recommended?: boolean | undefined;
194
- };
195
-
196
- export type Consume2 = {
197
- ref: string;
198
- spec: ConsumeSpec2;
199
- recommended?: boolean | undefined;
200
- combinator: ConsumeCombinator;
201
- inputs: Array<ConsumeInput>;
202
- };
203
-
204
- export const ConsumeSpec1 = {
205
- Required: "required",
206
- Optional: "optional",
207
- Conditional: "conditional",
208
- } as const;
209
- export type ConsumeSpec1 = OpenEnum<typeof ConsumeSpec1>;
210
-
211
- export type Consume1 = {
212
- ref: string;
213
- spec: ConsumeSpec1;
214
- recommended?: boolean | undefined;
215
- };
216
-
217
- export type ConsumeUnion = Consume2 | Consume1;
218
-
219
- export type Interaction = {
220
- resource?: Resource | undefined;
221
- collects: Array<Collect2 | Collect1>;
222
- consumes: Array<Consume2 | Consume1>;
223
- grId: string;
224
- };
225
-
226
- export type FetchInteractionIdentityAlias = {
227
- /**
228
- * Title of an individual such as Mr, Mrs, Dr, Sir
229
- */
230
- title?: string | undefined;
231
- /**
232
- * A person's name used by their collegues and friends to address them
233
- */
234
- firstName?: string | undefined;
235
- /**
236
- * Any other registered names used by the individual, not aliases
237
- */
238
- middleNames?: Array<string> | undefined;
239
- /**
240
- * Any family names for the individual
241
- */
242
- lastNames?: Array<string> | undefined;
243
- /**
244
- * Any family names for the individual
245
- */
246
- lastNamesAtBirth?: Array<string> | undefined;
247
- };
248
-
249
- export const FetchInteractionIdentityRelationship = {
250
- Mother: "mother",
251
- Father: "father",
252
- MaternalGrandFather: "maternalGrandFather",
253
- MaternalGrandMother: "maternalGrandMother",
254
- PaternalGrandFather: "paternalGrandFather",
255
- PaternalGrandMother: "paternalGrandMother",
256
- } as const;
257
- export type FetchInteractionIdentityRelationship = OpenEnum<
258
- typeof FetchInteractionIdentityRelationship
259
- >;
260
-
261
- export type FetchInteractionIdentityRelatedPerson = {
262
- /**
263
- * Title of an individual such as Mr, Mrs, Dr, Sir
264
- */
265
- title?: string | undefined;
266
- /**
267
- * A person's name used by their collegues and friends to address them
268
- */
269
- firstName?: string | undefined;
270
- /**
271
- * Any other registered names used by the individual, not aliases
272
- */
273
- middleNames?: Array<string> | undefined;
274
- /**
275
- * Any family names for the individual
276
- */
277
- lastNames?: Array<string> | undefined;
278
- /**
279
- * Any family names for the individual
280
- */
281
- lastNamesAtBirth?: Array<string> | undefined;
282
- relationship: FetchInteractionIdentityRelationship;
283
- };
284
-
285
- export type FetchInteractionIdentityCurrentAddressLocation = {
286
- latitude?: string | undefined;
287
- longitude?: string | undefined;
288
- geoAccuracy?: string | undefined;
289
- /**
290
- * A What3words designation associated with this location with '.' separator.
291
- */
292
- what3words?: string | undefined;
293
- };
294
-
295
- export type FetchInteractionIdentityCurrentAddress = {
296
- /**
297
- * Unformatted line based address
298
- */
299
- lines?: Array<string> | undefined;
300
- /**
301
- * The address as a single line
302
- */
303
- addressString?: string | undefined;
304
- /**
305
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
306
- */
307
- premise?: string | undefined;
308
- /**
309
- * The name of a building or a building complex. In the US, this is the street number.
310
- */
311
- building?: string | undefined;
312
- /**
313
- * The name of a sub-building, such as a flat or apartment number.
314
- */
315
- subBuilding?: string | undefined;
316
- /**
317
- * This field holds the most common street or block data element within a country. For instance, USA Street
318
- */
319
- thoroughfare?: string | undefined;
320
- /**
321
- * The name of a dependent street or block, such as a street within a complex.
322
- */
323
- dependentThoroughfare?: string | undefined;
324
- /**
325
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
326
- */
327
- locality?: string | undefined;
328
- /**
329
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
330
- */
331
- dependentLocality?: string | undefined;
332
- /**
333
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
334
- */
335
- doubleDependentLocality?: string | undefined;
336
- /**
337
- * 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
338
- */
339
- postalCode?: string | undefined;
340
- /**
341
- * This field contains the post box number associated with a particular delivery point, should one exist.
342
- */
343
- postBox?: string | undefined;
344
- /**
345
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
346
- */
347
- country?: string | undefined;
348
- superAdministrativeArea?: string | undefined;
349
- administrativeArea?: string | undefined;
350
- subAdministrativeArea?: string | undefined;
351
- organization?: string | undefined;
352
- location?: FetchInteractionIdentityCurrentAddressLocation | undefined;
353
- };
354
-
355
- export type FetchInteractionIdentityPreviousAddressLocation = {
356
- latitude?: string | undefined;
357
- longitude?: string | undefined;
358
- geoAccuracy?: string | undefined;
359
- /**
360
- * A What3words designation associated with this location with '.' separator.
361
- */
362
- what3words?: string | undefined;
363
- };
364
-
365
- export type FetchInteractionIdentityPreviousAddress = {
366
- /**
367
- * Unformatted line based address
368
- */
369
- lines?: Array<string> | undefined;
370
- /**
371
- * The address as a single line
372
- */
373
- addressString?: string | undefined;
374
- /**
375
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
376
- */
377
- premise?: string | undefined;
378
- /**
379
- * The name of a building or a building complex. In the US, this is the street number.
380
- */
381
- building?: string | undefined;
382
- /**
383
- * The name of a sub-building, such as a flat or apartment number.
384
- */
385
- subBuilding?: string | undefined;
386
- /**
387
- * This field holds the most common street or block data element within a country. For instance, USA Street
388
- */
389
- thoroughfare?: string | undefined;
390
- /**
391
- * The name of a dependent street or block, such as a street within a complex.
392
- */
393
- dependentThoroughfare?: string | undefined;
394
- /**
395
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
396
- */
397
- locality?: string | undefined;
398
- /**
399
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
400
- */
401
- dependentLocality?: string | undefined;
402
- /**
403
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
404
- */
405
- doubleDependentLocality?: string | undefined;
406
- /**
407
- * 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
408
- */
409
- postalCode?: string | undefined;
410
- /**
411
- * This field contains the post box number associated with a particular delivery point, should one exist.
412
- */
413
- postBox?: string | undefined;
414
- /**
415
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
416
- */
417
- country?: string | undefined;
418
- superAdministrativeArea?: string | undefined;
419
- administrativeArea?: string | undefined;
420
- subAdministrativeArea?: string | undefined;
421
- organization?: string | undefined;
422
- location?: FetchInteractionIdentityPreviousAddressLocation | undefined;
423
- /**
424
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
425
- */
426
- fromDate: string;
427
- /**
428
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
429
- */
430
- toDate: string;
431
- };
432
-
433
- export type FetchInteractionIdentityPlaceOfBirthLocation = {
434
- latitude?: string | undefined;
435
- longitude?: string | undefined;
436
- geoAccuracy?: string | undefined;
437
- /**
438
- * A What3words designation associated with this location with '.' separator.
439
- */
440
- what3words?: string | undefined;
441
- };
442
-
443
- export type FetchInteractionIdentityPlaceOfBirth = {
444
- /**
445
- * Unformatted line based address
446
- */
447
- lines?: Array<string> | undefined;
448
- /**
449
- * The address as a single line
450
- */
451
- addressString?: string | undefined;
452
- /**
453
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
454
- */
455
- premise?: string | undefined;
456
- /**
457
- * The name of a building or a building complex. In the US, this is the street number.
458
- */
459
- building?: string | undefined;
460
- /**
461
- * The name of a sub-building, such as a flat or apartment number.
462
- */
463
- subBuilding?: string | undefined;
464
- /**
465
- * This field holds the most common street or block data element within a country. For instance, USA Street
466
- */
467
- thoroughfare?: string | undefined;
468
- /**
469
- * The name of a dependent street or block, such as a street within a complex.
470
- */
471
- dependentThoroughfare?: string | undefined;
472
- /**
473
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
474
- */
475
- locality?: string | undefined;
476
- /**
477
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
478
- */
479
- dependentLocality?: string | undefined;
480
- /**
481
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
482
- */
483
- doubleDependentLocality?: string | undefined;
484
- /**
485
- * 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
486
- */
487
- postalCode?: string | undefined;
488
- /**
489
- * This field contains the post box number associated with a particular delivery point, should one exist.
490
- */
491
- postBox?: string | undefined;
492
- /**
493
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
494
- */
495
- country?: string | undefined;
496
- superAdministrativeArea?: string | undefined;
497
- administrativeArea?: string | undefined;
498
- subAdministrativeArea?: string | undefined;
499
- organization?: string | undefined;
500
- location?: FetchInteractionIdentityPlaceOfBirthLocation | undefined;
501
- };
502
-
503
- export type FetchInteractionIdentityIdNumber = {
504
- /**
505
- * The type of phone number, such as landline, mobile, fax, unknown etc
506
- */
507
- type: string;
508
- /**
509
- * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
510
- */
511
- idNumber: string;
512
- /**
513
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
514
- */
515
- country?: string | undefined;
516
- };
517
-
518
- export type FetchInteractionIdentityPhone = {
519
- /**
520
- * The type of phone number, such as landline, mobile, fax, unknown etc
521
- */
522
- type: string;
523
- /**
524
- * Phone number, ideally in international format with +(Country Code)
525
- */
526
- number: string;
527
- };
528
-
529
- export type FetchInteractionIdentityEmail = {
530
- /**
531
- * The type of email, such as home, work, unknown etc
532
- */
533
- type: string;
534
- /**
535
- * Email address
536
- */
537
- email: string;
538
- };
539
-
540
- export type FetchInteractionIdentitySocial = {
541
- /**
542
- * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
543
- */
544
- type: string;
545
- /**
546
- * the identity used on this platform
547
- */
548
- identity: string;
549
- };
550
-
551
- export type FetchInteractionIdentity = {
552
- /**
553
- * Title of an individual such as Mr, Mrs, Dr, Sir
554
- */
555
- title?: string | undefined;
556
- /**
557
- * A person's name used by their collegues and friends to address them
558
- */
559
- firstName?: string | undefined;
560
- /**
561
- * Any other registered names used by the individual, not aliases
562
- */
563
- middleNames?: Array<string> | undefined;
564
- /**
565
- * Any family names for the individual
566
- */
567
- lastNames?: Array<string> | undefined;
568
- /**
569
- * Any family names for the individual
570
- */
571
- lastNamesAtBirth?: Array<string> | undefined;
572
- aliases?: Array<FetchInteractionIdentityAlias> | undefined;
573
- relatedPersons?: Array<FetchInteractionIdentityRelatedPerson> | undefined;
574
- /**
575
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
576
- */
577
- dateOfBirth?: string | undefined;
578
- gender?: string | undefined;
579
- currentAddress?: FetchInteractionIdentityCurrentAddress | undefined;
580
- previousAddresses?:
581
- | Array<FetchInteractionIdentityPreviousAddress>
582
- | undefined;
583
- placeOfBirth?: FetchInteractionIdentityPlaceOfBirth | undefined;
584
- idNumbers?: Array<FetchInteractionIdentityIdNumber> | undefined;
585
- phones?: Array<FetchInteractionIdentityPhone> | undefined;
586
- emails?: Array<FetchInteractionIdentityEmail> | undefined;
587
- socials?: Array<FetchInteractionIdentitySocial> | undefined;
588
- /**
589
- * The subject's mother's maiden name, used for identity verification
590
- */
591
- mothersMaidenName?: string | undefined;
592
- };
593
-
594
- export type FetchInteractionAddress = {
595
- addressString?: string | undefined;
596
- extractedAddressString?: string | undefined;
597
- addressLine1?: string | undefined;
598
- addressLine2?: string | undefined;
599
- locality?: string | undefined;
600
- administrativeArea?: string | undefined;
601
- postalCode?: string | undefined;
602
- };
603
-
604
- export type FetchInteractionDocumentDevice = {
605
- type?: string | undefined;
606
- model?: string | undefined;
607
- hasContactlessReader?: boolean | undefined;
608
- hasMagneticStripeReader?: boolean | undefined;
609
- hasCamera?: boolean | undefined;
610
- serialNumber?: string | undefined;
611
- manufacturer?: string | undefined;
612
- };
613
-
614
- export const FetchInteractionName = {
615
- Com: "COM",
616
- Sod: "SOD",
617
- Dg1: "DG1",
618
- Dg2: "DG2",
619
- Dg3: "DG3",
620
- Dg4: "DG4",
621
- Dg5: "DG5",
622
- Dg6: "DG6",
623
- Dg7: "DG7",
624
- Dg8: "DG8",
625
- Dg9: "DG9",
626
- Dg10: "DG10",
627
- Dg11: "DG11",
628
- Dg12: "DG12",
629
- Dg13: "DG13",
630
- Dg14: "DG14",
631
- Dg15: "DG15",
632
- } as const;
633
- export type FetchInteractionName = OpenEnum<typeof FetchInteractionName>;
634
-
635
- export type FetchInteractionLd = {
636
- name: FetchInteractionName;
637
- data: string;
638
- [additionalProperties: string]: unknown;
639
- };
640
-
641
- export const FetchInteractionAuthType = {
642
- ActiveAuthentication: "ActiveAuthentication",
643
- BasicAccessControl: "BasicAccessControl",
644
- ChipAuthentication: "ChipAuthentication",
645
- PassiveAuthentication: "PassiveAuthentication",
646
- SupplementalAccessControl: "SupplementalAccessControl",
647
- ExtendedAccessControl: "ExtendedAccessControl",
648
- TerminalAuthentication: "TerminalAuthentication",
649
- } as const;
650
- export type FetchInteractionAuthType = OpenEnum<
651
- typeof FetchInteractionAuthType
652
- >;
653
-
654
- export const FetchInteractionResult = {
655
- Success: "Success",
656
- Failure: "Failure",
657
- Skipped: "Skipped",
658
- } as const;
659
- export type FetchInteractionResult = OpenEnum<typeof FetchInteractionResult>;
660
-
661
- export type FetchInteractionChipAuth = {
662
- type: FetchInteractionAuthType;
663
- result: FetchInteractionResult;
664
- [additionalProperties: string]: unknown;
665
- };
666
-
667
- export type FetchInteractionChip = {
668
- lds: Array<FetchInteractionLd>;
669
- auth: Array<FetchInteractionChipAuth>;
670
- [additionalProperties: string]: unknown;
671
- };
672
-
673
- export type FetchInteractionSide = {
674
- side: string;
675
- id: string;
676
- documentQuality: string;
677
- documentQualityScore: number;
678
- };
679
-
680
- export type FetchInteractionClassification = {
681
- ids?: Array<string> | undefined;
682
- category?: string | undefined;
683
- type?: string | undefined;
684
- subtype?: string | undefined;
685
- isDoubleSided?: boolean | undefined;
686
- hasNFC?: boolean | undefined;
687
- year?: string | undefined;
688
- countryCode?: string | undefined;
689
- countryName?: string | undefined;
690
- stateCode?: string | undefined;
691
- stateName?: string | undefined;
692
- sides?: Array<FetchInteractionSide> | undefined;
693
- };
694
-
695
- export type FetchInteractionAggregatedFieldBoundingBox = {
696
- x: number;
697
- y: number;
698
- width: number;
699
- height: number;
700
- };
701
-
702
- export type FetchInteractionAggregatedFieldRegionOfInterest = {
703
- boundingBox?: FetchInteractionAggregatedFieldBoundingBox | undefined;
704
- side: string;
705
- spectrum?: string | undefined;
706
- imageId?: string | undefined;
707
- };
708
-
709
- export type FetchInteractionAggregatedField = {
710
- label: string;
711
- value: string;
712
- source: string;
713
- isNonLatin: boolean;
714
- regionOfInterest?:
715
- | FetchInteractionAggregatedFieldRegionOfInterest
716
- | undefined;
717
- };
718
-
719
- export type FetchInteractionDetailBoundingBox = {
720
- x: number;
721
- y: number;
722
- width: number;
723
- height: number;
724
- };
725
-
726
- export type FetchInteractionDetailRegionOfInterest = {
727
- boundingBox?: FetchInteractionDetailBoundingBox | undefined;
728
- side: string;
729
- spectrum?: string | undefined;
730
- imageId?: string | undefined;
731
- };
732
-
733
- export type FetchInteractionDetail = {
734
- label: string;
735
- value: string;
736
- source: string;
737
- isNonLatin: boolean;
738
- regionOfInterest?: FetchInteractionDetailRegionOfInterest | undefined;
739
- };
740
-
741
- export type FetchInteractionExtractedField = {
742
- label: string;
743
- details: Array<FetchInteractionDetail>;
744
- };
745
-
746
- export type FetchInteractionExtractedImage = {
747
- label: string;
748
- side: string;
749
- imageID: string;
750
- };
751
-
752
- export type FetchInteractionExtraction = {
753
- aggregatedFields?: Array<FetchInteractionAggregatedField> | undefined;
754
- extractedFields?: Array<FetchInteractionExtractedField> | undefined;
755
- extractedImages?: Array<FetchInteractionExtractedImage> | undefined;
756
- };
757
-
758
- export type FetchInteractionValidationCheckBoundingBox = {
759
- x: number;
760
- y: number;
761
- width: number;
762
- height: number;
763
- };
764
-
765
- export type FetchInteractionValidationCheckRegionOfInterest = {
766
- boundingBox?: FetchInteractionValidationCheckBoundingBox | undefined;
767
- side: string;
768
- spectrum?: string | undefined;
769
- imageId?: string | undefined;
770
- };
771
-
772
- export type FetchInteractionValidationCheck = {
773
- name: string;
774
- title: string;
775
- info: string;
776
- validationResult: string;
777
- resultInfo: string;
778
- weight: string;
779
- regionOfInterests?:
780
- | Array<FetchInteractionValidationCheckRegionOfInterest>
781
- | undefined;
782
- type: string;
783
- };
784
-
785
- export type FetchInteractionAggregatedValidationCheckBoundingBox = {
786
- x: number;
787
- y: number;
788
- width: number;
789
- height: number;
790
- };
791
-
792
- export type FetchInteractionAggregatedValidationCheckRegionOfInterest = {
793
- boundingBox?:
794
- | FetchInteractionAggregatedValidationCheckBoundingBox
795
- | undefined;
796
- side: string;
797
- spectrum?: string | undefined;
798
- imageId?: string | undefined;
799
- };
800
-
801
- export type FetchInteractionAggregatedValidationCheck = {
802
- name: string;
803
- title: string;
804
- info: string;
805
- validationResult: string;
806
- resultInfo: string;
807
- weight: string;
808
- regionOfInterests?:
809
- | Array<FetchInteractionAggregatedValidationCheckRegionOfInterest>
810
- | undefined;
811
- type: string;
812
- };
813
-
814
- export type FetchInteractionValidation = {
815
- validationChecks?: Array<FetchInteractionValidationCheck> | undefined;
816
- aggregatedValidationChecks?:
817
- | Array<FetchInteractionAggregatedValidationCheck>
818
- | undefined;
819
- };
820
-
821
- export type FetchInteractionDocumentAlias = {
822
- /**
823
- * Title of an individual such as Mr, Mrs, Dr, Sir
824
- */
825
- title?: string | undefined;
826
- /**
827
- * A person's name used by their collegues and friends to address them
828
- */
829
- firstName?: string | undefined;
830
- /**
831
- * Any other registered names used by the individual, not aliases
832
- */
833
- middleNames?: Array<string> | undefined;
834
- /**
835
- * Any family names for the individual
836
- */
837
- lastNames?: Array<string> | undefined;
838
- /**
839
- * Any family names for the individual
840
- */
841
- lastNamesAtBirth?: Array<string> | undefined;
842
- };
843
-
844
- export const FetchInteractionDocumentRelationship = {
845
- Mother: "mother",
846
- Father: "father",
847
- MaternalGrandFather: "maternalGrandFather",
848
- MaternalGrandMother: "maternalGrandMother",
849
- PaternalGrandFather: "paternalGrandFather",
850
- PaternalGrandMother: "paternalGrandMother",
851
- } as const;
852
- export type FetchInteractionDocumentRelationship = OpenEnum<
853
- typeof FetchInteractionDocumentRelationship
854
- >;
855
-
856
- export type FetchInteractionDocumentRelatedPerson = {
857
- /**
858
- * Title of an individual such as Mr, Mrs, Dr, Sir
859
- */
860
- title?: string | undefined;
861
- /**
862
- * A person's name used by their collegues and friends to address them
863
- */
864
- firstName?: string | undefined;
865
- /**
866
- * Any other registered names used by the individual, not aliases
867
- */
868
- middleNames?: Array<string> | undefined;
869
- /**
870
- * Any family names for the individual
871
- */
872
- lastNames?: Array<string> | undefined;
873
- /**
874
- * Any family names for the individual
875
- */
876
- lastNamesAtBirth?: Array<string> | undefined;
877
- relationship: FetchInteractionDocumentRelationship;
878
- };
879
-
880
- export type FetchInteractionDocumentCurrentAddressLocation = {
881
- latitude?: string | undefined;
882
- longitude?: string | undefined;
883
- geoAccuracy?: string | undefined;
884
- /**
885
- * A What3words designation associated with this location with '.' separator.
886
- */
887
- what3words?: string | undefined;
888
- };
889
-
890
- export type FetchInteractionDocumentCurrentAddress = {
891
- /**
892
- * Unformatted line based address
893
- */
894
- lines?: Array<string> | undefined;
895
- /**
896
- * The address as a single line
897
- */
898
- addressString?: string | undefined;
899
- /**
900
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
901
- */
902
- premise?: string | undefined;
903
- /**
904
- * The name of a building or a building complex. In the US, this is the street number.
905
- */
906
- building?: string | undefined;
907
- /**
908
- * The name of a sub-building, such as a flat or apartment number.
909
- */
910
- subBuilding?: string | undefined;
911
- /**
912
- * This field holds the most common street or block data element within a country. For instance, USA Street
913
- */
914
- thoroughfare?: string | undefined;
915
- /**
916
- * The name of a dependent street or block, such as a street within a complex.
917
- */
918
- dependentThoroughfare?: string | undefined;
919
- /**
920
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
921
- */
922
- locality?: string | undefined;
923
- /**
924
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
925
- */
926
- dependentLocality?: string | undefined;
927
- /**
928
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
929
- */
930
- doubleDependentLocality?: string | undefined;
931
- /**
932
- * 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
933
- */
934
- postalCode?: string | undefined;
935
- /**
936
- * This field contains the post box number associated with a particular delivery point, should one exist.
937
- */
938
- postBox?: string | undefined;
939
- /**
940
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
941
- */
942
- country?: string | undefined;
943
- superAdministrativeArea?: string | undefined;
944
- administrativeArea?: string | undefined;
945
- subAdministrativeArea?: string | undefined;
946
- organization?: string | undefined;
947
- location?: FetchInteractionDocumentCurrentAddressLocation | undefined;
948
- };
949
-
950
- export type FetchInteractionDocumentPreviousAddressLocation = {
951
- latitude?: string | undefined;
952
- longitude?: string | undefined;
953
- geoAccuracy?: string | undefined;
954
- /**
955
- * A What3words designation associated with this location with '.' separator.
956
- */
957
- what3words?: string | undefined;
958
- };
959
-
960
- export type FetchInteractionDocumentPreviousAddress = {
961
- /**
962
- * Unformatted line based address
963
- */
964
- lines?: Array<string> | undefined;
965
- /**
966
- * The address as a single line
967
- */
968
- addressString?: string | undefined;
969
- /**
970
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
971
- */
972
- premise?: string | undefined;
973
- /**
974
- * The name of a building or a building complex. In the US, this is the street number.
975
- */
976
- building?: string | undefined;
977
- /**
978
- * The name of a sub-building, such as a flat or apartment number.
979
- */
980
- subBuilding?: string | undefined;
981
- /**
982
- * This field holds the most common street or block data element within a country. For instance, USA Street
983
- */
984
- thoroughfare?: string | undefined;
985
- /**
986
- * The name of a dependent street or block, such as a street within a complex.
987
- */
988
- dependentThoroughfare?: string | undefined;
989
- /**
990
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
991
- */
992
- locality?: string | undefined;
993
- /**
994
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
995
- */
996
- dependentLocality?: string | undefined;
997
- /**
998
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
999
- */
1000
- doubleDependentLocality?: string | undefined;
1001
- /**
1002
- * 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
1003
- */
1004
- postalCode?: string | undefined;
1005
- /**
1006
- * This field contains the post box number associated with a particular delivery point, should one exist.
1007
- */
1008
- postBox?: string | undefined;
1009
- /**
1010
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1011
- */
1012
- country?: string | undefined;
1013
- superAdministrativeArea?: string | undefined;
1014
- administrativeArea?: string | undefined;
1015
- subAdministrativeArea?: string | undefined;
1016
- organization?: string | undefined;
1017
- location?: FetchInteractionDocumentPreviousAddressLocation | undefined;
1018
- /**
1019
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1020
- */
1021
- fromDate: string;
1022
- /**
1023
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1024
- */
1025
- toDate: string;
1026
- };
1027
-
1028
- export type FetchInteractionDocumentPlaceOfBirthLocation = {
1029
- latitude?: string | undefined;
1030
- longitude?: string | undefined;
1031
- geoAccuracy?: string | undefined;
1032
- /**
1033
- * A What3words designation associated with this location with '.' separator.
1034
- */
1035
- what3words?: string | undefined;
1036
- };
1037
-
1038
- export type FetchInteractionDocumentPlaceOfBirth = {
1039
- /**
1040
- * Unformatted line based address
1041
- */
1042
- lines?: Array<string> | undefined;
1043
- /**
1044
- * The address as a single line
1045
- */
1046
- addressString?: string | undefined;
1047
- /**
1048
- * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
1049
- */
1050
- premise?: string | undefined;
1051
- /**
1052
- * The name of a building or a building complex. In the US, this is the street number.
1053
- */
1054
- building?: string | undefined;
1055
- /**
1056
- * The name of a sub-building, such as a flat or apartment number.
1057
- */
1058
- subBuilding?: string | undefined;
1059
- /**
1060
- * This field holds the most common street or block data element within a country. For instance, USA Street
1061
- */
1062
- thoroughfare?: string | undefined;
1063
- /**
1064
- * The name of a dependent street or block, such as a street within a complex.
1065
- */
1066
- dependentThoroughfare?: string | undefined;
1067
- /**
1068
- * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
1069
- */
1070
- locality?: string | undefined;
1071
- /**
1072
- * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
1073
- */
1074
- dependentLocality?: string | undefined;
1075
- /**
1076
- * This is an even smaller area within a dependent locality, often used in very detailed addresses.
1077
- */
1078
- doubleDependentLocality?: string | undefined;
1079
- /**
1080
- * 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
1081
- */
1082
- postalCode?: string | undefined;
1083
- /**
1084
- * This field contains the post box number associated with a particular delivery point, should one exist.
1085
- */
1086
- postBox?: string | undefined;
1087
- /**
1088
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1089
- */
1090
- country?: string | undefined;
1091
- superAdministrativeArea?: string | undefined;
1092
- administrativeArea?: string | undefined;
1093
- subAdministrativeArea?: string | undefined;
1094
- organization?: string | undefined;
1095
- location?: FetchInteractionDocumentPlaceOfBirthLocation | undefined;
1096
- };
1097
-
1098
- export type FetchInteractionDocumentIdNumber = {
1099
- /**
1100
- * The type of phone number, such as landline, mobile, fax, unknown etc
1101
- */
1102
- type: string;
1103
- /**
1104
- * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
1105
- */
1106
- idNumber: string;
1107
- /**
1108
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1109
- */
1110
- country?: string | undefined;
1111
- };
1112
-
1113
- export type FetchInteractionDocumentPhone = {
1114
- /**
1115
- * The type of phone number, such as landline, mobile, fax, unknown etc
1116
- */
1117
- type: string;
1118
- /**
1119
- * Phone number, ideally in international format with +(Country Code)
1120
- */
1121
- number: string;
1122
- };
1123
-
1124
- export type FetchInteractionDocumentEmail = {
1125
- /**
1126
- * The type of email, such as home, work, unknown etc
1127
- */
1128
- type: string;
1129
- /**
1130
- * Email address
1131
- */
1132
- email: string;
1133
- };
1134
-
1135
- export type FetchInteractionDocumentSocial = {
1136
- /**
1137
- * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
1138
- */
1139
- type: string;
1140
- /**
1141
- * the identity used on this platform
1142
- */
1143
- identity: string;
1144
- };
1145
-
1146
- export type FetchInteractionDocumentSubject = {
1147
- /**
1148
- * Title of an individual such as Mr, Mrs, Dr, Sir
1149
- */
1150
- title?: string | undefined;
1151
- /**
1152
- * A person's name used by their collegues and friends to address them
1153
- */
1154
- firstName?: string | undefined;
1155
- /**
1156
- * Any other registered names used by the individual, not aliases
1157
- */
1158
- middleNames?: Array<string> | undefined;
1159
- /**
1160
- * Any family names for the individual
1161
- */
1162
- lastNames?: Array<string> | undefined;
1163
- /**
1164
- * Any family names for the individual
1165
- */
1166
- lastNamesAtBirth?: Array<string> | undefined;
1167
- aliases?: Array<FetchInteractionDocumentAlias> | undefined;
1168
- relatedPersons?: Array<FetchInteractionDocumentRelatedPerson> | undefined;
1169
- /**
1170
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1171
- */
1172
- dateOfBirth?: string | undefined;
1173
- gender?: string | undefined;
1174
- currentAddress?: FetchInteractionDocumentCurrentAddress | undefined;
1175
- previousAddresses?:
1176
- | Array<FetchInteractionDocumentPreviousAddress>
1177
- | undefined;
1178
- placeOfBirth?: FetchInteractionDocumentPlaceOfBirth | undefined;
1179
- idNumbers?: Array<FetchInteractionDocumentIdNumber> | undefined;
1180
- phones?: Array<FetchInteractionDocumentPhone> | undefined;
1181
- emails?: Array<FetchInteractionDocumentEmail> | undefined;
1182
- socials?: Array<FetchInteractionDocumentSocial> | undefined;
1183
- /**
1184
- * The subject's mother's maiden name, used for identity verification
1185
- */
1186
- mothersMaidenName?: string | undefined;
1187
- };
1188
-
1189
- export type FetchInteractionDocument = {
1190
- oneDBarcode?: string | undefined;
1191
- address?: FetchInteractionAddress | undefined;
1192
- applicationDate?: string | undefined;
1193
- applicationNumber?: string | undefined;
1194
- dateOfBirth?: string | undefined;
1195
- placeOfBirth?: string | undefined;
1196
- placeOfBirthNative?: string | undefined;
1197
- bloodType?: string | undefined;
1198
- controlNumber?: string | undefined;
1199
- countryCode?: string | undefined;
1200
- countryName?: string | undefined;
1201
- documentClassCode?: string | undefined;
1202
- documentClassName?: string | undefined;
1203
- documentNumber?: string | undefined;
1204
- documentSignerCertificate?: string | undefined;
1205
- employer?: string | undefined;
1206
- employerAddress?: string | undefined;
1207
- entries?: string | undefined;
1208
- expirationDate?: string | undefined;
1209
- eyeColor?: string | undefined;
1210
- fathersName?: string | undefined;
1211
- fathersNameNative?: string | undefined;
1212
- fathersSurname?: string | undefined;
1213
- firstName?: string | undefined;
1214
- fullName?: string | undefined;
1215
- fullNameNative?: string | undefined;
1216
- givenName?: string | undefined;
1217
- givenNameNative?: string | undefined;
1218
- hairColor?: string | undefined;
1219
- height?: string | undefined;
1220
- /**
1221
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1222
- */
1223
- issueDate?: string | undefined;
1224
- issuingAuthority?: string | undefined;
1225
- issuingAuthorityNative?: string | undefined;
1226
- issuingStateCode?: string | undefined;
1227
- issuingStateName?: string | undefined;
1228
- licenseClass?: string | undefined;
1229
- licenseEndorsements?: string | undefined;
1230
- licenseRestrictions?: string | undefined;
1231
- mrz?: string | undefined;
1232
- mrz1?: string | undefined;
1233
- mrz2?: string | undefined;
1234
- mrz3?: string | undefined;
1235
- middleName?: string | undefined;
1236
- mothersName?: string | undefined;
1237
- mothersNameNative?: string | undefined;
1238
- mothersSurname?: string | undefined;
1239
- nameSuffix?: string | undefined;
1240
- nationalityCode?: string | undefined;
1241
- nationalityName?: string | undefined;
1242
- nationalityNameNative?: string | undefined;
1243
- occupation?: string | undefined;
1244
- organDonor?: boolean | undefined;
1245
- passportNumber?: string | undefined;
1246
- permitNumber?: string | undefined;
1247
- personalNumber?: string | undefined;
1248
- photo?: string | undefined;
1249
- photoCompressed?: string | undefined;
1250
- photoEncoding?: string | undefined;
1251
- sex?: string | undefined;
1252
- sexNative?: string | undefined;
1253
- signature?: string | undefined;
1254
- signatureCompressed?: string | undefined;
1255
- signatureEncoding?: string | undefined;
1256
- socialSecurityNumber?: string | undefined;
1257
- startDate?: string | undefined;
1258
- surname?: string | undefined;
1259
- surnameNative?: string | undefined;
1260
- visaClass?: string | undefined;
1261
- visaNumber?: string | undefined;
1262
- weight?: string | undefined;
1263
- cardNumber?: string | undefined;
1264
- /**
1265
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1266
- */
1267
- issuerCountryCode?: string | undefined;
1268
- id?: string | undefined;
1269
- type?: string | undefined;
1270
- category?: string | undefined;
1271
- subtype?: string | undefined;
1272
- format?: string | undefined;
1273
- device?: FetchInteractionDocumentDevice | undefined;
1274
- side1Image?: string | undefined;
1275
- side2Image?: string | undefined;
1276
- chip?: FetchInteractionChip | undefined;
1277
- classification?: FetchInteractionClassification | undefined;
1278
- extraction?: FetchInteractionExtraction | undefined;
1279
- validation?: FetchInteractionValidation | undefined;
1280
- subType?: string | undefined;
1281
- number?: string | undefined;
1282
- /**
1283
- * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1284
- */
1285
- expiryDate?: string | undefined;
1286
- subject?: FetchInteractionDocumentSubject | undefined;
1287
- /**
1288
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1289
- */
1290
- country?: string | undefined;
1291
- };
1292
-
1293
- export type FetchInteractionBiometric4 = {
1294
- id?: string | undefined;
1295
- type?: string | undefined;
1296
- selfieImage: string;
1297
- selfieImageEncryption?: boolean | undefined;
1298
- };
1299
-
1300
- export type FetchInteractionBiometric3 = {
1301
- id?: string | undefined;
1302
- type?: string | undefined;
1303
- faceImage: string;
1304
- };
1305
-
1306
- export type FetchInteractionBiometric2 = {
1307
- id?: string | undefined;
1308
- type?: string | undefined;
1309
- selfieImage: string;
1310
- anchorImage: string;
1311
- };
1312
-
1313
- export type FetchInteractionBiometric1 = {
1314
- id?: string | undefined;
1315
- type?: string | undefined;
1316
- face1Image: string;
1317
- face2Image: string;
1318
- };
1319
-
1320
- export type FetchInteractionBiometricUnion =
1321
- | FetchInteractionBiometric1
1322
- | FetchInteractionBiometric2
1323
- | FetchInteractionBiometric3
1324
- | FetchInteractionBiometric4;
1325
-
1326
- export type FetchInteractionUser = {
1327
- id: string;
1328
- email: string;
1329
- domain: string;
1330
- };
1331
-
1332
- export type FetchInteractionClient = {
1333
- id: string;
1334
- ip: string;
1335
- address: string;
1336
- };
1337
-
1338
- export type FetchInteractionModel = {
1339
- identifier: string;
1340
- name: string;
1341
- };
1342
-
1343
- export type FetchInteractionSessionDevice = {
1344
- id: string;
1345
- manufacturer: string;
1346
- model: FetchInteractionModel;
1347
- };
1348
-
1349
- export type FetchInteractionTrace = {
1350
- id: string;
1351
- };
1352
-
1353
- export type FetchInteractionSpan = {
1354
- id: string;
1355
- };
1356
-
1357
- export type FetchInteractionTransaction = {
1358
- id: string;
1359
- };
1360
-
1361
- export type FetchInteractionSessionAuth = {
1362
- id: string;
1363
- scope?: string | undefined;
1364
- codeVerifier?: string | undefined;
1365
- code?: string | undefined;
1366
- state?: string | undefined;
1367
- redirectUri?: string | undefined;
1368
- responseType?: string | undefined;
1369
- clientId?: string | undefined;
1370
- clientSecret?: string | undefined;
1371
- };
1372
-
1373
- export type FetchInteractionSession = {
1374
- user?: FetchInteractionUser | undefined;
1375
- client?: FetchInteractionClient | undefined;
1376
- device?: FetchInteractionSessionDevice | undefined;
1377
- trace?: FetchInteractionTrace | undefined;
1378
- span?: FetchInteractionSpan | undefined;
1379
- transaction?: FetchInteractionTransaction | undefined;
1380
- auth?: Array<FetchInteractionSessionAuth> | undefined;
1381
- };
1382
-
1383
- export const FetchInteractionConsentType = {
1384
- Rollup: "rollup",
1385
- Explicit: "explicit",
1386
- Implicit: "implicit",
1387
- } as const;
1388
- export type FetchInteractionConsentType = OpenEnum<
1389
- typeof FetchInteractionConsentType
1390
- >;
1391
-
1392
- export type FetchInteractionConsent = {
1393
- type?: FetchInteractionConsentType | undefined;
1394
- id?: string | undefined;
1395
- version?: string | undefined;
1396
- url: string;
1397
- effectiveDate?: string | undefined;
1398
- expiryDate?: string | undefined;
1399
- terms?: string | undefined;
1400
- purpose?: string | undefined;
1401
- legalBasis?: string | undefined;
1402
- jurisdiction?: string | undefined;
1403
- subject?: string | undefined;
1404
- signatory?: string | undefined;
1405
- };
1406
-
1407
- export type FetchInteractionAccount = {
1408
- /**
1409
- * The type of account, e.g. Bank Account, Building Society
1410
- */
1411
- type: string;
1412
- /**
1413
- * Account number
1414
- */
1415
- accountNumber: string;
1416
- /**
1417
- * UK sort code
1418
- */
1419
- sortCode?: string | undefined;
1420
- /**
1421
- * US ABA routing number
1422
- */
1423
- routingNumber?: string | undefined;
1424
- /**
1425
- * International Bank Account Number
1426
- */
1427
- iban?: string | undefined;
1428
- /**
1429
- * BIC/SWIFT code
1430
- */
1431
- bic?: string | undefined;
1432
- /**
1433
- * Name on the account
1434
- */
1435
- accountHolderName?: string | undefined;
1436
- /**
1437
- * Name of the financial institution
1438
- */
1439
- bankName?: string | undefined;
1440
- /**
1441
- * Country the address is in. It must be a valid ISO2 or ISO3 country code
1442
- */
1443
- country?: string | undefined;
1444
- /**
1445
- * Account classification, e.g. current, savings
1446
- */
1447
- accountType?: string | undefined;
1448
- };
1449
-
1450
- export type FetchInteractionSubject = {
1451
- identity?: FetchInteractionIdentity | undefined;
1452
- documents?: Array<FetchInteractionDocument> | undefined;
1453
- biometrics?:
1454
- | Array<
1455
- | FetchInteractionBiometric1
1456
- | FetchInteractionBiometric2
1457
- | FetchInteractionBiometric3
1458
- | FetchInteractionBiometric4
1459
- >
1460
- | undefined;
1461
- sessions?: Array<FetchInteractionSession> | undefined;
1462
- consent?: Array<FetchInteractionConsent> | undefined;
1463
- accounts?: Array<FetchInteractionAccount> | undefined;
1464
- uid?: string | undefined;
1465
- };
1466
-
1467
- export type FetchInteractionContext = {
1468
- subject?: FetchInteractionSubject | undefined;
1469
- };
1470
-
1471
- export type ResponseBody1 = {
1472
- /**
1473
- * Journey instance identifier
1474
- */
1475
- instanceId: string;
1476
- /**
1477
- * Interaction identifier
1478
- */
1479
- interactionId: string;
1480
- journey: Journey1;
1481
- interaction: Interaction;
1482
- context?: FetchInteractionContext | undefined;
1483
- instructions?: Array<string> | undefined;
1484
- outstanding?: Array<string> | undefined;
1485
- };
1486
-
1487
- /**
1488
- * Success
1489
- */
1490
- export type FetchInteractionResponse =
1491
- | ResponseBody1
1492
- | FetchInteractionError
1493
- | ResponseBody2;
1494
-
1495
- /** @internal */
1496
- export type FetchInteractionSecurity$Outbound = {
1497
- InteractionAccess: string;
1498
- };
1499
-
1500
- /** @internal */
1501
- export const FetchInteractionSecurity$outboundSchema: z.ZodMiniType<
1502
- FetchInteractionSecurity$Outbound,
1503
- FetchInteractionSecurity
1504
- > = z.pipe(
1505
- z.object({
1506
- interactionAccess: z.string(),
1507
- }),
1508
- z.transform((v) => {
1509
- return remap$(v, {
1510
- interactionAccess: "InteractionAccess",
1511
- });
1512
- }),
1513
- );
1514
-
1515
- export function fetchInteractionSecurityToJSON(
1516
- fetchInteractionSecurity: FetchInteractionSecurity,
1517
- ): string {
1518
- return JSON.stringify(
1519
- FetchInteractionSecurity$outboundSchema.parse(fetchInteractionSecurity),
1520
- );
1521
- }
1522
-
1523
- /** @internal */
1524
- export type FetchInteractionRequest$Outbound = {
1525
- instanceId: string;
1526
- };
1527
-
1528
- /** @internal */
1529
- export const FetchInteractionRequest$outboundSchema: z.ZodMiniType<
1530
- FetchInteractionRequest$Outbound,
1531
- FetchInteractionRequest
1532
- > = z.object({
1533
- instanceId: z.string(),
1534
- });
1535
-
1536
- export function fetchInteractionRequestToJSON(
1537
- fetchInteractionRequest: FetchInteractionRequest,
1538
- ): string {
1539
- return JSON.stringify(
1540
- FetchInteractionRequest$outboundSchema.parse(fetchInteractionRequest),
1541
- );
1542
- }
1543
-
1544
- /** @internal */
1545
- export const JourneyStatus2$inboundSchema: z.ZodMiniType<
1546
- JourneyStatus2,
1547
- unknown
1548
- > = openEnums.inboundSchema(JourneyStatus2);
1549
-
1550
- /** @internal */
1551
- export const Journey2$inboundSchema: z.ZodMiniType<Journey2, unknown> = z
1552
- .object({
1553
- status: JourneyStatus2$inboundSchema,
1554
- });
1555
-
1556
- export function journey2FromJSON(
1557
- jsonString: string,
1558
- ): SafeParseResult<Journey2, SDKValidationError> {
1559
- return safeParse(
1560
- jsonString,
1561
- (x) => Journey2$inboundSchema.parse(JSON.parse(x)),
1562
- `Failed to parse 'Journey2' from JSON`,
1563
- );
1564
- }
1565
-
1566
- /** @internal */
1567
- export const ResponseBody2$inboundSchema: z.ZodMiniType<
1568
- ResponseBody2,
1569
- unknown
1570
- > = z.object({
1571
- instanceId: types.string(),
1572
- journey: z.lazy(() => Journey2$inboundSchema),
1573
- processing: types.optional(types.boolean()),
1574
- });
1575
-
1576
- export function responseBody2FromJSON(
1577
- jsonString: string,
1578
- ): SafeParseResult<ResponseBody2, SDKValidationError> {
1579
- return safeParse(
1580
- jsonString,
1581
- (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
1582
- `Failed to parse 'ResponseBody2' from JSON`,
1583
- );
1584
- }
1585
-
1586
- /** @internal */
1587
- export const FetchInteractionStatusError$inboundSchema: z.ZodMiniEnum<
1588
- typeof FetchInteractionStatusError
1589
- > = z.enum(FetchInteractionStatusError);
1590
-
1591
- /** @internal */
1592
- export const FetchInteractionError$inboundSchema: z.ZodMiniType<
1593
- FetchInteractionError,
1594
- unknown
1595
- > = z.object({
1596
- status: FetchInteractionStatusError$inboundSchema,
1597
- code: types.number(),
1598
- message: types.string(),
1599
- });
1600
-
1601
- export function fetchInteractionErrorFromJSON(
1602
- jsonString: string,
1603
- ): SafeParseResult<FetchInteractionError, SDKValidationError> {
1604
- return safeParse(
1605
- jsonString,
1606
- (x) => FetchInteractionError$inboundSchema.parse(JSON.parse(x)),
1607
- `Failed to parse 'FetchInteractionError' from JSON`,
1608
- );
1609
- }
1610
-
1611
- /** @internal */
1612
- export const JourneyStatus1$inboundSchema: z.ZodMiniType<
1613
- JourneyStatus1,
1614
- unknown
1615
- > = openEnums.inboundSchema(JourneyStatus1);
1616
-
1617
- /** @internal */
1618
- export const Journey1$inboundSchema: z.ZodMiniType<Journey1, unknown> = z
1619
- .object({
1620
- status: JourneyStatus1$inboundSchema,
1621
- });
1622
-
1623
- export function journey1FromJSON(
1624
- jsonString: string,
1625
- ): SafeParseResult<Journey1, SDKValidationError> {
1626
- return safeParse(
1627
- jsonString,
1628
- (x) => Journey1$inboundSchema.parse(JSON.parse(x)),
1629
- `Failed to parse 'Journey1' from JSON`,
1630
- );
1631
- }
1632
-
1633
- /** @internal */
1634
- export const ResourceType$inboundSchema: z.ZodMiniType<ResourceType, unknown> =
1635
- openEnums.inboundSchema(ResourceType);
1636
-
1637
- /** @internal */
1638
- export const Card$inboundSchema: z.ZodMiniType<Card, unknown> = z.object({
1639
- id: types.string(),
1640
- version: types.optional(types.string()),
1641
- config: types.optional(z.any()),
1642
- });
1643
-
1644
- export function cardFromJSON(
1645
- jsonString: string,
1646
- ): SafeParseResult<Card, SDKValidationError> {
1647
- return safeParse(
1648
- jsonString,
1649
- (x) => Card$inboundSchema.parse(JSON.parse(x)),
1650
- `Failed to parse 'Card' from JSON`,
1651
- );
1652
- }
1653
-
1654
- /** @internal */
1655
- export const Page$inboundSchema: z.ZodMiniType<Page, unknown> = z.object({
1656
- id: types.string(),
1657
- label: types.optional(types.string()),
1658
- cards: z.array(z.lazy(() => Card$inboundSchema)),
1659
- });
1660
-
1661
- export function pageFromJSON(
1662
- jsonString: string,
1663
- ): SafeParseResult<Page, SDKValidationError> {
1664
- return safeParse(
1665
- jsonString,
1666
- (x) => Page$inboundSchema.parse(JSON.parse(x)),
1667
- `Failed to parse 'Page' from JSON`,
1668
- );
1669
- }
1670
-
1671
- /** @internal */
1672
- export const Data$inboundSchema: z.ZodMiniType<Data, unknown> = z.object({
1673
- pages: z.array(z.lazy(() => Page$inboundSchema)),
1674
- });
1675
-
1676
- export function dataFromJSON(
1677
- jsonString: string,
1678
- ): SafeParseResult<Data, SDKValidationError> {
1679
- return safeParse(
1680
- jsonString,
1681
- (x) => Data$inboundSchema.parse(JSON.parse(x)),
1682
- `Failed to parse 'Data' from JSON`,
1683
- );
1684
- }
1685
-
1686
- /** @internal */
1687
- export const Resource$inboundSchema: z.ZodMiniType<Resource, unknown> = z
1688
- .object({
1689
- id: types.string(),
1690
- name: types.string(),
1691
- hash: types.optional(types.string()),
1692
- version: types.optional(types.string()),
1693
- type: types.optional(ResourceType$inboundSchema),
1694
- data: types.optional(z.lazy(() => Data$inboundSchema)),
1695
- });
1696
-
1697
- export function resourceFromJSON(
1698
- jsonString: string,
1699
- ): SafeParseResult<Resource, SDKValidationError> {
1700
- return safeParse(
1701
- jsonString,
1702
- (x) => Resource$inboundSchema.parse(JSON.parse(x)),
1703
- `Failed to parse 'Resource' from JSON`,
1704
- );
1705
- }
1706
-
1707
- /** @internal */
1708
- export const CollectSpec2$inboundSchema: z.ZodMiniType<CollectSpec2, unknown> =
1709
- openEnums.inboundSchema(CollectSpec2);
1710
-
1711
- /** @internal */
1712
- export const CollectCombinator$inboundSchema: z.ZodMiniType<
1713
- CollectCombinator,
1714
- unknown
1715
- > = openEnums.inboundSchema(CollectCombinator);
1716
-
1717
- /** @internal */
1718
- export const CollectInputSpec$inboundSchema: z.ZodMiniType<
1719
- CollectInputSpec,
1720
- unknown
1721
- > = openEnums.inboundSchema(CollectInputSpec);
1722
-
1723
- /** @internal */
1724
- export const CollectInput$inboundSchema: z.ZodMiniType<CollectInput, unknown> =
1725
- z.object({
1726
- ref: types.string(),
1727
- spec: CollectInputSpec$inboundSchema,
1728
- recommended: types.optional(types.boolean()),
1729
- });
1730
-
1731
- export function collectInputFromJSON(
1732
- jsonString: string,
1733
- ): SafeParseResult<CollectInput, SDKValidationError> {
1734
- return safeParse(
1735
- jsonString,
1736
- (x) => CollectInput$inboundSchema.parse(JSON.parse(x)),
1737
- `Failed to parse 'CollectInput' from JSON`,
1738
- );
1739
- }
1740
-
1741
- /** @internal */
1742
- export const Collect2$inboundSchema: z.ZodMiniType<Collect2, unknown> = z
1743
- .object({
1744
- ref: types.string(),
1745
- spec: CollectSpec2$inboundSchema,
1746
- recommended: types.optional(types.boolean()),
1747
- combinator: CollectCombinator$inboundSchema,
1748
- inputs: z.array(z.lazy(() => CollectInput$inboundSchema)),
1749
- });
1750
-
1751
- export function collect2FromJSON(
1752
- jsonString: string,
1753
- ): SafeParseResult<Collect2, SDKValidationError> {
1754
- return safeParse(
1755
- jsonString,
1756
- (x) => Collect2$inboundSchema.parse(JSON.parse(x)),
1757
- `Failed to parse 'Collect2' from JSON`,
1758
- );
1759
- }
1760
-
1761
- /** @internal */
1762
- export const CollectSpec1$inboundSchema: z.ZodMiniType<CollectSpec1, unknown> =
1763
- openEnums.inboundSchema(CollectSpec1);
1764
-
1765
- /** @internal */
1766
- export const Collect1$inboundSchema: z.ZodMiniType<Collect1, unknown> = z
1767
- .object({
1768
- ref: types.string(),
1769
- spec: CollectSpec1$inboundSchema,
1770
- recommended: types.optional(types.boolean()),
1771
- });
1772
-
1773
- export function collect1FromJSON(
1774
- jsonString: string,
1775
- ): SafeParseResult<Collect1, SDKValidationError> {
1776
- return safeParse(
1777
- jsonString,
1778
- (x) => Collect1$inboundSchema.parse(JSON.parse(x)),
1779
- `Failed to parse 'Collect1' from JSON`,
1780
- );
1781
- }
1782
-
1783
- /** @internal */
1784
- export const CollectUnion$inboundSchema: z.ZodMiniType<CollectUnion, unknown> =
1785
- smartUnion([
1786
- z.lazy(() => Collect2$inboundSchema),
1787
- z.lazy(() => Collect1$inboundSchema),
1788
- ]);
1789
-
1790
- export function collectUnionFromJSON(
1791
- jsonString: string,
1792
- ): SafeParseResult<CollectUnion, SDKValidationError> {
1793
- return safeParse(
1794
- jsonString,
1795
- (x) => CollectUnion$inboundSchema.parse(JSON.parse(x)),
1796
- `Failed to parse 'CollectUnion' from JSON`,
1797
- );
1798
- }
1799
-
1800
- /** @internal */
1801
- export const ConsumeSpec2$inboundSchema: z.ZodMiniType<ConsumeSpec2, unknown> =
1802
- openEnums.inboundSchema(ConsumeSpec2);
1803
-
1804
- /** @internal */
1805
- export const ConsumeCombinator$inboundSchema: z.ZodMiniType<
1806
- ConsumeCombinator,
1807
- unknown
1808
- > = openEnums.inboundSchema(ConsumeCombinator);
1809
-
1810
- /** @internal */
1811
- export const ConsumeInputSpec$inboundSchema: z.ZodMiniType<
1812
- ConsumeInputSpec,
1813
- unknown
1814
- > = openEnums.inboundSchema(ConsumeInputSpec);
1815
-
1816
- /** @internal */
1817
- export const ConsumeInput$inboundSchema: z.ZodMiniType<ConsumeInput, unknown> =
1818
- z.object({
1819
- ref: types.string(),
1820
- spec: ConsumeInputSpec$inboundSchema,
1821
- recommended: types.optional(types.boolean()),
1822
- });
1823
-
1824
- export function consumeInputFromJSON(
1825
- jsonString: string,
1826
- ): SafeParseResult<ConsumeInput, SDKValidationError> {
1827
- return safeParse(
1828
- jsonString,
1829
- (x) => ConsumeInput$inboundSchema.parse(JSON.parse(x)),
1830
- `Failed to parse 'ConsumeInput' from JSON`,
1831
- );
1832
- }
1833
-
1834
- /** @internal */
1835
- export const Consume2$inboundSchema: z.ZodMiniType<Consume2, unknown> = z
1836
- .object({
1837
- ref: types.string(),
1838
- spec: ConsumeSpec2$inboundSchema,
1839
- recommended: types.optional(types.boolean()),
1840
- combinator: ConsumeCombinator$inboundSchema,
1841
- inputs: z.array(z.lazy(() => ConsumeInput$inboundSchema)),
1842
- });
1843
-
1844
- export function consume2FromJSON(
1845
- jsonString: string,
1846
- ): SafeParseResult<Consume2, SDKValidationError> {
1847
- return safeParse(
1848
- jsonString,
1849
- (x) => Consume2$inboundSchema.parse(JSON.parse(x)),
1850
- `Failed to parse 'Consume2' from JSON`,
1851
- );
1852
- }
1853
-
1854
- /** @internal */
1855
- export const ConsumeSpec1$inboundSchema: z.ZodMiniType<ConsumeSpec1, unknown> =
1856
- openEnums.inboundSchema(ConsumeSpec1);
1857
-
1858
- /** @internal */
1859
- export const Consume1$inboundSchema: z.ZodMiniType<Consume1, unknown> = z
1860
- .object({
1861
- ref: types.string(),
1862
- spec: ConsumeSpec1$inboundSchema,
1863
- recommended: types.optional(types.boolean()),
1864
- });
1865
-
1866
- export function consume1FromJSON(
1867
- jsonString: string,
1868
- ): SafeParseResult<Consume1, SDKValidationError> {
1869
- return safeParse(
1870
- jsonString,
1871
- (x) => Consume1$inboundSchema.parse(JSON.parse(x)),
1872
- `Failed to parse 'Consume1' from JSON`,
1873
- );
1874
- }
1875
-
1876
- /** @internal */
1877
- export const ConsumeUnion$inboundSchema: z.ZodMiniType<ConsumeUnion, unknown> =
1878
- smartUnion([
1879
- z.lazy(() => Consume2$inboundSchema),
1880
- z.lazy(() => Consume1$inboundSchema),
1881
- ]);
1882
-
1883
- export function consumeUnionFromJSON(
1884
- jsonString: string,
1885
- ): SafeParseResult<ConsumeUnion, SDKValidationError> {
1886
- return safeParse(
1887
- jsonString,
1888
- (x) => ConsumeUnion$inboundSchema.parse(JSON.parse(x)),
1889
- `Failed to parse 'ConsumeUnion' from JSON`,
1890
- );
1891
- }
1892
-
1893
- /** @internal */
1894
- export const Interaction$inboundSchema: z.ZodMiniType<Interaction, unknown> = z
1895
- .object({
1896
- resource: types.optional(z.lazy(() => Resource$inboundSchema)),
1897
- collects: z.array(
1898
- smartUnion([
1899
- z.lazy(() => Collect2$inboundSchema),
1900
- z.lazy(() => Collect1$inboundSchema),
1901
- ]),
1902
- ),
1903
- consumes: z.array(
1904
- smartUnion([
1905
- z.lazy(() => Consume2$inboundSchema),
1906
- z.lazy(() => Consume1$inboundSchema),
1907
- ]),
1908
- ),
1909
- grId: types.string(),
1910
- });
1911
-
1912
- export function interactionFromJSON(
1913
- jsonString: string,
1914
- ): SafeParseResult<Interaction, SDKValidationError> {
1915
- return safeParse(
1916
- jsonString,
1917
- (x) => Interaction$inboundSchema.parse(JSON.parse(x)),
1918
- `Failed to parse 'Interaction' from JSON`,
1919
- );
1920
- }
1921
-
1922
- /** @internal */
1923
- export const FetchInteractionIdentityAlias$inboundSchema: z.ZodMiniType<
1924
- FetchInteractionIdentityAlias,
1925
- unknown
1926
- > = z.object({
1927
- title: types.optional(types.string()),
1928
- firstName: types.optional(types.string()),
1929
- middleNames: types.optional(z.array(types.string())),
1930
- lastNames: types.optional(z.array(types.string())),
1931
- lastNamesAtBirth: types.optional(z.array(types.string())),
1932
- });
1933
-
1934
- export function fetchInteractionIdentityAliasFromJSON(
1935
- jsonString: string,
1936
- ): SafeParseResult<FetchInteractionIdentityAlias, SDKValidationError> {
1937
- return safeParse(
1938
- jsonString,
1939
- (x) => FetchInteractionIdentityAlias$inboundSchema.parse(JSON.parse(x)),
1940
- `Failed to parse 'FetchInteractionIdentityAlias' from JSON`,
1941
- );
1942
- }
1943
-
1944
- /** @internal */
1945
- export const FetchInteractionIdentityRelationship$inboundSchema: z.ZodMiniType<
1946
- FetchInteractionIdentityRelationship,
1947
- unknown
1948
- > = openEnums.inboundSchema(FetchInteractionIdentityRelationship);
1949
-
1950
- /** @internal */
1951
- export const FetchInteractionIdentityRelatedPerson$inboundSchema: z.ZodMiniType<
1952
- FetchInteractionIdentityRelatedPerson,
1953
- unknown
1954
- > = z.object({
1955
- title: types.optional(types.string()),
1956
- firstName: types.optional(types.string()),
1957
- middleNames: types.optional(z.array(types.string())),
1958
- lastNames: types.optional(z.array(types.string())),
1959
- lastNamesAtBirth: types.optional(z.array(types.string())),
1960
- relationship: FetchInteractionIdentityRelationship$inboundSchema,
1961
- });
1962
-
1963
- export function fetchInteractionIdentityRelatedPersonFromJSON(
1964
- jsonString: string,
1965
- ): SafeParseResult<FetchInteractionIdentityRelatedPerson, SDKValidationError> {
1966
- return safeParse(
1967
- jsonString,
1968
- (x) =>
1969
- FetchInteractionIdentityRelatedPerson$inboundSchema.parse(JSON.parse(x)),
1970
- `Failed to parse 'FetchInteractionIdentityRelatedPerson' from JSON`,
1971
- );
1972
- }
1973
-
1974
- /** @internal */
1975
- export const FetchInteractionIdentityCurrentAddressLocation$inboundSchema:
1976
- z.ZodMiniType<FetchInteractionIdentityCurrentAddressLocation, unknown> = z
1977
- .object({
1978
- latitude: types.optional(types.string()),
1979
- longitude: types.optional(types.string()),
1980
- geoAccuracy: types.optional(types.string()),
1981
- what3words: types.optional(types.string()),
1982
- });
1983
-
1984
- export function fetchInteractionIdentityCurrentAddressLocationFromJSON(
1985
- jsonString: string,
1986
- ): SafeParseResult<
1987
- FetchInteractionIdentityCurrentAddressLocation,
1988
- SDKValidationError
1989
- > {
1990
- return safeParse(
1991
- jsonString,
1992
- (x) =>
1993
- FetchInteractionIdentityCurrentAddressLocation$inboundSchema.parse(
1994
- JSON.parse(x),
1995
- ),
1996
- `Failed to parse 'FetchInteractionIdentityCurrentAddressLocation' from JSON`,
1997
- );
1998
- }
1999
-
2000
- /** @internal */
2001
- export const FetchInteractionIdentityCurrentAddress$inboundSchema:
2002
- z.ZodMiniType<FetchInteractionIdentityCurrentAddress, unknown> = z.object({
2003
- lines: types.optional(z.array(types.string())),
2004
- addressString: types.optional(types.string()),
2005
- premise: types.optional(types.string()),
2006
- building: types.optional(types.string()),
2007
- subBuilding: types.optional(types.string()),
2008
- thoroughfare: types.optional(types.string()),
2009
- dependentThoroughfare: types.optional(types.string()),
2010
- locality: types.optional(types.string()),
2011
- dependentLocality: types.optional(types.string()),
2012
- doubleDependentLocality: types.optional(types.string()),
2013
- postalCode: types.optional(types.string()),
2014
- postBox: types.optional(types.string()),
2015
- country: types.optional(types.string()),
2016
- superAdministrativeArea: types.optional(types.string()),
2017
- administrativeArea: types.optional(types.string()),
2018
- subAdministrativeArea: types.optional(types.string()),
2019
- organization: types.optional(types.string()),
2020
- location: types.optional(
2021
- z.lazy(() =>
2022
- FetchInteractionIdentityCurrentAddressLocation$inboundSchema
2023
- ),
2024
- ),
2025
- });
2026
-
2027
- export function fetchInteractionIdentityCurrentAddressFromJSON(
2028
- jsonString: string,
2029
- ): SafeParseResult<FetchInteractionIdentityCurrentAddress, SDKValidationError> {
2030
- return safeParse(
2031
- jsonString,
2032
- (x) =>
2033
- FetchInteractionIdentityCurrentAddress$inboundSchema.parse(JSON.parse(x)),
2034
- `Failed to parse 'FetchInteractionIdentityCurrentAddress' from JSON`,
2035
- );
2036
- }
2037
-
2038
- /** @internal */
2039
- export const FetchInteractionIdentityPreviousAddressLocation$inboundSchema:
2040
- z.ZodMiniType<FetchInteractionIdentityPreviousAddressLocation, unknown> = z
2041
- .object({
2042
- latitude: types.optional(types.string()),
2043
- longitude: types.optional(types.string()),
2044
- geoAccuracy: types.optional(types.string()),
2045
- what3words: types.optional(types.string()),
2046
- });
2047
-
2048
- export function fetchInteractionIdentityPreviousAddressLocationFromJSON(
2049
- jsonString: string,
2050
- ): SafeParseResult<
2051
- FetchInteractionIdentityPreviousAddressLocation,
2052
- SDKValidationError
2053
- > {
2054
- return safeParse(
2055
- jsonString,
2056
- (x) =>
2057
- FetchInteractionIdentityPreviousAddressLocation$inboundSchema.parse(
2058
- JSON.parse(x),
2059
- ),
2060
- `Failed to parse 'FetchInteractionIdentityPreviousAddressLocation' from JSON`,
2061
- );
2062
- }
2063
-
2064
- /** @internal */
2065
- export const FetchInteractionIdentityPreviousAddress$inboundSchema:
2066
- z.ZodMiniType<FetchInteractionIdentityPreviousAddress, unknown> = z.object({
2067
- lines: types.optional(z.array(types.string())),
2068
- addressString: types.optional(types.string()),
2069
- premise: types.optional(types.string()),
2070
- building: types.optional(types.string()),
2071
- subBuilding: types.optional(types.string()),
2072
- thoroughfare: types.optional(types.string()),
2073
- dependentThoroughfare: types.optional(types.string()),
2074
- locality: types.optional(types.string()),
2075
- dependentLocality: types.optional(types.string()),
2076
- doubleDependentLocality: types.optional(types.string()),
2077
- postalCode: types.optional(types.string()),
2078
- postBox: types.optional(types.string()),
2079
- country: types.optional(types.string()),
2080
- superAdministrativeArea: types.optional(types.string()),
2081
- administrativeArea: types.optional(types.string()),
2082
- subAdministrativeArea: types.optional(types.string()),
2083
- organization: types.optional(types.string()),
2084
- location: types.optional(
2085
- z.lazy(() =>
2086
- FetchInteractionIdentityPreviousAddressLocation$inboundSchema
2087
- ),
2088
- ),
2089
- fromDate: types.string(),
2090
- toDate: types.string(),
2091
- });
2092
-
2093
- export function fetchInteractionIdentityPreviousAddressFromJSON(
2094
- jsonString: string,
2095
- ): SafeParseResult<
2096
- FetchInteractionIdentityPreviousAddress,
2097
- SDKValidationError
2098
- > {
2099
- return safeParse(
2100
- jsonString,
2101
- (x) =>
2102
- FetchInteractionIdentityPreviousAddress$inboundSchema.parse(
2103
- JSON.parse(x),
2104
- ),
2105
- `Failed to parse 'FetchInteractionIdentityPreviousAddress' from JSON`,
2106
- );
2107
- }
2108
-
2109
- /** @internal */
2110
- export const FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema:
2111
- z.ZodMiniType<FetchInteractionIdentityPlaceOfBirthLocation, unknown> = z
2112
- .object({
2113
- latitude: types.optional(types.string()),
2114
- longitude: types.optional(types.string()),
2115
- geoAccuracy: types.optional(types.string()),
2116
- what3words: types.optional(types.string()),
2117
- });
2118
-
2119
- export function fetchInteractionIdentityPlaceOfBirthLocationFromJSON(
2120
- jsonString: string,
2121
- ): SafeParseResult<
2122
- FetchInteractionIdentityPlaceOfBirthLocation,
2123
- SDKValidationError
2124
- > {
2125
- return safeParse(
2126
- jsonString,
2127
- (x) =>
2128
- FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema.parse(
2129
- JSON.parse(x),
2130
- ),
2131
- `Failed to parse 'FetchInteractionIdentityPlaceOfBirthLocation' from JSON`,
2132
- );
2133
- }
2134
-
2135
- /** @internal */
2136
- export const FetchInteractionIdentityPlaceOfBirth$inboundSchema: z.ZodMiniType<
2137
- FetchInteractionIdentityPlaceOfBirth,
2138
- unknown
2139
- > = z.object({
2140
- lines: types.optional(z.array(types.string())),
2141
- addressString: types.optional(types.string()),
2142
- premise: types.optional(types.string()),
2143
- building: types.optional(types.string()),
2144
- subBuilding: types.optional(types.string()),
2145
- thoroughfare: types.optional(types.string()),
2146
- dependentThoroughfare: types.optional(types.string()),
2147
- locality: types.optional(types.string()),
2148
- dependentLocality: types.optional(types.string()),
2149
- doubleDependentLocality: types.optional(types.string()),
2150
- postalCode: types.optional(types.string()),
2151
- postBox: types.optional(types.string()),
2152
- country: types.optional(types.string()),
2153
- superAdministrativeArea: types.optional(types.string()),
2154
- administrativeArea: types.optional(types.string()),
2155
- subAdministrativeArea: types.optional(types.string()),
2156
- organization: types.optional(types.string()),
2157
- location: types.optional(
2158
- z.lazy(() => FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema),
2159
- ),
2160
- });
2161
-
2162
- export function fetchInteractionIdentityPlaceOfBirthFromJSON(
2163
- jsonString: string,
2164
- ): SafeParseResult<FetchInteractionIdentityPlaceOfBirth, SDKValidationError> {
2165
- return safeParse(
2166
- jsonString,
2167
- (x) =>
2168
- FetchInteractionIdentityPlaceOfBirth$inboundSchema.parse(JSON.parse(x)),
2169
- `Failed to parse 'FetchInteractionIdentityPlaceOfBirth' from JSON`,
2170
- );
2171
- }
2172
-
2173
- /** @internal */
2174
- export const FetchInteractionIdentityIdNumber$inboundSchema: z.ZodMiniType<
2175
- FetchInteractionIdentityIdNumber,
2176
- unknown
2177
- > = z.object({
2178
- type: types.string(),
2179
- idNumber: types.string(),
2180
- country: types.optional(types.string()),
2181
- });
2182
-
2183
- export function fetchInteractionIdentityIdNumberFromJSON(
2184
- jsonString: string,
2185
- ): SafeParseResult<FetchInteractionIdentityIdNumber, SDKValidationError> {
2186
- return safeParse(
2187
- jsonString,
2188
- (x) => FetchInteractionIdentityIdNumber$inboundSchema.parse(JSON.parse(x)),
2189
- `Failed to parse 'FetchInteractionIdentityIdNumber' from JSON`,
2190
- );
2191
- }
2192
-
2193
- /** @internal */
2194
- export const FetchInteractionIdentityPhone$inboundSchema: z.ZodMiniType<
2195
- FetchInteractionIdentityPhone,
2196
- unknown
2197
- > = z.object({
2198
- type: types.string(),
2199
- number: types.string(),
2200
- });
2201
-
2202
- export function fetchInteractionIdentityPhoneFromJSON(
2203
- jsonString: string,
2204
- ): SafeParseResult<FetchInteractionIdentityPhone, SDKValidationError> {
2205
- return safeParse(
2206
- jsonString,
2207
- (x) => FetchInteractionIdentityPhone$inboundSchema.parse(JSON.parse(x)),
2208
- `Failed to parse 'FetchInteractionIdentityPhone' from JSON`,
2209
- );
2210
- }
2211
-
2212
- /** @internal */
2213
- export const FetchInteractionIdentityEmail$inboundSchema: z.ZodMiniType<
2214
- FetchInteractionIdentityEmail,
2215
- unknown
2216
- > = z.object({
2217
- type: types.string(),
2218
- email: types.string(),
2219
- });
2220
-
2221
- export function fetchInteractionIdentityEmailFromJSON(
2222
- jsonString: string,
2223
- ): SafeParseResult<FetchInteractionIdentityEmail, SDKValidationError> {
2224
- return safeParse(
2225
- jsonString,
2226
- (x) => FetchInteractionIdentityEmail$inboundSchema.parse(JSON.parse(x)),
2227
- `Failed to parse 'FetchInteractionIdentityEmail' from JSON`,
2228
- );
2229
- }
2230
-
2231
- /** @internal */
2232
- export const FetchInteractionIdentitySocial$inboundSchema: z.ZodMiniType<
2233
- FetchInteractionIdentitySocial,
2234
- unknown
2235
- > = z.object({
2236
- type: types.string(),
2237
- identity: types.string(),
2238
- });
2239
-
2240
- export function fetchInteractionIdentitySocialFromJSON(
2241
- jsonString: string,
2242
- ): SafeParseResult<FetchInteractionIdentitySocial, SDKValidationError> {
2243
- return safeParse(
2244
- jsonString,
2245
- (x) => FetchInteractionIdentitySocial$inboundSchema.parse(JSON.parse(x)),
2246
- `Failed to parse 'FetchInteractionIdentitySocial' from JSON`,
2247
- );
2248
- }
2249
-
2250
- /** @internal */
2251
- export const FetchInteractionIdentity$inboundSchema: z.ZodMiniType<
2252
- FetchInteractionIdentity,
2253
- unknown
2254
- > = z.object({
2255
- title: types.optional(types.string()),
2256
- firstName: types.optional(types.string()),
2257
- middleNames: types.optional(z.array(types.string())),
2258
- lastNames: types.optional(z.array(types.string())),
2259
- lastNamesAtBirth: types.optional(z.array(types.string())),
2260
- aliases: types.optional(
2261
- z.array(z.lazy(() => FetchInteractionIdentityAlias$inboundSchema)),
2262
- ),
2263
- relatedPersons: types.optional(
2264
- z.array(z.lazy(() => FetchInteractionIdentityRelatedPerson$inboundSchema)),
2265
- ),
2266
- dateOfBirth: types.optional(types.string()),
2267
- gender: types.optional(types.string()),
2268
- currentAddress: types.optional(
2269
- z.lazy(() => FetchInteractionIdentityCurrentAddress$inboundSchema),
2270
- ),
2271
- previousAddresses: types.optional(
2272
- z.array(
2273
- z.lazy(() => FetchInteractionIdentityPreviousAddress$inboundSchema),
2274
- ),
2275
- ),
2276
- placeOfBirth: types.optional(
2277
- z.lazy(() => FetchInteractionIdentityPlaceOfBirth$inboundSchema),
2278
- ),
2279
- idNumbers: types.optional(
2280
- z.array(z.lazy(() => FetchInteractionIdentityIdNumber$inboundSchema)),
2281
- ),
2282
- phones: types.optional(
2283
- z.array(z.lazy(() => FetchInteractionIdentityPhone$inboundSchema)),
2284
- ),
2285
- emails: types.optional(
2286
- z.array(z.lazy(() => FetchInteractionIdentityEmail$inboundSchema)),
2287
- ),
2288
- socials: types.optional(
2289
- z.array(z.lazy(() => FetchInteractionIdentitySocial$inboundSchema)),
2290
- ),
2291
- mothersMaidenName: types.optional(types.string()),
2292
- });
2293
-
2294
- export function fetchInteractionIdentityFromJSON(
2295
- jsonString: string,
2296
- ): SafeParseResult<FetchInteractionIdentity, SDKValidationError> {
2297
- return safeParse(
2298
- jsonString,
2299
- (x) => FetchInteractionIdentity$inboundSchema.parse(JSON.parse(x)),
2300
- `Failed to parse 'FetchInteractionIdentity' from JSON`,
2301
- );
2302
- }
2303
-
2304
- /** @internal */
2305
- export const FetchInteractionAddress$inboundSchema: z.ZodMiniType<
2306
- FetchInteractionAddress,
2307
- unknown
2308
- > = z.object({
2309
- addressString: types.optional(types.string()),
2310
- extractedAddressString: types.optional(types.string()),
2311
- addressLine1: types.optional(types.string()),
2312
- addressLine2: types.optional(types.string()),
2313
- locality: types.optional(types.string()),
2314
- administrativeArea: types.optional(types.string()),
2315
- postalCode: types.optional(types.string()),
2316
- });
2317
-
2318
- export function fetchInteractionAddressFromJSON(
2319
- jsonString: string,
2320
- ): SafeParseResult<FetchInteractionAddress, SDKValidationError> {
2321
- return safeParse(
2322
- jsonString,
2323
- (x) => FetchInteractionAddress$inboundSchema.parse(JSON.parse(x)),
2324
- `Failed to parse 'FetchInteractionAddress' from JSON`,
2325
- );
2326
- }
2327
-
2328
- /** @internal */
2329
- export const FetchInteractionDocumentDevice$inboundSchema: z.ZodMiniType<
2330
- FetchInteractionDocumentDevice,
2331
- unknown
2332
- > = z.object({
2333
- type: types.optional(types.string()),
2334
- model: types.optional(types.string()),
2335
- hasContactlessReader: types.optional(types.boolean()),
2336
- hasMagneticStripeReader: types.optional(types.boolean()),
2337
- hasCamera: types.optional(types.boolean()),
2338
- serialNumber: types.optional(types.string()),
2339
- manufacturer: types.optional(types.string()),
2340
- });
2341
-
2342
- export function fetchInteractionDocumentDeviceFromJSON(
2343
- jsonString: string,
2344
- ): SafeParseResult<FetchInteractionDocumentDevice, SDKValidationError> {
2345
- return safeParse(
2346
- jsonString,
2347
- (x) => FetchInteractionDocumentDevice$inboundSchema.parse(JSON.parse(x)),
2348
- `Failed to parse 'FetchInteractionDocumentDevice' from JSON`,
2349
- );
2350
- }
2351
-
2352
- /** @internal */
2353
- export const FetchInteractionName$inboundSchema: z.ZodMiniType<
2354
- FetchInteractionName,
2355
- unknown
2356
- > = openEnums.inboundSchema(FetchInteractionName);
2357
-
2358
- /** @internal */
2359
- export const FetchInteractionLd$inboundSchema: z.ZodMiniType<
2360
- FetchInteractionLd,
2361
- unknown
2362
- > = z.catchall(
2363
- z.object({
2364
- name: FetchInteractionName$inboundSchema,
2365
- data: types.string(),
2366
- }),
2367
- z.any(),
2368
- );
2369
-
2370
- export function fetchInteractionLdFromJSON(
2371
- jsonString: string,
2372
- ): SafeParseResult<FetchInteractionLd, SDKValidationError> {
2373
- return safeParse(
2374
- jsonString,
2375
- (x) => FetchInteractionLd$inboundSchema.parse(JSON.parse(x)),
2376
- `Failed to parse 'FetchInteractionLd' from JSON`,
2377
- );
2378
- }
2379
-
2380
- /** @internal */
2381
- export const FetchInteractionAuthType$inboundSchema: z.ZodMiniType<
2382
- FetchInteractionAuthType,
2383
- unknown
2384
- > = openEnums.inboundSchema(FetchInteractionAuthType);
2385
-
2386
- /** @internal */
2387
- export const FetchInteractionResult$inboundSchema: z.ZodMiniType<
2388
- FetchInteractionResult,
2389
- unknown
2390
- > = openEnums.inboundSchema(FetchInteractionResult);
2391
-
2392
- /** @internal */
2393
- export const FetchInteractionChipAuth$inboundSchema: z.ZodMiniType<
2394
- FetchInteractionChipAuth,
2395
- unknown
2396
- > = z.catchall(
2397
- z.object({
2398
- type: FetchInteractionAuthType$inboundSchema,
2399
- result: FetchInteractionResult$inboundSchema,
2400
- }),
2401
- z.any(),
2402
- );
2403
-
2404
- export function fetchInteractionChipAuthFromJSON(
2405
- jsonString: string,
2406
- ): SafeParseResult<FetchInteractionChipAuth, SDKValidationError> {
2407
- return safeParse(
2408
- jsonString,
2409
- (x) => FetchInteractionChipAuth$inboundSchema.parse(JSON.parse(x)),
2410
- `Failed to parse 'FetchInteractionChipAuth' from JSON`,
2411
- );
2412
- }
2413
-
2414
- /** @internal */
2415
- export const FetchInteractionChip$inboundSchema: z.ZodMiniType<
2416
- FetchInteractionChip,
2417
- unknown
2418
- > = z.catchall(
2419
- z.object({
2420
- lds: z.array(z.lazy(() => FetchInteractionLd$inboundSchema)),
2421
- auth: z.array(z.lazy(() => FetchInteractionChipAuth$inboundSchema)),
2422
- }),
2423
- z.any(),
2424
- );
2425
-
2426
- export function fetchInteractionChipFromJSON(
2427
- jsonString: string,
2428
- ): SafeParseResult<FetchInteractionChip, SDKValidationError> {
2429
- return safeParse(
2430
- jsonString,
2431
- (x) => FetchInteractionChip$inboundSchema.parse(JSON.parse(x)),
2432
- `Failed to parse 'FetchInteractionChip' from JSON`,
2433
- );
2434
- }
2435
-
2436
- /** @internal */
2437
- export const FetchInteractionSide$inboundSchema: z.ZodMiniType<
2438
- FetchInteractionSide,
2439
- unknown
2440
- > = z.object({
2441
- side: types.string(),
2442
- id: types.string(),
2443
- documentQuality: types.string(),
2444
- documentQualityScore: types.number(),
2445
- });
2446
-
2447
- export function fetchInteractionSideFromJSON(
2448
- jsonString: string,
2449
- ): SafeParseResult<FetchInteractionSide, SDKValidationError> {
2450
- return safeParse(
2451
- jsonString,
2452
- (x) => FetchInteractionSide$inboundSchema.parse(JSON.parse(x)),
2453
- `Failed to parse 'FetchInteractionSide' from JSON`,
2454
- );
2455
- }
2456
-
2457
- /** @internal */
2458
- export const FetchInteractionClassification$inboundSchema: z.ZodMiniType<
2459
- FetchInteractionClassification,
2460
- unknown
2461
- > = z.object({
2462
- ids: types.optional(z.array(types.string())),
2463
- category: types.optional(types.string()),
2464
- type: types.optional(types.string()),
2465
- subtype: types.optional(types.string()),
2466
- isDoubleSided: types.optional(types.boolean()),
2467
- hasNFC: types.optional(types.boolean()),
2468
- year: types.optional(types.string()),
2469
- countryCode: types.optional(types.string()),
2470
- countryName: types.optional(types.string()),
2471
- stateCode: types.optional(types.string()),
2472
- stateName: types.optional(types.string()),
2473
- sides: types.optional(
2474
- z.array(z.lazy(() => FetchInteractionSide$inboundSchema)),
2475
- ),
2476
- });
2477
-
2478
- export function fetchInteractionClassificationFromJSON(
2479
- jsonString: string,
2480
- ): SafeParseResult<FetchInteractionClassification, SDKValidationError> {
2481
- return safeParse(
2482
- jsonString,
2483
- (x) => FetchInteractionClassification$inboundSchema.parse(JSON.parse(x)),
2484
- `Failed to parse 'FetchInteractionClassification' from JSON`,
2485
- );
2486
- }
2487
-
2488
- /** @internal */
2489
- export const FetchInteractionAggregatedFieldBoundingBox$inboundSchema:
2490
- z.ZodMiniType<FetchInteractionAggregatedFieldBoundingBox, unknown> = z.object(
2491
- {
2492
- x: types.number(),
2493
- y: types.number(),
2494
- width: types.number(),
2495
- height: types.number(),
2496
- },
2497
- );
2498
-
2499
- export function fetchInteractionAggregatedFieldBoundingBoxFromJSON(
2500
- jsonString: string,
2501
- ): SafeParseResult<
2502
- FetchInteractionAggregatedFieldBoundingBox,
2503
- SDKValidationError
2504
- > {
2505
- return safeParse(
2506
- jsonString,
2507
- (x) =>
2508
- FetchInteractionAggregatedFieldBoundingBox$inboundSchema.parse(
2509
- JSON.parse(x),
2510
- ),
2511
- `Failed to parse 'FetchInteractionAggregatedFieldBoundingBox' from JSON`,
2512
- );
2513
- }
2514
-
2515
- /** @internal */
2516
- export const FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema:
2517
- z.ZodMiniType<FetchInteractionAggregatedFieldRegionOfInterest, unknown> = z
2518
- .object({
2519
- boundingBox: types.optional(
2520
- z.lazy(() => FetchInteractionAggregatedFieldBoundingBox$inboundSchema),
2521
- ),
2522
- side: types.string(),
2523
- spectrum: types.optional(types.string()),
2524
- imageId: types.optional(types.string()),
2525
- });
2526
-
2527
- export function fetchInteractionAggregatedFieldRegionOfInterestFromJSON(
2528
- jsonString: string,
2529
- ): SafeParseResult<
2530
- FetchInteractionAggregatedFieldRegionOfInterest,
2531
- SDKValidationError
2532
- > {
2533
- return safeParse(
2534
- jsonString,
2535
- (x) =>
2536
- FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema.parse(
2537
- JSON.parse(x),
2538
- ),
2539
- `Failed to parse 'FetchInteractionAggregatedFieldRegionOfInterest' from JSON`,
2540
- );
2541
- }
2542
-
2543
- /** @internal */
2544
- export const FetchInteractionAggregatedField$inboundSchema: z.ZodMiniType<
2545
- FetchInteractionAggregatedField,
2546
- unknown
2547
- > = z.object({
2548
- label: types.string(),
2549
- value: types.string(),
2550
- source: types.string(),
2551
- isNonLatin: types.boolean(),
2552
- regionOfInterest: types.optional(
2553
- z.lazy(() => FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema),
2554
- ),
2555
- });
2556
-
2557
- export function fetchInteractionAggregatedFieldFromJSON(
2558
- jsonString: string,
2559
- ): SafeParseResult<FetchInteractionAggregatedField, SDKValidationError> {
2560
- return safeParse(
2561
- jsonString,
2562
- (x) => FetchInteractionAggregatedField$inboundSchema.parse(JSON.parse(x)),
2563
- `Failed to parse 'FetchInteractionAggregatedField' from JSON`,
2564
- );
2565
- }
2566
-
2567
- /** @internal */
2568
- export const FetchInteractionDetailBoundingBox$inboundSchema: z.ZodMiniType<
2569
- FetchInteractionDetailBoundingBox,
2570
- unknown
2571
- > = z.object({
2572
- x: types.number(),
2573
- y: types.number(),
2574
- width: types.number(),
2575
- height: types.number(),
2576
- });
2577
-
2578
- export function fetchInteractionDetailBoundingBoxFromJSON(
2579
- jsonString: string,
2580
- ): SafeParseResult<FetchInteractionDetailBoundingBox, SDKValidationError> {
2581
- return safeParse(
2582
- jsonString,
2583
- (x) => FetchInteractionDetailBoundingBox$inboundSchema.parse(JSON.parse(x)),
2584
- `Failed to parse 'FetchInteractionDetailBoundingBox' from JSON`,
2585
- );
2586
- }
2587
-
2588
- /** @internal */
2589
- export const FetchInteractionDetailRegionOfInterest$inboundSchema:
2590
- z.ZodMiniType<FetchInteractionDetailRegionOfInterest, unknown> = z.object({
2591
- boundingBox: types.optional(
2592
- z.lazy(() => FetchInteractionDetailBoundingBox$inboundSchema),
2593
- ),
2594
- side: types.string(),
2595
- spectrum: types.optional(types.string()),
2596
- imageId: types.optional(types.string()),
2597
- });
2598
-
2599
- export function fetchInteractionDetailRegionOfInterestFromJSON(
2600
- jsonString: string,
2601
- ): SafeParseResult<FetchInteractionDetailRegionOfInterest, SDKValidationError> {
2602
- return safeParse(
2603
- jsonString,
2604
- (x) =>
2605
- FetchInteractionDetailRegionOfInterest$inboundSchema.parse(JSON.parse(x)),
2606
- `Failed to parse 'FetchInteractionDetailRegionOfInterest' from JSON`,
2607
- );
2608
- }
2609
-
2610
- /** @internal */
2611
- export const FetchInteractionDetail$inboundSchema: z.ZodMiniType<
2612
- FetchInteractionDetail,
2613
- unknown
2614
- > = z.object({
2615
- label: types.string(),
2616
- value: types.string(),
2617
- source: types.string(),
2618
- isNonLatin: types.boolean(),
2619
- regionOfInterest: types.optional(
2620
- z.lazy(() => FetchInteractionDetailRegionOfInterest$inboundSchema),
2621
- ),
2622
- });
2623
-
2624
- export function fetchInteractionDetailFromJSON(
2625
- jsonString: string,
2626
- ): SafeParseResult<FetchInteractionDetail, SDKValidationError> {
2627
- return safeParse(
2628
- jsonString,
2629
- (x) => FetchInteractionDetail$inboundSchema.parse(JSON.parse(x)),
2630
- `Failed to parse 'FetchInteractionDetail' from JSON`,
2631
- );
2632
- }
2633
-
2634
- /** @internal */
2635
- export const FetchInteractionExtractedField$inboundSchema: z.ZodMiniType<
2636
- FetchInteractionExtractedField,
2637
- unknown
2638
- > = z.object({
2639
- label: types.string(),
2640
- details: z.array(z.lazy(() => FetchInteractionDetail$inboundSchema)),
2641
- });
2642
-
2643
- export function fetchInteractionExtractedFieldFromJSON(
2644
- jsonString: string,
2645
- ): SafeParseResult<FetchInteractionExtractedField, SDKValidationError> {
2646
- return safeParse(
2647
- jsonString,
2648
- (x) => FetchInteractionExtractedField$inboundSchema.parse(JSON.parse(x)),
2649
- `Failed to parse 'FetchInteractionExtractedField' from JSON`,
2650
- );
2651
- }
2652
-
2653
- /** @internal */
2654
- export const FetchInteractionExtractedImage$inboundSchema: z.ZodMiniType<
2655
- FetchInteractionExtractedImage,
2656
- unknown
2657
- > = z.object({
2658
- label: types.string(),
2659
- side: types.string(),
2660
- imageID: types.string(),
2661
- });
2662
-
2663
- export function fetchInteractionExtractedImageFromJSON(
2664
- jsonString: string,
2665
- ): SafeParseResult<FetchInteractionExtractedImage, SDKValidationError> {
2666
- return safeParse(
2667
- jsonString,
2668
- (x) => FetchInteractionExtractedImage$inboundSchema.parse(JSON.parse(x)),
2669
- `Failed to parse 'FetchInteractionExtractedImage' from JSON`,
2670
- );
2671
- }
2672
-
2673
- /** @internal */
2674
- export const FetchInteractionExtraction$inboundSchema: z.ZodMiniType<
2675
- FetchInteractionExtraction,
2676
- unknown
2677
- > = z.object({
2678
- aggregatedFields: types.optional(
2679
- z.array(z.lazy(() => FetchInteractionAggregatedField$inboundSchema)),
2680
- ),
2681
- extractedFields: types.optional(
2682
- z.array(z.lazy(() => FetchInteractionExtractedField$inboundSchema)),
2683
- ),
2684
- extractedImages: types.optional(
2685
- z.array(z.lazy(() => FetchInteractionExtractedImage$inboundSchema)),
2686
- ),
2687
- });
2688
-
2689
- export function fetchInteractionExtractionFromJSON(
2690
- jsonString: string,
2691
- ): SafeParseResult<FetchInteractionExtraction, SDKValidationError> {
2692
- return safeParse(
2693
- jsonString,
2694
- (x) => FetchInteractionExtraction$inboundSchema.parse(JSON.parse(x)),
2695
- `Failed to parse 'FetchInteractionExtraction' from JSON`,
2696
- );
2697
- }
2698
-
2699
- /** @internal */
2700
- export const FetchInteractionValidationCheckBoundingBox$inboundSchema:
2701
- z.ZodMiniType<FetchInteractionValidationCheckBoundingBox, unknown> = z.object(
2702
- {
2703
- x: types.number(),
2704
- y: types.number(),
2705
- width: types.number(),
2706
- height: types.number(),
2707
- },
2708
- );
2709
-
2710
- export function fetchInteractionValidationCheckBoundingBoxFromJSON(
2711
- jsonString: string,
2712
- ): SafeParseResult<
2713
- FetchInteractionValidationCheckBoundingBox,
2714
- SDKValidationError
2715
- > {
2716
- return safeParse(
2717
- jsonString,
2718
- (x) =>
2719
- FetchInteractionValidationCheckBoundingBox$inboundSchema.parse(
2720
- JSON.parse(x),
2721
- ),
2722
- `Failed to parse 'FetchInteractionValidationCheckBoundingBox' from JSON`,
2723
- );
2724
- }
2725
-
2726
- /** @internal */
2727
- export const FetchInteractionValidationCheckRegionOfInterest$inboundSchema:
2728
- z.ZodMiniType<FetchInteractionValidationCheckRegionOfInterest, unknown> = z
2729
- .object({
2730
- boundingBox: types.optional(
2731
- z.lazy(() => FetchInteractionValidationCheckBoundingBox$inboundSchema),
2732
- ),
2733
- side: types.string(),
2734
- spectrum: types.optional(types.string()),
2735
- imageId: types.optional(types.string()),
2736
- });
2737
-
2738
- export function fetchInteractionValidationCheckRegionOfInterestFromJSON(
2739
- jsonString: string,
2740
- ): SafeParseResult<
2741
- FetchInteractionValidationCheckRegionOfInterest,
2742
- SDKValidationError
2743
- > {
2744
- return safeParse(
2745
- jsonString,
2746
- (x) =>
2747
- FetchInteractionValidationCheckRegionOfInterest$inboundSchema.parse(
2748
- JSON.parse(x),
2749
- ),
2750
- `Failed to parse 'FetchInteractionValidationCheckRegionOfInterest' from JSON`,
2751
- );
2752
- }
2753
-
2754
- /** @internal */
2755
- export const FetchInteractionValidationCheck$inboundSchema: z.ZodMiniType<
2756
- FetchInteractionValidationCheck,
2757
- unknown
2758
- > = z.object({
2759
- name: types.string(),
2760
- title: types.string(),
2761
- info: types.string(),
2762
- validationResult: types.string(),
2763
- resultInfo: types.string(),
2764
- weight: types.string(),
2765
- regionOfInterests: types.optional(
2766
- z.array(z.lazy(() =>
2767
- FetchInteractionValidationCheckRegionOfInterest$inboundSchema
2768
- )),
2769
- ),
2770
- type: types.string(),
2771
- });
2772
-
2773
- export function fetchInteractionValidationCheckFromJSON(
2774
- jsonString: string,
2775
- ): SafeParseResult<FetchInteractionValidationCheck, SDKValidationError> {
2776
- return safeParse(
2777
- jsonString,
2778
- (x) => FetchInteractionValidationCheck$inboundSchema.parse(JSON.parse(x)),
2779
- `Failed to parse 'FetchInteractionValidationCheck' from JSON`,
2780
- );
2781
- }
2782
-
2783
- /** @internal */
2784
- export const FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema:
2785
- z.ZodMiniType<FetchInteractionAggregatedValidationCheckBoundingBox, unknown> =
2786
- z.object({
2787
- x: types.number(),
2788
- y: types.number(),
2789
- width: types.number(),
2790
- height: types.number(),
2791
- });
2792
-
2793
- export function fetchInteractionAggregatedValidationCheckBoundingBoxFromJSON(
2794
- jsonString: string,
2795
- ): SafeParseResult<
2796
- FetchInteractionAggregatedValidationCheckBoundingBox,
2797
- SDKValidationError
2798
- > {
2799
- return safeParse(
2800
- jsonString,
2801
- (x) =>
2802
- FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema.parse(
2803
- JSON.parse(x),
2804
- ),
2805
- `Failed to parse 'FetchInteractionAggregatedValidationCheckBoundingBox' from JSON`,
2806
- );
2807
- }
2808
-
2809
- /** @internal */
2810
- export const FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema:
2811
- z.ZodMiniType<
2812
- FetchInteractionAggregatedValidationCheckRegionOfInterest,
2813
- unknown
2814
- > = z.object({
2815
- boundingBox: types.optional(
2816
- z.lazy(() =>
2817
- FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema
2818
- ),
2819
- ),
2820
- side: types.string(),
2821
- spectrum: types.optional(types.string()),
2822
- imageId: types.optional(types.string()),
2823
- });
2824
-
2825
- export function fetchInteractionAggregatedValidationCheckRegionOfInterestFromJSON(
2826
- jsonString: string,
2827
- ): SafeParseResult<
2828
- FetchInteractionAggregatedValidationCheckRegionOfInterest,
2829
- SDKValidationError
2830
- > {
2831
- return safeParse(
2832
- jsonString,
2833
- (x) =>
2834
- FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema
2835
- .parse(JSON.parse(x)),
2836
- `Failed to parse 'FetchInteractionAggregatedValidationCheckRegionOfInterest' from JSON`,
2837
- );
2838
- }
2839
-
2840
- /** @internal */
2841
- export const FetchInteractionAggregatedValidationCheck$inboundSchema:
2842
- z.ZodMiniType<FetchInteractionAggregatedValidationCheck, unknown> = z.object({
2843
- name: types.string(),
2844
- title: types.string(),
2845
- info: types.string(),
2846
- validationResult: types.string(),
2847
- resultInfo: types.string(),
2848
- weight: types.string(),
2849
- regionOfInterests: types.optional(
2850
- z.array(z.lazy(() =>
2851
- FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema
2852
- )),
2853
- ),
2854
- type: types.string(),
2855
- });
2856
-
2857
- export function fetchInteractionAggregatedValidationCheckFromJSON(
2858
- jsonString: string,
2859
- ): SafeParseResult<
2860
- FetchInteractionAggregatedValidationCheck,
2861
- SDKValidationError
2862
- > {
2863
- return safeParse(
2864
- jsonString,
2865
- (x) =>
2866
- FetchInteractionAggregatedValidationCheck$inboundSchema.parse(
2867
- JSON.parse(x),
2868
- ),
2869
- `Failed to parse 'FetchInteractionAggregatedValidationCheck' from JSON`,
2870
- );
2871
- }
2872
-
2873
- /** @internal */
2874
- export const FetchInteractionValidation$inboundSchema: z.ZodMiniType<
2875
- FetchInteractionValidation,
2876
- unknown
2877
- > = z.object({
2878
- validationChecks: types.optional(
2879
- z.array(z.lazy(() => FetchInteractionValidationCheck$inboundSchema)),
2880
- ),
2881
- aggregatedValidationChecks: types.optional(
2882
- z.array(
2883
- z.lazy(() => FetchInteractionAggregatedValidationCheck$inboundSchema),
2884
- ),
2885
- ),
2886
- });
2887
-
2888
- export function fetchInteractionValidationFromJSON(
2889
- jsonString: string,
2890
- ): SafeParseResult<FetchInteractionValidation, SDKValidationError> {
2891
- return safeParse(
2892
- jsonString,
2893
- (x) => FetchInteractionValidation$inboundSchema.parse(JSON.parse(x)),
2894
- `Failed to parse 'FetchInteractionValidation' from JSON`,
2895
- );
2896
- }
2897
-
2898
- /** @internal */
2899
- export const FetchInteractionDocumentAlias$inboundSchema: z.ZodMiniType<
2900
- FetchInteractionDocumentAlias,
2901
- unknown
2902
- > = z.object({
2903
- title: types.optional(types.string()),
2904
- firstName: types.optional(types.string()),
2905
- middleNames: types.optional(z.array(types.string())),
2906
- lastNames: types.optional(z.array(types.string())),
2907
- lastNamesAtBirth: types.optional(z.array(types.string())),
2908
- });
2909
-
2910
- export function fetchInteractionDocumentAliasFromJSON(
2911
- jsonString: string,
2912
- ): SafeParseResult<FetchInteractionDocumentAlias, SDKValidationError> {
2913
- return safeParse(
2914
- jsonString,
2915
- (x) => FetchInteractionDocumentAlias$inboundSchema.parse(JSON.parse(x)),
2916
- `Failed to parse 'FetchInteractionDocumentAlias' from JSON`,
2917
- );
2918
- }
2919
-
2920
- /** @internal */
2921
- export const FetchInteractionDocumentRelationship$inboundSchema: z.ZodMiniType<
2922
- FetchInteractionDocumentRelationship,
2923
- unknown
2924
- > = openEnums.inboundSchema(FetchInteractionDocumentRelationship);
2925
-
2926
- /** @internal */
2927
- export const FetchInteractionDocumentRelatedPerson$inboundSchema: z.ZodMiniType<
2928
- FetchInteractionDocumentRelatedPerson,
2929
- unknown
2930
- > = z.object({
2931
- title: types.optional(types.string()),
2932
- firstName: types.optional(types.string()),
2933
- middleNames: types.optional(z.array(types.string())),
2934
- lastNames: types.optional(z.array(types.string())),
2935
- lastNamesAtBirth: types.optional(z.array(types.string())),
2936
- relationship: FetchInteractionDocumentRelationship$inboundSchema,
2937
- });
2938
-
2939
- export function fetchInteractionDocumentRelatedPersonFromJSON(
2940
- jsonString: string,
2941
- ): SafeParseResult<FetchInteractionDocumentRelatedPerson, SDKValidationError> {
2942
- return safeParse(
2943
- jsonString,
2944
- (x) =>
2945
- FetchInteractionDocumentRelatedPerson$inboundSchema.parse(JSON.parse(x)),
2946
- `Failed to parse 'FetchInteractionDocumentRelatedPerson' from JSON`,
2947
- );
2948
- }
2949
-
2950
- /** @internal */
2951
- export const FetchInteractionDocumentCurrentAddressLocation$inboundSchema:
2952
- z.ZodMiniType<FetchInteractionDocumentCurrentAddressLocation, unknown> = z
2953
- .object({
2954
- latitude: types.optional(types.string()),
2955
- longitude: types.optional(types.string()),
2956
- geoAccuracy: types.optional(types.string()),
2957
- what3words: types.optional(types.string()),
2958
- });
2959
-
2960
- export function fetchInteractionDocumentCurrentAddressLocationFromJSON(
2961
- jsonString: string,
2962
- ): SafeParseResult<
2963
- FetchInteractionDocumentCurrentAddressLocation,
2964
- SDKValidationError
2965
- > {
2966
- return safeParse(
2967
- jsonString,
2968
- (x) =>
2969
- FetchInteractionDocumentCurrentAddressLocation$inboundSchema.parse(
2970
- JSON.parse(x),
2971
- ),
2972
- `Failed to parse 'FetchInteractionDocumentCurrentAddressLocation' from JSON`,
2973
- );
2974
- }
2975
-
2976
- /** @internal */
2977
- export const FetchInteractionDocumentCurrentAddress$inboundSchema:
2978
- z.ZodMiniType<FetchInteractionDocumentCurrentAddress, unknown> = z.object({
2979
- lines: types.optional(z.array(types.string())),
2980
- addressString: types.optional(types.string()),
2981
- premise: types.optional(types.string()),
2982
- building: types.optional(types.string()),
2983
- subBuilding: types.optional(types.string()),
2984
- thoroughfare: types.optional(types.string()),
2985
- dependentThoroughfare: types.optional(types.string()),
2986
- locality: types.optional(types.string()),
2987
- dependentLocality: types.optional(types.string()),
2988
- doubleDependentLocality: types.optional(types.string()),
2989
- postalCode: types.optional(types.string()),
2990
- postBox: types.optional(types.string()),
2991
- country: types.optional(types.string()),
2992
- superAdministrativeArea: types.optional(types.string()),
2993
- administrativeArea: types.optional(types.string()),
2994
- subAdministrativeArea: types.optional(types.string()),
2995
- organization: types.optional(types.string()),
2996
- location: types.optional(
2997
- z.lazy(() =>
2998
- FetchInteractionDocumentCurrentAddressLocation$inboundSchema
2999
- ),
3000
- ),
3001
- });
3002
-
3003
- export function fetchInteractionDocumentCurrentAddressFromJSON(
3004
- jsonString: string,
3005
- ): SafeParseResult<FetchInteractionDocumentCurrentAddress, SDKValidationError> {
3006
- return safeParse(
3007
- jsonString,
3008
- (x) =>
3009
- FetchInteractionDocumentCurrentAddress$inboundSchema.parse(JSON.parse(x)),
3010
- `Failed to parse 'FetchInteractionDocumentCurrentAddress' from JSON`,
3011
- );
3012
- }
3013
-
3014
- /** @internal */
3015
- export const FetchInteractionDocumentPreviousAddressLocation$inboundSchema:
3016
- z.ZodMiniType<FetchInteractionDocumentPreviousAddressLocation, unknown> = z
3017
- .object({
3018
- latitude: types.optional(types.string()),
3019
- longitude: types.optional(types.string()),
3020
- geoAccuracy: types.optional(types.string()),
3021
- what3words: types.optional(types.string()),
3022
- });
3023
-
3024
- export function fetchInteractionDocumentPreviousAddressLocationFromJSON(
3025
- jsonString: string,
3026
- ): SafeParseResult<
3027
- FetchInteractionDocumentPreviousAddressLocation,
3028
- SDKValidationError
3029
- > {
3030
- return safeParse(
3031
- jsonString,
3032
- (x) =>
3033
- FetchInteractionDocumentPreviousAddressLocation$inboundSchema.parse(
3034
- JSON.parse(x),
3035
- ),
3036
- `Failed to parse 'FetchInteractionDocumentPreviousAddressLocation' from JSON`,
3037
- );
3038
- }
3039
-
3040
- /** @internal */
3041
- export const FetchInteractionDocumentPreviousAddress$inboundSchema:
3042
- z.ZodMiniType<FetchInteractionDocumentPreviousAddress, unknown> = z.object({
3043
- lines: types.optional(z.array(types.string())),
3044
- addressString: types.optional(types.string()),
3045
- premise: types.optional(types.string()),
3046
- building: types.optional(types.string()),
3047
- subBuilding: types.optional(types.string()),
3048
- thoroughfare: types.optional(types.string()),
3049
- dependentThoroughfare: types.optional(types.string()),
3050
- locality: types.optional(types.string()),
3051
- dependentLocality: types.optional(types.string()),
3052
- doubleDependentLocality: types.optional(types.string()),
3053
- postalCode: types.optional(types.string()),
3054
- postBox: types.optional(types.string()),
3055
- country: types.optional(types.string()),
3056
- superAdministrativeArea: types.optional(types.string()),
3057
- administrativeArea: types.optional(types.string()),
3058
- subAdministrativeArea: types.optional(types.string()),
3059
- organization: types.optional(types.string()),
3060
- location: types.optional(
3061
- z.lazy(() =>
3062
- FetchInteractionDocumentPreviousAddressLocation$inboundSchema
3063
- ),
3064
- ),
3065
- fromDate: types.string(),
3066
- toDate: types.string(),
3067
- });
3068
-
3069
- export function fetchInteractionDocumentPreviousAddressFromJSON(
3070
- jsonString: string,
3071
- ): SafeParseResult<
3072
- FetchInteractionDocumentPreviousAddress,
3073
- SDKValidationError
3074
- > {
3075
- return safeParse(
3076
- jsonString,
3077
- (x) =>
3078
- FetchInteractionDocumentPreviousAddress$inboundSchema.parse(
3079
- JSON.parse(x),
3080
- ),
3081
- `Failed to parse 'FetchInteractionDocumentPreviousAddress' from JSON`,
3082
- );
3083
- }
3084
-
3085
- /** @internal */
3086
- export const FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema:
3087
- z.ZodMiniType<FetchInteractionDocumentPlaceOfBirthLocation, unknown> = z
3088
- .object({
3089
- latitude: types.optional(types.string()),
3090
- longitude: types.optional(types.string()),
3091
- geoAccuracy: types.optional(types.string()),
3092
- what3words: types.optional(types.string()),
3093
- });
3094
-
3095
- export function fetchInteractionDocumentPlaceOfBirthLocationFromJSON(
3096
- jsonString: string,
3097
- ): SafeParseResult<
3098
- FetchInteractionDocumentPlaceOfBirthLocation,
3099
- SDKValidationError
3100
- > {
3101
- return safeParse(
3102
- jsonString,
3103
- (x) =>
3104
- FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema.parse(
3105
- JSON.parse(x),
3106
- ),
3107
- `Failed to parse 'FetchInteractionDocumentPlaceOfBirthLocation' from JSON`,
3108
- );
3109
- }
3110
-
3111
- /** @internal */
3112
- export const FetchInteractionDocumentPlaceOfBirth$inboundSchema: z.ZodMiniType<
3113
- FetchInteractionDocumentPlaceOfBirth,
3114
- unknown
3115
- > = z.object({
3116
- lines: types.optional(z.array(types.string())),
3117
- addressString: types.optional(types.string()),
3118
- premise: types.optional(types.string()),
3119
- building: types.optional(types.string()),
3120
- subBuilding: types.optional(types.string()),
3121
- thoroughfare: types.optional(types.string()),
3122
- dependentThoroughfare: types.optional(types.string()),
3123
- locality: types.optional(types.string()),
3124
- dependentLocality: types.optional(types.string()),
3125
- doubleDependentLocality: types.optional(types.string()),
3126
- postalCode: types.optional(types.string()),
3127
- postBox: types.optional(types.string()),
3128
- country: types.optional(types.string()),
3129
- superAdministrativeArea: types.optional(types.string()),
3130
- administrativeArea: types.optional(types.string()),
3131
- subAdministrativeArea: types.optional(types.string()),
3132
- organization: types.optional(types.string()),
3133
- location: types.optional(
3134
- z.lazy(() => FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema),
3135
- ),
3136
- });
3137
-
3138
- export function fetchInteractionDocumentPlaceOfBirthFromJSON(
3139
- jsonString: string,
3140
- ): SafeParseResult<FetchInteractionDocumentPlaceOfBirth, SDKValidationError> {
3141
- return safeParse(
3142
- jsonString,
3143
- (x) =>
3144
- FetchInteractionDocumentPlaceOfBirth$inboundSchema.parse(JSON.parse(x)),
3145
- `Failed to parse 'FetchInteractionDocumentPlaceOfBirth' from JSON`,
3146
- );
3147
- }
3148
-
3149
- /** @internal */
3150
- export const FetchInteractionDocumentIdNumber$inboundSchema: z.ZodMiniType<
3151
- FetchInteractionDocumentIdNumber,
3152
- unknown
3153
- > = z.object({
3154
- type: types.string(),
3155
- idNumber: types.string(),
3156
- country: types.optional(types.string()),
3157
- });
3158
-
3159
- export function fetchInteractionDocumentIdNumberFromJSON(
3160
- jsonString: string,
3161
- ): SafeParseResult<FetchInteractionDocumentIdNumber, SDKValidationError> {
3162
- return safeParse(
3163
- jsonString,
3164
- (x) => FetchInteractionDocumentIdNumber$inboundSchema.parse(JSON.parse(x)),
3165
- `Failed to parse 'FetchInteractionDocumentIdNumber' from JSON`,
3166
- );
3167
- }
3168
-
3169
- /** @internal */
3170
- export const FetchInteractionDocumentPhone$inboundSchema: z.ZodMiniType<
3171
- FetchInteractionDocumentPhone,
3172
- unknown
3173
- > = z.object({
3174
- type: types.string(),
3175
- number: types.string(),
3176
- });
3177
-
3178
- export function fetchInteractionDocumentPhoneFromJSON(
3179
- jsonString: string,
3180
- ): SafeParseResult<FetchInteractionDocumentPhone, SDKValidationError> {
3181
- return safeParse(
3182
- jsonString,
3183
- (x) => FetchInteractionDocumentPhone$inboundSchema.parse(JSON.parse(x)),
3184
- `Failed to parse 'FetchInteractionDocumentPhone' from JSON`,
3185
- );
3186
- }
3187
-
3188
- /** @internal */
3189
- export const FetchInteractionDocumentEmail$inboundSchema: z.ZodMiniType<
3190
- FetchInteractionDocumentEmail,
3191
- unknown
3192
- > = z.object({
3193
- type: types.string(),
3194
- email: types.string(),
3195
- });
3196
-
3197
- export function fetchInteractionDocumentEmailFromJSON(
3198
- jsonString: string,
3199
- ): SafeParseResult<FetchInteractionDocumentEmail, SDKValidationError> {
3200
- return safeParse(
3201
- jsonString,
3202
- (x) => FetchInteractionDocumentEmail$inboundSchema.parse(JSON.parse(x)),
3203
- `Failed to parse 'FetchInteractionDocumentEmail' from JSON`,
3204
- );
3205
- }
3206
-
3207
- /** @internal */
3208
- export const FetchInteractionDocumentSocial$inboundSchema: z.ZodMiniType<
3209
- FetchInteractionDocumentSocial,
3210
- unknown
3211
- > = z.object({
3212
- type: types.string(),
3213
- identity: types.string(),
3214
- });
3215
-
3216
- export function fetchInteractionDocumentSocialFromJSON(
3217
- jsonString: string,
3218
- ): SafeParseResult<FetchInteractionDocumentSocial, SDKValidationError> {
3219
- return safeParse(
3220
- jsonString,
3221
- (x) => FetchInteractionDocumentSocial$inboundSchema.parse(JSON.parse(x)),
3222
- `Failed to parse 'FetchInteractionDocumentSocial' from JSON`,
3223
- );
3224
- }
3225
-
3226
- /** @internal */
3227
- export const FetchInteractionDocumentSubject$inboundSchema: z.ZodMiniType<
3228
- FetchInteractionDocumentSubject,
3229
- unknown
3230
- > = z.object({
3231
- title: types.optional(types.string()),
3232
- firstName: types.optional(types.string()),
3233
- middleNames: types.optional(z.array(types.string())),
3234
- lastNames: types.optional(z.array(types.string())),
3235
- lastNamesAtBirth: types.optional(z.array(types.string())),
3236
- aliases: types.optional(
3237
- z.array(z.lazy(() => FetchInteractionDocumentAlias$inboundSchema)),
3238
- ),
3239
- relatedPersons: types.optional(
3240
- z.array(z.lazy(() => FetchInteractionDocumentRelatedPerson$inboundSchema)),
3241
- ),
3242
- dateOfBirth: types.optional(types.string()),
3243
- gender: types.optional(types.string()),
3244
- currentAddress: types.optional(
3245
- z.lazy(() => FetchInteractionDocumentCurrentAddress$inboundSchema),
3246
- ),
3247
- previousAddresses: types.optional(
3248
- z.array(
3249
- z.lazy(() => FetchInteractionDocumentPreviousAddress$inboundSchema),
3250
- ),
3251
- ),
3252
- placeOfBirth: types.optional(
3253
- z.lazy(() => FetchInteractionDocumentPlaceOfBirth$inboundSchema),
3254
- ),
3255
- idNumbers: types.optional(
3256
- z.array(z.lazy(() => FetchInteractionDocumentIdNumber$inboundSchema)),
3257
- ),
3258
- phones: types.optional(
3259
- z.array(z.lazy(() => FetchInteractionDocumentPhone$inboundSchema)),
3260
- ),
3261
- emails: types.optional(
3262
- z.array(z.lazy(() => FetchInteractionDocumentEmail$inboundSchema)),
3263
- ),
3264
- socials: types.optional(
3265
- z.array(z.lazy(() => FetchInteractionDocumentSocial$inboundSchema)),
3266
- ),
3267
- mothersMaidenName: types.optional(types.string()),
3268
- });
3269
-
3270
- export function fetchInteractionDocumentSubjectFromJSON(
3271
- jsonString: string,
3272
- ): SafeParseResult<FetchInteractionDocumentSubject, SDKValidationError> {
3273
- return safeParse(
3274
- jsonString,
3275
- (x) => FetchInteractionDocumentSubject$inboundSchema.parse(JSON.parse(x)),
3276
- `Failed to parse 'FetchInteractionDocumentSubject' from JSON`,
3277
- );
3278
- }
3279
-
3280
- /** @internal */
3281
- export const FetchInteractionDocument$inboundSchema: z.ZodMiniType<
3282
- FetchInteractionDocument,
3283
- unknown
3284
- > = z.object({
3285
- oneDBarcode: types.optional(types.string()),
3286
- address: types.optional(z.lazy(() => FetchInteractionAddress$inboundSchema)),
3287
- applicationDate: types.optional(types.string()),
3288
- applicationNumber: types.optional(types.string()),
3289
- dateOfBirth: types.optional(types.string()),
3290
- placeOfBirth: types.optional(types.string()),
3291
- placeOfBirthNative: types.optional(types.string()),
3292
- bloodType: types.optional(types.string()),
3293
- controlNumber: types.optional(types.string()),
3294
- countryCode: types.optional(types.string()),
3295
- countryName: types.optional(types.string()),
3296
- documentClassCode: types.optional(types.string()),
3297
- documentClassName: types.optional(types.string()),
3298
- documentNumber: types.optional(types.string()),
3299
- documentSignerCertificate: types.optional(types.string()),
3300
- employer: types.optional(types.string()),
3301
- employerAddress: types.optional(types.string()),
3302
- entries: types.optional(types.string()),
3303
- expirationDate: types.optional(types.string()),
3304
- eyeColor: types.optional(types.string()),
3305
- fathersName: types.optional(types.string()),
3306
- fathersNameNative: types.optional(types.string()),
3307
- fathersSurname: types.optional(types.string()),
3308
- firstName: types.optional(types.string()),
3309
- fullName: types.optional(types.string()),
3310
- fullNameNative: types.optional(types.string()),
3311
- givenName: types.optional(types.string()),
3312
- givenNameNative: types.optional(types.string()),
3313
- hairColor: types.optional(types.string()),
3314
- height: types.optional(types.string()),
3315
- issueDate: types.optional(types.string()),
3316
- issuingAuthority: types.optional(types.string()),
3317
- issuingAuthorityNative: types.optional(types.string()),
3318
- issuingStateCode: types.optional(types.string()),
3319
- issuingStateName: types.optional(types.string()),
3320
- licenseClass: types.optional(types.string()),
3321
- licenseEndorsements: types.optional(types.string()),
3322
- licenseRestrictions: types.optional(types.string()),
3323
- mrz: types.optional(types.string()),
3324
- mrz1: types.optional(types.string()),
3325
- mrz2: types.optional(types.string()),
3326
- mrz3: types.optional(types.string()),
3327
- middleName: types.optional(types.string()),
3328
- mothersName: types.optional(types.string()),
3329
- mothersNameNative: types.optional(types.string()),
3330
- mothersSurname: types.optional(types.string()),
3331
- nameSuffix: types.optional(types.string()),
3332
- nationalityCode: types.optional(types.string()),
3333
- nationalityName: types.optional(types.string()),
3334
- nationalityNameNative: types.optional(types.string()),
3335
- occupation: types.optional(types.string()),
3336
- organDonor: types.optional(types.boolean()),
3337
- passportNumber: types.optional(types.string()),
3338
- permitNumber: types.optional(types.string()),
3339
- personalNumber: types.optional(types.string()),
3340
- photo: types.optional(types.string()),
3341
- photoCompressed: types.optional(types.string()),
3342
- photoEncoding: types.optional(types.string()),
3343
- sex: types.optional(types.string()),
3344
- sexNative: types.optional(types.string()),
3345
- signature: types.optional(types.string()),
3346
- signatureCompressed: types.optional(types.string()),
3347
- signatureEncoding: types.optional(types.string()),
3348
- socialSecurityNumber: types.optional(types.string()),
3349
- startDate: types.optional(types.string()),
3350
- surname: types.optional(types.string()),
3351
- surnameNative: types.optional(types.string()),
3352
- visaClass: types.optional(types.string()),
3353
- visaNumber: types.optional(types.string()),
3354
- weight: types.optional(types.string()),
3355
- cardNumber: types.optional(types.string()),
3356
- issuerCountryCode: types.optional(types.string()),
3357
- id: types.optional(types.string()),
3358
- type: types.optional(types.string()),
3359
- category: types.optional(types.string()),
3360
- subtype: types.optional(types.string()),
3361
- format: types.optional(types.string()),
3362
- device: types.optional(
3363
- z.lazy(() => FetchInteractionDocumentDevice$inboundSchema),
3364
- ),
3365
- side1Image: types.optional(types.string()),
3366
- side2Image: types.optional(types.string()),
3367
- chip: types.optional(z.lazy(() => FetchInteractionChip$inboundSchema)),
3368
- classification: types.optional(
3369
- z.lazy(() => FetchInteractionClassification$inboundSchema),
3370
- ),
3371
- extraction: types.optional(
3372
- z.lazy(() => FetchInteractionExtraction$inboundSchema),
3373
- ),
3374
- validation: types.optional(
3375
- z.lazy(() => FetchInteractionValidation$inboundSchema),
3376
- ),
3377
- subType: types.optional(types.string()),
3378
- number: types.optional(types.string()),
3379
- expiryDate: types.optional(types.string()),
3380
- subject: types.optional(
3381
- z.lazy(() => FetchInteractionDocumentSubject$inboundSchema),
3382
- ),
3383
- country: types.optional(types.string()),
3384
- });
3385
-
3386
- export function fetchInteractionDocumentFromJSON(
3387
- jsonString: string,
3388
- ): SafeParseResult<FetchInteractionDocument, SDKValidationError> {
3389
- return safeParse(
3390
- jsonString,
3391
- (x) => FetchInteractionDocument$inboundSchema.parse(JSON.parse(x)),
3392
- `Failed to parse 'FetchInteractionDocument' from JSON`,
3393
- );
3394
- }
3395
-
3396
- /** @internal */
3397
- export const FetchInteractionBiometric4$inboundSchema: z.ZodMiniType<
3398
- FetchInteractionBiometric4,
3399
- unknown
3400
- > = z.object({
3401
- id: types.optional(types.string()),
3402
- type: types.optional(types.string()),
3403
- selfieImage: types.string(),
3404
- selfieImageEncryption: types.optional(types.boolean()),
3405
- });
3406
-
3407
- export function fetchInteractionBiometric4FromJSON(
3408
- jsonString: string,
3409
- ): SafeParseResult<FetchInteractionBiometric4, SDKValidationError> {
3410
- return safeParse(
3411
- jsonString,
3412
- (x) => FetchInteractionBiometric4$inboundSchema.parse(JSON.parse(x)),
3413
- `Failed to parse 'FetchInteractionBiometric4' from JSON`,
3414
- );
3415
- }
3416
-
3417
- /** @internal */
3418
- export const FetchInteractionBiometric3$inboundSchema: z.ZodMiniType<
3419
- FetchInteractionBiometric3,
3420
- unknown
3421
- > = z.object({
3422
- id: types.optional(types.string()),
3423
- type: types.optional(types.string()),
3424
- faceImage: types.string(),
3425
- });
3426
-
3427
- export function fetchInteractionBiometric3FromJSON(
3428
- jsonString: string,
3429
- ): SafeParseResult<FetchInteractionBiometric3, SDKValidationError> {
3430
- return safeParse(
3431
- jsonString,
3432
- (x) => FetchInteractionBiometric3$inboundSchema.parse(JSON.parse(x)),
3433
- `Failed to parse 'FetchInteractionBiometric3' from JSON`,
3434
- );
3435
- }
3436
-
3437
- /** @internal */
3438
- export const FetchInteractionBiometric2$inboundSchema: z.ZodMiniType<
3439
- FetchInteractionBiometric2,
3440
- unknown
3441
- > = z.object({
3442
- id: types.optional(types.string()),
3443
- type: types.optional(types.string()),
3444
- selfieImage: types.string(),
3445
- anchorImage: types.string(),
3446
- });
3447
-
3448
- export function fetchInteractionBiometric2FromJSON(
3449
- jsonString: string,
3450
- ): SafeParseResult<FetchInteractionBiometric2, SDKValidationError> {
3451
- return safeParse(
3452
- jsonString,
3453
- (x) => FetchInteractionBiometric2$inboundSchema.parse(JSON.parse(x)),
3454
- `Failed to parse 'FetchInteractionBiometric2' from JSON`,
3455
- );
3456
- }
3457
-
3458
- /** @internal */
3459
- export const FetchInteractionBiometric1$inboundSchema: z.ZodMiniType<
3460
- FetchInteractionBiometric1,
3461
- unknown
3462
- > = z.object({
3463
- id: types.optional(types.string()),
3464
- type: types.optional(types.string()),
3465
- face1Image: types.string(),
3466
- face2Image: types.string(),
3467
- });
3468
-
3469
- export function fetchInteractionBiometric1FromJSON(
3470
- jsonString: string,
3471
- ): SafeParseResult<FetchInteractionBiometric1, SDKValidationError> {
3472
- return safeParse(
3473
- jsonString,
3474
- (x) => FetchInteractionBiometric1$inboundSchema.parse(JSON.parse(x)),
3475
- `Failed to parse 'FetchInteractionBiometric1' from JSON`,
3476
- );
3477
- }
3478
-
3479
- /** @internal */
3480
- export const FetchInteractionBiometricUnion$inboundSchema: z.ZodMiniType<
3481
- FetchInteractionBiometricUnion,
3482
- unknown
3483
- > = smartUnion([
3484
- z.lazy(() => FetchInteractionBiometric1$inboundSchema),
3485
- z.lazy(() => FetchInteractionBiometric2$inboundSchema),
3486
- z.lazy(() => FetchInteractionBiometric3$inboundSchema),
3487
- z.lazy(() => FetchInteractionBiometric4$inboundSchema),
3488
- ]);
3489
-
3490
- export function fetchInteractionBiometricUnionFromJSON(
3491
- jsonString: string,
3492
- ): SafeParseResult<FetchInteractionBiometricUnion, SDKValidationError> {
3493
- return safeParse(
3494
- jsonString,
3495
- (x) => FetchInteractionBiometricUnion$inboundSchema.parse(JSON.parse(x)),
3496
- `Failed to parse 'FetchInteractionBiometricUnion' from JSON`,
3497
- );
3498
- }
3499
-
3500
- /** @internal */
3501
- export const FetchInteractionUser$inboundSchema: z.ZodMiniType<
3502
- FetchInteractionUser,
3503
- unknown
3504
- > = z.object({
3505
- id: types.string(),
3506
- email: types.string(),
3507
- domain: types.string(),
3508
- });
3509
-
3510
- export function fetchInteractionUserFromJSON(
3511
- jsonString: string,
3512
- ): SafeParseResult<FetchInteractionUser, SDKValidationError> {
3513
- return safeParse(
3514
- jsonString,
3515
- (x) => FetchInteractionUser$inboundSchema.parse(JSON.parse(x)),
3516
- `Failed to parse 'FetchInteractionUser' from JSON`,
3517
- );
3518
- }
3519
-
3520
- /** @internal */
3521
- export const FetchInteractionClient$inboundSchema: z.ZodMiniType<
3522
- FetchInteractionClient,
3523
- unknown
3524
- > = z.object({
3525
- id: types.string(),
3526
- ip: types.string(),
3527
- address: types.string(),
3528
- });
3529
-
3530
- export function fetchInteractionClientFromJSON(
3531
- jsonString: string,
3532
- ): SafeParseResult<FetchInteractionClient, SDKValidationError> {
3533
- return safeParse(
3534
- jsonString,
3535
- (x) => FetchInteractionClient$inboundSchema.parse(JSON.parse(x)),
3536
- `Failed to parse 'FetchInteractionClient' from JSON`,
3537
- );
3538
- }
3539
-
3540
- /** @internal */
3541
- export const FetchInteractionModel$inboundSchema: z.ZodMiniType<
3542
- FetchInteractionModel,
3543
- unknown
3544
- > = z.object({
3545
- identifier: types.string(),
3546
- name: types.string(),
3547
- });
3548
-
3549
- export function fetchInteractionModelFromJSON(
3550
- jsonString: string,
3551
- ): SafeParseResult<FetchInteractionModel, SDKValidationError> {
3552
- return safeParse(
3553
- jsonString,
3554
- (x) => FetchInteractionModel$inboundSchema.parse(JSON.parse(x)),
3555
- `Failed to parse 'FetchInteractionModel' from JSON`,
3556
- );
3557
- }
3558
-
3559
- /** @internal */
3560
- export const FetchInteractionSessionDevice$inboundSchema: z.ZodMiniType<
3561
- FetchInteractionSessionDevice,
3562
- unknown
3563
- > = z.object({
3564
- id: types.string(),
3565
- manufacturer: types.string(),
3566
- model: z.lazy(() => FetchInteractionModel$inboundSchema),
3567
- });
3568
-
3569
- export function fetchInteractionSessionDeviceFromJSON(
3570
- jsonString: string,
3571
- ): SafeParseResult<FetchInteractionSessionDevice, SDKValidationError> {
3572
- return safeParse(
3573
- jsonString,
3574
- (x) => FetchInteractionSessionDevice$inboundSchema.parse(JSON.parse(x)),
3575
- `Failed to parse 'FetchInteractionSessionDevice' from JSON`,
3576
- );
3577
- }
3578
-
3579
- /** @internal */
3580
- export const FetchInteractionTrace$inboundSchema: z.ZodMiniType<
3581
- FetchInteractionTrace,
3582
- unknown
3583
- > = z.object({
3584
- id: types.string(),
3585
- });
3586
-
3587
- export function fetchInteractionTraceFromJSON(
3588
- jsonString: string,
3589
- ): SafeParseResult<FetchInteractionTrace, SDKValidationError> {
3590
- return safeParse(
3591
- jsonString,
3592
- (x) => FetchInteractionTrace$inboundSchema.parse(JSON.parse(x)),
3593
- `Failed to parse 'FetchInteractionTrace' from JSON`,
3594
- );
3595
- }
3596
-
3597
- /** @internal */
3598
- export const FetchInteractionSpan$inboundSchema: z.ZodMiniType<
3599
- FetchInteractionSpan,
3600
- unknown
3601
- > = z.object({
3602
- id: types.string(),
3603
- });
19
+ export const FetchInteractionScope = {
20
+ Subject: "subject",
21
+ Reviewer: "reviewer",
22
+ } as const;
23
+ export type FetchInteractionScope = ClosedEnum<typeof FetchInteractionScope>;
3604
24
 
3605
- export function fetchInteractionSpanFromJSON(
3606
- jsonString: string,
3607
- ): SafeParseResult<FetchInteractionSpan, SDKValidationError> {
3608
- return safeParse(
3609
- jsonString,
3610
- (x) => FetchInteractionSpan$inboundSchema.parse(JSON.parse(x)),
3611
- `Failed to parse 'FetchInteractionSpan' from JSON`,
3612
- );
3613
- }
25
+ export type FetchInteractionRequestBody = {
26
+ /**
27
+ * Journey Instance Id, a unique identifier for a started journey instance.
28
+ */
29
+ instanceId: string;
30
+ scope?: FetchInteractionScope | undefined;
31
+ [additionalProperties: string]: unknown;
32
+ };
3614
33
 
3615
- /** @internal */
3616
- export const FetchInteractionTransaction$inboundSchema: z.ZodMiniType<
3617
- FetchInteractionTransaction,
3618
- unknown
3619
- > = z.object({
3620
- id: types.string(),
3621
- });
34
+ export type FetchInteractionRequest = {
35
+ /**
36
+ * Response profile. Omit or 'full' for the full response (default, unchanged). 'slim' returns the compact, typed customer-facing shape. Any other value returns 400.
37
+ */
38
+ view?: string | undefined;
39
+ body?: FetchInteractionRequestBody | undefined;
40
+ };
3622
41
 
3623
- export function fetchInteractionTransactionFromJSON(
3624
- jsonString: string,
3625
- ): SafeParseResult<FetchInteractionTransaction, SDKValidationError> {
3626
- return safeParse(
3627
- jsonString,
3628
- (x) => FetchInteractionTransaction$inboundSchema.parse(JSON.parse(x)),
3629
- `Failed to parse 'FetchInteractionTransaction' from JSON`,
3630
- );
3631
- }
42
+ /**
43
+ * Interaction state (full by default; slim with ?view=slim)
44
+ */
45
+ export type FetchInteractionResponse =
46
+ | models.InteractionFetchResponse
47
+ | models.SlimInteractionFetchResponse;
3632
48
 
3633
49
  /** @internal */
3634
- export const FetchInteractionSessionAuth$inboundSchema: z.ZodMiniType<
3635
- FetchInteractionSessionAuth,
3636
- unknown
3637
- > = z.object({
3638
- id: types.string(),
3639
- scope: types.optional(types.string()),
3640
- codeVerifier: types.optional(types.string()),
3641
- code: types.optional(types.string()),
3642
- state: types.optional(types.string()),
3643
- redirectUri: types.optional(types.string()),
3644
- responseType: types.optional(types.string()),
3645
- clientId: types.optional(types.string()),
3646
- clientSecret: types.optional(types.string()),
3647
- });
3648
-
3649
- export function fetchInteractionSessionAuthFromJSON(
3650
- jsonString: string,
3651
- ): SafeParseResult<FetchInteractionSessionAuth, SDKValidationError> {
3652
- return safeParse(
3653
- jsonString,
3654
- (x) => FetchInteractionSessionAuth$inboundSchema.parse(JSON.parse(x)),
3655
- `Failed to parse 'FetchInteractionSessionAuth' from JSON`,
3656
- );
3657
- }
50
+ export type FetchInteractionSecurity$Outbound = {
51
+ CustomerAccess?: string | undefined;
52
+ InteractionAccess?: string | undefined;
53
+ };
3658
54
 
3659
55
  /** @internal */
3660
- export const FetchInteractionSession$inboundSchema: z.ZodMiniType<
3661
- FetchInteractionSession,
3662
- unknown
3663
- > = z.object({
3664
- user: types.optional(z.lazy(() => FetchInteractionUser$inboundSchema)),
3665
- client: types.optional(z.lazy(() => FetchInteractionClient$inboundSchema)),
3666
- device: types.optional(
3667
- z.lazy(() => FetchInteractionSessionDevice$inboundSchema),
3668
- ),
3669
- trace: types.optional(z.lazy(() => FetchInteractionTrace$inboundSchema)),
3670
- span: types.optional(z.lazy(() => FetchInteractionSpan$inboundSchema)),
3671
- transaction: types.optional(
3672
- z.lazy(() => FetchInteractionTransaction$inboundSchema),
3673
- ),
3674
- auth: types.optional(
3675
- z.array(z.lazy(() => FetchInteractionSessionAuth$inboundSchema)),
3676
- ),
3677
- });
56
+ export const FetchInteractionSecurity$outboundSchema: z.ZodMiniType<
57
+ FetchInteractionSecurity$Outbound,
58
+ FetchInteractionSecurity
59
+ > = z.pipe(
60
+ z.object({
61
+ customerAccess: z.optional(z.string()),
62
+ interactionAccess: z.optional(z.string()),
63
+ }),
64
+ z.transform((v) => {
65
+ return remap$(v, {
66
+ customerAccess: "CustomerAccess",
67
+ interactionAccess: "InteractionAccess",
68
+ });
69
+ }),
70
+ );
3678
71
 
3679
- export function fetchInteractionSessionFromJSON(
3680
- jsonString: string,
3681
- ): SafeParseResult<FetchInteractionSession, SDKValidationError> {
3682
- return safeParse(
3683
- jsonString,
3684
- (x) => FetchInteractionSession$inboundSchema.parse(JSON.parse(x)),
3685
- `Failed to parse 'FetchInteractionSession' from JSON`,
72
+ export function fetchInteractionSecurityToJSON(
73
+ fetchInteractionSecurity: FetchInteractionSecurity,
74
+ ): string {
75
+ return JSON.stringify(
76
+ FetchInteractionSecurity$outboundSchema.parse(fetchInteractionSecurity),
3686
77
  );
3687
78
  }
3688
79
 
3689
80
  /** @internal */
3690
- export const FetchInteractionConsentType$inboundSchema: z.ZodMiniType<
3691
- FetchInteractionConsentType,
3692
- unknown
3693
- > = openEnums.inboundSchema(FetchInteractionConsentType);
3694
-
3695
- /** @internal */
3696
- export const FetchInteractionConsent$inboundSchema: z.ZodMiniType<
3697
- FetchInteractionConsent,
3698
- unknown
3699
- > = z.object({
3700
- type: types.optional(FetchInteractionConsentType$inboundSchema),
3701
- id: types.optional(types.string()),
3702
- version: types.optional(types.string()),
3703
- url: types.string(),
3704
- effectiveDate: types.optional(types.string()),
3705
- expiryDate: types.optional(types.string()),
3706
- terms: types.optional(types.string()),
3707
- purpose: types.optional(types.string()),
3708
- legalBasis: types.optional(types.string()),
3709
- jurisdiction: types.optional(types.string()),
3710
- subject: types.optional(types.string()),
3711
- signatory: types.optional(types.string()),
3712
- });
3713
-
3714
- export function fetchInteractionConsentFromJSON(
3715
- jsonString: string,
3716
- ): SafeParseResult<FetchInteractionConsent, SDKValidationError> {
3717
- return safeParse(
3718
- jsonString,
3719
- (x) => FetchInteractionConsent$inboundSchema.parse(JSON.parse(x)),
3720
- `Failed to parse 'FetchInteractionConsent' from JSON`,
3721
- );
3722
- }
81
+ export const FetchInteractionScope$outboundSchema: z.ZodMiniEnum<
82
+ typeof FetchInteractionScope
83
+ > = z.enum(FetchInteractionScope);
3723
84
 
3724
85
  /** @internal */
3725
- export const FetchInteractionAccount$inboundSchema: z.ZodMiniType<
3726
- FetchInteractionAccount,
3727
- unknown
3728
- > = z.object({
3729
- type: types.string(),
3730
- accountNumber: types.string(),
3731
- sortCode: types.optional(types.string()),
3732
- routingNumber: types.optional(types.string()),
3733
- iban: types.optional(types.string()),
3734
- bic: types.optional(types.string()),
3735
- accountHolderName: types.optional(types.string()),
3736
- bankName: types.optional(types.string()),
3737
- country: types.optional(types.string()),
3738
- accountType: types.optional(types.string()),
3739
- });
3740
-
3741
- export function fetchInteractionAccountFromJSON(
3742
- jsonString: string,
3743
- ): SafeParseResult<FetchInteractionAccount, SDKValidationError> {
3744
- return safeParse(
3745
- jsonString,
3746
- (x) => FetchInteractionAccount$inboundSchema.parse(JSON.parse(x)),
3747
- `Failed to parse 'FetchInteractionAccount' from JSON`,
3748
- );
3749
- }
86
+ export type FetchInteractionRequestBody$Outbound = {
87
+ instanceId: string;
88
+ scope?: string | undefined;
89
+ [additionalProperties: string]: unknown;
90
+ };
3750
91
 
3751
92
  /** @internal */
3752
- export const FetchInteractionSubject$inboundSchema: z.ZodMiniType<
3753
- FetchInteractionSubject,
3754
- unknown
3755
- > = z.object({
3756
- identity: types.optional(
3757
- z.lazy(() => FetchInteractionIdentity$inboundSchema),
3758
- ),
3759
- documents: types.optional(
3760
- z.array(z.lazy(() => FetchInteractionDocument$inboundSchema)),
3761
- ),
3762
- biometrics: types.optional(
3763
- z.array(smartUnion([
3764
- z.lazy(() => FetchInteractionBiometric1$inboundSchema),
3765
- z.lazy(() =>
3766
- FetchInteractionBiometric2$inboundSchema
3767
- ),
3768
- z.lazy(() => FetchInteractionBiometric3$inboundSchema),
3769
- z.lazy(() => FetchInteractionBiometric4$inboundSchema),
3770
- ])),
3771
- ),
3772
- sessions: types.optional(
3773
- z.array(z.lazy(() => FetchInteractionSession$inboundSchema)),
3774
- ),
3775
- consent: types.optional(
3776
- z.array(z.lazy(() => FetchInteractionConsent$inboundSchema)),
3777
- ),
3778
- accounts: types.optional(
3779
- z.array(z.lazy(() => FetchInteractionAccount$inboundSchema)),
3780
- ),
3781
- uid: types.optional(types.string()),
3782
- });
93
+ export const FetchInteractionRequestBody$outboundSchema: z.ZodMiniType<
94
+ FetchInteractionRequestBody$Outbound,
95
+ FetchInteractionRequestBody
96
+ > = z.catchall(
97
+ z.object({
98
+ instanceId: z.string(),
99
+ scope: z.optional(FetchInteractionScope$outboundSchema),
100
+ }),
101
+ z.any(),
102
+ );
3783
103
 
3784
- export function fetchInteractionSubjectFromJSON(
3785
- jsonString: string,
3786
- ): SafeParseResult<FetchInteractionSubject, SDKValidationError> {
3787
- return safeParse(
3788
- jsonString,
3789
- (x) => FetchInteractionSubject$inboundSchema.parse(JSON.parse(x)),
3790
- `Failed to parse 'FetchInteractionSubject' from JSON`,
104
+ export function fetchInteractionRequestBodyToJSON(
105
+ fetchInteractionRequestBody: FetchInteractionRequestBody,
106
+ ): string {
107
+ return JSON.stringify(
108
+ FetchInteractionRequestBody$outboundSchema.parse(
109
+ fetchInteractionRequestBody,
110
+ ),
3791
111
  );
3792
112
  }
3793
113
 
3794
114
  /** @internal */
3795
- export const FetchInteractionContext$inboundSchema: z.ZodMiniType<
3796
- FetchInteractionContext,
3797
- unknown
3798
- > = z.object({
3799
- subject: types.optional(z.lazy(() => FetchInteractionSubject$inboundSchema)),
3800
- });
3801
-
3802
- export function fetchInteractionContextFromJSON(
3803
- jsonString: string,
3804
- ): SafeParseResult<FetchInteractionContext, SDKValidationError> {
3805
- return safeParse(
3806
- jsonString,
3807
- (x) => FetchInteractionContext$inboundSchema.parse(JSON.parse(x)),
3808
- `Failed to parse 'FetchInteractionContext' from JSON`,
3809
- );
3810
- }
115
+ export type FetchInteractionRequest$Outbound = {
116
+ view?: string | undefined;
117
+ body?: FetchInteractionRequestBody$Outbound | undefined;
118
+ };
3811
119
 
3812
120
  /** @internal */
3813
- export const ResponseBody1$inboundSchema: z.ZodMiniType<
3814
- ResponseBody1,
3815
- unknown
121
+ export const FetchInteractionRequest$outboundSchema: z.ZodMiniType<
122
+ FetchInteractionRequest$Outbound,
123
+ FetchInteractionRequest
3816
124
  > = z.object({
3817
- instanceId: types.string(),
3818
- interactionId: types.string(),
3819
- journey: z.lazy(() => Journey1$inboundSchema),
3820
- interaction: z.lazy(() => Interaction$inboundSchema),
3821
- context: types.optional(z.lazy(() => FetchInteractionContext$inboundSchema)),
3822
- instructions: types.optional(z.array(types.string())),
3823
- outstanding: types.optional(z.array(types.string())),
125
+ view: z.optional(z.string()),
126
+ body: z.optional(z.lazy(() => FetchInteractionRequestBody$outboundSchema)),
3824
127
  });
3825
128
 
3826
- export function responseBody1FromJSON(
3827
- jsonString: string,
3828
- ): SafeParseResult<ResponseBody1, SDKValidationError> {
3829
- return safeParse(
3830
- jsonString,
3831
- (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
3832
- `Failed to parse 'ResponseBody1' from JSON`,
129
+ export function fetchInteractionRequestToJSON(
130
+ fetchInteractionRequest: FetchInteractionRequest,
131
+ ): string {
132
+ return JSON.stringify(
133
+ FetchInteractionRequest$outboundSchema.parse(fetchInteractionRequest),
3833
134
  );
3834
135
  }
3835
136
 
@@ -3838,9 +139,8 @@ export const FetchInteractionResponse$inboundSchema: z.ZodMiniType<
3838
139
  FetchInteractionResponse,
3839
140
  unknown
3840
141
  > = smartUnion([
3841
- z.lazy(() => ResponseBody1$inboundSchema),
3842
- z.lazy(() => FetchInteractionError$inboundSchema),
3843
- z.lazy(() => ResponseBody2$inboundSchema),
142
+ models.InteractionFetchResponse$inboundSchema,
143
+ models.SlimInteractionFetchResponse$inboundSchema,
3844
144
  ]);
3845
145
 
3846
146
  export function fetchInteractionResponseFromJSON(