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