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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (918) hide show
  1. package/FUNCTIONS.md +6 -4
  2. package/README.md +159 -59
  3. package/dist/commonjs/funcs/addresses-retrieve.d.ts +19 -0
  4. package/dist/commonjs/funcs/addresses-retrieve.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/{tasks-list.js → addresses-retrieve.js} +21 -10
  6. package/dist/commonjs/funcs/addresses-retrieve.js.map +1 -0
  7. package/dist/{esm/funcs/tasks-list-schema.d.ts → commonjs/funcs/addresses-search.d.ts} +6 -6
  8. package/dist/commonjs/funcs/addresses-search.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/{tasks-update.js → addresses-search.js} +21 -10
  10. package/dist/commonjs/funcs/addresses-search.js.map +1 -0
  11. package/dist/commonjs/funcs/devices-add.d.ts +5 -3
  12. package/dist/commonjs/funcs/devices-add.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/devices-add.js +8 -3
  14. package/dist/commonjs/funcs/devices-add.js.map +1 -1
  15. package/dist/commonjs/funcs/devices-connect.d.ts +5 -3
  16. package/dist/commonjs/funcs/devices-connect.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/devices-connect.js +9 -5
  18. package/dist/commonjs/funcs/devices-connect.js.map +1 -1
  19. package/dist/{esm/funcs/health-get.d.ts → commonjs/funcs/devices-refresh.d.ts} +6 -5
  20. package/dist/commonjs/funcs/devices-refresh.d.ts.map +1 -0
  21. package/dist/commonjs/funcs/{health-get.js → devices-refresh.js} +16 -17
  22. package/dist/commonjs/funcs/devices-refresh.js.map +1 -0
  23. package/dist/commonjs/funcs/{health-get.d.ts → devices-validate.d.ts} +6 -4
  24. package/dist/commonjs/funcs/devices-validate.d.ts.map +1 -0
  25. package/dist/commonjs/funcs/devices-validate.js +113 -0
  26. package/dist/commonjs/funcs/devices-validate.js.map +1 -0
  27. package/dist/commonjs/funcs/instances-delete.d.ts +5 -3
  28. package/dist/commonjs/funcs/instances-delete.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/instances-delete.js +8 -3
  30. package/dist/commonjs/funcs/instances-delete.js.map +1 -1
  31. package/dist/commonjs/funcs/instances-handoff-token.d.ts +19 -0
  32. package/dist/commonjs/funcs/instances-handoff-token.d.ts.map +1 -0
  33. package/dist/commonjs/funcs/instances-handoff-token.js +130 -0
  34. package/dist/commonjs/funcs/instances-handoff-token.js.map +1 -0
  35. package/dist/commonjs/funcs/interactions-fetch.d.ts +4 -3
  36. package/dist/commonjs/funcs/interactions-fetch.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/interactions-fetch.js +18 -6
  38. package/dist/commonjs/funcs/interactions-fetch.js.map +1 -1
  39. package/dist/commonjs/funcs/interactions-submit.d.ts +5 -3
  40. package/dist/commonjs/funcs/interactions-submit.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/interactions-submit.js +14 -3
  42. package/dist/commonjs/funcs/interactions-submit.js.map +1 -1
  43. package/dist/commonjs/funcs/interactions-upload-asset.d.ts +18 -0
  44. package/dist/commonjs/funcs/interactions-upload-asset.d.ts.map +1 -0
  45. package/dist/commonjs/funcs/interactions-upload-asset.js +119 -0
  46. package/dist/commonjs/funcs/interactions-upload-asset.js.map +1 -0
  47. package/dist/commonjs/funcs/journeys-get-schemas.d.ts +46 -0
  48. package/dist/commonjs/funcs/journeys-get-schemas.d.ts.map +1 -0
  49. package/dist/commonjs/funcs/journeys-get-schemas.js +150 -0
  50. package/dist/commonjs/funcs/journeys-get-schemas.js.map +1 -0
  51. package/dist/commonjs/funcs/journeys-get-state.d.ts +4 -3
  52. package/dist/commonjs/funcs/journeys-get-state.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/journeys-get-state.js +12 -6
  54. package/dist/commonjs/funcs/journeys-get-state.js.map +1 -1
  55. package/dist/commonjs/funcs/journeys-start.d.ts +5 -3
  56. package/dist/commonjs/funcs/journeys-start.d.ts.map +1 -1
  57. package/dist/commonjs/funcs/journeys-start.js +8 -3
  58. package/dist/commonjs/funcs/journeys-start.js.map +1 -1
  59. package/dist/commonjs/funcs/journeys-terminate.d.ts +21 -0
  60. package/dist/commonjs/funcs/journeys-terminate.d.ts.map +1 -0
  61. package/dist/commonjs/funcs/{tasks-list-schema.js → journeys-terminate.js} +14 -9
  62. package/dist/commonjs/funcs/journeys-terminate.js.map +1 -0
  63. package/dist/commonjs/funcs/tasks-get-schema.d.ts +8 -3
  64. package/dist/commonjs/funcs/tasks-get-schema.d.ts.map +1 -1
  65. package/dist/commonjs/funcs/tasks-get-schema.js +9 -3
  66. package/dist/commonjs/funcs/tasks-get-schema.js.map +1 -1
  67. package/dist/commonjs/funcs/test-scenarios-create.d.ts +21 -0
  68. package/dist/commonjs/funcs/test-scenarios-create.d.ts.map +1 -0
  69. package/dist/commonjs/funcs/test-scenarios-create.js +129 -0
  70. package/dist/commonjs/funcs/test-scenarios-create.js.map +1 -0
  71. package/dist/commonjs/funcs/test-scenarios-delete.d.ts +20 -0
  72. package/dist/commonjs/funcs/test-scenarios-delete.d.ts.map +1 -0
  73. package/dist/commonjs/funcs/test-scenarios-delete.js +131 -0
  74. package/dist/commonjs/funcs/test-scenarios-delete.js.map +1 -0
  75. package/dist/commonjs/funcs/test-scenarios-get.d.ts +21 -0
  76. package/dist/commonjs/funcs/test-scenarios-get.d.ts.map +1 -0
  77. package/dist/commonjs/funcs/test-scenarios-get.js +136 -0
  78. package/dist/commonjs/funcs/test-scenarios-get.js.map +1 -0
  79. package/dist/commonjs/funcs/test-scenarios-list.d.ts +21 -0
  80. package/dist/commonjs/funcs/test-scenarios-list.d.ts.map +1 -0
  81. package/dist/commonjs/funcs/test-scenarios-list.js +132 -0
  82. package/dist/commonjs/funcs/test-scenarios-list.js.map +1 -0
  83. package/dist/commonjs/funcs/test-scenarios-put.d.ts +21 -0
  84. package/dist/commonjs/funcs/test-scenarios-put.d.ts.map +1 -0
  85. package/dist/commonjs/funcs/test-scenarios-put.js +133 -0
  86. package/dist/commonjs/funcs/test-scenarios-put.js.map +1 -0
  87. package/dist/commonjs/funcs/tokens-generate.d.ts +2 -1
  88. package/dist/commonjs/funcs/tokens-generate.d.ts.map +1 -1
  89. package/dist/commonjs/funcs/tokens-generate.js +6 -2
  90. package/dist/commonjs/funcs/tokens-generate.js.map +1 -1
  91. package/dist/commonjs/lib/config.d.ts +4 -4
  92. package/dist/commonjs/lib/config.d.ts.map +1 -1
  93. package/dist/commonjs/lib/config.js +13 -4
  94. package/dist/commonjs/lib/config.js.map +1 -1
  95. package/dist/commonjs/models/create-test-scenario-request.d.ts +29 -0
  96. package/dist/commonjs/models/create-test-scenario-request.d.ts.map +1 -0
  97. package/dist/commonjs/models/create-test-scenario-request.js +56 -0
  98. package/dist/commonjs/models/create-test-scenario-request.js.map +1 -0
  99. package/dist/commonjs/models/delete-response.d.ts +19 -0
  100. package/dist/commonjs/models/delete-response.d.ts.map +1 -0
  101. package/dist/commonjs/models/delete-response.js +57 -0
  102. package/dist/commonjs/models/delete-response.js.map +1 -0
  103. package/dist/commonjs/models/device-connect-request.d.ts +29 -0
  104. package/dist/commonjs/models/device-connect-request.d.ts.map +1 -0
  105. package/dist/commonjs/models/device-connect-request.js +59 -0
  106. package/dist/commonjs/models/device-connect-request.js.map +1 -0
  107. package/dist/commonjs/models/device-connect-response.d.ts +25 -0
  108. package/dist/commonjs/models/device-connect-response.d.ts.map +1 -0
  109. package/dist/commonjs/models/device-connect-response.js +63 -0
  110. package/dist/commonjs/models/device-connect-response.js.map +1 -0
  111. package/dist/commonjs/models/device-refresh-response.d.ts +16 -0
  112. package/dist/commonjs/models/device-refresh-response.d.ts.map +1 -0
  113. package/dist/commonjs/models/device-refresh-response.js +56 -0
  114. package/dist/commonjs/models/device-refresh-response.js.map +1 -0
  115. package/dist/commonjs/models/device-start-response.d.ts +20 -0
  116. package/dist/commonjs/models/device-start-response.d.ts.map +1 -0
  117. package/dist/commonjs/models/device-start-response.js +58 -0
  118. package/dist/commonjs/models/device-start-response.js.map +1 -0
  119. package/dist/commonjs/models/device-validate-response.d.ts +14 -0
  120. package/dist/commonjs/models/device-validate-response.d.ts.map +1 -0
  121. package/dist/commonjs/models/device-validate-response.js +54 -0
  122. package/dist/commonjs/models/device-validate-response.js.map +1 -0
  123. package/dist/commonjs/models/errors/error-response.d.ts +19 -0
  124. package/dist/commonjs/models/errors/error-response.d.ts.map +1 -0
  125. package/dist/commonjs/models/errors/error-response.js +68 -0
  126. package/dist/commonjs/models/errors/error-response.js.map +1 -0
  127. package/dist/commonjs/models/errors/index.d.ts +2 -0
  128. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  129. package/dist/commonjs/models/errors/index.js +2 -0
  130. package/dist/commonjs/models/errors/index.js.map +1 -1
  131. package/dist/commonjs/models/errors/o-auth-error-response.d.ts +32 -0
  132. package/dist/commonjs/models/errors/o-auth-error-response.d.ts.map +1 -0
  133. package/dist/commonjs/models/errors/o-auth-error-response.js +75 -0
  134. package/dist/commonjs/models/errors/o-auth-error-response.js.map +1 -0
  135. package/dist/commonjs/models/gbg-error.d.ts +28 -0
  136. package/dist/commonjs/models/gbg-error.d.ts.map +1 -0
  137. package/dist/commonjs/models/gbg-error.js +68 -0
  138. package/dist/commonjs/models/gbg-error.js.map +1 -0
  139. package/dist/commonjs/models/handoff-token-response.d.ts +20 -0
  140. package/dist/commonjs/models/handoff-token-response.d.ts.map +1 -0
  141. package/dist/commonjs/models/handoff-token-response.js +59 -0
  142. package/dist/commonjs/models/handoff-token-response.js.map +1 -0
  143. package/dist/commonjs/models/index.d.ts +33 -0
  144. package/dist/commonjs/models/index.d.ts.map +1 -1
  145. package/dist/commonjs/models/index.js +33 -0
  146. package/dist/commonjs/models/index.js.map +1 -1
  147. package/dist/commonjs/models/interaction-fetch-response.d.ts +40 -0
  148. package/dist/commonjs/models/interaction-fetch-response.d.ts.map +1 -0
  149. package/dist/commonjs/models/interaction-fetch-response.js +78 -0
  150. package/dist/commonjs/models/interaction-fetch-response.js.map +1 -0
  151. package/dist/commonjs/models/interaction-submit-response.d.ts +17 -0
  152. package/dist/commonjs/models/interaction-submit-response.d.ts.map +1 -0
  153. package/dist/commonjs/models/interaction-submit-response.js +55 -0
  154. package/dist/commonjs/models/interaction-submit-response.js.map +1 -0
  155. package/dist/commonjs/models/journey-start-response.d.ts +34 -0
  156. package/dist/commonjs/models/journey-start-response.d.ts.map +1 -0
  157. package/dist/commonjs/models/journey-start-response.js +67 -0
  158. package/dist/commonjs/models/journey-start-response.js.map +1 -0
  159. package/dist/commonjs/models/loqate-retrieve-response.d.ts +12 -0
  160. package/dist/commonjs/models/loqate-retrieve-response.d.ts.map +1 -0
  161. package/dist/commonjs/models/loqate-retrieve-response.js +55 -0
  162. package/dist/commonjs/models/loqate-retrieve-response.js.map +1 -0
  163. package/dist/commonjs/models/loqate-search-response.d.ts +12 -0
  164. package/dist/commonjs/models/loqate-search-response.d.ts.map +1 -0
  165. package/dist/commonjs/models/loqate-search-response.js +55 -0
  166. package/dist/commonjs/models/loqate-search-response.js.map +1 -0
  167. package/dist/commonjs/models/operations/add-device.d.ts +8 -92
  168. package/dist/commonjs/models/operations/add-device.d.ts.map +1 -1
  169. package/dist/commonjs/models/operations/add-device.js +6 -76
  170. package/dist/commonjs/models/operations/add-device.js.map +1 -1
  171. package/dist/commonjs/models/operations/create-handoff-token.d.ts +22 -0
  172. package/dist/commonjs/models/operations/create-handoff-token.d.ts.map +1 -0
  173. package/dist/commonjs/models/operations/create-handoff-token.js +62 -0
  174. package/dist/commonjs/models/operations/create-handoff-token.js.map +1 -0
  175. package/dist/commonjs/models/operations/create-test-scenario.d.ts +18 -0
  176. package/dist/commonjs/models/operations/create-test-scenario.d.ts.map +1 -0
  177. package/dist/commonjs/models/operations/create-test-scenario.js +51 -0
  178. package/dist/commonjs/models/operations/create-test-scenario.js.map +1 -0
  179. package/dist/commonjs/models/operations/delete-instance.d.ts +1 -14
  180. package/dist/commonjs/models/operations/delete-instance.d.ts.map +1 -1
  181. package/dist/commonjs/models/operations/delete-instance.js +3 -13
  182. package/dist/commonjs/models/operations/delete-instance.js.map +1 -1
  183. package/dist/commonjs/models/operations/delete-test-scenario.d.ts +20 -0
  184. package/dist/commonjs/models/operations/delete-test-scenario.d.ts.map +1 -0
  185. package/dist/commonjs/models/operations/delete-test-scenario.js +50 -0
  186. package/dist/commonjs/models/operations/delete-test-scenario.js.map +1 -0
  187. package/dist/commonjs/models/operations/device-connect.d.ts +0 -91
  188. package/dist/commonjs/models/operations/device-connect.d.ts.map +1 -1
  189. package/dist/commonjs/models/operations/device-connect.js +1 -69
  190. package/dist/commonjs/models/operations/device-connect.js.map +1 -1
  191. package/dist/commonjs/models/operations/device-validate.d.ts +12 -0
  192. package/dist/commonjs/models/operations/device-validate.d.ts.map +1 -0
  193. package/dist/commonjs/models/operations/device-validate.js +54 -0
  194. package/dist/commonjs/models/operations/device-validate.js.map +1 -0
  195. package/dist/commonjs/models/operations/fetch-interaction.d.ts +35 -1621
  196. package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
  197. package/dist/commonjs/models/operations/fetch-interaction.js +24 -1336
  198. package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
  199. package/dist/commonjs/models/operations/get-journey-schemas.d.ts +16 -0
  200. package/dist/commonjs/models/operations/get-journey-schemas.d.ts.map +1 -0
  201. package/dist/commonjs/models/operations/get-journey-schemas.js +51 -0
  202. package/dist/commonjs/models/operations/get-journey-schemas.js.map +1 -0
  203. package/dist/commonjs/models/operations/get-journey-state.d.ts +19 -1383
  204. package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
  205. package/dist/commonjs/models/operations/get-journey-state.js +15 -1068
  206. package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
  207. package/dist/commonjs/models/operations/get-task-schema.d.ts +1 -17
  208. package/dist/commonjs/models/operations/get-task-schema.d.ts.map +1 -1
  209. package/dist/commonjs/models/operations/get-task-schema.js +1 -19
  210. package/dist/commonjs/models/operations/get-task-schema.js.map +1 -1
  211. package/dist/commonjs/models/operations/get-test-scenario.d.ts +39 -0
  212. package/dist/commonjs/models/operations/get-test-scenario.d.ts.map +1 -0
  213. package/dist/commonjs/models/operations/get-test-scenario.js +60 -0
  214. package/dist/commonjs/models/operations/get-test-scenario.js.map +1 -0
  215. package/dist/commonjs/models/operations/index.d.ts +12 -4
  216. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  217. package/dist/commonjs/models/operations/index.js +12 -4
  218. package/dist/commonjs/models/operations/index.js.map +1 -1
  219. package/dist/commonjs/models/operations/list-test-scenarios.d.ts +34 -0
  220. package/dist/commonjs/models/operations/list-test-scenarios.d.ts.map +1 -0
  221. package/dist/commonjs/models/operations/list-test-scenarios.js +59 -0
  222. package/dist/commonjs/models/operations/list-test-scenarios.js.map +1 -0
  223. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts +2 -2
  224. package/dist/commonjs/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  225. package/dist/commonjs/models/operations/post-as-token-oauth2.js +4 -5
  226. package/dist/commonjs/models/operations/post-as-token-oauth2.js.map +1 -1
  227. package/dist/commonjs/models/operations/put-test-scenario.d.ts +23 -0
  228. package/dist/commonjs/models/operations/put-test-scenario.d.ts.map +1 -0
  229. package/dist/commonjs/models/operations/put-test-scenario.js +52 -0
  230. package/dist/commonjs/models/operations/put-test-scenario.js.map +1 -0
  231. package/dist/commonjs/models/operations/retrieve-address.d.ts +29 -0
  232. package/dist/commonjs/models/operations/retrieve-address.d.ts.map +1 -0
  233. package/dist/commonjs/models/operations/retrieve-address.js +65 -0
  234. package/dist/commonjs/models/operations/retrieve-address.js.map +1 -0
  235. package/dist/commonjs/models/operations/search-addresses.d.ts +33 -0
  236. package/dist/commonjs/models/operations/search-addresses.d.ts.map +1 -0
  237. package/dist/commonjs/models/operations/search-addresses.js +67 -0
  238. package/dist/commonjs/models/operations/search-addresses.js.map +1 -0
  239. package/dist/commonjs/models/operations/start-journey.d.ts +1214 -112
  240. package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
  241. package/dist/commonjs/models/operations/start-journey.js +602 -66
  242. package/dist/commonjs/models/operations/start-journey.js.map +1 -1
  243. package/dist/commonjs/models/operations/submit-interaction.d.ts +1074 -92
  244. package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
  245. package/dist/commonjs/models/operations/submit-interaction.js +535 -51
  246. package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
  247. package/dist/commonjs/models/operations/terminate-journey.d.ts +19 -0
  248. package/dist/commonjs/models/operations/terminate-journey.d.ts.map +1 -0
  249. package/dist/commonjs/models/operations/terminate-journey.js +50 -0
  250. package/dist/commonjs/models/operations/terminate-journey.js.map +1 -0
  251. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts +26 -0
  252. package/dist/commonjs/models/operations/upload-interaction-asset.d.ts.map +1 -0
  253. package/dist/commonjs/models/operations/upload-interaction-asset.js +66 -0
  254. package/dist/commonjs/models/operations/upload-interaction-asset.js.map +1 -0
  255. package/dist/commonjs/models/outstanding-group.d.ts +15 -0
  256. package/dist/commonjs/models/outstanding-group.d.ts.map +1 -0
  257. package/dist/commonjs/models/{operations/health.js → outstanding-group.js} +11 -10
  258. package/dist/commonjs/models/outstanding-group.js.map +1 -0
  259. package/dist/commonjs/models/schema-fetch-response.d.ts +22 -0
  260. package/dist/commonjs/models/schema-fetch-response.d.ts.map +1 -0
  261. package/dist/commonjs/models/schema-fetch-response.js +62 -0
  262. package/dist/commonjs/models/schema-fetch-response.js.map +1 -0
  263. package/dist/commonjs/models/slim-document.d.ts +57 -0
  264. package/dist/commonjs/models/slim-document.d.ts.map +1 -0
  265. package/dist/commonjs/models/slim-document.js +92 -0
  266. package/dist/commonjs/models/slim-document.js.map +1 -0
  267. package/dist/commonjs/models/slim-extraction.d.ts +74 -0
  268. package/dist/commonjs/models/slim-extraction.d.ts.map +1 -0
  269. package/dist/commonjs/models/slim-extraction.js +128 -0
  270. package/dist/commonjs/models/slim-extraction.js.map +1 -0
  271. package/dist/commonjs/models/slim-identity.d.ts +202 -0
  272. package/dist/commonjs/models/slim-identity.d.ts.map +1 -0
  273. package/dist/commonjs/models/slim-identity.js +142 -0
  274. package/dist/commonjs/models/slim-identity.js.map +1 -0
  275. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts +46 -0
  276. package/dist/commonjs/models/slim-interaction-fetch-response.d.ts.map +1 -0
  277. package/dist/commonjs/models/slim-interaction-fetch-response.js +87 -0
  278. package/dist/commonjs/models/slim-interaction-fetch-response.js.map +1 -0
  279. package/dist/commonjs/models/slim-journey.d.ts +14 -0
  280. package/dist/commonjs/models/slim-journey.d.ts.map +1 -0
  281. package/dist/commonjs/models/slim-journey.js +55 -0
  282. package/dist/commonjs/models/slim-journey.js.map +1 -0
  283. package/dist/commonjs/models/slim-module-step-error.d.ts +50 -0
  284. package/dist/commonjs/models/slim-module-step-error.d.ts.map +1 -0
  285. package/dist/commonjs/models/slim-module-step-error.js +79 -0
  286. package/dist/commonjs/models/slim-module-step-error.js.map +1 -0
  287. package/dist/commonjs/models/slim-result.d.ts +49 -0
  288. package/dist/commonjs/models/slim-result.d.ts.map +1 -0
  289. package/dist/commonjs/models/slim-result.js +76 -0
  290. package/dist/commonjs/models/slim-result.js.map +1 -0
  291. package/dist/commonjs/models/slim-state-fetch-response.d.ts +27 -0
  292. package/dist/commonjs/models/slim-state-fetch-response.d.ts.map +1 -0
  293. package/dist/commonjs/models/slim-state-fetch-response.js +66 -0
  294. package/dist/commonjs/models/slim-state-fetch-response.js.map +1 -0
  295. package/dist/commonjs/models/slim-step.d.ts +40 -0
  296. package/dist/commonjs/models/slim-step.d.ts.map +1 -0
  297. package/dist/commonjs/models/slim-step.js +73 -0
  298. package/dist/commonjs/models/slim-step.js.map +1 -0
  299. package/dist/commonjs/models/slim-validation.d.ts +69 -0
  300. package/dist/commonjs/models/slim-validation.d.ts.map +1 -0
  301. package/dist/commonjs/models/slim-validation.js +121 -0
  302. package/dist/commonjs/models/slim-validation.js.map +1 -0
  303. package/dist/commonjs/models/slim-verified-data.d.ts +16 -0
  304. package/dist/commonjs/models/slim-verified-data.d.ts.map +1 -0
  305. package/dist/commonjs/models/slim-verified-data.js +53 -0
  306. package/dist/commonjs/models/slim-verified-data.js.map +1 -0
  307. package/dist/commonjs/models/state-fetch-response.d.ts +25 -0
  308. package/dist/commonjs/models/state-fetch-response.d.ts.map +1 -0
  309. package/dist/commonjs/models/state-fetch-response.js +59 -0
  310. package/dist/commonjs/models/state-fetch-response.js.map +1 -0
  311. package/dist/commonjs/models/terminate-response.d.ts +10 -0
  312. package/dist/commonjs/models/terminate-response.d.ts.map +1 -0
  313. package/dist/commonjs/models/terminate-response.js +50 -0
  314. package/dist/commonjs/models/terminate-response.js.map +1 -0
  315. package/dist/commonjs/models/test-scenario-summary.d.ts +29 -0
  316. package/dist/commonjs/models/test-scenario-summary.d.ts.map +1 -0
  317. package/dist/commonjs/models/test-scenario-summary.js +62 -0
  318. package/dist/commonjs/models/test-scenario-summary.js.map +1 -0
  319. package/dist/commonjs/models/test-scenario-written.d.ts +19 -0
  320. package/dist/commonjs/models/test-scenario-written.d.ts.map +1 -0
  321. package/dist/commonjs/models/test-scenario-written.js +57 -0
  322. package/dist/commonjs/models/test-scenario-written.js.map +1 -0
  323. package/dist/commonjs/models/test-scenario.d.ts +31 -0
  324. package/dist/commonjs/models/test-scenario.d.ts.map +1 -0
  325. package/dist/commonjs/models/test-scenario.js +62 -0
  326. package/dist/commonjs/models/test-scenario.js.map +1 -0
  327. package/dist/commonjs/models/update-test-scenario-request.d.ts +24 -0
  328. package/dist/commonjs/models/update-test-scenario-request.d.ts.map +1 -0
  329. package/dist/commonjs/models/update-test-scenario-request.js +55 -0
  330. package/dist/commonjs/models/update-test-scenario-request.js.map +1 -0
  331. package/dist/commonjs/sdk/addresses.d.ts +20 -0
  332. package/dist/commonjs/sdk/addresses.d.ts.map +1 -0
  333. package/dist/commonjs/sdk/addresses.js +32 -0
  334. package/dist/commonjs/sdk/addresses.js.map +1 -0
  335. package/dist/commonjs/sdk/devices.d.ts +21 -6
  336. package/dist/commonjs/sdk/devices.d.ts.map +1 -1
  337. package/dist/commonjs/sdk/devices.js +26 -6
  338. package/dist/commonjs/sdk/devices.js.map +1 -1
  339. package/dist/commonjs/sdk/instances.d.ts +11 -3
  340. package/dist/commonjs/sdk/instances.d.ts.map +1 -1
  341. package/dist/commonjs/sdk/instances.js +12 -2
  342. package/dist/commonjs/sdk/instances.js.map +1 -1
  343. package/dist/commonjs/sdk/interactions.d.ts +14 -6
  344. package/dist/commonjs/sdk/interactions.d.ts.map +1 -1
  345. package/dist/commonjs/sdk/interactions.js +16 -6
  346. package/dist/commonjs/sdk/interactions.js.map +1 -1
  347. package/dist/commonjs/sdk/journeys.d.ts +45 -5
  348. package/dist/commonjs/sdk/journeys.d.ts.map +1 -1
  349. package/dist/commonjs/sdk/journeys.js +49 -4
  350. package/dist/commonjs/sdk/journeys.js.map +1 -1
  351. package/dist/commonjs/sdk/sdk.d.ts +14 -11
  352. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  353. package/dist/commonjs/sdk/sdk.js +17 -13
  354. package/dist/commonjs/sdk/sdk.js.map +1 -1
  355. package/dist/commonjs/sdk/tasks.d.ts +6 -23
  356. package/dist/commonjs/sdk/tasks.d.ts.map +1 -1
  357. package/dist/commonjs/sdk/tasks.js +3 -31
  358. package/dist/commonjs/sdk/tasks.js.map +1 -1
  359. package/dist/commonjs/sdk/test-scenarios.d.ts +41 -0
  360. package/dist/commonjs/sdk/test-scenarios.d.ts.map +1 -0
  361. package/dist/commonjs/sdk/test-scenarios.js +62 -0
  362. package/dist/commonjs/sdk/test-scenarios.js.map +1 -0
  363. package/dist/commonjs/types/discriminated-union.d.ts.map +1 -1
  364. package/dist/commonjs/types/discriminated-union.js +0 -4
  365. package/dist/commonjs/types/discriminated-union.js.map +1 -1
  366. package/dist/commonjs/types/index.d.ts +0 -2
  367. package/dist/commonjs/types/index.d.ts.map +1 -1
  368. package/dist/commonjs/types/index.js +0 -2
  369. package/dist/commonjs/types/index.js.map +1 -1
  370. package/dist/commonjs/types/smart-union.d.ts.map +1 -1
  371. package/dist/commonjs/types/smart-union.js +14 -14
  372. package/dist/commonjs/types/smart-union.js.map +1 -1
  373. package/dist/esm/funcs/addresses-retrieve.d.ts +19 -0
  374. package/dist/esm/funcs/addresses-retrieve.d.ts.map +1 -0
  375. package/dist/esm/funcs/{tasks-update.js → addresses-retrieve.js} +20 -9
  376. package/dist/esm/funcs/addresses-retrieve.js.map +1 -0
  377. package/dist/{commonjs/funcs/tasks-list-schema.d.ts → esm/funcs/addresses-search.d.ts} +6 -6
  378. package/dist/esm/funcs/addresses-search.d.ts.map +1 -0
  379. package/dist/esm/funcs/{tasks-list.js → addresses-search.js} +20 -9
  380. package/dist/esm/funcs/addresses-search.js.map +1 -0
  381. package/dist/esm/funcs/devices-add.d.ts +5 -3
  382. package/dist/esm/funcs/devices-add.d.ts.map +1 -1
  383. package/dist/esm/funcs/devices-add.js +8 -3
  384. package/dist/esm/funcs/devices-add.js.map +1 -1
  385. package/dist/esm/funcs/devices-connect.d.ts +5 -3
  386. package/dist/esm/funcs/devices-connect.d.ts.map +1 -1
  387. package/dist/esm/funcs/devices-connect.js +9 -5
  388. package/dist/esm/funcs/devices-connect.js.map +1 -1
  389. package/dist/{commonjs/funcs/tasks-update.d.ts → esm/funcs/devices-refresh.d.ts} +6 -5
  390. package/dist/esm/funcs/devices-refresh.d.ts.map +1 -0
  391. package/dist/esm/funcs/{health-get.js → devices-refresh.js} +15 -16
  392. package/dist/esm/funcs/devices-refresh.js.map +1 -0
  393. package/dist/{commonjs/funcs/tasks-list.d.ts → esm/funcs/devices-validate.d.ts} +6 -4
  394. package/dist/esm/funcs/devices-validate.d.ts.map +1 -0
  395. package/dist/esm/funcs/devices-validate.js +77 -0
  396. package/dist/esm/funcs/devices-validate.js.map +1 -0
  397. package/dist/esm/funcs/instances-delete.d.ts +5 -3
  398. package/dist/esm/funcs/instances-delete.d.ts.map +1 -1
  399. package/dist/esm/funcs/instances-delete.js +8 -3
  400. package/dist/esm/funcs/instances-delete.js.map +1 -1
  401. package/dist/esm/funcs/instances-handoff-token.d.ts +19 -0
  402. package/dist/esm/funcs/instances-handoff-token.d.ts.map +1 -0
  403. package/dist/esm/funcs/instances-handoff-token.js +94 -0
  404. package/dist/esm/funcs/instances-handoff-token.js.map +1 -0
  405. package/dist/esm/funcs/interactions-fetch.d.ts +4 -3
  406. package/dist/esm/funcs/interactions-fetch.d.ts.map +1 -1
  407. package/dist/esm/funcs/interactions-fetch.js +19 -7
  408. package/dist/esm/funcs/interactions-fetch.js.map +1 -1
  409. package/dist/esm/funcs/interactions-submit.d.ts +5 -3
  410. package/dist/esm/funcs/interactions-submit.d.ts.map +1 -1
  411. package/dist/esm/funcs/interactions-submit.js +14 -3
  412. package/dist/esm/funcs/interactions-submit.js.map +1 -1
  413. package/dist/esm/funcs/interactions-upload-asset.d.ts +18 -0
  414. package/dist/esm/funcs/interactions-upload-asset.d.ts.map +1 -0
  415. package/dist/esm/funcs/interactions-upload-asset.js +83 -0
  416. package/dist/esm/funcs/interactions-upload-asset.js.map +1 -0
  417. package/dist/esm/funcs/journeys-get-schemas.d.ts +46 -0
  418. package/dist/esm/funcs/journeys-get-schemas.d.ts.map +1 -0
  419. package/dist/esm/funcs/journeys-get-schemas.js +114 -0
  420. package/dist/esm/funcs/journeys-get-schemas.js.map +1 -0
  421. package/dist/esm/funcs/journeys-get-state.d.ts +4 -3
  422. package/dist/esm/funcs/journeys-get-state.d.ts.map +1 -1
  423. package/dist/esm/funcs/journeys-get-state.js +13 -7
  424. package/dist/esm/funcs/journeys-get-state.js.map +1 -1
  425. package/dist/esm/funcs/journeys-start.d.ts +5 -3
  426. package/dist/esm/funcs/journeys-start.d.ts.map +1 -1
  427. package/dist/esm/funcs/journeys-start.js +8 -3
  428. package/dist/esm/funcs/journeys-start.js.map +1 -1
  429. package/dist/esm/funcs/journeys-terminate.d.ts +21 -0
  430. package/dist/esm/funcs/journeys-terminate.d.ts.map +1 -0
  431. package/dist/esm/funcs/{tasks-list-schema.js → journeys-terminate.js} +13 -8
  432. package/dist/esm/funcs/journeys-terminate.js.map +1 -0
  433. package/dist/esm/funcs/tasks-get-schema.d.ts +8 -3
  434. package/dist/esm/funcs/tasks-get-schema.d.ts.map +1 -1
  435. package/dist/esm/funcs/tasks-get-schema.js +9 -3
  436. package/dist/esm/funcs/tasks-get-schema.js.map +1 -1
  437. package/dist/esm/funcs/test-scenarios-create.d.ts +21 -0
  438. package/dist/esm/funcs/test-scenarios-create.d.ts.map +1 -0
  439. package/dist/esm/funcs/test-scenarios-create.js +93 -0
  440. package/dist/esm/funcs/test-scenarios-create.js.map +1 -0
  441. package/dist/esm/funcs/test-scenarios-delete.d.ts +20 -0
  442. package/dist/esm/funcs/test-scenarios-delete.d.ts.map +1 -0
  443. package/dist/esm/funcs/test-scenarios-delete.js +95 -0
  444. package/dist/esm/funcs/test-scenarios-delete.js.map +1 -0
  445. package/dist/esm/funcs/test-scenarios-get.d.ts +21 -0
  446. package/dist/esm/funcs/test-scenarios-get.d.ts.map +1 -0
  447. package/dist/esm/funcs/test-scenarios-get.js +100 -0
  448. package/dist/esm/funcs/test-scenarios-get.js.map +1 -0
  449. package/dist/esm/funcs/test-scenarios-list.d.ts +21 -0
  450. package/dist/esm/funcs/test-scenarios-list.d.ts.map +1 -0
  451. package/dist/esm/funcs/test-scenarios-list.js +96 -0
  452. package/dist/esm/funcs/test-scenarios-list.js.map +1 -0
  453. package/dist/esm/funcs/test-scenarios-put.d.ts +21 -0
  454. package/dist/esm/funcs/test-scenarios-put.d.ts.map +1 -0
  455. package/dist/esm/funcs/test-scenarios-put.js +97 -0
  456. package/dist/esm/funcs/test-scenarios-put.js.map +1 -0
  457. package/dist/esm/funcs/tokens-generate.d.ts +2 -1
  458. package/dist/esm/funcs/tokens-generate.d.ts.map +1 -1
  459. package/dist/esm/funcs/tokens-generate.js +6 -2
  460. package/dist/esm/funcs/tokens-generate.js.map +1 -1
  461. package/dist/esm/lib/config.d.ts +4 -4
  462. package/dist/esm/lib/config.d.ts.map +1 -1
  463. package/dist/esm/lib/config.js +13 -4
  464. package/dist/esm/lib/config.js.map +1 -1
  465. package/dist/esm/models/create-test-scenario-request.d.ts +29 -0
  466. package/dist/esm/models/create-test-scenario-request.d.ts.map +1 -0
  467. package/dist/esm/models/create-test-scenario-request.js +18 -0
  468. package/dist/esm/models/create-test-scenario-request.js.map +1 -0
  469. package/dist/esm/models/delete-response.d.ts +19 -0
  470. package/dist/esm/models/delete-response.d.ts.map +1 -0
  471. package/dist/esm/models/delete-response.js +20 -0
  472. package/dist/esm/models/delete-response.js.map +1 -0
  473. package/dist/esm/models/device-connect-request.d.ts +29 -0
  474. package/dist/esm/models/device-connect-request.d.ts.map +1 -0
  475. package/dist/esm/models/device-connect-request.js +21 -0
  476. package/dist/esm/models/device-connect-request.js.map +1 -0
  477. package/dist/esm/models/device-connect-response.d.ts +25 -0
  478. package/dist/esm/models/device-connect-response.d.ts.map +1 -0
  479. package/dist/esm/models/device-connect-response.js +26 -0
  480. package/dist/esm/models/device-connect-response.js.map +1 -0
  481. package/dist/esm/models/device-refresh-response.d.ts +16 -0
  482. package/dist/esm/models/device-refresh-response.d.ts.map +1 -0
  483. package/dist/esm/models/device-refresh-response.js +19 -0
  484. package/dist/esm/models/device-refresh-response.js.map +1 -0
  485. package/dist/esm/models/device-start-response.d.ts +20 -0
  486. package/dist/esm/models/device-start-response.d.ts.map +1 -0
  487. package/dist/esm/models/device-start-response.js +21 -0
  488. package/dist/esm/models/device-start-response.js.map +1 -0
  489. package/dist/esm/models/device-validate-response.d.ts +14 -0
  490. package/dist/esm/models/device-validate-response.d.ts.map +1 -0
  491. package/dist/esm/models/device-validate-response.js +17 -0
  492. package/dist/esm/models/device-validate-response.js.map +1 -0
  493. package/dist/esm/models/errors/error-response.d.ts +19 -0
  494. package/dist/esm/models/errors/error-response.d.ts.map +1 -0
  495. package/dist/esm/models/errors/error-response.js +31 -0
  496. package/dist/esm/models/errors/error-response.js.map +1 -0
  497. package/dist/esm/models/errors/index.d.ts +2 -0
  498. package/dist/esm/models/errors/index.d.ts.map +1 -1
  499. package/dist/esm/models/errors/index.js +2 -0
  500. package/dist/esm/models/errors/index.js.map +1 -1
  501. package/dist/esm/models/errors/o-auth-error-response.d.ts +32 -0
  502. package/dist/esm/models/errors/o-auth-error-response.d.ts.map +1 -0
  503. package/dist/esm/models/errors/o-auth-error-response.js +38 -0
  504. package/dist/esm/models/errors/o-auth-error-response.js.map +1 -0
  505. package/dist/esm/models/gbg-error.d.ts +28 -0
  506. package/dist/esm/models/gbg-error.d.ts.map +1 -0
  507. package/dist/esm/models/gbg-error.js +31 -0
  508. package/dist/esm/models/gbg-error.js.map +1 -0
  509. package/dist/esm/models/handoff-token-response.d.ts +20 -0
  510. package/dist/esm/models/handoff-token-response.d.ts.map +1 -0
  511. package/dist/esm/models/handoff-token-response.js +22 -0
  512. package/dist/esm/models/handoff-token-response.js.map +1 -0
  513. package/dist/esm/models/index.d.ts +33 -0
  514. package/dist/esm/models/index.d.ts.map +1 -1
  515. package/dist/esm/models/index.js +33 -0
  516. package/dist/esm/models/index.js.map +1 -1
  517. package/dist/esm/models/interaction-fetch-response.d.ts +40 -0
  518. package/dist/esm/models/interaction-fetch-response.d.ts.map +1 -0
  519. package/dist/esm/models/interaction-fetch-response.js +39 -0
  520. package/dist/esm/models/interaction-fetch-response.js.map +1 -0
  521. package/dist/esm/models/interaction-submit-response.d.ts +17 -0
  522. package/dist/esm/models/interaction-submit-response.d.ts.map +1 -0
  523. package/dist/esm/models/interaction-submit-response.js +18 -0
  524. package/dist/esm/models/interaction-submit-response.js.map +1 -0
  525. package/dist/esm/models/journey-start-response.d.ts +34 -0
  526. package/dist/esm/models/journey-start-response.d.ts.map +1 -0
  527. package/dist/esm/models/journey-start-response.js +30 -0
  528. package/dist/esm/models/journey-start-response.js.map +1 -0
  529. package/dist/esm/models/loqate-retrieve-response.d.ts +12 -0
  530. package/dist/esm/models/loqate-retrieve-response.d.ts.map +1 -0
  531. package/dist/esm/models/loqate-retrieve-response.js +18 -0
  532. package/dist/esm/models/loqate-retrieve-response.js.map +1 -0
  533. package/dist/esm/models/loqate-search-response.d.ts +12 -0
  534. package/dist/esm/models/loqate-search-response.d.ts.map +1 -0
  535. package/dist/esm/models/loqate-search-response.js +18 -0
  536. package/dist/esm/models/loqate-search-response.js.map +1 -0
  537. package/dist/esm/models/operations/add-device.d.ts +8 -92
  538. package/dist/esm/models/operations/add-device.d.ts.map +1 -1
  539. package/dist/esm/models/operations/add-device.js +5 -72
  540. package/dist/esm/models/operations/add-device.js.map +1 -1
  541. package/dist/esm/models/operations/create-handoff-token.d.ts +22 -0
  542. package/dist/esm/models/operations/create-handoff-token.d.ts.map +1 -0
  543. package/dist/esm/models/operations/create-handoff-token.js +24 -0
  544. package/dist/esm/models/operations/create-handoff-token.js.map +1 -0
  545. package/dist/esm/models/operations/create-test-scenario.d.ts +18 -0
  546. package/dist/esm/models/operations/create-test-scenario.d.ts.map +1 -0
  547. package/dist/esm/models/operations/create-test-scenario.js +14 -0
  548. package/dist/esm/models/operations/create-test-scenario.js.map +1 -0
  549. package/dist/esm/models/operations/delete-instance.d.ts +1 -14
  550. package/dist/esm/models/operations/delete-instance.d.ts.map +1 -1
  551. package/dist/esm/models/operations/delete-instance.js +2 -11
  552. package/dist/esm/models/operations/delete-instance.js.map +1 -1
  553. package/dist/esm/models/operations/delete-test-scenario.d.ts +20 -0
  554. package/dist/esm/models/operations/delete-test-scenario.d.ts.map +1 -0
  555. package/dist/esm/models/operations/delete-test-scenario.js +13 -0
  556. package/dist/esm/models/operations/delete-test-scenario.js.map +1 -0
  557. package/dist/esm/models/operations/device-connect.d.ts +0 -91
  558. package/dist/esm/models/operations/device-connect.d.ts.map +1 -1
  559. package/dist/esm/models/operations/device-connect.js +0 -63
  560. package/dist/esm/models/operations/device-connect.js.map +1 -1
  561. package/dist/esm/models/operations/device-validate.d.ts +12 -0
  562. package/dist/esm/models/operations/device-validate.d.ts.map +1 -0
  563. package/dist/esm/models/operations/device-validate.js +17 -0
  564. package/dist/esm/models/operations/device-validate.js.map +1 -0
  565. package/dist/esm/models/operations/fetch-interaction.d.ts +35 -1621
  566. package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
  567. package/dist/esm/models/operations/fetch-interaction.js +22 -1247
  568. package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
  569. package/dist/esm/models/operations/get-journey-schemas.d.ts +16 -0
  570. package/dist/esm/models/operations/get-journey-schemas.d.ts.map +1 -0
  571. package/dist/esm/models/operations/get-journey-schemas.js +14 -0
  572. package/dist/esm/models/operations/get-journey-schemas.js.map +1 -0
  573. package/dist/esm/models/operations/get-journey-state.d.ts +19 -1383
  574. package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
  575. package/dist/esm/models/operations/get-journey-state.js +13 -997
  576. package/dist/esm/models/operations/get-journey-state.js.map +1 -1
  577. package/dist/esm/models/operations/get-task-schema.d.ts +1 -17
  578. package/dist/esm/models/operations/get-task-schema.d.ts.map +1 -1
  579. package/dist/esm/models/operations/get-task-schema.js +0 -17
  580. package/dist/esm/models/operations/get-task-schema.js.map +1 -1
  581. package/dist/esm/models/operations/get-test-scenario.d.ts +39 -0
  582. package/dist/esm/models/operations/get-test-scenario.d.ts.map +1 -0
  583. package/dist/esm/models/operations/get-test-scenario.js +23 -0
  584. package/dist/esm/models/operations/get-test-scenario.js.map +1 -0
  585. package/dist/esm/models/operations/index.d.ts +12 -4
  586. package/dist/esm/models/operations/index.d.ts.map +1 -1
  587. package/dist/esm/models/operations/index.js +12 -4
  588. package/dist/esm/models/operations/index.js.map +1 -1
  589. package/dist/esm/models/operations/list-test-scenarios.d.ts +34 -0
  590. package/dist/esm/models/operations/list-test-scenarios.d.ts.map +1 -0
  591. package/dist/esm/models/operations/list-test-scenarios.js +22 -0
  592. package/dist/esm/models/operations/list-test-scenarios.js.map +1 -0
  593. package/dist/esm/models/operations/post-as-token-oauth2.d.ts +2 -2
  594. package/dist/esm/models/operations/post-as-token-oauth2.d.ts.map +1 -1
  595. package/dist/esm/models/operations/post-as-token-oauth2.js +4 -5
  596. package/dist/esm/models/operations/post-as-token-oauth2.js.map +1 -1
  597. package/dist/esm/models/operations/put-test-scenario.d.ts +23 -0
  598. package/dist/esm/models/operations/put-test-scenario.d.ts.map +1 -0
  599. package/dist/esm/models/operations/put-test-scenario.js +15 -0
  600. package/dist/esm/models/operations/put-test-scenario.js.map +1 -0
  601. package/dist/esm/models/operations/retrieve-address.d.ts +29 -0
  602. package/dist/esm/models/operations/retrieve-address.d.ts.map +1 -0
  603. package/dist/esm/models/operations/retrieve-address.js +27 -0
  604. package/dist/esm/models/operations/retrieve-address.js.map +1 -0
  605. package/dist/esm/models/operations/search-addresses.d.ts +33 -0
  606. package/dist/esm/models/operations/search-addresses.d.ts.map +1 -0
  607. package/dist/esm/models/operations/search-addresses.js +29 -0
  608. package/dist/esm/models/operations/search-addresses.js.map +1 -0
  609. package/dist/esm/models/operations/start-journey.d.ts +1214 -112
  610. package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
  611. package/dist/esm/models/operations/start-journey.js +565 -58
  612. package/dist/esm/models/operations/start-journey.js.map +1 -1
  613. package/dist/esm/models/operations/submit-interaction.d.ts +1074 -92
  614. package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
  615. package/dist/esm/models/operations/submit-interaction.js +505 -45
  616. package/dist/esm/models/operations/submit-interaction.js.map +1 -1
  617. package/dist/esm/models/operations/terminate-journey.d.ts +19 -0
  618. package/dist/esm/models/operations/terminate-journey.d.ts.map +1 -0
  619. package/dist/esm/models/operations/terminate-journey.js +13 -0
  620. package/dist/esm/models/operations/terminate-journey.js.map +1 -0
  621. package/dist/esm/models/operations/upload-interaction-asset.d.ts +26 -0
  622. package/dist/esm/models/operations/upload-interaction-asset.d.ts.map +1 -0
  623. package/dist/esm/models/operations/upload-interaction-asset.js +28 -0
  624. package/dist/esm/models/operations/upload-interaction-asset.js.map +1 -0
  625. package/dist/esm/models/outstanding-group.d.ts +15 -0
  626. package/dist/esm/models/outstanding-group.d.ts.map +1 -0
  627. package/dist/esm/models/outstanding-group.js +15 -0
  628. package/dist/esm/models/outstanding-group.js.map +1 -0
  629. package/dist/esm/models/schema-fetch-response.d.ts +22 -0
  630. package/dist/esm/models/schema-fetch-response.d.ts.map +1 -0
  631. package/dist/esm/models/schema-fetch-response.js +24 -0
  632. package/dist/esm/models/schema-fetch-response.js.map +1 -0
  633. package/dist/esm/models/slim-document.d.ts +57 -0
  634. package/dist/esm/models/slim-document.d.ts.map +1 -0
  635. package/dist/esm/models/slim-document.js +53 -0
  636. package/dist/esm/models/slim-document.js.map +1 -0
  637. package/dist/esm/models/slim-extraction.d.ts +74 -0
  638. package/dist/esm/models/slim-extraction.d.ts.map +1 -0
  639. package/dist/esm/models/slim-extraction.js +84 -0
  640. package/dist/esm/models/slim-extraction.js.map +1 -0
  641. package/dist/esm/models/slim-identity.d.ts +202 -0
  642. package/dist/esm/models/slim-identity.d.ts.map +1 -0
  643. package/dist/esm/models/slim-identity.js +100 -0
  644. package/dist/esm/models/slim-identity.js.map +1 -0
  645. package/dist/esm/models/slim-interaction-fetch-response.d.ts +46 -0
  646. package/dist/esm/models/slim-interaction-fetch-response.d.ts.map +1 -0
  647. package/dist/esm/models/slim-interaction-fetch-response.js +48 -0
  648. package/dist/esm/models/slim-interaction-fetch-response.js.map +1 -0
  649. package/dist/esm/models/slim-journey.d.ts +14 -0
  650. package/dist/esm/models/slim-journey.d.ts.map +1 -0
  651. package/dist/esm/models/slim-journey.js +18 -0
  652. package/dist/esm/models/slim-journey.js.map +1 -0
  653. package/dist/esm/models/slim-module-step-error.d.ts +50 -0
  654. package/dist/esm/models/slim-module-step-error.d.ts.map +1 -0
  655. package/dist/esm/models/slim-module-step-error.js +41 -0
  656. package/dist/esm/models/slim-module-step-error.js.map +1 -0
  657. package/dist/esm/models/slim-result.d.ts +49 -0
  658. package/dist/esm/models/slim-result.d.ts.map +1 -0
  659. package/dist/esm/models/slim-result.js +39 -0
  660. package/dist/esm/models/slim-result.js.map +1 -0
  661. package/dist/esm/models/slim-state-fetch-response.d.ts +27 -0
  662. package/dist/esm/models/slim-state-fetch-response.d.ts.map +1 -0
  663. package/dist/esm/models/slim-state-fetch-response.js +29 -0
  664. package/dist/esm/models/slim-state-fetch-response.js.map +1 -0
  665. package/dist/esm/models/slim-step.d.ts +40 -0
  666. package/dist/esm/models/slim-step.d.ts.map +1 -0
  667. package/dist/esm/models/slim-step.js +36 -0
  668. package/dist/esm/models/slim-step.js.map +1 -0
  669. package/dist/esm/models/slim-validation.d.ts +69 -0
  670. package/dist/esm/models/slim-validation.d.ts.map +1 -0
  671. package/dist/esm/models/slim-validation.js +78 -0
  672. package/dist/esm/models/slim-validation.js.map +1 -0
  673. package/dist/esm/models/slim-verified-data.d.ts +16 -0
  674. package/dist/esm/models/slim-verified-data.d.ts.map +1 -0
  675. package/dist/esm/models/slim-verified-data.js +16 -0
  676. package/dist/esm/models/slim-verified-data.js.map +1 -0
  677. package/dist/esm/models/state-fetch-response.d.ts +25 -0
  678. package/dist/esm/models/state-fetch-response.d.ts.map +1 -0
  679. package/dist/esm/models/state-fetch-response.js +22 -0
  680. package/dist/esm/models/state-fetch-response.js.map +1 -0
  681. package/dist/esm/models/terminate-response.d.ts +10 -0
  682. package/dist/esm/models/terminate-response.d.ts.map +1 -0
  683. package/dist/esm/models/terminate-response.js +13 -0
  684. package/dist/esm/models/terminate-response.js.map +1 -0
  685. package/dist/esm/models/test-scenario-summary.d.ts +29 -0
  686. package/dist/esm/models/test-scenario-summary.d.ts.map +1 -0
  687. package/dist/esm/models/test-scenario-summary.js +25 -0
  688. package/dist/esm/models/test-scenario-summary.js.map +1 -0
  689. package/dist/esm/models/test-scenario-written.d.ts +19 -0
  690. package/dist/esm/models/test-scenario-written.d.ts.map +1 -0
  691. package/dist/esm/models/test-scenario-written.js +20 -0
  692. package/dist/esm/models/test-scenario-written.js.map +1 -0
  693. package/dist/esm/models/test-scenario.d.ts +31 -0
  694. package/dist/esm/models/test-scenario.d.ts.map +1 -0
  695. package/dist/esm/models/test-scenario.js +25 -0
  696. package/dist/esm/models/test-scenario.js.map +1 -0
  697. package/dist/esm/models/update-test-scenario-request.d.ts +24 -0
  698. package/dist/esm/models/update-test-scenario-request.d.ts.map +1 -0
  699. package/dist/esm/models/update-test-scenario-request.js +17 -0
  700. package/dist/esm/models/update-test-scenario-request.js.map +1 -0
  701. package/dist/esm/sdk/addresses.d.ts +20 -0
  702. package/dist/esm/sdk/addresses.d.ts.map +1 -0
  703. package/dist/esm/sdk/addresses.js +28 -0
  704. package/dist/esm/sdk/addresses.js.map +1 -0
  705. package/dist/esm/sdk/devices.d.ts +21 -6
  706. package/dist/esm/sdk/devices.d.ts.map +1 -1
  707. package/dist/esm/sdk/devices.js +26 -6
  708. package/dist/esm/sdk/devices.js.map +1 -1
  709. package/dist/esm/sdk/instances.d.ts +11 -3
  710. package/dist/esm/sdk/instances.d.ts.map +1 -1
  711. package/dist/esm/sdk/instances.js +12 -2
  712. package/dist/esm/sdk/instances.js.map +1 -1
  713. package/dist/esm/sdk/interactions.d.ts +14 -6
  714. package/dist/esm/sdk/interactions.d.ts.map +1 -1
  715. package/dist/esm/sdk/interactions.js +16 -6
  716. package/dist/esm/sdk/interactions.js.map +1 -1
  717. package/dist/esm/sdk/journeys.d.ts +45 -5
  718. package/dist/esm/sdk/journeys.d.ts.map +1 -1
  719. package/dist/esm/sdk/journeys.js +49 -4
  720. package/dist/esm/sdk/journeys.js.map +1 -1
  721. package/dist/esm/sdk/sdk.d.ts +14 -11
  722. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  723. package/dist/esm/sdk/sdk.js +17 -13
  724. package/dist/esm/sdk/sdk.js.map +1 -1
  725. package/dist/esm/sdk/tasks.d.ts +6 -23
  726. package/dist/esm/sdk/tasks.d.ts.map +1 -1
  727. package/dist/esm/sdk/tasks.js +3 -31
  728. package/dist/esm/sdk/tasks.js.map +1 -1
  729. package/dist/esm/sdk/test-scenarios.d.ts +41 -0
  730. package/dist/esm/sdk/test-scenarios.d.ts.map +1 -0
  731. package/dist/esm/sdk/test-scenarios.js +58 -0
  732. package/dist/esm/sdk/test-scenarios.js.map +1 -0
  733. package/dist/esm/types/discriminated-union.d.ts.map +1 -1
  734. package/dist/esm/types/discriminated-union.js +0 -4
  735. package/dist/esm/types/discriminated-union.js.map +1 -1
  736. package/dist/esm/types/index.d.ts +0 -2
  737. package/dist/esm/types/index.d.ts.map +1 -1
  738. package/dist/esm/types/index.js +0 -2
  739. package/dist/esm/types/index.js.map +1 -1
  740. package/dist/esm/types/smart-union.d.ts.map +1 -1
  741. package/dist/esm/types/smart-union.js +14 -14
  742. package/dist/esm/types/smart-union.js.map +1 -1
  743. package/examples/{tokensGenerate.example.ts → journeysStart.example.ts} +5 -3
  744. package/jsr.json +1 -1
  745. package/package.json +1 -1
  746. package/src/funcs/{tasks-update.ts → addresses-retrieve.ts} +39 -18
  747. package/src/funcs/addresses-search.ts +196 -0
  748. package/src/funcs/devices-add.ts +20 -10
  749. package/src/funcs/devices-connect.ts +23 -16
  750. package/src/funcs/{health-get.ts → devices-refresh.ts} +26 -22
  751. package/src/funcs/{tasks-list.ts → devices-validate.ts} +26 -37
  752. package/src/funcs/instances-delete.ts +20 -9
  753. package/src/funcs/instances-handoff-token.ts +191 -0
  754. package/src/funcs/interactions-fetch.ts +29 -9
  755. package/src/funcs/interactions-submit.ts +27 -9
  756. package/src/funcs/interactions-upload-asset.ts +173 -0
  757. package/src/funcs/journeys-get-schemas.ts +207 -0
  758. package/src/funcs/journeys-get-state.ts +22 -9
  759. package/src/funcs/journeys-start.ts +23 -10
  760. package/src/funcs/{tasks-list-schema.ts → journeys-terminate.ts} +26 -15
  761. package/src/funcs/tasks-get-schema.ts +21 -9
  762. package/src/funcs/test-scenarios-create.ts +183 -0
  763. package/src/funcs/test-scenarios-delete.ts +187 -0
  764. package/src/funcs/test-scenarios-get.ts +192 -0
  765. package/src/funcs/test-scenarios-list.ts +187 -0
  766. package/src/funcs/test-scenarios-put.ts +188 -0
  767. package/src/funcs/tokens-generate.ts +12 -3
  768. package/src/lib/config.ts +13 -4
  769. package/src/models/create-test-scenario-request.ts +63 -0
  770. package/src/models/delete-response.ts +45 -0
  771. package/src/models/device-connect-request.ts +60 -0
  772. package/src/models/device-connect-response.ts +59 -0
  773. package/src/models/device-refresh-response.ts +42 -0
  774. package/src/models/device-start-response.ts +49 -0
  775. package/src/models/device-validate-response.ts +38 -0
  776. package/src/models/errors/error-response.ts +52 -0
  777. package/src/models/errors/index.ts +2 -0
  778. package/src/models/errors/o-auth-error-response.ts +74 -0
  779. package/src/models/gbg-error.ts +56 -0
  780. package/src/models/handoff-token-response.ts +48 -0
  781. package/src/models/index.ts +33 -0
  782. package/src/models/interaction-fetch-response.ts +103 -0
  783. package/src/models/interaction-submit-response.ts +43 -0
  784. package/src/models/journey-start-response.ts +71 -0
  785. package/src/models/loqate-retrieve-response.ts +38 -0
  786. package/src/models/loqate-search-response.ts +38 -0
  787. package/src/models/operations/add-device.ts +17 -176
  788. package/src/models/operations/create-handoff-token.ts +63 -0
  789. package/src/models/operations/create-test-scenario.ts +37 -0
  790. package/src/models/operations/delete-instance.ts +7 -38
  791. package/src/models/operations/delete-test-scenario.ts +39 -0
  792. package/src/models/operations/device-connect.ts +0 -189
  793. package/src/models/operations/device-validate.ts +38 -0
  794. package/src/models/operations/fetch-interaction.ts +100 -3798
  795. package/src/models/operations/get-journey-schemas.ts +36 -0
  796. package/src/models/operations/get-journey-state.ts +62 -3183
  797. package/src/models/operations/get-task-schema.ts +1 -44
  798. package/src/models/operations/get-test-scenario.ts +65 -0
  799. package/src/models/operations/index.ts +12 -4
  800. package/src/models/operations/list-test-scenarios.ts +59 -0
  801. package/src/models/operations/post-as-token-oauth2.ts +8 -9
  802. package/src/models/operations/put-test-scenario.ts +43 -0
  803. package/src/models/operations/retrieve-address.ts +73 -0
  804. package/src/models/operations/search-addresses.ts +79 -0
  805. package/src/models/operations/start-journey.ts +2838 -1025
  806. package/src/models/operations/submit-interaction.ts +2787 -1092
  807. package/src/models/operations/terminate-journey.ts +41 -0
  808. package/src/models/operations/upload-interaction-asset.ts +74 -0
  809. package/src/models/outstanding-group.ts +37 -0
  810. package/src/models/schema-fetch-response.ts +57 -0
  811. package/src/models/slim-document.ts +134 -0
  812. package/src/models/slim-extraction.ts +235 -0
  813. package/src/models/slim-identity.ts +347 -0
  814. package/src/models/slim-interaction-fetch-response.ts +124 -0
  815. package/src/models/slim-journey.ts +36 -0
  816. package/src/models/slim-module-step-error.ts +99 -0
  817. package/src/models/slim-result.ts +92 -0
  818. package/src/models/slim-state-fetch-response.ts +60 -0
  819. package/src/models/slim-step.ts +80 -0
  820. package/src/models/slim-validation.ts +229 -0
  821. package/src/models/slim-verified-data.ts +37 -0
  822. package/src/models/state-fetch-response.ts +49 -0
  823. package/src/models/terminate-response.ts +30 -0
  824. package/src/models/test-scenario-summary.ts +62 -0
  825. package/src/models/test-scenario-written.ts +47 -0
  826. package/src/models/test-scenario.ts +60 -0
  827. package/src/models/update-test-scenario-request.ts +57 -0
  828. package/src/sdk/addresses.ts +50 -0
  829. package/src/sdk/devices.ts +46 -11
  830. package/src/sdk/instances.ts +24 -3
  831. package/src/sdk/interactions.ts +30 -11
  832. package/src/sdk/journeys.ts +67 -5
  833. package/src/sdk/sdk.ts +25 -19
  834. package/src/sdk/tasks.ts +4 -60
  835. package/src/sdk/test-scenarios.ts +100 -0
  836. package/src/types/discriminated-union.ts +1 -4
  837. package/src/types/index.ts +0 -2
  838. package/src/types/smart-union.ts +19 -14
  839. package/dist/commonjs/funcs/health-get.d.ts.map +0 -1
  840. package/dist/commonjs/funcs/health-get.js.map +0 -1
  841. package/dist/commonjs/funcs/tasks-list-schema.d.ts.map +0 -1
  842. package/dist/commonjs/funcs/tasks-list-schema.js.map +0 -1
  843. package/dist/commonjs/funcs/tasks-list.d.ts.map +0 -1
  844. package/dist/commonjs/funcs/tasks-list.js.map +0 -1
  845. package/dist/commonjs/funcs/tasks-update.d.ts.map +0 -1
  846. package/dist/commonjs/funcs/tasks-update.js.map +0 -1
  847. package/dist/commonjs/models/operations/get-tasks-schema.d.ts +0 -71
  848. package/dist/commonjs/models/operations/get-tasks-schema.d.ts.map +0 -1
  849. package/dist/commonjs/models/operations/get-tasks-schema.js +0 -108
  850. package/dist/commonjs/models/operations/get-tasks-schema.js.map +0 -1
  851. package/dist/commonjs/models/operations/get-tasks.d.ts +0 -62
  852. package/dist/commonjs/models/operations/get-tasks.d.ts.map +0 -1
  853. package/dist/commonjs/models/operations/get-tasks.js +0 -91
  854. package/dist/commonjs/models/operations/get-tasks.js.map +0 -1
  855. package/dist/commonjs/models/operations/health.d.ts +0 -14
  856. package/dist/commonjs/models/operations/health.d.ts.map +0 -1
  857. package/dist/commonjs/models/operations/health.js.map +0 -1
  858. package/dist/commonjs/models/operations/update-task.d.ts +0 -2105
  859. package/dist/commonjs/models/operations/update-task.d.ts.map +0 -1
  860. package/dist/commonjs/models/operations/update-task.js +0 -1115
  861. package/dist/commonjs/models/operations/update-task.js.map +0 -1
  862. package/dist/commonjs/sdk/health.d.ts +0 -12
  863. package/dist/commonjs/sdk/health.d.ts.map +0 -1
  864. package/dist/commonjs/sdk/health.js +0 -22
  865. package/dist/commonjs/sdk/health.js.map +0 -1
  866. package/dist/commonjs/types/default-to-zero-value.d.ts +0 -12
  867. package/dist/commonjs/types/default-to-zero-value.d.ts.map +0 -1
  868. package/dist/commonjs/types/default-to-zero-value.js +0 -35
  869. package/dist/commonjs/types/default-to-zero-value.js.map +0 -1
  870. package/dist/commonjs/types/primitives.d.ts +0 -9
  871. package/dist/commonjs/types/primitives.d.ts.map +0 -1
  872. package/dist/commonjs/types/primitives.js +0 -151
  873. package/dist/commonjs/types/primitives.js.map +0 -1
  874. package/dist/esm/funcs/health-get.d.ts.map +0 -1
  875. package/dist/esm/funcs/health-get.js.map +0 -1
  876. package/dist/esm/funcs/tasks-list-schema.d.ts.map +0 -1
  877. package/dist/esm/funcs/tasks-list-schema.js.map +0 -1
  878. package/dist/esm/funcs/tasks-list.d.ts +0 -17
  879. package/dist/esm/funcs/tasks-list.d.ts.map +0 -1
  880. package/dist/esm/funcs/tasks-list.js.map +0 -1
  881. package/dist/esm/funcs/tasks-update.d.ts +0 -17
  882. package/dist/esm/funcs/tasks-update.d.ts.map +0 -1
  883. package/dist/esm/funcs/tasks-update.js.map +0 -1
  884. package/dist/esm/models/operations/get-tasks-schema.d.ts +0 -71
  885. package/dist/esm/models/operations/get-tasks-schema.d.ts.map +0 -1
  886. package/dist/esm/models/operations/get-tasks-schema.js +0 -67
  887. package/dist/esm/models/operations/get-tasks-schema.js.map +0 -1
  888. package/dist/esm/models/operations/get-tasks.d.ts +0 -62
  889. package/dist/esm/models/operations/get-tasks.d.ts.map +0 -1
  890. package/dist/esm/models/operations/get-tasks.js +0 -51
  891. package/dist/esm/models/operations/get-tasks.js.map +0 -1
  892. package/dist/esm/models/operations/health.d.ts +0 -14
  893. package/dist/esm/models/operations/health.d.ts.map +0 -1
  894. package/dist/esm/models/operations/health.js +0 -14
  895. package/dist/esm/models/operations/health.js.map +0 -1
  896. package/dist/esm/models/operations/update-task.d.ts +0 -2105
  897. package/dist/esm/models/operations/update-task.d.ts.map +0 -1
  898. package/dist/esm/models/operations/update-task.js +0 -1007
  899. package/dist/esm/models/operations/update-task.js.map +0 -1
  900. package/dist/esm/sdk/health.d.ts +0 -12
  901. package/dist/esm/sdk/health.d.ts.map +0 -1
  902. package/dist/esm/sdk/health.js +0 -18
  903. package/dist/esm/sdk/health.js.map +0 -1
  904. package/dist/esm/types/default-to-zero-value.d.ts +0 -12
  905. package/dist/esm/types/default-to-zero-value.d.ts.map +0 -1
  906. package/dist/esm/types/default-to-zero-value.js +0 -31
  907. package/dist/esm/types/default-to-zero-value.js.map +0 -1
  908. package/dist/esm/types/primitives.d.ts +0 -9
  909. package/dist/esm/types/primitives.d.ts.map +0 -1
  910. package/dist/esm/types/primitives.js +0 -109
  911. package/dist/esm/types/primitives.js.map +0 -1
  912. package/src/models/operations/get-tasks-schema.ts +0 -173
  913. package/src/models/operations/get-tasks.ts +0 -144
  914. package/src/models/operations/health.ts +0 -38
  915. package/src/models/operations/update-task.ts +0 -3818
  916. package/src/sdk/health.ts +0 -25
  917. package/src/types/default-to-zero-value.ts +0 -33
  918. package/src/types/primitives.ts +0 -140
