@gbg/go-core 0.0.1-alpha.16

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