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