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