@@ -36,229 +36,27 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.FetchInteractionIdentityAlias$inboundSchema = exports.Interaction$inboundSchema = exports.ConsumeUnion$inboundSchema = exports.Consume1$inboundSchema = exports.ConsumeSpec1$inboundSchema = exports.Consume2$inboundSchema = exports.ConsumeInput$inboundSchema = exports.ConsumeInputSpec$inboundSchema = exports.ConsumeCombinator$inboundSchema = exports.ConsumeSpec2$inboundSchema = exports.CollectUnion$inboundSchema = exports.Collect1$inboundSchema = exports.CollectSpec1$inboundSchema = exports.Collect2$inboundSchema = exports.CollectInput$inboundSchema = exports.CollectInputSpec$inboundSchema = exports.CollectCombinator$inboundSchema = exports.CollectSpec2$inboundSchema = exports.Resource$inboundSchema = exports.Data$inboundSchema = exports.Page$inboundSchema = exports.Card$inboundSchema = exports.ResourceType$inboundSchema = exports.Journey1$inboundSchema = exports.JourneyStatus1$inboundSchema = exports.FetchInteractionError$inboundSchema = exports.FetchInteractionStatusError$inboundSchema = exports.ResponseBody2$inboundSchema = exports.Journey2$inboundSchema = exports.JourneyStatus2$inboundSchema = exports.FetchInteractionRequest$outboundSchema = exports.FetchInteractionSecurity$outboundSchema = exports.FetchInteractionConsentType = exports.FetchInteractionDocumentRelationship = exports.FetchInteractionResult = exports.FetchInteractionAuthType = exports.FetchInteractionName = exports.FetchInteractionIdentityRelationship = exports.ConsumeSpec1 = exports.ConsumeInputSpec = exports.ConsumeCombinator = exports.ConsumeSpec2 = exports.CollectSpec1 = exports.CollectInputSpec = exports.CollectCombinator = exports.CollectSpec2 = exports.ResourceType = exports.JourneyStatus1 = exports.FetchInteractionStatusError = exports.JourneyStatus2 = void 0;
40
- exports.FetchInteractionDocumentPhone$inboundSchema = exports.FetchInteractionDocumentIdNumber$inboundSchema = exports.FetchInteractionDocumentPlaceOfBirth$inboundSchema = exports.FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema = exports.FetchInteractionDocumentPreviousAddress$inboundSchema = exports.FetchInteractionDocumentPreviousAddressLocation$inboundSchema = exports.FetchInteractionDocumentCurrentAddress$inboundSchema = exports.FetchInteractionDocumentCurrentAddressLocation$inboundSchema = exports.FetchInteractionDocumentRelatedPerson$inboundSchema = exports.FetchInteractionDocumentRelationship$inboundSchema = exports.FetchInteractionDocumentAlias$inboundSchema = exports.FetchInteractionValidation$inboundSchema = exports.FetchInteractionAggregatedValidationCheck$inboundSchema = exports.FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema = exports.FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema = exports.FetchInteractionValidationCheck$inboundSchema = exports.FetchInteractionValidationCheckRegionOfInterest$inboundSchema = exports.FetchInteractionValidationCheckBoundingBox$inboundSchema = exports.FetchInteractionExtraction$inboundSchema = exports.FetchInteractionExtractedImage$inboundSchema = exports.FetchInteractionExtractedField$inboundSchema = exports.FetchInteractionDetail$inboundSchema = exports.FetchInteractionDetailRegionOfInterest$inboundSchema = exports.FetchInteractionDetailBoundingBox$inboundSchema = exports.FetchInteractionAggregatedField$inboundSchema = exports.FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema = exports.FetchInteractionAggregatedFieldBoundingBox$inboundSchema = exports.FetchInteractionClassification$inboundSchema = exports.FetchInteractionSide$inboundSchema = exports.FetchInteractionChip$inboundSchema = exports.FetchInteractionChipAuth$inboundSchema = exports.FetchInteractionResult$inboundSchema = exports.FetchInteractionAuthType$inboundSchema = exports.FetchInteractionLd$inboundSchema = exports.FetchInteractionName$inboundSchema = exports.FetchInteractionDocumentDevice$inboundSchema = exports.FetchInteractionAddress$inboundSchema = exports.FetchInteractionIdentity$inboundSchema = exports.FetchInteractionIdentitySocial$inboundSchema = exports.FetchInteractionIdentityEmail$inboundSchema = exports.FetchInteractionIdentityPhone$inboundSchema = exports.FetchInteractionIdentityIdNumber$inboundSchema = exports.FetchInteractionIdentityPlaceOfBirth$inboundSchema = exports.FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema = exports.FetchInteractionIdentityPreviousAddress$inboundSchema = exports.FetchInteractionIdentityPreviousAddressLocation$inboundSchema = exports.FetchInteractionIdentityCurrentAddress$inboundSchema = exports.FetchInteractionIdentityCurrentAddressLocation$inboundSchema = exports.FetchInteractionIdentityRelatedPerson$inboundSchema = exports.FetchInteractionIdentityRelationship$inboundSchema = void 0;
41
- exports.FetchInteractionResponse$inboundSchema = exports.ResponseBody1$inboundSchema = exports.FetchInteractionContext$inboundSchema = exports.FetchInteractionSubject$inboundSchema = exports.FetchInteractionAccount$inboundSchema = exports.FetchInteractionConsent$inboundSchema = exports.FetchInteractionConsentType$inboundSchema = exports.FetchInteractionSession$inboundSchema = exports.FetchInteractionSessionAuth$inboundSchema = exports.FetchInteractionTransaction$inboundSchema = exports.FetchInteractionSpan$inboundSchema = exports.FetchInteractionTrace$inboundSchema = exports.FetchInteractionSessionDevice$inboundSchema = exports.FetchInteractionModel$inboundSchema = exports.FetchInteractionClient$inboundSchema = exports.FetchInteractionUser$inboundSchema = exports.FetchInteractionBiometricUnion$inboundSchema = exports.FetchInteractionBiometric1$inboundSchema = exports.FetchInteractionBiometric2$inboundSchema = exports.FetchInteractionBiometric3$inboundSchema = exports.FetchInteractionBiometric4$inboundSchema = exports.FetchInteractionDocument$inboundSchema = exports.FetchInteractionDocumentSubject$inboundSchema = exports.FetchInteractionDocumentSocial$inboundSchema = exports.FetchInteractionDocumentEmail$inboundSchema = void 0;
39
+ exports.FetchInteractionResponse$inboundSchema = exports.FetchInteractionRequest$outboundSchema = exports.FetchInteractionRequestBody$outboundSchema = exports.FetchInteractionScope$outboundSchema = exports.FetchInteractionSecurity$outboundSchema = exports.FetchInteractionScope = void 0;
42
40
  exports.fetchInteractionSecurityToJSON = fetchInteractionSecurityToJSON;
