{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"SDK Reference","type":"markdown"},"seo":{"title":"ClientResponseOptionType","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"clientresponseoptiontype","__idx":0},"children":["ClientResponseOptionType"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Standard response option identifiers for ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/react-native-ts-identity-orchestration/functions#submitclientresponse"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["submitClientResponse()"]}]},". These determine which branch the journey takes after a client-facing step."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"members","__idx":1},"children":["Members"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Member"},"children":["Member"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientInput"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"clientInput\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Typical reply to a step with a main or single output path"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancel"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"cancel\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Selects the cancel branch in steps that support it"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fail"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"fail\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Selects the failure branch in steps that support it"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Apart from these standard types, some journey steps support alternate (custom) branches. The ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Branch ID"]}," is configured by the journey author and should be used directly as the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientResponseOptionId"]}," parameter."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"usage","__idx":2},"children":["Usage"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"import RNTSIdentityOrchestration, { TSIDOModule } from 'react-native-ts-identity-orchestration';\n\n// Standard response\nRNTSIdentityOrchestration.submitClientResponse(TSIDOModule.ClientResponseOptionType.clientInput, data);\n\n// Cancel the current step\nRNTSIdentityOrchestration.submitClientResponse(TSIDOModule.ClientResponseOptionType.cancel);\n\n// Custom branch (configured by journey author)\nRNTSIdentityOrchestration.submitClientResponse('passkey', {\n    webauthn_encoded_result: encodedResult\n});\n","lang":"javascript"},"children":[]}]},"headings":[{"value":"ClientResponseOptionType","id":"clientresponseoptiontype","depth":1},{"value":"Members","id":"members","depth":2},{"value":"Usage","id":"usage","depth":2}],"frontmatter":{"title":"ClientResponseOptionType","seo":{"title":"ClientResponseOptionType"}},"lastModified":"2026-07-01T08:33:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/sdk-ref/react-native-ts-identity-orchestration/enums/clientresponseoptiontype","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}