@gbg/go-core 0.0.1-alpha.16

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 (734) hide show
  1. package/.devcontainer/devcontainer.json +45 -0
  2. package/FUNCTIONS.md +91 -0
  3. package/README.md +557 -0
  4. package/RUNTIMES.md +48 -0
  5. package/_speakeasy/.github/action-inputs-config.json +53 -0
  6. package/_speakeasy/.github/action-security-config.json +88 -0
  7. package/dist/commonjs/core.d.ts +10 -0
  8. package/dist/commonjs/core.d.ts.map +1 -0
  9. package/dist/commonjs/core.js +17 -0
  10. package/dist/commonjs/core.js.map +1 -0
  11. package/dist/commonjs/funcs/devices-add.d.ts +17 -0
  12. package/dist/commonjs/funcs/devices-add.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/devices-add.js +117 -0
  14. package/dist/commonjs/funcs/devices-add.js.map +1 -0
  15. package/dist/commonjs/funcs/devices-connect.d.ts +17 -0
  16. package/dist/commonjs/funcs/devices-connect.d.ts.map +1 -0
  17. package/dist/commonjs/funcs/devices-connect.js +121 -0
  18. package/dist/commonjs/funcs/devices-connect.js.map +1 -0
  19. package/dist/commonjs/funcs/health-get.d.ts +17 -0
  20. package/dist/commonjs/funcs/health-get.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/health-get.js +104 -0
  22. package/dist/commonjs/funcs/health-get.js.map +1 -0
  23. package/dist/commonjs/funcs/instances-delete.d.ts +17 -0
  24. package/dist/commonjs/funcs/instances-delete.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/instances-delete.js +117 -0
  26. package/dist/commonjs/funcs/instances-delete.js.map +1 -0
  27. package/dist/commonjs/funcs/interactions-fetch.d.ts +17 -0
  28. package/dist/commonjs/funcs/interactions-fetch.d.ts.map +1 -0
  29. package/dist/commonjs/funcs/interactions-fetch.js +121 -0
  30. package/dist/commonjs/funcs/interactions-fetch.js.map +1 -0
  31. package/dist/commonjs/funcs/interactions-submit.d.ts +17 -0
  32. package/dist/commonjs/funcs/interactions-submit.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/interactions-submit.js +121 -0
  34. package/dist/commonjs/funcs/interactions-submit.js.map +1 -0
  35. package/dist/commonjs/funcs/journeys-get-state.d.ts +17 -0
  36. package/dist/commonjs/funcs/journeys-get-state.d.ts.map +1 -0
  37. package/dist/commonjs/funcs/journeys-get-state.js +117 -0
  38. package/dist/commonjs/funcs/journeys-get-state.js.map +1 -0
  39. package/dist/commonjs/funcs/journeys-start.d.ts +17 -0
  40. package/dist/commonjs/funcs/journeys-start.d.ts.map +1 -0
  41. package/dist/commonjs/funcs/journeys-start.js +117 -0
  42. package/dist/commonjs/funcs/journeys-start.js.map +1 -0
  43. package/dist/commonjs/funcs/tasks-get-schema.d.ts +17 -0
  44. package/dist/commonjs/funcs/tasks-get-schema.d.ts.map +1 -0
  45. package/dist/commonjs/funcs/tasks-get-schema.js +117 -0
  46. package/dist/commonjs/funcs/tasks-get-schema.js.map +1 -0
  47. package/dist/commonjs/funcs/tasks-list-schema.d.ts +17 -0
  48. package/dist/commonjs/funcs/tasks-list-schema.d.ts.map +1 -0
  49. package/dist/commonjs/funcs/tasks-list-schema.js +117 -0
  50. package/dist/commonjs/funcs/tasks-list-schema.js.map +1 -0
  51. package/dist/commonjs/funcs/tasks-list.d.ts +17 -0
  52. package/dist/commonjs/funcs/tasks-list.d.ts.map +1 -0
  53. package/dist/commonjs/funcs/tasks-list.js +121 -0
  54. package/dist/commonjs/funcs/tasks-list.js.map +1 -0
  55. package/dist/commonjs/funcs/tasks-update.d.ts +17 -0
  56. package/dist/commonjs/funcs/tasks-update.d.ts.map +1 -0
  57. package/dist/commonjs/funcs/tasks-update.js +121 -0
  58. package/dist/commonjs/funcs/tasks-update.js.map +1 -0
  59. package/dist/commonjs/funcs/tokens-generate.d.ts +17 -0
  60. package/dist/commonjs/funcs/tokens-generate.d.ts.map +1 -0
  61. package/dist/commonjs/funcs/tokens-generate.js +119 -0
  62. package/dist/commonjs/funcs/tokens-generate.js.map +1 -0
  63. package/dist/commonjs/hooks/hooks.d.ts +25 -0
  64. package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
  65. package/dist/commonjs/hooks/hooks.js +86 -0
  66. package/dist/commonjs/hooks/hooks.js.map +1 -0
  67. package/dist/commonjs/hooks/index.d.ts +3 -0
  68. package/dist/commonjs/hooks/index.d.ts.map +1 -0
  69. package/dist/commonjs/hooks/index.js +22 -0
  70. package/dist/commonjs/hooks/index.js.map +1 -0
  71. package/dist/commonjs/hooks/registration.d.ts +3 -0
  72. package/dist/commonjs/hooks/registration.d.ts.map +1 -0
  73. package/dist/commonjs/hooks/registration.js +15 -0
  74. package/dist/commonjs/hooks/registration.js.map +1 -0
  75. package/dist/commonjs/hooks/types.d.ts +76 -0
  76. package/dist/commonjs/hooks/types.d.ts.map +1 -0
  77. package/dist/commonjs/hooks/types.js +6 -0
  78. package/dist/commonjs/hooks/types.js.map +1 -0
  79. package/dist/commonjs/index.d.ts +6 -0
  80. package/dist/commonjs/index.d.ts.map +1 -0
  81. package/dist/commonjs/index.js +48 -0
  82. package/dist/commonjs/index.js.map +1 -0
  83. package/dist/commonjs/lib/base64.d.ts +10 -0
  84. package/dist/commonjs/lib/base64.d.ts.map +1 -0
  85. package/dist/commonjs/lib/base64.js +73 -0
  86. package/dist/commonjs/lib/base64.js.map +1 -0
  87. package/dist/commonjs/lib/config.d.ts +38 -0
  88. package/dist/commonjs/lib/config.d.ts.map +1 -0
  89. package/dist/commonjs/lib/config.js +37 -0
  90. package/dist/commonjs/lib/config.js.map +1 -0
  91. package/dist/commonjs/lib/dlv.d.ts +14 -0
  92. package/dist/commonjs/lib/dlv.d.ts.map +1 -0
  93. package/dist/commonjs/lib/dlv.js +49 -0
  94. package/dist/commonjs/lib/dlv.js.map +1 -0
  95. package/dist/commonjs/lib/encodings.d.ts +53 -0
  96. package/dist/commonjs/lib/encodings.d.ts.map +1 -0
  97. package/dist/commonjs/lib/encodings.js +384 -0
  98. package/dist/commonjs/lib/encodings.js.map +1 -0
  99. package/dist/commonjs/lib/env.d.ts +15 -0
  100. package/dist/commonjs/lib/env.d.ts.map +1 -0
  101. package/dist/commonjs/lib/env.js +82 -0
  102. package/dist/commonjs/lib/env.js.map +1 -0
  103. package/dist/commonjs/lib/files.d.ts +13 -0
  104. package/dist/commonjs/lib/files.d.ts.map +1 -0
  105. package/dist/commonjs/lib/files.js +77 -0
  106. package/dist/commonjs/lib/files.js.map +1 -0
  107. package/dist/commonjs/lib/http.d.ts +67 -0
  108. package/dist/commonjs/lib/http.d.ts.map +1 -0
  109. package/dist/commonjs/lib/http.js +217 -0
  110. package/dist/commonjs/lib/http.js.map +1 -0
  111. package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
  112. package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
  113. package/dist/commonjs/lib/is-plain-object.js +41 -0
  114. package/dist/commonjs/lib/is-plain-object.js.map +1 -0
  115. package/dist/commonjs/lib/logger.d.ts +6 -0
  116. package/dist/commonjs/lib/logger.d.ts.map +1 -0
  117. package/dist/commonjs/lib/logger.js +6 -0
  118. package/dist/commonjs/lib/logger.js.map +1 -0
  119. package/dist/commonjs/lib/matchers.d.ts +59 -0
  120. package/dist/commonjs/lib/matchers.d.ts.map +1 -0
  121. package/dist/commonjs/lib/matchers.js +222 -0
  122. package/dist/commonjs/lib/matchers.js.map +1 -0
  123. package/dist/commonjs/lib/primitives.d.ts +26 -0
  124. package/dist/commonjs/lib/primitives.d.ts.map +1 -0
  125. package/dist/commonjs/lib/primitives.js +111 -0
  126. package/dist/commonjs/lib/primitives.js.map +1 -0
  127. package/dist/commonjs/lib/retries.d.ts +38 -0
  128. package/dist/commonjs/lib/retries.d.ts.map +1 -0
  129. package/dist/commonjs/lib/retries.js +153 -0
  130. package/dist/commonjs/lib/retries.js.map +1 -0
  131. package/dist/commonjs/lib/schemas.d.ts +21 -0
  132. package/dist/commonjs/lib/schemas.d.ts.map +1 -0
  133. package/dist/commonjs/lib/schemas.js +95 -0
  134. package/dist/commonjs/lib/schemas.js.map +1 -0
  135. package/dist/commonjs/lib/sdks.d.ts +63 -0
  136. package/dist/commonjs/lib/sdks.d.ts.map +1 -0
  137. package/dist/commonjs/lib/sdks.js +273 -0
  138. package/dist/commonjs/lib/sdks.js.map +1 -0
  139. package/dist/commonjs/lib/security.d.ts +83 -0
  140. package/dist/commonjs/lib/security.d.ts.map +1 -0
  141. package/dist/commonjs/lib/security.js +144 -0
  142. package/dist/commonjs/lib/security.js.map +1 -0
  143. package/dist/commonjs/lib/url.d.ts +5 -0
  144. package/dist/commonjs/lib/url.d.ts.map +1 -0
  145. package/dist/commonjs/lib/url.js +25 -0
  146. package/dist/commonjs/lib/url.js.map +1 -0
  147. package/dist/commonjs/models/errors/go-default-error.d.ts +10 -0
  148. package/dist/commonjs/models/errors/go-default-error.d.ts.map +1 -0
  149. package/dist/commonjs/models/errors/go-default-error.js +34 -0
  150. package/dist/commonjs/models/errors/go-default-error.js.map +1 -0
  151. package/dist/commonjs/models/errors/go-error.d.ts +19 -0
  152. package/dist/commonjs/models/errors/go-error.d.ts.map +1 -0
  153. package/dist/commonjs/models/errors/go-error.js +20 -0
  154. package/dist/commonjs/models/errors/go-error.js.map +1 -0
  155. package/dist/commonjs/models/errors/http-client-errors.d.ts +44 -0
  156. package/dist/commonjs/models/errors/http-client-errors.d.ts.map +1 -0
  157. package/dist/commonjs/models/errors/http-client-errors.js +78 -0
  158. package/dist/commonjs/models/errors/http-client-errors.js.map +1 -0
  159. package/dist/commonjs/models/errors/index.d.ts +6 -0
  160. package/dist/commonjs/models/errors/index.d.ts.map +1 -0
  161. package/dist/commonjs/models/errors/index.js +25 -0
  162. package/dist/commonjs/models/errors/index.js.map +1 -0
  163. package/dist/commonjs/models/errors/response-validation-error.d.ts +26 -0
  164. package/dist/commonjs/models/errors/response-validation-error.d.ts.map +1 -0
  165. package/dist/commonjs/models/errors/response-validation-error.js +66 -0
  166. package/dist/commonjs/models/errors/response-validation-error.js.map +1 -0
  167. package/dist/commonjs/models/errors/sdk-validation-error.d.ts +21 -0
  168. package/dist/commonjs/models/errors/sdk-validation-error.d.ts.map +1 -0
  169. package/dist/commonjs/models/errors/sdk-validation-error.js +82 -0
  170. package/dist/commonjs/models/errors/sdk-validation-error.js.map +1 -0
  171. package/dist/commonjs/models/index.d.ts +2 -0
  172. package/dist/commonjs/models/index.d.ts.map +1 -0
  173. package/dist/commonjs/models/index.js +21 -0
  174. package/dist/commonjs/models/index.js.map +1 -0
  175. package/dist/commonjs/models/operations/add-device.d.ts +114 -0
  176. package/dist/commonjs/models/operations/add-device.d.ts.map +1 -0
  177. package/dist/commonjs/models/operations/add-device.js +129 -0
  178. package/dist/commonjs/models/operations/add-device.js.map +1 -0
  179. package/dist/commonjs/models/operations/delete-instance.d.ts +30 -0
  180. package/dist/commonjs/models/operations/delete-instance.d.ts.map +1 -0
  181. package/dist/commonjs/models/operations/delete-instance.js +59 -0
  182. package/dist/commonjs/models/operations/delete-instance.js.map +1 -0
  183. package/dist/commonjs/models/operations/device-connect.d.ts +103 -0
  184. package/dist/commonjs/models/operations/device-connect.d.ts.map +1 -0
  185. package/dist/commonjs/models/operations/device-connect.js +122 -0
  186. package/dist/commonjs/models/operations/device-connect.js.map +1 -0
  187. package/dist/commonjs/models/operations/fetch-interaction.d.ts +1562 -0
  188. package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -0
  189. package/dist/commonjs/models/operations/fetch-interaction.js +1345 -0
  190. package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -0
  191. package/dist/commonjs/models/operations/get-journey-state.d.ts +1363 -0
  192. package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -0
  193. package/dist/commonjs/models/operations/get-journey-state.js +1105 -0
  194. package/dist/commonjs/models/operations/get-journey-state.js.map +1 -0
  195. package/dist/commonjs/models/operations/get-task-schema.d.ts +31 -0
  196. package/dist/commonjs/models/operations/get-task-schema.d.ts.map +1 -0
  197. package/dist/commonjs/models/operations/get-task-schema.js +67 -0
  198. package/dist/commonjs/models/operations/get-task-schema.js.map +1 -0
  199. package/dist/commonjs/models/operations/get-tasks-schema.d.ts +71 -0
  200. package/dist/commonjs/models/operations/get-tasks-schema.d.ts.map +1 -0
  201. package/dist/commonjs/models/operations/get-tasks-schema.js +108 -0
  202. package/dist/commonjs/models/operations/get-tasks-schema.js.map +1 -0
  203. package/dist/commonjs/models/operations/get-tasks.d.ts +62 -0
  204. package/dist/commonjs/models/operations/get-tasks.d.ts.map +1 -0
  205. package/dist/commonjs/models/operations/get-tasks.js +91 -0
  206. package/dist/commonjs/models/operations/get-tasks.js.map +1 -0
  207. package/dist/commonjs/models/operations/health.d.ts +14 -0
  208. package/dist/commonjs/models/operations/health.d.ts.map +1 -0
  209. package/dist/commonjs/models/operations/health.js +51 -0
  210. package/dist/commonjs/models/operations/health.js.map +1 -0
  211. package/dist/commonjs/models/operations/index.d.ts +14 -0
  212. package/dist/commonjs/models/operations/index.d.ts.map +1 -0
  213. package/dist/commonjs/models/operations/index.js +33 -0
  214. package/dist/commonjs/models/operations/index.js.map +1 -0
  215. package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts +71 -0
  216. package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts.map +1 -0
  217. package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.js +90 -0
  218. package/dist/commonjs/models/operations/post-auth-realms-go-protocol-openid-connect-token.js.map +1 -0
  219. package/dist/commonjs/models/operations/start-journey.d.ts +2038 -0
  220. package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -0
  221. package/dist/commonjs/models/operations/start-journey.js +1092 -0
  222. package/dist/commonjs/models/operations/start-journey.js.map +1 -0
  223. package/dist/commonjs/models/operations/submit-interaction.d.ts +2061 -0
  224. package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -0
  225. package/dist/commonjs/models/operations/submit-interaction.js +1118 -0
  226. package/dist/commonjs/models/operations/submit-interaction.js.map +1 -0
  227. package/dist/commonjs/models/operations/update-task.d.ts +2045 -0
  228. package/dist/commonjs/models/operations/update-task.d.ts.map +1 -0
  229. package/dist/commonjs/models/operations/update-task.js +1097 -0
  230. package/dist/commonjs/models/operations/update-task.js.map +1 -0
  231. package/dist/commonjs/models/security.d.ts +12 -0
  232. package/dist/commonjs/models/security.d.ts.map +1 -0
  233. package/dist/commonjs/models/security.js +54 -0
  234. package/dist/commonjs/models/security.js.map +1 -0
  235. package/dist/commonjs/package.json +3 -0
  236. package/dist/commonjs/sdk/devices.d.ts +19 -0
  237. package/dist/commonjs/sdk/devices.d.ts.map +1 -0
  238. package/dist/commonjs/sdk/devices.js +32 -0
  239. package/dist/commonjs/sdk/devices.js.map +1 -0
  240. package/dist/commonjs/sdk/health.d.ts +12 -0
  241. package/dist/commonjs/sdk/health.d.ts.map +1 -0
  242. package/dist/commonjs/sdk/health.js +22 -0
  243. package/dist/commonjs/sdk/health.js.map +1 -0
  244. package/dist/commonjs/sdk/index.d.ts +2 -0
  245. package/dist/commonjs/sdk/index.d.ts.map +1 -0
  246. package/dist/commonjs/sdk/index.js +21 -0
  247. package/dist/commonjs/sdk/index.js.map +1 -0
  248. package/dist/commonjs/sdk/instances.d.ts +12 -0
  249. package/dist/commonjs/sdk/instances.d.ts.map +1 -0
  250. package/dist/commonjs/sdk/instances.js +22 -0
  251. package/dist/commonjs/sdk/instances.js.map +1 -0
  252. package/dist/commonjs/sdk/interactions.d.ts +19 -0
  253. package/dist/commonjs/sdk/interactions.d.ts.map +1 -0
  254. package/dist/commonjs/sdk/interactions.js +32 -0
  255. package/dist/commonjs/sdk/interactions.js.map +1 -0
  256. package/dist/commonjs/sdk/journeys.d.ts +19 -0
  257. package/dist/commonjs/sdk/journeys.d.ts.map +1 -0
  258. package/dist/commonjs/sdk/journeys.js +32 -0
  259. package/dist/commonjs/sdk/journeys.js.map +1 -0
  260. package/dist/commonjs/sdk/sdk.d.ts +25 -0
  261. package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
  262. package/dist/commonjs/sdk/sdk.js +39 -0
  263. package/dist/commonjs/sdk/sdk.js.map +1 -0
  264. package/dist/commonjs/sdk/tasks.d.ts +33 -0
  265. package/dist/commonjs/sdk/tasks.d.ts.map +1 -0
  266. package/dist/commonjs/sdk/tasks.js +52 -0
  267. package/dist/commonjs/sdk/tasks.js.map +1 -0
  268. package/dist/commonjs/sdk/tokens.d.ts +12 -0
  269. package/dist/commonjs/sdk/tokens.d.ts.map +1 -0
  270. package/dist/commonjs/sdk/tokens.js +22 -0
  271. package/dist/commonjs/sdk/tokens.js.map +1 -0
  272. package/dist/commonjs/types/async.d.ts +23 -0
  273. package/dist/commonjs/types/async.d.ts.map +1 -0
  274. package/dist/commonjs/types/async.js +44 -0
  275. package/dist/commonjs/types/async.js.map +1 -0
  276. package/dist/commonjs/types/blobs.d.ts +4 -0
  277. package/dist/commonjs/types/blobs.d.ts.map +1 -0
  278. package/dist/commonjs/types/blobs.js +62 -0
  279. package/dist/commonjs/types/blobs.js.map +1 -0
  280. package/dist/commonjs/types/const-date-time.d.ts +3 -0
  281. package/dist/commonjs/types/const-date-time.d.ts.map +1 -0
  282. package/dist/commonjs/types/const-date-time.js +46 -0
  283. package/dist/commonjs/types/const-date-time.js.map +1 -0
  284. package/dist/commonjs/types/default-to-zero-value.d.ts +12 -0
  285. package/dist/commonjs/types/default-to-zero-value.d.ts.map +1 -0
  286. package/dist/commonjs/types/default-to-zero-value.js +35 -0
  287. package/dist/commonjs/types/default-to-zero-value.js.map +1 -0
  288. package/dist/commonjs/types/discriminated-union.d.ts +25 -0
  289. package/dist/commonjs/types/discriminated-union.d.ts.map +1 -0
  290. package/dist/commonjs/types/discriminated-union.js +98 -0
  291. package/dist/commonjs/types/discriminated-union.js.map +1 -0
  292. package/dist/commonjs/types/enums.d.ts +9 -0
  293. package/dist/commonjs/types/enums.d.ts.map +1 -0
  294. package/dist/commonjs/types/enums.js +66 -0
  295. package/dist/commonjs/types/enums.js.map +1 -0
  296. package/dist/commonjs/types/fp.d.ts +31 -0
  297. package/dist/commonjs/types/fp.d.ts.map +1 -0
  298. package/dist/commonjs/types/fp.js +37 -0
  299. package/dist/commonjs/types/fp.js.map +1 -0
  300. package/dist/commonjs/types/index.d.ts +10 -0
  301. package/dist/commonjs/types/index.d.ts.map +1 -0
  302. package/dist/commonjs/types/index.js +31 -0
  303. package/dist/commonjs/types/index.js.map +1 -0
  304. package/dist/commonjs/types/operations.d.ts +27 -0
  305. package/dist/commonjs/types/operations.d.ts.map +1 -0
  306. package/dist/commonjs/types/operations.js +83 -0
  307. package/dist/commonjs/types/operations.js.map +1 -0
  308. package/dist/commonjs/types/primitives.d.ts +11 -0
  309. package/dist/commonjs/types/primitives.d.ts.map +1 -0
  310. package/dist/commonjs/types/primitives.js +176 -0
  311. package/dist/commonjs/types/primitives.js.map +1 -0
  312. package/dist/commonjs/types/rfcdate.d.ts +21 -0
  313. package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
  314. package/dist/commonjs/types/rfcdate.js +46 -0
  315. package/dist/commonjs/types/rfcdate.js.map +1 -0
  316. package/dist/commonjs/types/smart-union.d.ts +7 -0
  317. package/dist/commonjs/types/smart-union.d.ts.map +1 -0
  318. package/dist/commonjs/types/smart-union.js +154 -0
  319. package/dist/commonjs/types/smart-union.js.map +1 -0
  320. package/dist/commonjs/types/streams.d.ts +2 -0
  321. package/dist/commonjs/types/streams.d.ts.map +1 -0
  322. package/dist/commonjs/types/streams.js +18 -0
  323. package/dist/commonjs/types/streams.js.map +1 -0
  324. package/dist/commonjs/types/unrecognized.d.ts +16 -0
  325. package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
  326. package/dist/commonjs/types/unrecognized.js +34 -0
  327. package/dist/commonjs/types/unrecognized.js.map +1 -0
  328. package/dist/esm/core.d.ts +10 -0
  329. package/dist/esm/core.d.ts.map +1 -0
  330. package/dist/esm/core.js +13 -0
  331. package/dist/esm/core.js.map +1 -0
  332. package/dist/esm/funcs/devices-add.d.ts +17 -0
  333. package/dist/esm/funcs/devices-add.d.ts.map +1 -0
  334. package/dist/esm/funcs/devices-add.js +81 -0
  335. package/dist/esm/funcs/devices-add.js.map +1 -0
  336. package/dist/esm/funcs/devices-connect.d.ts +17 -0
  337. package/dist/esm/funcs/devices-connect.d.ts.map +1 -0
  338. package/dist/esm/funcs/devices-connect.js +85 -0
  339. package/dist/esm/funcs/devices-connect.js.map +1 -0
  340. package/dist/esm/funcs/health-get.d.ts +17 -0
  341. package/dist/esm/funcs/health-get.d.ts.map +1 -0
  342. package/dist/esm/funcs/health-get.js +68 -0
  343. package/dist/esm/funcs/health-get.js.map +1 -0
  344. package/dist/esm/funcs/instances-delete.d.ts +17 -0
  345. package/dist/esm/funcs/instances-delete.d.ts.map +1 -0
  346. package/dist/esm/funcs/instances-delete.js +81 -0
  347. package/dist/esm/funcs/instances-delete.js.map +1 -0
  348. package/dist/esm/funcs/interactions-fetch.d.ts +17 -0
  349. package/dist/esm/funcs/interactions-fetch.d.ts.map +1 -0
  350. package/dist/esm/funcs/interactions-fetch.js +85 -0
  351. package/dist/esm/funcs/interactions-fetch.js.map +1 -0
  352. package/dist/esm/funcs/interactions-submit.d.ts +17 -0
  353. package/dist/esm/funcs/interactions-submit.d.ts.map +1 -0
  354. package/dist/esm/funcs/interactions-submit.js +85 -0
  355. package/dist/esm/funcs/interactions-submit.js.map +1 -0
  356. package/dist/esm/funcs/journeys-get-state.d.ts +17 -0
  357. package/dist/esm/funcs/journeys-get-state.d.ts.map +1 -0
  358. package/dist/esm/funcs/journeys-get-state.js +81 -0
  359. package/dist/esm/funcs/journeys-get-state.js.map +1 -0
  360. package/dist/esm/funcs/journeys-start.d.ts +17 -0
  361. package/dist/esm/funcs/journeys-start.d.ts.map +1 -0
  362. package/dist/esm/funcs/journeys-start.js +81 -0
  363. package/dist/esm/funcs/journeys-start.js.map +1 -0
  364. package/dist/esm/funcs/tasks-get-schema.d.ts +17 -0
  365. package/dist/esm/funcs/tasks-get-schema.d.ts.map +1 -0
  366. package/dist/esm/funcs/tasks-get-schema.js +81 -0
  367. package/dist/esm/funcs/tasks-get-schema.js.map +1 -0
  368. package/dist/esm/funcs/tasks-list-schema.d.ts +17 -0
  369. package/dist/esm/funcs/tasks-list-schema.d.ts.map +1 -0
  370. package/dist/esm/funcs/tasks-list-schema.js +81 -0
  371. package/dist/esm/funcs/tasks-list-schema.js.map +1 -0
  372. package/dist/esm/funcs/tasks-list.d.ts +17 -0
  373. package/dist/esm/funcs/tasks-list.d.ts.map +1 -0
  374. package/dist/esm/funcs/tasks-list.js +85 -0
  375. package/dist/esm/funcs/tasks-list.js.map +1 -0
  376. package/dist/esm/funcs/tasks-update.d.ts +17 -0
  377. package/dist/esm/funcs/tasks-update.d.ts.map +1 -0
  378. package/dist/esm/funcs/tasks-update.js +85 -0
  379. package/dist/esm/funcs/tasks-update.js.map +1 -0
  380. package/dist/esm/funcs/tokens-generate.d.ts +17 -0
  381. package/dist/esm/funcs/tokens-generate.d.ts.map +1 -0
  382. package/dist/esm/funcs/tokens-generate.js +83 -0
  383. package/dist/esm/funcs/tokens-generate.js.map +1 -0
  384. package/dist/esm/hooks/hooks.d.ts +25 -0
  385. package/dist/esm/hooks/hooks.d.ts.map +1 -0
  386. package/dist/esm/hooks/hooks.js +82 -0
  387. package/dist/esm/hooks/hooks.js.map +1 -0
  388. package/dist/esm/hooks/index.d.ts +3 -0
  389. package/dist/esm/hooks/index.d.ts.map +1 -0
  390. package/dist/esm/hooks/index.js +6 -0
  391. package/dist/esm/hooks/index.js.map +1 -0
  392. package/dist/esm/hooks/registration.d.ts +3 -0
  393. package/dist/esm/hooks/registration.d.ts.map +1 -0
  394. package/dist/esm/hooks/registration.js +12 -0
  395. package/dist/esm/hooks/registration.js.map +1 -0
  396. package/dist/esm/hooks/types.d.ts +76 -0
  397. package/dist/esm/hooks/types.d.ts.map +1 -0
  398. package/dist/esm/hooks/types.js +5 -0
  399. package/dist/esm/hooks/types.js.map +1 -0
  400. package/dist/esm/index.d.ts +6 -0
  401. package/dist/esm/index.d.ts.map +1 -0
  402. package/dist/esm/index.js +8 -0
  403. package/dist/esm/index.js.map +1 -0
  404. package/dist/esm/lib/base64.d.ts +10 -0
  405. package/dist/esm/lib/base64.d.ts.map +1 -0
  406. package/dist/esm/lib/base64.js +31 -0
  407. package/dist/esm/lib/base64.js.map +1 -0
  408. package/dist/esm/lib/config.d.ts +38 -0
  409. package/dist/esm/lib/config.d.ts.map +1 -0
  410. package/dist/esm/lib/config.js +33 -0
  411. package/dist/esm/lib/config.js.map +1 -0
  412. package/dist/esm/lib/dlv.d.ts +14 -0
  413. package/dist/esm/lib/dlv.d.ts.map +1 -0
  414. package/dist/esm/lib/dlv.js +46 -0
  415. package/dist/esm/lib/dlv.js.map +1 -0
  416. package/dist/esm/lib/encodings.d.ts +53 -0
  417. package/dist/esm/lib/encodings.d.ts.map +1 -0
  418. package/dist/esm/lib/encodings.js +370 -0
  419. package/dist/esm/lib/encodings.js.map +1 -0
  420. package/dist/esm/lib/env.d.ts +15 -0
  421. package/dist/esm/lib/env.d.ts.map +1 -0
  422. package/dist/esm/lib/env.js +44 -0
  423. package/dist/esm/lib/env.js.map +1 -0
  424. package/dist/esm/lib/files.d.ts +13 -0
  425. package/dist/esm/lib/files.d.ts.map +1 -0
  426. package/dist/esm/lib/files.js +73 -0
  427. package/dist/esm/lib/files.js.map +1 -0
  428. package/dist/esm/lib/http.d.ts +67 -0
  429. package/dist/esm/lib/http.d.ts.map +1 -0
  430. package/dist/esm/lib/http.js +207 -0
  431. package/dist/esm/lib/http.js.map +1 -0
  432. package/dist/esm/lib/is-plain-object.d.ts +2 -0
  433. package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
  434. package/dist/esm/lib/is-plain-object.js +38 -0
  435. package/dist/esm/lib/is-plain-object.js.map +1 -0
  436. package/dist/esm/lib/logger.d.ts +6 -0
  437. package/dist/esm/lib/logger.d.ts.map +1 -0
  438. package/dist/esm/lib/logger.js +5 -0
  439. package/dist/esm/lib/logger.js.map +1 -0
  440. package/dist/esm/lib/matchers.d.ts +59 -0
  441. package/dist/esm/lib/matchers.d.ts.map +1 -0
  442. package/dist/esm/lib/matchers.js +203 -0
  443. package/dist/esm/lib/matchers.js.map +1 -0
  444. package/dist/esm/lib/primitives.d.ts +26 -0
  445. package/dist/esm/lib/primitives.d.ts.map +1 -0
  446. package/dist/esm/lib/primitives.js +103 -0
  447. package/dist/esm/lib/primitives.js.map +1 -0
  448. package/dist/esm/lib/retries.d.ts +38 -0
  449. package/dist/esm/lib/retries.d.ts.map +1 -0
  450. package/dist/esm/lib/retries.js +147 -0
  451. package/dist/esm/lib/retries.js.map +1 -0
  452. package/dist/esm/lib/schemas.d.ts +21 -0
  453. package/dist/esm/lib/schemas.d.ts.map +1 -0
  454. package/dist/esm/lib/schemas.js +57 -0
  455. package/dist/esm/lib/schemas.js.map +1 -0
  456. package/dist/esm/lib/sdks.d.ts +63 -0
  457. package/dist/esm/lib/sdks.d.ts.map +1 -0
  458. package/dist/esm/lib/sdks.js +269 -0
  459. package/dist/esm/lib/sdks.js.map +1 -0
  460. package/dist/esm/lib/security.d.ts +83 -0
  461. package/dist/esm/lib/security.d.ts.map +1 -0
  462. package/dist/esm/lib/security.js +137 -0
  463. package/dist/esm/lib/security.js.map +1 -0
  464. package/dist/esm/lib/url.d.ts +5 -0
  465. package/dist/esm/lib/url.d.ts.map +1 -0
  466. package/dist/esm/lib/url.js +22 -0
  467. package/dist/esm/lib/url.js.map +1 -0
  468. package/dist/esm/models/errors/go-default-error.d.ts +10 -0
  469. package/dist/esm/models/errors/go-default-error.d.ts.map +1 -0
  470. package/dist/esm/models/errors/go-default-error.js +30 -0
  471. package/dist/esm/models/errors/go-default-error.js.map +1 -0
  472. package/dist/esm/models/errors/go-error.d.ts +19 -0
  473. package/dist/esm/models/errors/go-error.d.ts.map +1 -0
  474. package/dist/esm/models/errors/go-error.js +16 -0
  475. package/dist/esm/models/errors/go-error.js.map +1 -0
  476. package/dist/esm/models/errors/http-client-errors.d.ts +44 -0
  477. package/dist/esm/models/errors/http-client-errors.d.ts.map +1 -0
  478. package/dist/esm/models/errors/http-client-errors.js +69 -0
  479. package/dist/esm/models/errors/http-client-errors.js.map +1 -0
  480. package/dist/esm/models/errors/index.d.ts +6 -0
  481. package/dist/esm/models/errors/index.d.ts.map +1 -0
  482. package/dist/esm/models/errors/index.js +9 -0
  483. package/dist/esm/models/errors/index.js.map +1 -0
  484. package/dist/esm/models/errors/response-validation-error.d.ts +26 -0
  485. package/dist/esm/models/errors/response-validation-error.d.ts.map +1 -0
  486. package/dist/esm/models/errors/response-validation-error.js +29 -0
  487. package/dist/esm/models/errors/response-validation-error.js.map +1 -0
  488. package/dist/esm/models/errors/sdk-validation-error.d.ts +21 -0
  489. package/dist/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
  490. package/dist/esm/models/errors/sdk-validation-error.js +44 -0
  491. package/dist/esm/models/errors/sdk-validation-error.js.map +1 -0
  492. package/dist/esm/models/index.d.ts +2 -0
  493. package/dist/esm/models/index.d.ts.map +1 -0
  494. package/dist/esm/models/index.js +5 -0
  495. package/dist/esm/models/index.js.map +1 -0
  496. package/dist/esm/models/operations/add-device.d.ts +114 -0
  497. package/dist/esm/models/operations/add-device.d.ts.map +1 -0
  498. package/dist/esm/models/operations/add-device.js +89 -0
  499. package/dist/esm/models/operations/add-device.js.map +1 -0
  500. package/dist/esm/models/operations/delete-instance.d.ts +30 -0
  501. package/dist/esm/models/operations/delete-instance.d.ts.map +1 -0
  502. package/dist/esm/models/operations/delete-instance.js +21 -0
  503. package/dist/esm/models/operations/delete-instance.js.map +1 -0
  504. package/dist/esm/models/operations/device-connect.d.ts +103 -0
  505. package/dist/esm/models/operations/device-connect.d.ts.map +1 -0
  506. package/dist/esm/models/operations/device-connect.js +80 -0
  507. package/dist/esm/models/operations/device-connect.js.map +1 -0
  508. package/dist/esm/models/operations/fetch-interaction.d.ts +1562 -0
  509. package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -0
  510. package/dist/esm/models/operations/fetch-interaction.js +1221 -0
  511. package/dist/esm/models/operations/fetch-interaction.js.map +1 -0
  512. package/dist/esm/models/operations/get-journey-state.d.ts +1363 -0
  513. package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -0
  514. package/dist/esm/models/operations/get-journey-state.js +998 -0
  515. package/dist/esm/models/operations/get-journey-state.js.map +1 -0
  516. package/dist/esm/models/operations/get-task-schema.d.ts +31 -0
  517. package/dist/esm/models/operations/get-task-schema.d.ts.map +1 -0
  518. package/dist/esm/models/operations/get-task-schema.js +29 -0
  519. package/dist/esm/models/operations/get-task-schema.js.map +1 -0
  520. package/dist/esm/models/operations/get-tasks-schema.d.ts +71 -0
  521. package/dist/esm/models/operations/get-tasks-schema.d.ts.map +1 -0
  522. package/dist/esm/models/operations/get-tasks-schema.js +67 -0
  523. package/dist/esm/models/operations/get-tasks-schema.js.map +1 -0
  524. package/dist/esm/models/operations/get-tasks.d.ts +62 -0
  525. package/dist/esm/models/operations/get-tasks.d.ts.map +1 -0
  526. package/dist/esm/models/operations/get-tasks.js +51 -0
  527. package/dist/esm/models/operations/get-tasks.js.map +1 -0
  528. package/dist/esm/models/operations/health.d.ts +14 -0
  529. package/dist/esm/models/operations/health.d.ts.map +1 -0
  530. package/dist/esm/models/operations/health.js +14 -0
  531. package/dist/esm/models/operations/health.js.map +1 -0
  532. package/dist/esm/models/operations/index.d.ts +14 -0
  533. package/dist/esm/models/operations/index.d.ts.map +1 -0
  534. package/dist/esm/models/operations/index.js +17 -0
  535. package/dist/esm/models/operations/index.js.map +1 -0
  536. package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts +71 -0
  537. package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.d.ts.map +1 -0
  538. package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.js +52 -0
  539. package/dist/esm/models/operations/post-auth-realms-go-protocol-openid-connect-token.js.map +1 -0
  540. package/dist/esm/models/operations/start-journey.d.ts +2038 -0
  541. package/dist/esm/models/operations/start-journey.d.ts.map +1 -0
  542. package/dist/esm/models/operations/start-journey.js +984 -0
  543. package/dist/esm/models/operations/start-journey.js.map +1 -0
  544. package/dist/esm/models/operations/submit-interaction.d.ts +2061 -0
  545. package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -0
  546. package/dist/esm/models/operations/submit-interaction.js +1008 -0
  547. package/dist/esm/models/operations/submit-interaction.js.map +1 -0
  548. package/dist/esm/models/operations/update-task.d.ts +2045 -0
  549. package/dist/esm/models/operations/update-task.d.ts.map +1 -0
  550. package/dist/esm/models/operations/update-task.js +990 -0
  551. package/dist/esm/models/operations/update-task.js.map +1 -0
  552. package/dist/esm/models/security.d.ts +12 -0
  553. package/dist/esm/models/security.d.ts.map +1 -0
  554. package/dist/esm/models/security.js +17 -0
  555. package/dist/esm/models/security.js.map +1 -0
  556. package/dist/esm/package.json +3 -0
  557. package/dist/esm/sdk/devices.d.ts +19 -0
  558. package/dist/esm/sdk/devices.d.ts.map +1 -0
  559. package/dist/esm/sdk/devices.js +28 -0
  560. package/dist/esm/sdk/devices.js.map +1 -0
  561. package/dist/esm/sdk/health.d.ts +12 -0
  562. package/dist/esm/sdk/health.d.ts.map +1 -0
  563. package/dist/esm/sdk/health.js +18 -0
  564. package/dist/esm/sdk/health.js.map +1 -0
  565. package/dist/esm/sdk/index.d.ts +2 -0
  566. package/dist/esm/sdk/index.d.ts.map +1 -0
  567. package/dist/esm/sdk/index.js +5 -0
  568. package/dist/esm/sdk/index.js.map +1 -0
  569. package/dist/esm/sdk/instances.d.ts +12 -0
  570. package/dist/esm/sdk/instances.d.ts.map +1 -0
  571. package/dist/esm/sdk/instances.js +18 -0
  572. package/dist/esm/sdk/instances.js.map +1 -0
  573. package/dist/esm/sdk/interactions.d.ts +19 -0
  574. package/dist/esm/sdk/interactions.d.ts.map +1 -0
  575. package/dist/esm/sdk/interactions.js +28 -0
  576. package/dist/esm/sdk/interactions.js.map +1 -0
  577. package/dist/esm/sdk/journeys.d.ts +19 -0
  578. package/dist/esm/sdk/journeys.d.ts.map +1 -0
  579. package/dist/esm/sdk/journeys.js +28 -0
  580. package/dist/esm/sdk/journeys.js.map +1 -0
  581. package/dist/esm/sdk/sdk.d.ts +25 -0
  582. package/dist/esm/sdk/sdk.d.ts.map +1 -0
  583. package/dist/esm/sdk/sdk.js +35 -0
  584. package/dist/esm/sdk/sdk.js.map +1 -0
  585. package/dist/esm/sdk/tasks.d.ts +33 -0
  586. package/dist/esm/sdk/tasks.d.ts.map +1 -0
  587. package/dist/esm/sdk/tasks.js +48 -0
  588. package/dist/esm/sdk/tasks.js.map +1 -0
  589. package/dist/esm/sdk/tokens.d.ts +12 -0
  590. package/dist/esm/sdk/tokens.d.ts.map +1 -0
  591. package/dist/esm/sdk/tokens.js +18 -0
  592. package/dist/esm/sdk/tokens.js.map +1 -0
  593. package/dist/esm/types/async.d.ts +23 -0
  594. package/dist/esm/types/async.d.ts.map +1 -0
  595. package/dist/esm/types/async.js +40 -0
  596. package/dist/esm/types/async.js.map +1 -0
  597. package/dist/esm/types/blobs.d.ts +4 -0
  598. package/dist/esm/types/blobs.d.ts.map +1 -0
  599. package/dist/esm/types/blobs.js +25 -0
  600. package/dist/esm/types/blobs.js.map +1 -0
  601. package/dist/esm/types/const-date-time.d.ts +3 -0
  602. package/dist/esm/types/const-date-time.d.ts.map +1 -0
  603. package/dist/esm/types/const-date-time.js +10 -0
  604. package/dist/esm/types/const-date-time.js.map +1 -0
  605. package/dist/esm/types/default-to-zero-value.d.ts +12 -0
  606. package/dist/esm/types/default-to-zero-value.d.ts.map +1 -0
  607. package/dist/esm/types/default-to-zero-value.js +31 -0
  608. package/dist/esm/types/default-to-zero-value.js.map +1 -0
  609. package/dist/esm/types/discriminated-union.d.ts +25 -0
  610. package/dist/esm/types/discriminated-union.d.ts.map +1 -0
  611. package/dist/esm/types/discriminated-union.js +61 -0
  612. package/dist/esm/types/discriminated-union.js.map +1 -0
  613. package/dist/esm/types/enums.d.ts +9 -0
  614. package/dist/esm/types/enums.d.ts.map +1 -0
  615. package/dist/esm/types/enums.js +27 -0
  616. package/dist/esm/types/enums.js.map +1 -0
  617. package/dist/esm/types/fp.d.ts +31 -0
  618. package/dist/esm/types/fp.d.ts.map +1 -0
  619. package/dist/esm/types/fp.js +31 -0
  620. package/dist/esm/types/fp.js.map +1 -0
  621. package/dist/esm/types/index.d.ts +10 -0
  622. package/dist/esm/types/index.d.ts.map +1 -0
  623. package/dist/esm/types/index.js +10 -0
  624. package/dist/esm/types/index.js.map +1 -0
  625. package/dist/esm/types/operations.d.ts +27 -0
  626. package/dist/esm/types/operations.d.ts.map +1 -0
  627. package/dist/esm/types/operations.js +77 -0
  628. package/dist/esm/types/operations.js.map +1 -0
  629. package/dist/esm/types/primitives.d.ts +11 -0
  630. package/dist/esm/types/primitives.d.ts.map +1 -0
  631. package/dist/esm/types/primitives.js +132 -0
  632. package/dist/esm/types/primitives.js.map +1 -0
  633. package/dist/esm/types/rfcdate.d.ts +21 -0
  634. package/dist/esm/types/rfcdate.d.ts.map +1 -0
  635. package/dist/esm/types/rfcdate.js +42 -0
  636. package/dist/esm/types/rfcdate.js.map +1 -0
  637. package/dist/esm/types/smart-union.d.ts +7 -0
  638. package/dist/esm/types/smart-union.d.ts.map +1 -0
  639. package/dist/esm/types/smart-union.js +118 -0
  640. package/dist/esm/types/smart-union.js.map +1 -0
  641. package/dist/esm/types/streams.d.ts +2 -0
  642. package/dist/esm/types/streams.d.ts.map +1 -0
  643. package/dist/esm/types/streams.js +15 -0
  644. package/dist/esm/types/streams.js.map +1 -0
  645. package/dist/esm/types/unrecognized.d.ts +16 -0
  646. package/dist/esm/types/unrecognized.d.ts.map +1 -0
  647. package/dist/esm/types/unrecognized.js +31 -0
  648. package/dist/esm/types/unrecognized.js.map +1 -0
  649. package/examples/package-lock.json +611 -0
  650. package/examples/package.json +18 -0
  651. package/examples/tokensGenerate.example.ts +30 -0
  652. package/jsr.json +27 -0
  653. package/package.json +126 -0
  654. package/src/core.ts +13 -0
  655. package/src/funcs/devices-add.ts +165 -0
  656. package/src/funcs/devices-connect.ts +177 -0
  657. package/src/funcs/health-get.ts +142 -0
  658. package/src/funcs/instances-delete.ts +167 -0
  659. package/src/funcs/interactions-fetch.ts +176 -0
  660. package/src/funcs/interactions-submit.ts +176 -0
  661. package/src/funcs/journeys-get-state.ts +167 -0
  662. package/src/funcs/journeys-start.ts +165 -0
  663. package/src/funcs/tasks-get-schema.ts +167 -0
  664. package/src/funcs/tasks-list-schema.ts +167 -0
  665. package/src/funcs/tasks-list.ts +173 -0
  666. package/src/funcs/tasks-update.ts +173 -0
  667. package/src/funcs/tokens-generate.ts +179 -0
  668. package/src/hooks/hooks.ts +132 -0
  669. package/src/hooks/index.ts +6 -0
  670. package/src/hooks/registration.ts +14 -0
  671. package/src/hooks/types.ts +107 -0
  672. package/src/index.ts +9 -0
  673. package/src/lib/base64.ts +39 -0
  674. package/src/lib/config.ts +67 -0
  675. package/src/lib/dlv.ts +53 -0
  676. package/src/lib/encodings.ts +501 -0
  677. package/src/lib/env.ts +57 -0
  678. package/src/lib/files.ts +82 -0
  679. package/src/lib/http.ts +323 -0
  680. package/src/lib/is-plain-object.ts +43 -0
  681. package/src/lib/logger.ts +9 -0
  682. package/src/lib/matchers.ts +352 -0
  683. package/src/lib/primitives.ts +150 -0
  684. package/src/lib/retries.ts +218 -0
  685. package/src/lib/schemas.ts +94 -0
  686. package/src/lib/sdks.ts +406 -0
  687. package/src/lib/security.ts +264 -0
  688. package/src/lib/url.ts +33 -0
  689. package/src/models/errors/go-default-error.ts +40 -0
  690. package/src/models/errors/go-error.ts +35 -0
  691. package/src/models/errors/http-client-errors.ts +62 -0
  692. package/src/models/errors/index.ts +9 -0
  693. package/src/models/errors/response-validation-error.ts +50 -0
  694. package/src/models/errors/sdk-validation-error.ts +54 -0
  695. package/src/models/index.ts +5 -0
  696. package/src/models/operations/add-device.ts +215 -0
  697. package/src/models/operations/delete-instance.ts +69 -0
  698. package/src/models/operations/device-connect.ts +227 -0
  699. package/src/models/operations/fetch-interaction.ts +3683 -0
  700. package/src/models/operations/get-journey-state.ts +3152 -0
  701. package/src/models/operations/get-task-schema.ts +76 -0
  702. package/src/models/operations/get-tasks-schema.ts +173 -0
  703. package/src/models/operations/get-tasks.ts +144 -0
  704. package/src/models/operations/health.ts +38 -0
  705. package/src/models/operations/index.ts +17 -0
  706. package/src/models/operations/post-auth-realms-go-protocol-openid-connect-token.ts +148 -0
  707. package/src/models/operations/start-journey.ts +3785 -0
  708. package/src/models/operations/submit-interaction.ts +3977 -0
  709. package/src/models/operations/update-task.ts +3733 -0
  710. package/src/models/security.ts +34 -0
  711. package/src/sdk/devices.ts +47 -0
  712. package/src/sdk/health.ts +25 -0
  713. package/src/sdk/index.ts +5 -0
  714. package/src/sdk/instances.ts +27 -0
  715. package/src/sdk/interactions.ts +49 -0
  716. package/src/sdk/journeys.ts +45 -0
  717. package/src/sdk/sdk.ts +49 -0
  718. package/src/sdk/tasks.ts +85 -0
  719. package/src/sdk/tokens.ts +29 -0
  720. package/src/types/async.ts +68 -0
  721. package/src/types/blobs.ts +33 -0
  722. package/src/types/const-date-time.ts +15 -0
  723. package/src/types/default-to-zero-value.ts +33 -0
  724. package/src/types/discriminated-union.ts +101 -0
  725. package/src/types/enums.ts +45 -0
  726. package/src/types/fp.ts +50 -0
  727. package/src/types/index.ts +13 -0
  728. package/src/types/operations.ts +105 -0
  729. package/src/types/primitives.ts +168 -0
  730. package/src/types/rfcdate.ts +54 -0
  731. package/src/types/smart-union.ts +154 -0
  732. package/src/types/streams.ts +21 -0
  733. package/src/types/unrecognized.ts +35 -0
  734. package/tsconfig.json +40 -0