41
+ exports.fetchInteractionRequestBodyToJSON = fetchInteractionRequestBodyToJSON;
43
42
  exports.fetchInteractionRequestToJSON = fetchInteractionRequestToJSON;
44
- exports.journey2FromJSON = journey2FromJSON;
45
- exports.responseBody2FromJSON = responseBody2FromJSON;
46
- exports.fetchInteractionErrorFromJSON = fetchInteractionErrorFromJSON;
47
- exports.journey1FromJSON = journey1FromJSON;
48
- exports.cardFromJSON = cardFromJSON;
49
- exports.pageFromJSON = pageFromJSON;
50
- exports.dataFromJSON = dataFromJSON;
51
- exports.resourceFromJSON = resourceFromJSON;
52
- exports.collectInputFromJSON = collectInputFromJSON;
53
- exports.collect2FromJSON = collect2FromJSON;
54
- exports.collect1FromJSON = collect1FromJSON;
55
- exports.collectUnionFromJSON = collectUnionFromJSON;
56
- exports.consumeInputFromJSON = consumeInputFromJSON;
57
- exports.consume2FromJSON = consume2FromJSON;
58
- exports.consume1FromJSON = consume1FromJSON;
59
- exports.consumeUnionFromJSON = consumeUnionFromJSON;
60
- exports.interactionFromJSON = interactionFromJSON;
61
- exports.fetchInteractionIdentityAliasFromJSON = fetchInteractionIdentityAliasFromJSON;
62
- exports.fetchInteractionIdentityRelatedPersonFromJSON = fetchInteractionIdentityRelatedPersonFromJSON;
63
- exports.fetchInteractionIdentityCurrentAddressLocationFromJSON = fetchInteractionIdentityCurrentAddressLocationFromJSON;
64
- exports.fetchInteractionIdentityCurrentAddressFromJSON = fetchInteractionIdentityCurrentAddressFromJSON;
65
- exports.fetchInteractionIdentityPreviousAddressLocationFromJSON = fetchInteractionIdentityPreviousAddressLocationFromJSON;
66
- exports.fetchInteractionIdentityPreviousAddressFromJSON = fetchInteractionIdentityPreviousAddressFromJSON;
67
- exports.fetchInteractionIdentityPlaceOfBirthLocationFromJSON = fetchInteractionIdentityPlaceOfBirthLocationFromJSON;
68
- exports.fetchInteractionIdentityPlaceOfBirthFromJSON = fetchInteractionIdentityPlaceOfBirthFromJSON;
69
- exports.fetchInteractionIdentityIdNumberFromJSON = fetchInteractionIdentityIdNumberFromJSON;
70
- exports.fetchInteractionIdentityPhoneFromJSON = fetchInteractionIdentityPhoneFromJSON;
71
- exports.fetchInteractionIdentityEmailFromJSON = fetchInteractionIdentityEmailFromJSON;
72
- exports.fetchInteractionIdentitySocialFromJSON = fetchInteractionIdentitySocialFromJSON;
73
- exports.fetchInteractionIdentityFromJSON = fetchInteractionIdentityFromJSON;
74
- exports.fetchInteractionAddressFromJSON = fetchInteractionAddressFromJSON;
75
- exports.fetchInteractionDocumentDeviceFromJSON = fetchInteractionDocumentDeviceFromJSON;
76
- exports.fetchInteractionLdFromJSON = fetchInteractionLdFromJSON;
77
- exports.fetchInteractionChipAuthFromJSON = fetchInteractionChipAuthFromJSON;
78
- exports.fetchInteractionChipFromJSON = fetchInteractionChipFromJSON;
79
- exports.fetchInteractionSideFromJSON = fetchInteractionSideFromJSON;
80
- exports.fetchInteractionClassificationFromJSON = fetchInteractionClassificationFromJSON;
81
- exports.fetchInteractionAggregatedFieldBoundingBoxFromJSON = fetchInteractionAggregatedFieldBoundingBoxFromJSON;
82
- exports.fetchInteractionAggregatedFieldRegionOfInterestFromJSON = fetchInteractionAggregatedFieldRegionOfInterestFromJSON;
83
- exports.fetchInteractionAggregatedFieldFromJSON = fetchInteractionAggregatedFieldFromJSON;
84
- exports.fetchInteractionDetailBoundingBoxFromJSON = fetchInteractionDetailBoundingBoxFromJSON;
85
- exports.fetchInteractionDetailRegionOfInterestFromJSON = fetchInteractionDetailRegionOfInterestFromJSON;
86
- exports.fetchInteractionDetailFromJSON = fetchInteractionDetailFromJSON;
87
- exports.fetchInteractionExtractedFieldFromJSON = fetchInteractionExtractedFieldFromJSON;
88
- exports.fetchInteractionExtractedImageFromJSON = fetchInteractionExtractedImageFromJSON;
89
- exports.fetchInteractionExtractionFromJSON = fetchInteractionExtractionFromJSON;
90
- exports.fetchInteractionValidationCheckBoundingBoxFromJSON = fetchInteractionValidationCheckBoundingBoxFromJSON;
91
- exports.fetchInteractionValidationCheckRegionOfInterestFromJSON = fetchInteractionValidationCheckRegionOfInterestFromJSON;
92
- exports.fetchInteractionValidationCheckFromJSON = fetchInteractionValidationCheckFromJSON;
93
- exports.fetchInteractionAggregatedValidationCheckBoundingBoxFromJSON = fetchInteractionAggregatedValidationCheckBoundingBoxFromJSON;
94
- exports.fetchInteractionAggregatedValidationCheckRegionOfInterestFromJSON = fetchInteractionAggregatedValidationCheckRegionOfInterestFromJSON;
95
- exports.fetchInteractionAggregatedValidationCheckFromJSON = fetchInteractionAggregatedValidationCheckFromJSON;
96
- exports.fetchInteractionValidationFromJSON = fetchInteractionValidationFromJSON;
97
- exports.fetchInteractionDocumentAliasFromJSON = fetchInteractionDocumentAliasFromJSON;
98
- exports.fetchInteractionDocumentRelatedPersonFromJSON = fetchInteractionDocumentRelatedPersonFromJSON;
99
- exports.fetchInteractionDocumentCurrentAddressLocationFromJSON = fetchInteractionDocumentCurrentAddressLocationFromJSON;
100
- exports.fetchInteractionDocumentCurrentAddressFromJSON = fetchInteractionDocumentCurrentAddressFromJSON;
101
- exports.fetchInteractionDocumentPreviousAddressLocationFromJSON = fetchInteractionDocumentPreviousAddressLocationFromJSON;
102
- exports.fetchInteractionDocumentPreviousAddressFromJSON = fetchInteractionDocumentPreviousAddressFromJSON;
103
- exports.fetchInteractionDocumentPlaceOfBirthLocationFromJSON = fetchInteractionDocumentPlaceOfBirthLocationFromJSON;
104
- exports.fetchInteractionDocumentPlaceOfBirthFromJSON = fetchInteractionDocumentPlaceOfBirthFromJSON;
105
- exports.fetchInteractionDocumentIdNumberFromJSON = fetchInteractionDocumentIdNumberFromJSON;
106
- exports.fetchInteractionDocumentPhoneFromJSON = fetchInteractionDocumentPhoneFromJSON;
107
- exports.fetchInteractionDocumentEmailFromJSON = fetchInteractionDocumentEmailFromJSON;
108
- exports.fetchInteractionDocumentSocialFromJSON = fetchInteractionDocumentSocialFromJSON;
109
- exports.fetchInteractionDocumentSubjectFromJSON = fetchInteractionDocumentSubjectFromJSON;
110
- exports.fetchInteractionDocumentFromJSON = fetchInteractionDocumentFromJSON;
111
- exports.fetchInteractionBiometric4FromJSON = fetchInteractionBiometric4FromJSON;
112
- exports.fetchInteractionBiometric3FromJSON = fetchInteractionBiometric3FromJSON;
113
- exports.fetchInteractionBiometric2FromJSON = fetchInteractionBiometric2FromJSON;
114
- exports.fetchInteractionBiometric1FromJSON = fetchInteractionBiometric1FromJSON;
115
- exports.fetchInteractionBiometricUnionFromJSON = fetchInteractionBiometricUnionFromJSON;
116
- exports.fetchInteractionUserFromJSON = fetchInteractionUserFromJSON;
117
- exports.fetchInteractionClientFromJSON = fetchInteractionClientFromJSON;
118
- exports.fetchInteractionModelFromJSON = fetchInteractionModelFromJSON;
119
- exports.fetchInteractionSessionDeviceFromJSON = fetchInteractionSessionDeviceFromJSON;
120
- exports.fetchInteractionTraceFromJSON = fetchInteractionTraceFromJSON;
121
- exports.fetchInteractionSpanFromJSON = fetchInteractionSpanFromJSON;
122
- exports.fetchInteractionTransactionFromJSON = fetchInteractionTransactionFromJSON;
123
- exports.fetchInteractionSessionAuthFromJSON = fetchInteractionSessionAuthFromJSON;
124
- exports.fetchInteractionSessionFromJSON = fetchInteractionSessionFromJSON;
125
- exports.fetchInteractionConsentFromJSON = fetchInteractionConsentFromJSON;
126
- exports.fetchInteractionAccountFromJSON = fetchInteractionAccountFromJSON;
127
- exports.fetchInteractionSubjectFromJSON = fetchInteractionSubjectFromJSON;
128
- exports.fetchInteractionContextFromJSON = fetchInteractionContextFromJSON;
129
- exports.responseBody1FromJSON = responseBody1FromJSON;
130
43
  exports.fetchInteractionResponseFromJSON = fetchInteractionResponseFromJSON;
