@bifold/core 1.0.0
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/bin/bifold +5 -0
- package/lib/commonjs/App.js +69 -0
- package/lib/commonjs/App.js.map +1 -0
- package/lib/commonjs/animated-components.js +26 -0
- package/lib/commonjs/animated-components.js.map +1 -0
- package/lib/commonjs/assets/fonts/MaterialIcons.ttf +0 -0
- package/lib/commonjs/assets/icons/large-arrow.svg +5 -0
- package/lib/commonjs/assets/icons/pencil.svg +15 -0
- package/lib/commonjs/assets/icons/trash.svg +31 -0
- package/lib/commonjs/assets/img/Artwork_1024x1024.png +0 -0
- package/lib/commonjs/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/lib/commonjs/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/lib/commonjs/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/lib/commonjs/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/lib/commonjs/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/lib/commonjs/assets/img/IconChevronRight.svg +5 -0
- package/lib/commonjs/assets/img/activity-indicator-circle.svg +90 -0
- package/lib/commonjs/assets/img/app-lockout.svg +1 -0
- package/lib/commonjs/assets/img/biometrics.svg +74 -0
- package/lib/commonjs/assets/img/chat-loading.svg +1 -0
- package/lib/commonjs/assets/img/check-in-circle.svg +18 -0
- package/lib/commonjs/assets/img/connection-pending.svg +112 -0
- package/lib/commonjs/assets/img/contact-book.svg +21 -0
- package/lib/commonjs/assets/img/credential-card.svg +18 -0
- package/lib/commonjs/assets/img/credential-declined.svg +28 -0
- package/lib/commonjs/assets/img/credential-in-hand.svg +48 -0
- package/lib/commonjs/assets/img/credential-list.svg +60 -0
- package/lib/commonjs/assets/img/credential-pending.svg +96 -0
- package/lib/commonjs/assets/img/credential-success.svg +48 -0
- package/lib/commonjs/assets/img/delete-notification.svg +1 -0
- package/lib/commonjs/assets/img/empty-wallet.svg +23 -0
- package/lib/commonjs/assets/img/error-filled.svg +12 -0
- package/lib/commonjs/assets/img/exclamation-mark.svg +17 -0
- package/lib/commonjs/assets/img/home-center-img.svg +71 -0
- package/lib/commonjs/assets/img/icon-credential-offer-dark.svg +7 -0
- package/lib/commonjs/assets/img/icon-credential-offer-light.svg +7 -0
- package/lib/commonjs/assets/img/icon-info-recieved-dark.svg +8 -0
- package/lib/commonjs/assets/img/icon-info-recieved-light.svg +8 -0
- package/lib/commonjs/assets/img/icon-info-sent-dark.svg +8 -0
- package/lib/commonjs/assets/img/icon-info-sent-light.svg +8 -0
- package/lib/commonjs/assets/img/icon-proof-request-dark.svg +11 -0
- package/lib/commonjs/assets/img/icon-proof-request-light.svg +11 -0
- package/lib/commonjs/assets/img/information-received.svg +1 -0
- package/lib/commonjs/assets/img/logo-large.png +0 -0
- package/lib/commonjs/assets/img/logo-large@2x.png +0 -0
- package/lib/commonjs/assets/img/logo-large@3x.png +0 -0
- package/lib/commonjs/assets/img/logo.svg +15 -0
- package/lib/commonjs/assets/img/message-text-icon-outline.svg +1 -0
- package/lib/commonjs/assets/img/message-text-icon.svg +1 -0
- package/lib/commonjs/assets/img/no_information_shared.svg +36 -0
- package/lib/commonjs/assets/img/preface.svg +15 -0
- package/lib/commonjs/assets/img/proof-declined.svg +66 -0
- package/lib/commonjs/assets/img/proof-pending.svg +61 -0
- package/lib/commonjs/assets/img/proof-success.svg +72 -0
- package/lib/commonjs/assets/img/push-notifications.svg +1 -0
- package/lib/commonjs/assets/img/qrcode-scan-icon.svg +1 -0
- package/lib/commonjs/assets/img/scan-share.svg +102 -0
- package/lib/commonjs/assets/img/secure-check.svg +4 -0
- package/lib/commonjs/assets/img/secure-image.svg +64 -0
- package/lib/commonjs/assets/img/update-available.svg +26 -0
- package/lib/commonjs/assets/img/verifier-request-declined.svg +34 -0
- package/lib/commonjs/assets/img/wallet-back.svg +20 -0
- package/lib/commonjs/assets/img/wallet-front.svg +32 -0
- package/lib/commonjs/assets/img/wallet-icon-outline.svg +1 -0
- package/lib/commonjs/assets/img/wallet-icon.svg +1 -0
- package/lib/commonjs/assets/img/wallet.svg +43 -0
- package/lib/commonjs/assets/oca-bundles.json +174 -0
- package/lib/commonjs/components/animated/ButtonLoading.js +46 -0
- package/lib/commonjs/components/animated/ButtonLoading.js.map +1 -0
- package/lib/commonjs/components/animated/ConnectionLoading.js +63 -0
- package/lib/commonjs/components/animated/ConnectionLoading.js.map +1 -0
- package/lib/commonjs/components/animated/CredentialAdded.js +88 -0
- package/lib/commonjs/components/animated/CredentialAdded.js.map +1 -0
- package/lib/commonjs/components/animated/CredentialPending.js +76 -0
- package/lib/commonjs/components/animated/CredentialPending.js.map +1 -0
- package/lib/commonjs/components/animated/LoadingIndicator.js +64 -0
- package/lib/commonjs/components/animated/LoadingIndicator.js.map +1 -0
- package/lib/commonjs/components/animated/PresentationLoading.js +62 -0
- package/lib/commonjs/components/animated/PresentationLoading.js.map +1 -0
- package/lib/commonjs/components/animated/RecordLoading.js +107 -0
- package/lib/commonjs/components/animated/RecordLoading.js.map +1 -0
- package/lib/commonjs/components/animated/SendingProof.js +63 -0
- package/lib/commonjs/components/animated/SendingProof.js.map +1 -0
- package/lib/commonjs/components/animated/SentProof.js +83 -0
- package/lib/commonjs/components/animated/SentProof.js.map +1 -0
- package/lib/commonjs/components/buttons/Button-api.js +40 -0
- package/lib/commonjs/components/buttons/Button-api.js.map +1 -0
- package/lib/commonjs/components/buttons/Button.js +103 -0
- package/lib/commonjs/components/buttons/Button.js.map +1 -0
- package/lib/commonjs/components/buttons/HeaderHome.js +35 -0
- package/lib/commonjs/components/buttons/HeaderHome.js.map +1 -0
- package/lib/commonjs/components/buttons/IconButton.js +75 -0
- package/lib/commonjs/components/buttons/IconButton.js.map +1 -0
- package/lib/commonjs/components/buttons/InfoIcon.js +37 -0
- package/lib/commonjs/components/buttons/InfoIcon.js.map +1 -0
- package/lib/commonjs/components/buttons/SettingsMenu.js +32 -0
- package/lib/commonjs/components/buttons/SettingsMenu.js.map +1 -0
- package/lib/commonjs/components/buttons/ToggleButton.js +86 -0
- package/lib/commonjs/components/buttons/ToggleButton.js.map +1 -0
- package/lib/commonjs/components/buttons/index.js +13 -0
- package/lib/commonjs/components/buttons/index.js.map +1 -0
- package/lib/commonjs/components/chat/ActionSlider.js +109 -0
- package/lib/commonjs/components/chat/ActionSlider.js.map +1 -0
- package/lib/commonjs/components/chat/ChatActions.js +29 -0
- package/lib/commonjs/components/chat/ChatActions.js.map +1 -0
- package/lib/commonjs/components/chat/ChatBubble.js +32 -0
- package/lib/commonjs/components/chat/ChatBubble.js.map +1 -0
- package/lib/commonjs/components/chat/ChatEvent.js +35 -0
- package/lib/commonjs/components/chat/ChatEvent.js.map +1 -0
- package/lib/commonjs/components/chat/ChatMessage.js +159 -0
- package/lib/commonjs/components/chat/ChatMessage.js.map +1 -0
- package/lib/commonjs/components/chat/MessageInput.js +52 -0
- package/lib/commonjs/components/chat/MessageInput.js.map +1 -0
- package/lib/commonjs/components/chat/index.js +32 -0
- package/lib/commonjs/components/chat/index.js.map +1 -0
- package/lib/commonjs/components/index.js +13 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/inputs/BulletPoint.js +47 -0
- package/lib/commonjs/components/inputs/BulletPoint.js.map +1 -0
- package/lib/commonjs/components/inputs/CheckBoxRow.js +66 -0
- package/lib/commonjs/components/inputs/CheckBoxRow.js.map +1 -0
- package/lib/commonjs/components/inputs/InlineErrorText.js +60 -0
- package/lib/commonjs/components/inputs/InlineErrorText.js.map +1 -0
- package/lib/commonjs/components/inputs/LimitedTextInput.js +70 -0
- package/lib/commonjs/components/inputs/LimitedTextInput.js.map +1 -0
- package/lib/commonjs/components/inputs/PINInput.js +137 -0
- package/lib/commonjs/components/inputs/PINInput.js.map +1 -0
- package/lib/commonjs/components/inputs/SingleSelectBlock.js +58 -0
- package/lib/commonjs/components/inputs/SingleSelectBlock.js.map +1 -0
- package/lib/commonjs/components/listItems/ContactCredentialListItem.js +79 -0
- package/lib/commonjs/components/listItems/ContactCredentialListItem.js.map +1 -0
- package/lib/commonjs/components/listItems/ContactListItem.js +125 -0
- package/lib/commonjs/components/listItems/ContactListItem.js.map +1 -0
- package/lib/commonjs/components/listItems/NotificationListItem.js +471 -0
- package/lib/commonjs/components/listItems/NotificationListItem.js.map +1 -0
- package/lib/commonjs/components/misc/ActivityLogLink.js +44 -0
- package/lib/commonjs/components/misc/ActivityLogLink.js.map +1 -0
- package/lib/commonjs/components/misc/AvatarView.js +39 -0
- package/lib/commonjs/components/misc/AvatarView.js.map +1 -0
- package/lib/commonjs/components/misc/CardWatermark.js +56 -0
- package/lib/commonjs/components/misc/CardWatermark.js.map +1 -0
- package/lib/commonjs/components/misc/ConnectionAlert.js +117 -0
- package/lib/commonjs/components/misc/ConnectionAlert.js.map +1 -0
- package/lib/commonjs/components/misc/ConnectionImage.js +49 -0
- package/lib/commonjs/components/misc/ConnectionImage.js.map +1 -0
- package/lib/commonjs/components/misc/ContentGradient.js +56 -0
- package/lib/commonjs/components/misc/ContentGradient.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard.js +133 -0
- package/lib/commonjs/components/misc/CredentialCard.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard10.js +271 -0
- package/lib/commonjs/components/misc/CredentialCard10.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard11.js +569 -0
- package/lib/commonjs/components/misc/CredentialCard11.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js +59 -0
- package/lib/commonjs/components/misc/CredentialCard11ActionFooter.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard11Issuer.js +62 -0
- package/lib/commonjs/components/misc/CredentialCard11Issuer.js.map +1 -0
- package/lib/commonjs/components/misc/CredentialCard11Logo.js +56 -0
- package/lib/commonjs/components/misc/CredentialCard11Logo.js.map +1 -0
- package/lib/commonjs/components/misc/EmptyList.js +42 -0
- package/lib/commonjs/components/misc/EmptyList.js.map +1 -0
- package/lib/commonjs/components/misc/EmptyListContacts.js +72 -0
- package/lib/commonjs/components/misc/EmptyListContacts.js.map +1 -0
- package/lib/commonjs/components/misc/InfoBox.js +265 -0
- package/lib/commonjs/components/misc/InfoBox.js.map +1 -0
- package/lib/commonjs/components/misc/NoNewUpdates.js +44 -0
- package/lib/commonjs/components/misc/NoNewUpdates.js.map +1 -0
- package/lib/commonjs/components/misc/PINCreateHeader.js +31 -0
- package/lib/commonjs/components/misc/PINCreateHeader.js.map +1 -0
- package/lib/commonjs/components/misc/Pagination.js +86 -0
- package/lib/commonjs/components/misc/Pagination.js.map +1 -0
- package/lib/commonjs/components/misc/QRRenderer.js +63 -0
- package/lib/commonjs/components/misc/QRRenderer.js.map +1 -0
- package/lib/commonjs/components/misc/QRScanner.js +405 -0
- package/lib/commonjs/components/misc/QRScanner.js.map +1 -0
- package/lib/commonjs/components/misc/QRScannerTorch.js +80 -0
- package/lib/commonjs/components/misc/QRScannerTorch.js.map +1 -0
- package/lib/commonjs/components/misc/ScanCamera.js +86 -0
- package/lib/commonjs/components/misc/ScanCamera.js.map +1 -0
- package/lib/commonjs/components/misc/ScanTab.js +53 -0
- package/lib/commonjs/components/misc/ScanTab.js.map +1 -0
- package/lib/commonjs/components/misc/SharedProofData.js +94 -0
- package/lib/commonjs/components/misc/SharedProofData.js.map +1 -0
- package/lib/commonjs/components/misc/UnorderedList.js +41 -0
- package/lib/commonjs/components/misc/UnorderedList.js.map +1 -0
- package/lib/commonjs/components/misc/VerifierCredentialCard.js +341 -0
- package/lib/commonjs/components/misc/VerifierCredentialCard.js.map +1 -0
- package/lib/commonjs/components/misc/index.js +14 -0
- package/lib/commonjs/components/misc/index.js.map +1 -0
- package/lib/commonjs/components/modals/AlertModal.js +44 -0
- package/lib/commonjs/components/modals/AlertModal.js.map +1 -0
- package/lib/commonjs/components/modals/AppGuideModal.js +137 -0
- package/lib/commonjs/components/modals/AppGuideModal.js.map +1 -0
- package/lib/commonjs/components/modals/CameraDisclosureModal.js +130 -0
- package/lib/commonjs/components/modals/CameraDisclosureModal.js.map +1 -0
- package/lib/commonjs/components/modals/CommonRemoveModal.js +372 -0
- package/lib/commonjs/components/modals/CommonRemoveModal.js.map +1 -0
- package/lib/commonjs/components/modals/DismissiblePopupModal.js +171 -0
- package/lib/commonjs/components/modals/DismissiblePopupModal.js.map +1 -0
- package/lib/commonjs/components/modals/ErrorModal.js +106 -0
- package/lib/commonjs/components/modals/ErrorModal.js.map +1 -0
- package/lib/commonjs/components/modals/ImageModal.js +91 -0
- package/lib/commonjs/components/modals/ImageModal.js.map +1 -0
- package/lib/commonjs/components/modals/NetInfoModal.js +31 -0
- package/lib/commonjs/components/modals/NetInfoModal.js.map +1 -0
- package/lib/commonjs/components/modals/NotificationModal.js +121 -0
- package/lib/commonjs/components/modals/NotificationModal.js.map +1 -0
- package/lib/commonjs/components/modals/PopupModal.js +49 -0
- package/lib/commonjs/components/modals/PopupModal.js.map +1 -0
- package/lib/commonjs/components/modals/ProofCancelModal.js +91 -0
- package/lib/commonjs/components/modals/ProofCancelModal.js.map +1 -0
- package/lib/commonjs/components/modals/SafeAreaModal.js +18 -0
- package/lib/commonjs/components/modals/SafeAreaModal.js.map +1 -0
- package/lib/commonjs/components/network/NetInfo.js +43 -0
- package/lib/commonjs/components/network/NetInfo.js.map +1 -0
- package/lib/commonjs/components/record/Record.js +93 -0
- package/lib/commonjs/components/record/Record.js.map +1 -0
- package/lib/commonjs/components/record/RecordBinaryField.js +60 -0
- package/lib/commonjs/components/record/RecordBinaryField.js.map +1 -0
- package/lib/commonjs/components/record/RecordDateIntField.js +67 -0
- package/lib/commonjs/components/record/RecordDateIntField.js.map +1 -0
- package/lib/commonjs/components/record/RecordField.js +142 -0
- package/lib/commonjs/components/record/RecordField.js.map +1 -0
- package/lib/commonjs/components/record/RecordFooter.js +28 -0
- package/lib/commonjs/components/record/RecordFooter.js.map +1 -0
- package/lib/commonjs/components/record/RecordHeader.js +27 -0
- package/lib/commonjs/components/record/RecordHeader.js.map +1 -0
- package/lib/commonjs/components/record/RecordRemove.js +71 -0
- package/lib/commonjs/components/record/RecordRemove.js.map +1 -0
- package/lib/commonjs/components/texts/HeaderTitle.js +27 -0
- package/lib/commonjs/components/texts/HeaderTitle.js.map +1 -0
- package/lib/commonjs/components/texts/HighlightTextBox.js +50 -0
- package/lib/commonjs/components/texts/HighlightTextBox.js.map +1 -0
- package/lib/commonjs/components/texts/InfoTextBox.js +117 -0
- package/lib/commonjs/components/texts/InfoTextBox.js.map +1 -0
- package/lib/commonjs/components/texts/Label.js +57 -0
- package/lib/commonjs/components/texts/Label.js.map +1 -0
- package/lib/commonjs/components/texts/Link.js +41 -0
- package/lib/commonjs/components/texts/Link.js.map +1 -0
- package/lib/commonjs/components/texts/Text.js +28 -0
- package/lib/commonjs/components/texts/Text.js.map +1 -0
- package/lib/commonjs/components/texts/ThemedText.js +35 -0
- package/lib/commonjs/components/texts/ThemedText.js.map +1 -0
- package/lib/commonjs/components/texts/Title.js +29 -0
- package/lib/commonjs/components/texts/Title.js.map +1 -0
- package/lib/commonjs/components/toast/BaseToast.js +143 -0
- package/lib/commonjs/components/toast/BaseToast.js.map +1 -0
- package/lib/commonjs/components/toast/ToastConfig.js +38 -0
- package/lib/commonjs/components/toast/ToastConfig.js.map +1 -0
- package/lib/commonjs/components/tour/AttachTourStep.js +66 -0
- package/lib/commonjs/components/tour/AttachTourStep.js.map +1 -0
- package/lib/commonjs/components/tour/CredentialOfferTourSteps.js +49 -0
- package/lib/commonjs/components/tour/CredentialOfferTourSteps.js.map +1 -0
- package/lib/commonjs/components/tour/CredentialsTourSteps.js +49 -0
- package/lib/commonjs/components/tour/CredentialsTourSteps.js.map +1 -0
- package/lib/commonjs/components/tour/HomeTourSteps.js +120 -0
- package/lib/commonjs/components/tour/HomeTourSteps.js.map +1 -0
- package/lib/commonjs/components/tour/ProofRequestTourSteps.js +49 -0
- package/lib/commonjs/components/tour/ProofRequestTourSteps.js.map +1 -0
- package/lib/commonjs/components/tour/SpotCutout.js +73 -0
- package/lib/commonjs/components/tour/SpotCutout.js.map +1 -0
- package/lib/commonjs/components/tour/TourBox.js +208 -0
- package/lib/commonjs/components/tour/TourBox.js.map +1 -0
- package/lib/commonjs/components/tour/TourOverlay.js +147 -0
- package/lib/commonjs/components/tour/TourOverlay.js.map +1 -0
- package/lib/commonjs/components/views/CredentialCardLogo.js +72 -0
- package/lib/commonjs/components/views/CredentialCardLogo.js.map +1 -0
- package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js +86 -0
- package/lib/commonjs/components/views/CredentialDetailPrimaryHeader.js.map +1 -0
- package/lib/commonjs/components/views/CredentialDetailSecondaryHeader.js +46 -0
- package/lib/commonjs/components/views/CredentialDetailSecondaryHeader.js.map +1 -0
- package/lib/commonjs/components/views/HomeFooterView.js +102 -0
- package/lib/commonjs/components/views/HomeFooterView.js.map +1 -0
- package/lib/commonjs/components/views/HomeHeaderView.js +16 -0
- package/lib/commonjs/components/views/HomeHeaderView.js.map +1 -0
- package/lib/commonjs/components/views/KeyboardView.js +40 -0
- package/lib/commonjs/components/views/KeyboardView.js.map +1 -0
- package/lib/commonjs/components/views/LoadingPlaceholder.js +162 -0
- package/lib/commonjs/components/views/LoadingPlaceholder.js.map +1 -0
- package/lib/commonjs/components/views/LoadingView.js +37 -0
- package/lib/commonjs/components/views/LoadingView.js.map +1 -0
- package/lib/commonjs/components/views/ModularView.js +41 -0
- package/lib/commonjs/components/views/ModularView.js.map +1 -0
- package/lib/commonjs/components/views/ProgressBar.js +63 -0
- package/lib/commonjs/components/views/ProgressBar.js.map +1 -0
- package/lib/commonjs/configs/ledgers/indy/index.js +12 -0
- package/lib/commonjs/configs/ledgers/indy/index.js.map +1 -0
- package/lib/commonjs/configs/ledgers/indy/ledgers.json +51 -0
- package/lib/commonjs/constants.js +101 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/container-api.js +114 -0
- package/lib/commonjs/container-api.js.map +1 -0
- package/lib/commonjs/container-impl.js +232 -0
- package/lib/commonjs/container-impl.js.map +1 -0
- package/lib/commonjs/contexts/activity.js +157 -0
- package/lib/commonjs/contexts/activity.js.map +1 -0
- package/lib/commonjs/contexts/animated-components.js +13 -0
- package/lib/commonjs/contexts/animated-components.js.map +1 -0
- package/lib/commonjs/contexts/auth.js +149 -0
- package/lib/commonjs/contexts/auth.js.map +1 -0
- package/lib/commonjs/contexts/index.js +13 -0
- package/lib/commonjs/contexts/index.js.map +1 -0
- package/lib/commonjs/contexts/network.js +77 -0
- package/lib/commonjs/contexts/network.js.map +1 -0
- package/lib/commonjs/contexts/reducers/index.js +11 -0
- package/lib/commonjs/contexts/reducers/index.js.map +1 -0
- package/lib/commonjs/contexts/reducers/store.js +664 -0
- package/lib/commonjs/contexts/reducers/store.js.map +1 -0
- package/lib/commonjs/contexts/store.js +102 -0
- package/lib/commonjs/contexts/store.js.map +1 -0
- package/lib/commonjs/contexts/theme.js +13 -0
- package/lib/commonjs/contexts/theme.js.map +1 -0
- package/lib/commonjs/contexts/tour/tour-context.js +53 -0
- package/lib/commonjs/contexts/tour/tour-context.js.map +1 -0
- package/lib/commonjs/contexts/tour/tour-provider.js +94 -0
- package/lib/commonjs/contexts/tour/tour-provider.js.map +1 -0
- package/lib/commonjs/hooks/bundle-resolver.js +63 -0
- package/lib/commonjs/hooks/bundle-resolver.js.map +1 -0
- package/lib/commonjs/hooks/chat-messages.js +253 -0
- package/lib/commonjs/hooks/chat-messages.js.map +1 -0
- package/lib/commonjs/hooks/connections.js +40 -0
- package/lib/commonjs/hooks/connections.js.map +1 -0
- package/lib/commonjs/hooks/credential-card-styles.js +149 -0
- package/lib/commonjs/hooks/credential-card-styles.js.map +1 -0
- package/lib/commonjs/hooks/credentials.js +16 -0
- package/lib/commonjs/hooks/credentials.js.map +1 -0
- package/lib/commonjs/hooks/deep-links.js +57 -0
- package/lib/commonjs/hooks/deep-links.js.map +1 -0
- package/lib/commonjs/hooks/initialize-agent.js +135 -0
- package/lib/commonjs/hooks/initialize-agent.js.map +1 -0
- package/lib/commonjs/hooks/notifications.js +70 -0
- package/lib/commonjs/hooks/notifications.js.map +1 -0
- package/lib/commonjs/hooks/oob.js +24 -0
- package/lib/commonjs/hooks/oob.js.map +1 -0
- package/lib/commonjs/hooks/proof-request-templates.js +45 -0
- package/lib/commonjs/hooks/proof-request-templates.js.map +1 -0
- package/lib/commonjs/hooks/proofs.js +37 -0
- package/lib/commonjs/hooks/proofs.js.map +1 -0
- package/lib/commonjs/hooks/screen-capture.js +57 -0
- package/lib/commonjs/hooks/screen-capture.js.map +1 -0
- package/lib/commonjs/hooks/useOnboardingState.js +36 -0
- package/lib/commonjs/hooks/useOnboardingState.js.map +1 -0
- package/lib/commonjs/index.js +961 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/layout/ScreenLayout.js +48 -0
- package/lib/commonjs/layout/ScreenLayout.js.map +1 -0
- package/lib/commonjs/localization/en/index.js +929 -0
- package/lib/commonjs/localization/en/index.js.map +1 -0
- package/lib/commonjs/localization/fr/index.js +903 -0
- package/lib/commonjs/localization/fr/index.js.map +1 -0
- package/lib/commonjs/localization/index.js +70 -0
- package/lib/commonjs/localization/index.js.map +1 -0
- package/lib/commonjs/localization/pt-br/index.js +886 -0
- package/lib/commonjs/localization/pt-br/index.js.map +1 -0
- package/lib/commonjs/modules/history/context/historyManager.js +256 -0
- package/lib/commonjs/modules/history/context/historyManager.js.map +1 -0
- package/lib/commonjs/modules/history/index.js +6 -0
- package/lib/commonjs/modules/history/index.js.map +1 -0
- package/lib/commonjs/modules/history/navigation/HistoryStack.js +39 -0
- package/lib/commonjs/modules/history/navigation/HistoryStack.js.map +1 -0
- package/lib/commonjs/modules/history/services/queue.service.js +30 -0
- package/lib/commonjs/modules/history/services/queue.service.js.map +1 -0
- package/lib/commonjs/modules/history/types/index.js +38 -0
- package/lib/commonjs/modules/history/types/index.js.map +1 -0
- package/lib/commonjs/modules/history/ui/HistoryPage.js +128 -0
- package/lib/commonjs/modules/history/ui/HistoryPage.js.map +1 -0
- package/lib/commonjs/modules/history/ui/HistorySettings.js +176 -0
- package/lib/commonjs/modules/history/ui/HistorySettings.js.map +1 -0
- package/lib/commonjs/modules/history/ui/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/lib/commonjs/modules/history/ui/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/lib/commonjs/modules/history/ui/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/lib/commonjs/modules/history/ui/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/lib/commonjs/modules/history/ui/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/lib/commonjs/modules/history/ui/assets/img/IconChevronRight.svg +3 -0
- package/lib/commonjs/modules/history/ui/components/BulletPoint.js +53 -0
- package/lib/commonjs/modules/history/ui/components/BulletPoint.js.map +1 -0
- package/lib/commonjs/modules/history/ui/components/HistoryListItem.js +276 -0
- package/lib/commonjs/modules/history/ui/components/HistoryListItem.js.map +1 -0
- package/lib/commonjs/modules/history/ui/components/HistoryMenu.js +32 -0
- package/lib/commonjs/modules/history/ui/components/HistoryMenu.js.map +1 -0
- package/lib/commonjs/modules/history/ui/components/SingleSelectBlock.js +66 -0
- package/lib/commonjs/modules/history/ui/components/SingleSelectBlock.js.map +1 -0
- package/lib/commonjs/modules/openid/components/CredentialRowCard.js +84 -0
- package/lib/commonjs/modules/openid/components/CredentialRowCard.js.map +1 -0
- package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js +234 -0
- package/lib/commonjs/modules/openid/components/OpenIDCredentialCard.js.map +1 -0
- package/lib/commonjs/modules/openid/context/OpenIDCredentialRecordProvider.js +229 -0
- package/lib/commonjs/modules/openid/context/OpenIDCredentialRecordProvider.js.map +1 -0
- package/lib/commonjs/modules/openid/display.js +364 -0
- package/lib/commonjs/modules/openid/display.js.map +1 -0
- package/lib/commonjs/modules/openid/displayProof.js +54 -0
- package/lib/commonjs/modules/openid/displayProof.js.map +1 -0
- package/lib/commonjs/modules/openid/hooks/openid.js +88 -0
- package/lib/commonjs/modules/openid/hooks/openid.js.map +1 -0
- package/lib/commonjs/modules/openid/metadata.js +38 -0
- package/lib/commonjs/modules/openid/metadata.js.map +1 -0
- package/lib/commonjs/modules/openid/offerResolve.js +189 -0
- package/lib/commonjs/modules/openid/offerResolve.js.map +1 -0
- package/lib/commonjs/modules/openid/resolverProof.js +246 -0
- package/lib/commonjs/modules/openid/resolverProof.js.map +1 -0
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js +215 -0
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -0
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js +178 -0
- package/lib/commonjs/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -0
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js +274 -0
- package/lib/commonjs/modules/openid/screens/OpenIDProofPresentation.js.map +1 -0
- package/lib/commonjs/modules/openid/types.js +13 -0
- package/lib/commonjs/modules/openid/types.js.map +1 -0
- package/lib/commonjs/modules/openid/utils/utils.js +134 -0
- package/lib/commonjs/modules/openid/utils/utils.js.map +1 -0
- package/lib/commonjs/navigators/ConnectStack.js +65 -0
- package/lib/commonjs/navigators/ConnectStack.js.map +1 -0
- package/lib/commonjs/navigators/ContactStack.js +103 -0
- package/lib/commonjs/navigators/ContactStack.js.map +1 -0
- package/lib/commonjs/navigators/CredentialStack.js +41 -0
- package/lib/commonjs/navigators/CredentialStack.js.map +1 -0
- package/lib/commonjs/navigators/DeliveryStack.js +77 -0
- package/lib/commonjs/navigators/DeliveryStack.js.map +1 -0
- package/lib/commonjs/navigators/HomeStack.js +42 -0
- package/lib/commonjs/navigators/HomeStack.js.map +1 -0
- package/lib/commonjs/navigators/MainStack.js +144 -0
- package/lib/commonjs/navigators/MainStack.js.map +1 -0
- package/lib/commonjs/navigators/NotificationStack.js +69 -0
- package/lib/commonjs/navigators/NotificationStack.js.map +1 -0
- package/lib/commonjs/navigators/OnboardingScreens.js +116 -0
- package/lib/commonjs/navigators/OnboardingScreens.js.map +1 -0
- package/lib/commonjs/navigators/OnboardingStack.js +144 -0
- package/lib/commonjs/navigators/OnboardingStack.js.map +1 -0
- package/lib/commonjs/navigators/ProofRequestStack.js +117 -0
- package/lib/commonjs/navigators/ProofRequestStack.js.map +1 -0
- package/lib/commonjs/navigators/RootStack.js +68 -0
- package/lib/commonjs/navigators/RootStack.js.map +1 -0
- package/lib/commonjs/navigators/SettingStack.js +155 -0
- package/lib/commonjs/navigators/SettingStack.js.map +1 -0
- package/lib/commonjs/navigators/TabStack.js +303 -0
- package/lib/commonjs/navigators/TabStack.js.map +1 -0
- package/lib/commonjs/navigators/defaultLayoutOptions.js +23 -0
- package/lib/commonjs/navigators/defaultLayoutOptions.js.map +1 -0
- package/lib/commonjs/navigators/defaultStackOptions.js +95 -0
- package/lib/commonjs/navigators/defaultStackOptions.js.map +1 -0
- package/lib/commonjs/navigators/index.js +91 -0
- package/lib/commonjs/navigators/index.js.map +1 -0
- package/lib/commonjs/onboarding.js +104 -0
- package/lib/commonjs/onboarding.js.map +1 -0
- package/lib/commonjs/screens/AttemptLockout.js +161 -0
- package/lib/commonjs/screens/AttemptLockout.js.map +1 -0
- package/lib/commonjs/screens/AutoLock.js +141 -0
- package/lib/commonjs/screens/AutoLock.js.map +1 -0
- package/lib/commonjs/screens/Chat.js +150 -0
- package/lib/commonjs/screens/Chat.js.map +1 -0
- package/lib/commonjs/screens/Connection.js +366 -0
- package/lib/commonjs/screens/Connection.js.map +1 -0
- package/lib/commonjs/screens/ContactDetails.js +309 -0
- package/lib/commonjs/screens/ContactDetails.js.map +1 -0
- package/lib/commonjs/screens/CredentialDetails.js +409 -0
- package/lib/commonjs/screens/CredentialDetails.js.map +1 -0
- package/lib/commonjs/screens/CredentialOffer.js +311 -0
- package/lib/commonjs/screens/CredentialOffer.js.map +1 -0
- package/lib/commonjs/screens/CredentialOfferAccept.js +173 -0
- package/lib/commonjs/screens/CredentialOfferAccept.js.map +1 -0
- package/lib/commonjs/screens/DataRetention.js +116 -0
- package/lib/commonjs/screens/DataRetention.js.map +1 -0
- package/lib/commonjs/screens/Developer.js +303 -0
- package/lib/commonjs/screens/Developer.js.map +1 -0
- package/lib/commonjs/screens/Home.js +156 -0
- package/lib/commonjs/screens/Home.js.map +1 -0
- package/lib/commonjs/screens/Language.js +117 -0
- package/lib/commonjs/screens/Language.js.map +1 -0
- package/lib/commonjs/screens/ListContacts.js +121 -0
- package/lib/commonjs/screens/ListContacts.js.map +1 -0
- package/lib/commonjs/screens/ListCredentials.js +130 -0
- package/lib/commonjs/screens/ListCredentials.js.map +1 -0
- package/lib/commonjs/screens/ListProofRequests.js +167 -0
- package/lib/commonjs/screens/ListProofRequests.js.map +1 -0
- package/lib/commonjs/screens/MobileVerifierLoading.js +116 -0
- package/lib/commonjs/screens/MobileVerifierLoading.js.map +1 -0
- package/lib/commonjs/screens/NameWallet.js +160 -0
- package/lib/commonjs/screens/NameWallet.js.map +1 -0
- package/lib/commonjs/screens/Onboarding.js +143 -0
- package/lib/commonjs/screens/Onboarding.js.map +1 -0
- package/lib/commonjs/screens/OnboardingPages.js +201 -0
- package/lib/commonjs/screens/OnboardingPages.js.map +1 -0
- package/lib/commonjs/screens/PINCreate.js +339 -0
- package/lib/commonjs/screens/PINCreate.js.map +1 -0
- package/lib/commonjs/screens/PINEnter.js +531 -0
- package/lib/commonjs/screens/PINEnter.js.map +1 -0
- package/lib/commonjs/screens/PINExplainer.js +99 -0
- package/lib/commonjs/screens/PINExplainer.js.map +1 -0
- package/lib/commonjs/screens/PasteUrl.js +142 -0
- package/lib/commonjs/screens/PasteUrl.js.map +1 -0
- package/lib/commonjs/screens/Preface.js +104 -0
- package/lib/commonjs/screens/Preface.js.map +1 -0
- package/lib/commonjs/screens/ProofChangeCredential.js +152 -0
- package/lib/commonjs/screens/ProofChangeCredential.js.map +1 -0
- package/lib/commonjs/screens/ProofDetails.js +333 -0
- package/lib/commonjs/screens/ProofDetails.js.map +1 -0
- package/lib/commonjs/screens/ProofRequest.js +686 -0
- package/lib/commonjs/screens/ProofRequest.js.map +1 -0
- package/lib/commonjs/screens/ProofRequestAccept.js +128 -0
- package/lib/commonjs/screens/ProofRequestAccept.js.map +1 -0
- package/lib/commonjs/screens/ProofRequestDetails.js +276 -0
- package/lib/commonjs/screens/ProofRequestDetails.js.map +1 -0
- package/lib/commonjs/screens/ProofRequestUsageHistory.js +164 -0
- package/lib/commonjs/screens/ProofRequestUsageHistory.js.map +1 -0
- package/lib/commonjs/screens/ProofRequesting.js +241 -0
- package/lib/commonjs/screens/ProofRequesting.js.map +1 -0
- package/lib/commonjs/screens/PushNotification.js +178 -0
- package/lib/commonjs/screens/PushNotification.js.map +1 -0
- package/lib/commonjs/screens/RenameContact.js +154 -0
- package/lib/commonjs/screens/RenameContact.js.map +1 -0
- package/lib/commonjs/screens/Scan.js +123 -0
- package/lib/commonjs/screens/Scan.js.map +1 -0
- package/lib/commonjs/screens/ScanHelp.js +58 -0
- package/lib/commonjs/screens/ScanHelp.js.map +1 -0
- package/lib/commonjs/screens/Settings.js +451 -0
- package/lib/commonjs/screens/Settings.js.map +1 -0
- package/lib/commonjs/screens/Splash.js +92 -0
- package/lib/commonjs/screens/Splash.js.map +1 -0
- package/lib/commonjs/screens/Terms.js +145 -0
- package/lib/commonjs/screens/Terms.js.map +1 -0
- package/lib/commonjs/screens/Tours.js +107 -0
- package/lib/commonjs/screens/Tours.js.map +1 -0
- package/lib/commonjs/screens/UpdateAvailable.js +128 -0
- package/lib/commonjs/screens/UpdateAvailable.js.map +1 -0
- package/lib/commonjs/screens/UseBiometry.js +315 -0
- package/lib/commonjs/screens/UseBiometry.js.map +1 -0
- package/lib/commonjs/screens/WhatAreContacts.js +78 -0
- package/lib/commonjs/screens/WhatAreContacts.js.map +1 -0
- package/lib/commonjs/services/keychain.js +171 -0
- package/lib/commonjs/services/keychain.js.map +1 -0
- package/lib/commonjs/services/logger.js +70 -0
- package/lib/commonjs/services/logger.js.map +1 -0
- package/lib/commonjs/services/storage.js +130 -0
- package/lib/commonjs/services/storage.js.map +1 -0
- package/lib/commonjs/theme.js +886 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/commonjs/types/attempt-lockout-config.js +2 -0
- package/lib/commonjs/types/attempt-lockout-config.js.map +1 -0
- package/lib/commonjs/types/attestation.js +14 -0
- package/lib/commonjs/types/attestation.js.map +1 -0
- package/lib/commonjs/types/chat.js +12 -0
- package/lib/commonjs/types/chat.js.map +1 -0
- package/lib/commonjs/types/config.js +6 -0
- package/lib/commonjs/types/config.js.map +1 -0
- package/lib/commonjs/types/contact-details.js +2 -0
- package/lib/commonjs/types/contact-details.js.map +1 -0
- package/lib/commonjs/types/credential-list-footer.js +2 -0
- package/lib/commonjs/types/credential-list-footer.js.map +1 -0
- package/lib/commonjs/types/credential-status.js +11 -0
- package/lib/commonjs/types/credential-status.js.map +1 -0
- package/lib/commonjs/types/credentials.js +6 -0
- package/lib/commonjs/types/credentials.js.map +1 -0
- package/lib/commonjs/types/decline.js +13 -0
- package/lib/commonjs/types/decline.js.map +1 -0
- package/lib/commonjs/types/error.js +32 -0
- package/lib/commonjs/types/error.js.map +1 -0
- package/lib/commonjs/types/fn.js +2 -0
- package/lib/commonjs/types/fn.js.map +1 -0
- package/lib/commonjs/types/genesis.js +2 -0
- package/lib/commonjs/types/genesis.js.map +1 -0
- package/lib/commonjs/types/index.js +11 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/metadata.js +15 -0
- package/lib/commonjs/types/metadata.js.map +1 -0
- package/lib/commonjs/types/navigators.js +77 -0
- package/lib/commonjs/types/navigators.js.map +1 -0
- package/lib/commonjs/types/notification.js +6 -0
- package/lib/commonjs/types/notification.js.map +1 -0
- package/lib/commonjs/types/permissions.js +6 -0
- package/lib/commonjs/types/permissions.js.map +1 -0
- package/lib/commonjs/types/proof-items.js +6 -0
- package/lib/commonjs/types/proof-items.js.map +1 -0
- package/lib/commonjs/types/react-i18next.d.js +4 -0
- package/lib/commonjs/types/react-i18next.d.js.map +1 -0
- package/lib/commonjs/types/remove.js +16 -0
- package/lib/commonjs/types/remove.js.map +1 -0
- package/lib/commonjs/types/security.js +18 -0
- package/lib/commonjs/types/security.js.map +1 -0
- package/lib/commonjs/types/settings.js +6 -0
- package/lib/commonjs/types/settings.js.map +1 -0
- package/lib/commonjs/types/state.js +2 -0
- package/lib/commonjs/types/state.js.map +1 -0
- package/lib/commonjs/types/tour.js +20 -0
- package/lib/commonjs/types/tour.js.map +1 -0
- package/lib/commonjs/types/version-check.js +6 -0
- package/lib/commonjs/types/version-check.js.map +1 -0
- package/lib/commonjs/utils/PINCreationValidation.js +86 -0
- package/lib/commonjs/utils/PINCreationValidation.js.map +1 -0
- package/lib/commonjs/utils/agent.js +93 -0
- package/lib/commonjs/utils/agent.js.map +1 -0
- package/lib/commonjs/utils/anonCredsProofRequestMapper.js +157 -0
- package/lib/commonjs/utils/anonCredsProofRequestMapper.js.map +1 -0
- package/lib/commonjs/utils/contacts.js +40 -0
- package/lib/commonjs/utils/contacts.js.map +1 -0
- package/lib/commonjs/utils/cred-def.js +37 -0
- package/lib/commonjs/utils/cred-def.js.map +1 -0
- package/lib/commonjs/utils/credential.js +41 -0
- package/lib/commonjs/utils/credential.js.map +1 -0
- package/lib/commonjs/utils/crypto.js +21 -0
- package/lib/commonjs/utils/crypto.js.map +1 -0
- package/lib/commonjs/utils/fileCache.js +126 -0
- package/lib/commonjs/utils/fileCache.js.map +1 -0
- package/lib/commonjs/utils/helpers.js +1165 -0
- package/lib/commonjs/utils/helpers.js.map +1 -0
- package/lib/commonjs/utils/luminance.js +43 -0
- package/lib/commonjs/utils/luminance.js.map +1 -0
- package/lib/commonjs/utils/migration.js +45 -0
- package/lib/commonjs/utils/migration.js.map +1 -0
- package/lib/commonjs/utils/network.js +56 -0
- package/lib/commonjs/utils/network.js.map +1 -0
- package/lib/commonjs/utils/oca.js +115 -0
- package/lib/commonjs/utils/oca.js.map +1 -0
- package/lib/commonjs/utils/parsers.js +84 -0
- package/lib/commonjs/utils/parsers.js.map +1 -0
- package/lib/commonjs/utils/proofBundle.js +182 -0
- package/lib/commonjs/utils/proofBundle.js.map +1 -0
- package/lib/commonjs/utils/schema.js +33 -0
- package/lib/commonjs/utils/schema.js.map +1 -0
- package/lib/commonjs/utils/testable.js +19 -0
- package/lib/commonjs/utils/testable.js.map +1 -0
- package/lib/module/App.js +60 -0
- package/lib/module/App.js.map +1 -0
- package/lib/module/animated-components.js +19 -0
- package/lib/module/animated-components.js.map +1 -0
- package/lib/module/assets/fonts/MaterialIcons.ttf +0 -0
- package/lib/module/assets/icons/large-arrow.svg +5 -0
- package/lib/module/assets/icons/pencil.svg +15 -0
- package/lib/module/assets/icons/trash.svg +31 -0
- package/lib/module/assets/img/Artwork_1024x1024.png +0 -0
- package/lib/module/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/lib/module/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/lib/module/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/lib/module/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/lib/module/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/lib/module/assets/img/IconChevronRight.svg +5 -0
- package/lib/module/assets/img/activity-indicator-circle.svg +90 -0
- package/lib/module/assets/img/app-lockout.svg +1 -0
- package/lib/module/assets/img/biometrics.svg +74 -0
- package/lib/module/assets/img/chat-loading.svg +1 -0
- package/lib/module/assets/img/check-in-circle.svg +18 -0
- package/lib/module/assets/img/connection-pending.svg +112 -0
- package/lib/module/assets/img/contact-book.svg +21 -0
- package/lib/module/assets/img/credential-card.svg +18 -0
- package/lib/module/assets/img/credential-declined.svg +28 -0
- package/lib/module/assets/img/credential-in-hand.svg +48 -0
- package/lib/module/assets/img/credential-list.svg +60 -0
- package/lib/module/assets/img/credential-pending.svg +96 -0
- package/lib/module/assets/img/credential-success.svg +48 -0
- package/lib/module/assets/img/delete-notification.svg +1 -0
- package/lib/module/assets/img/empty-wallet.svg +23 -0
- package/lib/module/assets/img/error-filled.svg +12 -0
- package/lib/module/assets/img/exclamation-mark.svg +17 -0
- package/lib/module/assets/img/home-center-img.svg +71 -0
- package/lib/module/assets/img/icon-credential-offer-dark.svg +7 -0
- package/lib/module/assets/img/icon-credential-offer-light.svg +7 -0
- package/lib/module/assets/img/icon-info-recieved-dark.svg +8 -0
- package/lib/module/assets/img/icon-info-recieved-light.svg +8 -0
- package/lib/module/assets/img/icon-info-sent-dark.svg +8 -0
- package/lib/module/assets/img/icon-info-sent-light.svg +8 -0
- package/lib/module/assets/img/icon-proof-request-dark.svg +11 -0
- package/lib/module/assets/img/icon-proof-request-light.svg +11 -0
- package/lib/module/assets/img/information-received.svg +1 -0
- package/lib/module/assets/img/logo-large.png +0 -0
- package/lib/module/assets/img/logo-large@2x.png +0 -0
- package/lib/module/assets/img/logo-large@3x.png +0 -0
- package/lib/module/assets/img/logo.svg +15 -0
- package/lib/module/assets/img/message-text-icon-outline.svg +1 -0
- package/lib/module/assets/img/message-text-icon.svg +1 -0
- package/lib/module/assets/img/no_information_shared.svg +36 -0
- package/lib/module/assets/img/preface.svg +15 -0
- package/lib/module/assets/img/proof-declined.svg +66 -0
- package/lib/module/assets/img/proof-pending.svg +61 -0
- package/lib/module/assets/img/proof-success.svg +72 -0
- package/lib/module/assets/img/push-notifications.svg +1 -0
- package/lib/module/assets/img/qrcode-scan-icon.svg +1 -0
- package/lib/module/assets/img/scan-share.svg +102 -0
- package/lib/module/assets/img/secure-check.svg +4 -0
- package/lib/module/assets/img/secure-image.svg +64 -0
- package/lib/module/assets/img/update-available.svg +26 -0
- package/lib/module/assets/img/verifier-request-declined.svg +34 -0
- package/lib/module/assets/img/wallet-back.svg +20 -0
- package/lib/module/assets/img/wallet-front.svg +32 -0
- package/lib/module/assets/img/wallet-icon-outline.svg +1 -0
- package/lib/module/assets/img/wallet-icon.svg +1 -0
- package/lib/module/assets/img/wallet.svg +43 -0
- package/lib/module/assets/oca-bundles.json +174 -0
- package/lib/module/components/animated/ButtonLoading.js +37 -0
- package/lib/module/components/animated/ButtonLoading.js.map +1 -0
- package/lib/module/components/animated/ConnectionLoading.js +55 -0
- package/lib/module/components/animated/ConnectionLoading.js.map +1 -0
- package/lib/module/components/animated/CredentialAdded.js +80 -0
- package/lib/module/components/animated/CredentialAdded.js.map +1 -0
- package/lib/module/components/animated/CredentialPending.js +68 -0
- package/lib/module/components/animated/CredentialPending.js.map +1 -0
- package/lib/module/components/animated/LoadingIndicator.js +56 -0
- package/lib/module/components/animated/LoadingIndicator.js.map +1 -0
- package/lib/module/components/animated/PresentationLoading.js +54 -0
- package/lib/module/components/animated/PresentationLoading.js.map +1 -0
- package/lib/module/components/animated/RecordLoading.js +99 -0
- package/lib/module/components/animated/RecordLoading.js.map +1 -0
- package/lib/module/components/animated/SendingProof.js +55 -0
- package/lib/module/components/animated/SendingProof.js.map +1 -0
- package/lib/module/components/animated/SentProof.js +75 -0
- package/lib/module/components/animated/SentProof.js.map +1 -0
- package/lib/module/components/buttons/Button-api.js +34 -0
- package/lib/module/components/buttons/Button-api.js.map +1 -0
- package/lib/module/components/buttons/Button.js +89 -0
- package/lib/module/components/buttons/Button.js.map +1 -0
- package/lib/module/components/buttons/HeaderHome.js +26 -0
- package/lib/module/components/buttons/HeaderHome.js.map +1 -0
- package/lib/module/components/buttons/IconButton.js +68 -0
- package/lib/module/components/buttons/IconButton.js.map +1 -0
- package/lib/module/components/buttons/InfoIcon.js +28 -0
- package/lib/module/components/buttons/InfoIcon.js.map +1 -0
- package/lib/module/components/buttons/SettingsMenu.js +23 -0
- package/lib/module/components/buttons/SettingsMenu.js.map +1 -0
- package/lib/module/components/buttons/ToggleButton.js +77 -0
- package/lib/module/components/buttons/ToggleButton.js.map +1 -0
- package/lib/module/components/buttons/index.js +4 -0
- package/lib/module/components/buttons/index.js.map +1 -0
- package/lib/module/components/chat/ActionSlider.js +102 -0
- package/lib/module/components/chat/ActionSlider.js.map +1 -0
- package/lib/module/components/chat/ChatActions.js +21 -0
- package/lib/module/components/chat/ChatActions.js.map +1 -0
- package/lib/module/components/chat/ChatBubble.js +24 -0
- package/lib/module/components/chat/ChatBubble.js.map +1 -0
- package/lib/module/components/chat/ChatEvent.js +27 -0
- package/lib/module/components/chat/ChatEvent.js.map +1 -0
- package/lib/module/components/chat/ChatMessage.js +150 -0
- package/lib/module/components/chat/ChatMessage.js.map +1 -0
- package/lib/module/components/chat/MessageInput.js +42 -0
- package/lib/module/components/chat/MessageInput.js.map +1 -0
- package/lib/module/components/chat/index.js +4 -0
- package/lib/module/components/chat/index.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/inputs/BulletPoint.js +38 -0
- package/lib/module/components/inputs/BulletPoint.js.map +1 -0
- package/lib/module/components/inputs/CheckBoxRow.js +59 -0
- package/lib/module/components/inputs/CheckBoxRow.js.map +1 -0
- package/lib/module/components/inputs/InlineErrorText.js +53 -0
- package/lib/module/components/inputs/InlineErrorText.js.map +1 -0
- package/lib/module/components/inputs/LimitedTextInput.js +62 -0
- package/lib/module/components/inputs/LimitedTextInput.js.map +1 -0
- package/lib/module/components/inputs/PINInput.js +128 -0
- package/lib/module/components/inputs/PINInput.js.map +1 -0
- package/lib/module/components/inputs/SingleSelectBlock.js +49 -0
- package/lib/module/components/inputs/SingleSelectBlock.js.map +1 -0
- package/lib/module/components/listItems/ContactCredentialListItem.js +73 -0
- package/lib/module/components/listItems/ContactCredentialListItem.js.map +1 -0
- package/lib/module/components/listItems/ContactListItem.js +117 -0
- package/lib/module/components/listItems/ContactListItem.js.map +1 -0
- package/lib/module/components/listItems/NotificationListItem.js +462 -0
- package/lib/module/components/listItems/NotificationListItem.js.map +1 -0
- package/lib/module/components/misc/ActivityLogLink.js +37 -0
- package/lib/module/components/misc/ActivityLogLink.js.map +1 -0
- package/lib/module/components/misc/AvatarView.js +32 -0
- package/lib/module/components/misc/AvatarView.js.map +1 -0
- package/lib/module/components/misc/CardWatermark.js +49 -0
- package/lib/module/components/misc/CardWatermark.js.map +1 -0
- package/lib/module/components/misc/ConnectionAlert.js +108 -0
- package/lib/module/components/misc/ConnectionAlert.js.map +1 -0
- package/lib/module/components/misc/ConnectionImage.js +42 -0
- package/lib/module/components/misc/ConnectionImage.js.map +1 -0
- package/lib/module/components/misc/ContentGradient.js +47 -0
- package/lib/module/components/misc/ContentGradient.js.map +1 -0
- package/lib/module/components/misc/CredentialCard.js +124 -0
- package/lib/module/components/misc/CredentialCard.js.map +1 -0
- package/lib/module/components/misc/CredentialCard10.js +262 -0
- package/lib/module/components/misc/CredentialCard10.js.map +1 -0
- package/lib/module/components/misc/CredentialCard11.js +560 -0
- package/lib/module/components/misc/CredentialCard11.js.map +1 -0
- package/lib/module/components/misc/CredentialCard11ActionFooter.js +52 -0
- package/lib/module/components/misc/CredentialCard11ActionFooter.js.map +1 -0
- package/lib/module/components/misc/CredentialCard11Issuer.js +55 -0
- package/lib/module/components/misc/CredentialCard11Issuer.js.map +1 -0
- package/lib/module/components/misc/CredentialCard11Logo.js +49 -0
- package/lib/module/components/misc/CredentialCard11Logo.js.map +1 -0
- package/lib/module/components/misc/EmptyList.js +35 -0
- package/lib/module/components/misc/EmptyList.js.map +1 -0
- package/lib/module/components/misc/EmptyListContacts.js +65 -0
- package/lib/module/components/misc/EmptyListContacts.js.map +1 -0
- package/lib/module/components/misc/InfoBox.js +255 -0
- package/lib/module/components/misc/InfoBox.js.map +1 -0
- package/lib/module/components/misc/NoNewUpdates.js +37 -0
- package/lib/module/components/misc/NoNewUpdates.js.map +1 -0
- package/lib/module/components/misc/PINCreateHeader.js +25 -0
- package/lib/module/components/misc/PINCreateHeader.js.map +1 -0
- package/lib/module/components/misc/Pagination.js +78 -0
- package/lib/module/components/misc/Pagination.js.map +1 -0
- package/lib/module/components/misc/QRRenderer.js +54 -0
- package/lib/module/components/misc/QRRenderer.js.map +1 -0
- package/lib/module/components/misc/QRScanner.js +396 -0
- package/lib/module/components/misc/QRScanner.js.map +1 -0
- package/lib/module/components/misc/QRScannerTorch.js +73 -0
- package/lib/module/components/misc/QRScannerTorch.js.map +1 -0
- package/lib/module/components/misc/ScanCamera.js +78 -0
- package/lib/module/components/misc/ScanCamera.js.map +1 -0
- package/lib/module/components/misc/ScanTab.js +46 -0
- package/lib/module/components/misc/ScanTab.js.map +1 -0
- package/lib/module/components/misc/SharedProofData.js +85 -0
- package/lib/module/components/misc/SharedProofData.js.map +1 -0
- package/lib/module/components/misc/UnorderedList.js +34 -0
- package/lib/module/components/misc/UnorderedList.js.map +1 -0
- package/lib/module/components/misc/VerifierCredentialCard.js +332 -0
- package/lib/module/components/misc/VerifierCredentialCard.js.map +1 -0
- package/lib/module/components/misc/index.js +3 -0
- package/lib/module/components/misc/index.js.map +1 -0
- package/lib/module/components/modals/AlertModal.js +37 -0
- package/lib/module/components/modals/AlertModal.js.map +1 -0
- package/lib/module/components/modals/AppGuideModal.js +128 -0
- package/lib/module/components/modals/AppGuideModal.js.map +1 -0
- package/lib/module/components/modals/CameraDisclosureModal.js +121 -0
- package/lib/module/components/modals/CameraDisclosureModal.js.map +1 -0
- package/lib/module/components/modals/CommonRemoveModal.js +363 -0
- package/lib/module/components/modals/CommonRemoveModal.js.map +1 -0
- package/lib/module/components/modals/DismissiblePopupModal.js +162 -0
- package/lib/module/components/modals/DismissiblePopupModal.js.map +1 -0
- package/lib/module/components/modals/ErrorModal.js +97 -0
- package/lib/module/components/modals/ErrorModal.js.map +1 -0
- package/lib/module/components/modals/ImageModal.js +84 -0
- package/lib/module/components/modals/ImageModal.js.map +1 -0
- package/lib/module/components/modals/NetInfoModal.js +22 -0
- package/lib/module/components/modals/NetInfoModal.js.map +1 -0
- package/lib/module/components/modals/NotificationModal.js +112 -0
- package/lib/module/components/modals/NotificationModal.js.map +1 -0
- package/lib/module/components/modals/PopupModal.js +42 -0
- package/lib/module/components/modals/PopupModal.js.map +1 -0
- package/lib/module/components/modals/ProofCancelModal.js +82 -0
- package/lib/module/components/modals/ProofCancelModal.js.map +1 -0
- package/lib/module/components/modals/SafeAreaModal.js +11 -0
- package/lib/module/components/modals/SafeAreaModal.js.map +1 -0
- package/lib/module/components/network/NetInfo.js +36 -0
- package/lib/module/components/network/NetInfo.js.map +1 -0
- package/lib/module/components/record/Record.js +84 -0
- package/lib/module/components/record/Record.js.map +1 -0
- package/lib/module/components/record/RecordBinaryField.js +51 -0
- package/lib/module/components/record/RecordBinaryField.js.map +1 -0
- package/lib/module/components/record/RecordDateIntField.js +59 -0
- package/lib/module/components/record/RecordDateIntField.js.map +1 -0
- package/lib/module/components/record/RecordField.js +134 -0
- package/lib/module/components/record/RecordField.js.map +1 -0
- package/lib/module/components/record/RecordFooter.js +21 -0
- package/lib/module/components/record/RecordFooter.js.map +1 -0
- package/lib/module/components/record/RecordHeader.js +20 -0
- package/lib/module/components/record/RecordHeader.js.map +1 -0
- package/lib/module/components/record/RecordRemove.js +64 -0
- package/lib/module/components/record/RecordRemove.js.map +1 -0
- package/lib/module/components/texts/HeaderTitle.js +20 -0
- package/lib/module/components/texts/HeaderTitle.js.map +1 -0
- package/lib/module/components/texts/HighlightTextBox.js +43 -0
- package/lib/module/components/texts/HighlightTextBox.js.map +1 -0
- package/lib/module/components/texts/InfoTextBox.js +110 -0
- package/lib/module/components/texts/InfoTextBox.js.map +1 -0
- package/lib/module/components/texts/Label.js +50 -0
- package/lib/module/components/texts/Label.js.map +1 -0
- package/lib/module/components/texts/Link.js +34 -0
- package/lib/module/components/texts/Link.js.map +1 -0
- package/lib/module/components/texts/Text.js +21 -0
- package/lib/module/components/texts/Text.js.map +1 -0
- package/lib/module/components/texts/ThemedText.js +28 -0
- package/lib/module/components/texts/ThemedText.js.map +1 -0
- package/lib/module/components/texts/Title.js +22 -0
- package/lib/module/components/texts/Title.js.map +1 -0
- package/lib/module/components/toast/BaseToast.js +136 -0
- package/lib/module/components/toast/BaseToast.js.map +1 -0
- package/lib/module/components/toast/ToastConfig.js +29 -0
- package/lib/module/components/toast/ToastConfig.js.map +1 -0
- package/lib/module/components/tour/AttachTourStep.js +58 -0
- package/lib/module/components/tour/AttachTourStep.js.map +1 -0
- package/lib/module/components/tour/CredentialOfferTourSteps.js +41 -0
- package/lib/module/components/tour/CredentialOfferTourSteps.js.map +1 -0
- package/lib/module/components/tour/CredentialsTourSteps.js +41 -0
- package/lib/module/components/tour/CredentialsTourSteps.js.map +1 -0
- package/lib/module/components/tour/HomeTourSteps.js +112 -0
- package/lib/module/components/tour/HomeTourSteps.js.map +1 -0
- package/lib/module/components/tour/ProofRequestTourSteps.js +41 -0
- package/lib/module/components/tour/ProofRequestTourSteps.js.map +1 -0
- package/lib/module/components/tour/SpotCutout.js +64 -0
- package/lib/module/components/tour/SpotCutout.js.map +1 -0
- package/lib/module/components/tour/TourBox.js +199 -0
- package/lib/module/components/tour/TourBox.js.map +1 -0
- package/lib/module/components/tour/TourOverlay.js +138 -0
- package/lib/module/components/tour/TourOverlay.js.map +1 -0
- package/lib/module/components/views/CredentialCardLogo.js +66 -0
- package/lib/module/components/views/CredentialCardLogo.js.map +1 -0
- package/lib/module/components/views/CredentialDetailPrimaryHeader.js +79 -0
- package/lib/module/components/views/CredentialDetailPrimaryHeader.js.map +1 -0
- package/lib/module/components/views/CredentialDetailSecondaryHeader.js +39 -0
- package/lib/module/components/views/CredentialDetailSecondaryHeader.js.map +1 -0
- package/lib/module/components/views/HomeFooterView.js +95 -0
- package/lib/module/components/views/HomeFooterView.js.map +1 -0
- package/lib/module/components/views/HomeHeaderView.js +9 -0
- package/lib/module/components/views/HomeHeaderView.js.map +1 -0
- package/lib/module/components/views/KeyboardView.js +33 -0
- package/lib/module/components/views/KeyboardView.js.map +1 -0
- package/lib/module/components/views/LoadingPlaceholder.js +153 -0
- package/lib/module/components/views/LoadingPlaceholder.js.map +1 -0
- package/lib/module/components/views/LoadingView.js +30 -0
- package/lib/module/components/views/LoadingView.js.map +1 -0
- package/lib/module/components/views/ModularView.js +34 -0
- package/lib/module/components/views/ModularView.js.map +1 -0
- package/lib/module/components/views/ProgressBar.js +55 -0
- package/lib/module/components/views/ProgressBar.js.map +1 -0
- package/lib/module/configs/ledgers/indy/index.js +6 -0
- package/lib/module/configs/ledgers/indy/index.js.map +1 -0
- package/lib/module/configs/ledgers/indy/ledgers.json +51 -0
- package/lib/module/constants.js +95 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/container-api.js +106 -0
- package/lib/module/container-api.js.map +1 -0
- package/lib/module/container-impl.js +221 -0
- package/lib/module/container-impl.js.map +1 -0
- package/lib/module/contexts/activity.js +148 -0
- package/lib/module/contexts/activity.js.map +1 -0
- package/lib/module/contexts/animated-components.js +6 -0
- package/lib/module/contexts/animated-components.js.map +1 -0
- package/lib/module/contexts/auth.js +138 -0
- package/lib/module/contexts/auth.js.map +1 -0
- package/lib/module/contexts/index.js +4 -0
- package/lib/module/contexts/index.js.map +1 -0
- package/lib/module/contexts/network.js +68 -0
- package/lib/module/contexts/network.js.map +1 -0
- package/lib/module/contexts/reducers/index.js +3 -0
- package/lib/module/contexts/reducers/index.js.map +1 -0
- package/lib/module/contexts/reducers/store.js +657 -0
- package/lib/module/contexts/reducers/store.js.map +1 -0
- package/lib/module/contexts/store.js +90 -0
- package/lib/module/contexts/store.js.map +1 -0
- package/lib/module/contexts/theme.js +6 -0
- package/lib/module/contexts/theme.js.map +1 -0
- package/lib/module/contexts/tour/tour-context.js +46 -0
- package/lib/module/contexts/tour/tour-context.js.map +1 -0
- package/lib/module/contexts/tour/tour-provider.js +86 -0
- package/lib/module/contexts/tour/tour-provider.js.map +1 -0
- package/lib/module/hooks/bundle-resolver.js +57 -0
- package/lib/module/hooks/bundle-resolver.js.map +1 -0
- package/lib/module/hooks/chat-messages.js +245 -0
- package/lib/module/hooks/chat-messages.js.map +1 -0
- package/lib/module/hooks/connections.js +31 -0
- package/lib/module/hooks/connections.js.map +1 -0
- package/lib/module/hooks/credential-card-styles.js +143 -0
- package/lib/module/hooks/credential-card-styles.js.map +1 -0
- package/lib/module/hooks/credentials.js +9 -0
- package/lib/module/hooks/credentials.js.map +1 -0
- package/lib/module/hooks/deep-links.js +50 -0
- package/lib/module/hooks/deep-links.js.map +1 -0
- package/lib/module/hooks/initialize-agent.js +129 -0
- package/lib/module/hooks/initialize-agent.js.map +1 -0
- package/lib/module/hooks/notifications.js +63 -0
- package/lib/module/hooks/notifications.js.map +1 -0
- package/lib/module/hooks/oob.js +17 -0
- package/lib/module/hooks/oob.js.map +1 -0
- package/lib/module/hooks/proof-request-templates.js +37 -0
- package/lib/module/hooks/proof-request-templates.js.map +1 -0
- package/lib/module/hooks/proofs.js +29 -0
- package/lib/module/hooks/proofs.js.map +1 -0
- package/lib/module/hooks/screen-capture.js +50 -0
- package/lib/module/hooks/screen-capture.js.map +1 -0
- package/lib/module/hooks/useOnboardingState.js +29 -0
- package/lib/module/hooks/useOnboardingState.js.map +1 -0
- package/lib/module/index.js +96 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/layout/ScreenLayout.js +41 -0
- package/lib/module/layout/ScreenLayout.js.map +1 -0
- package/lib/module/localization/en/index.js +923 -0
- package/lib/module/localization/en/index.js.map +1 -0
- package/lib/module/localization/fr/index.js +897 -0
- package/lib/module/localization/fr/index.js.map +1 -0
- package/lib/module/localization/index.js +52 -0
- package/lib/module/localization/index.js.map +1 -0
- package/lib/module/localization/pt-br/index.js +880 -0
- package/lib/module/localization/pt-br/index.js.map +1 -0
- package/lib/module/modules/history/context/historyManager.js +248 -0
- package/lib/module/modules/history/context/historyManager.js.map +1 -0
- package/lib/module/modules/history/index.js +2 -0
- package/lib/module/modules/history/index.js.map +1 -0
- package/lib/module/modules/history/navigation/HistoryStack.js +31 -0
- package/lib/module/modules/history/navigation/HistoryStack.js.map +1 -0
- package/lib/module/modules/history/services/queue.service.js +23 -0
- package/lib/module/modules/history/services/queue.service.js.map +1 -0
- package/lib/module/modules/history/types/index.js +32 -0
- package/lib/module/modules/history/types/index.js.map +1 -0
- package/lib/module/modules/history/ui/HistoryPage.js +119 -0
- package/lib/module/modules/history/ui/HistoryPage.js.map +1 -0
- package/lib/module/modules/history/ui/HistorySettings.js +167 -0
- package/lib/module/modules/history/ui/HistorySettings.js.map +1 -0
- package/lib/module/modules/history/ui/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/lib/module/modules/history/ui/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/lib/module/modules/history/ui/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/lib/module/modules/history/ui/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/lib/module/modules/history/ui/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/lib/module/modules/history/ui/assets/img/IconChevronRight.svg +3 -0
- package/lib/module/modules/history/ui/components/BulletPoint.js +46 -0
- package/lib/module/modules/history/ui/components/BulletPoint.js.map +1 -0
- package/lib/module/modules/history/ui/components/HistoryListItem.js +269 -0
- package/lib/module/modules/history/ui/components/HistoryListItem.js.map +1 -0
- package/lib/module/modules/history/ui/components/HistoryMenu.js +23 -0
- package/lib/module/modules/history/ui/components/HistoryMenu.js.map +1 -0
- package/lib/module/modules/history/ui/components/SingleSelectBlock.js +57 -0
- package/lib/module/modules/history/ui/components/SingleSelectBlock.js.map +1 -0
- package/lib/module/modules/openid/components/CredentialRowCard.js +78 -0
- package/lib/module/modules/openid/components/CredentialRowCard.js.map +1 -0
- package/lib/module/modules/openid/components/OpenIDCredentialCard.js +225 -0
- package/lib/module/modules/openid/components/OpenIDCredentialCard.js.map +1 -0
- package/lib/module/modules/openid/context/OpenIDCredentialRecordProvider.js +221 -0
- package/lib/module/modules/openid/context/OpenIDCredentialRecordProvider.js.map +1 -0
- package/lib/module/modules/openid/display.js +357 -0
- package/lib/module/modules/openid/display.js.map +1 -0
- package/lib/module/modules/openid/displayProof.js +48 -0
- package/lib/module/modules/openid/displayProof.js.map +1 -0
- package/lib/module/modules/openid/hooks/openid.js +81 -0
- package/lib/module/modules/openid/hooks/openid.js.map +1 -0
- package/lib/module/modules/openid/metadata.js +30 -0
- package/lib/module/modules/openid/metadata.js.map +1 -0
- package/lib/module/modules/openid/offerResolve.js +179 -0
- package/lib/module/modules/openid/offerResolve.js.map +1 -0
- package/lib/module/modules/openid/resolverProof.js +233 -0
- package/lib/module/modules/openid/resolverProof.js.map +1 -0
- package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js +206 -0
- package/lib/module/modules/openid/screens/OpenIDCredentialDetails.js.map +1 -0
- package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js +170 -0
- package/lib/module/modules/openid/screens/OpenIDCredentialOffer.js.map +1 -0
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js +266 -0
- package/lib/module/modules/openid/screens/OpenIDProofPresentation.js.map +1 -0
- package/lib/module/modules/openid/types.js +7 -0
- package/lib/module/modules/openid/types.js.map +1 -0
- package/lib/module/modules/openid/utils/utils.js +118 -0
- package/lib/module/modules/openid/utils/utils.js.map +1 -0
- package/lib/module/navigators/ConnectStack.js +58 -0
- package/lib/module/navigators/ConnectStack.js.map +1 -0
- package/lib/module/navigators/ContactStack.js +96 -0
- package/lib/module/navigators/ContactStack.js.map +1 -0
- package/lib/module/navigators/CredentialStack.js +34 -0
- package/lib/module/navigators/CredentialStack.js.map +1 -0
- package/lib/module/navigators/DeliveryStack.js +70 -0
- package/lib/module/navigators/DeliveryStack.js.map +1 -0
- package/lib/module/navigators/HomeStack.js +35 -0
- package/lib/module/navigators/HomeStack.js.map +1 -0
- package/lib/module/navigators/MainStack.js +135 -0
- package/lib/module/navigators/MainStack.js.map +1 -0
- package/lib/module/navigators/NotificationStack.js +62 -0
- package/lib/module/navigators/NotificationStack.js.map +1 -0
- package/lib/module/navigators/OnboardingScreens.js +109 -0
- package/lib/module/navigators/OnboardingScreens.js.map +1 -0
- package/lib/module/navigators/OnboardingStack.js +136 -0
- package/lib/module/navigators/OnboardingStack.js.map +1 -0
- package/lib/module/navigators/ProofRequestStack.js +108 -0
- package/lib/module/navigators/ProofRequestStack.js.map +1 -0
- package/lib/module/navigators/RootStack.js +59 -0
- package/lib/module/navigators/RootStack.js.map +1 -0
- package/lib/module/navigators/SettingStack.js +148 -0
- package/lib/module/navigators/SettingStack.js.map +1 -0
- package/lib/module/navigators/TabStack.js +294 -0
- package/lib/module/navigators/TabStack.js.map +1 -0
- package/lib/module/navigators/defaultLayoutOptions.js +17 -0
- package/lib/module/navigators/defaultLayoutOptions.js.map +1 -0
- package/lib/module/navigators/defaultStackOptions.js +87 -0
- package/lib/module/navigators/defaultStackOptions.js.map +1 -0
- package/lib/module/navigators/index.js +14 -0
- package/lib/module/navigators/index.js.map +1 -0
- package/lib/module/onboarding.js +87 -0
- package/lib/module/onboarding.js.map +1 -0
- package/lib/module/screens/AttemptLockout.js +152 -0
- package/lib/module/screens/AttemptLockout.js.map +1 -0
- package/lib/module/screens/AutoLock.js +134 -0
- package/lib/module/screens/AutoLock.js.map +1 -0
- package/lib/module/screens/Chat.js +141 -0
- package/lib/module/screens/Chat.js.map +1 -0
- package/lib/module/screens/Connection.js +357 -0
- package/lib/module/screens/Connection.js.map +1 -0
- package/lib/module/screens/ContactDetails.js +300 -0
- package/lib/module/screens/ContactDetails.js.map +1 -0
- package/lib/module/screens/CredentialDetails.js +400 -0
- package/lib/module/screens/CredentialDetails.js.map +1 -0
- package/lib/module/screens/CredentialOffer.js +302 -0
- package/lib/module/screens/CredentialOffer.js.map +1 -0
- package/lib/module/screens/CredentialOfferAccept.js +164 -0
- package/lib/module/screens/CredentialOfferAccept.js.map +1 -0
- package/lib/module/screens/DataRetention.js +107 -0
- package/lib/module/screens/DataRetention.js.map +1 -0
- package/lib/module/screens/Developer.js +295 -0
- package/lib/module/screens/Developer.js.map +1 -0
- package/lib/module/screens/Home.js +147 -0
- package/lib/module/screens/Home.js.map +1 -0
- package/lib/module/screens/Language.js +110 -0
- package/lib/module/screens/Language.js.map +1 -0
- package/lib/module/screens/ListContacts.js +112 -0
- package/lib/module/screens/ListContacts.js.map +1 -0
- package/lib/module/screens/ListCredentials.js +121 -0
- package/lib/module/screens/ListCredentials.js.map +1 -0
- package/lib/module/screens/ListProofRequests.js +158 -0
- package/lib/module/screens/ListProofRequests.js.map +1 -0
- package/lib/module/screens/MobileVerifierLoading.js +107 -0
- package/lib/module/screens/MobileVerifierLoading.js.map +1 -0
- package/lib/module/screens/NameWallet.js +151 -0
- package/lib/module/screens/NameWallet.js.map +1 -0
- package/lib/module/screens/Onboarding.js +135 -0
- package/lib/module/screens/Onboarding.js.map +1 -0
- package/lib/module/screens/OnboardingPages.js +189 -0
- package/lib/module/screens/OnboardingPages.js.map +1 -0
- package/lib/module/screens/PINCreate.js +330 -0
- package/lib/module/screens/PINCreate.js.map +1 -0
- package/lib/module/screens/PINEnter.js +522 -0
- package/lib/module/screens/PINEnter.js.map +1 -0
- package/lib/module/screens/PINExplainer.js +90 -0
- package/lib/module/screens/PINExplainer.js.map +1 -0
- package/lib/module/screens/PasteUrl.js +133 -0
- package/lib/module/screens/PasteUrl.js.map +1 -0
- package/lib/module/screens/Preface.js +95 -0
- package/lib/module/screens/Preface.js.map +1 -0
- package/lib/module/screens/ProofChangeCredential.js +143 -0
- package/lib/module/screens/ProofChangeCredential.js.map +1 -0
- package/lib/module/screens/ProofDetails.js +324 -0
- package/lib/module/screens/ProofDetails.js.map +1 -0
- package/lib/module/screens/ProofRequest.js +677 -0
- package/lib/module/screens/ProofRequest.js.map +1 -0
- package/lib/module/screens/ProofRequestAccept.js +119 -0
- package/lib/module/screens/ProofRequestAccept.js.map +1 -0
- package/lib/module/screens/ProofRequestDetails.js +267 -0
- package/lib/module/screens/ProofRequestDetails.js.map +1 -0
- package/lib/module/screens/ProofRequestUsageHistory.js +155 -0
- package/lib/module/screens/ProofRequestUsageHistory.js.map +1 -0
- package/lib/module/screens/ProofRequesting.js +232 -0
- package/lib/module/screens/ProofRequesting.js.map +1 -0
- package/lib/module/screens/PushNotification.js +170 -0
- package/lib/module/screens/PushNotification.js.map +1 -0
- package/lib/module/screens/RenameContact.js +145 -0
- package/lib/module/screens/RenameContact.js.map +1 -0
- package/lib/module/screens/Scan.js +114 -0
- package/lib/module/screens/Scan.js.map +1 -0
- package/lib/module/screens/ScanHelp.js +51 -0
- package/lib/module/screens/ScanHelp.js.map +1 -0
- package/lib/module/screens/Settings.js +442 -0
- package/lib/module/screens/Settings.js.map +1 -0
- package/lib/module/screens/Splash.js +84 -0
- package/lib/module/screens/Splash.js.map +1 -0
- package/lib/module/screens/Terms.js +136 -0
- package/lib/module/screens/Terms.js.map +1 -0
- package/lib/module/screens/Tours.js +100 -0
- package/lib/module/screens/Tours.js.map +1 -0
- package/lib/module/screens/UpdateAvailable.js +119 -0
- package/lib/module/screens/UpdateAvailable.js.map +1 -0
- package/lib/module/screens/UseBiometry.js +306 -0
- package/lib/module/screens/UseBiometry.js.map +1 -0
- package/lib/module/screens/WhatAreContacts.js +71 -0
- package/lib/module/screens/WhatAreContacts.js.map +1 -0
- package/lib/module/services/keychain.js +150 -0
- package/lib/module/services/keychain.js.map +1 -0
- package/lib/module/services/logger.js +63 -0
- package/lib/module/services/logger.js.map +1 -0
- package/lib/module/services/storage.js +122 -0
- package/lib/module/services/storage.js.map +1 -0
- package/lib/module/theme.js +879 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/module/types/attempt-lockout-config.js +2 -0
- package/lib/module/types/attempt-lockout-config.js.map +1 -0
- package/lib/module/types/attestation.js +8 -0
- package/lib/module/types/attestation.js.map +1 -0
- package/lib/module/types/chat.js +6 -0
- package/lib/module/types/chat.js.map +1 -0
- package/lib/module/types/config.js +2 -0
- package/lib/module/types/config.js.map +1 -0
- package/lib/module/types/contact-details.js +2 -0
- package/lib/module/types/contact-details.js.map +1 -0
- package/lib/module/types/credential-list-footer.js +2 -0
- package/lib/module/types/credential-list-footer.js.map +1 -0
- package/lib/module/types/credential-status.js +5 -0
- package/lib/module/types/credential-status.js.map +1 -0
- package/lib/module/types/credentials.js +2 -0
- package/lib/module/types/credentials.js.map +1 -0
- package/lib/module/types/decline.js +7 -0
- package/lib/module/types/decline.js.map +1 -0
- package/lib/module/types/error.js +24 -0
- package/lib/module/types/error.js.map +1 -0
- package/lib/module/types/fn.js +2 -0
- package/lib/module/types/fn.js.map +1 -0
- package/lib/module/types/genesis.js +2 -0
- package/lib/module/types/genesis.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/metadata.js +9 -0
- package/lib/module/types/metadata.js.map +1 -0
- package/lib/module/types/navigators.js +71 -0
- package/lib/module/types/navigators.js.map +1 -0
- package/lib/module/types/notification.js +2 -0
- package/lib/module/types/notification.js.map +1 -0
- package/lib/module/types/permissions.js +2 -0
- package/lib/module/types/permissions.js.map +1 -0
- package/lib/module/types/proof-items.js +2 -0
- package/lib/module/types/proof-items.js.map +1 -0
- package/lib/module/types/react-i18next.d.js +2 -0
- package/lib/module/types/react-i18next.d.js.map +1 -0
- package/lib/module/types/remove.js +10 -0
- package/lib/module/types/remove.js.map +1 -0
- package/lib/module/types/security.js +13 -0
- package/lib/module/types/security.js.map +1 -0
- package/lib/module/types/settings.js +2 -0
- package/lib/module/types/settings.js.map +1 -0
- package/lib/module/types/state.js +2 -0
- package/lib/module/types/state.js.map +1 -0
- package/lib/module/types/tour.js +16 -0
- package/lib/module/types/tour.js.map +1 -0
- package/lib/module/types/version-check.js +2 -0
- package/lib/module/types/version-check.js.map +1 -0
- package/lib/module/utils/PINCreationValidation.js +79 -0
- package/lib/module/utils/PINCreationValidation.js.map +1 -0
- package/lib/module/utils/agent.js +84 -0
- package/lib/module/utils/agent.js.map +1 -0
- package/lib/module/utils/anonCredsProofRequestMapper.js +148 -0
- package/lib/module/utils/anonCredsProofRequestMapper.js.map +1 -0
- package/lib/module/utils/contacts.js +33 -0
- package/lib/module/utils/contacts.js.map +1 -0
- package/lib/module/utils/cred-def.js +29 -0
- package/lib/module/utils/cred-def.js.map +1 -0
- package/lib/module/utils/credential.js +31 -0
- package/lib/module/utils/credential.js.map +1 -0
- package/lib/module/utils/crypto.js +13 -0
- package/lib/module/utils/crypto.js.map +1 -0
- package/lib/module/utils/fileCache.js +118 -0
- package/lib/module/utils/fileCache.js.map +1 -0
- package/lib/module/utils/helpers.js +1101 -0
- package/lib/module/utils/helpers.js.map +1 -0
- package/lib/module/utils/luminance.js +34 -0
- package/lib/module/utils/luminance.js.map +1 -0
- package/lib/module/utils/migration.js +36 -0
- package/lib/module/utils/migration.js.map +1 -0
- package/lib/module/utils/network.js +47 -0
- package/lib/module/utils/network.js.map +1 -0
- package/lib/module/utils/oca.js +104 -0
- package/lib/module/utils/oca.js.map +1 -0
- package/lib/module/utils/parsers.js +74 -0
- package/lib/module/utils/parsers.js.map +1 -0
- package/lib/module/utils/proofBundle.js +171 -0
- package/lib/module/utils/proofBundle.js.map +1 -0
- package/lib/module/utils/schema.js +25 -0
- package/lib/module/utils/schema.js.map +1 -0
- package/lib/module/utils/testable.js +11 -0
- package/lib/module/utils/testable.js.map +1 -0
- package/lib/typescript/cli.d.ts +2 -0
- package/lib/typescript/cli.d.ts.map +1 -0
- package/lib/typescript/react-native.config.d.ts +2 -0
- package/lib/typescript/react-native.config.d.ts.map +1 -0
- package/lib/typescript/src/App.d.ts +5 -0
- package/lib/typescript/src/App.d.ts.map +1 -0
- package/lib/typescript/src/animated-components.d.ts +12 -0
- package/lib/typescript/src/animated-components.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/ButtonLoading.d.ts +4 -0
- package/lib/typescript/src/components/animated/ButtonLoading.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/ConnectionLoading.d.ts +4 -0
- package/lib/typescript/src/components/animated/ConnectionLoading.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/CredentialAdded.d.ts +4 -0
- package/lib/typescript/src/components/animated/CredentialAdded.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/CredentialPending.d.ts +4 -0
- package/lib/typescript/src/components/animated/CredentialPending.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/LoadingIndicator.d.ts +4 -0
- package/lib/typescript/src/components/animated/LoadingIndicator.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/PresentationLoading.d.ts +4 -0
- package/lib/typescript/src/components/animated/PresentationLoading.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/RecordLoading.d.ts +8 -0
- package/lib/typescript/src/components/animated/RecordLoading.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/SendingProof.d.ts +4 -0
- package/lib/typescript/src/components/animated/SendingProof.d.ts.map +1 -0
- package/lib/typescript/src/components/animated/SentProof.d.ts +4 -0
- package/lib/typescript/src/components/animated/SentProof.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/Button-api.d.ts +33 -0
- package/lib/typescript/src/components/buttons/Button-api.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/Button.d.ts +8 -0
- package/lib/typescript/src/components/buttons/Button.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/HeaderHome.d.ts +4 -0
- package/lib/typescript/src/components/buttons/HeaderHome.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/IconButton.d.ts +17 -0
- package/lib/typescript/src/components/buttons/IconButton.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/InfoIcon.d.ts +7 -0
- package/lib/typescript/src/components/buttons/InfoIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/SettingsMenu.d.ts +4 -0
- package/lib/typescript/src/components/buttons/SettingsMenu.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/ToggleButton.d.ts +13 -0
- package/lib/typescript/src/components/buttons/ToggleButton.d.ts.map +1 -0
- package/lib/typescript/src/components/buttons/index.d.ts +4 -0
- package/lib/typescript/src/components/buttons/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/ActionSlider.d.ts +13 -0
- package/lib/typescript/src/components/chat/ActionSlider.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/ChatActions.d.ts +7 -0
- package/lib/typescript/src/components/chat/ChatActions.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/ChatBubble.d.ts +3 -0
- package/lib/typescript/src/components/chat/ChatBubble.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/ChatEvent.d.ts +10 -0
- package/lib/typescript/src/components/chat/ChatEvent.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/ChatMessage.d.ts +18 -0
- package/lib/typescript/src/components/chat/ChatMessage.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/MessageInput.d.ts +5 -0
- package/lib/typescript/src/components/chat/MessageInput.d.ts.map +1 -0
- package/lib/typescript/src/components/chat/index.d.ts +4 -0
- package/lib/typescript/src/components/chat/index.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/BulletPoint.d.ts +9 -0
- package/lib/typescript/src/components/inputs/BulletPoint.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/CheckBoxRow.d.ts +14 -0
- package/lib/typescript/src/components/inputs/CheckBoxRow.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/InlineErrorText.d.ts +14 -0
- package/lib/typescript/src/components/inputs/InlineErrorText.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/LimitedTextInput.d.ts +10 -0
- package/lib/typescript/src/components/inputs/LimitedTextInput.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/PINInput.d.ts +14 -0
- package/lib/typescript/src/components/inputs/PINInput.d.ts.map +1 -0
- package/lib/typescript/src/components/inputs/SingleSelectBlock.d.ts +13 -0
- package/lib/typescript/src/components/inputs/SingleSelectBlock.d.ts.map +1 -0
- package/lib/typescript/src/components/listItems/ContactCredentialListItem.d.ts +8 -0
- package/lib/typescript/src/components/listItems/ContactCredentialListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/listItems/ContactListItem.d.ts +11 -0
- package/lib/typescript/src/components/listItems/ContactListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/listItems/NotificationListItem.d.ts +19 -0
- package/lib/typescript/src/components/listItems/NotificationListItem.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ActivityLogLink.d.ts +4 -0
- package/lib/typescript/src/components/misc/ActivityLogLink.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/AvatarView.d.ts +9 -0
- package/lib/typescript/src/components/misc/AvatarView.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CardWatermark.d.ts +27 -0
- package/lib/typescript/src/components/misc/CardWatermark.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ConnectionAlert.d.ts +7 -0
- package/lib/typescript/src/components/misc/ConnectionAlert.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ConnectionImage.d.ts +9 -0
- package/lib/typescript/src/components/misc/ConnectionImage.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ContentGradient.d.ts +11 -0
- package/lib/typescript/src/components/misc/ContentGradient.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard.d.ts +24 -0
- package/lib/typescript/src/components/misc/CredentialCard.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard10.d.ts +44 -0
- package/lib/typescript/src/components/misc/CredentialCard10.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard11.d.ts +32 -0
- package/lib/typescript/src/components/misc/CredentialCard11.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard11ActionFooter.d.ts +11 -0
- package/lib/typescript/src/components/misc/CredentialCard11ActionFooter.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard11Issuer.d.ts +12 -0
- package/lib/typescript/src/components/misc/CredentialCard11Issuer.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/CredentialCard11Logo.d.ts +10 -0
- package/lib/typescript/src/components/misc/CredentialCard11Logo.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/EmptyList.d.ts +7 -0
- package/lib/typescript/src/components/misc/EmptyList.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/EmptyListContacts.d.ts +9 -0
- package/lib/typescript/src/components/misc/EmptyListContacts.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/InfoBox.d.ts +28 -0
- package/lib/typescript/src/components/misc/InfoBox.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/NoNewUpdates.d.ts +4 -0
- package/lib/typescript/src/components/misc/NoNewUpdates.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/PINCreateHeader.d.ts +6 -0
- package/lib/typescript/src/components/misc/PINCreateHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/Pagination.d.ts +23 -0
- package/lib/typescript/src/components/misc/Pagination.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/QRRenderer.d.ts +11 -0
- package/lib/typescript/src/components/misc/QRRenderer.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/QRScanner.d.ts +15 -0
- package/lib/typescript/src/components/misc/QRScanner.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/QRScannerTorch.d.ts +8 -0
- package/lib/typescript/src/components/misc/QRScannerTorch.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ScanCamera.d.ts +11 -0
- package/lib/typescript/src/components/misc/ScanCamera.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/ScanTab.d.ts +10 -0
- package/lib/typescript/src/components/misc/ScanTab.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/SharedProofData.d.ts +9 -0
- package/lib/typescript/src/components/misc/SharedProofData.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/UnorderedList.d.ts +7 -0
- package/lib/typescript/src/components/misc/UnorderedList.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/VerifierCredentialCard.d.ts +21 -0
- package/lib/typescript/src/components/misc/VerifierCredentialCard.d.ts.map +1 -0
- package/lib/typescript/src/components/misc/index.d.ts +3 -0
- package/lib/typescript/src/components/misc/index.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/AlertModal.d.ts +9 -0
- package/lib/typescript/src/components/modals/AlertModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/AppGuideModal.d.ts +14 -0
- package/lib/typescript/src/components/modals/AppGuideModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/CameraDisclosureModal.d.ts +7 -0
- package/lib/typescript/src/components/modals/CameraDisclosureModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/CommonRemoveModal.d.ts +12 -0
- package/lib/typescript/src/components/modals/CommonRemoveModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/DismissiblePopupModal.d.ts +12 -0
- package/lib/typescript/src/components/modals/DismissiblePopupModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/ErrorModal.d.ts +7 -0
- package/lib/typescript/src/components/modals/ErrorModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/ImageModal.d.ts +9 -0
- package/lib/typescript/src/components/modals/ImageModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/NetInfoModal.d.ts +9 -0
- package/lib/typescript/src/components/modals/NetInfoModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/NotificationModal.d.ts +17 -0
- package/lib/typescript/src/components/modals/NotificationModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/PopupModal.d.ts +15 -0
- package/lib/typescript/src/components/modals/PopupModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/ProofCancelModal.d.ts +9 -0
- package/lib/typescript/src/components/modals/ProofCancelModal.d.ts.map +1 -0
- package/lib/typescript/src/components/modals/SafeAreaModal.d.ts +8 -0
- package/lib/typescript/src/components/modals/SafeAreaModal.d.ts.map +1 -0
- package/lib/typescript/src/components/network/NetInfo.d.ts +3 -0
- package/lib/typescript/src/components/network/NetInfo.d.ts.map +1 -0
- package/lib/typescript/src/components/record/Record.d.ts +12 -0
- package/lib/typescript/src/components/record/Record.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordBinaryField.d.ts +9 -0
- package/lib/typescript/src/components/record/RecordBinaryField.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordDateIntField.d.ts +10 -0
- package/lib/typescript/src/components/record/RecordDateIntField.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordField.d.ts +22 -0
- package/lib/typescript/src/components/record/RecordField.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordFooter.d.ts +4 -0
- package/lib/typescript/src/components/record/RecordFooter.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordHeader.d.ts +4 -0
- package/lib/typescript/src/components/record/RecordHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/record/RecordRemove.d.ts +8 -0
- package/lib/typescript/src/components/record/RecordRemove.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/HeaderTitle.d.ts +7 -0
- package/lib/typescript/src/components/texts/HeaderTitle.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/HighlightTextBox.d.ts +7 -0
- package/lib/typescript/src/components/texts/HighlightTextBox.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/InfoTextBox.d.ts +14 -0
- package/lib/typescript/src/components/texts/InfoTextBox.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/Label.d.ts +9 -0
- package/lib/typescript/src/components/texts/Label.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/Link.d.ts +12 -0
- package/lib/typescript/src/components/texts/Link.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/Text.d.ts +9 -0
- package/lib/typescript/src/components/texts/Text.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/ThemedText.d.ts +16 -0
- package/lib/typescript/src/components/texts/ThemedText.d.ts.map +1 -0
- package/lib/typescript/src/components/texts/Title.d.ts +8 -0
- package/lib/typescript/src/components/texts/Title.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/BaseToast.d.ts +19 -0
- package/lib/typescript/src/components/toast/BaseToast.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/ToastConfig.d.ts +10 -0
- package/lib/typescript/src/components/toast/ToastConfig.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/AttachTourStep.d.ts +42 -0
- package/lib/typescript/src/components/tour/AttachTourStep.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/CredentialOfferTourSteps.d.ts +3 -0
- package/lib/typescript/src/components/tour/CredentialOfferTourSteps.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/CredentialsTourSteps.d.ts +3 -0
- package/lib/typescript/src/components/tour/CredentialsTourSteps.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/HomeTourSteps.d.ts +3 -0
- package/lib/typescript/src/components/tour/HomeTourSteps.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/ProofRequestTourSteps.d.ts +3 -0
- package/lib/typescript/src/components/tour/ProofRequestTourSteps.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/SpotCutout.d.ts +3 -0
- package/lib/typescript/src/components/tour/SpotCutout.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/TourBox.d.ts +48 -0
- package/lib/typescript/src/components/tour/TourBox.d.ts.map +1 -0
- package/lib/typescript/src/components/tour/TourOverlay.d.ts +18 -0
- package/lib/typescript/src/components/tour/TourOverlay.d.ts.map +1 -0
- package/lib/typescript/src/components/views/CredentialCardLogo.d.ts +9 -0
- package/lib/typescript/src/components/views/CredentialCardLogo.d.ts.map +1 -0
- package/lib/typescript/src/components/views/CredentialDetailPrimaryHeader.d.ts +11 -0
- package/lib/typescript/src/components/views/CredentialDetailPrimaryHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/views/CredentialDetailSecondaryHeader.d.ts +10 -0
- package/lib/typescript/src/components/views/CredentialDetailSecondaryHeader.d.ts.map +1 -0
- package/lib/typescript/src/components/views/HomeFooterView.d.ts +7 -0
- package/lib/typescript/src/components/views/HomeFooterView.d.ts.map +1 -0
- package/lib/typescript/src/components/views/HomeHeaderView.d.ts +7 -0
- package/lib/typescript/src/components/views/HomeHeaderView.d.ts.map +1 -0
- package/lib/typescript/src/components/views/KeyboardView.d.ts +6 -0
- package/lib/typescript/src/components/views/KeyboardView.d.ts.map +1 -0
- package/lib/typescript/src/components/views/LoadingPlaceholder.d.ts +17 -0
- package/lib/typescript/src/components/views/LoadingPlaceholder.d.ts.map +1 -0
- package/lib/typescript/src/components/views/LoadingView.d.ts +4 -0
- package/lib/typescript/src/components/views/LoadingView.d.ts.map +1 -0
- package/lib/typescript/src/components/views/ModularView.d.ts +9 -0
- package/lib/typescript/src/components/views/ModularView.d.ts.map +1 -0
- package/lib/typescript/src/components/views/ProgressBar.d.ts +9 -0
- package/lib/typescript/src/components/views/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/configs/ledgers/indy/index.d.ts +4 -0
- package/lib/typescript/src/configs/ledgers/indy/index.d.ts.map +1 -0
- package/lib/typescript/src/constants.d.ts +50 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/container-api.d.ts +244 -0
- package/lib/typescript/src/container-api.d.ts.map +1 -0
- package/lib/typescript/src/container-impl.d.ts +73 -0
- package/lib/typescript/src/container-impl.d.ts.map +1 -0
- package/lib/typescript/src/contexts/activity.d.ts +15 -0
- package/lib/typescript/src/contexts/activity.d.ts.map +1 -0
- package/lib/typescript/src/contexts/animated-components.d.ts +5 -0
- package/lib/typescript/src/contexts/animated-components.d.ts.map +1 -0
- package/lib/typescript/src/contexts/auth.d.ts +19 -0
- package/lib/typescript/src/contexts/auth.d.ts.map +1 -0
- package/lib/typescript/src/contexts/index.d.ts +4 -0
- package/lib/typescript/src/contexts/index.d.ts.map +1 -0
- package/lib/typescript/src/contexts/network.d.ts +12 -0
- package/lib/typescript/src/contexts/network.d.ts.map +1 -0
- package/lib/typescript/src/contexts/reducers/index.d.ts +3 -0
- package/lib/typescript/src/contexts/reducers/index.d.ts.map +1 -0
- package/lib/typescript/src/contexts/reducers/store.d.ts +109 -0
- package/lib/typescript/src/contexts/reducers/store.d.ts.map +1 -0
- package/lib/typescript/src/contexts/store.d.ts +16 -0
- package/lib/typescript/src/contexts/store.d.ts.map +1 -0
- package/lib/typescript/src/contexts/theme.d.ts +5 -0
- package/lib/typescript/src/contexts/theme.d.ts.map +1 -0
- package/lib/typescript/src/contexts/tour/tour-context.d.ts +123 -0
- package/lib/typescript/src/contexts/tour/tour-context.d.ts.map +1 -0
- package/lib/typescript/src/contexts/tour/tour-provider.d.ts +46 -0
- package/lib/typescript/src/contexts/tour/tour-provider.d.ts.map +1 -0
- package/lib/typescript/src/hooks/bundle-resolver.d.ts +8 -0
- package/lib/typescript/src/hooks/bundle-resolver.d.ts.map +1 -0
- package/lib/typescript/src/hooks/chat-messages.d.ts +11 -0
- package/lib/typescript/src/hooks/chat-messages.d.ts.map +1 -0
- package/lib/typescript/src/hooks/connections.d.ts +5 -0
- package/lib/typescript/src/hooks/connections.d.ts.map +1 -0
- package/lib/typescript/src/hooks/credential-card-styles.d.ts +309 -0
- package/lib/typescript/src/hooks/credential-card-styles.d.ts.map +1 -0
- package/lib/typescript/src/hooks/credentials.d.ts +3 -0
- package/lib/typescript/src/hooks/credentials.d.ts.map +1 -0
- package/lib/typescript/src/hooks/deep-links.d.ts +2 -0
- package/lib/typescript/src/hooks/deep-links.d.ts.map +1 -0
- package/lib/typescript/src/hooks/initialize-agent.d.ts +7 -0
- package/lib/typescript/src/hooks/initialize-agent.d.ts.map +1 -0
- package/lib/typescript/src/hooks/notifications.d.ts +10 -0
- package/lib/typescript/src/hooks/notifications.d.ts.map +1 -0
- package/lib/typescript/src/hooks/oob.d.ts +3 -0
- package/lib/typescript/src/hooks/oob.d.ts.map +1 -0
- package/lib/typescript/src/hooks/proof-request-templates.d.ts +4 -0
- package/lib/typescript/src/hooks/proof-request-templates.d.ts.map +1 -0
- package/lib/typescript/src/hooks/proofs.d.ts +4 -0
- package/lib/typescript/src/hooks/proofs.d.ts.map +1 -0
- package/lib/typescript/src/hooks/screen-capture.d.ts +30 -0
- package/lib/typescript/src/hooks/screen-capture.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useOnboardingState.d.ts +15 -0
- package/lib/typescript/src/hooks/useOnboardingState.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +113 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/layout/ScreenLayout.d.ts +16 -0
- package/lib/typescript/src/layout/ScreenLayout.d.ts.map +1 -0
- package/lib/typescript/src/localization/en/index.d.ts +920 -0
- package/lib/typescript/src/localization/en/index.d.ts.map +1 -0
- package/lib/typescript/src/localization/fr/index.d.ts +896 -0
- package/lib/typescript/src/localization/fr/index.d.ts.map +1 -0
- package/lib/typescript/src/localization/index.d.ts +18 -0
- package/lib/typescript/src/localization/index.d.ts.map +1 -0
- package/lib/typescript/src/localization/pt-br/index.d.ts +879 -0
- package/lib/typescript/src/localization/pt-br/index.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/context/historyManager.d.ts +40 -0
- package/lib/typescript/src/modules/history/context/historyManager.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/index.d.ts +3 -0
- package/lib/typescript/src/modules/history/index.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/navigation/HistoryStack.d.ts +4 -0
- package/lib/typescript/src/modules/history/navigation/HistoryStack.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/services/queue.service.d.ts +15 -0
- package/lib/typescript/src/modules/history/services/queue.service.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/types/index.d.ts +85 -0
- package/lib/typescript/src/modules/history/types/index.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/HistoryPage.d.ts +7 -0
- package/lib/typescript/src/modules/history/ui/HistoryPage.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts +9 -0
- package/lib/typescript/src/modules/history/ui/HistorySettings.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/components/BulletPoint.d.ts +9 -0
- package/lib/typescript/src/modules/history/ui/components/BulletPoint.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/components/HistoryListItem.d.ts +8 -0
- package/lib/typescript/src/modules/history/ui/components/HistoryListItem.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/components/HistoryMenu.d.ts +4 -0
- package/lib/typescript/src/modules/history/ui/components/HistoryMenu.d.ts.map +1 -0
- package/lib/typescript/src/modules/history/ui/components/SingleSelectBlock.d.ts +11 -0
- package/lib/typescript/src/modules/history/ui/components/SingleSelectBlock.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/components/CredentialRowCard.d.ts +13 -0
- package/lib/typescript/src/modules/openid/components/CredentialRowCard.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/components/OpenIDCredentialCard.d.ts +14 -0
- package/lib/typescript/src/modules/openid/components/OpenIDCredentialCard.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/context/OpenIDCredentialRecordProvider.d.ts +29 -0
- package/lib/typescript/src/modules/openid/context/OpenIDCredentialRecordProvider.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/display.d.ts +33 -0
- package/lib/typescript/src/modules/openid/display.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/displayProof.d.ts +31 -0
- package/lib/typescript/src/modules/openid/displayProof.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/hooks/openid.d.ts +9 -0
- package/lib/typescript/src/modules/openid/hooks/openid.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/metadata.d.ts +28 -0
- package/lib/typescript/src/modules/openid/metadata.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/offerResolve.d.ts +37 -0
- package/lib/typescript/src/modules/openid/offerResolve.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/resolverProof.d.ts +39 -0
- package/lib/typescript/src/modules/openid/resolverProof.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDCredentialDetails.d.ts +11 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDCredentialDetails.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDCredentialOffer.d.ts +7 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDCredentialOffer.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDProofPresentation.d.ts +6 -0
- package/lib/typescript/src/modules/openid/screens/OpenIDProofPresentation.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/types.d.ts +89 -0
- package/lib/typescript/src/modules/openid/types.d.ts.map +1 -0
- package/lib/typescript/src/modules/openid/utils/utils.d.ts +24 -0
- package/lib/typescript/src/modules/openid/utils/utils.d.ts.map +1 -0
- package/lib/typescript/src/navigators/ConnectStack.d.ts +4 -0
- package/lib/typescript/src/navigators/ConnectStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/ContactStack.d.ts +4 -0
- package/lib/typescript/src/navigators/ContactStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/CredentialStack.d.ts +4 -0
- package/lib/typescript/src/navigators/CredentialStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/DeliveryStack.d.ts +4 -0
- package/lib/typescript/src/navigators/DeliveryStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/HomeStack.d.ts +4 -0
- package/lib/typescript/src/navigators/HomeStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/MainStack.d.ts +4 -0
- package/lib/typescript/src/navigators/MainStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/NotificationStack.d.ts +4 -0
- package/lib/typescript/src/navigators/NotificationStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/OnboardingScreens.d.ts +23 -0
- package/lib/typescript/src/navigators/OnboardingScreens.d.ts.map +1 -0
- package/lib/typescript/src/navigators/OnboardingStack.d.ts +4 -0
- package/lib/typescript/src/navigators/OnboardingStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/ProofRequestStack.d.ts +4 -0
- package/lib/typescript/src/navigators/ProofRequestStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/RootStack.d.ts +4 -0
- package/lib/typescript/src/navigators/RootStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/SettingStack.d.ts +4 -0
- package/lib/typescript/src/navigators/SettingStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/TabStack.d.ts +4 -0
- package/lib/typescript/src/navigators/TabStack.d.ts.map +1 -0
- package/lib/typescript/src/navigators/defaultLayoutOptions.d.ts +3 -0
- package/lib/typescript/src/navigators/defaultLayoutOptions.d.ts.map +1 -0
- package/lib/typescript/src/navigators/defaultStackOptions.d.ts +6 -0
- package/lib/typescript/src/navigators/defaultStackOptions.d.ts.map +1 -0
- package/lib/typescript/src/navigators/index.d.ts +14 -0
- package/lib/typescript/src/navigators/index.d.ts.map +1 -0
- package/lib/typescript/src/onboarding.d.ts +15 -0
- package/lib/typescript/src/onboarding.d.ts.map +1 -0
- package/lib/typescript/src/screens/AttemptLockout.d.ts +4 -0
- package/lib/typescript/src/screens/AttemptLockout.d.ts.map +1 -0
- package/lib/typescript/src/screens/AutoLock.d.ts +4 -0
- package/lib/typescript/src/screens/AutoLock.d.ts.map +1 -0
- package/lib/typescript/src/screens/Chat.d.ts +7 -0
- package/lib/typescript/src/screens/Chat.d.ts.map +1 -0
- package/lib/typescript/src/screens/Connection.d.ts +7 -0
- package/lib/typescript/src/screens/Connection.d.ts.map +1 -0
- package/lib/typescript/src/screens/ContactDetails.d.ts +7 -0
- package/lib/typescript/src/screens/ContactDetails.d.ts.map +1 -0
- package/lib/typescript/src/screens/CredentialDetails.d.ts +7 -0
- package/lib/typescript/src/screens/CredentialDetails.d.ts.map +1 -0
- package/lib/typescript/src/screens/CredentialOffer.d.ts +8 -0
- package/lib/typescript/src/screens/CredentialOffer.d.ts.map +1 -0
- package/lib/typescript/src/screens/CredentialOfferAccept.d.ts +9 -0
- package/lib/typescript/src/screens/CredentialOfferAccept.d.ts.map +1 -0
- package/lib/typescript/src/screens/DataRetention.d.ts +4 -0
- package/lib/typescript/src/screens/DataRetention.d.ts.map +1 -0
- package/lib/typescript/src/screens/Developer.d.ts +4 -0
- package/lib/typescript/src/screens/Developer.d.ts.map +1 -0
- package/lib/typescript/src/screens/Home.d.ts +7 -0
- package/lib/typescript/src/screens/Home.d.ts.map +1 -0
- package/lib/typescript/src/screens/Language.d.ts +9 -0
- package/lib/typescript/src/screens/Language.d.ts.map +1 -0
- package/lib/typescript/src/screens/ListContacts.d.ts +9 -0
- package/lib/typescript/src/screens/ListContacts.d.ts.map +1 -0
- package/lib/typescript/src/screens/ListCredentials.d.ts +4 -0
- package/lib/typescript/src/screens/ListCredentials.d.ts.map +1 -0
- package/lib/typescript/src/screens/ListProofRequests.d.ts +7 -0
- package/lib/typescript/src/screens/ListProofRequests.d.ts.map +1 -0
- package/lib/typescript/src/screens/MobileVerifierLoading.d.ts +7 -0
- package/lib/typescript/src/screens/MobileVerifierLoading.d.ts.map +1 -0
- package/lib/typescript/src/screens/NameWallet.d.ts +4 -0
- package/lib/typescript/src/screens/NameWallet.d.ts.map +1 -0
- package/lib/typescript/src/screens/Onboarding.d.ts +22 -0
- package/lib/typescript/src/screens/Onboarding.d.ts.map +1 -0
- package/lib/typescript/src/screens/OnboardingPages.d.ts +24 -0
- package/lib/typescript/src/screens/OnboardingPages.d.ts.map +1 -0
- package/lib/typescript/src/screens/PINCreate.d.ts +11 -0
- package/lib/typescript/src/screens/PINCreate.d.ts.map +1 -0
- package/lib/typescript/src/screens/PINEnter.d.ts +14 -0
- package/lib/typescript/src/screens/PINEnter.d.ts.map +1 -0
- package/lib/typescript/src/screens/PINExplainer.d.ts +7 -0
- package/lib/typescript/src/screens/PINExplainer.d.ts.map +1 -0
- package/lib/typescript/src/screens/PasteUrl.d.ts +7 -0
- package/lib/typescript/src/screens/PasteUrl.d.ts.map +1 -0
- package/lib/typescript/src/screens/Preface.d.ts +4 -0
- package/lib/typescript/src/screens/Preface.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofChangeCredential.d.ts +7 -0
- package/lib/typescript/src/screens/ProofChangeCredential.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofDetails.d.ts +7 -0
- package/lib/typescript/src/screens/ProofDetails.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofRequest.d.ts +8 -0
- package/lib/typescript/src/screens/ProofRequest.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofRequestAccept.d.ts +9 -0
- package/lib/typescript/src/screens/ProofRequestAccept.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofRequestDetails.d.ts +7 -0
- package/lib/typescript/src/screens/ProofRequestDetails.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofRequestUsageHistory.d.ts +7 -0
- package/lib/typescript/src/screens/ProofRequestUsageHistory.d.ts.map +1 -0
- package/lib/typescript/src/screens/ProofRequesting.d.ts +7 -0
- package/lib/typescript/src/screens/ProofRequesting.d.ts.map +1 -0
- package/lib/typescript/src/screens/PushNotification.d.ts +7 -0
- package/lib/typescript/src/screens/PushNotification.d.ts.map +1 -0
- package/lib/typescript/src/screens/RenameContact.d.ts +7 -0
- package/lib/typescript/src/screens/RenameContact.d.ts.map +1 -0
- package/lib/typescript/src/screens/Scan.d.ts +7 -0
- package/lib/typescript/src/screens/Scan.d.ts.map +1 -0
- package/lib/typescript/src/screens/ScanHelp.d.ts +4 -0
- package/lib/typescript/src/screens/ScanHelp.d.ts.map +1 -0
- package/lib/typescript/src/screens/Settings.d.ts +7 -0
- package/lib/typescript/src/screens/Settings.d.ts.map +1 -0
- package/lib/typescript/src/screens/Splash.d.ts +9 -0
- package/lib/typescript/src/screens/Splash.d.ts.map +1 -0
- package/lib/typescript/src/screens/Terms.d.ts +5 -0
- package/lib/typescript/src/screens/Terms.d.ts.map +1 -0
- package/lib/typescript/src/screens/Tours.d.ts +4 -0
- package/lib/typescript/src/screens/Tours.d.ts.map +1 -0
- package/lib/typescript/src/screens/UpdateAvailable.d.ts +8 -0
- package/lib/typescript/src/screens/UpdateAvailable.d.ts.map +1 -0
- package/lib/typescript/src/screens/UseBiometry.d.ts +4 -0
- package/lib/typescript/src/screens/UseBiometry.d.ts.map +1 -0
- package/lib/typescript/src/screens/WhatAreContacts.d.ts +8 -0
- package/lib/typescript/src/screens/WhatAreContacts.d.ts.map +1 -0
- package/lib/typescript/src/services/keychain.d.ts +24 -0
- package/lib/typescript/src/services/keychain.d.ts.map +1 -0
- package/lib/typescript/src/services/logger.d.ts +30 -0
- package/lib/typescript/src/services/logger.d.ts.map +1 -0
- package/lib/typescript/src/services/storage.d.ts +15 -0
- package/lib/typescript/src/services/storage.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +889 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/lib/typescript/src/types/attempt-lockout-config.d.ts +9 -0
- package/lib/typescript/src/types/attempt-lockout-config.d.ts.map +1 -0
- package/lib/typescript/src/types/attestation.d.ts +16 -0
- package/lib/typescript/src/types/attestation.d.ts.map +1 -0
- package/lib/typescript/src/types/chat.d.ts +5 -0
- package/lib/typescript/src/types/chat.d.ts.map +1 -0
- package/lib/typescript/src/types/config.d.ts +61 -0
- package/lib/typescript/src/types/config.d.ts.map +1 -0
- package/lib/typescript/src/types/contact-details.d.ts +6 -0
- package/lib/typescript/src/types/contact-details.d.ts.map +1 -0
- package/lib/typescript/src/types/credential-list-footer.d.ts +4 -0
- package/lib/typescript/src/types/credential-list-footer.d.ts.map +1 -0
- package/lib/typescript/src/types/credential-status.d.ts +4 -0
- package/lib/typescript/src/types/credential-status.d.ts.map +1 -0
- package/lib/typescript/src/types/credentials.d.ts +3 -0
- package/lib/typescript/src/types/credentials.d.ts.map +1 -0
- package/lib/typescript/src/types/decline.d.ts +6 -0
- package/lib/typescript/src/types/decline.d.ts.map +1 -0
- package/lib/typescript/src/types/error.d.ts +23 -0
- package/lib/typescript/src/types/error.d.ts.map +1 -0
- package/lib/typescript/src/types/fn.d.ts +3 -0
- package/lib/typescript/src/types/fn.d.ts.map +1 -0
- package/lib/typescript/src/types/genesis.d.ts +32 -0
- package/lib/typescript/src/types/genesis.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/types/metadata.d.ts +14 -0
- package/lib/typescript/src/types/metadata.d.ts.map +1 -0
- package/lib/typescript/src/types/navigators.d.ts +268 -0
- package/lib/typescript/src/types/navigators.d.ts.map +1 -0
- package/lib/typescript/src/types/notification.d.ts +23 -0
- package/lib/typescript/src/types/notification.d.ts.map +1 -0
- package/lib/typescript/src/types/permissions.d.ts +3 -0
- package/lib/typescript/src/types/permissions.d.ts.map +1 -0
- package/lib/typescript/src/types/proof-items.d.ts +31 -0
- package/lib/typescript/src/types/proof-items.d.ts.map +1 -0
- package/lib/typescript/src/types/remove.d.ts +9 -0
- package/lib/typescript/src/types/remove.d.ts.map +1 -0
- package/lib/typescript/src/types/security.d.ts +25 -0
- package/lib/typescript/src/types/security.d.ts.map +1 -0
- package/lib/typescript/src/types/settings.d.ts +26 -0
- package/lib/typescript/src/types/settings.d.ts.map +1 -0
- package/lib/typescript/src/types/state.d.ts +84 -0
- package/lib/typescript/src/types/state.d.ts.map +1 -0
- package/lib/typescript/src/types/tour.d.ts +17 -0
- package/lib/typescript/src/types/tour.d.ts.map +1 -0
- package/lib/typescript/src/types/version-check.d.ts +17 -0
- package/lib/typescript/src/types/version-check.d.ts.map +1 -0
- package/lib/typescript/src/utils/PINCreationValidation.d.ts +20 -0
- package/lib/typescript/src/utils/PINCreationValidation.d.ts.map +1 -0
- package/lib/typescript/src/utils/agent.d.ts +44 -0
- package/lib/typescript/src/utils/agent.d.ts.map +1 -0
- package/lib/typescript/src/utils/anonCredsProofRequestMapper.d.ts +32 -0
- package/lib/typescript/src/utils/anonCredsProofRequestMapper.d.ts.map +1 -0
- package/lib/typescript/src/utils/contacts.d.ts +9 -0
- package/lib/typescript/src/utils/contacts.d.ts.map +1 -0
- package/lib/typescript/src/utils/cred-def.d.ts +5 -0
- package/lib/typescript/src/utils/cred-def.d.ts.map +1 -0
- package/lib/typescript/src/utils/credential.d.ts +10 -0
- package/lib/typescript/src/utils/credential.d.ts.map +1 -0
- package/lib/typescript/src/utils/crypto.d.ts +2 -0
- package/lib/typescript/src/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/src/utils/fileCache.d.ts +26 -0
- package/lib/typescript/src/utils/fileCache.d.ts.map +1 -0
- package/lib/typescript/src/utils/helpers.d.ts +189 -0
- package/lib/typescript/src/utils/helpers.d.ts.map +1 -0
- package/lib/typescript/src/utils/luminance.d.ts +12 -0
- package/lib/typescript/src/utils/luminance.d.ts.map +1 -0
- package/lib/typescript/src/utils/migration.d.ts +3 -0
- package/lib/typescript/src/utils/migration.d.ts.map +1 -0
- package/lib/typescript/src/utils/network.d.ts +9 -0
- package/lib/typescript/src/utils/network.d.ts.map +1 -0
- package/lib/typescript/src/utils/oca.d.ts +15 -0
- package/lib/typescript/src/utils/oca.d.ts.map +1 -0
- package/lib/typescript/src/utils/parsers.d.ts +26 -0
- package/lib/typescript/src/utils/parsers.d.ts.map +1 -0
- package/lib/typescript/src/utils/proofBundle.d.ts +28 -0
- package/lib/typescript/src/utils/proofBundle.d.ts.map +1 -0
- package/lib/typescript/src/utils/schema.d.ts +11 -0
- package/lib/typescript/src/utils/schema.d.ts.map +1 -0
- package/lib/typescript/src/utils/testable.d.ts +3 -0
- package/lib/typescript/src/utils/testable.d.ts.map +1 -0
- package/package.json +227 -0
- package/src/App.tsx +76 -0
- package/src/animated-components.ts +30 -0
- package/src/assets/fonts/MaterialIcons.ttf +0 -0
- package/src/assets/icons/large-arrow.svg +5 -0
- package/src/assets/icons/pencil.svg +15 -0
- package/src/assets/icons/trash.svg +31 -0
- package/src/assets/img/Artwork_1024x1024.png +0 -0
- package/src/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/src/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/src/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/src/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/src/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/src/assets/img/IconChevronRight.svg +5 -0
- package/src/assets/img/activity-indicator-circle.svg +90 -0
- package/src/assets/img/app-lockout.svg +1 -0
- package/src/assets/img/biometrics.svg +74 -0
- package/src/assets/img/chat-loading.svg +1 -0
- package/src/assets/img/check-in-circle.svg +18 -0
- package/src/assets/img/connection-pending.svg +112 -0
- package/src/assets/img/contact-book.svg +21 -0
- package/src/assets/img/credential-card.svg +18 -0
- package/src/assets/img/credential-declined.svg +28 -0
- package/src/assets/img/credential-in-hand.svg +48 -0
- package/src/assets/img/credential-list.svg +60 -0
- package/src/assets/img/credential-pending.svg +96 -0
- package/src/assets/img/credential-success.svg +48 -0
- package/src/assets/img/delete-notification.svg +1 -0
- package/src/assets/img/empty-wallet.svg +23 -0
- package/src/assets/img/error-filled.svg +12 -0
- package/src/assets/img/exclamation-mark.svg +17 -0
- package/src/assets/img/home-center-img.svg +71 -0
- package/src/assets/img/icon-credential-offer-dark.svg +7 -0
- package/src/assets/img/icon-credential-offer-light.svg +7 -0
- package/src/assets/img/icon-info-recieved-dark.svg +8 -0
- package/src/assets/img/icon-info-recieved-light.svg +8 -0
- package/src/assets/img/icon-info-sent-dark.svg +8 -0
- package/src/assets/img/icon-info-sent-light.svg +8 -0
- package/src/assets/img/icon-proof-request-dark.svg +11 -0
- package/src/assets/img/icon-proof-request-light.svg +11 -0
- package/src/assets/img/information-received.svg +1 -0
- package/src/assets/img/logo-large.png +0 -0
- package/src/assets/img/logo-large@2x.png +0 -0
- package/src/assets/img/logo-large@3x.png +0 -0
- package/src/assets/img/logo.svg +15 -0
- package/src/assets/img/message-text-icon-outline.svg +1 -0
- package/src/assets/img/message-text-icon.svg +1 -0
- package/src/assets/img/no_information_shared.svg +36 -0
- package/src/assets/img/preface.svg +15 -0
- package/src/assets/img/proof-declined.svg +66 -0
- package/src/assets/img/proof-pending.svg +61 -0
- package/src/assets/img/proof-success.svg +72 -0
- package/src/assets/img/push-notifications.svg +1 -0
- package/src/assets/img/qrcode-scan-icon.svg +1 -0
- package/src/assets/img/scan-share.svg +102 -0
- package/src/assets/img/secure-check.svg +4 -0
- package/src/assets/img/secure-image.svg +64 -0
- package/src/assets/img/update-available.svg +26 -0
- package/src/assets/img/verifier-request-declined.svg +34 -0
- package/src/assets/img/wallet-back.svg +20 -0
- package/src/assets/img/wallet-front.svg +32 -0
- package/src/assets/img/wallet-icon-outline.svg +1 -0
- package/src/assets/img/wallet-icon.svg +1 -0
- package/src/assets/img/wallet.svg +43 -0
- package/src/assets/oca-bundles.json +174 -0
- package/src/components/animated/ButtonLoading.tsx +32 -0
- package/src/components/animated/ConnectionLoading.tsx +53 -0
- package/src/components/animated/CredentialAdded.tsx +72 -0
- package/src/components/animated/CredentialPending.tsx +63 -0
- package/src/components/animated/LoadingIndicator.tsx +49 -0
- package/src/components/animated/PresentationLoading.tsx +52 -0
- package/src/components/animated/RecordLoading.tsx +75 -0
- package/src/components/animated/SendingProof.tsx +53 -0
- package/src/components/animated/SentProof.tsx +72 -0
- package/src/components/buttons/Button-api.tsx +46 -0
- package/src/components/buttons/Button.tsx +95 -0
- package/src/components/buttons/HeaderHome.tsx +25 -0
- package/src/components/buttons/IconButton.tsx +91 -0
- package/src/components/buttons/InfoIcon.tsx +35 -0
- package/src/components/buttons/SettingsMenu.tsx +26 -0
- package/src/components/buttons/ToggleButton.tsx +93 -0
- package/src/components/buttons/index.ts +4 -0
- package/src/components/chat/ActionSlider.tsx +104 -0
- package/src/components/chat/ChatActions.tsx +23 -0
- package/src/components/chat/ChatBubble.tsx +20 -0
- package/src/components/chat/ChatEvent.tsx +31 -0
- package/src/components/chat/ChatMessage.tsx +142 -0
- package/src/components/chat/MessageInput.tsx +46 -0
- package/src/components/chat/index.ts +4 -0
- package/src/components/index.ts +4 -0
- package/src/components/inputs/BulletPoint.tsx +32 -0
- package/src/components/inputs/CheckBoxRow.tsx +67 -0
- package/src/components/inputs/InlineErrorText.tsx +60 -0
- package/src/components/inputs/LimitedTextInput.tsx +61 -0
- package/src/components/inputs/PINInput.tsx +138 -0
- package/src/components/inputs/SingleSelectBlock.tsx +53 -0
- package/src/components/listItems/ContactCredentialListItem.tsx +79 -0
- package/src/components/listItems/ContactListItem.tsx +123 -0
- package/src/components/listItems/NotificationListItem.tsx +514 -0
- package/src/components/misc/ActivityLogLink.tsx +34 -0
- package/src/components/misc/AvatarView.tsx +33 -0
- package/src/components/misc/CardWatermark.tsx +52 -0
- package/src/components/misc/ConnectionAlert.tsx +123 -0
- package/src/components/misc/ConnectionImage.tsx +45 -0
- package/src/components/misc/ContentGradient.tsx +40 -0
- package/src/components/misc/CredentialCard.tsx +158 -0
- package/src/components/misc/CredentialCard10.tsx +329 -0
- package/src/components/misc/CredentialCard11.tsx +678 -0
- package/src/components/misc/CredentialCard11ActionFooter.tsx +55 -0
- package/src/components/misc/CredentialCard11Issuer.tsx +74 -0
- package/src/components/misc/CredentialCard11Logo.tsx +61 -0
- package/src/components/misc/EmptyList.tsx +27 -0
- package/src/components/misc/EmptyListContacts.tsx +55 -0
- package/src/components/misc/InfoBox.tsx +281 -0
- package/src/components/misc/NoNewUpdates.tsx +38 -0
- package/src/components/misc/PINCreateHeader.tsx +25 -0
- package/src/components/misc/Pagination.tsx +114 -0
- package/src/components/misc/QRRenderer.tsx +53 -0
- package/src/components/misc/QRScanner.tsx +395 -0
- package/src/components/misc/QRScannerTorch.tsx +74 -0
- package/src/components/misc/ScanCamera.tsx +86 -0
- package/src/components/misc/ScanTab.tsx +45 -0
- package/src/components/misc/SharedProofData.tsx +98 -0
- package/src/components/misc/UnorderedList.tsx +28 -0
- package/src/components/misc/VerifierCredentialCard.tsx +378 -0
- package/src/components/misc/index.ts +2 -0
- package/src/components/modals/AlertModal.tsx +42 -0
- package/src/components/modals/AppGuideModal.tsx +142 -0
- package/src/components/modals/CameraDisclosureModal.tsx +126 -0
- package/src/components/modals/CommonRemoveModal.tsx +332 -0
- package/src/components/modals/DismissiblePopupModal.tsx +169 -0
- package/src/components/modals/ErrorModal.tsx +107 -0
- package/src/components/modals/ImageModal.tsx +80 -0
- package/src/components/modals/NetInfoModal.tsx +35 -0
- package/src/components/modals/NotificationModal.tsx +127 -0
- package/src/components/modals/PopupModal.tsx +56 -0
- package/src/components/modals/ProofCancelModal.tsx +79 -0
- package/src/components/modals/SafeAreaModal.tsx +17 -0
- package/src/components/network/NetInfo.tsx +36 -0
- package/src/components/record/Record.tsx +100 -0
- package/src/components/record/RecordBinaryField.tsx +55 -0
- package/src/components/record/RecordDateIntField.tsx +63 -0
- package/src/components/record/RecordField.tsx +154 -0
- package/src/components/record/RecordFooter.tsx +17 -0
- package/src/components/record/RecordHeader.tsx +17 -0
- package/src/components/record/RecordRemove.tsx +66 -0
- package/src/components/texts/HeaderTitle.tsx +25 -0
- package/src/components/texts/HighlightTextBox.tsx +41 -0
- package/src/components/texts/InfoTextBox.tsx +129 -0
- package/src/components/texts/Label.tsx +51 -0
- package/src/components/texts/Link.tsx +41 -0
- package/src/components/texts/Text.tsx +21 -0
- package/src/components/texts/ThemedText.tsx +24 -0
- package/src/components/texts/Title.tsx +25 -0
- package/src/components/toast/BaseToast.tsx +128 -0
- package/src/components/toast/ToastConfig.tsx +21 -0
- package/src/components/tour/AttachTourStep.tsx +73 -0
- package/src/components/tour/CredentialOfferTourSteps.tsx +41 -0
- package/src/components/tour/CredentialsTourSteps.tsx +41 -0
- package/src/components/tour/HomeTourSteps.tsx +104 -0
- package/src/components/tour/ProofRequestTourSteps.tsx +41 -0
- package/src/components/tour/SpotCutout.tsx +65 -0
- package/src/components/tour/TourBox.tsx +255 -0
- package/src/components/tour/TourOverlay.tsx +134 -0
- package/src/components/views/CredentialCardLogo.tsx +77 -0
- package/src/components/views/CredentialDetailPrimaryHeader.tsx +107 -0
- package/src/components/views/CredentialDetailSecondaryHeader.tsx +60 -0
- package/src/components/views/HomeFooterView.tsx +110 -0
- package/src/components/views/HomeHeaderView.tsx +12 -0
- package/src/components/views/KeyboardView.tsx +27 -0
- package/src/components/views/LoadingPlaceholder.tsx +168 -0
- package/src/components/views/LoadingView.tsx +29 -0
- package/src/components/views/ModularView.tsx +35 -0
- package/src/components/views/ProgressBar.tsx +53 -0
- package/src/configs/ledgers/indy/index.ts +8 -0
- package/src/configs/ledgers/indy/ledgers.json +51 -0
- package/src/constants.ts +108 -0
- package/src/container-api.ts +229 -0
- package/src/container-impl.ts +235 -0
- package/src/contexts/activity.tsx +170 -0
- package/src/contexts/animated-components.ts +9 -0
- package/src/contexts/auth.tsx +190 -0
- package/src/contexts/index.ts +3 -0
- package/src/contexts/network.tsx +81 -0
- package/src/contexts/reducers/index.ts +3 -0
- package/src/contexts/reducers/store.ts +676 -0
- package/src/contexts/store.tsx +100 -0
- package/src/contexts/theme.ts +9 -0
- package/src/contexts/tour/tour-context.tsx +160 -0
- package/src/contexts/tour/tour-provider.tsx +160 -0
- package/src/hooks/bundle-resolver.ts +95 -0
- package/src/hooks/chat-messages.tsx +263 -0
- package/src/hooks/connections.ts +37 -0
- package/src/hooks/credential-card-styles.ts +144 -0
- package/src/hooks/credentials.ts +11 -0
- package/src/hooks/deep-links.ts +51 -0
- package/src/hooks/initialize-agent.ts +158 -0
- package/src/hooks/notifications.ts +108 -0
- package/src/hooks/oob.ts +17 -0
- package/src/hooks/proof-request-templates.ts +40 -0
- package/src/hooks/proofs.ts +32 -0
- package/src/hooks/screen-capture.ts +52 -0
- package/src/hooks/useOnboardingState.ts +46 -0
- package/src/index.ts +225 -0
- package/src/layout/ScreenLayout.tsx +53 -0
- package/src/localization/en/index.ts +921 -0
- package/src/localization/fr/index.ts +897 -0
- package/src/localization/index.ts +66 -0
- package/src/localization/pt-br/index.ts +880 -0
- package/src/modules/history/context/historyManager.tsx +247 -0
- package/src/modules/history/index.ts +2 -0
- package/src/modules/history/navigation/HistoryStack.tsx +29 -0
- package/src/modules/history/services/queue.service.tsx +31 -0
- package/src/modules/history/types/index.ts +92 -0
- package/src/modules/history/ui/HistoryPage.tsx +133 -0
- package/src/modules/history/ui/HistorySettings.tsx +184 -0
- package/src/modules/history/ui/assets/img/HistoryCardAcceptedIcon.svg +4 -0
- package/src/modules/history/ui/assets/img/HistoryCardExpiredIcon.svg +4 -0
- package/src/modules/history/ui/assets/img/HistoryCardRevokedIcon.svg +4 -0
- package/src/modules/history/ui/assets/img/HistoryInformationSentIcon.svg +4 -0
- package/src/modules/history/ui/assets/img/HistoryPinUpdatedIcon.svg +4 -0
- package/src/modules/history/ui/assets/img/IconChevronRight.svg +3 -0
- package/src/modules/history/ui/components/BulletPoint.tsx +49 -0
- package/src/modules/history/ui/components/HistoryListItem.tsx +251 -0
- package/src/modules/history/ui/components/HistoryMenu.tsx +25 -0
- package/src/modules/history/ui/components/SingleSelectBlock.tsx +72 -0
- package/src/modules/openid/components/CredentialRowCard.tsx +64 -0
- package/src/modules/openid/components/OpenIDCredentialCard.tsx +277 -0
- package/src/modules/openid/context/OpenIDCredentialRecordProvider.tsx +296 -0
- package/src/modules/openid/display.tsx +464 -0
- package/src/modules/openid/displayProof.tsx +86 -0
- package/src/modules/openid/hooks/openid.tsx +111 -0
- package/src/modules/openid/metadata.tsx +53 -0
- package/src/modules/openid/offerResolve.tsx +281 -0
- package/src/modules/openid/resolverProof.tsx +286 -0
- package/src/modules/openid/screens/OpenIDCredentialDetails.tsx +214 -0
- package/src/modules/openid/screens/OpenIDCredentialOffer.tsx +191 -0
- package/src/modules/openid/screens/OpenIDProofPresentation.tsx +351 -0
- package/src/modules/openid/types.tsx +103 -0
- package/src/modules/openid/utils/utils.tsx +133 -0
- package/src/navigators/ConnectStack.tsx +68 -0
- package/src/navigators/ContactStack.tsx +97 -0
- package/src/navigators/CredentialStack.tsx +39 -0
- package/src/navigators/DeliveryStack.tsx +74 -0
- package/src/navigators/HomeStack.tsx +37 -0
- package/src/navigators/MainStack.tsx +122 -0
- package/src/navigators/NotificationStack.tsx +74 -0
- package/src/navigators/OnboardingScreens.ts +152 -0
- package/src/navigators/OnboardingStack.tsx +197 -0
- package/src/navigators/ProofRequestStack.tsx +113 -0
- package/src/navigators/RootStack.tsx +65 -0
- package/src/navigators/SettingStack.tsx +165 -0
- package/src/navigators/TabStack.tsx +303 -0
- package/src/navigators/defaultLayoutOptions.tsx +17 -0
- package/src/navigators/defaultStackOptions.tsx +84 -0
- package/src/navigators/index.ts +27 -0
- package/src/onboarding.ts +83 -0
- package/src/screens/AttemptLockout.tsx +153 -0
- package/src/screens/AutoLock.tsx +140 -0
- package/src/screens/Chat.tsx +131 -0
- package/src/screens/Connection.tsx +394 -0
- package/src/screens/ContactDetails.tsx +333 -0
- package/src/screens/CredentialDetails.tsx +429 -0
- package/src/screens/CredentialOffer.tsx +334 -0
- package/src/screens/CredentialOfferAccept.tsx +189 -0
- package/src/screens/DataRetention.tsx +91 -0
- package/src/screens/Developer.tsx +287 -0
- package/src/screens/Home.tsx +173 -0
- package/src/screens/Language.tsx +97 -0
- package/src/screens/ListContacts.tsx +112 -0
- package/src/screens/ListCredentials.tsx +135 -0
- package/src/screens/ListProofRequests.tsx +148 -0
- package/src/screens/MobileVerifierLoading.tsx +106 -0
- package/src/screens/NameWallet.tsx +160 -0
- package/src/screens/Onboarding.tsx +162 -0
- package/src/screens/OnboardingPages.tsx +212 -0
- package/src/screens/PINCreate.tsx +412 -0
- package/src/screens/PINEnter.tsx +628 -0
- package/src/screens/PINExplainer.tsx +85 -0
- package/src/screens/PasteUrl.tsx +140 -0
- package/src/screens/Preface.tsx +78 -0
- package/src/screens/ProofChangeCredential.tsx +179 -0
- package/src/screens/ProofDetails.tsx +348 -0
- package/src/screens/ProofRequest.tsx +881 -0
- package/src/screens/ProofRequestAccept.tsx +133 -0
- package/src/screens/ProofRequestDetails.tsx +270 -0
- package/src/screens/ProofRequestUsageHistory.tsx +152 -0
- package/src/screens/ProofRequesting.tsx +245 -0
- package/src/screens/PushNotification.tsx +186 -0
- package/src/screens/RenameContact.tsx +155 -0
- package/src/screens/Scan.tsx +145 -0
- package/src/screens/ScanHelp.tsx +48 -0
- package/src/screens/Settings.tsx +416 -0
- package/src/screens/Splash.tsx +91 -0
- package/src/screens/Terms.tsx +137 -0
- package/src/screens/Tours.tsx +93 -0
- package/src/screens/UpdateAvailable.tsx +119 -0
- package/src/screens/UseBiometry.tsx +357 -0
- package/src/screens/WhatAreContacts.tsx +71 -0
- package/src/services/keychain.ts +181 -0
- package/src/services/logger.ts +68 -0
- package/src/services/storage.ts +136 -0
- package/src/theme.ts +1144 -0
- package/src/types/attempt-lockout-config.ts +8 -0
- package/src/types/attestation.ts +17 -0
- package/src/types/chat.ts +4 -0
- package/src/types/config.ts +64 -0
- package/src/types/contact-details.ts +5 -0
- package/src/types/credential-list-footer.ts +3 -0
- package/src/types/credential-status.ts +3 -0
- package/src/types/credentials.ts +7 -0
- package/src/types/decline.ts +5 -0
- package/src/types/error.ts +40 -0
- package/src/types/fn.ts +2 -0
- package/src/types/genesis.ts +35 -0
- package/src/types/index.ts +2 -0
- package/src/types/metadata.ts +16 -0
- package/src/types/navigators.ts +216 -0
- package/src/types/notification.ts +24 -0
- package/src/types/permissions.ts +2 -0
- package/src/types/proof-items.ts +32 -0
- package/src/types/react-i18next.d.ts +10 -0
- package/src/types/remove.ts +8 -0
- package/src/types/security.ts +32 -0
- package/src/types/settings.ts +28 -0
- package/src/types/state.ts +92 -0
- package/src/types/tour.ts +20 -0
- package/src/types/version-check.ts +18 -0
- package/src/utils/PINCreationValidation.ts +98 -0
- package/src/utils/agent.ts +129 -0
- package/src/utils/anonCredsProofRequestMapper.ts +205 -0
- package/src/utils/contacts.ts +59 -0
- package/src/utils/cred-def.ts +33 -0
- package/src/utils/credential.ts +37 -0
- package/src/utils/crypto.ts +12 -0
- package/src/utils/fileCache.ts +152 -0
- package/src/utils/helpers.ts +1281 -0
- package/src/utils/luminance.ts +40 -0
- package/src/utils/migration.ts +40 -0
- package/src/utils/network.tsx +55 -0
- package/src/utils/oca.ts +132 -0
- package/src/utils/parsers.tsx +111 -0
- package/src/utils/proofBundle.ts +220 -0
- package/src/utils/schema.ts +28 -0
- package/src/utils/testable.ts +17 -0
|
@@ -0,0 +1,1281 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnonCredsCredentialInfo,
|
|
3
|
+
AnonCredsCredentialsForProofRequest,
|
|
4
|
+
AnonCredsPredicateType,
|
|
5
|
+
AnonCredsProofRequest,
|
|
6
|
+
AnonCredsProofRequestRestriction,
|
|
7
|
+
AnonCredsRequestedAttribute,
|
|
8
|
+
AnonCredsRequestedAttributeMatch,
|
|
9
|
+
AnonCredsRequestedPredicate,
|
|
10
|
+
AnonCredsRequestedPredicateMatch,
|
|
11
|
+
getCredentialsForAnonCredsProofRequest,
|
|
12
|
+
} from '@credo-ts/anoncreds'
|
|
13
|
+
import {
|
|
14
|
+
Agent,
|
|
15
|
+
BasicMessageRecord,
|
|
16
|
+
ConnectionRecord,
|
|
17
|
+
CredentialExchangeRecord,
|
|
18
|
+
CredentialState,
|
|
19
|
+
HandshakeProtocol,
|
|
20
|
+
ProofExchangeRecord,
|
|
21
|
+
ProofState,
|
|
22
|
+
parseDid,
|
|
23
|
+
OutOfBandRecord,
|
|
24
|
+
CredentialPreviewAttribute,
|
|
25
|
+
OutOfBandRole,
|
|
26
|
+
} from '@credo-ts/core'
|
|
27
|
+
import { BasicMessageRole } from '@credo-ts/core/build/modules/basic-messages/BasicMessageRole'
|
|
28
|
+
import { useConnectionById } from '@credo-ts/react-hooks'
|
|
29
|
+
import { BrandingOverlay, CaptureBaseAttributeType } from '@bifold/oca'
|
|
30
|
+
import { Attribute, CredentialOverlay, Predicate } from '@bifold/oca/build/legacy'
|
|
31
|
+
import { Buffer } from 'buffer'
|
|
32
|
+
import moment from 'moment'
|
|
33
|
+
import { parseUrl } from 'query-string'
|
|
34
|
+
import { ReactNode } from 'react'
|
|
35
|
+
import { TFunction } from 'react-i18next'
|
|
36
|
+
import { DeviceEventEmitter } from 'react-native'
|
|
37
|
+
|
|
38
|
+
import { EventTypes, domain } from '../constants'
|
|
39
|
+
import { i18n } from '../localization/index'
|
|
40
|
+
import { BifoldLogger } from '../services/logger'
|
|
41
|
+
import { Role } from '../types/chat'
|
|
42
|
+
import { BifoldError } from '../types/error'
|
|
43
|
+
import { Screens, Stacks } from '../types/navigators'
|
|
44
|
+
import {
|
|
45
|
+
CredentialDataForProof,
|
|
46
|
+
ProofCredentialAttributes,
|
|
47
|
+
ProofCredentialItems,
|
|
48
|
+
ProofCredentialPredicates,
|
|
49
|
+
} from '../types/proof-items'
|
|
50
|
+
import { ChildFn } from '../types/tour'
|
|
51
|
+
|
|
52
|
+
import { BifoldAgent } from './agent'
|
|
53
|
+
import {
|
|
54
|
+
createAnonCredsProofRequest,
|
|
55
|
+
filterInvalidProofRequestMatches,
|
|
56
|
+
getDescriptorMetadata,
|
|
57
|
+
} from './anonCredsProofRequestMapper'
|
|
58
|
+
import { parseCredDefFromId } from './cred-def'
|
|
59
|
+
import { isOpenIdCredentialOffer, isOpenIdPresentationRequest } from './parsers'
|
|
60
|
+
|
|
61
|
+
export { parsedCredDefNameFromCredential } from './cred-def'
|
|
62
|
+
|
|
63
|
+
export { parsedCredDefName } from './cred-def'
|
|
64
|
+
export { parsedSchema } from './schema'
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Generates a numerical hash based on a given string
|
|
68
|
+
* @see https://stackoverflow.com/questions/3426404/create-a-hexadecimal-colour-based-on-a-string-with-javascript
|
|
69
|
+
* @param { string } s given string
|
|
70
|
+
* @returns { number } numerical hash value
|
|
71
|
+
*/
|
|
72
|
+
export const hashCode = (s: string): number => {
|
|
73
|
+
return s.split('').reduce((hash, char) => char.charCodeAt(0) + ((hash << 5) - hash), 0)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Generates a pseudorandom number between 0 and 1 based on a seed
|
|
78
|
+
* @see https://gist.github.com/tommyettinger/46a874533244883189143505d203312c
|
|
79
|
+
* @see https://stackoverflow.com/questions/521295/seeding-the-random-number-generator-in-javascript
|
|
80
|
+
* @param { number } seed any number
|
|
81
|
+
* @returns { number } pseudorandom number between 0 and 1
|
|
82
|
+
*/
|
|
83
|
+
const mulberry32 = (seed: number) => {
|
|
84
|
+
let t = (seed += 0x6d2b79f5)
|
|
85
|
+
t = Math.imul(t ^ (t >>> 15), t | 1)
|
|
86
|
+
t ^= t + Math.imul(t ^ (t >>> 7), t | 61)
|
|
87
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Converts a numerical hash into a hexidecimal color string
|
|
92
|
+
* @see https://helderesteves.com/generating-random-colors-js/#Generating_random_dark_colors
|
|
93
|
+
* @param { number } hash numerical hash value (generated by hashCode function above)
|
|
94
|
+
* @returns { string } hexidecimal string eg. #32d3cc
|
|
95
|
+
*/
|
|
96
|
+
export const hashToRGBA = (hash: number) => {
|
|
97
|
+
let color = '#'
|
|
98
|
+
const colorRangeUpperBound = 256
|
|
99
|
+
|
|
100
|
+
// once for r, g, b
|
|
101
|
+
for (let i = 0; i < 3; i++) {
|
|
102
|
+
// append a pseudorandom two-char hexidecimal value from the lower half of the color spectrum (to limit to darker colors)
|
|
103
|
+
color += ('0' + Math.floor((mulberry32(hash + i) * colorRangeUpperBound) / 2).toString(16)).slice(-2)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return color
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @param time
|
|
111
|
+
* @param params see below
|
|
112
|
+
* shortMonth: whether to use Jun in place of June, Mar in place of March for example (overridden by `format`)
|
|
113
|
+
* format: an optional custom moment format string to create the formatted date from
|
|
114
|
+
* includeHour: whether to add the hour and minute and am/pm. eg 9:32 pm (overridden by `chatFormat` and `trim`)
|
|
115
|
+
* chatFormat: whether to style the date to appear like a chat message timestamp eg. '7 minutes ago' or 'Just now'
|
|
116
|
+
* trim: if true, if it's the same day the date will be trimmed to just the hour, if it's the same year then the year will be trimmed from the date
|
|
117
|
+
* eg. if the current year is 2023, February 12, 2023 will be trimmed to February 12
|
|
118
|
+
* @returns formatted time string
|
|
119
|
+
*/
|
|
120
|
+
export function formatTime(
|
|
121
|
+
time: Date,
|
|
122
|
+
params?: { shortMonth?: boolean; format?: string; includeHour?: boolean; chatFormat?: boolean; trim?: boolean }
|
|
123
|
+
): string {
|
|
124
|
+
const getMonthKey = 'MMMM'
|
|
125
|
+
const momentTime = moment(time)
|
|
126
|
+
const monthKey = momentTime.format(getMonthKey)
|
|
127
|
+
const customMonthFormatRe = /M+/
|
|
128
|
+
const shortMonth = params?.shortMonth
|
|
129
|
+
const format = params?.format
|
|
130
|
+
const includeHour = params?.includeHour
|
|
131
|
+
const chatFormat = params?.chatFormat
|
|
132
|
+
const trim = params?.trim
|
|
133
|
+
const shortDateFormatMaskLength = 3
|
|
134
|
+
const millisecondsAgo = moment().diff(momentTime)
|
|
135
|
+
const lessThanAMinuteAgo = millisecondsAgo / 1000 / 60 < 1
|
|
136
|
+
const lessThanAnHourAgo = millisecondsAgo / 1000 / 60 / 60 < 1
|
|
137
|
+
const now = new Date()
|
|
138
|
+
const sameYear = time.getFullYear() === now.getFullYear()
|
|
139
|
+
const sameDay = time.getDate() === now.getDate() && time.getMonth() === now.getMonth() && sameYear
|
|
140
|
+
const isPortuguese = i18n.resolvedLanguage === 'pt-BR'
|
|
141
|
+
const isNonEnglish = i18n.resolvedLanguage === 'fr' || isPortuguese
|
|
142
|
+
const hoursFormat = isNonEnglish ? 'HH:mm' : 'h:mm a'
|
|
143
|
+
// for the shortened approach eg. in chat bubbles
|
|
144
|
+
if (chatFormat) {
|
|
145
|
+
if (lessThanAMinuteAgo) {
|
|
146
|
+
return i18n.t('Date.JustNow')
|
|
147
|
+
}
|
|
148
|
+
if (lessThanAnHourAgo) {
|
|
149
|
+
const minutesAgo = Math.floor(millisecondsAgo / 1000 / 60)
|
|
150
|
+
return minutesAgo === 1 ? `${i18n.t('Date.MinuteAgo')}` : `${i18n.t('Date.MinutesAgo', { count: minutesAgo })}`
|
|
151
|
+
}
|
|
152
|
+
if (sameDay) {
|
|
153
|
+
return momentTime.format(hoursFormat)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
let formatString = i18n.t('Date.ShortFormat')
|
|
158
|
+
let formattedTime = ''
|
|
159
|
+
// if sameDay and abbreviated
|
|
160
|
+
if (sameDay && trim) {
|
|
161
|
+
return momentTime.format(hoursFormat)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (format) {
|
|
165
|
+
formatString = format
|
|
166
|
+
formattedTime = momentTime.format(format)
|
|
167
|
+
} else {
|
|
168
|
+
if (!shortMonth) {
|
|
169
|
+
formatString = i18n.t('Date.LongFormat')
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// if translation fails
|
|
173
|
+
if (formatString === 'Date.ShortFormat' || formatString === 'Date.LongFormat' || formatString === undefined) {
|
|
174
|
+
formatString = 'MMM D'
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// if trim is true, don't include the year for same year times
|
|
178
|
+
formattedTime =
|
|
179
|
+
trim && sameYear
|
|
180
|
+
? momentTime.format(formatString)
|
|
181
|
+
: // if non-english, don't include comma between year and month
|
|
182
|
+
isNonEnglish
|
|
183
|
+
? `${momentTime.format(formatString)} ${momentTime.format('YYYY')}`
|
|
184
|
+
: `${momentTime.format(formatString)}, ${momentTime.format('YYYY')}`
|
|
185
|
+
if (includeHour) {
|
|
186
|
+
formattedTime = `${formattedTime}, ${momentTime.format(hoursFormat)}`
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const customMonthFormat = formatString?.match(customMonthFormatRe)?.[0]
|
|
191
|
+
|
|
192
|
+
if (customMonthFormat) {
|
|
193
|
+
let monthReplacement = ''
|
|
194
|
+
const monthReplacementKey = momentTime.format(customMonthFormat)
|
|
195
|
+
if (customMonthFormat.length === shortDateFormatMaskLength) {
|
|
196
|
+
// then we know we're dealing with a short date format: 'MMM'
|
|
197
|
+
monthReplacement = i18n.t(`Date.MonthShort.${monthKey}`)
|
|
198
|
+
} else if (customMonthFormat.length > shortDateFormatMaskLength) {
|
|
199
|
+
// then we know we're working with a long date format: 'MMMM'
|
|
200
|
+
monthReplacement = i18n.t(`Date.MonthLong.${monthKey}`)
|
|
201
|
+
}
|
|
202
|
+
// if translation doesn't work
|
|
203
|
+
if (monthReplacement === `Date.MonthLong.${monthKey}` || monthReplacement === `Date.MonthShort.${monthKey}`) {
|
|
204
|
+
monthReplacement = monthReplacementKey
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (monthReplacement) {
|
|
208
|
+
formattedTime = formattedTime.replace(monthReplacementKey, monthReplacement)
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return formattedTime
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// need to use rolling b64 encode/decode to prevent hermes from 2048 byte truncation
|
|
215
|
+
export function b64encode(inp: string) {
|
|
216
|
+
return (
|
|
217
|
+
inp
|
|
218
|
+
.match(/.{1,3}/g)
|
|
219
|
+
?.map((chunk) => {
|
|
220
|
+
return Buffer.from(chunk).toString('base64')
|
|
221
|
+
})
|
|
222
|
+
.join('') ?? ''
|
|
223
|
+
)
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function b64decode(b64: string) {
|
|
227
|
+
return (
|
|
228
|
+
b64
|
|
229
|
+
.match(/.{1,4}/g)
|
|
230
|
+
?.map((chunk) => {
|
|
231
|
+
if (chunk.length < 4) {
|
|
232
|
+
chunk += '='.repeat(4 - chunk.length)
|
|
233
|
+
}
|
|
234
|
+
return Buffer.from(chunk, 'base64').toString()
|
|
235
|
+
})
|
|
236
|
+
.join('') ?? ''
|
|
237
|
+
)
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function formatIfDate(format: string | undefined, value: string | number | null) {
|
|
241
|
+
const potentialDate = value ? value.toString() : null
|
|
242
|
+
if (format === 'YYYYMMDD' && potentialDate && potentialDate.length === format.length) {
|
|
243
|
+
const year = potentialDate.substring(0, 4)
|
|
244
|
+
const month = potentialDate.substring(4, 6)
|
|
245
|
+
const day = potentialDate.substring(6, 8)
|
|
246
|
+
// NOTE: JavaScript counts months from 0 to 11: January = 0, December = 11.
|
|
247
|
+
const date = new Date(Number(year), Number(month) - 1, Number(day))
|
|
248
|
+
if (!isNaN(date.getDate())) {
|
|
249
|
+
return formatTime(date, { shortMonth: true })
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return value
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export function getConnectionName(
|
|
256
|
+
connection: ConnectionRecord | undefined,
|
|
257
|
+
alternateContactNames: Record<string, string>
|
|
258
|
+
): string {
|
|
259
|
+
return (
|
|
260
|
+
(connection?.id && alternateContactNames[connection?.id]) ||
|
|
261
|
+
connection?.theirLabel ||
|
|
262
|
+
connection?.alias ||
|
|
263
|
+
connection?.id ||
|
|
264
|
+
''
|
|
265
|
+
)
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export function useCredentialConnectionLabel(credential?: CredentialExchangeRecord) {
|
|
269
|
+
const connection = useConnectionById(credential?.connectionId ?? '')
|
|
270
|
+
|
|
271
|
+
if (!credential) {
|
|
272
|
+
return ''
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (credential.connectionId) {
|
|
276
|
+
return connection?.alias || connection?.theirLabel || credential.connectionId
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return 'Unknown Contact'
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export function useConnectionImageUrl(connectionId: string) {
|
|
283
|
+
const connection = useConnectionById(connectionId)
|
|
284
|
+
if (!connection) {
|
|
285
|
+
return undefined
|
|
286
|
+
}
|
|
287
|
+
return connection.imageUrl ?? undefined
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export function firstValidCredential(
|
|
291
|
+
fields: AnonCredsRequestedAttributeMatch[] | AnonCredsRequestedPredicateMatch[],
|
|
292
|
+
revoked = true
|
|
293
|
+
): AnonCredsRequestedAttributeMatch | AnonCredsRequestedPredicateMatch | null {
|
|
294
|
+
if (!fields.length) {
|
|
295
|
+
return null
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
let first = null
|
|
299
|
+
const firstNonRevoked = fields.filter((field) => !field.revoked)[0]
|
|
300
|
+
if (firstNonRevoked) {
|
|
301
|
+
first = firstNonRevoked
|
|
302
|
+
} else if (fields.length && revoked) {
|
|
303
|
+
first = fields[0]
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (!first?.credentialInfo) {
|
|
307
|
+
return null
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return first
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* A sorting function for the Array `sort()` function
|
|
315
|
+
* @param a First retrieved credential
|
|
316
|
+
* @param b Second retrieved credential
|
|
317
|
+
*/
|
|
318
|
+
export const credentialSortFn = (a: any, b: any) => {
|
|
319
|
+
if (a.revoked && !b.revoked) {
|
|
320
|
+
return 1
|
|
321
|
+
} else if (!a.revoked && b.revoked) {
|
|
322
|
+
return -1
|
|
323
|
+
} else {
|
|
324
|
+
return b.timestamp - a.timestamp
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const credNameFromRestriction = (queries?: AnonCredsProofRequestRestriction[]): string => {
|
|
329
|
+
let schema_name = ''
|
|
330
|
+
let cred_def_id = ''
|
|
331
|
+
let schema_id = ''
|
|
332
|
+
queries?.forEach((query) => {
|
|
333
|
+
schema_name = (query?.schema_name as string) ?? schema_name
|
|
334
|
+
cred_def_id = (query?.cred_def_id as string) ?? cred_def_id
|
|
335
|
+
schema_id = (query?.schema_id as string) ?? schema_id
|
|
336
|
+
})
|
|
337
|
+
if (schema_name && (schema_name.toLowerCase() !== 'default' || schema_name.toLowerCase() !== 'credential')) {
|
|
338
|
+
return schema_name
|
|
339
|
+
} else {
|
|
340
|
+
return parseCredDefFromId(cred_def_id, schema_id)
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export const credDefIdFromRestrictions = (queries?: AnonCredsProofRequestRestriction[]): string => {
|
|
345
|
+
return queries?.filter((rstr) => rstr.cred_def_id)[0]?.cred_def_id ?? ''
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export const schemaIdFromRestrictions = (queries?: AnonCredsProofRequestRestriction[]): string => {
|
|
349
|
+
const rstrWithSchemaId = queries?.filter(
|
|
350
|
+
(rstr) => rstr.schema_id || (rstr.issuer_did && rstr.schema_name && rstr.schema_version)
|
|
351
|
+
)[0]
|
|
352
|
+
|
|
353
|
+
// the '2' here is the enum of the transaction type which, for schemas, is always 2
|
|
354
|
+
const schemaId = rstrWithSchemaId
|
|
355
|
+
? rstrWithSchemaId.schema_id ||
|
|
356
|
+
`${rstrWithSchemaId.issuer_did}:2:${rstrWithSchemaId.schema_name}:${rstrWithSchemaId.schema_version}`
|
|
357
|
+
: ''
|
|
358
|
+
return schemaId
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export const isDataUrl = (value: string | number | null) => {
|
|
362
|
+
return typeof value === 'string' && value.startsWith('data:image/')
|
|
363
|
+
}
|
|
364
|
+
export type Fields = Record<string, AnonCredsRequestedAttributeMatch[] | AnonCredsRequestedPredicateMatch[]>
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Retrieve current credentials info filtered by `credentialDefinitionId` if given.
|
|
368
|
+
* @param credDefId Credential Definition Id
|
|
369
|
+
* @returns Array of `AnonCredsCredentialInfo`
|
|
370
|
+
*/
|
|
371
|
+
export const getCredentialInfo = (credId: string, fields: Fields): AnonCredsCredentialInfo[] => {
|
|
372
|
+
const credentialInfo: AnonCredsCredentialInfo[] = []
|
|
373
|
+
|
|
374
|
+
Object.keys(fields).forEach((proofKey) => {
|
|
375
|
+
credentialInfo.push(...fields[proofKey].map((attr) => attr.credentialInfo))
|
|
376
|
+
})
|
|
377
|
+
|
|
378
|
+
return !credId ? credentialInfo : credentialInfo.filter((cred) => cred.credentialId === credId)
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Evaluate if given attribute value satisfies the predicate.
|
|
383
|
+
* @param attribute Credential attribute value
|
|
384
|
+
* @param pValue Predicate value
|
|
385
|
+
* @param pType Predicate type ({@link AnonCredsPredicateType})
|
|
386
|
+
* @returns `true`if predicate is satisfied, otherwise `false`
|
|
387
|
+
*/
|
|
388
|
+
const evaluateOperation = (attribute: number, pValue: number, pType: AnonCredsPredicateType): boolean => {
|
|
389
|
+
if (pType === '>=') {
|
|
390
|
+
return attribute >= pValue
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if (pType === '>') {
|
|
394
|
+
return attribute > pValue
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (pType === '<=') {
|
|
398
|
+
return attribute <= pValue
|
|
399
|
+
}
|
|
400
|
+
if (pType === '<') {
|
|
401
|
+
return attribute < pValue
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
return false
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Given proof credential items, evaluate and return its predicates, setting `satisfied` property.
|
|
409
|
+
* @param proofCredentialsItems
|
|
410
|
+
* @returns Array of evaluated predicates
|
|
411
|
+
*/
|
|
412
|
+
export const evaluatePredicates =
|
|
413
|
+
(fields: Fields, credId?: string) =>
|
|
414
|
+
(proofCredentialItems: ProofCredentialItems): Predicate[] => {
|
|
415
|
+
const predicates = proofCredentialItems.predicates
|
|
416
|
+
if (!predicates || predicates.length == 0) {
|
|
417
|
+
return []
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if ((credId && credId != proofCredentialItems.credId) || !proofCredentialItems.credId) {
|
|
421
|
+
return []
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const credentialAttributes = getCredentialInfo(proofCredentialItems.credId, fields).map((ci) => ci.attributes)
|
|
425
|
+
|
|
426
|
+
return predicates.map((predicate: Predicate) => {
|
|
427
|
+
const { pType: pType, pValue: pValue, name: field } = predicate
|
|
428
|
+
let satisfied = false
|
|
429
|
+
|
|
430
|
+
if (field) {
|
|
431
|
+
const attribute = (credentialAttributes.find((attr) => attr[field] != undefined) ?? {})[field]
|
|
432
|
+
|
|
433
|
+
if (attribute && pValue) {
|
|
434
|
+
satisfied = evaluateOperation(Number(attribute), Number(pValue), pType as AnonCredsPredicateType)
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
return { ...predicate, satisfied }
|
|
439
|
+
})
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// scans through requested attributes and records
|
|
443
|
+
// Builds and returns label: value attributes
|
|
444
|
+
// Flagging any attribute not found in wallet credentials
|
|
445
|
+
const addMissingDisplayAttributes = (
|
|
446
|
+
attrReq: AnonCredsRequestedAttribute,
|
|
447
|
+
records: CredentialExchangeRecord[]
|
|
448
|
+
): ProofCredentialAttributes => {
|
|
449
|
+
const { name, names, restrictions } = attrReq
|
|
450
|
+
const credName = credNameFromRestriction(restrictions)
|
|
451
|
+
const credDefId = credDefIdFromRestrictions(restrictions)
|
|
452
|
+
const schemaId = schemaIdFromRestrictions(restrictions)
|
|
453
|
+
|
|
454
|
+
//there is no credId in this context so use credName as a placeholder
|
|
455
|
+
const processedAttributes: ProofCredentialAttributes = {
|
|
456
|
+
credExchangeRecord: undefined,
|
|
457
|
+
altCredentials: [credName],
|
|
458
|
+
credId: credName,
|
|
459
|
+
schemaId,
|
|
460
|
+
credDefId,
|
|
461
|
+
credName: credName,
|
|
462
|
+
attributes: [] as Attribute[],
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// Filter records for requested schema id of credential definition id
|
|
466
|
+
const filteredCredentialRecords = records.filter(
|
|
467
|
+
(record: CredentialExchangeRecord) =>
|
|
468
|
+
getCredentialSchemaIdForRecord(record) === schemaId || getCredentialDefinitionIdForRecord(record) === credDefId
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
// for reach requested attribute
|
|
472
|
+
// scan through filtered credential attributes
|
|
473
|
+
// display any that are found
|
|
474
|
+
// flag any not found attributes with an error
|
|
475
|
+
for (const attributeName of [...(names ?? (name && [name]) ?? [])]) {
|
|
476
|
+
// filter through credential record attributes for a given name
|
|
477
|
+
const [attribute] = filteredCredentialRecords.map((item: CredentialExchangeRecord) => {
|
|
478
|
+
return item.credentialAttributes?.filter(
|
|
479
|
+
(attribute: CredentialPreviewAttribute) => attribute.name === attributeName
|
|
480
|
+
)
|
|
481
|
+
})
|
|
482
|
+
if (attribute && attribute.length > 0) {
|
|
483
|
+
// attribute found, display as expected
|
|
484
|
+
processedAttributes.attributes?.push(
|
|
485
|
+
new Attribute({
|
|
486
|
+
revoked: false,
|
|
487
|
+
credentialId: credName,
|
|
488
|
+
name: attributeName,
|
|
489
|
+
value: attribute[0].value,
|
|
490
|
+
hasError: false,
|
|
491
|
+
})
|
|
492
|
+
)
|
|
493
|
+
} else {
|
|
494
|
+
// no attribute found, flag this with an error
|
|
495
|
+
processedAttributes.attributes?.push(
|
|
496
|
+
new Attribute({
|
|
497
|
+
revoked: false,
|
|
498
|
+
credentialId: credName,
|
|
499
|
+
name: attributeName,
|
|
500
|
+
value: '',
|
|
501
|
+
hasError: true,
|
|
502
|
+
})
|
|
503
|
+
)
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
return processedAttributes
|
|
507
|
+
}
|
|
508
|
+
export const processProofAttributes = (
|
|
509
|
+
t: TFunction<'translation', undefined>,
|
|
510
|
+
request?: AnonCredsProofRequest,
|
|
511
|
+
credentials?: AnonCredsCredentialsForProofRequest, // credentials that 100% validate the proof request
|
|
512
|
+
credentialRecords?: CredentialExchangeRecord[], // all the credentials in the wallet
|
|
513
|
+
groupByReferent?: boolean
|
|
514
|
+
): { [key: string]: ProofCredentialAttributes } => {
|
|
515
|
+
const processedAttributes = {} as { [key: string]: ProofCredentialAttributes }
|
|
516
|
+
const requestedProofAttributes = request?.requested_attributes
|
|
517
|
+
const retrievedCredentialAttributes = credentials?.attributes
|
|
518
|
+
const requestNonRevoked = request?.non_revoked // non_revoked interval can sometimes be top level
|
|
519
|
+
|
|
520
|
+
// no proof or credential attributes, nothing to process, leave early
|
|
521
|
+
if (!requestedProofAttributes || !retrievedCredentialAttributes) {
|
|
522
|
+
return {}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
for (const key of Object.keys(retrievedCredentialAttributes)) {
|
|
526
|
+
const altCredentials = [...(retrievedCredentialAttributes[key] ?? [])]
|
|
527
|
+
.sort(credentialSortFn)
|
|
528
|
+
.map((cred) => cred.credentialId)
|
|
529
|
+
|
|
530
|
+
const credentialList = [...(retrievedCredentialAttributes[key] ?? [])].sort(credentialSortFn)
|
|
531
|
+
const { name, names, non_revoked, restrictions } = requestedProofAttributes[key]
|
|
532
|
+
|
|
533
|
+
// system assumes one of these values is present in a proof request
|
|
534
|
+
const proofCredDefId = credDefIdFromRestrictions(restrictions)
|
|
535
|
+
const proofSchemaId = schemaIdFromRestrictions(restrictions)
|
|
536
|
+
|
|
537
|
+
// No credentials satisfy proof request, process attribute errors
|
|
538
|
+
if (credentialList.length <= 0) {
|
|
539
|
+
const missingAttributes = addMissingDisplayAttributes(requestedProofAttributes[key], credentialRecords ?? [])
|
|
540
|
+
const missingCredGroupKey = groupByReferent ? key : missingAttributes.credName
|
|
541
|
+
if (!processedAttributes[missingCredGroupKey]) {
|
|
542
|
+
processedAttributes[missingCredGroupKey] = missingAttributes
|
|
543
|
+
} else {
|
|
544
|
+
processedAttributes[missingCredGroupKey].attributes?.push(...(missingAttributes.attributes ?? []))
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
//iterate over all credentials that satisfy the proof
|
|
548
|
+
for (const credential of credentialList) {
|
|
549
|
+
let credName = key
|
|
550
|
+
if (credential?.credentialInfo?.credentialDefinitionId || credential?.credentialInfo?.schemaId) {
|
|
551
|
+
credName = parseCredDefFromId(
|
|
552
|
+
credential?.credentialInfo?.credentialDefinitionId,
|
|
553
|
+
credential?.credentialInfo?.schemaId
|
|
554
|
+
)
|
|
555
|
+
}
|
|
556
|
+
let revoked = false
|
|
557
|
+
let credExchangeRecord = undefined
|
|
558
|
+
if (credential) {
|
|
559
|
+
credExchangeRecord = credentialRecords?.find(
|
|
560
|
+
(record) =>
|
|
561
|
+
record.credentials.map((cred) => cred.credentialRecordId).includes(credential.credentialId) ||
|
|
562
|
+
record.id === credential.credentialId
|
|
563
|
+
)
|
|
564
|
+
revoked = credExchangeRecord?.revocationNotification !== undefined
|
|
565
|
+
} else {
|
|
566
|
+
continue
|
|
567
|
+
}
|
|
568
|
+
for (const attributeName of [...(names ?? (name && [name]) ?? [])]) {
|
|
569
|
+
if (!processedAttributes[credential.credentialId]) {
|
|
570
|
+
// init processedAttributes object
|
|
571
|
+
processedAttributes[credential.credentialId] = {
|
|
572
|
+
credExchangeRecord,
|
|
573
|
+
altCredentials,
|
|
574
|
+
credId: credential?.credentialId,
|
|
575
|
+
schemaId: credential?.credentialInfo?.schemaId ?? proofSchemaId,
|
|
576
|
+
credDefId: credential?.credentialInfo?.credentialDefinitionId ?? proofCredDefId,
|
|
577
|
+
credName,
|
|
578
|
+
attributes: [],
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
const attributeValue = credential ? credential.credentialInfo.attributes[attributeName] : null
|
|
583
|
+
processedAttributes[credential.credentialId].attributes?.push(
|
|
584
|
+
new Attribute({
|
|
585
|
+
...requestedProofAttributes[key],
|
|
586
|
+
revoked,
|
|
587
|
+
credentialId: credential.credentialId,
|
|
588
|
+
name: attributeName,
|
|
589
|
+
value: attributeValue,
|
|
590
|
+
nonRevoked: requestNonRevoked ?? non_revoked,
|
|
591
|
+
})
|
|
592
|
+
)
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
return processedAttributes
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export const mergeAttributesAndPredicates = (
|
|
601
|
+
attributes: { [key: string]: ProofCredentialAttributes },
|
|
602
|
+
predicates: { [key: string]: ProofCredentialPredicates }
|
|
603
|
+
) => {
|
|
604
|
+
const merged: { [key: string]: ProofCredentialAttributes & ProofCredentialPredicates } = { ...attributes }
|
|
605
|
+
for (const [key, predicate] of Object.entries(predicates)) {
|
|
606
|
+
const existingEntry = merged[key]
|
|
607
|
+
if (existingEntry) {
|
|
608
|
+
const mergedAltCreds = existingEntry.altCredentials?.filter((credId: string) =>
|
|
609
|
+
predicate.altCredentials?.includes(credId)
|
|
610
|
+
)
|
|
611
|
+
merged[key] = { ...existingEntry, ...predicate }
|
|
612
|
+
merged[key].altCredentials = mergedAltCreds
|
|
613
|
+
} else {
|
|
614
|
+
merged[key] = predicate
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return merged
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const addMissingDisplayPredicates = (predReq: AnonCredsRequestedPredicate) => {
|
|
621
|
+
const { name, p_type: pType, p_value: pValue, restrictions } = predReq
|
|
622
|
+
|
|
623
|
+
const credName = credNameFromRestriction(restrictions)
|
|
624
|
+
const credDefId = credDefIdFromRestrictions(restrictions)
|
|
625
|
+
const schemaId = schemaIdFromRestrictions(restrictions)
|
|
626
|
+
|
|
627
|
+
//there is no credId in this context so use credName as a placeholder
|
|
628
|
+
const processedPredicates: ProofCredentialPredicates = {
|
|
629
|
+
credExchangeRecord: undefined,
|
|
630
|
+
altCredentials: [credName],
|
|
631
|
+
credId: credName,
|
|
632
|
+
schemaId,
|
|
633
|
+
credDefId,
|
|
634
|
+
credName: credName,
|
|
635
|
+
predicates: [] as Predicate[],
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
processedPredicates.predicates?.push(
|
|
639
|
+
new Predicate({
|
|
640
|
+
revoked: false,
|
|
641
|
+
credentialId: credName,
|
|
642
|
+
name: name,
|
|
643
|
+
pValue,
|
|
644
|
+
pType,
|
|
645
|
+
})
|
|
646
|
+
)
|
|
647
|
+
return processedPredicates
|
|
648
|
+
}
|
|
649
|
+
export const processProofPredicates = (
|
|
650
|
+
request?: AnonCredsProofRequest,
|
|
651
|
+
credentials?: AnonCredsCredentialsForProofRequest,
|
|
652
|
+
credentialRecords?: CredentialExchangeRecord[],
|
|
653
|
+
groupByReferent?: boolean
|
|
654
|
+
): { [key: string]: ProofCredentialPredicates } => {
|
|
655
|
+
const processedPredicates = {} as { [key: string]: ProofCredentialPredicates }
|
|
656
|
+
const requestedProofPredicates = request?.requested_predicates
|
|
657
|
+
const retrievedCredentialPredicates = credentials?.predicates
|
|
658
|
+
const requestNonRevoked = request?.non_revoked // // non_revoked interval can sometimes be top level
|
|
659
|
+
|
|
660
|
+
if (!requestedProofPredicates || !retrievedCredentialPredicates) {
|
|
661
|
+
return {}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
for (const key of Object.keys(retrievedCredentialPredicates)) {
|
|
665
|
+
const altCredentials = [...(retrievedCredentialPredicates[key] ?? [])]
|
|
666
|
+
.sort(credentialSortFn)
|
|
667
|
+
.map((cred) => cred.credentialId)
|
|
668
|
+
|
|
669
|
+
const credentialList = [...(retrievedCredentialPredicates[key] ?? [])].sort(credentialSortFn)
|
|
670
|
+
const { name, p_type: pType, p_value: pValue, non_revoked, restrictions } = requestedProofPredicates[key]
|
|
671
|
+
const proofCredDefId = credDefIdFromRestrictions(restrictions)
|
|
672
|
+
const proofSchemaId = schemaIdFromRestrictions(restrictions)
|
|
673
|
+
|
|
674
|
+
if (credentialList.length <= 0) {
|
|
675
|
+
const missingPredicates = addMissingDisplayPredicates(requestedProofPredicates[key])
|
|
676
|
+
const missingCredGroupKey = groupByReferent ? key : missingPredicates.credName
|
|
677
|
+
if (!processedPredicates[missingCredGroupKey]) {
|
|
678
|
+
processedPredicates[missingCredGroupKey] = missingPredicates
|
|
679
|
+
} else {
|
|
680
|
+
processedPredicates[missingCredGroupKey].predicates?.push(...(missingPredicates.predicates ?? []))
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
for (const credential of credentialList) {
|
|
685
|
+
let revoked = false
|
|
686
|
+
let credExchangeRecord = undefined
|
|
687
|
+
if (credential) {
|
|
688
|
+
credExchangeRecord = credentialRecords?.find(
|
|
689
|
+
(record) =>
|
|
690
|
+
record.credentials.map((cred) => cred.credentialRecordId).includes(credential.credentialId) ||
|
|
691
|
+
record.id === credential.credentialId
|
|
692
|
+
)
|
|
693
|
+
revoked = credExchangeRecord?.revocationNotification !== undefined
|
|
694
|
+
} else {
|
|
695
|
+
continue
|
|
696
|
+
}
|
|
697
|
+
const { credentialDefinitionId, schemaId } = { ...credential, ...credential?.credentialInfo }
|
|
698
|
+
|
|
699
|
+
const credNameRestriction = credNameFromRestriction(requestedProofPredicates[key]?.restrictions)
|
|
700
|
+
|
|
701
|
+
let credName = credNameRestriction ?? key
|
|
702
|
+
if (credential?.credentialInfo?.credentialDefinitionId || credential?.credentialInfo?.schemaId) {
|
|
703
|
+
credName = parseCredDefFromId(
|
|
704
|
+
credential?.credentialInfo?.credentialDefinitionId,
|
|
705
|
+
credential?.credentialInfo?.schemaId
|
|
706
|
+
)
|
|
707
|
+
}
|
|
708
|
+
if (!processedPredicates[credential.credentialId]) {
|
|
709
|
+
processedPredicates[credential.credentialId] = {
|
|
710
|
+
altCredentials,
|
|
711
|
+
credExchangeRecord,
|
|
712
|
+
credId: credential.credentialId,
|
|
713
|
+
schemaId: schemaId ?? proofSchemaId,
|
|
714
|
+
credDefId: credentialDefinitionId ?? proofCredDefId,
|
|
715
|
+
credName: credName,
|
|
716
|
+
predicates: [],
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
processedPredicates[credential.credentialId].predicates?.push(
|
|
721
|
+
new Predicate({
|
|
722
|
+
...requestedProofPredicates[key],
|
|
723
|
+
credentialId: credential?.credentialId,
|
|
724
|
+
name,
|
|
725
|
+
revoked,
|
|
726
|
+
pValue,
|
|
727
|
+
pType,
|
|
728
|
+
nonRevoked: requestNonRevoked ?? non_revoked,
|
|
729
|
+
})
|
|
730
|
+
)
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
return processedPredicates
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export const retrieveCredentialsForProof = async (
|
|
737
|
+
agent: BifoldAgent,
|
|
738
|
+
proof: ProofExchangeRecord,
|
|
739
|
+
fullCredentials: CredentialExchangeRecord[],
|
|
740
|
+
t: TFunction<'translation', undefined>,
|
|
741
|
+
groupByReferent?: boolean
|
|
742
|
+
): Promise<CredentialDataForProof | undefined> => {
|
|
743
|
+
// This is the only valid state to retrieve credentials for a proof
|
|
744
|
+
// `getCredentialsForRequest` will fail otherwise.
|
|
745
|
+
if (proof.state !== ProofState.RequestReceived) {
|
|
746
|
+
return
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
try {
|
|
750
|
+
const format = await agent.proofs.getFormatData(proof.id)
|
|
751
|
+
const hasPresentationExchange = format.request?.presentationExchange !== undefined
|
|
752
|
+
const hasAnonCreds = format.request?.anoncreds !== undefined
|
|
753
|
+
const hasIndy = format.request?.indy !== undefined
|
|
754
|
+
|
|
755
|
+
// Will fail if credential not in state 'request-received'
|
|
756
|
+
const credentialsAsPromise = agent.proofs.getCredentialsForRequest({
|
|
757
|
+
proofRecordId: proof.id,
|
|
758
|
+
proofFormats: {
|
|
759
|
+
// FIXME: Credo will try to use the format, even if the value is undefined (but the key is present)
|
|
760
|
+
// We should ignore the key, if the value is undefined. For now this is a workaround.
|
|
761
|
+
...(hasIndy
|
|
762
|
+
? {
|
|
763
|
+
indy: {
|
|
764
|
+
// Setting `filterByNonRevocationRequirements` to `false` returns all
|
|
765
|
+
// credentials even if they are revokable (and revoked). We need this to
|
|
766
|
+
// be able to show why a proof cannot be satisfied. Otherwise we can only
|
|
767
|
+
// show failure.
|
|
768
|
+
filterByNonRevocationRequirements: true,
|
|
769
|
+
},
|
|
770
|
+
}
|
|
771
|
+
: {}),
|
|
772
|
+
...(hasAnonCreds
|
|
773
|
+
? {
|
|
774
|
+
anoncreds: {
|
|
775
|
+
// Setting `filterByNonRevocationRequirements` to `false` returns all
|
|
776
|
+
// credentials even if they are revokable (and revoked). We need this to
|
|
777
|
+
// be able to show why a proof cannot be satisfied. Otherwise we can only
|
|
778
|
+
// show failure.
|
|
779
|
+
filterByNonRevocationRequirements: true,
|
|
780
|
+
},
|
|
781
|
+
}
|
|
782
|
+
: {}),
|
|
783
|
+
...(hasPresentationExchange ? { presentationExchange: {} } : {}),
|
|
784
|
+
},
|
|
785
|
+
})
|
|
786
|
+
|
|
787
|
+
// Will fail if credential not in state 'request-received'
|
|
788
|
+
const credentialsWithRevokedAsPromise = agent.proofs.getCredentialsForRequest({
|
|
789
|
+
proofRecordId: proof.id,
|
|
790
|
+
proofFormats: {
|
|
791
|
+
// FIXME: Credo will try to use the format, even if the value is undefined (but the key is present)
|
|
792
|
+
// We should ignore the key, if the value is undefined. For now this is a workaround.
|
|
793
|
+
...(hasIndy
|
|
794
|
+
? {
|
|
795
|
+
indy: {
|
|
796
|
+
// Setting `filterByNonRevocationRequirements` to `false` returns all
|
|
797
|
+
// credentials even if they are revokable (and revoked). We need this to
|
|
798
|
+
// be able to show why a proof cannot be satisfied. Otherwise we can only
|
|
799
|
+
// show failure.
|
|
800
|
+
filterByNonRevocationRequirements: false,
|
|
801
|
+
},
|
|
802
|
+
}
|
|
803
|
+
: {}),
|
|
804
|
+
...(hasAnonCreds
|
|
805
|
+
? {
|
|
806
|
+
anoncreds: {
|
|
807
|
+
// Setting `filterByNonRevocationRequirements` to `false` returns all
|
|
808
|
+
// credentials even if they are revokable (and revoked). We need this to
|
|
809
|
+
// be able to show why a proof cannot be satisfied. Otherwise we can only
|
|
810
|
+
// show failure.
|
|
811
|
+
filterByNonRevocationRequirements: false,
|
|
812
|
+
},
|
|
813
|
+
}
|
|
814
|
+
: {}),
|
|
815
|
+
...(hasPresentationExchange ? { presentationExchange: {} } : {}),
|
|
816
|
+
},
|
|
817
|
+
})
|
|
818
|
+
|
|
819
|
+
const [credentials, credentialsWithRevoked] = await Promise.all([
|
|
820
|
+
credentialsAsPromise,
|
|
821
|
+
credentialsWithRevokedAsPromise,
|
|
822
|
+
])
|
|
823
|
+
|
|
824
|
+
// In the case where there are only revoked credentials to satisfy a proof,
|
|
825
|
+
// include them for errors on the proof screen, otherwise leave them out
|
|
826
|
+
const addRevokedCredsIfNeeded = (proofFormat: 'indy' | 'anoncreds', proofItem: 'attributes' | 'predicates') => {
|
|
827
|
+
if (credentials.proofFormats[proofFormat] && credentialsWithRevoked.proofFormats[proofFormat]) {
|
|
828
|
+
Object.keys(credentials.proofFormats[proofFormat]?.[proofItem] ?? {}).forEach((key) => {
|
|
829
|
+
if (
|
|
830
|
+
credentials.proofFormats[proofFormat] &&
|
|
831
|
+
!credentials.proofFormats[proofFormat]?.[proofItem][key]?.length
|
|
832
|
+
) {
|
|
833
|
+
credentials.proofFormats[proofFormat]?.[proofItem][key].push(
|
|
834
|
+
...(credentialsWithRevoked.proofFormats[proofFormat]?.[proofItem][key] ?? ([] as any[]))
|
|
835
|
+
)
|
|
836
|
+
}
|
|
837
|
+
})
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
for (const proofFormat of ['indy', 'anoncreds']) {
|
|
842
|
+
for (const proofItem of ['attributes', 'predicates']) {
|
|
843
|
+
addRevokedCredsIfNeeded(proofFormat as 'indy' | 'anoncreds', proofItem as 'attributes' | 'predicates')
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
if (!credentials) {
|
|
848
|
+
throw new Error(t('ProofRequest.RequestedCredentialsCouldNotBeFound'))
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
if (!format) {
|
|
852
|
+
throw new Error(t('ProofRequest.RequestedCredentialsCouldNotBeFound'))
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
if (!(format && credentials && fullCredentials)) {
|
|
856
|
+
return
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
if (hasPresentationExchange) {
|
|
860
|
+
// FIXME: non revocation requirements
|
|
861
|
+
const presentationExchange = format.request?.presentationExchange
|
|
862
|
+
const difPexCredentialsForRequest = credentials.proofFormats.presentationExchange
|
|
863
|
+
|
|
864
|
+
if (!difPexCredentialsForRequest || !presentationExchange) throw new Error('Invalid presentation request')
|
|
865
|
+
|
|
866
|
+
const presentationDefinition = presentationExchange.presentation_definition
|
|
867
|
+
const descriptorMetadata = getDescriptorMetadata(difPexCredentialsForRequest)
|
|
868
|
+
const anonCredsProofRequest = createAnonCredsProofRequest(presentationDefinition, descriptorMetadata)
|
|
869
|
+
const anonCredsCredentialsForRequest = await getCredentialsForAnonCredsProofRequest(
|
|
870
|
+
agent.context,
|
|
871
|
+
anonCredsProofRequest,
|
|
872
|
+
{ filterByNonRevocationRequirements: false }
|
|
873
|
+
)
|
|
874
|
+
|
|
875
|
+
const filtered = filterInvalidProofRequestMatches(anonCredsCredentialsForRequest, descriptorMetadata)
|
|
876
|
+
const processedAttributes = processProofAttributes(
|
|
877
|
+
t,
|
|
878
|
+
anonCredsProofRequest,
|
|
879
|
+
filtered,
|
|
880
|
+
fullCredentials,
|
|
881
|
+
groupByReferent
|
|
882
|
+
)
|
|
883
|
+
const processedPredicates = processProofPredicates(
|
|
884
|
+
anonCredsProofRequest,
|
|
885
|
+
filtered,
|
|
886
|
+
fullCredentials,
|
|
887
|
+
groupByReferent
|
|
888
|
+
)
|
|
889
|
+
const groupedProof = Object.values(mergeAttributesAndPredicates(processedAttributes, processedPredicates))
|
|
890
|
+
|
|
891
|
+
return {
|
|
892
|
+
groupedProof,
|
|
893
|
+
retrievedCredentials: filtered,
|
|
894
|
+
fullCredentials,
|
|
895
|
+
descriptorMetadata,
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
const proofRequest = format.request?.anoncreds ?? format.request?.indy
|
|
900
|
+
const proofFormat = credentials.proofFormats.anoncreds ?? credentials.proofFormats.indy
|
|
901
|
+
|
|
902
|
+
const attributes = processProofAttributes(t, proofRequest, proofFormat, fullCredentials, groupByReferent)
|
|
903
|
+
const predicates = processProofPredicates(proofRequest, proofFormat, fullCredentials, groupByReferent)
|
|
904
|
+
const groupedProof = Object.values(mergeAttributesAndPredicates(attributes, predicates))
|
|
905
|
+
|
|
906
|
+
return { groupedProof, retrievedCredentials: proofFormat, fullCredentials }
|
|
907
|
+
} catch (err: unknown) {
|
|
908
|
+
const error = new BifoldError(t('Error.Title1043'), t('Error.Message1043'), (err as Error)?.message ?? err, 1043)
|
|
909
|
+
DeviceEventEmitter.emit(EventTypes.ERROR_ADDED, error)
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
export const pTypeToText = (
|
|
914
|
+
item: Predicate,
|
|
915
|
+
t: TFunction<'translation', undefined>,
|
|
916
|
+
attributeTypes?: Record<string, string>
|
|
917
|
+
) => {
|
|
918
|
+
const itemCopy = { ...item }
|
|
919
|
+
const pTypeMap: { [key: string]: string | undefined } = {
|
|
920
|
+
'>=': t('ProofRequest.PredicateGe'),
|
|
921
|
+
'>': t('ProofRequest.PredicateGr'),
|
|
922
|
+
'<=': t('ProofRequest.PredicateLe'),
|
|
923
|
+
'<': t('ProofRequest.PredicateLs'),
|
|
924
|
+
}
|
|
925
|
+
const pTypeDateMap: { [key: string]: string | undefined } = {
|
|
926
|
+
'>=': t('ProofRequest.PredicateGeDate'),
|
|
927
|
+
'>': t('ProofRequest.PredicateGeDate'),
|
|
928
|
+
'<=': t('ProofRequest.PredicateLeDate'),
|
|
929
|
+
'<': t('ProofRequest.PredicateLeDate'),
|
|
930
|
+
}
|
|
931
|
+
const pTypeDateOffset: { [key: string]: number | undefined } = {
|
|
932
|
+
'>=': -1,
|
|
933
|
+
'<=': 1,
|
|
934
|
+
}
|
|
935
|
+
if (attributeTypes && attributeTypes[item.name ?? ''] == CaptureBaseAttributeType.DateTime) {
|
|
936
|
+
itemCopy.pType = pTypeDateMap[item.pType] ?? item.pType
|
|
937
|
+
itemCopy.pValue = parseInt(`${itemCopy.pValue}`) + (pTypeDateOffset[item.pType] ?? 0)
|
|
938
|
+
} else {
|
|
939
|
+
itemCopy.pType = pTypeMap[item.pType] ?? item.pType
|
|
940
|
+
}
|
|
941
|
+
return itemCopy
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* @deprecated The function should not be used
|
|
946
|
+
*/
|
|
947
|
+
export const sortCredentialsForAutoSelect = (
|
|
948
|
+
credentials: AnonCredsCredentialsForProofRequest
|
|
949
|
+
): AnonCredsCredentialsForProofRequest => {
|
|
950
|
+
const requestedAttributes = Object.values(credentials?.attributes).pop()
|
|
951
|
+
const requestedPredicates = Object.values(credentials?.predicates).pop()
|
|
952
|
+
const sortFn = (a: any, b: any) => {
|
|
953
|
+
if (a.revoked && !b.revoked) {
|
|
954
|
+
return 1
|
|
955
|
+
} else if (!a.revoked && b.revoked) {
|
|
956
|
+
return -1
|
|
957
|
+
} else {
|
|
958
|
+
return b.timestamp - a.timestamp
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
requestedAttributes && requestedAttributes.sort(sortFn)
|
|
963
|
+
requestedPredicates && requestedPredicates.sort(sortFn)
|
|
964
|
+
|
|
965
|
+
return credentials
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* This cleanup function prevents any errors associated with
|
|
970
|
+
* receiving the same invitation twice if a previous
|
|
971
|
+
* invitation was not completed. Does nothing if no previously
|
|
972
|
+
* received invitations exist
|
|
973
|
+
* @param agent an Agent instance
|
|
974
|
+
* @param invitationId specifically a *received* invitation id
|
|
975
|
+
*/
|
|
976
|
+
export const removeExistingInvitationsById = async (agent: Agent | undefined, invitationId: string): Promise<void> => {
|
|
977
|
+
// This is implemented just as findByReceivedInvitationId is
|
|
978
|
+
// in Credo only this is able to return multiple if they exist
|
|
979
|
+
const oobRecords =
|
|
980
|
+
(await agent?.oob.findAllByQuery({
|
|
981
|
+
invitationId,
|
|
982
|
+
role: OutOfBandRole.Receiver,
|
|
983
|
+
})) || []
|
|
984
|
+
|
|
985
|
+
for (const r of oobRecords) {
|
|
986
|
+
await agent?.oob.deleteById(r.id)
|
|
987
|
+
agent?.config.logger.info('Successfully removed an existing oob invitation')
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Get a oob record and connection record from a URI using built-in Credo methods
|
|
993
|
+
* @param uri a URI that is either a redirect URL or contains a base64 encoded connection invite in query params
|
|
994
|
+
* @param agent an Agent instance
|
|
995
|
+
* @param implicitInvitations a boolean to determine if implicit invitation behavior should be used
|
|
996
|
+
* @param reuseConnection a boolean to determine if connection reuse should be allowed
|
|
997
|
+
* @returns an object containing an OOB record and, if not connectionless, a connection record
|
|
998
|
+
*/
|
|
999
|
+
export const connectFromInvitation = async (
|
|
1000
|
+
uri: string,
|
|
1001
|
+
agent: Agent | undefined,
|
|
1002
|
+
implicitInvitations: boolean = false,
|
|
1003
|
+
reuseConnection: boolean = false
|
|
1004
|
+
): Promise<OutOfBandRecord> => {
|
|
1005
|
+
const invitation = await agent?.oob.parseInvitation(uri)
|
|
1006
|
+
|
|
1007
|
+
if (!invitation) {
|
|
1008
|
+
throw new Error('Could not parse invitation from URL')
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
if (implicitInvitations) {
|
|
1012
|
+
try {
|
|
1013
|
+
if (invitation.getDidServices().length > 0) {
|
|
1014
|
+
const did = parseDid(invitation.getDidServices()[0])
|
|
1015
|
+
const record = await agent?.oob.receiveImplicitInvitation({
|
|
1016
|
+
did: did.did,
|
|
1017
|
+
label: invitation.label,
|
|
1018
|
+
handshakeProtocols: invitation.handshakeProtocols as HandshakeProtocol[] | undefined,
|
|
1019
|
+
})
|
|
1020
|
+
|
|
1021
|
+
return record?.outOfBandRecord as OutOfBandRecord
|
|
1022
|
+
}
|
|
1023
|
+
} catch (e) {
|
|
1024
|
+
// don't throw an error, will try to connect again below
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
const record = await agent?.oob.receiveInvitation(invitation, { reuseConnection })
|
|
1029
|
+
return record?.outOfBandRecord as OutOfBandRecord
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
const processBetaUrlIfRequired = (uri: string): string => {
|
|
1033
|
+
let aUrl = uri
|
|
1034
|
+
|
|
1035
|
+
// _oob is a beta query param, not supported by Credo.
|
|
1036
|
+
aUrl = uri.replace('_oob', 'oob')
|
|
1037
|
+
|
|
1038
|
+
// _url is a beta query param, not supported by Credo.
|
|
1039
|
+
if (uri.includes('_url')) {
|
|
1040
|
+
const queryParams = parseUrl(uri)?.query
|
|
1041
|
+
const b64UrlRedirect = queryParams['_url']
|
|
1042
|
+
aUrl = b64decode(b64UrlRedirect as string)
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
return aUrl
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Receive a message from a scan or deeplink and navigate accordingly
|
|
1050
|
+
* @param uri a URI either containing a base64 encoded connection invite in the query parameters or a redirect URL itself
|
|
1051
|
+
* @param agent an Agent instance
|
|
1052
|
+
* @param logger injected logger from DI container
|
|
1053
|
+
* @param navigation a navigation object from either the Scan screen, Home screen, or PasteUrl screen
|
|
1054
|
+
* @param isDeepLink a boolean to communicate where the uri is coming from
|
|
1055
|
+
* @param implicitInvitations a boolean to determine if implicit invitation behavior should be used
|
|
1056
|
+
* @param reuseConnection a boolean to determine if connection reuse should be allowed
|
|
1057
|
+
* @throws Error with message containing the primary and beta error messages if both fail
|
|
1058
|
+
*/
|
|
1059
|
+
export const connectFromScanOrDeepLink = async (
|
|
1060
|
+
uri: string,
|
|
1061
|
+
agent: Agent | undefined,
|
|
1062
|
+
logger: BifoldLogger,
|
|
1063
|
+
navigation: any,
|
|
1064
|
+
isDeepLink: boolean,
|
|
1065
|
+
implicitInvitations: boolean = false,
|
|
1066
|
+
reuseConnection: boolean = false
|
|
1067
|
+
) => {
|
|
1068
|
+
if (!agent) {
|
|
1069
|
+
return
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
// TODO:(jl) Do we care if the connection is a deep link?
|
|
1073
|
+
logger.info(`Attempting to connect from ${isDeepLink ? 'deeplink' : 'qr scan'}`)
|
|
1074
|
+
try {
|
|
1075
|
+
if (isOpenIdCredentialOffer(uri)) {
|
|
1076
|
+
navigation.navigate(Stacks.ConnectionStack as any, {
|
|
1077
|
+
screen: Screens.Connection,
|
|
1078
|
+
params: { oobRecordId: '', openIDUri: uri },
|
|
1079
|
+
})
|
|
1080
|
+
|
|
1081
|
+
return
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if (isOpenIdPresentationRequest(uri)) {
|
|
1085
|
+
navigation.navigate(Stacks.ConnectionStack as any, {
|
|
1086
|
+
screen: Screens.Connection,
|
|
1087
|
+
params: { oobRecordId: '', openIDPresentationUri: uri },
|
|
1088
|
+
})
|
|
1089
|
+
|
|
1090
|
+
return
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
const aUrl = processBetaUrlIfRequired(uri)
|
|
1094
|
+
const receivedInvitation = await connectFromInvitation(aUrl, agent, implicitInvitations, reuseConnection)
|
|
1095
|
+
|
|
1096
|
+
if (receivedInvitation?.id) {
|
|
1097
|
+
navigation.navigate(Stacks.ConnectionStack as any, {
|
|
1098
|
+
screen: Screens.Connection,
|
|
1099
|
+
params: { oobRecordId: receivedInvitation.id },
|
|
1100
|
+
})
|
|
1101
|
+
}
|
|
1102
|
+
} catch (error: unknown) {
|
|
1103
|
+
logger.error('Problem during connect strategy, error:', error as Error)
|
|
1104
|
+
|
|
1105
|
+
throw error
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Create a new connection invitation
|
|
1111
|
+
*
|
|
1112
|
+
* @param agent an Agent instance
|
|
1113
|
+
* @param goalCode add goalCode to connection invitation
|
|
1114
|
+
* @returns a connection record
|
|
1115
|
+
*/
|
|
1116
|
+
export const createConnectionInvitation = async (agent: Agent | undefined, goalCode?: string) => {
|
|
1117
|
+
const record = await agent?.oob.createInvitation({ goalCode })
|
|
1118
|
+
if (!record) {
|
|
1119
|
+
throw new Error('Could not create new invitation')
|
|
1120
|
+
}
|
|
1121
|
+
const invitationUrl = record.outOfBandInvitation.toUrl({ domain })
|
|
1122
|
+
|
|
1123
|
+
return {
|
|
1124
|
+
record,
|
|
1125
|
+
invitation: record.outOfBandInvitation,
|
|
1126
|
+
invitationUrl,
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Create a new connection invitation with a goal code specifying that it will be deleted after issuing or verifying once depending on type
|
|
1132
|
+
*
|
|
1133
|
+
* @param agent an Agent instance
|
|
1134
|
+
* @param type add goalCode to connection invitation
|
|
1135
|
+
* @returns a connection record
|
|
1136
|
+
*/
|
|
1137
|
+
export const createTempConnectionInvitation = async (agent: Agent | undefined, type: 'issue' | 'verify') => {
|
|
1138
|
+
return createConnectionInvitation(agent, `aries.vc.${type}.once`)
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Typeguard to check if any React children is represented as a function
|
|
1143
|
+
* instead of a Node. I,e., when it's a {@link ChildFn}.
|
|
1144
|
+
*
|
|
1145
|
+
* @param children any React children
|
|
1146
|
+
* @returns true if the children is a function, false otherwise
|
|
1147
|
+
*/
|
|
1148
|
+
export function isChildFunction<T>(children: ReactNode | ChildFn<T>): children is ChildFn<T> {
|
|
1149
|
+
return typeof children === 'function'
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// Fetches the credential definition id for a given credential exchange record, returns null if ID is not found
|
|
1153
|
+
export const getCredentialDefinitionIdForRecord = (record: CredentialExchangeRecord): string | null => {
|
|
1154
|
+
// assumes record is anonCred
|
|
1155
|
+
return record.metadata.get('_anoncreds/credential')?.credentialDefinitionId ?? null
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
// Fetches the schema id for a given credential exchange record, returns null if ID is not found
|
|
1159
|
+
export const getCredentialSchemaIdForRecord = (record: CredentialExchangeRecord): string | null => {
|
|
1160
|
+
// assumes record is anonCred
|
|
1161
|
+
return record.metadata.get('_anoncreds/credential')?.schemaId ?? null
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
export function getCredentialEventRole(record: CredentialExchangeRecord) {
|
|
1165
|
+
switch (record.state) {
|
|
1166
|
+
// assuming only Holder states are supported here
|
|
1167
|
+
case CredentialState.ProposalSent:
|
|
1168
|
+
return Role.me
|
|
1169
|
+
case CredentialState.OfferReceived:
|
|
1170
|
+
return Role.them
|
|
1171
|
+
case CredentialState.RequestSent:
|
|
1172
|
+
return Role.me
|
|
1173
|
+
case CredentialState.Declined:
|
|
1174
|
+
return Role.me
|
|
1175
|
+
case CredentialState.CredentialReceived:
|
|
1176
|
+
return Role.me
|
|
1177
|
+
case CredentialState.Done:
|
|
1178
|
+
return Role.me
|
|
1179
|
+
default:
|
|
1180
|
+
return Role.me
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
export function getCredentialEventLabel(record: CredentialExchangeRecord) {
|
|
1185
|
+
switch (record.state) {
|
|
1186
|
+
// assuming only Holder states are supported here
|
|
1187
|
+
case CredentialState.ProposalSent:
|
|
1188
|
+
return 'Chat.CredentialProposalSent'
|
|
1189
|
+
case CredentialState.OfferReceived:
|
|
1190
|
+
return 'Chat.CredentialOfferReceived'
|
|
1191
|
+
case CredentialState.RequestSent:
|
|
1192
|
+
return 'Chat.CredentialRequestSent'
|
|
1193
|
+
case CredentialState.Declined:
|
|
1194
|
+
return 'Chat.CredentialDeclined'
|
|
1195
|
+
case CredentialState.CredentialReceived:
|
|
1196
|
+
case CredentialState.Done:
|
|
1197
|
+
return 'Chat.CredentialReceived'
|
|
1198
|
+
default:
|
|
1199
|
+
return ''
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export function getProofEventRole(record: ProofExchangeRecord) {
|
|
1204
|
+
switch (record.state) {
|
|
1205
|
+
case ProofState.RequestSent:
|
|
1206
|
+
return Role.me
|
|
1207
|
+
case ProofState.ProposalReceived:
|
|
1208
|
+
return Role.me
|
|
1209
|
+
case ProofState.PresentationReceived:
|
|
1210
|
+
return Role.them
|
|
1211
|
+
case ProofState.RequestReceived:
|
|
1212
|
+
return Role.them
|
|
1213
|
+
case ProofState.ProposalSent:
|
|
1214
|
+
case ProofState.PresentationSent:
|
|
1215
|
+
return Role.me
|
|
1216
|
+
case ProofState.Declined:
|
|
1217
|
+
return Role.me
|
|
1218
|
+
case ProofState.Abandoned:
|
|
1219
|
+
return Role.them
|
|
1220
|
+
case ProofState.Done:
|
|
1221
|
+
return record.isVerified !== undefined ? Role.them : Role.me
|
|
1222
|
+
default:
|
|
1223
|
+
return Role.me
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
export function getProofEventLabel(record: ProofExchangeRecord) {
|
|
1228
|
+
switch (record.state) {
|
|
1229
|
+
case ProofState.RequestSent:
|
|
1230
|
+
case ProofState.ProposalReceived:
|
|
1231
|
+
return 'Chat.ProofRequestSent'
|
|
1232
|
+
case ProofState.PresentationReceived:
|
|
1233
|
+
return 'Chat.ProofPresentationReceived'
|
|
1234
|
+
case ProofState.RequestReceived:
|
|
1235
|
+
return 'Chat.ProofRequestReceived'
|
|
1236
|
+
case ProofState.ProposalSent:
|
|
1237
|
+
case ProofState.PresentationSent:
|
|
1238
|
+
return 'Chat.ProofRequestSatisfied'
|
|
1239
|
+
case ProofState.Declined:
|
|
1240
|
+
return 'Chat.ProofRequestRejected'
|
|
1241
|
+
case ProofState.Abandoned:
|
|
1242
|
+
return 'Chat.ProofRequestRejectReceived'
|
|
1243
|
+
case ProofState.Done:
|
|
1244
|
+
return record.isVerified !== undefined ? 'Chat.ProofPresentationReceived' : 'Chat.ProofRequestSatisfied'
|
|
1245
|
+
default:
|
|
1246
|
+
return ''
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export function getMessageEventRole(record: BasicMessageRecord) {
|
|
1251
|
+
return record.role === BasicMessageRole.Sender ? Role.me : Role.them
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export function generateRandomWalletName() {
|
|
1255
|
+
let name = 'My Wallet - '
|
|
1256
|
+
for (let i = 0; i < 4; i++) {
|
|
1257
|
+
name = name.concat(Math.floor(Math.random() * 10).toString())
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
return name
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Returns the secondary background color for a credential card.
|
|
1265
|
+
*
|
|
1266
|
+
* @param {CredentialOverlay<BrandingOverlay>} overlay - The credential card containing branding information.
|
|
1267
|
+
* @param {boolean} [proof] - Optional flag indicating if the context of the credential card is a proof.
|
|
1268
|
+
* @returns {string | undefined} - The secondary background color of the branding or undefined if not applicable.
|
|
1269
|
+
*/
|
|
1270
|
+
export function getSecondaryBackgroundColor(
|
|
1271
|
+
overlay: CredentialOverlay<BrandingOverlay>,
|
|
1272
|
+
proof?: boolean
|
|
1273
|
+
): string | undefined {
|
|
1274
|
+
if (proof) {
|
|
1275
|
+
return overlay.brandingOverlay?.primaryBackgroundColor
|
|
1276
|
+
} else {
|
|
1277
|
+
return overlay.brandingOverlay?.backgroundImageSlice
|
|
1278
|
+
? 'rgba(0, 0, 0, 0)'
|
|
1279
|
+
: overlay.brandingOverlay?.secondaryBackgroundColor
|
|
1280
|
+
}
|
|
1281
|
+
}
|