@@ -0,0 +1,3152 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as types from "../../types/primitives.js";
11
+ import { smartUnion } from "../../types/smart-union.js";
12
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
13
+
14
+ export type GetJourneyStateRequest = {
15
+ /**
16
+ * Journey Instance Id, a unique identifier for a started journey instance.
17
+ */
18
+ instanceId: string;
19
+ filterKeys?: Array<string> | undefined;
20
+ };
21
+
22
+ export const GetJourneyStateStatus = {
23
+ Completed: "Completed",
24
+ InProgress: "InProgress",
25
+ Failed: "Failed",
26
+ Paused: "Paused",
27
+ } as const;
28
+ export type GetJourneyStateStatus = OpenEnum<typeof GetJourneyStateStatus>;
29
+
30
+ export type MetaData = {
31
+ createdTime?: string | undefined;
32
+ completedTime?: string | undefined;
33
+ [additionalProperties: string]: unknown;
34
+ };
35
+
36
+ export type GetJourneyStateIdentityAlias = {
37
+ /**
38
+ * Title of an individual such as Mr, Mrs, Dr, Sir
39
+ */
40
+ title?: string | undefined;
41
+ /**
42
+ * A person's name used by their collegues and friends to address them
43
+ */
44
+ firstName?: string | undefined;
45
+ /**
46
+ * Any other registered names used by the individual, not aliases
47
+ */
48
+ middleNames?: Array<string> | undefined;
49
+ /**
50
+ * Any family names for the individual
51
+ */
52
+ lastNames?: Array<string> | undefined;
53
+ /**
54
+ * Any family names for the individual
55
+ */
56
+ lastNamesAtBirth?: Array<string> | undefined;
57
+ };
58
+
59
+ export const GetJourneyStateIdentityRelationship = {
60
+ Mother: "mother",
61
+ Father: "father",
62
+ MaternalGrandFather: "maternalGrandFather",
63
+ MaternalGrandMother: "maternalGrandMother",
64
+ PaternalGrandFather: "paternalGrandFather",
65
+ PaternalGrandMother: "paternalGrandMother",
66
+ } as const;
67
+ export type GetJourneyStateIdentityRelationship = OpenEnum<
68
+ typeof GetJourneyStateIdentityRelationship
69
+ >;
70
+
71
+ export type GetJourneyStateIdentityRelatedPerson = {
72
+ /**
73
+ * Title of an individual such as Mr, Mrs, Dr, Sir
74
+ */
75
+ title?: string | undefined;
76
+ /**
77
+ * A person's name used by their collegues and friends to address them
78
+ */
79
+ firstName?: string | undefined;
80
+ /**
81
+ * Any other registered names used by the individual, not aliases
82
+ */
83
+ middleNames?: Array<string> | undefined;
84
+ /**
85
+ * Any family names for the individual
86
+ */
87
+ lastNames?: Array<string> | undefined;
88
+ /**
89
+ * Any family names for the individual
90
+ */
91
+ lastNamesAtBirth?: Array<string> | undefined;
92
+ relationship: GetJourneyStateIdentityRelationship;
93
+ };
94
+
95
+ export type GetJourneyStateIdentityCurrentAddressLocation = {
96
+ latitude?: string | undefined;
97
+ longitude?: string | undefined;
98
+ geoAccuracy?: string | undefined;
99
+ /**
100
+ * A What3words designation associated with this location with '.' separator.
101
+ */
102
+ what3words?: string | undefined;
103
+ };
104
+
105
+ export type GetJourneyStateIdentityCurrentAddress = {
106
+ /**
107
+ * Unformatted line based address
108
+ */
109
+ lines?: Array<string> | undefined;
110
+ /**
111
+ * The address as a single line
112
+ */
113
+ addressString?: string | undefined;
114
+ /**
115
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
116
+ */
117
+ premise?: string | undefined;
118
+ /**
119
+ * The name of a building or a building complex. In the US, this is the street number.
120
+ */
121
+ building?: string | undefined;
122
+ /**
123
+ * The name of a sub-building, such as a flat or apartment number.
124
+ */
125
+ subBuilding?: string | undefined;
126
+ /**
127
+ * This field holds the most common street or block data element within a country. For instance, USA Street
128
+ */
129
+ thoroughfare?: string | undefined;
130
+ /**
131
+ * The name of a dependent street or block, such as a street within a complex.
132
+ */
133
+ dependentThoroughfare?: string | undefined;
134
+ /**
135
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
136
+ */
137
+ locality?: string | undefined;
138
+ /**
139
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
140
+ */
141
+ dependentLocality?: string | undefined;
142
+ /**
143
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
144
+ */
145
+ doubleDependentLocality?: string | undefined;
146
+ /**
147
+ * 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
148
+ */
149
+ postalCode?: string | undefined;
150
+ /**
151
+ * This field contains the post box number associated with a particular delivery point, should one exist.
152
+ */
153
+ postBox?: string | undefined;
154
+ /**
155
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
156
+ */
157
+ country?: string | undefined;
158
+ superAdministrativeArea?: string | undefined;
159
+ administrativeArea?: string | undefined;
160
+ subAdministrativeArea?: string | undefined;
161
+ organization?: string | undefined;
162
+ location?: GetJourneyStateIdentityCurrentAddressLocation | undefined;
163
+ };
164
+
165
+ export type GetJourneyStateIdentityPreviousAddressLocation = {
166
+ latitude?: string | undefined;
167
+ longitude?: string | undefined;
168
+ geoAccuracy?: string | undefined;
169
+ /**
170
+ * A What3words designation associated with this location with '.' separator.
171
+ */
172
+ what3words?: string | undefined;
173
+ };
174
+
175
+ export type GetJourneyStateIdentityPreviousAddress = {
176
+ /**
177
+ * Unformatted line based address
178
+ */
179
+ lines?: Array<string> | undefined;
180
+ /**
181
+ * The address as a single line
182
+ */
183
+ addressString?: string | undefined;
184
+ /**
185
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
186
+ */
187
+ premise?: string | undefined;
188
+ /**
189
+ * The name of a building or a building complex. In the US, this is the street number.
190
+ */
191
+ building?: string | undefined;
192
+ /**
193
+ * The name of a sub-building, such as a flat or apartment number.
194
+ */
195
+ subBuilding?: string | undefined;
196
+ /**
197
+ * This field holds the most common street or block data element within a country. For instance, USA Street
198
+ */
199
+ thoroughfare?: string | undefined;
200
+ /**
201
+ * The name of a dependent street or block, such as a street within a complex.
202
+ */
203
+ dependentThoroughfare?: string | undefined;
204
+ /**
205
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
206
+ */
207
+ locality?: string | undefined;
208
+ /**
209
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
210
+ */
211
+ dependentLocality?: string | undefined;
212
+ /**
213
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
214
+ */
215
+ doubleDependentLocality?: string | undefined;
216
+ /**
217
+ * 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
218
+ */
219
+ postalCode?: string | undefined;
220
+ /**
221
+ * This field contains the post box number associated with a particular delivery point, should one exist.
222
+ */
223
+ postBox?: string | undefined;
224
+ /**
225
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
226
+ */
227
+ country?: string | undefined;
228
+ superAdministrativeArea?: string | undefined;
229
+ administrativeArea?: string | undefined;
230
+ subAdministrativeArea?: string | undefined;
231
+ organization?: string | undefined;
232
+ location?: GetJourneyStateIdentityPreviousAddressLocation | undefined;
233
+ /**
234
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
235
+ */
236
+ fromDate: string;
237
+ /**
238
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
239
+ */
240
+ toDate: string;
241
+ };
242
+
243
+ export type GetJourneyStateIdentityPlaceOfBirthLocation = {
244
+ latitude?: string | undefined;
245
+ longitude?: string | undefined;
246
+ geoAccuracy?: string | undefined;
247
+ /**
248
+ * A What3words designation associated with this location with '.' separator.
249
+ */
250
+ what3words?: string | undefined;
251
+ };
252
+
253
+ export type GetJourneyStateIdentityPlaceOfBirth = {
254
+ /**
255
+ * Unformatted line based address
256
+ */
257
+ lines?: Array<string> | undefined;
258
+ /**
259
+ * The address as a single line
260
+ */
261
+ addressString?: string | undefined;
262
+ /**
263
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
264
+ */
265
+ premise?: string | undefined;
266
+ /**
267
+ * The name of a building or a building complex. In the US, this is the street number.
268
+ */
269
+ building?: string | undefined;
270
+ /**
271
+ * The name of a sub-building, such as a flat or apartment number.
272
+ */
273
+ subBuilding?: string | undefined;
274
+ /**
275
+ * This field holds the most common street or block data element within a country. For instance, USA Street
276
+ */
277
+ thoroughfare?: string | undefined;
278
+ /**
279
+ * The name of a dependent street or block, such as a street within a complex.
280
+ */
281
+ dependentThoroughfare?: string | undefined;
282
+ /**
283
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
284
+ */
285
+ locality?: string | undefined;
286
+ /**
287
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
288
+ */
289
+ dependentLocality?: string | undefined;
290
+ /**
291
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
292
+ */
293
+ doubleDependentLocality?: string | undefined;
294
+ /**
295
+ * 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
296
+ */
297
+ postalCode?: string | undefined;
298
+ /**
299
+ * This field contains the post box number associated with a particular delivery point, should one exist.
300
+ */
301
+ postBox?: string | undefined;
302
+ /**
303
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
304
+ */
305
+ country?: string | undefined;
306
+ superAdministrativeArea?: string | undefined;
307
+ administrativeArea?: string | undefined;
308
+ subAdministrativeArea?: string | undefined;
309
+ organization?: string | undefined;
310
+ location?: GetJourneyStateIdentityPlaceOfBirthLocation | undefined;
311
+ };
312
+
313
+ export type GetJourneyStateIdentityIdNumber = {
314
+ /**
315
+ * The type of phone number, such as landline, mobile, fax, unknown etc
316
+ */
317
+ type: string;
318
+ /**
319
+ * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
320
+ */
321
+ idNumber: string;
322
+ /**
323
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
324
+ */
325
+ country?: string | undefined;
326
+ };
327
+
328
+ export type GetJourneyStateIdentityPhone = {
329
+ /**
330
+ * The type of phone number, such as landline, mobile, fax, unknown etc
331
+ */
332
+ type: string;
333
+ /**
334
+ * Phone number, ideally in international format with +(Country Code)
335
+ */
336
+ number: string;
337
+ };
338
+
339
+ export type GetJourneyStateIdentityEmail = {
340
+ /**
341
+ * The type of email, such as home, work, unknown etc
342
+ */
343
+ type: string;
344
+ /**
345
+ * Email address
346
+ */
347
+ email: string;
348
+ };
349
+
350
+ export type GetJourneyStateIdentitySocial = {
351
+ /**
352
+ * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
353
+ */
354
+ type: string;
355
+ /**
356
+ * the identity used on this platform
357
+ */
358
+ identity: string;
359
+ };
360
+
361
+ export type GetJourneyStateIdentity = {
362
+ /**
363
+ * Title of an individual such as Mr, Mrs, Dr, Sir
364
+ */
365
+ title?: string | undefined;
366
+ /**
367
+ * A person's name used by their collegues and friends to address them
368
+ */
369
+ firstName?: string | undefined;
370
+ /**
371
+ * Any other registered names used by the individual, not aliases
372
+ */
373
+ middleNames?: Array<string> | undefined;
374
+ /**
375
+ * Any family names for the individual
376
+ */
377
+ lastNames?: Array<string> | undefined;
378
+ /**
379
+ * Any family names for the individual
380
+ */
381
+ lastNamesAtBirth?: Array<string> | undefined;
382
+ aliases?: Array<GetJourneyStateIdentityAlias> | undefined;
383
+ relatedPersons?: Array<GetJourneyStateIdentityRelatedPerson> | undefined;
384
+ /**
385
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
386
+ */
387
+ dateOfBirth?: string | undefined;
388
+ gender?: string | undefined;
389
+ currentAddress?: GetJourneyStateIdentityCurrentAddress | undefined;
390
+ previousAddresses?: Array<GetJourneyStateIdentityPreviousAddress> | undefined;
391
+ placeOfBirth?: GetJourneyStateIdentityPlaceOfBirth | undefined;
392
+ idNumbers?: Array<GetJourneyStateIdentityIdNumber> | undefined;
393
+ phones?: Array<GetJourneyStateIdentityPhone> | undefined;
394
+ emails?: Array<GetJourneyStateIdentityEmail> | undefined;
395
+ socials?: Array<GetJourneyStateIdentitySocial> | undefined;
396
+ /**
397
+ * The subject's mother's maiden name, used for identity verification
398
+ */
399
+ mothersMaidenName?: string | undefined;
400
+ };
401
+
402
+ export type GetJourneyStateAddress = {
403
+ addressString?: string | undefined;
404
+ extractedAddressString?: string | undefined;
405
+ addressLine1?: string | undefined;
406
+ addressLine2?: string | undefined;
407
+ locality?: string | undefined;
408
+ administrativeArea?: string | undefined;
409
+ postalCode?: string | undefined;
410
+ };
411
+
412
+ export type GetJourneyStateDocumentDevice = {
413
+ type?: string | undefined;
414
+ model?: string | undefined;
415
+ hasContactlessReader?: boolean | undefined;
416
+ hasMagneticStripeReader?: boolean | undefined;
417
+ hasCamera?: boolean | undefined;
418
+ serialNumber?: string | undefined;
419
+ manufacturer?: string | undefined;
420
+ };
421
+
422
+ export const GetJourneyStateName = {
423
+ Com: "COM",
424
+ Sod: "SOD",
425
+ Dg1: "DG1",
426
+ Dg2: "DG2",
427
+ Dg3: "DG3",
428
+ Dg4: "DG4",
429
+ Dg5: "DG5",
430
+ Dg6: "DG6",
431
+ Dg7: "DG7",
432
+ Dg8: "DG8",
433
+ Dg9: "DG9",
434
+ Dg10: "DG10",
435
+ Dg11: "DG11",
436
+ Dg12: "DG12",
437
+ Dg13: "DG13",
438
+ Dg14: "DG14",
439
+ Dg15: "DG15",
440
+ } as const;
441
+ export type GetJourneyStateName = OpenEnum<typeof GetJourneyStateName>;
442
+
443
+ export type GetJourneyStateLd = {
444
+ name: GetJourneyStateName;
445
+ data: string;
446
+ [additionalProperties: string]: unknown;
447
+ };
448
+
449
+ export const GetJourneyStateAuthType = {
450
+ ActiveAuthentication: "ActiveAuthentication",
451
+ BasicAccessControl: "BasicAccessControl",
452
+ ChipAuthentication: "ChipAuthentication",
453
+ PassiveAuthentication: "PassiveAuthentication",
454
+ SupplementalAccessControl: "SupplementalAccessControl",
455
+ ExtendedAccessControl: "ExtendedAccessControl",
456
+ TerminalAuthentication: "TerminalAuthentication",
457
+ } as const;
458
+ export type GetJourneyStateAuthType = OpenEnum<typeof GetJourneyStateAuthType>;
459
+
460
+ export const GetJourneyStateResult = {
461
+ Success: "Success",
462
+ Failure: "Failure",
463
+ Skipped: "Skipped",
464
+ } as const;
465
+ export type GetJourneyStateResult = OpenEnum<typeof GetJourneyStateResult>;
466
+
467
+ export type GetJourneyStateChipAuth = {
468
+ type: GetJourneyStateAuthType;
469
+ result: GetJourneyStateResult;
470
+ [additionalProperties: string]: unknown;
471
+ };
472
+
473
+ export type GetJourneyStateChip = {
474
+ lds: Array<GetJourneyStateLd>;
475
+ auth: Array<GetJourneyStateChipAuth>;
476
+ [additionalProperties: string]: unknown;
477
+ };
478
+
479
+ export type GetJourneyStateSide = {
480
+ side: string;
481
+ id: string;
482
+ documentQuality: string;
483
+ documentQualityScore: number;
484
+ };
485
+
486
+ export type GetJourneyStateClassification = {
487
+ ids?: Array<string> | undefined;
488
+ category?: string | undefined;
489
+ type?: string | undefined;
490
+ subtype?: string | undefined;
491
+ isDoubleSided?: boolean | undefined;
492
+ hasNFC?: boolean | undefined;
493
+ year?: string | undefined;
494
+ countryCode?: string | undefined;
495
+ countryName?: string | undefined;
496
+ stateCode?: string | undefined;
497
+ stateName?: string | undefined;
498
+ sides?: Array<GetJourneyStateSide> | undefined;
499
+ };
500
+
501
+ export type GetJourneyStateAggregatedFieldBoundingBox = {
502
+ x: number;
503
+ y: number;
504
+ width: number;
505
+ height: number;
506
+ };
507
+
508
+ export type GetJourneyStateAggregatedFieldRegionOfInterest = {
509
+ boundingBox?: GetJourneyStateAggregatedFieldBoundingBox | undefined;
510
+ side: string;
511
+ spectrum?: string | undefined;
512
+ imageId?: string | undefined;
513
+ };
514
+
515
+ export type GetJourneyStateAggregatedField = {
516
+ label: string;
517
+ value: string;
518
+ source: string;
519
+ isNonLatin: boolean;
520
+ regionOfInterest?: GetJourneyStateAggregatedFieldRegionOfInterest | undefined;
521
+ };
522
+
523
+ export type GetJourneyStateDetailBoundingBox = {
524
+ x: number;
525
+ y: number;
526
+ width: number;
527
+ height: number;
528
+ };
529
+
530
+ export type GetJourneyStateDetailRegionOfInterest = {
531
+ boundingBox?: GetJourneyStateDetailBoundingBox | undefined;
532
+ side: string;
533
+ spectrum?: string | undefined;
534
+ imageId?: string | undefined;
535
+ };
536
+
537
+ export type GetJourneyStateDetail = {
538
+ label: string;
539
+ value: string;
540
+ source: string;
541
+ isNonLatin: boolean;
542
+ regionOfInterest?: GetJourneyStateDetailRegionOfInterest | undefined;
543
+ };
544
+
545
+ export type GetJourneyStateExtractedField = {
546
+ label: string;
547
+ details: Array<GetJourneyStateDetail>;
548
+ };
549
+
550
+ export type GetJourneyStateExtractedImage = {
551
+ label: string;
552
+ side: string;
553
+ imageID: string;
554
+ };
555
+
556
+ export type GetJourneyStateExtraction = {
557
+ aggregatedFields?: Array<GetJourneyStateAggregatedField> | undefined;
558
+ extractedFields?: Array<GetJourneyStateExtractedField> | undefined;
559
+ extractedImages?: Array<GetJourneyStateExtractedImage> | undefined;
560
+ };
561
+
562
+ export type GetJourneyStateValidationCheckBoundingBox = {
563
+ x: number;
564
+ y: number;
565
+ width: number;
566
+ height: number;
567
+ };
568
+
569
+ export type GetJourneyStateValidationCheckRegionOfInterest = {
570
+ boundingBox?: GetJourneyStateValidationCheckBoundingBox | undefined;
571
+ side: string;
572
+ spectrum?: string | undefined;
573
+ imageId?: string | undefined;
574
+ };
575
+
576
+ export type GetJourneyStateValidationCheck = {
577
+ name: string;
578
+ title: string;
579
+ info: string;
580
+ validationResult: string;
581
+ resultInfo: string;
582
+ weight: string;
583
+ regionOfInterests?:
584
+ | Array<GetJourneyStateValidationCheckRegionOfInterest>
585
+ | undefined;
586
+ type: string;
587
+ };
588
+
589
+ export type GetJourneyStateAggregatedValidationCheckBoundingBox = {
590
+ x: number;
591
+ y: number;
592
+ width: number;
593
+ height: number;
594
+ };
595
+
596
+ export type GetJourneyStateAggregatedValidationCheckRegionOfInterest = {
597
+ boundingBox?: GetJourneyStateAggregatedValidationCheckBoundingBox | undefined;
598
+ side: string;
599
+ spectrum?: string | undefined;
600
+ imageId?: string | undefined;
601
+ };
602
+
603
+ export type GetJourneyStateAggregatedValidationCheck = {
604
+ name: string;
605
+ title: string;
606
+ info: string;
607
+ validationResult: string;
608
+ resultInfo: string;
609
+ weight: string;
610
+ regionOfInterests?:
611
+ | Array<GetJourneyStateAggregatedValidationCheckRegionOfInterest>
612
+ | undefined;
613
+ type: string;
614
+ };
615
+
616
+ export type GetJourneyStateValidation = {
617
+ validationChecks?: Array<GetJourneyStateValidationCheck> | undefined;
618
+ aggregatedValidationChecks?:
619
+ | Array<GetJourneyStateAggregatedValidationCheck>
620
+ | undefined;
621
+ };
622
+
623
+ export type GetJourneyStateDocumentAlias = {
624
+ /**
625
+ * Title of an individual such as Mr, Mrs, Dr, Sir
626
+ */
627
+ title?: string | undefined;
628
+ /**
629
+ * A person's name used by their collegues and friends to address them
630
+ */
631
+ firstName?: string | undefined;
632
+ /**
633
+ * Any other registered names used by the individual, not aliases
634
+ */
635
+ middleNames?: Array<string> | undefined;
636
+ /**
637
+ * Any family names for the individual
638
+ */
639
+ lastNames?: Array<string> | undefined;
640
+ /**
641
+ * Any family names for the individual
642
+ */
643
+ lastNamesAtBirth?: Array<string> | undefined;
644
+ };
645
+
646
+ export const GetJourneyStateDocumentRelationship = {
647
+ Mother: "mother",
648
+ Father: "father",
649
+ MaternalGrandFather: "maternalGrandFather",
650
+ MaternalGrandMother: "maternalGrandMother",
651
+ PaternalGrandFather: "paternalGrandFather",
652
+ PaternalGrandMother: "paternalGrandMother",
653
+ } as const;
654
+ export type GetJourneyStateDocumentRelationship = OpenEnum<
655
+ typeof GetJourneyStateDocumentRelationship
656
+ >;
657
+
658
+ export type GetJourneyStateDocumentRelatedPerson = {
659
+ /**
660
+ * Title of an individual such as Mr, Mrs, Dr, Sir
661
+ */
662
+ title?: string | undefined;
663
+ /**
664
+ * A person's name used by their collegues and friends to address them
665
+ */
666
+ firstName?: string | undefined;
667
+ /**
668
+ * Any other registered names used by the individual, not aliases
669
+ */
670
+ middleNames?: Array<string> | undefined;
671
+ /**
672
+ * Any family names for the individual
673
+ */
674
+ lastNames?: Array<string> | undefined;
675
+ /**
676
+ * Any family names for the individual
677
+ */
678
+ lastNamesAtBirth?: Array<string> | undefined;
679
+ relationship: GetJourneyStateDocumentRelationship;
680
+ };
681
+
682
+ export type GetJourneyStateDocumentCurrentAddressLocation = {
683
+ latitude?: string | undefined;
684
+ longitude?: string | undefined;
685
+ geoAccuracy?: string | undefined;
686
+ /**
687
+ * A What3words designation associated with this location with '.' separator.
688
+ */
689
+ what3words?: string | undefined;
690
+ };
691
+
692
+ export type GetJourneyStateDocumentCurrentAddress = {
693
+ /**
694
+ * Unformatted line based address
695
+ */
696
+ lines?: Array<string> | undefined;
697
+ /**
698
+ * The address as a single line
699
+ */
700
+ addressString?: string | undefined;
701
+ /**
702
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
703
+ */
704
+ premise?: string | undefined;
705
+ /**
706
+ * The name of a building or a building complex. In the US, this is the street number.
707
+ */
708
+ building?: string | undefined;
709
+ /**
710
+ * The name of a sub-building, such as a flat or apartment number.
711
+ */
712
+ subBuilding?: string | undefined;
713
+ /**
714
+ * This field holds the most common street or block data element within a country. For instance, USA Street
715
+ */
716
+ thoroughfare?: string | undefined;
717
+ /**
718
+ * The name of a dependent street or block, such as a street within a complex.
719
+ */
720
+ dependentThoroughfare?: string | undefined;
721
+ /**
722
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
723
+ */
724
+ locality?: string | undefined;
725
+ /**
726
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
727
+ */
728
+ dependentLocality?: string | undefined;
729
+ /**
730
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
731
+ */
732
+ doubleDependentLocality?: string | undefined;
733
+ /**
734
+ * 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
735
+ */
736
+ postalCode?: string | undefined;
737
+ /**
738
+ * This field contains the post box number associated with a particular delivery point, should one exist.
739
+ */
740
+ postBox?: string | undefined;
741
+ /**
742
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
743
+ */
744
+ country?: string | undefined;
745
+ superAdministrativeArea?: string | undefined;
746
+ administrativeArea?: string | undefined;
747
+ subAdministrativeArea?: string | undefined;
748
+ organization?: string | undefined;
749
+ location?: GetJourneyStateDocumentCurrentAddressLocation | undefined;
750
+ };
751
+
752
+ export type GetJourneyStateDocumentPreviousAddressLocation = {
753
+ latitude?: string | undefined;
754
+ longitude?: string | undefined;
755
+ geoAccuracy?: string | undefined;
756
+ /**
757
+ * A What3words designation associated with this location with '.' separator.
758
+ */
759
+ what3words?: string | undefined;
760
+ };
761
+
762
+ export type GetJourneyStateDocumentPreviousAddress = {
763
+ /**
764
+ * Unformatted line based address
765
+ */
766
+ lines?: Array<string> | undefined;
767
+ /**
768
+ * The address as a single line
769
+ */
770
+ addressString?: string | undefined;
771
+ /**
772
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
773
+ */
774
+ premise?: string | undefined;
775
+ /**
776
+ * The name of a building or a building complex. In the US, this is the street number.
777
+ */
778
+ building?: string | undefined;
779
+ /**
780
+ * The name of a sub-building, such as a flat or apartment number.
781
+ */
782
+ subBuilding?: string | undefined;
783
+ /**
784
+ * This field holds the most common street or block data element within a country. For instance, USA Street
785
+ */
786
+ thoroughfare?: string | undefined;
787
+ /**
788
+ * The name of a dependent street or block, such as a street within a complex.
789
+ */
790
+ dependentThoroughfare?: string | undefined;
791
+ /**
792
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
793
+ */
794
+ locality?: string | undefined;
795
+ /**
796
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
797
+ */
798
+ dependentLocality?: string | undefined;
799
+ /**
800
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
801
+ */
802
+ doubleDependentLocality?: string | undefined;
803
+ /**
804
+ * 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
805
+ */
806
+ postalCode?: string | undefined;
807
+ /**
808
+ * This field contains the post box number associated with a particular delivery point, should one exist.
809
+ */
810
+ postBox?: string | undefined;
811
+ /**
812
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
813
+ */
814
+ country?: string | undefined;
815
+ superAdministrativeArea?: string | undefined;
816
+ administrativeArea?: string | undefined;
817
+ subAdministrativeArea?: string | undefined;
818
+ organization?: string | undefined;
819
+ location?: GetJourneyStateDocumentPreviousAddressLocation | undefined;
820
+ /**
821
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
822
+ */
823
+ fromDate: string;
824
+ /**
825
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
826
+ */
827
+ toDate: string;
828
+ };
829
+
830
+ export type GetJourneyStateDocumentPlaceOfBirthLocation = {
831
+ latitude?: string | undefined;
832
+ longitude?: string | undefined;
833
+ geoAccuracy?: string | undefined;
834
+ /**
835
+ * A What3words designation associated with this location with '.' separator.
836
+ */
837
+ what3words?: string | undefined;
838
+ };
839
+
840
+ export type GetJourneyStateDocumentPlaceOfBirth = {
841
+ /**
842
+ * Unformatted line based address
843
+ */
844
+ lines?: Array<string> | undefined;
845
+ /**
846
+ * The address as a single line
847
+ */
848
+ addressString?: string | undefined;
849
+ /**
850
+ * The primary delivery point for a premise or building. This could be a house number, a building name, etc.
851
+ */
852
+ premise?: string | undefined;
853
+ /**
854
+ * The name of a building or a building complex. In the US, this is the street number.
855
+ */
856
+ building?: string | undefined;
857
+ /**
858
+ * The name of a sub-building, such as a flat or apartment number.
859
+ */
860
+ subBuilding?: string | undefined;
861
+ /**
862
+ * This field holds the most common street or block data element within a country. For instance, USA Street
863
+ */
864
+ thoroughfare?: string | undefined;
865
+ /**
866
+ * The name of a dependent street or block, such as a street within a complex.
867
+ */
868
+ dependentThoroughfare?: string | undefined;
869
+ /**
870
+ * This field holds the most common population center data element within a country. For instance, USA City, Canadian Municipality
871
+ */
872
+ locality?: string | undefined;
873
+ /**
874
+ * This is a smaller area within a locality, such as a neighborhood or district. Like Manhattan in New York City, or Soho in London.
875
+ */
876
+ dependentLocality?: string | undefined;
877
+ /**
878
+ * This is an even smaller area within a dependent locality, often used in very detailed addresses.
879
+ */
880
+ doubleDependentLocality?: string | undefined;
881
+ /**
882
+ * 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
883
+ */
884
+ postalCode?: string | undefined;
885
+ /**
886
+ * This field contains the post box number associated with a particular delivery point, should one exist.
887
+ */
888
+ postBox?: string | undefined;
889
+ /**
890
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
891
+ */
892
+ country?: string | undefined;
893
+ superAdministrativeArea?: string | undefined;
894
+ administrativeArea?: string | undefined;
895
+ subAdministrativeArea?: string | undefined;
896
+ organization?: string | undefined;
897
+ location?: GetJourneyStateDocumentPlaceOfBirthLocation | undefined;
898
+ };
899
+
900
+ export type GetJourneyStateDocumentIdNumber = {
901
+ /**
902
+ * The type of phone number, such as landline, mobile, fax, unknown etc
903
+ */
904
+ type: string;
905
+ /**
906
+ * ID number eg, National Insurance Number in UK, Social Securtiy Number in US
907
+ */
908
+ idNumber: string;
909
+ /**
910
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
911
+ */
912
+ country?: string | undefined;
913
+ };
914
+
915
+ export type GetJourneyStateDocumentPhone = {
916
+ /**
917
+ * The type of phone number, such as landline, mobile, fax, unknown etc
918
+ */
919
+ type: string;
920
+ /**
921
+ * Phone number, ideally in international format with +(Country Code)
922
+ */
923
+ number: string;
924
+ };
925
+
926
+ export type GetJourneyStateDocumentEmail = {
927
+ /**
928
+ * The type of email, such as home, work, unknown etc
929
+ */
930
+ type: string;
931
+ /**
932
+ * Email address
933
+ */
934
+ email: string;
935
+ };
936
+
937
+ export type GetJourneyStateDocumentSocial = {
938
+ /**
939
+ * An agreed standardised name for the social media platform this identity relates to such as Facebook, Twitter, unknown etc
940
+ */
941
+ type: string;
942
+ /**
943
+ * the identity used on this platform
944
+ */
945
+ identity: string;
946
+ };
947
+
948
+ export type GetJourneyStateDocumentSubject = {
949
+ /**
950
+ * Title of an individual such as Mr, Mrs, Dr, Sir
951
+ */
952
+ title?: string | undefined;
953
+ /**
954
+ * A person's name used by their collegues and friends to address them
955
+ */
956
+ firstName?: string | undefined;
957
+ /**
958
+ * Any other registered names used by the individual, not aliases
959
+ */
960
+ middleNames?: Array<string> | undefined;
961
+ /**
962
+ * Any family names for the individual
963
+ */
964
+ lastNames?: Array<string> | undefined;
965
+ /**
966
+ * Any family names for the individual
967
+ */
968
+ lastNamesAtBirth?: Array<string> | undefined;
969
+ aliases?: Array<GetJourneyStateDocumentAlias> | undefined;
970
+ relatedPersons?: Array<GetJourneyStateDocumentRelatedPerson> | undefined;
971
+ /**
972
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
973
+ */
974
+ dateOfBirth?: string | undefined;
975
+ gender?: string | undefined;
976
+ currentAddress?: GetJourneyStateDocumentCurrentAddress | undefined;
977
+ previousAddresses?: Array<GetJourneyStateDocumentPreviousAddress> | undefined;
978
+ placeOfBirth?: GetJourneyStateDocumentPlaceOfBirth | undefined;
979
+ idNumbers?: Array<GetJourneyStateDocumentIdNumber> | undefined;
980
+ phones?: Array<GetJourneyStateDocumentPhone> | undefined;
981
+ emails?: Array<GetJourneyStateDocumentEmail> | undefined;
982
+ socials?: Array<GetJourneyStateDocumentSocial> | undefined;
983
+ /**
984
+ * The subject's mother's maiden name, used for identity verification
985
+ */
986
+ mothersMaidenName?: string | undefined;
987
+ };
988
+
989
+ export type GetJourneyStateDocument = {
990
+ oneDBarcode?: string | undefined;
991
+ address?: GetJourneyStateAddress | undefined;
992
+ applicationDate?: string | undefined;
993
+ applicationNumber?: string | undefined;
994
+ dateOfBirth?: string | undefined;
995
+ placeOfBirth?: string | undefined;
996
+ placeOfBirthNative?: string | undefined;
997
+ bloodType?: string | undefined;
998
+ controlNumber?: string | undefined;
999
+ countryCode?: string | undefined;
1000
+ countryName?: string | undefined;
1001
+ documentClassCode?: string | undefined;
1002
+ documentClassName?: string | undefined;
1003
+ documentNumber?: string | undefined;
1004
+ documentSignerCertificate?: string | undefined;
1005
+ employer?: string | undefined;
1006
+ employerAddress?: string | undefined;
1007
+ entries?: string | undefined;
1008
+ expirationDate?: string | undefined;
1009
+ eyeColor?: string | undefined;
1010
+ fathersName?: string | undefined;
1011
+ fathersNameNative?: string | undefined;
1012
+ fathersSurname?: string | undefined;
1013
+ firstName?: string | undefined;
1014
+ fullName?: string | undefined;
1015
+ fullNameNative?: string | undefined;
1016
+ givenName?: string | undefined;
1017
+ givenNameNative?: string | undefined;
1018
+ hairColor?: string | undefined;
1019
+ height?: string | undefined;
1020
+ /**
1021
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1022
+ */
1023
+ issueDate?: string | undefined;
1024
+ issuingAuthority?: string | undefined;
1025
+ issuingAuthorityNative?: string | undefined;
1026
+ issuingStateCode?: string | undefined;
1027
+ issuingStateName?: string | undefined;
1028
+ licenseClass?: string | undefined;
1029
+ licenseEndorsements?: string | undefined;
1030
+ licenseRestrictions?: string | undefined;
1031
+ mrz?: string | undefined;
1032
+ mrz1?: string | undefined;
1033
+ mrz2?: string | undefined;
1034
+ mrz3?: string | undefined;
1035
+ middleName?: string | undefined;
1036
+ mothersName?: string | undefined;
1037
+ mothersNameNative?: string | undefined;
1038
+ mothersSurname?: string | undefined;
1039
+ nameSuffix?: string | undefined;
1040
+ nationalityCode?: string | undefined;
1041
+ nationalityName?: string | undefined;
1042
+ nationalityNameNative?: string | undefined;
1043
+ occupation?: string | undefined;
1044
+ organDonor?: boolean | undefined;
1045
+ passportNumber?: string | undefined;
1046
+ permitNumber?: string | undefined;
1047
+ personalNumber?: string | undefined;
1048
+ photo?: string | undefined;
1049
+ photoCompressed?: string | undefined;
1050
+ photoEncoding?: string | undefined;
1051
+ sex?: string | undefined;
1052
+ sexNative?: string | undefined;
1053
+ signature?: string | undefined;
1054
+ signatureCompressed?: string | undefined;
1055
+ signatureEncoding?: string | undefined;
1056
+ socialSecurityNumber?: string | undefined;
1057
+ startDate?: string | undefined;
1058
+ surname?: string | undefined;
1059
+ surnameNative?: string | undefined;
1060
+ visaClass?: string | undefined;
1061
+ visaNumber?: string | undefined;
1062
+ weight?: string | undefined;
1063
+ cardNumber?: string | undefined;
1064
+ /**
1065
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1066
+ */
1067
+ issuerCountryCode?: string | undefined;
1068
+ id?: string | undefined;
1069
+ type?: string | undefined;
1070
+ category?: string | undefined;
1071
+ subtype?: string | undefined;
1072
+ format?: string | undefined;
1073
+ device?: GetJourneyStateDocumentDevice | undefined;
1074
+ side1Image?: string | undefined;
1075
+ side2Image?: string | undefined;
1076
+ chip?: GetJourneyStateChip | undefined;
1077
+ classification?: GetJourneyStateClassification | undefined;
1078
+ extraction?: GetJourneyStateExtraction | undefined;
1079
+ validation?: GetJourneyStateValidation | undefined;
1080
+ subType?: string | undefined;
1081
+ number?: string | undefined;
1082
+ /**
1083
+ * Specified in year, month and day separated by -. For example 2017-1-1 or 2017-01-01 which conforms to ISO 8601
1084
+ */
1085
+ expiryDate?: string | undefined;
1086
+ subject?: GetJourneyStateDocumentSubject | undefined;
1087
+ /**
1088
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1089
+ */
1090
+ country?: string | undefined;
1091
+ };
1092
+
1093
+ export type GetJourneyStateBiometric4 = {
1094
+ id?: string | undefined;
1095
+ type?: string | undefined;
1096
+ selfieImage: string;
1097
+ anchorImage: string;
1098
+ };
1099
+
1100
+ export type GetJourneyStateBiometric3 = {
1101
+ id?: string | undefined;
1102
+ type?: string | undefined;
1103
+ selfieImage: string;
1104
+ selfieImageEncryption?: boolean | undefined;
1105
+ };
1106
+
1107
+ export type GetJourneyStateBiometric2 = {
1108
+ id?: string | undefined;
1109
+ type?: string | undefined;
1110
+ face1Image: string;
1111
+ face2Image: string;
1112
+ };
1113
+
1114
+ export type GetJourneyStateBiometric1 = {
1115
+ id?: string | undefined;
1116
+ type?: string | undefined;
1117
+ faceImage: string;
1118
+ };
1119
+
1120
+ export type GetJourneyStateBiometricUnion =
1121
+ | GetJourneyStateBiometric2
1122
+ | GetJourneyStateBiometric4
1123
+ | GetJourneyStateBiometric1
1124
+ | GetJourneyStateBiometric3;
1125
+
1126
+ export type GetJourneyStateUser = {
1127
+ id: string;
1128
+ email: string;
1129
+ domain: string;
1130
+ };
1131
+
1132
+ export type GetJourneyStateClient = {
1133
+ id: string;
1134
+ ip: string;
1135
+ address: string;
1136
+ };
1137
+
1138
+ export type GetJourneyStateModel = {
1139
+ identifier: string;
1140
+ name: string;
1141
+ };
1142
+
1143
+ export type GetJourneyStateSessionDevice = {
1144
+ id: string;
1145
+ manufacturer: string;
1146
+ model: GetJourneyStateModel;
1147
+ };
1148
+
1149
+ export type GetJourneyStateTrace = {
1150
+ id: string;
1151
+ };
1152
+
1153
+ export type GetJourneyStateSpan = {
1154
+ id: string;
1155
+ };
1156
+
1157
+ export type GetJourneyStateTransaction = {
1158
+ id: string;
1159
+ };
1160
+
1161
+ export type GetJourneyStateSessionAuth = {
1162
+ id: string;
1163
+ scope?: string | undefined;
1164
+ codeVerifier?: string | undefined;
1165
+ code?: string | undefined;
1166
+ state?: string | undefined;
1167
+ redirectUri?: string | undefined;
1168
+ responseType?: string | undefined;
1169
+ clientId?: string | undefined;
1170
+ clientSecret?: string | undefined;
1171
+ };
1172
+
1173
+ export type GetJourneyStateSession = {
1174
+ user?: GetJourneyStateUser | undefined;
1175
+ client?: GetJourneyStateClient | undefined;
1176
+ device?: GetJourneyStateSessionDevice | undefined;
1177
+ trace?: GetJourneyStateTrace | undefined;
1178
+ span?: GetJourneyStateSpan | undefined;
1179
+ transaction?: GetJourneyStateTransaction | undefined;
1180
+ auth?: Array<GetJourneyStateSessionAuth> | undefined;
1181
+ };
1182
+
1183
+ export const GetJourneyStateConsentType = {
1184
+ Rollup: "rollup",
1185
+ Explicit: "explicit",
1186
+ Implicit: "implicit",
1187
+ } as const;
1188
+ export type GetJourneyStateConsentType = OpenEnum<
1189
+ typeof GetJourneyStateConsentType
1190
+ >;
1191
+
1192
+ export type GetJourneyStateConsent = {
1193
+ type?: GetJourneyStateConsentType | undefined;
1194
+ id?: string | undefined;
1195
+ version?: string | undefined;
1196
+ url: string;
1197
+ effectiveDate?: string | undefined;
1198
+ expiryDate?: string | undefined;
1199
+ terms?: string | undefined;
1200
+ purpose?: string | undefined;
1201
+ legalBasis?: string | undefined;
1202
+ jurisdiction?: string | undefined;
1203
+ subject?: string | undefined;
1204
+ signatory?: string | undefined;
1205
+ };
1206
+
1207
+ export type GetJourneyStateSubject = {
1208
+ identity?: GetJourneyStateIdentity | undefined;
1209
+ documents?: Array<GetJourneyStateDocument> | undefined;
1210
+ biometrics?:
1211
+ | Array<
1212
+ | GetJourneyStateBiometric2
1213
+ | GetJourneyStateBiometric4
1214
+ | GetJourneyStateBiometric1
1215
+ | GetJourneyStateBiometric3
1216
+ >
1217
+ | undefined;
1218
+ sessions?: Array<GetJourneyStateSession> | undefined;
1219
+ consent?: Array<GetJourneyStateConsent> | undefined;
1220
+ uid?: string | undefined;
1221
+ };
1222
+
1223
+ export type GetJourneyStateContext = {
1224
+ subject: GetJourneyStateSubject;
1225
+ };
1226
+
1227
+ /**
1228
+ * Success
1229
+ */
1230
+ export type GetJourneyStateResponse = {
1231
+ /**
1232
+ * Journey Instance Id, a unique identifier for a started journey instance.
1233
+ */
1234
+ instanceId: string;
1235
+ status: GetJourneyStateStatus;
1236
+ metaData?: MetaData | undefined;
1237
+ context?: GetJourneyStateContext | undefined;
1238
+ data?: { [k: string]: any } | undefined;
1239
+ };
1240
+
1241
+ /** @internal */
1242
+ export type GetJourneyStateRequest$Outbound = {
1243
+ instanceId: string;
1244
+ filterKeys?: Array<string> | undefined;
1245
+ };
1246
+
1247
+ /** @internal */
1248
+ export const GetJourneyStateRequest$outboundSchema: z.ZodMiniType<
1249
+ GetJourneyStateRequest$Outbound,
1250
+ GetJourneyStateRequest
1251
+ > = z.object({
1252
+ instanceId: z.string(),
1253
+ filterKeys: z.optional(z.array(z.string())),
1254
+ });
1255
+
1256
+ export function getJourneyStateRequestToJSON(
1257
+ getJourneyStateRequest: GetJourneyStateRequest,
1258
+ ): string {
1259
+ return JSON.stringify(
1260
+ GetJourneyStateRequest$outboundSchema.parse(getJourneyStateRequest),
1261
+ );
1262
+ }
1263
+
1264
+ /** @internal */
1265
+ export const GetJourneyStateStatus$inboundSchema: z.ZodMiniType<
1266
+ GetJourneyStateStatus,
1267
+ unknown
1268
+ > = openEnums.inboundSchema(GetJourneyStateStatus);
1269
+
1270
+ /** @internal */
1271
+ export const MetaData$inboundSchema: z.ZodMiniType<MetaData, unknown> = z
1272
+ .catchall(
1273
+ z.object({
1274
+ createdTime: types.optional(types.string()),
1275
+ completedTime: types.optional(types.string()),
1276
+ }),
1277
+ z.any(),
1278
+ );
1279
+
1280
+ export function metaDataFromJSON(
1281
+ jsonString: string,
1282
+ ): SafeParseResult<MetaData, SDKValidationError> {
1283
+ return safeParse(
1284
+ jsonString,
1285
+ (x) => MetaData$inboundSchema.parse(JSON.parse(x)),
1286
+ `Failed to parse 'MetaData' from JSON`,
1287
+ );
1288
+ }
1289
+
1290
+ /** @internal */
1291
+ export const GetJourneyStateIdentityAlias$inboundSchema: z.ZodMiniType<
1292
+ GetJourneyStateIdentityAlias,
1293
+ unknown
1294
+ > = z.object({
1295
+ title: types.optional(types.string()),
1296
+ firstName: types.optional(types.string()),
1297
+ middleNames: types.optional(z.array(types.string())),
1298
+ lastNames: types.optional(z.array(types.string())),
1299
+ lastNamesAtBirth: types.optional(z.array(types.string())),
1300
+ });
1301
+
1302
+ export function getJourneyStateIdentityAliasFromJSON(
1303
+ jsonString: string,
1304
+ ): SafeParseResult<GetJourneyStateIdentityAlias, SDKValidationError> {
1305
+ return safeParse(
1306
+ jsonString,
1307
+ (x) => GetJourneyStateIdentityAlias$inboundSchema.parse(JSON.parse(x)),
1308
+ `Failed to parse 'GetJourneyStateIdentityAlias' from JSON`,
1309
+ );
1310
+ }
1311
+
1312
+ /** @internal */
1313
+ export const GetJourneyStateIdentityRelationship$inboundSchema: z.ZodMiniType<
1314
+ GetJourneyStateIdentityRelationship,
1315
+ unknown
1316
+ > = openEnums.inboundSchema(GetJourneyStateIdentityRelationship);
1317
+
1318
+ /** @internal */
1319
+ export const GetJourneyStateIdentityRelatedPerson$inboundSchema: z.ZodMiniType<
1320
+ GetJourneyStateIdentityRelatedPerson,
1321
+ unknown
1322
+ > = z.object({
1323
+ title: types.optional(types.string()),
1324
+ firstName: types.optional(types.string()),
1325
+ middleNames: types.optional(z.array(types.string())),
1326
+ lastNames: types.optional(z.array(types.string())),
1327
+ lastNamesAtBirth: types.optional(z.array(types.string())),
1328
+ relationship: GetJourneyStateIdentityRelationship$inboundSchema,
1329
+ });
1330
+
1331
+ export function getJourneyStateIdentityRelatedPersonFromJSON(
1332
+ jsonString: string,
1333
+ ): SafeParseResult<GetJourneyStateIdentityRelatedPerson, SDKValidationError> {
1334
+ return safeParse(
1335
+ jsonString,
1336
+ (x) =>
1337
+ GetJourneyStateIdentityRelatedPerson$inboundSchema.parse(JSON.parse(x)),
1338
+ `Failed to parse 'GetJourneyStateIdentityRelatedPerson' from JSON`,
1339
+ );
1340
+ }
1341
+
1342
+ /** @internal */
1343
+ export const GetJourneyStateIdentityCurrentAddressLocation$inboundSchema:
1344
+ z.ZodMiniType<GetJourneyStateIdentityCurrentAddressLocation, unknown> = z
1345
+ .object({
1346
+ latitude: types.optional(types.string()),
1347
+ longitude: types.optional(types.string()),
1348
+ geoAccuracy: types.optional(types.string()),
1349
+ what3words: types.optional(types.string()),
1350
+ });
1351
+
1352
+ export function getJourneyStateIdentityCurrentAddressLocationFromJSON(
1353
+ jsonString: string,
1354
+ ): SafeParseResult<
1355
+ GetJourneyStateIdentityCurrentAddressLocation,
1356
+ SDKValidationError
1357
+ > {
1358
+ return safeParse(
1359
+ jsonString,
1360
+ (x) =>
1361
+ GetJourneyStateIdentityCurrentAddressLocation$inboundSchema.parse(
1362
+ JSON.parse(x),
1363
+ ),
1364
+ `Failed to parse 'GetJourneyStateIdentityCurrentAddressLocation' from JSON`,
1365
+ );
1366
+ }
1367
+
1368
+ /** @internal */
1369
+ export const GetJourneyStateIdentityCurrentAddress$inboundSchema: z.ZodMiniType<
1370
+ GetJourneyStateIdentityCurrentAddress,
1371
+ unknown
1372
+ > = z.object({
1373
+ lines: types.optional(z.array(types.string())),
1374
+ addressString: types.optional(types.string()),
1375
+ premise: types.optional(types.string()),
1376
+ building: types.optional(types.string()),
1377
+ subBuilding: types.optional(types.string()),
1378
+ thoroughfare: types.optional(types.string()),
1379
+ dependentThoroughfare: types.optional(types.string()),
1380
+ locality: types.optional(types.string()),
1381
+ dependentLocality: types.optional(types.string()),
1382
+ doubleDependentLocality: types.optional(types.string()),
1383
+ postalCode: types.optional(types.string()),
1384
+ postBox: types.optional(types.string()),
1385
+ country: types.optional(types.string()),
1386
+ superAdministrativeArea: types.optional(types.string()),
1387
+ administrativeArea: types.optional(types.string()),
1388
+ subAdministrativeArea: types.optional(types.string()),
1389
+ organization: types.optional(types.string()),
1390
+ location: types.optional(
1391
+ z.lazy(() => GetJourneyStateIdentityCurrentAddressLocation$inboundSchema),
1392
+ ),
1393
+ });
1394
+
1395
+ export function getJourneyStateIdentityCurrentAddressFromJSON(
1396
+ jsonString: string,
1397
+ ): SafeParseResult<GetJourneyStateIdentityCurrentAddress, SDKValidationError> {
1398
+ return safeParse(
1399
+ jsonString,
1400
+ (x) =>
1401
+ GetJourneyStateIdentityCurrentAddress$inboundSchema.parse(JSON.parse(x)),
1402
+ `Failed to parse 'GetJourneyStateIdentityCurrentAddress' from JSON`,
1403
+ );
1404
+ }
1405
+
1406
+ /** @internal */
1407
+ export const GetJourneyStateIdentityPreviousAddressLocation$inboundSchema:
1408
+ z.ZodMiniType<GetJourneyStateIdentityPreviousAddressLocation, unknown> = z
1409
+ .object({
1410
+ latitude: types.optional(types.string()),
1411
+ longitude: types.optional(types.string()),
1412
+ geoAccuracy: types.optional(types.string()),
1413
+ what3words: types.optional(types.string()),
1414
+ });
1415
+
1416
+ export function getJourneyStateIdentityPreviousAddressLocationFromJSON(
1417
+ jsonString: string,
1418
+ ): SafeParseResult<
1419
+ GetJourneyStateIdentityPreviousAddressLocation,
1420
+ SDKValidationError
1421
+ > {
1422
+ return safeParse(
1423
+ jsonString,
1424
+ (x) =>
1425
+ GetJourneyStateIdentityPreviousAddressLocation$inboundSchema.parse(
1426
+ JSON.parse(x),
1427
+ ),
1428
+ `Failed to parse 'GetJourneyStateIdentityPreviousAddressLocation' from JSON`,
1429
+ );
1430
+ }
1431
+
1432
+ /** @internal */
1433
+ export const GetJourneyStateIdentityPreviousAddress$inboundSchema:
1434
+ z.ZodMiniType<GetJourneyStateIdentityPreviousAddress, unknown> = z.object({
1435
+ lines: types.optional(z.array(types.string())),
1436
+ addressString: types.optional(types.string()),
1437
+ premise: types.optional(types.string()),
1438
+ building: types.optional(types.string()),
1439
+ subBuilding: types.optional(types.string()),
1440
+ thoroughfare: types.optional(types.string()),
1441
+ dependentThoroughfare: types.optional(types.string()),
1442
+ locality: types.optional(types.string()),
1443
+ dependentLocality: types.optional(types.string()),
1444
+ doubleDependentLocality: types.optional(types.string()),
1445
+ postalCode: types.optional(types.string()),
1446
+ postBox: types.optional(types.string()),
1447
+ country: types.optional(types.string()),
1448
+ superAdministrativeArea: types.optional(types.string()),
1449
+ administrativeArea: types.optional(types.string()),
1450
+ subAdministrativeArea: types.optional(types.string()),
1451
+ organization: types.optional(types.string()),
1452
+ location: types.optional(
1453
+ z.lazy(() =>
1454
+ GetJourneyStateIdentityPreviousAddressLocation$inboundSchema
1455
+ ),
1456
+ ),
1457
+ fromDate: types.string(),
1458
+ toDate: types.string(),
1459
+ });
1460
+
1461
+ export function getJourneyStateIdentityPreviousAddressFromJSON(
1462
+ jsonString: string,
1463
+ ): SafeParseResult<GetJourneyStateIdentityPreviousAddress, SDKValidationError> {
1464
+ return safeParse(
1465
+ jsonString,
1466
+ (x) =>
1467
+ GetJourneyStateIdentityPreviousAddress$inboundSchema.parse(JSON.parse(x)),
1468
+ `Failed to parse 'GetJourneyStateIdentityPreviousAddress' from JSON`,
1469
+ );
1470
+ }
1471
+
1472
+ /** @internal */
1473
+ export const GetJourneyStateIdentityPlaceOfBirthLocation$inboundSchema:
1474
+ z.ZodMiniType<GetJourneyStateIdentityPlaceOfBirthLocation, unknown> = z
1475
+ .object({
1476
+ latitude: types.optional(types.string()),
1477
+ longitude: types.optional(types.string()),
1478
+ geoAccuracy: types.optional(types.string()),
1479
+ what3words: types.optional(types.string()),
1480
+ });
1481
+
1482
+ export function getJourneyStateIdentityPlaceOfBirthLocationFromJSON(
1483
+ jsonString: string,
1484
+ ): SafeParseResult<
1485
+ GetJourneyStateIdentityPlaceOfBirthLocation,
1486
+ SDKValidationError
1487
+ > {
1488
+ return safeParse(
1489
+ jsonString,
1490
+ (x) =>
1491
+ GetJourneyStateIdentityPlaceOfBirthLocation$inboundSchema.parse(
1492
+ JSON.parse(x),
1493
+ ),
1494
+ `Failed to parse 'GetJourneyStateIdentityPlaceOfBirthLocation' from JSON`,
1495
+ );
1496
+ }
1497
+
1498
+ /** @internal */
1499
+ export const GetJourneyStateIdentityPlaceOfBirth$inboundSchema: z.ZodMiniType<
1500
+ GetJourneyStateIdentityPlaceOfBirth,
1501
+ unknown
1502
+ > = z.object({
1503
+ lines: types.optional(z.array(types.string())),
1504
+ addressString: types.optional(types.string()),
1505
+ premise: types.optional(types.string()),
1506
+ building: types.optional(types.string()),
1507
+ subBuilding: types.optional(types.string()),
1508
+ thoroughfare: types.optional(types.string()),
1509
+ dependentThoroughfare: types.optional(types.string()),
1510
+ locality: types.optional(types.string()),
1511
+ dependentLocality: types.optional(types.string()),
1512
+ doubleDependentLocality: types.optional(types.string()),
1513
+ postalCode: types.optional(types.string()),
1514
+ postBox: types.optional(types.string()),
1515
+ country: types.optional(types.string()),
1516
+ superAdministrativeArea: types.optional(types.string()),
1517
+ administrativeArea: types.optional(types.string()),
1518
+ subAdministrativeArea: types.optional(types.string()),
1519
+ organization: types.optional(types.string()),
1520
+ location: types.optional(
1521
+ z.lazy(() => GetJourneyStateIdentityPlaceOfBirthLocation$inboundSchema),
1522
+ ),
1523
+ });
1524
+
1525
+ export function getJourneyStateIdentityPlaceOfBirthFromJSON(
1526
+ jsonString: string,
1527
+ ): SafeParseResult<GetJourneyStateIdentityPlaceOfBirth, SDKValidationError> {
1528
+ return safeParse(
1529
+ jsonString,
1530
+ (x) =>
1531
+ GetJourneyStateIdentityPlaceOfBirth$inboundSchema.parse(JSON.parse(x)),
1532
+ `Failed to parse 'GetJourneyStateIdentityPlaceOfBirth' from JSON`,
1533
+ );
1534
+ }
1535
+
1536
+ /** @internal */
1537
+ export const GetJourneyStateIdentityIdNumber$inboundSchema: z.ZodMiniType<
1538
+ GetJourneyStateIdentityIdNumber,
1539
+ unknown
1540
+ > = z.object({
1541
+ type: types.string(),
1542
+ idNumber: types.string(),
1543
+ country: types.optional(types.string()),
1544
+ });
1545
+
1546
+ export function getJourneyStateIdentityIdNumberFromJSON(
1547
+ jsonString: string,
1548
+ ): SafeParseResult<GetJourneyStateIdentityIdNumber, SDKValidationError> {
1549
+ return safeParse(
1550
+ jsonString,
1551
+ (x) => GetJourneyStateIdentityIdNumber$inboundSchema.parse(JSON.parse(x)),
1552
+ `Failed to parse 'GetJourneyStateIdentityIdNumber' from JSON`,
1553
+ );
1554
+ }
1555
+
1556
+ /** @internal */
1557
+ export const GetJourneyStateIdentityPhone$inboundSchema: z.ZodMiniType<
1558
+ GetJourneyStateIdentityPhone,
1559
+ unknown
1560
+ > = z.object({
1561
+ type: types.string(),
1562
+ number: types.string(),
1563
+ });
1564
+
1565
+ export function getJourneyStateIdentityPhoneFromJSON(
1566
+ jsonString: string,
1567
+ ): SafeParseResult<GetJourneyStateIdentityPhone, SDKValidationError> {
1568
+ return safeParse(
1569
+ jsonString,
1570
+ (x) => GetJourneyStateIdentityPhone$inboundSchema.parse(JSON.parse(x)),
1571
+ `Failed to parse 'GetJourneyStateIdentityPhone' from JSON`,
1572
+ );
1573
+ }
1574
+
1575
+ /** @internal */
1576
+ export const GetJourneyStateIdentityEmail$inboundSchema: z.ZodMiniType<
1577
+ GetJourneyStateIdentityEmail,
1578
+ unknown
1579
+ > = z.object({
1580
+ type: types.string(),
1581
+ email: types.string(),
1582
+ });
1583
+
1584
+ export function getJourneyStateIdentityEmailFromJSON(
1585
+ jsonString: string,
1586
+ ): SafeParseResult<GetJourneyStateIdentityEmail, SDKValidationError> {
1587
+ return safeParse(
1588
+ jsonString,
1589
+ (x) => GetJourneyStateIdentityEmail$inboundSchema.parse(JSON.parse(x)),
1590
+ `Failed to parse 'GetJourneyStateIdentityEmail' from JSON`,
1591
+ );
1592
+ }
1593
+
1594
+ /** @internal */
1595
+ export const GetJourneyStateIdentitySocial$inboundSchema: z.ZodMiniType<
1596
+ GetJourneyStateIdentitySocial,
1597
+ unknown
1598
+ > = z.object({
1599
+ type: types.string(),
1600
+ identity: types.string(),
1601
+ });
1602
+
1603
+ export function getJourneyStateIdentitySocialFromJSON(
1604
+ jsonString: string,
1605
+ ): SafeParseResult<GetJourneyStateIdentitySocial, SDKValidationError> {
1606
+ return safeParse(
1607
+ jsonString,
1608
+ (x) => GetJourneyStateIdentitySocial$inboundSchema.parse(JSON.parse(x)),
1609
+ `Failed to parse 'GetJourneyStateIdentitySocial' from JSON`,
1610
+ );
1611
+ }
1612
+
1613
+ /** @internal */
1614
+ export const GetJourneyStateIdentity$inboundSchema: z.ZodMiniType<
1615
+ GetJourneyStateIdentity,
1616
+ unknown
1617
+ > = z.object({
1618
+ title: types.optional(types.string()),
1619
+ firstName: types.optional(types.string()),
1620
+ middleNames: types.optional(z.array(types.string())),
1621
+ lastNames: types.optional(z.array(types.string())),
1622
+ lastNamesAtBirth: types.optional(z.array(types.string())),
1623
+ aliases: types.optional(
1624
+ z.array(z.lazy(() => GetJourneyStateIdentityAlias$inboundSchema)),
1625
+ ),
1626
+ relatedPersons: types.optional(
1627
+ z.array(z.lazy(() => GetJourneyStateIdentityRelatedPerson$inboundSchema)),
1628
+ ),
1629
+ dateOfBirth: types.optional(types.string()),
1630
+ gender: types.optional(types.string()),
1631
+ currentAddress: types.optional(
1632
+ z.lazy(() => GetJourneyStateIdentityCurrentAddress$inboundSchema),
1633
+ ),
1634
+ previousAddresses: types.optional(
1635
+ z.array(z.lazy(() => GetJourneyStateIdentityPreviousAddress$inboundSchema)),
1636
+ ),
1637
+ placeOfBirth: types.optional(
1638
+ z.lazy(() => GetJourneyStateIdentityPlaceOfBirth$inboundSchema),
1639
+ ),
1640
+ idNumbers: types.optional(
1641
+ z.array(z.lazy(() => GetJourneyStateIdentityIdNumber$inboundSchema)),
1642
+ ),
1643
+ phones: types.optional(
1644
+ z.array(z.lazy(() => GetJourneyStateIdentityPhone$inboundSchema)),
1645
+ ),
1646
+ emails: types.optional(
1647
+ z.array(z.lazy(() => GetJourneyStateIdentityEmail$inboundSchema)),
1648
+ ),
1649
+ socials: types.optional(
1650
+ z.array(z.lazy(() => GetJourneyStateIdentitySocial$inboundSchema)),
1651
+ ),
1652
+ mothersMaidenName: types.optional(types.string()),
1653
+ });
1654
+
1655
+ export function getJourneyStateIdentityFromJSON(
1656
+ jsonString: string,
1657
+ ): SafeParseResult<GetJourneyStateIdentity, SDKValidationError> {
1658
+ return safeParse(
1659
+ jsonString,
1660
+ (x) => GetJourneyStateIdentity$inboundSchema.parse(JSON.parse(x)),
1661
+ `Failed to parse 'GetJourneyStateIdentity' from JSON`,
1662
+ );
1663
+ }
1664
+
1665
+ /** @internal */
1666
+ export const GetJourneyStateAddress$inboundSchema: z.ZodMiniType<
1667
+ GetJourneyStateAddress,
1668
+ unknown
1669
+ > = z.object({
1670
+ addressString: types.optional(types.string()),
1671
+ extractedAddressString: types.optional(types.string()),
1672
+ addressLine1: types.optional(types.string()),
1673
+ addressLine2: types.optional(types.string()),
1674
+ locality: types.optional(types.string()),
1675
+ administrativeArea: types.optional(types.string()),
1676
+ postalCode: types.optional(types.string()),
1677
+ });
1678
+
1679
+ export function getJourneyStateAddressFromJSON(
1680
+ jsonString: string,
1681
+ ): SafeParseResult<GetJourneyStateAddress, SDKValidationError> {
1682
+ return safeParse(
1683
+ jsonString,
1684
+ (x) => GetJourneyStateAddress$inboundSchema.parse(JSON.parse(x)),
1685
+ `Failed to parse 'GetJourneyStateAddress' from JSON`,
1686
+ );
1687
+ }
1688
+
1689
+ /** @internal */
1690
+ export const GetJourneyStateDocumentDevice$inboundSchema: z.ZodMiniType<
1691
+ GetJourneyStateDocumentDevice,
1692
+ unknown
1693
+ > = z.object({
1694
+ type: types.optional(types.string()),
1695
+ model: types.optional(types.string()),
1696
+ hasContactlessReader: types.optional(types.boolean()),
1697
+ hasMagneticStripeReader: types.optional(types.boolean()),
1698
+ hasCamera: types.optional(types.boolean()),
1699
+ serialNumber: types.optional(types.string()),
1700
+ manufacturer: types.optional(types.string()),
1701
+ });
1702
+
1703
+ export function getJourneyStateDocumentDeviceFromJSON(
1704
+ jsonString: string,
1705
+ ): SafeParseResult<GetJourneyStateDocumentDevice, SDKValidationError> {
1706
+ return safeParse(
1707
+ jsonString,
1708
+ (x) => GetJourneyStateDocumentDevice$inboundSchema.parse(JSON.parse(x)),
1709
+ `Failed to parse 'GetJourneyStateDocumentDevice' from JSON`,
1710
+ );
1711
+ }
1712
+
1713
+ /** @internal */
1714
+ export const GetJourneyStateName$inboundSchema: z.ZodMiniType<
1715
+ GetJourneyStateName,
1716
+ unknown
1717
+ > = openEnums.inboundSchema(GetJourneyStateName);
1718
+
1719
+ /** @internal */
1720
+ export const GetJourneyStateLd$inboundSchema: z.ZodMiniType<
1721
+ GetJourneyStateLd,
1722
+ unknown
1723
+ > = z.catchall(
1724
+ z.object({
1725
+ name: GetJourneyStateName$inboundSchema,
1726
+ data: types.string(),
1727
+ }),
1728
+ z.any(),
1729
+ );
1730
+
1731
+ export function getJourneyStateLdFromJSON(
1732
+ jsonString: string,
1733
+ ): SafeParseResult<GetJourneyStateLd, SDKValidationError> {
1734
+ return safeParse(
1735
+ jsonString,
1736
+ (x) => GetJourneyStateLd$inboundSchema.parse(JSON.parse(x)),
1737
+ `Failed to parse 'GetJourneyStateLd' from JSON`,
1738
+ );
1739
+ }
1740
+
1741
+ /** @internal */
1742
+ export const GetJourneyStateAuthType$inboundSchema: z.ZodMiniType<
1743
+ GetJourneyStateAuthType,
1744
+ unknown
1745
+ > = openEnums.inboundSchema(GetJourneyStateAuthType);
1746
+
1747
+ /** @internal */
1748
+ export const GetJourneyStateResult$inboundSchema: z.ZodMiniType<
1749
+ GetJourneyStateResult,
1750
+ unknown
1751
+ > = openEnums.inboundSchema(GetJourneyStateResult);
1752
+
1753
+ /** @internal */
1754
+ export const GetJourneyStateChipAuth$inboundSchema: z.ZodMiniType<
1755
+ GetJourneyStateChipAuth,
1756
+ unknown
1757
+ > = z.catchall(
1758
+ z.object({
1759
+ type: GetJourneyStateAuthType$inboundSchema,
1760
+ result: GetJourneyStateResult$inboundSchema,
1761
+ }),
1762
+ z.any(),
1763
+ );
1764
+
1765
+ export function getJourneyStateChipAuthFromJSON(
1766
+ jsonString: string,
1767
+ ): SafeParseResult<GetJourneyStateChipAuth, SDKValidationError> {
1768
+ return safeParse(
1769
+ jsonString,
1770
+ (x) => GetJourneyStateChipAuth$inboundSchema.parse(JSON.parse(x)),
1771
+ `Failed to parse 'GetJourneyStateChipAuth' from JSON`,
1772
+ );
1773
+ }
1774
+
1775
+ /** @internal */
1776
+ export const GetJourneyStateChip$inboundSchema: z.ZodMiniType<
1777
+ GetJourneyStateChip,
1778
+ unknown
1779
+ > = z.catchall(
1780
+ z.object({
1781
+ lds: z.array(z.lazy(() => GetJourneyStateLd$inboundSchema)),
1782
+ auth: z.array(z.lazy(() => GetJourneyStateChipAuth$inboundSchema)),
1783
+ }),
1784
+ z.any(),
1785
+ );
1786
+
1787
+ export function getJourneyStateChipFromJSON(
1788
+ jsonString: string,
1789
+ ): SafeParseResult<GetJourneyStateChip, SDKValidationError> {
1790
+ return safeParse(
1791
+ jsonString,
1792
+ (x) => GetJourneyStateChip$inboundSchema.parse(JSON.parse(x)),
1793
+ `Failed to parse 'GetJourneyStateChip' from JSON`,
1794
+ );
1795
+ }
1796
+
1797
+ /** @internal */
1798
+ export const GetJourneyStateSide$inboundSchema: z.ZodMiniType<
1799
+ GetJourneyStateSide,
1800
+ unknown
1801
+ > = z.object({
1802
+ side: types.string(),
1803
+ id: types.string(),
1804
+ documentQuality: types.string(),
1805
+ documentQualityScore: types.number(),
1806
+ });
1807
+
1808
+ export function getJourneyStateSideFromJSON(
1809
+ jsonString: string,
1810
+ ): SafeParseResult<GetJourneyStateSide, SDKValidationError> {
1811
+ return safeParse(
1812
+ jsonString,
1813
+ (x) => GetJourneyStateSide$inboundSchema.parse(JSON.parse(x)),
1814
+ `Failed to parse 'GetJourneyStateSide' from JSON`,
1815
+ );
1816
+ }
1817
+
1818
+ /** @internal */
1819
+ export const GetJourneyStateClassification$inboundSchema: z.ZodMiniType<
1820
+ GetJourneyStateClassification,
1821
+ unknown
1822
+ > = z.object({
1823
+ ids: types.optional(z.array(types.string())),
1824
+ category: types.optional(types.string()),
1825
+ type: types.optional(types.string()),
1826
+ subtype: types.optional(types.string()),
1827
+ isDoubleSided: types.optional(types.boolean()),
1828
+ hasNFC: types.optional(types.boolean()),
1829
+ year: types.optional(types.string()),
1830
+ countryCode: types.optional(types.string()),
1831
+ countryName: types.optional(types.string()),
1832
+ stateCode: types.optional(types.string()),
1833
+ stateName: types.optional(types.string()),
1834
+ sides: types.optional(
1835
+ z.array(z.lazy(() => GetJourneyStateSide$inboundSchema)),
1836
+ ),
1837
+ });
1838
+
1839
+ export function getJourneyStateClassificationFromJSON(
1840
+ jsonString: string,
1841
+ ): SafeParseResult<GetJourneyStateClassification, SDKValidationError> {
1842
+ return safeParse(
1843
+ jsonString,
1844
+ (x) => GetJourneyStateClassification$inboundSchema.parse(JSON.parse(x)),
1845
+ `Failed to parse 'GetJourneyStateClassification' from JSON`,
1846
+ );
1847
+ }
1848
+
1849
+ /** @internal */
1850
+ export const GetJourneyStateAggregatedFieldBoundingBox$inboundSchema:
1851
+ z.ZodMiniType<GetJourneyStateAggregatedFieldBoundingBox, unknown> = z.object({
1852
+ x: types.number(),
1853
+ y: types.number(),
1854
+ width: types.number(),
1855
+ height: types.number(),
1856
+ });
1857
+
1858
+ export function getJourneyStateAggregatedFieldBoundingBoxFromJSON(
1859
+ jsonString: string,
1860
+ ): SafeParseResult<
1861
+ GetJourneyStateAggregatedFieldBoundingBox,
1862
+ SDKValidationError
1863
+ > {
1864
+ return safeParse(
1865
+ jsonString,
1866
+ (x) =>
1867
+ GetJourneyStateAggregatedFieldBoundingBox$inboundSchema.parse(
1868
+ JSON.parse(x),
1869
+ ),
1870
+ `Failed to parse 'GetJourneyStateAggregatedFieldBoundingBox' from JSON`,
1871
+ );
1872
+ }
1873
+
1874
+ /** @internal */
1875
+ export const GetJourneyStateAggregatedFieldRegionOfInterest$inboundSchema:
1876
+ z.ZodMiniType<GetJourneyStateAggregatedFieldRegionOfInterest, unknown> = z
1877
+ .object({
1878
+ boundingBox: types.optional(
1879
+ z.lazy(() => GetJourneyStateAggregatedFieldBoundingBox$inboundSchema),
1880
+ ),
1881
+ side: types.string(),
1882
+ spectrum: types.optional(types.string()),
1883
+ imageId: types.optional(types.string()),
1884
+ });
1885
+
1886
+ export function getJourneyStateAggregatedFieldRegionOfInterestFromJSON(
1887
+ jsonString: string,
1888
+ ): SafeParseResult<
1889
+ GetJourneyStateAggregatedFieldRegionOfInterest,
1890
+ SDKValidationError
1891
+ > {
1892
+ return safeParse(
1893
+ jsonString,
1894
+ (x) =>
1895
+ GetJourneyStateAggregatedFieldRegionOfInterest$inboundSchema.parse(
1896
+ JSON.parse(x),
1897
+ ),
1898
+ `Failed to parse 'GetJourneyStateAggregatedFieldRegionOfInterest' from JSON`,
1899
+ );
1900
+ }
1901
+
1902
+ /** @internal */
1903
+ export const GetJourneyStateAggregatedField$inboundSchema: z.ZodMiniType<
1904
+ GetJourneyStateAggregatedField,
1905
+ unknown
1906
+ > = z.object({
1907
+ label: types.string(),
1908
+ value: types.string(),
1909
+ source: types.string(),
1910
+ isNonLatin: types.boolean(),
1911
+ regionOfInterest: types.optional(
1912
+ z.lazy(() => GetJourneyStateAggregatedFieldRegionOfInterest$inboundSchema),
1913
+ ),
1914
+ });
1915
+
1916
+ export function getJourneyStateAggregatedFieldFromJSON(
1917
+ jsonString: string,
1918
+ ): SafeParseResult<GetJourneyStateAggregatedField, SDKValidationError> {
1919
+ return safeParse(
1920
+ jsonString,
1921
+ (x) => GetJourneyStateAggregatedField$inboundSchema.parse(JSON.parse(x)),
1922
+ `Failed to parse 'GetJourneyStateAggregatedField' from JSON`,
1923
+ );
1924
+ }
1925
+
1926
+ /** @internal */
1927
+ export const GetJourneyStateDetailBoundingBox$inboundSchema: z.ZodMiniType<
1928
+ GetJourneyStateDetailBoundingBox,
1929
+ unknown
1930
+ > = z.object({
1931
+ x: types.number(),
1932
+ y: types.number(),
1933
+ width: types.number(),
1934
+ height: types.number(),
1935
+ });
1936
+
1937
+ export function getJourneyStateDetailBoundingBoxFromJSON(
1938
+ jsonString: string,
1939
+ ): SafeParseResult<GetJourneyStateDetailBoundingBox, SDKValidationError> {
1940
+ return safeParse(
1941
+ jsonString,
1942
+ (x) => GetJourneyStateDetailBoundingBox$inboundSchema.parse(JSON.parse(x)),
1943
+ `Failed to parse 'GetJourneyStateDetailBoundingBox' from JSON`,
1944
+ );
1945
+ }
1946
+
1947
+ /** @internal */
1948
+ export const GetJourneyStateDetailRegionOfInterest$inboundSchema: z.ZodMiniType<
1949
+ GetJourneyStateDetailRegionOfInterest,
1950
+ unknown
1951
+ > = z.object({
1952
+ boundingBox: types.optional(
1953
+ z.lazy(() => GetJourneyStateDetailBoundingBox$inboundSchema),
1954
+ ),
1955
+ side: types.string(),
1956
+ spectrum: types.optional(types.string()),
1957
+ imageId: types.optional(types.string()),
1958
+ });
1959
+
1960
+ export function getJourneyStateDetailRegionOfInterestFromJSON(
1961
+ jsonString: string,
1962
+ ): SafeParseResult<GetJourneyStateDetailRegionOfInterest, SDKValidationError> {
1963
+ return safeParse(
1964
+ jsonString,
1965
+ (x) =>
1966
+ GetJourneyStateDetailRegionOfInterest$inboundSchema.parse(JSON.parse(x)),
1967
+ `Failed to parse 'GetJourneyStateDetailRegionOfInterest' from JSON`,
1968
+ );
1969
+ }
1970
+
1971
+ /** @internal */
1972
+ export const GetJourneyStateDetail$inboundSchema: z.ZodMiniType<
1973
+ GetJourneyStateDetail,
1974
+ unknown
1975
+ > = z.object({
1976
+ label: types.string(),
1977
+ value: types.string(),
1978
+ source: types.string(),
1979
+ isNonLatin: types.boolean(),
1980
+ regionOfInterest: types.optional(
1981
+ z.lazy(() => GetJourneyStateDetailRegionOfInterest$inboundSchema),
1982
+ ),
1983
+ });
1984
+
1985
+ export function getJourneyStateDetailFromJSON(
1986
+ jsonString: string,
1987
+ ): SafeParseResult<GetJourneyStateDetail, SDKValidationError> {
1988
+ return safeParse(
1989
+ jsonString,
1990
+ (x) => GetJourneyStateDetail$inboundSchema.parse(JSON.parse(x)),
1991
+ `Failed to parse 'GetJourneyStateDetail' from JSON`,
1992
+ );
1993
+ }
1994
+
1995
+ /** @internal */
1996
+ export const GetJourneyStateExtractedField$inboundSchema: z.ZodMiniType<
1997
+ GetJourneyStateExtractedField,
1998
+ unknown
1999
+ > = z.object({
2000
+ label: types.string(),
2001
+ details: z.array(z.lazy(() => GetJourneyStateDetail$inboundSchema)),
2002
+ });
2003
+
2004
+ export function getJourneyStateExtractedFieldFromJSON(
2005
+ jsonString: string,
2006
+ ): SafeParseResult<GetJourneyStateExtractedField, SDKValidationError> {
2007
+ return safeParse(
2008
+ jsonString,
2009
+ (x) => GetJourneyStateExtractedField$inboundSchema.parse(JSON.parse(x)),
2010
+ `Failed to parse 'GetJourneyStateExtractedField' from JSON`,
2011
+ );
2012
+ }
2013
+
2014
+ /** @internal */
2015
+ export const GetJourneyStateExtractedImage$inboundSchema: z.ZodMiniType<
2016
+ GetJourneyStateExtractedImage,
2017
+ unknown
2018
+ > = z.object({
2019
+ label: types.string(),
2020
+ side: types.string(),
2021
+ imageID: types.string(),
2022
+ });
2023
+
2024
+ export function getJourneyStateExtractedImageFromJSON(
2025
+ jsonString: string,
2026
+ ): SafeParseResult<GetJourneyStateExtractedImage, SDKValidationError> {
2027
+ return safeParse(
2028
+ jsonString,
2029
+ (x) => GetJourneyStateExtractedImage$inboundSchema.parse(JSON.parse(x)),
2030
+ `Failed to parse 'GetJourneyStateExtractedImage' from JSON`,
2031
+ );
2032
+ }
2033
+
2034
+ /** @internal */
2035
+ export const GetJourneyStateExtraction$inboundSchema: z.ZodMiniType<
2036
+ GetJourneyStateExtraction,
2037
+ unknown
2038
+ > = z.object({
2039
+ aggregatedFields: types.optional(
2040
+ z.array(z.lazy(() => GetJourneyStateAggregatedField$inboundSchema)),
2041
+ ),
2042
+ extractedFields: types.optional(
2043
+ z.array(z.lazy(() => GetJourneyStateExtractedField$inboundSchema)),
2044
+ ),
2045
+ extractedImages: types.optional(
2046
+ z.array(z.lazy(() => GetJourneyStateExtractedImage$inboundSchema)),
2047
+ ),
2048
+ });
2049
+
2050
+ export function getJourneyStateExtractionFromJSON(
2051
+ jsonString: string,
2052
+ ): SafeParseResult<GetJourneyStateExtraction, SDKValidationError> {
2053
+ return safeParse(
2054
+ jsonString,
2055
+ (x) => GetJourneyStateExtraction$inboundSchema.parse(JSON.parse(x)),
2056
+ `Failed to parse 'GetJourneyStateExtraction' from JSON`,
2057
+ );
2058
+ }
2059
+
2060
+ /** @internal */
2061
+ export const GetJourneyStateValidationCheckBoundingBox$inboundSchema:
2062
+ z.ZodMiniType<GetJourneyStateValidationCheckBoundingBox, unknown> = z.object({
2063
+ x: types.number(),
2064
+ y: types.number(),
2065
+ width: types.number(),
2066
+ height: types.number(),
2067
+ });
2068
+
2069
+ export function getJourneyStateValidationCheckBoundingBoxFromJSON(
2070
+ jsonString: string,
2071
+ ): SafeParseResult<
2072
+ GetJourneyStateValidationCheckBoundingBox,
2073
+ SDKValidationError
2074
+ > {
2075
+ return safeParse(
2076
+ jsonString,
2077
+ (x) =>
2078
+ GetJourneyStateValidationCheckBoundingBox$inboundSchema.parse(
2079
+ JSON.parse(x),
2080
+ ),
2081
+ `Failed to parse 'GetJourneyStateValidationCheckBoundingBox' from JSON`,
2082
+ );
2083
+ }
2084
+
2085
+ /** @internal */
2086
+ export const GetJourneyStateValidationCheckRegionOfInterest$inboundSchema:
2087
+ z.ZodMiniType<GetJourneyStateValidationCheckRegionOfInterest, unknown> = z
2088
+ .object({
2089
+ boundingBox: types.optional(
2090
+ z.lazy(() => GetJourneyStateValidationCheckBoundingBox$inboundSchema),
2091
+ ),
2092
+ side: types.string(),
2093
+ spectrum: types.optional(types.string()),
2094
+ imageId: types.optional(types.string()),
2095
+ });
2096
+
2097
+ export function getJourneyStateValidationCheckRegionOfInterestFromJSON(
2098
+ jsonString: string,
2099
+ ): SafeParseResult<
2100
+ GetJourneyStateValidationCheckRegionOfInterest,
2101
+ SDKValidationError
2102
+ > {
2103
+ return safeParse(
2104
+ jsonString,
2105
+ (x) =>
2106
+ GetJourneyStateValidationCheckRegionOfInterest$inboundSchema.parse(
2107
+ JSON.parse(x),
2108
+ ),
2109
+ `Failed to parse 'GetJourneyStateValidationCheckRegionOfInterest' from JSON`,
2110
+ );
2111
+ }
2112
+
2113
+ /** @internal */
2114
+ export const GetJourneyStateValidationCheck$inboundSchema: z.ZodMiniType<
2115
+ GetJourneyStateValidationCheck,
2116
+ unknown
2117
+ > = z.object({
2118
+ name: types.string(),
2119
+ title: types.string(),
2120
+ info: types.string(),
2121
+ validationResult: types.string(),
2122
+ resultInfo: types.string(),
2123
+ weight: types.string(),
2124
+ regionOfInterests: types.optional(
2125
+ z.array(z.lazy(() =>
2126
+ GetJourneyStateValidationCheckRegionOfInterest$inboundSchema
2127
+ )),
2128
+ ),
2129
+ type: types.string(),
2130
+ });
2131
+
2132
+ export function getJourneyStateValidationCheckFromJSON(
2133
+ jsonString: string,
2134
+ ): SafeParseResult<GetJourneyStateValidationCheck, SDKValidationError> {
2135
+ return safeParse(
2136
+ jsonString,
2137
+ (x) => GetJourneyStateValidationCheck$inboundSchema.parse(JSON.parse(x)),
2138
+ `Failed to parse 'GetJourneyStateValidationCheck' from JSON`,
2139
+ );
2140
+ }
2141
+
2142
+ /** @internal */
2143
+ export const GetJourneyStateAggregatedValidationCheckBoundingBox$inboundSchema:
2144
+ z.ZodMiniType<GetJourneyStateAggregatedValidationCheckBoundingBox, unknown> =
2145
+ z.object({
2146
+ x: types.number(),
2147
+ y: types.number(),
2148
+ width: types.number(),
2149
+ height: types.number(),
2150
+ });
2151
+
2152
+ export function getJourneyStateAggregatedValidationCheckBoundingBoxFromJSON(
2153
+ jsonString: string,
2154
+ ): SafeParseResult<
2155
+ GetJourneyStateAggregatedValidationCheckBoundingBox,
2156
+ SDKValidationError
2157
+ > {
2158
+ return safeParse(
2159
+ jsonString,
2160
+ (x) =>
2161
+ GetJourneyStateAggregatedValidationCheckBoundingBox$inboundSchema.parse(
2162
+ JSON.parse(x),
2163
+ ),
2164
+ `Failed to parse 'GetJourneyStateAggregatedValidationCheckBoundingBox' from JSON`,
2165
+ );
2166
+ }
2167
+
2168
+ /** @internal */
2169
+ export const GetJourneyStateAggregatedValidationCheckRegionOfInterest$inboundSchema:
2170
+ z.ZodMiniType<
2171
+ GetJourneyStateAggregatedValidationCheckRegionOfInterest,
2172
+ unknown
2173
+ > = z.object({
2174
+ boundingBox: types.optional(
2175
+ z.lazy(() =>
2176
+ GetJourneyStateAggregatedValidationCheckBoundingBox$inboundSchema
2177
+ ),
2178
+ ),
2179
+ side: types.string(),
2180
+ spectrum: types.optional(types.string()),
2181
+ imageId: types.optional(types.string()),
2182
+ });
2183
+
2184
+ export function getJourneyStateAggregatedValidationCheckRegionOfInterestFromJSON(
2185
+ jsonString: string,
2186
+ ): SafeParseResult<
2187
+ GetJourneyStateAggregatedValidationCheckRegionOfInterest,
2188
+ SDKValidationError
2189
+ > {
2190
+ return safeParse(
2191
+ jsonString,
2192
+ (x) =>
2193
+ GetJourneyStateAggregatedValidationCheckRegionOfInterest$inboundSchema
2194
+ .parse(JSON.parse(x)),
2195
+ `Failed to parse 'GetJourneyStateAggregatedValidationCheckRegionOfInterest' from JSON`,
2196
+ );
2197
+ }
2198
+
2199
+ /** @internal */
2200
+ export const GetJourneyStateAggregatedValidationCheck$inboundSchema:
2201
+ z.ZodMiniType<GetJourneyStateAggregatedValidationCheck, unknown> = z.object({
2202
+ name: types.string(),
2203
+ title: types.string(),
2204
+ info: types.string(),
2205
+ validationResult: types.string(),
2206
+ resultInfo: types.string(),
2207
+ weight: types.string(),
2208
+ regionOfInterests: types.optional(
2209
+ z.array(z.lazy(() =>
2210
+ GetJourneyStateAggregatedValidationCheckRegionOfInterest$inboundSchema
2211
+ )),
2212
+ ),
2213
+ type: types.string(),
2214
+ });
2215
+
2216
+ export function getJourneyStateAggregatedValidationCheckFromJSON(
2217
+ jsonString: string,
2218
+ ): SafeParseResult<
2219
+ GetJourneyStateAggregatedValidationCheck,
2220
+ SDKValidationError
2221
+ > {
2222
+ return safeParse(
2223
+ jsonString,
2224
+ (x) =>
2225
+ GetJourneyStateAggregatedValidationCheck$inboundSchema.parse(
2226
+ JSON.parse(x),
2227
+ ),
2228
+ `Failed to parse 'GetJourneyStateAggregatedValidationCheck' from JSON`,
2229
+ );
2230
+ }
2231
+
2232
+ /** @internal */
2233
+ export const GetJourneyStateValidation$inboundSchema: z.ZodMiniType<
2234
+ GetJourneyStateValidation,
2235
+ unknown
2236
+ > = z.object({
2237
+ validationChecks: types.optional(
2238
+ z.array(z.lazy(() => GetJourneyStateValidationCheck$inboundSchema)),
2239
+ ),
2240
+ aggregatedValidationChecks: types.optional(
2241
+ z.array(
2242
+ z.lazy(() => GetJourneyStateAggregatedValidationCheck$inboundSchema),
2243
+ ),
2244
+ ),
2245
+ });
2246
+
2247
+ export function getJourneyStateValidationFromJSON(
2248
+ jsonString: string,
2249
+ ): SafeParseResult<GetJourneyStateValidation, SDKValidationError> {
2250
+ return safeParse(
2251
+ jsonString,
2252
+ (x) => GetJourneyStateValidation$inboundSchema.parse(JSON.parse(x)),
2253
+ `Failed to parse 'GetJourneyStateValidation' from JSON`,
2254
+ );
2255
+ }
2256
+
2257
+ /** @internal */
2258
+ export const GetJourneyStateDocumentAlias$inboundSchema: z.ZodMiniType<
2259
+ GetJourneyStateDocumentAlias,
2260
+ unknown
2261
+ > = z.object({
2262
+ title: types.optional(types.string()),
2263
+ firstName: types.optional(types.string()),
2264
+ middleNames: types.optional(z.array(types.string())),
2265
+ lastNames: types.optional(z.array(types.string())),
2266
+ lastNamesAtBirth: types.optional(z.array(types.string())),
2267
+ });
2268
+
2269
+ export function getJourneyStateDocumentAliasFromJSON(
2270
+ jsonString: string,
2271
+ ): SafeParseResult<GetJourneyStateDocumentAlias, SDKValidationError> {
2272
+ return safeParse(
2273
+ jsonString,
2274
+ (x) => GetJourneyStateDocumentAlias$inboundSchema.parse(JSON.parse(x)),
2275
+ `Failed to parse 'GetJourneyStateDocumentAlias' from JSON`,
2276
+ );
2277
+ }
2278
+
2279
+ /** @internal */
2280
+ export const GetJourneyStateDocumentRelationship$inboundSchema: z.ZodMiniType<
2281
+ GetJourneyStateDocumentRelationship,
2282
+ unknown
2283
+ > = openEnums.inboundSchema(GetJourneyStateDocumentRelationship);
2284
+
2285
+ /** @internal */
2286
+ export const GetJourneyStateDocumentRelatedPerson$inboundSchema: z.ZodMiniType<
2287
+ GetJourneyStateDocumentRelatedPerson,
2288
+ unknown
2289
+ > = z.object({
2290
+ title: types.optional(types.string()),
2291
+ firstName: types.optional(types.string()),
2292
+ middleNames: types.optional(z.array(types.string())),
2293
+ lastNames: types.optional(z.array(types.string())),
2294
+ lastNamesAtBirth: types.optional(z.array(types.string())),
2295
+ relationship: GetJourneyStateDocumentRelationship$inboundSchema,
2296
+ });
2297
+
2298
+ export function getJourneyStateDocumentRelatedPersonFromJSON(
2299
+ jsonString: string,
2300
+ ): SafeParseResult<GetJourneyStateDocumentRelatedPerson, SDKValidationError> {
2301
+ return safeParse(
2302
+ jsonString,
2303
+ (x) =>
2304
+ GetJourneyStateDocumentRelatedPerson$inboundSchema.parse(JSON.parse(x)),
2305
+ `Failed to parse 'GetJourneyStateDocumentRelatedPerson' from JSON`,
2306
+ );
2307
+ }
2308
+
2309
+ /** @internal */
2310
+ export const GetJourneyStateDocumentCurrentAddressLocation$inboundSchema:
2311
+ z.ZodMiniType<GetJourneyStateDocumentCurrentAddressLocation, unknown> = z
2312
+ .object({
2313
+ latitude: types.optional(types.string()),
2314
+ longitude: types.optional(types.string()),
2315
+ geoAccuracy: types.optional(types.string()),
2316
+ what3words: types.optional(types.string()),
2317
+ });
2318
+
2319
+ export function getJourneyStateDocumentCurrentAddressLocationFromJSON(
2320
+ jsonString: string,
2321
+ ): SafeParseResult<
2322
+ GetJourneyStateDocumentCurrentAddressLocation,
2323
+ SDKValidationError
2324
+ > {
2325
+ return safeParse(
2326
+ jsonString,
2327
+ (x) =>
2328
+ GetJourneyStateDocumentCurrentAddressLocation$inboundSchema.parse(
2329
+ JSON.parse(x),
2330
+ ),
2331
+ `Failed to parse 'GetJourneyStateDocumentCurrentAddressLocation' from JSON`,
2332
+ );
2333
+ }
2334
+
2335
+ /** @internal */
2336
+ export const GetJourneyStateDocumentCurrentAddress$inboundSchema: z.ZodMiniType<
2337
+ GetJourneyStateDocumentCurrentAddress,
2338
+ unknown
2339
+ > = z.object({
2340
+ lines: types.optional(z.array(types.string())),
2341
+ addressString: types.optional(types.string()),
2342
+ premise: types.optional(types.string()),
2343
+ building: types.optional(types.string()),
2344
+ subBuilding: types.optional(types.string()),
2345
+ thoroughfare: types.optional(types.string()),
2346
+ dependentThoroughfare: types.optional(types.string()),
2347
+ locality: types.optional(types.string()),
2348
+ dependentLocality: types.optional(types.string()),
2349
+ doubleDependentLocality: types.optional(types.string()),
2350
+ postalCode: types.optional(types.string()),
2351
+ postBox: types.optional(types.string()),
2352
+ country: types.optional(types.string()),
2353
+ superAdministrativeArea: types.optional(types.string()),
2354
+ administrativeArea: types.optional(types.string()),
2355
+ subAdministrativeArea: types.optional(types.string()),
2356
+ organization: types.optional(types.string()),
2357
+ location: types.optional(
2358
+ z.lazy(() => GetJourneyStateDocumentCurrentAddressLocation$inboundSchema),
2359
+ ),
2360
+ });
2361
+
2362
+ export function getJourneyStateDocumentCurrentAddressFromJSON(
2363
+ jsonString: string,
2364
+ ): SafeParseResult<GetJourneyStateDocumentCurrentAddress, SDKValidationError> {
2365
+ return safeParse(
2366
+ jsonString,
2367
+ (x) =>
2368
+ GetJourneyStateDocumentCurrentAddress$inboundSchema.parse(JSON.parse(x)),
2369
+ `Failed to parse 'GetJourneyStateDocumentCurrentAddress' from JSON`,
2370
+ );
2371
+ }
2372
+
2373
+ /** @internal */
2374
+ export const GetJourneyStateDocumentPreviousAddressLocation$inboundSchema:
2375
+ z.ZodMiniType<GetJourneyStateDocumentPreviousAddressLocation, unknown> = z
2376
+ .object({
2377
+ latitude: types.optional(types.string()),
2378
+ longitude: types.optional(types.string()),
2379
+ geoAccuracy: types.optional(types.string()),
2380
+ what3words: types.optional(types.string()),
2381
+ });
2382
+
2383
+ export function getJourneyStateDocumentPreviousAddressLocationFromJSON(
2384
+ jsonString: string,
2385
+ ): SafeParseResult<
2386
+ GetJourneyStateDocumentPreviousAddressLocation,
2387
+ SDKValidationError
2388
+ > {
2389
+ return safeParse(
2390
+ jsonString,
2391
+ (x) =>
2392
+ GetJourneyStateDocumentPreviousAddressLocation$inboundSchema.parse(
2393
+ JSON.parse(x),
2394
+ ),
2395
+ `Failed to parse 'GetJourneyStateDocumentPreviousAddressLocation' from JSON`,
2396
+ );
2397
+ }
2398
+
2399
+ /** @internal */
2400
+ export const GetJourneyStateDocumentPreviousAddress$inboundSchema:
2401
+ z.ZodMiniType<GetJourneyStateDocumentPreviousAddress, unknown> = z.object({
2402
+ lines: types.optional(z.array(types.string())),
2403
+ addressString: types.optional(types.string()),
2404
+ premise: types.optional(types.string()),
2405
+ building: types.optional(types.string()),
2406
+ subBuilding: types.optional(types.string()),
2407
+ thoroughfare: types.optional(types.string()),
2408
+ dependentThoroughfare: types.optional(types.string()),
2409
+ locality: types.optional(types.string()),
2410
+ dependentLocality: types.optional(types.string()),
2411
+ doubleDependentLocality: types.optional(types.string()),
2412
+ postalCode: types.optional(types.string()),
2413
+ postBox: types.optional(types.string()),
2414
+ country: types.optional(types.string()),
2415
+ superAdministrativeArea: types.optional(types.string()),
2416
+ administrativeArea: types.optional(types.string()),
2417
+ subAdministrativeArea: types.optional(types.string()),
2418
+ organization: types.optional(types.string()),
2419
+ location: types.optional(
2420
+ z.lazy(() =>
2421
+ GetJourneyStateDocumentPreviousAddressLocation$inboundSchema
2422
+ ),
2423
+ ),
2424
+ fromDate: types.string(),
2425
+ toDate: types.string(),
2426
+ });
2427
+
2428
+ export function getJourneyStateDocumentPreviousAddressFromJSON(
2429
+ jsonString: string,
2430
+ ): SafeParseResult<GetJourneyStateDocumentPreviousAddress, SDKValidationError> {
2431
+ return safeParse(
2432
+ jsonString,
2433
+ (x) =>
2434
+ GetJourneyStateDocumentPreviousAddress$inboundSchema.parse(JSON.parse(x)),
2435
+ `Failed to parse 'GetJourneyStateDocumentPreviousAddress' from JSON`,
2436
+ );
2437
+ }
2438
+
2439
+ /** @internal */
2440
+ export const GetJourneyStateDocumentPlaceOfBirthLocation$inboundSchema:
2441
+ z.ZodMiniType<GetJourneyStateDocumentPlaceOfBirthLocation, unknown> = z
2442
+ .object({
2443
+ latitude: types.optional(types.string()),
2444
+ longitude: types.optional(types.string()),
2445
+ geoAccuracy: types.optional(types.string()),
2446
+ what3words: types.optional(types.string()),
2447
+ });
2448
+
2449
+ export function getJourneyStateDocumentPlaceOfBirthLocationFromJSON(
2450
+ jsonString: string,
2451
+ ): SafeParseResult<
2452
+ GetJourneyStateDocumentPlaceOfBirthLocation,
2453
+ SDKValidationError
2454
+ > {
2455
+ return safeParse(
2456
+ jsonString,
2457
+ (x) =>
2458
+ GetJourneyStateDocumentPlaceOfBirthLocation$inboundSchema.parse(
2459
+ JSON.parse(x),
2460
+ ),
2461
+ `Failed to parse 'GetJourneyStateDocumentPlaceOfBirthLocation' from JSON`,
2462
+ );
2463
+ }
2464
+
2465
+ /** @internal */
2466
+ export const GetJourneyStateDocumentPlaceOfBirth$inboundSchema: z.ZodMiniType<
2467
+ GetJourneyStateDocumentPlaceOfBirth,
2468
+ unknown
2469
+ > = z.object({
2470
+ lines: types.optional(z.array(types.string())),
2471
+ addressString: types.optional(types.string()),
2472
+ premise: types.optional(types.string()),
2473
+ building: types.optional(types.string()),
2474
+ subBuilding: types.optional(types.string()),
2475
+ thoroughfare: types.optional(types.string()),
2476
+ dependentThoroughfare: types.optional(types.string()),
2477
+ locality: types.optional(types.string()),
2478
+ dependentLocality: types.optional(types.string()),
2479
+ doubleDependentLocality: types.optional(types.string()),
2480
+ postalCode: types.optional(types.string()),
2481
+ postBox: types.optional(types.string()),
2482
+ country: types.optional(types.string()),
2483
+ superAdministrativeArea: types.optional(types.string()),
2484
+ administrativeArea: types.optional(types.string()),
2485
+ subAdministrativeArea: types.optional(types.string()),
2486
+ organization: types.optional(types.string()),
2487
+ location: types.optional(
2488
+ z.lazy(() => GetJourneyStateDocumentPlaceOfBirthLocation$inboundSchema),
2489
+ ),
2490
+ });
2491
+
2492
+ export function getJourneyStateDocumentPlaceOfBirthFromJSON(
2493
+ jsonString: string,
2494
+ ): SafeParseResult<GetJourneyStateDocumentPlaceOfBirth, SDKValidationError> {
2495
+ return safeParse(
2496
+ jsonString,
2497
+ (x) =>
2498
+ GetJourneyStateDocumentPlaceOfBirth$inboundSchema.parse(JSON.parse(x)),
2499
+ `Failed to parse 'GetJourneyStateDocumentPlaceOfBirth' from JSON`,
2500
+ );
2501
+ }
2502
+
2503
+ /** @internal */
2504
+ export const GetJourneyStateDocumentIdNumber$inboundSchema: z.ZodMiniType<
2505
+ GetJourneyStateDocumentIdNumber,
2506
+ unknown
2507
+ > = z.object({
2508
+ type: types.string(),
2509
+ idNumber: types.string(),
2510
+ country: types.optional(types.string()),
2511
+ });
2512
+
2513
+ export function getJourneyStateDocumentIdNumberFromJSON(
2514
+ jsonString: string,
2515
+ ): SafeParseResult<GetJourneyStateDocumentIdNumber, SDKValidationError> {
2516
+ return safeParse(
2517
+ jsonString,
2518
+ (x) => GetJourneyStateDocumentIdNumber$inboundSchema.parse(JSON.parse(x)),
2519
+ `Failed to parse 'GetJourneyStateDocumentIdNumber' from JSON`,
2520
+ );
2521
+ }
2522
+
2523
+ /** @internal */
2524
+ export const GetJourneyStateDocumentPhone$inboundSchema: z.ZodMiniType<
2525
+ GetJourneyStateDocumentPhone,
2526
+ unknown
2527
+ > = z.object({
2528
+ type: types.string(),
2529
+ number: types.string(),
2530
+ });
2531
+
2532
+ export function getJourneyStateDocumentPhoneFromJSON(
2533
+ jsonString: string,
2534
+ ): SafeParseResult<GetJourneyStateDocumentPhone, SDKValidationError> {
2535
+ return safeParse(
2536
+ jsonString,
2537
+ (x) => GetJourneyStateDocumentPhone$inboundSchema.parse(JSON.parse(x)),
2538
+ `Failed to parse 'GetJourneyStateDocumentPhone' from JSON`,
2539
+ );
2540
+ }
2541
+
2542
+ /** @internal */
2543
+ export const GetJourneyStateDocumentEmail$inboundSchema: z.ZodMiniType<
2544
+ GetJourneyStateDocumentEmail,
2545
+ unknown
2546
+ > = z.object({
2547
+ type: types.string(),
2548
+ email: types.string(),
2549
+ });
2550
+
2551
+ export function getJourneyStateDocumentEmailFromJSON(
2552
+ jsonString: string,
2553
+ ): SafeParseResult<GetJourneyStateDocumentEmail, SDKValidationError> {
2554
+ return safeParse(
2555
+ jsonString,
2556
+ (x) => GetJourneyStateDocumentEmail$inboundSchema.parse(JSON.parse(x)),
2557
+ `Failed to parse 'GetJourneyStateDocumentEmail' from JSON`,
2558
+ );
2559
+ }
2560
+
2561
+ /** @internal */
2562
+ export const GetJourneyStateDocumentSocial$inboundSchema: z.ZodMiniType<
2563
+ GetJourneyStateDocumentSocial,
2564
+ unknown
2565
+ > = z.object({
2566
+ type: types.string(),
2567
+ identity: types.string(),
2568
+ });
2569
+
2570
+ export function getJourneyStateDocumentSocialFromJSON(
2571
+ jsonString: string,
2572
+ ): SafeParseResult<GetJourneyStateDocumentSocial, SDKValidationError> {
2573
+ return safeParse(
2574
+ jsonString,
2575
+ (x) => GetJourneyStateDocumentSocial$inboundSchema.parse(JSON.parse(x)),
2576
+ `Failed to parse 'GetJourneyStateDocumentSocial' from JSON`,
2577
+ );
2578
+ }
2579
+
2580
+ /** @internal */
2581
+ export const GetJourneyStateDocumentSubject$inboundSchema: z.ZodMiniType<
2582
+ GetJourneyStateDocumentSubject,
2583
+ unknown
2584
+ > = z.object({
2585
+ title: types.optional(types.string()),
2586
+ firstName: types.optional(types.string()),
2587
+ middleNames: types.optional(z.array(types.string())),
2588
+ lastNames: types.optional(z.array(types.string())),
2589
+ lastNamesAtBirth: types.optional(z.array(types.string())),
2590
+ aliases: types.optional(
2591
+ z.array(z.lazy(() => GetJourneyStateDocumentAlias$inboundSchema)),
2592
+ ),
2593
+ relatedPersons: types.optional(
2594
+ z.array(z.lazy(() => GetJourneyStateDocumentRelatedPerson$inboundSchema)),
2595
+ ),
2596
+ dateOfBirth: types.optional(types.string()),
2597
+ gender: types.optional(types.string()),
2598
+ currentAddress: types.optional(
2599
+ z.lazy(() => GetJourneyStateDocumentCurrentAddress$inboundSchema),
2600
+ ),
2601
+ previousAddresses: types.optional(
2602
+ z.array(z.lazy(() => GetJourneyStateDocumentPreviousAddress$inboundSchema)),
2603
+ ),
2604
+ placeOfBirth: types.optional(
2605
+ z.lazy(() => GetJourneyStateDocumentPlaceOfBirth$inboundSchema),
2606
+ ),
2607
+ idNumbers: types.optional(
2608
+ z.array(z.lazy(() => GetJourneyStateDocumentIdNumber$inboundSchema)),
2609
+ ),
2610
+ phones: types.optional(
2611
+ z.array(z.lazy(() => GetJourneyStateDocumentPhone$inboundSchema)),
2612
+ ),
2613
+ emails: types.optional(
2614
+ z.array(z.lazy(() => GetJourneyStateDocumentEmail$inboundSchema)),
2615
+ ),
2616
+ socials: types.optional(
2617
+ z.array(z.lazy(() => GetJourneyStateDocumentSocial$inboundSchema)),
2618
+ ),
2619
+ mothersMaidenName: types.optional(types.string()),
2620
+ });
2621
+
2622
+ export function getJourneyStateDocumentSubjectFromJSON(
2623
+ jsonString: string,
2624
+ ): SafeParseResult<GetJourneyStateDocumentSubject, SDKValidationError> {
2625
+ return safeParse(
2626
+ jsonString,
2627
+ (x) => GetJourneyStateDocumentSubject$inboundSchema.parse(JSON.parse(x)),
2628
+ `Failed to parse 'GetJourneyStateDocumentSubject' from JSON`,
2629
+ );
2630
+ }
2631
+
2632
+ /** @internal */
2633
+ export const GetJourneyStateDocument$inboundSchema: z.ZodMiniType<
2634
+ GetJourneyStateDocument,
2635
+ unknown
2636
+ > = z.object({
2637
+ oneDBarcode: types.optional(types.string()),
2638
+ address: types.optional(z.lazy(() => GetJourneyStateAddress$inboundSchema)),
2639
+ applicationDate: types.optional(types.string()),
2640
+ applicationNumber: types.optional(types.string()),
2641
+ dateOfBirth: types.optional(types.string()),
2642
+ placeOfBirth: types.optional(types.string()),
2643
+ placeOfBirthNative: types.optional(types.string()),
2644
+ bloodType: types.optional(types.string()),
2645
+ controlNumber: types.optional(types.string()),
2646
+ countryCode: types.optional(types.string()),
2647
+ countryName: types.optional(types.string()),
2648
+ documentClassCode: types.optional(types.string()),
2649
+ documentClassName: types.optional(types.string()),
2650
+ documentNumber: types.optional(types.string()),
2651
+ documentSignerCertificate: types.optional(types.string()),
2652
+ employer: types.optional(types.string()),
2653
+ employerAddress: types.optional(types.string()),
2654
+ entries: types.optional(types.string()),
2655
+ expirationDate: types.optional(types.string()),
2656
+ eyeColor: types.optional(types.string()),
2657
+ fathersName: types.optional(types.string()),
2658
+ fathersNameNative: types.optional(types.string()),
2659
+ fathersSurname: types.optional(types.string()),
2660
+ firstName: types.optional(types.string()),
2661
+ fullName: types.optional(types.string()),
2662
+ fullNameNative: types.optional(types.string()),
2663
+ givenName: types.optional(types.string()),
2664
+ givenNameNative: types.optional(types.string()),
2665
+ hairColor: types.optional(types.string()),
2666
+ height: types.optional(types.string()),
2667
+ issueDate: types.optional(types.string()),
2668
+ issuingAuthority: types.optional(types.string()),
2669
+ issuingAuthorityNative: types.optional(types.string()),
2670
+ issuingStateCode: types.optional(types.string()),
2671
+ issuingStateName: types.optional(types.string()),
2672
+ licenseClass: types.optional(types.string()),
2673
+ licenseEndorsements: types.optional(types.string()),
2674
+ licenseRestrictions: types.optional(types.string()),
2675
+ mrz: types.optional(types.string()),
2676
+ mrz1: types.optional(types.string()),
2677
+ mrz2: types.optional(types.string()),
2678
+ mrz3: types.optional(types.string()),
2679
+ middleName: types.optional(types.string()),
2680
+ mothersName: types.optional(types.string()),
2681
+ mothersNameNative: types.optional(types.string()),
2682
+ mothersSurname: types.optional(types.string()),
2683
+ nameSuffix: types.optional(types.string()),
2684
+ nationalityCode: types.optional(types.string()),
2685
+ nationalityName: types.optional(types.string()),
2686
+ nationalityNameNative: types.optional(types.string()),
2687
+ occupation: types.optional(types.string()),
2688
+ organDonor: types.optional(types.boolean()),
2689
+ passportNumber: types.optional(types.string()),
2690
+ permitNumber: types.optional(types.string()),
2691
+ personalNumber: types.optional(types.string()),
2692
+ photo: types.optional(types.string()),
2693
+ photoCompressed: types.optional(types.string()),
2694
+ photoEncoding: types.optional(types.string()),
2695
+ sex: types.optional(types.string()),
2696
+ sexNative: types.optional(types.string()),
2697
+ signature: types.optional(types.string()),
2698
+ signatureCompressed: types.optional(types.string()),
2699
+ signatureEncoding: types.optional(types.string()),
2700
+ socialSecurityNumber: types.optional(types.string()),
2701
+ startDate: types.optional(types.string()),
2702
+ surname: types.optional(types.string()),
2703
+ surnameNative: types.optional(types.string()),
2704
+ visaClass: types.optional(types.string()),
2705
+ visaNumber: types.optional(types.string()),
2706
+ weight: types.optional(types.string()),
2707
+ cardNumber: types.optional(types.string()),
2708
+ issuerCountryCode: types.optional(types.string()),
2709
+ id: types.optional(types.string()),
2710
+ type: types.optional(types.string()),
2711
+ category: types.optional(types.string()),
2712
+ subtype: types.optional(types.string()),
2713
+ format: types.optional(types.string()),
2714
+ device: types.optional(
2715
+ z.lazy(() => GetJourneyStateDocumentDevice$inboundSchema),
2716
+ ),
2717
+ side1Image: types.optional(types.string()),
2718
+ side2Image: types.optional(types.string()),
2719
+ chip: types.optional(z.lazy(() => GetJourneyStateChip$inboundSchema)),
2720
+ classification: types.optional(
2721
+ z.lazy(() => GetJourneyStateClassification$inboundSchema),
2722
+ ),
2723
+ extraction: types.optional(
2724
+ z.lazy(() => GetJourneyStateExtraction$inboundSchema),
2725
+ ),
2726
+ validation: types.optional(
2727
+ z.lazy(() => GetJourneyStateValidation$inboundSchema),
2728
+ ),
2729
+ subType: types.optional(types.string()),
2730
+ number: types.optional(types.string()),
2731
+ expiryDate: types.optional(types.string()),
2732
+ subject: types.optional(
2733
+ z.lazy(() => GetJourneyStateDocumentSubject$inboundSchema),
2734
+ ),
2735
+ country: types.optional(types.string()),
2736
+ });
2737
+
2738
+ export function getJourneyStateDocumentFromJSON(
2739
+ jsonString: string,
2740
+ ): SafeParseResult<GetJourneyStateDocument, SDKValidationError> {
2741
+ return safeParse(
2742
+ jsonString,
2743
+ (x) => GetJourneyStateDocument$inboundSchema.parse(JSON.parse(x)),
2744
+ `Failed to parse 'GetJourneyStateDocument' from JSON`,
2745
+ );
2746
+ }
2747
+
2748
+ /** @internal */
2749
+ export const GetJourneyStateBiometric4$inboundSchema: z.ZodMiniType<
2750
+ GetJourneyStateBiometric4,
2751
+ unknown
2752
+ > = z.object({
2753
+ id: types.optional(types.string()),
2754
+ type: types.optional(types.string()),
2755
+ selfieImage: types.string(),
2756
+ anchorImage: types.string(),
2757
+ });
2758
+
2759
+ export function getJourneyStateBiometric4FromJSON(
2760
+ jsonString: string,
2761
+ ): SafeParseResult<GetJourneyStateBiometric4, SDKValidationError> {
2762
+ return safeParse(
2763
+ jsonString,
2764
+ (x) => GetJourneyStateBiometric4$inboundSchema.parse(JSON.parse(x)),
2765
+ `Failed to parse 'GetJourneyStateBiometric4' from JSON`,
2766
+ );
2767
+ }
2768
+
2769
+ /** @internal */
2770
+ export const GetJourneyStateBiometric3$inboundSchema: z.ZodMiniType<
2771
+ GetJourneyStateBiometric3,
2772
+ unknown
2773
+ > = z.object({
2774
+ id: types.optional(types.string()),
2775
+ type: types.optional(types.string()),
2776
+ selfieImage: types.string(),
2777
+ selfieImageEncryption: types.optional(types.boolean()),
2778
+ });
2779
+
2780
+ export function getJourneyStateBiometric3FromJSON(
2781
+ jsonString: string,
2782
+ ): SafeParseResult<GetJourneyStateBiometric3, SDKValidationError> {
2783
+ return safeParse(
2784
+ jsonString,
2785
+ (x) => GetJourneyStateBiometric3$inboundSchema.parse(JSON.parse(x)),
2786
+ `Failed to parse 'GetJourneyStateBiometric3' from JSON`,
2787
+ );
2788
+ }
2789
+
2790
+ /** @internal */
2791
+ export const GetJourneyStateBiometric2$inboundSchema: z.ZodMiniType<
2792
+ GetJourneyStateBiometric2,
2793
+ unknown
2794
+ > = z.object({
2795
+ id: types.optional(types.string()),
2796
+ type: types.optional(types.string()),
2797
+ face1Image: types.string(),
2798
+ face2Image: types.string(),
2799
+ });
2800
+
2801
+ export function getJourneyStateBiometric2FromJSON(
2802
+ jsonString: string,
2803
+ ): SafeParseResult<GetJourneyStateBiometric2, SDKValidationError> {
2804
+ return safeParse(
2805
+ jsonString,
2806
+ (x) => GetJourneyStateBiometric2$inboundSchema.parse(JSON.parse(x)),
2807
+ `Failed to parse 'GetJourneyStateBiometric2' from JSON`,
2808
+ );
2809
+ }
2810
+
2811
+ /** @internal */
2812
+ export const GetJourneyStateBiometric1$inboundSchema: z.ZodMiniType<
2813
+ GetJourneyStateBiometric1,
2814
+ unknown
2815
+ > = z.object({
2816
+ id: types.optional(types.string()),
2817
+ type: types.optional(types.string()),
2818
+ faceImage: types.string(),
2819
+ });
2820
+
2821
+ export function getJourneyStateBiometric1FromJSON(
2822
+ jsonString: string,
2823
+ ): SafeParseResult<GetJourneyStateBiometric1, SDKValidationError> {
2824
+ return safeParse(
2825
+ jsonString,
2826
+ (x) => GetJourneyStateBiometric1$inboundSchema.parse(JSON.parse(x)),
2827
+ `Failed to parse 'GetJourneyStateBiometric1' from JSON`,
2828
+ );
2829
+ }
2830
+
2831
+ /** @internal */
2832
+ export const GetJourneyStateBiometricUnion$inboundSchema: z.ZodMiniType<
2833
+ GetJourneyStateBiometricUnion,
2834
+ unknown
2835
+ > = smartUnion([
2836
+ z.lazy(() => GetJourneyStateBiometric2$inboundSchema),
2837
+ z.lazy(() => GetJourneyStateBiometric4$inboundSchema),
2838
+ z.lazy(() => GetJourneyStateBiometric1$inboundSchema),
2839
+ z.lazy(() => GetJourneyStateBiometric3$inboundSchema),
2840
+ ]);
2841
+
2842
+ export function getJourneyStateBiometricUnionFromJSON(
2843
+ jsonString: string,
2844
+ ): SafeParseResult<GetJourneyStateBiometricUnion, SDKValidationError> {
2845
+ return safeParse(
2846
+ jsonString,
2847
+ (x) => GetJourneyStateBiometricUnion$inboundSchema.parse(JSON.parse(x)),
2848
+ `Failed to parse 'GetJourneyStateBiometricUnion' from JSON`,
2849
+ );
2850
+ }
2851
+
2852
+ /** @internal */
2853
+ export const GetJourneyStateUser$inboundSchema: z.ZodMiniType<
2854
+ GetJourneyStateUser,
2855
+ unknown
2856
+ > = z.object({
2857
+ id: types.string(),
2858
+ email: types.string(),
2859
+ domain: types.string(),
2860
+ });
2861
+
2862
+ export function getJourneyStateUserFromJSON(
2863
+ jsonString: string,
2864
+ ): SafeParseResult<GetJourneyStateUser, SDKValidationError> {
2865
+ return safeParse(
2866
+ jsonString,
2867
+ (x) => GetJourneyStateUser$inboundSchema.parse(JSON.parse(x)),
2868
+ `Failed to parse 'GetJourneyStateUser' from JSON`,
2869
+ );
2870
+ }
2871
+
2872
+ /** @internal */
2873
+ export const GetJourneyStateClient$inboundSchema: z.ZodMiniType<
2874
+ GetJourneyStateClient,
2875
+ unknown
2876
+ > = z.object({
2877
+ id: types.string(),
2878
+ ip: types.string(),
2879
+ address: types.string(),
2880
+ });
2881
+
2882
+ export function getJourneyStateClientFromJSON(
2883
+ jsonString: string,
2884
+ ): SafeParseResult<GetJourneyStateClient, SDKValidationError> {
2885
+ return safeParse(
2886
+ jsonString,
2887
+ (x) => GetJourneyStateClient$inboundSchema.parse(JSON.parse(x)),
2888
+ `Failed to parse 'GetJourneyStateClient' from JSON`,
2889
+ );
2890
+ }
2891
+
2892
+ /** @internal */
2893
+ export const GetJourneyStateModel$inboundSchema: z.ZodMiniType<
2894
+ GetJourneyStateModel,
2895
+ unknown
2896
+ > = z.object({
2897
+ identifier: types.string(),
2898
+ name: types.string(),
2899
+ });
2900
+
2901
+ export function getJourneyStateModelFromJSON(
2902
+ jsonString: string,
2903
+ ): SafeParseResult<GetJourneyStateModel, SDKValidationError> {
2904
+ return safeParse(
2905
+ jsonString,
2906
+ (x) => GetJourneyStateModel$inboundSchema.parse(JSON.parse(x)),
2907
+ `Failed to parse 'GetJourneyStateModel' from JSON`,
2908
+ );
2909
+ }
2910
+
2911
+ /** @internal */
2912
+ export const GetJourneyStateSessionDevice$inboundSchema: z.ZodMiniType<
2913
+ GetJourneyStateSessionDevice,
2914
+ unknown
2915
+ > = z.object({
2916
+ id: types.string(),
2917
+ manufacturer: types.string(),
2918
+ model: z.lazy(() => GetJourneyStateModel$inboundSchema),
2919
+ });
2920
+
2921
+ export function getJourneyStateSessionDeviceFromJSON(
2922
+ jsonString: string,
2923
+ ): SafeParseResult<GetJourneyStateSessionDevice, SDKValidationError> {
2924
+ return safeParse(
2925
+ jsonString,
2926
+ (x) => GetJourneyStateSessionDevice$inboundSchema.parse(JSON.parse(x)),
2927
+ `Failed to parse 'GetJourneyStateSessionDevice' from JSON`,
2928
+ );
2929
+ }
2930
+
2931
+ /** @internal */
2932
+ export const GetJourneyStateTrace$inboundSchema: z.ZodMiniType<
2933
+ GetJourneyStateTrace,
2934
+ unknown
2935
+ > = z.object({
2936
+ id: types.string(),
2937
+ });
2938
+
2939
+ export function getJourneyStateTraceFromJSON(
2940
+ jsonString: string,
2941
+ ): SafeParseResult<GetJourneyStateTrace, SDKValidationError> {
2942
+ return safeParse(
2943
+ jsonString,
2944
+ (x) => GetJourneyStateTrace$inboundSchema.parse(JSON.parse(x)),
2945
+ `Failed to parse 'GetJourneyStateTrace' from JSON`,
2946
+ );
2947
+ }
2948
+
2949
+ /** @internal */
2950
+ export const GetJourneyStateSpan$inboundSchema: z.ZodMiniType<
2951
+ GetJourneyStateSpan,
2952
+ unknown
2953
+ > = z.object({
2954
+ id: types.string(),
2955
+ });
2956
+
2957
+ export function getJourneyStateSpanFromJSON(
2958
+ jsonString: string,
2959
+ ): SafeParseResult<GetJourneyStateSpan, SDKValidationError> {
2960
+ return safeParse(
2961
+ jsonString,
2962
+ (x) => GetJourneyStateSpan$inboundSchema.parse(JSON.parse(x)),
2963
+ `Failed to parse 'GetJourneyStateSpan' from JSON`,
2964
+ );
2965
+ }
2966
+
2967
+ /** @internal */
2968
+ export const GetJourneyStateTransaction$inboundSchema: z.ZodMiniType<
2969
+ GetJourneyStateTransaction,
2970
+ unknown
2971
+ > = z.object({
2972
+ id: types.string(),
2973
+ });
2974
+
2975
+ export function getJourneyStateTransactionFromJSON(
2976
+ jsonString: string,
2977
+ ): SafeParseResult<GetJourneyStateTransaction, SDKValidationError> {
2978
+ return safeParse(
2979
+ jsonString,
2980
+ (x) => GetJourneyStateTransaction$inboundSchema.parse(JSON.parse(x)),
2981
+ `Failed to parse 'GetJourneyStateTransaction' from JSON`,
2982
+ );
2983
+ }
2984
+
2985
+ /** @internal */
2986
+ export const GetJourneyStateSessionAuth$inboundSchema: z.ZodMiniType<
2987
+ GetJourneyStateSessionAuth,
2988
+ unknown
2989
+ > = z.object({
2990
+ id: types.string(),
2991
+ scope: types.optional(types.string()),
2992
+ codeVerifier: types.optional(types.string()),
2993
+ code: types.optional(types.string()),
2994
+ state: types.optional(types.string()),
2995
+ redirectUri: types.optional(types.string()),
2996
+ responseType: types.optional(types.string()),
2997
+ clientId: types.optional(types.string()),
2998
+ clientSecret: types.optional(types.string()),
2999
+ });
3000
+
3001
+ export function getJourneyStateSessionAuthFromJSON(
3002
+ jsonString: string,
3003
+ ): SafeParseResult<GetJourneyStateSessionAuth, SDKValidationError> {
3004
+ return safeParse(
3005
+ jsonString,
3006
+ (x) => GetJourneyStateSessionAuth$inboundSchema.parse(JSON.parse(x)),
3007
+ `Failed to parse 'GetJourneyStateSessionAuth' from JSON`,
3008
+ );
3009
+ }
3010
+
3011
+ /** @internal */
3012
+ export const GetJourneyStateSession$inboundSchema: z.ZodMiniType<
3013
+ GetJourneyStateSession,
3014
+ unknown
3015
+ > = z.object({
3016
+ user: types.optional(z.lazy(() => GetJourneyStateUser$inboundSchema)),
3017
+ client: types.optional(z.lazy(() => GetJourneyStateClient$inboundSchema)),
3018
+ device: types.optional(
3019
+ z.lazy(() => GetJourneyStateSessionDevice$inboundSchema),
3020
+ ),
3021
+ trace: types.optional(z.lazy(() => GetJourneyStateTrace$inboundSchema)),
3022
+ span: types.optional(z.lazy(() => GetJourneyStateSpan$inboundSchema)),
3023
+ transaction: types.optional(
3024
+ z.lazy(() => GetJourneyStateTransaction$inboundSchema),
3025
+ ),
3026
+ auth: types.optional(
3027
+ z.array(z.lazy(() => GetJourneyStateSessionAuth$inboundSchema)),
3028
+ ),
3029
+ });
3030
+
3031
+ export function getJourneyStateSessionFromJSON(
3032
+ jsonString: string,
3033
+ ): SafeParseResult<GetJourneyStateSession, SDKValidationError> {
3034
+ return safeParse(
3035
+ jsonString,
3036
+ (x) => GetJourneyStateSession$inboundSchema.parse(JSON.parse(x)),
3037
+ `Failed to parse 'GetJourneyStateSession' from JSON`,
3038
+ );
3039
+ }
3040
+
3041
+ /** @internal */
3042
+ export const GetJourneyStateConsentType$inboundSchema: z.ZodMiniType<
3043
+ GetJourneyStateConsentType,
3044
+ unknown
3045
+ > = openEnums.inboundSchema(GetJourneyStateConsentType);
3046
+
3047
+ /** @internal */
3048
+ export const GetJourneyStateConsent$inboundSchema: z.ZodMiniType<
3049
+ GetJourneyStateConsent,
3050
+ unknown
3051
+ > = z.object({
3052
+ type: types.optional(GetJourneyStateConsentType$inboundSchema),
3053
+ id: types.optional(types.string()),
3054
+ version: types.optional(types.string()),
3055
+ url: types.string(),
3056
+ effectiveDate: types.optional(types.string()),
3057
+ expiryDate: types.optional(types.string()),
3058
+ terms: types.optional(types.string()),
3059
+ purpose: types.optional(types.string()),
3060
+ legalBasis: types.optional(types.string()),
3061
+ jurisdiction: types.optional(types.string()),
3062
+ subject: types.optional(types.string()),
3063
+ signatory: types.optional(types.string()),
3064
+ });
3065
+
3066
+ export function getJourneyStateConsentFromJSON(
3067
+ jsonString: string,
3068
+ ): SafeParseResult<GetJourneyStateConsent, SDKValidationError> {
3069
+ return safeParse(
3070
+ jsonString,
3071
+ (x) => GetJourneyStateConsent$inboundSchema.parse(JSON.parse(x)),
3072
+ `Failed to parse 'GetJourneyStateConsent' from JSON`,
3073
+ );
3074
+ }
3075
+
3076
+ /** @internal */
3077
+ export const GetJourneyStateSubject$inboundSchema: z.ZodMiniType<
3078
+ GetJourneyStateSubject,
3079
+ unknown
3080
+ > = z.object({
3081
+ identity: types.optional(z.lazy(() => GetJourneyStateIdentity$inboundSchema)),
3082
+ documents: types.optional(
3083
+ z.array(z.lazy(() => GetJourneyStateDocument$inboundSchema)),
3084
+ ),
3085
+ biometrics: types.optional(
3086
+ z.array(smartUnion([
3087
+ z.lazy(() => GetJourneyStateBiometric2$inboundSchema),
3088
+ z.lazy(() =>
3089
+ GetJourneyStateBiometric4$inboundSchema
3090
+ ),
3091
+ z.lazy(() => GetJourneyStateBiometric1$inboundSchema),
3092
+ z.lazy(() => GetJourneyStateBiometric3$inboundSchema),
3093
+ ])),
3094
+ ),
3095
+ sessions: types.optional(
3096
+ z.array(z.lazy(() => GetJourneyStateSession$inboundSchema)),
3097
+ ),
3098
+ consent: types.optional(
3099
+ z.array(z.lazy(() => GetJourneyStateConsent$inboundSchema)),
3100
+ ),
3101
+ uid: types.optional(types.string()),
3102
+ });
3103
+
3104
+ export function getJourneyStateSubjectFromJSON(
3105
+ jsonString: string,
3106
+ ): SafeParseResult<GetJourneyStateSubject, SDKValidationError> {
3107
+ return safeParse(
3108
+ jsonString,
3109
+ (x) => GetJourneyStateSubject$inboundSchema.parse(JSON.parse(x)),
3110
+ `Failed to parse 'GetJourneyStateSubject' from JSON`,
3111
+ );
3112
+ }
3113
+
3114
+ /** @internal */
3115
+ export const GetJourneyStateContext$inboundSchema: z.ZodMiniType<
3116
+ GetJourneyStateContext,
3117
+ unknown
3118
+ > = z.object({
3119
+ subject: z.lazy(() => GetJourneyStateSubject$inboundSchema),
3120
+ });
3121
+
3122
+ export function getJourneyStateContextFromJSON(
3123
+ jsonString: string,
3124
+ ): SafeParseResult<GetJourneyStateContext, SDKValidationError> {
3125
+ return safeParse(
3126
+ jsonString,
3127
+ (x) => GetJourneyStateContext$inboundSchema.parse(JSON.parse(x)),
3128
+ `Failed to parse 'GetJourneyStateContext' from JSON`,
3129
+ );
3130
+ }
3131
+
3132
+ /** @internal */
3133
+ export const GetJourneyStateResponse$inboundSchema: z.ZodMiniType<
3134
+ GetJourneyStateResponse,
3135
+ unknown
3136
+ > = z.object({
3137
+ instanceId: types.string(),
3138
+ status: GetJourneyStateStatus$inboundSchema,
3139
+ metaData: types.optional(z.lazy(() => MetaData$inboundSchema)),
3140
+ context: types.optional(z.lazy(() => GetJourneyStateContext$inboundSchema)),
3141
+ data: types.optional(z.record(z.string(), z.any())),
3142
+ });
3143
+
3144
+ export function getJourneyStateResponseFromJSON(
3145
+ jsonString: string,
3146
+ ): SafeParseResult<GetJourneyStateResponse, SDKValidationError> {
3147
+ return safeParse(
3148
+ jsonString,
3149
+ (x) => GetJourneyStateResponse$inboundSchema.parse(JSON.parse(x)),
3150
+ `Failed to parse 'GetJourneyStateResponse' from JSON`,
3151
+ );
3152
+ }