131
44
  const z = __importStar(require("zod/v4-mini"));
132
45
  const primitives_js_1 = require("../../lib/primitives.js");
133
46
  const schemas_js_1 = require("../../lib/schemas.js");
134
- const openEnums = __importStar(require("../../types/enums.js"));
135
- const types = __importStar(require("../../types/primitives.js"));
136
- const smart_union_js_1 = require("../../types/smart-union.js");
137
- exports.JourneyStatus2 = {
138
- Completed: "Completed",
139
- InProgress: "InProgress",
140
- Failed: "Failed",
141
- Paused: "Paused",
142
- };
143
- exports.FetchInteractionStatusError = {
144
- Error: "error",
145
- };
146
- exports.JourneyStatus1 = {
147
- Completed: "Completed",
148
- InProgress: "InProgress",
149
- Failed: "Failed",
150
- Paused: "Paused",
151
- };
152
- exports.ResourceType = {
153
- Brand: "brand",
154
- Delivery: "delivery",
155
- Flow: "flow",
156
- Form: "form",
157
- I18n: "i18n",
158
- Journey: "journey",
159
- License: "license",
160
- Model: "model",
161
- Organization: "organization",
162
- Template: "template",
163
- Interaction: "interaction",
164
- };
165
- exports.CollectSpec2 = {
166
- Required: "required",
167
- Optional: "optional",
168
- Conditional: "conditional",
169
- };
170
- exports.CollectCombinator = {
171
- OneOf: "oneOf",
172
- AllOf: "allOf",
173
- };
174
- exports.CollectInputSpec = {
175
- Required: "required",
176
- Optional: "optional",
177
- Conditional: "conditional",
178
- };
179
- exports.CollectSpec1 = {
180
- Required: "required",
181
- Optional: "optional",
182
- Conditional: "conditional",
183
- };
184
- exports.ConsumeSpec2 = {
185
- Required: "required",
186
- Optional: "optional",
187
- Conditional: "conditional",
188
- };
189
- exports.ConsumeCombinator = {
190
- OneOf: "oneOf",
191
- AllOf: "allOf",
192
- };
193
- exports.ConsumeInputSpec = {
194
- Required: "required",
195
- Optional: "optional",
196
- Conditional: "conditional",
197
- };
198
- exports.ConsumeSpec1 = {
199
- Required: "required",
200
- Optional: "optional",
201
- Conditional: "conditional",
202
- };
203
- exports.FetchInteractionIdentityRelationship = {
204
- Mother: "mother",
205
- Father: "father",
206
- MaternalGrandFather: "maternalGrandFather",
207
- MaternalGrandMother: "maternalGrandMother",
208
- PaternalGrandFather: "paternalGrandFather",
209
- PaternalGrandMother: "paternalGrandMother",
210
- };
211
- exports.FetchInteractionName = {
212
- Com: "COM",
213
- Sod: "SOD",
214
- Dg1: "DG1",
215
- Dg2: "DG2",
216
- Dg3: "DG3",
217
- Dg4: "DG4",
218
- Dg5: "DG5",
219
- Dg6: "DG6",
220
- Dg7: "DG7",
221
- Dg8: "DG8",
222
- Dg9: "DG9",
223
- Dg10: "DG10",
224
- Dg11: "DG11",
225
- Dg12: "DG12",
226
- Dg13: "DG13",
227
- Dg14: "DG14",
228
- Dg15: "DG15",
229
- };
230
- exports.FetchInteractionAuthType = {
231
- ActiveAuthentication: "ActiveAuthentication",
232
- BasicAccessControl: "BasicAccessControl",
233
- ChipAuthentication: "ChipAuthentication",
234
- PassiveAuthentication: "PassiveAuthentication",
235
- SupplementalAccessControl: "SupplementalAccessControl",
236
- ExtendedAccessControl: "ExtendedAccessControl",
237
- TerminalAuthentication: "TerminalAuthentication",
238
- };
239
- exports.FetchInteractionResult = {
240
- Success: "Success",
241
- Failure: "Failure",
242
- Skipped: "Skipped",
243
- };
244
- exports.FetchInteractionDocumentRelationship = {
245
- Mother: "mother",
246
- Father: "father",
247
- MaternalGrandFather: "maternalGrandFather",
248
- MaternalGrandMother: "maternalGrandMother",
249
- PaternalGrandFather: "paternalGrandFather",
250
- PaternalGrandMother: "paternalGrandMother",
251
- };
252
- exports.FetchInteractionConsentType = {
253
- Rollup: "rollup",
254
- Explicit: "explicit",
255
- Implicit: "implicit",
47
+ const discriminated_union_js_1 = require("../../types/discriminated-union.js");
48
+ const models = __importStar(require("../index.js"));
49
+ exports.FetchInteractionScope = {
50
+ Subject: "subject",
51
+ Reviewer: "reviewer",
256
52
  };
257
53
  /** @internal */
258
54
  exports.FetchInteractionSecurity$outboundSchema = z.pipe(z.object({
259
- interactionAccess: z.string(),
55
+ customerAccess: z.optional(z.string()),
56
+ interactionAccess: z.optional(z.string()),
260
57
  }), z.transform((v) => {
261
58
  return (0, primitives_js_1.remap)(v, {
59
+ customerAccess: "CustomerAccess",
262
60
  interactionAccess: "InteractionAccess",
263
61
  });
264
62
  }));
@@ -266,1138 +64,28 @@ function fetchInteractionSecurityToJSON(fetchInteractionSecurity) {
266
64
  return JSON.stringify(exports.FetchInteractionSecurity$outboundSchema.parse(fetchInteractionSecurity));
267
65
  }
268
66
  /** @internal */
269
- exports.FetchInteractionRequest$outboundSchema = z.object({
270
- instanceId: z.string(),
271
- });
272
- function fetchInteractionRequestToJSON(fetchInteractionRequest) {
273
- return JSON.stringify(exports.FetchInteractionRequest$outboundSchema.parse(fetchInteractionRequest));
274
- }
275
- /** @internal */
276
- exports.JourneyStatus2$inboundSchema = openEnums.inboundSchema(exports.JourneyStatus2);
277
- /** @internal */
278
- exports.Journey2$inboundSchema = z
279
- .object({
280
- status: exports.JourneyStatus2$inboundSchema,
281
- });
282
- function journey2FromJSON(jsonString) {
283
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Journey2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Journey2' from JSON`);
284
- }
285
- /** @internal */
286
- exports.ResponseBody2$inboundSchema = z.object({
287
- instanceId: types.string(),
288
- journey: z.lazy(() => exports.Journey2$inboundSchema),
289
- processing: types.optional(types.boolean()),
290
- });
291
- function responseBody2FromJSON(jsonString) {
292
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody2' from JSON`);
293
- }
294
- /** @internal */
295
- exports.FetchInteractionStatusError$inboundSchema = z.enum(exports.FetchInteractionStatusError);
296
- /** @internal */
297
- exports.FetchInteractionError$inboundSchema = z.object({
298
- status: exports.FetchInteractionStatusError$inboundSchema,
299
- code: types.number(),
300
- message: types.string(),
301
- });
302
- function fetchInteractionErrorFromJSON(jsonString) {
303
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionError' from JSON`);
304
- }
305
- /** @internal */
306
- exports.JourneyStatus1$inboundSchema = openEnums.inboundSchema(exports.JourneyStatus1);
307
- /** @internal */
308
- exports.Journey1$inboundSchema = z
309
- .object({
310
- status: exports.JourneyStatus1$inboundSchema,
311
- });
312
- function journey1FromJSON(jsonString) {
313
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Journey1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Journey1' from JSON`);
314
- }
315
- /** @internal */
316
- exports.ResourceType$inboundSchema = openEnums.inboundSchema(exports.ResourceType);
317
- /** @internal */
318
- exports.Card$inboundSchema = z.object({
319
- id: types.string(),
320
- version: types.optional(types.string()),
321
- config: types.optional(z.any()),
322
- });
323
- function cardFromJSON(jsonString) {
324
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Card$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Card' from JSON`);
325
- }
326
- /** @internal */
327
- exports.Page$inboundSchema = z.object({
328
- id: types.string(),
329
- label: types.optional(types.string()),
330
- cards: z.array(z.lazy(() => exports.Card$inboundSchema)),
331
- });
332
- function pageFromJSON(jsonString) {
333
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Page$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Page' from JSON`);
334
- }
67
+ exports.FetchInteractionScope$outboundSchema = z.enum(exports.FetchInteractionScope);
335
68
  /** @internal */
336
- exports.Data$inboundSchema = z.object({
337
- pages: z.array(z.lazy(() => exports.Page$inboundSchema)),
338
- });
339
- function dataFromJSON(jsonString) {
340
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
341
- }
342
- /** @internal */
343
- exports.Resource$inboundSchema = z
344
- .object({
345
- id: types.string(),
346
- name: types.string(),
347
- hash: types.optional(types.string()),
348
- version: types.optional(types.string()),
349
- type: types.optional(exports.ResourceType$inboundSchema),
350
- data: types.optional(z.lazy(() => exports.Data$inboundSchema)),
351
- });
352
- function resourceFromJSON(jsonString) {
353
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Resource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Resource' from JSON`);
354
- }
355
- /** @internal */
356
- exports.CollectSpec2$inboundSchema = openEnums.inboundSchema(exports.CollectSpec2);
357
- /** @internal */
358
- exports.CollectCombinator$inboundSchema = openEnums.inboundSchema(exports.CollectCombinator);
359
- /** @internal */
360
- exports.CollectInputSpec$inboundSchema = openEnums.inboundSchema(exports.CollectInputSpec);
361
- /** @internal */
362
- exports.CollectInput$inboundSchema = z.object({
363
- ref: types.string(),
364
- spec: exports.CollectInputSpec$inboundSchema,
365
- recommended: types.optional(types.boolean()),
366
- });
367
- function collectInputFromJSON(jsonString) {
368
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CollectInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectInput' from JSON`);
369
- }
370
- /** @internal */
371
- exports.Collect2$inboundSchema = z
372
- .object({
373
- ref: types.string(),
374
- spec: exports.CollectSpec2$inboundSchema,
375
- recommended: types.optional(types.boolean()),
376
- combinator: exports.CollectCombinator$inboundSchema,
377
- inputs: z.array(z.lazy(() => exports.CollectInput$inboundSchema)),
378
- });
379
- function collect2FromJSON(jsonString) {
380
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Collect2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Collect2' from JSON`);
381
- }
382
- /** @internal */
383
- exports.CollectSpec1$inboundSchema = openEnums.inboundSchema(exports.CollectSpec1);
384
- /** @internal */
385
- exports.Collect1$inboundSchema = z
386
- .object({
387
- ref: types.string(),
388
- spec: exports.CollectSpec1$inboundSchema,
389
- recommended: types.optional(types.boolean()),
390
- });
391
- function collect1FromJSON(jsonString) {
392
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Collect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Collect1' from JSON`);
393
- }
394
- /** @internal */
395
- exports.CollectUnion$inboundSchema = (0, smart_union_js_1.smartUnion)([
396
- z.lazy(() => exports.Collect2$inboundSchema),
397
- z.lazy(() => exports.Collect1$inboundSchema),
398
- ]);
399
- function collectUnionFromJSON(jsonString) {
400
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CollectUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectUnion' from JSON`);
401
- }
402
- /** @internal */
403
- exports.ConsumeSpec2$inboundSchema = openEnums.inboundSchema(exports.ConsumeSpec2);
404
- /** @internal */
405
- exports.ConsumeCombinator$inboundSchema = openEnums.inboundSchema(exports.ConsumeCombinator);
406
- /** @internal */
407
- exports.ConsumeInputSpec$inboundSchema = openEnums.inboundSchema(exports.ConsumeInputSpec);
408
- /** @internal */
409
- exports.ConsumeInput$inboundSchema = z.object({
410
- ref: types.string(),
411
- spec: exports.ConsumeInputSpec$inboundSchema,
412
- recommended: types.optional(types.boolean()),
413
- });
414
- function consumeInputFromJSON(jsonString) {
415
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConsumeInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConsumeInput' from JSON`);
416
- }
417
- /** @internal */
418
- exports.Consume2$inboundSchema = z
419
- .object({
420
- ref: types.string(),
421
- spec: exports.ConsumeSpec2$inboundSchema,
422
- recommended: types.optional(types.boolean()),
423
- combinator: exports.ConsumeCombinator$inboundSchema,
424
- inputs: z.array(z.lazy(() => exports.ConsumeInput$inboundSchema)),
425
- });
426
- function consume2FromJSON(jsonString) {
427
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Consume2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Consume2' from JSON`);
428
- }
429
- /** @internal */
430
- exports.ConsumeSpec1$inboundSchema = openEnums.inboundSchema(exports.ConsumeSpec1);
431
- /** @internal */
432
- exports.Consume1$inboundSchema = z
433
- .object({
434
- ref: types.string(),
435
- spec: exports.ConsumeSpec1$inboundSchema,
436
- recommended: types.optional(types.boolean()),
437
- });
438
- function consume1FromJSON(jsonString) {
439
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Consume1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Consume1' from JSON`);
440
- }
441
- /** @internal */
442
- exports.ConsumeUnion$inboundSchema = (0, smart_union_js_1.smartUnion)([
443
- z.lazy(() => exports.Consume2$inboundSchema),
444
- z.lazy(() => exports.Consume1$inboundSchema),
445
- ]);
446
- function consumeUnionFromJSON(jsonString) {
447
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ConsumeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConsumeUnion' from JSON`);
448
- }
449
- /** @internal */
450
- exports.Interaction$inboundSchema = z
451
- .object({
452
- resource: types.optional(z.lazy(() => exports.Resource$inboundSchema)),
453
- collects: z.array((0, smart_union_js_1.smartUnion)([
454
- z.lazy(() => exports.Collect2$inboundSchema),
455
- z.lazy(() => exports.Collect1$inboundSchema),
456
- ])),
457
- consumes: z.array((0, smart_union_js_1.smartUnion)([
458
- z.lazy(() => exports.Consume2$inboundSchema),
459
- z.lazy(() => exports.Consume1$inboundSchema),
460
- ])),
461
- grId: types.string(),
462
- });
463
- function interactionFromJSON(jsonString) {
464
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Interaction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Interaction' from JSON`);
465
- }
466
- /** @internal */
467
- exports.FetchInteractionIdentityAlias$inboundSchema = z.object({
468
- title: types.optional(types.string()),
469
- firstName: types.optional(types.string()),
470
- middleNames: types.optional(z.array(types.string())),
471
- lastNames: types.optional(z.array(types.string())),
472
- lastNamesAtBirth: types.optional(z.array(types.string())),
473
- });
474
- function fetchInteractionIdentityAliasFromJSON(jsonString) {
475
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityAlias' from JSON`);
476
- }
477
- /** @internal */
478
- exports.FetchInteractionIdentityRelationship$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionIdentityRelationship);
479
- /** @internal */
480
- exports.FetchInteractionIdentityRelatedPerson$inboundSchema = z.object({
481
- title: types.optional(types.string()),
482
- firstName: types.optional(types.string()),
483
- middleNames: types.optional(z.array(types.string())),
484
- lastNames: types.optional(z.array(types.string())),
485
- lastNamesAtBirth: types.optional(z.array(types.string())),
486
- relationship: exports.FetchInteractionIdentityRelationship$inboundSchema,
487
- });
488
- function fetchInteractionIdentityRelatedPersonFromJSON(jsonString) {
489
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityRelatedPerson$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityRelatedPerson' from JSON`);
490
- }
491
- /** @internal */
492
- exports.FetchInteractionIdentityCurrentAddressLocation$inboundSchema = z
493
- .object({
494
- latitude: types.optional(types.string()),
495
- longitude: types.optional(types.string()),
496
- geoAccuracy: types.optional(types.string()),
497
- what3words: types.optional(types.string()),
498
- });
499
- function fetchInteractionIdentityCurrentAddressLocationFromJSON(jsonString) {
500
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityCurrentAddressLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityCurrentAddressLocation' from JSON`);
501
- }
502
- /** @internal */
503
- exports.FetchInteractionIdentityCurrentAddress$inboundSchema = z.object({
504
- lines: types.optional(z.array(types.string())),
505
- addressString: types.optional(types.string()),
506
- premise: types.optional(types.string()),
507
- building: types.optional(types.string()),
508
- subBuilding: types.optional(types.string()),
509
- thoroughfare: types.optional(types.string()),
510
- dependentThoroughfare: types.optional(types.string()),
511
- locality: types.optional(types.string()),
512
- dependentLocality: types.optional(types.string()),
513
- doubleDependentLocality: types.optional(types.string()),
514
- postalCode: types.optional(types.string()),
515
- postBox: types.optional(types.string()),
516
- country: types.optional(types.string()),
517
- superAdministrativeArea: types.optional(types.string()),
518
- administrativeArea: types.optional(types.string()),
519
- subAdministrativeArea: types.optional(types.string()),
520
- organization: types.optional(types.string()),
521
- location: types.optional(z.lazy(() => exports.FetchInteractionIdentityCurrentAddressLocation$inboundSchema)),
522
- });
523
- function fetchInteractionIdentityCurrentAddressFromJSON(jsonString) {
524
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityCurrentAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityCurrentAddress' from JSON`);
525
- }
526
- /** @internal */
527
- exports.FetchInteractionIdentityPreviousAddressLocation$inboundSchema = z
528
- .object({
529
- latitude: types.optional(types.string()),
530
- longitude: types.optional(types.string()),
531
- geoAccuracy: types.optional(types.string()),
532
- what3words: types.optional(types.string()),
533
- });
534
- function fetchInteractionIdentityPreviousAddressLocationFromJSON(jsonString) {
535
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityPreviousAddressLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityPreviousAddressLocation' from JSON`);
536
- }
537
- /** @internal */
538
- exports.FetchInteractionIdentityPreviousAddress$inboundSchema = z.object({
539
- lines: types.optional(z.array(types.string())),
540
- addressString: types.optional(types.string()),
541
- premise: types.optional(types.string()),
542
- building: types.optional(types.string()),
543
- subBuilding: types.optional(types.string()),
544
- thoroughfare: types.optional(types.string()),
545
- dependentThoroughfare: types.optional(types.string()),
546
- locality: types.optional(types.string()),
547
- dependentLocality: types.optional(types.string()),
548
- doubleDependentLocality: types.optional(types.string()),
549
- postalCode: types.optional(types.string()),
550
- postBox: types.optional(types.string()),
551
- country: types.optional(types.string()),
552
- superAdministrativeArea: types.optional(types.string()),
553
- administrativeArea: types.optional(types.string()),
554
- subAdministrativeArea: types.optional(types.string()),
555
- organization: types.optional(types.string()),
556
- location: types.optional(z.lazy(() => exports.FetchInteractionIdentityPreviousAddressLocation$inboundSchema)),
557
- fromDate: types.string(),
558
- toDate: types.string(),
559
- });
560
- function fetchInteractionIdentityPreviousAddressFromJSON(jsonString) {
561
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityPreviousAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityPreviousAddress' from JSON`);
562
- }
563
- /** @internal */
564
- exports.FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema = z
565
- .object({
566
- latitude: types.optional(types.string()),
567
- longitude: types.optional(types.string()),
568
- geoAccuracy: types.optional(types.string()),
569
- what3words: types.optional(types.string()),
570
- });
571
- function fetchInteractionIdentityPlaceOfBirthLocationFromJSON(jsonString) {
572
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityPlaceOfBirthLocation' from JSON`);
573
- }
574
- /** @internal */
575
- exports.FetchInteractionIdentityPlaceOfBirth$inboundSchema = z.object({
576
- lines: types.optional(z.array(types.string())),
577
- addressString: types.optional(types.string()),
578
- premise: types.optional(types.string()),
579
- building: types.optional(types.string()),
580
- subBuilding: types.optional(types.string()),
581
- thoroughfare: types.optional(types.string()),
582
- dependentThoroughfare: types.optional(types.string()),
583
- locality: types.optional(types.string()),
584
- dependentLocality: types.optional(types.string()),
585
- doubleDependentLocality: types.optional(types.string()),
586
- postalCode: types.optional(types.string()),
587
- postBox: types.optional(types.string()),
588
- country: types.optional(types.string()),
589
- superAdministrativeArea: types.optional(types.string()),
590
- administrativeArea: types.optional(types.string()),
591
- subAdministrativeArea: types.optional(types.string()),
592
- organization: types.optional(types.string()),
593
- location: types.optional(z.lazy(() => exports.FetchInteractionIdentityPlaceOfBirthLocation$inboundSchema)),
594
- });
595
- function fetchInteractionIdentityPlaceOfBirthFromJSON(jsonString) {
596
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityPlaceOfBirth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityPlaceOfBirth' from JSON`);
597
- }
598
- /** @internal */
599
- exports.FetchInteractionIdentityIdNumber$inboundSchema = z.object({
600
- type: types.string(),
601
- idNumber: types.string(),
602
- country: types.optional(types.string()),
603
- });
604
- function fetchInteractionIdentityIdNumberFromJSON(jsonString) {
605
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityIdNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityIdNumber' from JSON`);
606
- }
607
- /** @internal */
608
- exports.FetchInteractionIdentityPhone$inboundSchema = z.object({
609
- type: types.string(),
610
- number: types.string(),
611
- });
612
- function fetchInteractionIdentityPhoneFromJSON(jsonString) {
613
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityPhone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityPhone' from JSON`);
614
- }
615
- /** @internal */
616
- exports.FetchInteractionIdentityEmail$inboundSchema = z.object({
617
- type: types.string(),
618
- email: types.string(),
619
- });
620
- function fetchInteractionIdentityEmailFromJSON(jsonString) {
621
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentityEmail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentityEmail' from JSON`);
622
- }
623
- /** @internal */
624
- exports.FetchInteractionIdentitySocial$inboundSchema = z.object({
625
- type: types.string(),
626
- identity: types.string(),
627
- });
628
- function fetchInteractionIdentitySocialFromJSON(jsonString) {
629
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentitySocial$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentitySocial' from JSON`);
630
- }
631
- /** @internal */
632
- exports.FetchInteractionIdentity$inboundSchema = z.object({
633
- title: types.optional(types.string()),
634
- firstName: types.optional(types.string()),
635
- middleNames: types.optional(z.array(types.string())),
636
- lastNames: types.optional(z.array(types.string())),
637
- lastNamesAtBirth: types.optional(z.array(types.string())),
638
- aliases: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityAlias$inboundSchema))),
639
- relatedPersons: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityRelatedPerson$inboundSchema))),
640
- dateOfBirth: types.optional(types.string()),
641
- gender: types.optional(types.string()),
642
- currentAddress: types.optional(z.lazy(() => exports.FetchInteractionIdentityCurrentAddress$inboundSchema)),
643
- previousAddresses: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityPreviousAddress$inboundSchema))),
644
- placeOfBirth: types.optional(z.lazy(() => exports.FetchInteractionIdentityPlaceOfBirth$inboundSchema)),
645
- idNumbers: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityIdNumber$inboundSchema))),
646
- phones: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityPhone$inboundSchema))),
647
- emails: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentityEmail$inboundSchema))),
648
- socials: types.optional(z.array(z.lazy(() => exports.FetchInteractionIdentitySocial$inboundSchema))),
649
- mothersMaidenName: types.optional(types.string()),
650
- });
651
- function fetchInteractionIdentityFromJSON(jsonString) {
652
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionIdentity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionIdentity' from JSON`);
653
- }
654
- /** @internal */
655
- exports.FetchInteractionAddress$inboundSchema = z.object({
656
- addressString: types.optional(types.string()),
657
- extractedAddressString: types.optional(types.string()),
658
- addressLine1: types.optional(types.string()),
659
- addressLine2: types.optional(types.string()),
660
- locality: types.optional(types.string()),
661
- administrativeArea: types.optional(types.string()),
662
- postalCode: types.optional(types.string()),
663
- });
664
- function fetchInteractionAddressFromJSON(jsonString) {
665
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAddress' from JSON`);
666
- }
667
- /** @internal */
668
- exports.FetchInteractionDocumentDevice$inboundSchema = z.object({
669
- type: types.optional(types.string()),
670
- model: types.optional(types.string()),
671
- hasContactlessReader: types.optional(types.boolean()),
672
- hasMagneticStripeReader: types.optional(types.boolean()),
673
- hasCamera: types.optional(types.boolean()),
674
- serialNumber: types.optional(types.string()),
675
- manufacturer: types.optional(types.string()),
676
- });
677
- function fetchInteractionDocumentDeviceFromJSON(jsonString) {
678
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentDevice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentDevice' from JSON`);
679
- }
680
- /** @internal */
681
- exports.FetchInteractionName$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionName);
682
- /** @internal */
683
- exports.FetchInteractionLd$inboundSchema = z.catchall(z.object({
684
- name: exports.FetchInteractionName$inboundSchema,
685
- data: types.string(),
686
- }), z.any());
687
- function fetchInteractionLdFromJSON(jsonString) {
688
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionLd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionLd' from JSON`);
689
- }
690
- /** @internal */
691
- exports.FetchInteractionAuthType$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionAuthType);
692
- /** @internal */
693
- exports.FetchInteractionResult$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionResult);
694
- /** @internal */
695
- exports.FetchInteractionChipAuth$inboundSchema = z.catchall(z.object({
696
- type: exports.FetchInteractionAuthType$inboundSchema,
697
- result: exports.FetchInteractionResult$inboundSchema,
698
- }), z.any());
699
- function fetchInteractionChipAuthFromJSON(jsonString) {
700
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionChipAuth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionChipAuth' from JSON`);
701
- }
702
- /** @internal */
703
- exports.FetchInteractionChip$inboundSchema = z.catchall(z.object({
704
- lds: z.array(z.lazy(() => exports.FetchInteractionLd$inboundSchema)),
705
- auth: z.array(z.lazy(() => exports.FetchInteractionChipAuth$inboundSchema)),
69
+ exports.FetchInteractionRequestBody$outboundSchema = z.catchall(z.object({
70
+ instanceId: z.string(),
71
+ scope: z.optional(exports.FetchInteractionScope$outboundSchema),
706
72
  }), z.any());
707
- function fetchInteractionChipFromJSON(jsonString) {
708
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionChip$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionChip' from JSON`);
709
- }
710
- /** @internal */
711
- exports.FetchInteractionSide$inboundSchema = z.object({
712
- side: types.string(),
713
- id: types.string(),
714
- documentQuality: types.string(),
715
- documentQualityScore: types.number(),
716
- });
717
- function fetchInteractionSideFromJSON(jsonString) {
718
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSide$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSide' from JSON`);
73
+ function fetchInteractionRequestBodyToJSON(fetchInteractionRequestBody) {
74
+ return JSON.stringify(exports.FetchInteractionRequestBody$outboundSchema.parse(fetchInteractionRequestBody));
719
75
  }
720
76
  /** @internal */
721
- exports.FetchInteractionClassification$inboundSchema = z.object({
722
- ids: types.optional(z.array(types.string())),
723
- category: types.optional(types.string()),
724
- type: types.optional(types.string()),
725
- subtype: types.optional(types.string()),
726
- isDoubleSided: types.optional(types.boolean()),
727
- hasNFC: types.optional(types.boolean()),
728
- year: types.optional(types.string()),
729
- countryCode: types.optional(types.string()),
730
- countryName: types.optional(types.string()),
731
- stateCode: types.optional(types.string()),
732
- stateName: types.optional(types.string()),
733
- sides: types.optional(z.array(z.lazy(() => exports.FetchInteractionSide$inboundSchema))),
734
- });
735
- function fetchInteractionClassificationFromJSON(jsonString) {
736
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionClassification$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionClassification' from JSON`);
737
- }
738
- /** @internal */
739
- exports.FetchInteractionAggregatedFieldBoundingBox$inboundSchema = z.object({
740
- x: types.number(),
741
- y: types.number(),
742
- width: types.number(),
743
- height: types.number(),
744
- });
745
- function fetchInteractionAggregatedFieldBoundingBoxFromJSON(jsonString) {
746
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedFieldBoundingBox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedFieldBoundingBox' from JSON`);
747
- }
748
- /** @internal */
749
- exports.FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema = z
750
- .object({
751
- boundingBox: types.optional(z.lazy(() => exports.FetchInteractionAggregatedFieldBoundingBox$inboundSchema)),
752
- side: types.string(),
753
- spectrum: types.optional(types.string()),
754
- imageId: types.optional(types.string()),
755
- });
756
- function fetchInteractionAggregatedFieldRegionOfInterestFromJSON(jsonString) {
757
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedFieldRegionOfInterest' from JSON`);
758
- }
759
- /** @internal */
760
- exports.FetchInteractionAggregatedField$inboundSchema = z.object({
761
- label: types.string(),
762
- value: types.string(),
763
- source: types.string(),
764
- isNonLatin: types.boolean(),
765
- regionOfInterest: types.optional(z.lazy(() => exports.FetchInteractionAggregatedFieldRegionOfInterest$inboundSchema)),
766
- });
767
- function fetchInteractionAggregatedFieldFromJSON(jsonString) {
768
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedField' from JSON`);
769
- }
770
- /** @internal */
771
- exports.FetchInteractionDetailBoundingBox$inboundSchema = z.object({
772
- x: types.number(),
773
- y: types.number(),
774
- width: types.number(),
775
- height: types.number(),
776
- });
777
- function fetchInteractionDetailBoundingBoxFromJSON(jsonString) {
778
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDetailBoundingBox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDetailBoundingBox' from JSON`);
779
- }
780
- /** @internal */
781
- exports.FetchInteractionDetailRegionOfInterest$inboundSchema = z.object({
782
- boundingBox: types.optional(z.lazy(() => exports.FetchInteractionDetailBoundingBox$inboundSchema)),
783
- side: types.string(),
784
- spectrum: types.optional(types.string()),
785
- imageId: types.optional(types.string()),
786
- });
787
- function fetchInteractionDetailRegionOfInterestFromJSON(jsonString) {
788
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDetailRegionOfInterest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDetailRegionOfInterest' from JSON`);
789
- }
790
- /** @internal */
791
- exports.FetchInteractionDetail$inboundSchema = z.object({
792
- label: types.string(),
793
- value: types.string(),
794
- source: types.string(),
795
- isNonLatin: types.boolean(),
796
- regionOfInterest: types.optional(z.lazy(() => exports.FetchInteractionDetailRegionOfInterest$inboundSchema)),
797
- });
798
- function fetchInteractionDetailFromJSON(jsonString) {
799
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDetail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDetail' from JSON`);
800
- }
801
- /** @internal */
802
- exports.FetchInteractionExtractedField$inboundSchema = z.object({
803
- label: types.string(),
804
- details: z.array(z.lazy(() => exports.FetchInteractionDetail$inboundSchema)),
805
- });
806
- function fetchInteractionExtractedFieldFromJSON(jsonString) {
807
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionExtractedField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionExtractedField' from JSON`);
808
- }
809
- /** @internal */
810
- exports.FetchInteractionExtractedImage$inboundSchema = z.object({
811
- label: types.string(),
812
- side: types.string(),
813
- imageID: types.string(),
814
- });
815
- function fetchInteractionExtractedImageFromJSON(jsonString) {
816
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionExtractedImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionExtractedImage' from JSON`);
817
- }
818
- /** @internal */
819
- exports.FetchInteractionExtraction$inboundSchema = z.object({
820
- aggregatedFields: types.optional(z.array(z.lazy(() => exports.FetchInteractionAggregatedField$inboundSchema))),
821
- extractedFields: types.optional(z.array(z.lazy(() => exports.FetchInteractionExtractedField$inboundSchema))),
822
- extractedImages: types.optional(z.array(z.lazy(() => exports.FetchInteractionExtractedImage$inboundSchema))),
823
- });
824
- function fetchInteractionExtractionFromJSON(jsonString) {
825
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionExtraction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionExtraction' from JSON`);
826
- }
827
- /** @internal */
828
- exports.FetchInteractionValidationCheckBoundingBox$inboundSchema = z.object({
829
- x: types.number(),
830
- y: types.number(),
831
- width: types.number(),
832
- height: types.number(),
833
- });
834
- function fetchInteractionValidationCheckBoundingBoxFromJSON(jsonString) {
835
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionValidationCheckBoundingBox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionValidationCheckBoundingBox' from JSON`);
836
- }
837
- /** @internal */
838
- exports.FetchInteractionValidationCheckRegionOfInterest$inboundSchema = z
839
- .object({
840
- boundingBox: types.optional(z.lazy(() => exports.FetchInteractionValidationCheckBoundingBox$inboundSchema)),
841
- side: types.string(),
842
- spectrum: types.optional(types.string()),
843
- imageId: types.optional(types.string()),
844
- });
845
- function fetchInteractionValidationCheckRegionOfInterestFromJSON(jsonString) {
846
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionValidationCheckRegionOfInterest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionValidationCheckRegionOfInterest' from JSON`);
847
- }
848
- /** @internal */
849
- exports.FetchInteractionValidationCheck$inboundSchema = z.object({
850
- name: types.string(),
851
- title: types.string(),
852
- info: types.string(),
853
- validationResult: types.string(),
854
- resultInfo: types.string(),
855
- weight: types.string(),
856
- regionOfInterests: types.optional(z.array(z.lazy(() => exports.FetchInteractionValidationCheckRegionOfInterest$inboundSchema))),
857
- type: types.string(),
858
- });
859
- function fetchInteractionValidationCheckFromJSON(jsonString) {
860
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionValidationCheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionValidationCheck' from JSON`);
861
- }
862
- /** @internal */
863
- exports.FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema = z.object({
864
- x: types.number(),
865
- y: types.number(),
866
- width: types.number(),
867
- height: types.number(),
868
- });
869
- function fetchInteractionAggregatedValidationCheckBoundingBoxFromJSON(jsonString) {
870
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedValidationCheckBoundingBox' from JSON`);
871
- }
872
- /** @internal */
873
- exports.FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema = z.object({
874
- boundingBox: types.optional(z.lazy(() => exports.FetchInteractionAggregatedValidationCheckBoundingBox$inboundSchema)),
875
- side: types.string(),
876
- spectrum: types.optional(types.string()),
877
- imageId: types.optional(types.string()),
878
- });
879
- function fetchInteractionAggregatedValidationCheckRegionOfInterestFromJSON(jsonString) {
880
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema
881
- .parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedValidationCheckRegionOfInterest' from JSON`);
882
- }
883
- /** @internal */
884
- exports.FetchInteractionAggregatedValidationCheck$inboundSchema = z.object({
885
- name: types.string(),
886
- title: types.string(),
887
- info: types.string(),
888
- validationResult: types.string(),
889
- resultInfo: types.string(),
890
- weight: types.string(),
891
- regionOfInterests: types.optional(z.array(z.lazy(() => exports.FetchInteractionAggregatedValidationCheckRegionOfInterest$inboundSchema))),
892
- type: types.string(),
893
- });
894
- function fetchInteractionAggregatedValidationCheckFromJSON(jsonString) {
895
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAggregatedValidationCheck$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAggregatedValidationCheck' from JSON`);
896
- }
897
- /** @internal */
898
- exports.FetchInteractionValidation$inboundSchema = z.object({
899
- validationChecks: types.optional(z.array(z.lazy(() => exports.FetchInteractionValidationCheck$inboundSchema))),
900
- aggregatedValidationChecks: types.optional(z.array(z.lazy(() => exports.FetchInteractionAggregatedValidationCheck$inboundSchema))),
901
- });
902
- function fetchInteractionValidationFromJSON(jsonString) {
903
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionValidation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionValidation' from JSON`);
904
- }
905
- /** @internal */
906
- exports.FetchInteractionDocumentAlias$inboundSchema = z.object({
907
- title: types.optional(types.string()),
908
- firstName: types.optional(types.string()),
909
- middleNames: types.optional(z.array(types.string())),
910
- lastNames: types.optional(z.array(types.string())),
911
- lastNamesAtBirth: types.optional(z.array(types.string())),
912
- });
913
- function fetchInteractionDocumentAliasFromJSON(jsonString) {
914
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentAlias$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentAlias' from JSON`);
915
- }
916
- /** @internal */
917
- exports.FetchInteractionDocumentRelationship$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionDocumentRelationship);
918
- /** @internal */
919
- exports.FetchInteractionDocumentRelatedPerson$inboundSchema = z.object({
920
- title: types.optional(types.string()),
921
- firstName: types.optional(types.string()),
922
- middleNames: types.optional(z.array(types.string())),
923
- lastNames: types.optional(z.array(types.string())),
924
- lastNamesAtBirth: types.optional(z.array(types.string())),
925
- relationship: exports.FetchInteractionDocumentRelationship$inboundSchema,
926
- });
927
- function fetchInteractionDocumentRelatedPersonFromJSON(jsonString) {
928
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentRelatedPerson$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentRelatedPerson' from JSON`);
929
- }
930
- /** @internal */
931
- exports.FetchInteractionDocumentCurrentAddressLocation$inboundSchema = z
932
- .object({
933
- latitude: types.optional(types.string()),
934
- longitude: types.optional(types.string()),
935
- geoAccuracy: types.optional(types.string()),
936
- what3words: types.optional(types.string()),
937
- });
938
- function fetchInteractionDocumentCurrentAddressLocationFromJSON(jsonString) {
939
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentCurrentAddressLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentCurrentAddressLocation' from JSON`);
940
- }
941
- /** @internal */
942
- exports.FetchInteractionDocumentCurrentAddress$inboundSchema = z.object({
943
- lines: types.optional(z.array(types.string())),
944
- addressString: types.optional(types.string()),
945
- premise: types.optional(types.string()),
946
- building: types.optional(types.string()),
947
- subBuilding: types.optional(types.string()),
948
- thoroughfare: types.optional(types.string()),
949
- dependentThoroughfare: types.optional(types.string()),
950
- locality: types.optional(types.string()),
951
- dependentLocality: types.optional(types.string()),
952
- doubleDependentLocality: types.optional(types.string()),
953
- postalCode: types.optional(types.string()),
954
- postBox: types.optional(types.string()),
955
- country: types.optional(types.string()),
956
- superAdministrativeArea: types.optional(types.string()),
957
- administrativeArea: types.optional(types.string()),
958
- subAdministrativeArea: types.optional(types.string()),
959
- organization: types.optional(types.string()),
960
- location: types.optional(z.lazy(() => exports.FetchInteractionDocumentCurrentAddressLocation$inboundSchema)),
961
- });
962
- function fetchInteractionDocumentCurrentAddressFromJSON(jsonString) {
963
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentCurrentAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentCurrentAddress' from JSON`);
964
- }
965
- /** @internal */
966
- exports.FetchInteractionDocumentPreviousAddressLocation$inboundSchema = z
967
- .object({
968
- latitude: types.optional(types.string()),
969
- longitude: types.optional(types.string()),
970
- geoAccuracy: types.optional(types.string()),
971
- what3words: types.optional(types.string()),
972
- });
973
- function fetchInteractionDocumentPreviousAddressLocationFromJSON(jsonString) {
974
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentPreviousAddressLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentPreviousAddressLocation' from JSON`);
975
- }
976
- /** @internal */
977
- exports.FetchInteractionDocumentPreviousAddress$inboundSchema = z.object({
978
- lines: types.optional(z.array(types.string())),
979
- addressString: types.optional(types.string()),
980
- premise: types.optional(types.string()),
981
- building: types.optional(types.string()),
982
- subBuilding: types.optional(types.string()),
983
- thoroughfare: types.optional(types.string()),
984
- dependentThoroughfare: types.optional(types.string()),
985
- locality: types.optional(types.string()),
986
- dependentLocality: types.optional(types.string()),
987
- doubleDependentLocality: types.optional(types.string()),
988
- postalCode: types.optional(types.string()),
989
- postBox: types.optional(types.string()),
990
- country: types.optional(types.string()),
991
- superAdministrativeArea: types.optional(types.string()),
992
- administrativeArea: types.optional(types.string()),
993
- subAdministrativeArea: types.optional(types.string()),
994
- organization: types.optional(types.string()),
995
- location: types.optional(z.lazy(() => exports.FetchInteractionDocumentPreviousAddressLocation$inboundSchema)),
996
- fromDate: types.string(),
997
- toDate: types.string(),
998
- });
999
- function fetchInteractionDocumentPreviousAddressFromJSON(jsonString) {
1000
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentPreviousAddress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentPreviousAddress' from JSON`);
1001
- }
1002
- /** @internal */
1003
- exports.FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema = z
1004
- .object({
1005
- latitude: types.optional(types.string()),
1006
- longitude: types.optional(types.string()),
1007
- geoAccuracy: types.optional(types.string()),
1008
- what3words: types.optional(types.string()),
1009
- });
1010
- function fetchInteractionDocumentPlaceOfBirthLocationFromJSON(jsonString) {
1011
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentPlaceOfBirthLocation' from JSON`);
1012
- }
1013
- /** @internal */
1014
- exports.FetchInteractionDocumentPlaceOfBirth$inboundSchema = z.object({
1015
- lines: types.optional(z.array(types.string())),
1016
- addressString: types.optional(types.string()),
1017
- premise: types.optional(types.string()),
1018
- building: types.optional(types.string()),
1019
- subBuilding: types.optional(types.string()),
1020
- thoroughfare: types.optional(types.string()),
1021
- dependentThoroughfare: types.optional(types.string()),
1022
- locality: types.optional(types.string()),
1023
- dependentLocality: types.optional(types.string()),
1024
- doubleDependentLocality: types.optional(types.string()),
1025
- postalCode: types.optional(types.string()),
1026
- postBox: types.optional(types.string()),
1027
- country: types.optional(types.string()),
1028
- superAdministrativeArea: types.optional(types.string()),
1029
- administrativeArea: types.optional(types.string()),
1030
- subAdministrativeArea: types.optional(types.string()),
1031
- organization: types.optional(types.string()),
1032
- location: types.optional(z.lazy(() => exports.FetchInteractionDocumentPlaceOfBirthLocation$inboundSchema)),
1033
- });
1034
- function fetchInteractionDocumentPlaceOfBirthFromJSON(jsonString) {
1035
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentPlaceOfBirth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentPlaceOfBirth' from JSON`);
1036
- }
1037
- /** @internal */
1038
- exports.FetchInteractionDocumentIdNumber$inboundSchema = z.object({
1039
- type: types.string(),
1040
- idNumber: types.string(),
1041
- country: types.optional(types.string()),
1042
- });
1043
- function fetchInteractionDocumentIdNumberFromJSON(jsonString) {
1044
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentIdNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentIdNumber' from JSON`);
1045
- }
1046
- /** @internal */
1047
- exports.FetchInteractionDocumentPhone$inboundSchema = z.object({
1048
- type: types.string(),
1049
- number: types.string(),
1050
- });
1051
- function fetchInteractionDocumentPhoneFromJSON(jsonString) {
1052
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentPhone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentPhone' from JSON`);
1053
- }
1054
- /** @internal */
1055
- exports.FetchInteractionDocumentEmail$inboundSchema = z.object({
1056
- type: types.string(),
1057
- email: types.string(),
1058
- });
1059
- function fetchInteractionDocumentEmailFromJSON(jsonString) {
1060
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentEmail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentEmail' from JSON`);
1061
- }
1062
- /** @internal */
1063
- exports.FetchInteractionDocumentSocial$inboundSchema = z.object({
1064
- type: types.string(),
1065
- identity: types.string(),
1066
- });
1067
- function fetchInteractionDocumentSocialFromJSON(jsonString) {
1068
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentSocial$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentSocial' from JSON`);
1069
- }
1070
- /** @internal */
1071
- exports.FetchInteractionDocumentSubject$inboundSchema = z.object({
1072
- title: types.optional(types.string()),
1073
- firstName: types.optional(types.string()),
1074
- middleNames: types.optional(z.array(types.string())),
1075
- lastNames: types.optional(z.array(types.string())),
1076
- lastNamesAtBirth: types.optional(z.array(types.string())),
1077
- aliases: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentAlias$inboundSchema))),
1078
- relatedPersons: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentRelatedPerson$inboundSchema))),
1079
- dateOfBirth: types.optional(types.string()),
1080
- gender: types.optional(types.string()),
1081
- currentAddress: types.optional(z.lazy(() => exports.FetchInteractionDocumentCurrentAddress$inboundSchema)),
1082
- previousAddresses: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentPreviousAddress$inboundSchema))),
1083
- placeOfBirth: types.optional(z.lazy(() => exports.FetchInteractionDocumentPlaceOfBirth$inboundSchema)),
1084
- idNumbers: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentIdNumber$inboundSchema))),
1085
- phones: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentPhone$inboundSchema))),
1086
- emails: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentEmail$inboundSchema))),
1087
- socials: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocumentSocial$inboundSchema))),
1088
- mothersMaidenName: types.optional(types.string()),
1089
- });
1090
- function fetchInteractionDocumentSubjectFromJSON(jsonString) {
1091
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocumentSubject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocumentSubject' from JSON`);
1092
- }
1093
- /** @internal */
1094
- exports.FetchInteractionDocument$inboundSchema = z.object({
1095
- oneDBarcode: types.optional(types.string()),
1096
- address: types.optional(z.lazy(() => exports.FetchInteractionAddress$inboundSchema)),
1097
- applicationDate: types.optional(types.string()),
1098
- applicationNumber: types.optional(types.string()),
1099
- dateOfBirth: types.optional(types.string()),
1100
- placeOfBirth: types.optional(types.string()),
1101
- placeOfBirthNative: types.optional(types.string()),
1102
- bloodType: types.optional(types.string()),
1103
- controlNumber: types.optional(types.string()),
1104
- countryCode: types.optional(types.string()),
1105
- countryName: types.optional(types.string()),
1106
- documentClassCode: types.optional(types.string()),
1107
- documentClassName: types.optional(types.string()),
1108
- documentNumber: types.optional(types.string()),
1109
- documentSignerCertificate: types.optional(types.string()),
1110
- employer: types.optional(types.string()),
1111
- employerAddress: types.optional(types.string()),
1112
- entries: types.optional(types.string()),
1113
- expirationDate: types.optional(types.string()),
1114
- eyeColor: types.optional(types.string()),
1115
- fathersName: types.optional(types.string()),
1116
- fathersNameNative: types.optional(types.string()),
1117
- fathersSurname: types.optional(types.string()),
1118
- firstName: types.optional(types.string()),
1119
- fullName: types.optional(types.string()),
1120
- fullNameNative: types.optional(types.string()),
1121
- givenName: types.optional(types.string()),
1122
- givenNameNative: types.optional(types.string()),
1123
- hairColor: types.optional(types.string()),
1124
- height: types.optional(types.string()),
1125
- issueDate: types.optional(types.string()),
1126
- issuingAuthority: types.optional(types.string()),
1127
- issuingAuthorityNative: types.optional(types.string()),
1128
- issuingStateCode: types.optional(types.string()),
1129
- issuingStateName: types.optional(types.string()),
1130
- licenseClass: types.optional(types.string()),
1131
- licenseEndorsements: types.optional(types.string()),
1132
- licenseRestrictions: types.optional(types.string()),
1133
- mrz: types.optional(types.string()),
1134
- mrz1: types.optional(types.string()),
1135
- mrz2: types.optional(types.string()),
1136
- mrz3: types.optional(types.string()),
1137
- middleName: types.optional(types.string()),
1138
- mothersName: types.optional(types.string()),
1139
- mothersNameNative: types.optional(types.string()),
1140
- mothersSurname: types.optional(types.string()),
1141
- nameSuffix: types.optional(types.string()),
1142
- nationalityCode: types.optional(types.string()),
1143
- nationalityName: types.optional(types.string()),
1144
- nationalityNameNative: types.optional(types.string()),
1145
- occupation: types.optional(types.string()),
1146
- organDonor: types.optional(types.boolean()),
1147
- passportNumber: types.optional(types.string()),
1148
- permitNumber: types.optional(types.string()),
1149
- personalNumber: types.optional(types.string()),
1150
- photo: types.optional(types.string()),
1151
- photoCompressed: types.optional(types.string()),
1152
- photoEncoding: types.optional(types.string()),
1153
- sex: types.optional(types.string()),
1154
- sexNative: types.optional(types.string()),
1155
- signature: types.optional(types.string()),
1156
- signatureCompressed: types.optional(types.string()),
1157
- signatureEncoding: types.optional(types.string()),
1158
- socialSecurityNumber: types.optional(types.string()),
1159
- startDate: types.optional(types.string()),
1160
- surname: types.optional(types.string()),
1161
- surnameNative: types.optional(types.string()),
1162
- visaClass: types.optional(types.string()),
1163
- visaNumber: types.optional(types.string()),
1164
- weight: types.optional(types.string()),
1165
- cardNumber: types.optional(types.string()),
1166
- issuerCountryCode: types.optional(types.string()),
1167
- id: types.optional(types.string()),
1168
- type: types.optional(types.string()),
1169
- category: types.optional(types.string()),
1170
- subtype: types.optional(types.string()),
1171
- format: types.optional(types.string()),
1172
- device: types.optional(z.lazy(() => exports.FetchInteractionDocumentDevice$inboundSchema)),
1173
- side1Image: types.optional(types.string()),
1174
- side2Image: types.optional(types.string()),
1175
- chip: types.optional(z.lazy(() => exports.FetchInteractionChip$inboundSchema)),
1176
- classification: types.optional(z.lazy(() => exports.FetchInteractionClassification$inboundSchema)),
1177
- extraction: types.optional(z.lazy(() => exports.FetchInteractionExtraction$inboundSchema)),
1178
- validation: types.optional(z.lazy(() => exports.FetchInteractionValidation$inboundSchema)),
1179
- subType: types.optional(types.string()),
1180
- number: types.optional(types.string()),
1181
- expiryDate: types.optional(types.string()),
1182
- subject: types.optional(z.lazy(() => exports.FetchInteractionDocumentSubject$inboundSchema)),
1183
- country: types.optional(types.string()),
1184
- });
1185
- function fetchInteractionDocumentFromJSON(jsonString) {
1186
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionDocument$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionDocument' from JSON`);
1187
- }
1188
- /** @internal */
1189
- exports.FetchInteractionBiometric4$inboundSchema = z.object({
1190
- id: types.optional(types.string()),
1191
- type: types.optional(types.string()),
1192
- selfieImage: types.string(),
1193
- selfieImageEncryption: types.optional(types.boolean()),
1194
- });
1195
- function fetchInteractionBiometric4FromJSON(jsonString) {
1196
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionBiometric4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionBiometric4' from JSON`);
1197
- }
1198
- /** @internal */
1199
- exports.FetchInteractionBiometric3$inboundSchema = z.object({
1200
- id: types.optional(types.string()),
1201
- type: types.optional(types.string()),
1202
- faceImage: types.string(),
1203
- });
1204
- function fetchInteractionBiometric3FromJSON(jsonString) {
1205
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionBiometric3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionBiometric3' from JSON`);
1206
- }
1207
- /** @internal */
1208
- exports.FetchInteractionBiometric2$inboundSchema = z.object({
1209
- id: types.optional(types.string()),
1210
- type: types.optional(types.string()),
1211
- selfieImage: types.string(),
1212
- anchorImage: types.string(),
1213
- });
1214
- function fetchInteractionBiometric2FromJSON(jsonString) {
1215
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionBiometric2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionBiometric2' from JSON`);
1216
- }
1217
- /** @internal */
1218
- exports.FetchInteractionBiometric1$inboundSchema = z.object({
1219
- id: types.optional(types.string()),
1220
- type: types.optional(types.string()),
1221
- face1Image: types.string(),
1222
- face2Image: types.string(),
1223
- });
1224
- function fetchInteractionBiometric1FromJSON(jsonString) {
1225
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionBiometric1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionBiometric1' from JSON`);
1226
- }
1227
- /** @internal */
1228
- exports.FetchInteractionBiometricUnion$inboundSchema = (0, smart_union_js_1.smartUnion)([
1229
- z.lazy(() => exports.FetchInteractionBiometric1$inboundSchema),
1230
- z.lazy(() => exports.FetchInteractionBiometric2$inboundSchema),
1231
- z.lazy(() => exports.FetchInteractionBiometric3$inboundSchema),
1232
- z.lazy(() => exports.FetchInteractionBiometric4$inboundSchema),
1233
- ]);
1234
- function fetchInteractionBiometricUnionFromJSON(jsonString) {
1235
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionBiometricUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionBiometricUnion' from JSON`);
1236
- }
1237
- /** @internal */
1238
- exports.FetchInteractionUser$inboundSchema = z.object({
1239
- id: types.string(),
1240
- email: types.string(),
1241
- domain: types.string(),
1242
- });
1243
- function fetchInteractionUserFromJSON(jsonString) {
1244
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionUser' from JSON`);
1245
- }
1246
- /** @internal */
1247
- exports.FetchInteractionClient$inboundSchema = z.object({
1248
- id: types.string(),
1249
- ip: types.string(),
1250
- address: types.string(),
1251
- });
1252
- function fetchInteractionClientFromJSON(jsonString) {
1253
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionClient$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionClient' from JSON`);
1254
- }
1255
- /** @internal */
1256
- exports.FetchInteractionModel$inboundSchema = z.object({
1257
- identifier: types.string(),
1258
- name: types.string(),
1259
- });
1260
- function fetchInteractionModelFromJSON(jsonString) {
1261
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionModel' from JSON`);
1262
- }
1263
- /** @internal */
1264
- exports.FetchInteractionSessionDevice$inboundSchema = z.object({
1265
- id: types.string(),
1266
- manufacturer: types.string(),
1267
- model: z.lazy(() => exports.FetchInteractionModel$inboundSchema),
1268
- });
1269
- function fetchInteractionSessionDeviceFromJSON(jsonString) {
1270
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSessionDevice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSessionDevice' from JSON`);
1271
- }
1272
- /** @internal */
1273
- exports.FetchInteractionTrace$inboundSchema = z.object({
1274
- id: types.string(),
1275
- });
1276
- function fetchInteractionTraceFromJSON(jsonString) {
1277
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionTrace$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionTrace' from JSON`);
1278
- }
1279
- /** @internal */
1280
- exports.FetchInteractionSpan$inboundSchema = z.object({
1281
- id: types.string(),
1282
- });
1283
- function fetchInteractionSpanFromJSON(jsonString) {
1284
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSpan$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSpan' from JSON`);
1285
- }
1286
- /** @internal */
1287
- exports.FetchInteractionTransaction$inboundSchema = z.object({
1288
- id: types.string(),
1289
- });
1290
- function fetchInteractionTransactionFromJSON(jsonString) {
1291
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionTransaction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionTransaction' from JSON`);
1292
- }
1293
- /** @internal */
1294
- exports.FetchInteractionSessionAuth$inboundSchema = z.object({
1295
- id: types.string(),
1296
- scope: types.optional(types.string()),
1297
- codeVerifier: types.optional(types.string()),
1298
- code: types.optional(types.string()),
1299
- state: types.optional(types.string()),
1300
- redirectUri: types.optional(types.string()),
1301
- responseType: types.optional(types.string()),
1302
- clientId: types.optional(types.string()),
1303
- clientSecret: types.optional(types.string()),
1304
- });
1305
- function fetchInteractionSessionAuthFromJSON(jsonString) {
1306
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSessionAuth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSessionAuth' from JSON`);
1307
- }
1308
- /** @internal */
1309
- exports.FetchInteractionSession$inboundSchema = z.object({
1310
- user: types.optional(z.lazy(() => exports.FetchInteractionUser$inboundSchema)),
1311
- client: types.optional(z.lazy(() => exports.FetchInteractionClient$inboundSchema)),
1312
- device: types.optional(z.lazy(() => exports.FetchInteractionSessionDevice$inboundSchema)),
1313
- trace: types.optional(z.lazy(() => exports.FetchInteractionTrace$inboundSchema)),
1314
- span: types.optional(z.lazy(() => exports.FetchInteractionSpan$inboundSchema)),
1315
- transaction: types.optional(z.lazy(() => exports.FetchInteractionTransaction$inboundSchema)),
1316
- auth: types.optional(z.array(z.lazy(() => exports.FetchInteractionSessionAuth$inboundSchema))),
1317
- });
1318
- function fetchInteractionSessionFromJSON(jsonString) {
1319
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSession$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSession' from JSON`);
1320
- }
1321
- /** @internal */
1322
- exports.FetchInteractionConsentType$inboundSchema = openEnums.inboundSchema(exports.FetchInteractionConsentType);
1323
- /** @internal */
1324
- exports.FetchInteractionConsent$inboundSchema = z.object({
1325
- type: types.optional(exports.FetchInteractionConsentType$inboundSchema),
1326
- id: types.optional(types.string()),
1327
- version: types.optional(types.string()),
1328
- url: types.string(),
1329
- effectiveDate: types.optional(types.string()),
1330
- expiryDate: types.optional(types.string()),
1331
- terms: types.optional(types.string()),
1332
- purpose: types.optional(types.string()),
1333
- legalBasis: types.optional(types.string()),
1334
- jurisdiction: types.optional(types.string()),
1335
- subject: types.optional(types.string()),
1336
- signatory: types.optional(types.string()),
1337
- });
1338
- function fetchInteractionConsentFromJSON(jsonString) {
1339
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionConsent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionConsent' from JSON`);
1340
- }
1341
- /** @internal */
1342
- exports.FetchInteractionAccount$inboundSchema = z.object({
1343
- type: types.string(),
1344
- accountNumber: types.string(),
1345
- sortCode: types.optional(types.string()),
1346
- routingNumber: types.optional(types.string()),
1347
- iban: types.optional(types.string()),
1348
- bic: types.optional(types.string()),
1349
- accountHolderName: types.optional(types.string()),
1350
- bankName: types.optional(types.string()),
1351
- country: types.optional(types.string()),
1352
- accountType: types.optional(types.string()),
1353
- });
1354
- function fetchInteractionAccountFromJSON(jsonString) {
1355
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionAccount' from JSON`);
1356
- }
1357
- /** @internal */
1358
- exports.FetchInteractionSubject$inboundSchema = z.object({
1359
- identity: types.optional(z.lazy(() => exports.FetchInteractionIdentity$inboundSchema)),
1360
- documents: types.optional(z.array(z.lazy(() => exports.FetchInteractionDocument$inboundSchema))),
1361
- biometrics: types.optional(z.array((0, smart_union_js_1.smartUnion)([
1362
- z.lazy(() => exports.FetchInteractionBiometric1$inboundSchema),
1363
- z.lazy(() => exports.FetchInteractionBiometric2$inboundSchema),
1364
- z.lazy(() => exports.FetchInteractionBiometric3$inboundSchema),
1365
- z.lazy(() => exports.FetchInteractionBiometric4$inboundSchema),
1366
- ]))),
1367
- sessions: types.optional(z.array(z.lazy(() => exports.FetchInteractionSession$inboundSchema))),
1368
- consent: types.optional(z.array(z.lazy(() => exports.FetchInteractionConsent$inboundSchema))),
1369
- accounts: types.optional(z.array(z.lazy(() => exports.FetchInteractionAccount$inboundSchema))),
1370
- uid: types.optional(types.string()),
1371
- });
1372
- function fetchInteractionSubjectFromJSON(jsonString) {
1373
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionSubject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionSubject' from JSON`);
1374
- }
1375
- /** @internal */
1376
- exports.FetchInteractionContext$inboundSchema = z.object({
1377
- subject: types.optional(z.lazy(() => exports.FetchInteractionSubject$inboundSchema)),
77
+ exports.FetchInteractionRequest$outboundSchema = z.object({
78
+ view: z.optional(z.string()),
79
+ body: z.optional(z.lazy(() => exports.FetchInteractionRequestBody$outboundSchema)),
1378
80
  });
1379
- function fetchInteractionContextFromJSON(jsonString) {
1380
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionContext$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionContext' from JSON`);
81
+ function fetchInteractionRequestToJSON(fetchInteractionRequest) {
82
+ return JSON.stringify(exports.FetchInteractionRequest$outboundSchema.parse(fetchInteractionRequest));
1381
83
  }
1382
84
  /** @internal */
1383
- exports.ResponseBody1$inboundSchema = z.object({
1384
- instanceId: types.string(),
1385
- interactionId: types.string(),
1386
- journey: z.lazy(() => exports.Journey1$inboundSchema),
1387
- interaction: z.lazy(() => exports.Interaction$inboundSchema),
1388
- context: types.optional(z.lazy(() => exports.FetchInteractionContext$inboundSchema)),
1389
- instructions: types.optional(z.array(types.string())),
1390
- outstanding: types.optional(z.array(types.string())),
85
+ exports.FetchInteractionResponse$inboundSchema = (0, discriminated_union_js_1.discriminatedUnion)("view", {
86
+ full: models.InteractionFetchResponse$inboundSchema,
87
+ slim: models.SlimInteractionFetchResponse$inboundSchema,
1391
88
  });
1392
- function responseBody1FromJSON(jsonString) {
1393
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody1' from JSON`);
1394
- }
1395
- /** @internal */
1396
- exports.FetchInteractionResponse$inboundSchema = (0, smart_union_js_1.smartUnion)([
1397
- z.lazy(() => exports.ResponseBody1$inboundSchema),
1398
- z.lazy(() => exports.FetchInteractionError$inboundSchema),
1399
- z.lazy(() => exports.ResponseBody2$inboundSchema),
1400
- ]);
1401
89
  function fetchInteractionResponseFromJSON(jsonString) {
1402
90
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FetchInteractionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FetchInteractionResponse' from JSON`);
1403
91
  }