@ledgerhq/device-contacts-kit 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -2
- package/lib/cjs/api/ContactsManager.js +1 -1
- package/lib/cjs/api/ContactsManager.js.map +1 -1
- package/lib/cjs/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.js +2 -0
- package/lib/cjs/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/EditExternalAddressScopeDeviceActionTypes.js +2 -0
- package/lib/cjs/api/app-binder/EditExternalAddressScopeDeviceActionTypes.js.map +7 -0
- package/lib/cjs/api/app-binder/RenameContactDeviceActionTypes.js +2 -0
- package/lib/cjs/api/app-binder/RenameContactDeviceActionTypes.js.map +7 -0
- package/lib/cjs/api/index.js +1 -1
- package/lib/cjs/api/index.js.map +2 -2
- package/lib/cjs/api/model/EditExternalAddressIdentifier.js +2 -0
- package/lib/cjs/api/model/EditExternalAddressIdentifier.js.map +7 -0
- package/lib/cjs/api/model/EditExternalAddressScope.js +2 -0
- package/lib/cjs/api/model/EditExternalAddressScope.js.map +7 -0
- package/lib/cjs/api/model/RenameContact.js +2 -0
- package/lib/cjs/api/model/RenameContact.js.map +7 -0
- package/lib/cjs/internal/DefaultContactsManager.js +1 -1
- package/lib/cjs/internal/DefaultContactsManager.js.map +2 -2
- package/lib/cjs/internal/DefaultContactsManager.test.js +1 -1
- package/lib/cjs/internal/DefaultContactsManager.test.js.map +3 -3
- package/lib/cjs/internal/app-binder/ContactsAppBinder.js +1 -1
- package/lib/cjs/internal/app-binder/ContactsAppBinder.js.map +3 -3
- package/lib/cjs/internal/app-binder/command/EditExternalAddressIdentifierCommand.js +2 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressIdentifierCommand.js.map +7 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.js +2 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressScopeCommand.js +2 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressScopeCommand.js.map +7 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressScopeCommand.test.js +2 -0
- package/lib/cjs/internal/app-binder/command/EditExternalAddressScopeCommand.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/command/RenameContactCommand.js +2 -0
- package/lib/cjs/internal/app-binder/command/RenameContactCommand.js.map +7 -0
- package/lib/cjs/internal/app-binder/command/RenameContactCommand.test.js +2 -0
- package/lib/cjs/internal/app-binder/command/RenameContactCommand.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/contactsVersionGuards.js +2 -0
- package/lib/cjs/internal/app-binder/contactsVersionGuards.js.map +7 -0
- package/lib/cjs/internal/app-binder/contactsVersionGuards.test.js +2 -0
- package/lib/cjs/internal/app-binder/contactsVersionGuards.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.js +1 -1
- package/lib/cjs/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.js.map +3 -3
- package/lib/cjs/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/validateRenameContactInput.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/validateRenameContactInput.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.js +2 -0
- package/lib/cjs/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.js.map +7 -0
- package/lib/cjs/internal/app-binder/model/contactsConstants.js +1 -1
- package/lib/cjs/internal/app-binder/model/contactsConstants.js.map +3 -3
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressIdentifierTask.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressIdentifierTask.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressScopeTask.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressScopeTask.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressScopeTask.test.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendEditExternalAddressScopeTask.test.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/SendRegisterIdentityTask.js +1 -1
- package/lib/cjs/internal/app-binder/task/SendRegisterIdentityTask.js.map +2 -2
- package/lib/cjs/internal/app-binder/task/SendRegisterIdentityTask.test.js +1 -1
- package/lib/cjs/internal/app-binder/task/SendRegisterIdentityTask.test.js.map +2 -2
- package/lib/cjs/internal/app-binder/task/SendRenameContactTask.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendRenameContactTask.js.map +7 -0
- package/lib/cjs/internal/app-binder/task/SendRenameContactTask.test.js +2 -0
- package/lib/cjs/internal/app-binder/task/SendRenameContactTask.test.js.map +7 -0
- package/lib/cjs/internal/di.test.js +1 -1
- package/lib/cjs/internal/di.test.js.map +3 -3
- package/lib/cjs/internal/use-cases/EditExternalAddressIdentifierUseCase.js +2 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressIdentifierUseCase.js.map +7 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressIdentifierUseCase.test.js +2 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressIdentifierUseCase.test.js.map +7 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressScopeUseCase.js +2 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressScopeUseCase.js.map +7 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressScopeUseCase.test.js +2 -0
- package/lib/cjs/internal/use-cases/EditExternalAddressScopeUseCase.test.js.map +7 -0
- package/lib/cjs/internal/use-cases/RenameContactUseCase.js +2 -0
- package/lib/cjs/internal/use-cases/RenameContactUseCase.js.map +7 -0
- package/lib/cjs/internal/use-cases/RenameContactUseCase.test.js +2 -0
- package/lib/cjs/internal/use-cases/RenameContactUseCase.test.js.map +7 -0
- package/lib/cjs/internal/use-cases/di/useCaseModule.js +1 -1
- package/lib/cjs/internal/use-cases/di/useCaseModule.js.map +3 -3
- package/lib/cjs/internal/use-cases/di/useCaseTypes.js +1 -1
- package/lib/cjs/internal/use-cases/di/useCaseTypes.js.map +2 -2
- package/lib/cjs/package.json +1 -1
- package/lib/esm/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.js +1 -0
- package/lib/esm/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.js.map +7 -0
- package/lib/esm/api/app-binder/EditExternalAddressScopeDeviceActionTypes.js +1 -0
- package/lib/esm/api/app-binder/EditExternalAddressScopeDeviceActionTypes.js.map +7 -0
- package/lib/esm/api/app-binder/RenameContactDeviceActionTypes.js +1 -0
- package/lib/esm/api/app-binder/RenameContactDeviceActionTypes.js.map +7 -0
- package/lib/esm/api/index.js +1 -1
- package/lib/esm/api/index.js.map +2 -2
- package/lib/esm/api/model/EditExternalAddressIdentifier.js +1 -0
- package/lib/esm/api/model/EditExternalAddressIdentifier.js.map +7 -0
- package/lib/esm/api/model/EditExternalAddressScope.js +1 -0
- package/lib/esm/api/model/EditExternalAddressScope.js.map +7 -0
- package/lib/esm/api/model/RenameContact.js +1 -0
- package/lib/esm/api/model/RenameContact.js.map +7 -0
- package/lib/esm/internal/DefaultContactsManager.js +1 -1
- package/lib/esm/internal/DefaultContactsManager.js.map +2 -2
- package/lib/esm/internal/DefaultContactsManager.test.js +1 -1
- package/lib/esm/internal/DefaultContactsManager.test.js.map +3 -3
- package/lib/esm/internal/app-binder/ContactsAppBinder.js +1 -1
- package/lib/esm/internal/app-binder/ContactsAppBinder.js.map +3 -3
- package/lib/esm/internal/app-binder/command/EditExternalAddressIdentifierCommand.js +2 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressIdentifierCommand.js.map +7 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.js +2 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.js.map +7 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressScopeCommand.js +2 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressScopeCommand.js.map +7 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressScopeCommand.test.js +2 -0
- package/lib/esm/internal/app-binder/command/EditExternalAddressScopeCommand.test.js.map +7 -0
- package/lib/esm/internal/app-binder/command/RenameContactCommand.js +2 -0
- package/lib/esm/internal/app-binder/command/RenameContactCommand.js.map +7 -0
- package/lib/esm/internal/app-binder/command/RenameContactCommand.test.js +2 -0
- package/lib/esm/internal/app-binder/command/RenameContactCommand.test.js.map +7 -0
- package/lib/esm/internal/app-binder/contactsVersionGuards.js +2 -0
- package/lib/esm/internal/app-binder/contactsVersionGuards.js.map +7 -0
- package/lib/esm/internal/app-binder/contactsVersionGuards.test.js +2 -0
- package/lib/esm/internal/app-binder/contactsVersionGuards.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.js +1 -1
- package/lib/esm/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.js.map +3 -3
- package/lib/esm/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.js +2 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/validateRenameContactInput.js +2 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/validateRenameContactInput.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.js +2 -0
- package/lib/esm/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.js.map +7 -0
- package/lib/esm/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.js +2 -0
- package/lib/esm/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.js.map +7 -0
- package/lib/esm/internal/app-binder/model/contactsConstants.js +1 -1
- package/lib/esm/internal/app-binder/model/contactsConstants.js.map +3 -3
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressIdentifierTask.js +2 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressIdentifierTask.js.map +7 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.js +2 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.js.map +7 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressScopeTask.js +2 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressScopeTask.js.map +7 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressScopeTask.test.js +2 -0
- package/lib/esm/internal/app-binder/task/SendEditExternalAddressScopeTask.test.js.map +7 -0
- package/lib/esm/internal/app-binder/task/SendRegisterIdentityTask.js +1 -1
- package/lib/esm/internal/app-binder/task/SendRegisterIdentityTask.js.map +3 -3
- package/lib/esm/internal/app-binder/task/SendRegisterIdentityTask.test.js +1 -1
- package/lib/esm/internal/app-binder/task/SendRegisterIdentityTask.test.js.map +2 -2
- package/lib/esm/internal/app-binder/task/SendRenameContactTask.js +2 -0
- package/lib/esm/internal/app-binder/task/SendRenameContactTask.js.map +7 -0
- package/lib/esm/internal/app-binder/task/SendRenameContactTask.test.js +2 -0
- package/lib/esm/internal/app-binder/task/SendRenameContactTask.test.js.map +7 -0
- package/lib/esm/internal/di.test.js +1 -1
- package/lib/esm/internal/di.test.js.map +3 -3
- package/lib/esm/internal/use-cases/EditExternalAddressIdentifierUseCase.js +2 -0
- package/lib/esm/internal/use-cases/EditExternalAddressIdentifierUseCase.js.map +7 -0
- package/lib/esm/internal/use-cases/EditExternalAddressIdentifierUseCase.test.js +2 -0
- package/lib/esm/internal/use-cases/EditExternalAddressIdentifierUseCase.test.js.map +7 -0
- package/lib/esm/internal/use-cases/EditExternalAddressScopeUseCase.js +2 -0
- package/lib/esm/internal/use-cases/EditExternalAddressScopeUseCase.js.map +7 -0
- package/lib/esm/internal/use-cases/EditExternalAddressScopeUseCase.test.js +2 -0
- package/lib/esm/internal/use-cases/EditExternalAddressScopeUseCase.test.js.map +7 -0
- package/lib/esm/internal/use-cases/RenameContactUseCase.js +2 -0
- package/lib/esm/internal/use-cases/RenameContactUseCase.js.map +7 -0
- package/lib/esm/internal/use-cases/RenameContactUseCase.test.js +2 -0
- package/lib/esm/internal/use-cases/RenameContactUseCase.test.js.map +7 -0
- package/lib/esm/internal/use-cases/di/useCaseModule.js +1 -1
- package/lib/esm/internal/use-cases/di/useCaseModule.js.map +3 -3
- package/lib/esm/internal/use-cases/di/useCaseTypes.js +1 -1
- package/lib/esm/internal/use-cases/di/useCaseTypes.js.map +2 -2
- package/lib/esm/package.json +1 -1
- package/lib/types/api/ContactsManager.d.ts +35 -0
- package/lib/types/api/ContactsManager.d.ts.map +1 -1
- package/lib/types/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.d.ts +27 -0
- package/lib/types/api/app-binder/EditExternalAddressIdentifierDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/EditExternalAddressScopeDeviceActionTypes.d.ts +27 -0
- package/lib/types/api/app-binder/EditExternalAddressScopeDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/api/app-binder/RenameContactDeviceActionTypes.d.ts +25 -0
- package/lib/types/api/app-binder/RenameContactDeviceActionTypes.d.ts.map +1 -0
- package/lib/types/api/index.d.ts +6 -0
- package/lib/types/api/index.d.ts.map +1 -1
- package/lib/types/api/model/EditExternalAddressIdentifier.d.ts +57 -0
- package/lib/types/api/model/EditExternalAddressIdentifier.d.ts.map +1 -0
- package/lib/types/api/model/EditExternalAddressScope.d.ts +59 -0
- package/lib/types/api/model/EditExternalAddressScope.d.ts.map +1 -0
- package/lib/types/api/model/RenameContact.d.ts +39 -0
- package/lib/types/api/model/RenameContact.d.ts.map +1 -0
- package/lib/types/internal/DefaultContactsManager.d.ts +9 -0
- package/lib/types/internal/DefaultContactsManager.d.ts.map +1 -1
- package/lib/types/internal/app-binder/ContactsAppBinder.d.ts +9 -0
- package/lib/types/internal/app-binder/ContactsAppBinder.d.ts.map +1 -1
- package/lib/types/internal/app-binder/command/EditExternalAddressIdentifierCommand.d.ts +25 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressIdentifierCommand.d.ts.map +1 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.d.ts +2 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressScopeCommand.d.ts +25 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressScopeCommand.d.ts.map +1 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressScopeCommand.test.d.ts +2 -0
- package/lib/types/internal/app-binder/command/EditExternalAddressScopeCommand.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/command/RenameContactCommand.d.ts +25 -0
- package/lib/types/internal/app-binder/command/RenameContactCommand.d.ts.map +1 -0
- package/lib/types/internal/app-binder/command/RenameContactCommand.test.d.ts +2 -0
- package/lib/types/internal/app-binder/command/RenameContactCommand.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/contactsVersionGuards.d.ts +38 -0
- package/lib/types/internal/app-binder/contactsVersionGuards.d.ts.map +1 -0
- package/lib/types/internal/app-binder/contactsVersionGuards.test.d.ts +2 -0
- package/lib/types/internal/app-binder/contactsVersionGuards.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.d.ts +14 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.d.ts +9 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.d.ts +14 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.d.ts +9 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.d.ts +1 -1
- package/lib/types/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.d.ts.map +1 -1
- package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.d.ts +13 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/validateRenameContactInput.d.ts +12 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/validateRenameContactInput.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.d.ts +2 -0
- package/lib/types/internal/app-binder/device-action/RenameContact/validateRenameContactInput.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.d.ts +12 -0
- package/lib/types/internal/app-binder/device-action/__test-utils__/setupGoToDashboardDAMock.d.ts.map +1 -0
- package/lib/types/internal/app-binder/model/contactsConstants.d.ts +26 -0
- package/lib/types/internal/app-binder/model/contactsConstants.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/SendEditExternalAddressIdentifierTask.d.ts +25 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressIdentifierTask.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.d.ts +2 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressIdentifierTask.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressScopeTask.d.ts +25 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressScopeTask.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressScopeTask.test.d.ts +2 -0
- package/lib/types/internal/app-binder/task/SendEditExternalAddressScopeTask.test.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/SendRegisterIdentityTask.d.ts.map +1 -1
- package/lib/types/internal/app-binder/task/SendRenameContactTask.d.ts +20 -0
- package/lib/types/internal/app-binder/task/SendRenameContactTask.d.ts.map +1 -0
- package/lib/types/internal/app-binder/task/SendRenameContactTask.test.d.ts +2 -0
- package/lib/types/internal/app-binder/task/SendRenameContactTask.test.d.ts.map +1 -0
- package/lib/types/internal/use-cases/EditExternalAddressIdentifierUseCase.d.ts +14 -0
- package/lib/types/internal/use-cases/EditExternalAddressIdentifierUseCase.d.ts.map +1 -0
- package/lib/types/internal/use-cases/EditExternalAddressIdentifierUseCase.test.d.ts +2 -0
- package/lib/types/internal/use-cases/EditExternalAddressIdentifierUseCase.test.d.ts.map +1 -0
- package/lib/types/internal/use-cases/EditExternalAddressScopeUseCase.d.ts +14 -0
- package/lib/types/internal/use-cases/EditExternalAddressScopeUseCase.d.ts.map +1 -0
- package/lib/types/internal/use-cases/EditExternalAddressScopeUseCase.test.d.ts +2 -0
- package/lib/types/internal/use-cases/EditExternalAddressScopeUseCase.test.d.ts.map +1 -0
- package/lib/types/internal/use-cases/RenameContactUseCase.d.ts +19 -0
- package/lib/types/internal/use-cases/RenameContactUseCase.d.ts.map +1 -0
- package/lib/types/internal/use-cases/RenameContactUseCase.test.d.ts +2 -0
- package/lib/types/internal/use-cases/RenameContactUseCase.test.d.ts.map +1 -0
- package/lib/types/internal/use-cases/di/useCaseModule.d.ts.map +1 -1
- package/lib/types/internal/use-cases/di/useCaseTypes.d.ts +3 -0
- package/lib/types/internal/use-cases/di/useCaseTypes.d.ts.map +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/lib/cjs/internal/app-binder/isContactsSupportedForSession.js +0 -2
- package/lib/cjs/internal/app-binder/isContactsSupportedForSession.js.map +0 -7
- package/lib/cjs/internal/app-binder/isContactsSupportedForSession.test.js +0 -2
- package/lib/cjs/internal/app-binder/isContactsSupportedForSession.test.js.map +0 -7
- package/lib/esm/internal/app-binder/isContactsSupportedForSession.js +0 -2
- package/lib/esm/internal/app-binder/isContactsSupportedForSession.js.map +0 -7
- package/lib/esm/internal/app-binder/isContactsSupportedForSession.test.js +0 -2
- package/lib/esm/internal/app-binder/isContactsSupportedForSession.test.js.map +0 -7
- package/lib/types/internal/app-binder/isContactsSupportedForSession.d.ts +0 -25
- package/lib/types/internal/app-binder/isContactsSupportedForSession.d.ts.map +0 -1
- package/lib/types/internal/app-binder/isContactsSupportedForSession.test.d.ts +0 -2
- package/lib/types/internal/app-binder/isContactsSupportedForSession.test.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContactDeviceActionTypes.d.ts","sourceRoot":"","sources":["../../../../src/api/app-binder/RenameContactDeviceActionTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,kCAAkC,EACvC,KAAK,uBAAuB,EAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACrC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAE7F;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAC5B,oBAAoB,GACpB,uBAAuB,GACvB,+BAA+B,GAC/B,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,CAAC;AAEpD,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,GAClC,uBAAuB,CAAC,cAAc,CAAC;AAE3C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,CAAC,uBAAuB,EAAE,kCAAkC,CAAC;CACtE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAClD,qBAAqB,EACrB,oBAAoB,EACpB,gCAAgC,CACjC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE;QACd,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;KAChC,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CACnE,qBAAqB,EACrB,oBAAoB,EACpB,gCAAgC,CACjC,CAAC"}
|
package/lib/types/api/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
export { type EditExternalAddressIdentifierDAError, type EditExternalAddressIdentifierDAInput, type EditExternalAddressIdentifierDAIntermediateValue, type EditExternalAddressIdentifierDAOutput, type EditExternalAddressIdentifierDARequiredInteraction, type EditExternalAddressIdentifierDAReturnType, type EditExternalAddressIdentifierDAState, } from "./app-binder/EditExternalAddressIdentifierDeviceActionTypes";
|
|
2
|
+
export { type EditExternalAddressScopeDAError, type EditExternalAddressScopeDAInput, type EditExternalAddressScopeDAIntermediateValue, type EditExternalAddressScopeDAOutput, type EditExternalAddressScopeDARequiredInteraction, type EditExternalAddressScopeDAReturnType, type EditExternalAddressScopeDAState, } from "./app-binder/EditExternalAddressScopeDeviceActionTypes";
|
|
1
3
|
export { type RegisterExternalAddressDAError, type RegisterExternalAddressDAInput, type RegisterExternalAddressDAIntermediateValue, type RegisterExternalAddressDAOutput, type RegisterExternalAddressDARequiredInteraction, type RegisterExternalAddressDAReturnType, type RegisterExternalAddressDAState, } from "./app-binder/RegisterExternalAddressDeviceActionTypes";
|
|
4
|
+
export { type RenameContactDAError, type RenameContactDAInput, type RenameContactDAIntermediateValue, type RenameContactDAOutput, type RenameContactDARequiredInteraction, type RenameContactDAReturnType, type RenameContactDAState, } from "./app-binder/RenameContactDeviceActionTypes";
|
|
2
5
|
export { type ContactsManager } from "./ContactsManager";
|
|
3
6
|
export { ContactsManagerBuilder } from "./ContactsManagerBuilder";
|
|
4
7
|
export { CONTACTS_VERSION_REQUIREMENTS, type ContactsModelRequirement, type ContactsModelSupport, type ContactsModelUnsupported, type ContactsSupportQuery, type ContactsVersionRequirements, ETHEREUM_APP_NAME, isContactsSupported, isVersionAtLeast, resolveContactsVersionRequirements, } from "./model/ContactsVersionRequirements";
|
|
8
|
+
export { type EditExternalAddressIdentifierInput, type EditExternalAddressIdentifierOutput, } from "./model/EditExternalAddressIdentifier";
|
|
9
|
+
export { type EditExternalAddressScopeInput, type EditExternalAddressScopeOutput, } from "./model/EditExternalAddressScope";
|
|
5
10
|
export { type ExistingContactGroup, type RegisterExternalAddressInput, type RegisterExternalAddressMode, type RegisterExternalAddressOutput, } from "./model/RegisterExternalAddress";
|
|
11
|
+
export { type RenameContactInput, type RenameContactOutput, } from "./model/RenameContact";
|
|
6
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0CAA0C,EAC/C,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,EACjD,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,GACpC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,kCAAkC,GACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,GACnC,MAAM,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,gDAAgD,EACrD,KAAK,qCAAqC,EAC1C,KAAK,kDAAkD,EACvD,KAAK,yCAAyC,EAC9C,KAAK,oCAAoC,GAC1C,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2CAA2C,EAChD,KAAK,gCAAgC,EACrC,KAAK,6CAA6C,EAClD,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,GACrC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0CAA0C,EAC/C,KAAK,+BAA+B,EACpC,KAAK,4CAA4C,EACjD,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,GACpC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,GAC1B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EACL,6BAA6B,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,kCAAkC,GACnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,GACzC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,GACpC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,GACnC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public input/output types for `ContactsManager.editExternalAddressIdentifier`.
|
|
3
|
+
*
|
|
4
|
+
* EDIT IDENTIFIER replaces an entry's identifier bytes within an existing
|
|
5
|
+
* contact group. Only the address-level `hmacRest` rotates; the group-level
|
|
6
|
+
* `hmacProof` passes through unchanged. Proof material is raw bytes (the host
|
|
7
|
+
* owns persistence); `derivationPath` is kit-internal and not exposed.
|
|
8
|
+
*/
|
|
9
|
+
export type EditExternalAddressIdentifierInput = {
|
|
10
|
+
/** The contact's name, proven to the device via `hmacProof`. */
|
|
11
|
+
readonly contactName: string;
|
|
12
|
+
/** The entry's current label/scope; shown on the approval screen. */
|
|
13
|
+
readonly scope: string;
|
|
14
|
+
/** The current (pre-edit) address bytes, proven via `hmacRest`. */
|
|
15
|
+
readonly previousIdentifier: Uint8Array;
|
|
16
|
+
/** The replacement address bytes (20 bytes for Ethereum). */
|
|
17
|
+
readonly newIdentifier: Uint8Array;
|
|
18
|
+
/** Blockchain family name, e.g. "ethereum" (v1 supports Ethereum only). */
|
|
19
|
+
readonly blockchainFamily: string;
|
|
20
|
+
readonly chainId?: bigint;
|
|
21
|
+
/** 64-byte group handle returned by the group's Register Identity. */
|
|
22
|
+
readonly groupHandle: Uint8Array;
|
|
23
|
+
/**
|
|
24
|
+
* The contact-group name proof (device `hmac_name`) — passed back so the
|
|
25
|
+
* device can verify the entry belongs to the group. Unchanged by the edit.
|
|
26
|
+
*/
|
|
27
|
+
readonly hmacProof: Uint8Array;
|
|
28
|
+
/**
|
|
29
|
+
* The entry's current 32-byte address proof (`hmac_rest`) — passed back so the
|
|
30
|
+
* device can verify continuity before approving. Replaced by the returned
|
|
31
|
+
* `hmacRest` on success.
|
|
32
|
+
*/
|
|
33
|
+
readonly hmacRest: Uint8Array;
|
|
34
|
+
/**
|
|
35
|
+
* When `true`, the open-app step is skipped (the caller guarantees the app is
|
|
36
|
+
* already open). The app-version guard still runs.
|
|
37
|
+
*/
|
|
38
|
+
readonly skipOpenApp?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type EditExternalAddressIdentifierOutput = {
|
|
41
|
+
/** Echoed input, needed by the host to locate the entry it is replacing. */
|
|
42
|
+
readonly contactName: string;
|
|
43
|
+
readonly scope: string;
|
|
44
|
+
/** Echoed previous address bytes, to match the entry being replaced. */
|
|
45
|
+
readonly previousIdentifier: Uint8Array;
|
|
46
|
+
/** The new address bytes now bound to the entry. */
|
|
47
|
+
readonly identifier: Uint8Array;
|
|
48
|
+
readonly blockchainFamily: string;
|
|
49
|
+
readonly chainId?: bigint;
|
|
50
|
+
/** Echoed group handle, unchanged by the edit. */
|
|
51
|
+
readonly groupHandle: Uint8Array;
|
|
52
|
+
/** Echoed group-level name proof, unchanged by the edit. */
|
|
53
|
+
readonly hmacProof: Uint8Array;
|
|
54
|
+
/** The replacement address-level proof (rotated `hmac_rest`) to persist. */
|
|
55
|
+
readonly hmacRest: Uint8Array;
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=EditExternalAddressIdentifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/api/model/EditExternalAddressIdentifier.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,gEAAgE;IAChE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACxC,6DAA6D;IAC7D,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC;IACnC,2EAA2E;IAC3E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,QAAQ,CAAC,kBAAkB,EAAE,UAAU,CAAC;IACxC,oDAAoD;IACpD,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public input/output types for `ContactsManager.editExternalAddressScope`.
|
|
3
|
+
*
|
|
4
|
+
* EDIT SCOPE replaces an entry's scope (its context label) within an existing
|
|
5
|
+
* contact group while keeping the same contact name and identifier. Only the
|
|
6
|
+
* address-level `hmacRest` rotates; the group-level `hmacProof` passes through
|
|
7
|
+
* unchanged. Proof material is raw bytes (the host owns persistence);
|
|
8
|
+
* `derivationPath` is kit-internal and not exposed.
|
|
9
|
+
*/
|
|
10
|
+
export type EditExternalAddressScopeInput = {
|
|
11
|
+
/** The contact's name, proven to the device via `hmacProof`. Unchanged. */
|
|
12
|
+
readonly contactName: string;
|
|
13
|
+
/** The entry's current scope; shown on the approval screen and proven via `hmacRest`. */
|
|
14
|
+
readonly previousScope: string;
|
|
15
|
+
/** The replacement scope (max 32 printable ASCII chars). */
|
|
16
|
+
readonly newScope: string;
|
|
17
|
+
/** The entry's identifier bytes (20 bytes for Ethereum). Unchanged by the edit. */
|
|
18
|
+
readonly identifier: Uint8Array;
|
|
19
|
+
/** Blockchain family name, e.g. "ethereum" (v1 supports Ethereum only). */
|
|
20
|
+
readonly blockchainFamily: string;
|
|
21
|
+
readonly chainId?: bigint;
|
|
22
|
+
/** 64-byte group handle returned by the group's Register Identity. */
|
|
23
|
+
readonly groupHandle: Uint8Array;
|
|
24
|
+
/**
|
|
25
|
+
* The contact-group name proof (device `hmac_name`) — passed back so the
|
|
26
|
+
* device can verify the entry belongs to the group. Unchanged by the edit.
|
|
27
|
+
*/
|
|
28
|
+
readonly hmacProof: Uint8Array;
|
|
29
|
+
/**
|
|
30
|
+
* The entry's current 32-byte address proof (`hmac_rest`) — passed back so the
|
|
31
|
+
* device can verify the previous scope/identifier before approving. Replaced
|
|
32
|
+
* by the returned `hmacRest` on success.
|
|
33
|
+
*/
|
|
34
|
+
readonly hmacRest: Uint8Array;
|
|
35
|
+
/**
|
|
36
|
+
* When `true`, the open-app step is skipped (the caller guarantees the app is
|
|
37
|
+
* already open). The app-version guard still runs.
|
|
38
|
+
*/
|
|
39
|
+
readonly skipOpenApp?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export type EditExternalAddressScopeOutput = {
|
|
42
|
+
/** Echoed input, needed by the host to locate the entry it is replacing. */
|
|
43
|
+
readonly contactName: string;
|
|
44
|
+
/** Echoed previous scope, to match the entry being replaced. */
|
|
45
|
+
readonly previousScope: string;
|
|
46
|
+
/** The new scope now bound to the entry. */
|
|
47
|
+
readonly scope: string;
|
|
48
|
+
/** Echoed identifier bytes, unchanged by the edit. */
|
|
49
|
+
readonly identifier: Uint8Array;
|
|
50
|
+
readonly blockchainFamily: string;
|
|
51
|
+
readonly chainId?: bigint;
|
|
52
|
+
/** Echoed group handle, unchanged by the edit. */
|
|
53
|
+
readonly groupHandle: Uint8Array;
|
|
54
|
+
/** Echoed group-level name proof, unchanged by the edit. */
|
|
55
|
+
readonly hmacProof: Uint8Array;
|
|
56
|
+
/** The replacement address-level proof (rotated `hmac_rest`) to persist. */
|
|
57
|
+
readonly hmacRest: Uint8Array;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=EditExternalAddressScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressScope.d.ts","sourceRoot":"","sources":["../../../../src/api/model/EditExternalAddressScope.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,yFAAyF;IACzF,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC,4DAA4D;IAC5D,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public input/output types for `ContactsManager.renameContact`.
|
|
3
|
+
*
|
|
4
|
+
* Rename (EDIT CONTACT NAME) is a blockchain-agnostic OS/dashboard operation:
|
|
5
|
+
* it rotates the contact-level `hmacProof` (the device's `hmac_name`) and
|
|
6
|
+
* returns the fresh proof. The per-entry `hmacRest` values are untouched — they
|
|
7
|
+
* bind scope/identifier/family/chainId, never the name — so only the group's
|
|
8
|
+
* name proof needs re-persisting.
|
|
9
|
+
*
|
|
10
|
+
* Proof material (`groupHandle`, `hmacProof`) is passed and returned as raw
|
|
11
|
+
* bytes; the host owns persistence and address-book state. `derivationPath` is
|
|
12
|
+
* kit-internal and not exposed: the Ethereum app requires a path on the wire
|
|
13
|
+
* (a default m/44'/60'/0'/0/0 is sent), but the rename itself is name-only.
|
|
14
|
+
*/
|
|
15
|
+
export type RenameContactInput = {
|
|
16
|
+
/** The contact's current name, proven to the device via `hmacProof`. */
|
|
17
|
+
readonly previousContactName: string;
|
|
18
|
+
/** The new name to assign to the contact group. */
|
|
19
|
+
readonly newContactName: string;
|
|
20
|
+
/** 64-byte group handle returned by the group's Register Identity. */
|
|
21
|
+
readonly groupHandle: Uint8Array;
|
|
22
|
+
/**
|
|
23
|
+
* The existing 32-byte name proof (device `hmac_name`) bound to the current
|
|
24
|
+
* name — passed back so the device can verify continuity before approving the
|
|
25
|
+
* rename. Replaced by the returned `hmacProof` on success.
|
|
26
|
+
*/
|
|
27
|
+
readonly hmacProof: Uint8Array;
|
|
28
|
+
};
|
|
29
|
+
export type RenameContactOutput = {
|
|
30
|
+
/** Echoed previous name, for the host to locate the entry it is replacing. */
|
|
31
|
+
readonly previousContactName: string;
|
|
32
|
+
/** The new name now bound to the contact group. */
|
|
33
|
+
readonly contactName: string;
|
|
34
|
+
/** Echoed group handle, unchanged by the rename. */
|
|
35
|
+
readonly groupHandle: Uint8Array;
|
|
36
|
+
/** The replacement group-level name proof (rotated `hmac_name`) to persist. */
|
|
37
|
+
readonly hmacProof: Uint8Array;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=RenameContact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContact.d.ts","sourceRoot":"","sources":["../../../../src/api/model/RenameContact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,wEAAwE;IACxE,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,mDAAmD;IACnD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,sEAAsE;IACtE,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,8EAA8E;IAC9E,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,mDAAmD;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,oDAAoD;IACpD,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;CAChC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type Container } from "inversify";
|
|
3
|
+
import { type EditExternalAddressIdentifierDAReturnType } from "../api/app-binder/EditExternalAddressIdentifierDeviceActionTypes";
|
|
4
|
+
import { type EditExternalAddressScopeDAReturnType } from "../api/app-binder/EditExternalAddressScopeDeviceActionTypes";
|
|
3
5
|
import { type RegisterExternalAddressDAReturnType } from "../api/app-binder/RegisterExternalAddressDeviceActionTypes";
|
|
6
|
+
import { type RenameContactDAReturnType } from "../api/app-binder/RenameContactDeviceActionTypes";
|
|
4
7
|
import { type ContactsManager } from "../api/ContactsManager";
|
|
8
|
+
import { type EditExternalAddressIdentifierInput } from "../api/model/EditExternalAddressIdentifier";
|
|
9
|
+
import { type EditExternalAddressScopeInput } from "../api/model/EditExternalAddressScope";
|
|
5
10
|
import { type RegisterExternalAddressInput } from "../api/model/RegisterExternalAddress";
|
|
11
|
+
import { type RenameContactInput } from "../api/model/RenameContact";
|
|
6
12
|
type DefaultContactsManagerConstructorArgs = {
|
|
7
13
|
dmk: DeviceManagementKit;
|
|
8
14
|
sessionId: DeviceSessionId;
|
|
@@ -12,6 +18,9 @@ export declare class DefaultContactsManager implements ContactsManager {
|
|
|
12
18
|
private readonly _container;
|
|
13
19
|
constructor({ dmk, sessionId, appName, }: DefaultContactsManagerConstructorArgs);
|
|
14
20
|
registerExternalAddress(input: RegisterExternalAddressInput): RegisterExternalAddressDAReturnType;
|
|
21
|
+
renameContact(input: RenameContactInput): RenameContactDAReturnType;
|
|
22
|
+
editExternalAddressIdentifier(input: EditExternalAddressIdentifierInput): EditExternalAddressIdentifierDAReturnType;
|
|
23
|
+
editExternalAddressScope(input: EditExternalAddressScopeInput): EditExternalAddressScopeDAReturnType;
|
|
15
24
|
/**
|
|
16
25
|
* Exposes the DI container so future operation methods can resolve their
|
|
17
26
|
* `UseCase`. Not part of the public API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultContactsManager.d.ts","sourceRoot":"","sources":["../../../src/internal/DefaultContactsManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultContactsManager.d.ts","sourceRoot":"","sources":["../../../src/internal/DefaultContactsManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,KAAK,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;AAChI,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,2DAA2D,CAAC;AACtH,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAQnE,KAAK,qCAAqC,GAAG;IAC3C,GAAG,EAAE,mBAAmB,CAAC;IACzB,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;gBAE3B,EACV,GAAG,EACH,SAAS,EACT,OAAO,GACR,EAAE,qCAAqC;IAIxC,uBAAuB,CACrB,KAAK,EAAE,4BAA4B,GAClC,mCAAmC;IAQtC,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,yBAAyB;IAMnE,6BAA6B,CAC3B,KAAK,EAAE,kCAAkC,GACxC,yCAAyC;IAQ5C,wBAAwB,CACtB,KAAK,EAAE,6BAA6B,GACnC,oCAAoC;IAQvC;;;OAGG;IACH,SAAS,KAAK,SAAS,IAAI,SAAS,CAEnC;CACF"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type DeviceManagementKit, type DeviceSessionId } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type EditExternalAddressIdentifierDAReturnType } from "../../api/app-binder/EditExternalAddressIdentifierDeviceActionTypes";
|
|
3
|
+
import { type EditExternalAddressScopeDAReturnType } from "../../api/app-binder/EditExternalAddressScopeDeviceActionTypes";
|
|
2
4
|
import { type RegisterExternalAddressDAReturnType } from "../../api/app-binder/RegisterExternalAddressDeviceActionTypes";
|
|
5
|
+
import { type RenameContactDAReturnType } from "../../api/app-binder/RenameContactDeviceActionTypes";
|
|
6
|
+
import { type EditExternalAddressIdentifierInput } from "../../api/model/EditExternalAddressIdentifier";
|
|
7
|
+
import { type EditExternalAddressScopeInput } from "../../api/model/EditExternalAddressScope";
|
|
3
8
|
import { type RegisterExternalAddressInput } from "../../api/model/RegisterExternalAddress";
|
|
9
|
+
import { type RenameContactInput } from "../../api/model/RenameContact";
|
|
4
10
|
/**
|
|
5
11
|
* Constructs and executes Contacts `DeviceAction`s using the injected `dmk`,
|
|
6
12
|
* `sessionId`, and `appName`. Each Address Book operation gets one method here.
|
|
@@ -11,5 +17,8 @@ export declare class ContactsAppBinder {
|
|
|
11
17
|
protected readonly appName: string;
|
|
12
18
|
constructor(dmk: DeviceManagementKit, sessionId: DeviceSessionId, appName: string);
|
|
13
19
|
registerExternalAddress(input: RegisterExternalAddressInput): RegisterExternalAddressDAReturnType;
|
|
20
|
+
renameContact(input: RenameContactInput): RenameContactDAReturnType;
|
|
21
|
+
editExternalAddressIdentifier(input: EditExternalAddressIdentifierInput): EditExternalAddressIdentifierDAReturnType;
|
|
22
|
+
editExternalAddressScope(input: EditExternalAddressScopeInput): EditExternalAddressScopeDAReturnType;
|
|
14
23
|
}
|
|
15
24
|
//# sourceMappingURL=ContactsAppBinder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsAppBinder.d.ts","sourceRoot":"","sources":["../../../../src/internal/app-binder/ContactsAppBinder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactsAppBinder.d.ts","sourceRoot":"","sources":["../../../../src/internal/app-binder/ContactsAppBinder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACrB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,KAAK,yCAAyC,EAAE,MAAM,gEAAgE,CAAC;AAChI,OAAO,EAAE,KAAK,oCAAoC,EAAE,MAAM,2DAA2D,CAAC;AACtH,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,0DAA0D,CAAC;AACpH,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAOnE;;;GAGG;AACH,qBACa,iBAAiB;IAG1B,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,mBAAmB;IAE3C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,eAAe;IAE7C,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM;gBAJf,GAAG,EAAE,mBAAmB,EAExB,SAAS,EAAE,eAAe,EAE1B,OAAO,EAAE,MAAM;IAGpC,uBAAuB,CACrB,KAAK,EAAE,4BAA4B,GAClC,mCAAmC;IAStC,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,yBAAyB;IASnE,6BAA6B,CAC3B,KAAK,EAAE,kCAAkC,GACxC,yCAAyC;IAS5C,wBAAwB,CACtB,KAAK,EAAE,6BAA6B,GACnC,oCAAoC;CAQxC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type ContactsErrorCodes } from "../../app-binder/model/contactsErrors";
|
|
3
|
+
export type EditExternalAddressIdentifierCommandArgs = {
|
|
4
|
+
/** One framed chunk built by sendFramedContactsPayload. */
|
|
5
|
+
readonly data: Uint8Array;
|
|
6
|
+
/** 0x00 for the first/only chunk, 0x80 for continuation chunks. */
|
|
7
|
+
readonly p2: number;
|
|
8
|
+
};
|
|
9
|
+
export type EditExternalAddressIdentifierCommandResponse = {
|
|
10
|
+
/**
|
|
11
|
+
* Present only on the final chunk — the device returns struct_type(0x31) +
|
|
12
|
+
* hmac_rest(32) there. Intermediate chunks return SW=0x9000 with no data.
|
|
13
|
+
* This is the replacement address-level proof (rotated `hmac_rest`).
|
|
14
|
+
*/
|
|
15
|
+
readonly hmacRest?: Uint8Array;
|
|
16
|
+
};
|
|
17
|
+
export declare class EditExternalAddressIdentifierCommand implements Command<EditExternalAddressIdentifierCommandResponse, EditExternalAddressIdentifierCommandArgs, ContactsErrorCodes> {
|
|
18
|
+
readonly name = "editExternalAddressIdentifier";
|
|
19
|
+
readonly args: EditExternalAddressIdentifierCommandArgs;
|
|
20
|
+
private readonly errorHelper;
|
|
21
|
+
constructor(args: EditExternalAddressIdentifierCommandArgs);
|
|
22
|
+
getApdu(): Apdu;
|
|
23
|
+
parseResponse(response: ApduResponse): CommandResult<EditExternalAddressIdentifierCommandResponse, ContactsErrorCodes>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=EditExternalAddressIdentifierCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressIdentifierCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/EditExternalAddressIdentifierCommand.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAUzC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,2CAA2C,CAAC;AAGnD,MAAM,MAAM,wCAAwC,GAAG;IACrD,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAkBF,qBAAa,oCACX,YACE,OAAO,CACL,4CAA4C,EAC5C,wCAAwC,EACxC,kBAAkB,CACnB;IAEH,QAAQ,CAAC,IAAI,mCAAmC;IAChD,QAAQ,CAAC,IAAI,EAAE,wCAAwC,CAAC;IACxD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAGwB;gBAExC,IAAI,EAAE,wCAAwC;IAI1D,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,QAAQ,EAAE,YAAY,GACrB,aAAa,CACd,4CAA4C,EAC5C,kBAAkB,CACnB;CAoCF"}
|
package/lib/types/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressIdentifierCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/EditExternalAddressIdentifierCommand.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type ContactsErrorCodes } from "../../app-binder/model/contactsErrors";
|
|
3
|
+
export type EditExternalAddressScopeCommandArgs = {
|
|
4
|
+
/** One framed chunk built by sendFramedContactsPayload. */
|
|
5
|
+
readonly data: Uint8Array;
|
|
6
|
+
/** 0x00 for the first/only chunk, 0x80 for continuation chunks. */
|
|
7
|
+
readonly p2: number;
|
|
8
|
+
};
|
|
9
|
+
export type EditExternalAddressScopeCommandResponse = {
|
|
10
|
+
/**
|
|
11
|
+
* Present only on the final chunk — the device returns struct_type(0x32) +
|
|
12
|
+
* hmac_rest(32) there. Intermediate chunks return SW=0x9000 with no data.
|
|
13
|
+
* This is the replacement address-level proof (rotated `hmac_rest`).
|
|
14
|
+
*/
|
|
15
|
+
readonly hmacRest?: Uint8Array;
|
|
16
|
+
};
|
|
17
|
+
export declare class EditExternalAddressScopeCommand implements Command<EditExternalAddressScopeCommandResponse, EditExternalAddressScopeCommandArgs, ContactsErrorCodes> {
|
|
18
|
+
readonly name = "editExternalAddressScope";
|
|
19
|
+
readonly args: EditExternalAddressScopeCommandArgs;
|
|
20
|
+
private readonly errorHelper;
|
|
21
|
+
constructor(args: EditExternalAddressScopeCommandArgs);
|
|
22
|
+
getApdu(): Apdu;
|
|
23
|
+
parseResponse(response: ApduResponse): CommandResult<EditExternalAddressScopeCommandResponse, ContactsErrorCodes>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=EditExternalAddressScopeCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressScopeCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/EditExternalAddressScopeCommand.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAUzC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,2CAA2C,CAAC;AAGnD,MAAM,MAAM,mCAAmC,GAAG;IAChD,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAkBF,qBAAa,+BACX,YACE,OAAO,CACL,uCAAuC,EACvC,mCAAmC,EACnC,kBAAkB,CACnB;IAEH,QAAQ,CAAC,IAAI,8BAA8B;IAC3C,QAAQ,CAAC,IAAI,EAAE,mCAAmC,CAAC;IACnD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAGwB;gBAExC,IAAI,EAAE,mCAAmC;IAIrD,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,QAAQ,EAAE,YAAY,GACrB,aAAa,CACd,uCAAuC,EACvC,kBAAkB,CACnB;CAoCF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressScopeCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/EditExternalAddressScopeCommand.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type Apdu, type ApduResponse, type Command, type CommandResult } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type ContactsErrorCodes } from "../../app-binder/model/contactsErrors";
|
|
3
|
+
export type RenameContactCommandArgs = {
|
|
4
|
+
/** One framed chunk built by sendFramedContactsPayload. */
|
|
5
|
+
readonly data: Uint8Array;
|
|
6
|
+
/** 0x00 for the first/only chunk, 0x80 for continuation chunks. */
|
|
7
|
+
readonly p2: number;
|
|
8
|
+
};
|
|
9
|
+
export type RenameContactCommandResponse = {
|
|
10
|
+
/**
|
|
11
|
+
* Present only on the final chunk — the device returns struct_type(0x2e) +
|
|
12
|
+
* rotated hmac_name(32) there. Intermediate chunks return SW=0x9000 with no
|
|
13
|
+
* data. This is the replacement group-level name proof.
|
|
14
|
+
*/
|
|
15
|
+
readonly hmacProof?: Uint8Array;
|
|
16
|
+
};
|
|
17
|
+
export declare class RenameContactCommand implements Command<RenameContactCommandResponse, RenameContactCommandArgs, ContactsErrorCodes> {
|
|
18
|
+
readonly name = "renameContact";
|
|
19
|
+
readonly args: RenameContactCommandArgs;
|
|
20
|
+
private readonly errorHelper;
|
|
21
|
+
constructor(args: RenameContactCommandArgs);
|
|
22
|
+
getApdu(): Apdu;
|
|
23
|
+
parseResponse(response: ApduResponse): CommandResult<RenameContactCommandResponse, ContactsErrorCodes>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=RenameContactCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContactCommand.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/RenameContactCommand.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,KAAK,IAAI,EAGT,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAGnB,MAAM,iCAAiC,CAAC;AAUzC,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,2CAA2C,CAAC;AAGnD,MAAM,MAAM,wBAAwB,GAAG;IACrC,2DAA2D;IAC3D,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;CACjC,CAAC;AAkBF,qBAAa,oBACX,YACE,OAAO,CACL,4BAA4B,EAC5B,wBAAwB,EACxB,kBAAkB,CACnB;IAEH,QAAQ,CAAC,IAAI,mBAAmB;IAChC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAGwB;gBAExC,IAAI,EAAE,wBAAwB;IAI1C,OAAO,IAAI,IAAI;IAWf,aAAa,CACX,QAAQ,EAAE,YAAY,GACrB,aAAa,CAAC,4BAA4B,EAAE,kBAAkB,CAAC;CAoCnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContactCommand.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/app-binder/command/RenameContactCommand.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type InternalApi } from "@ledgerhq/device-management-kit";
|
|
2
|
+
/** The running app's identity, read freshly from the device. */
|
|
3
|
+
export type RunningApp = {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly version: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* OS-only Contacts support check, for internal consumption by dashboard
|
|
9
|
+
* `DeviceAction`s (e.g. Rename Contact, EDIT CONTACT NAME). Dashboard operations
|
|
10
|
+
* are served by the device OS, not the embedded app, so only two dimensions
|
|
11
|
+
* apply:
|
|
12
|
+
* - the device model must be supported;
|
|
13
|
+
* - the device OS must meet its minimum version.
|
|
14
|
+
*
|
|
15
|
+
* The running-app dimension is intentionally skipped: on the dashboard there is
|
|
16
|
+
* no embedded app to gate on (the running "app" is BOLOS).
|
|
17
|
+
*
|
|
18
|
+
* @param internalApi - the DeviceAction's internal API for the current session.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isContactsOsSupportedForSession(internalApi: InternalApi): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Session-aware Contacts support check, for internal consumption by app-owned
|
|
23
|
+
* Contacts `DeviceAction`s (registering / editing external addresses). These
|
|
24
|
+
* operations are served by the embedded app, not the device OS, so only two
|
|
25
|
+
* dimensions apply:
|
|
26
|
+
* - the device model must be supported;
|
|
27
|
+
* - the running app must be known to Contacts and meet its minimum version.
|
|
28
|
+
*
|
|
29
|
+
* The app `name` and `version` are supplied by the caller so they can come from
|
|
30
|
+
* a fresh `WaitForAppAndVersion` result rather than the (potentially stale)
|
|
31
|
+
* device session state; the model comes from the session state, which does
|
|
32
|
+
* not change under the caller's feet the way the running app can.
|
|
33
|
+
*
|
|
34
|
+
* @param internalApi - the DeviceAction's internal API for the current session.
|
|
35
|
+
* @param app - the running app's fresh name and version.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isContactsAppVersionSupportedForSession(internalApi: InternalApi, app: RunningApp): boolean;
|
|
38
|
+
//# sourceMappingURL=contactsVersionGuards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsVersionGuards.d.ts","sourceRoot":"","sources":["../../../../src/internal/app-binder/contactsVersionGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,iCAAiC,CAAC;AAWzC,gEAAgE;AAChE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AASF;;;;;;;;;;;;GAYG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,WAAW,GACvB,OAAO,CAcT;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uCAAuC,CACrD,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,UAAU,GACd,OAAO,CAiBT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contactsVersionGuards.test.d.ts","sourceRoot":"","sources":["../../../../src/internal/app-binder/contactsVersionGuards.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type EditExternalAddressIdentifierDAError, type EditExternalAddressIdentifierDAInput, type EditExternalAddressIdentifierDAIntermediateValue, type EditExternalAddressIdentifierDAInternalState, type EditExternalAddressIdentifierDAOutput } from "../../../../api/app-binder/EditExternalAddressIdentifierDeviceActionTypes";
|
|
3
|
+
import { type RunningApp } from "../../../app-binder/contactsVersionGuards";
|
|
4
|
+
import { type EditIdentifierProof, SendEditExternalAddressIdentifierTask } from "../../../app-binder/task/SendEditExternalAddressIdentifierTask";
|
|
5
|
+
export type EditExternalAddressIdentifierMachineDependencies = {
|
|
6
|
+
readonly isSupported: (app: RunningApp) => boolean;
|
|
7
|
+
readonly editIdentifier: (input: EditExternalAddressIdentifierDAInput) => Promise<Awaited<ReturnType<SendEditExternalAddressIdentifierTask["run"]>>>;
|
|
8
|
+
};
|
|
9
|
+
export declare class EditExternalAddressIdentifierDeviceAction extends XStateDeviceAction<EditExternalAddressIdentifierDAOutput, EditExternalAddressIdentifierDAInput, EditExternalAddressIdentifierDAError, EditExternalAddressIdentifierDAIntermediateValue, EditExternalAddressIdentifierDAInternalState> {
|
|
10
|
+
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<EditExternalAddressIdentifierDAOutput, EditExternalAddressIdentifierDAInput, EditExternalAddressIdentifierDAError, EditExternalAddressIdentifierDAIntermediateValue, EditExternalAddressIdentifierDAInternalState>;
|
|
11
|
+
extractDependencies(internalApi: InternalApi): EditExternalAddressIdentifierMachineDependencies;
|
|
12
|
+
}
|
|
13
|
+
export type { EditIdentifierProof };
|
|
14
|
+
//# sourceMappingURL=EditExternalAddressIdentifierDeviceAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressIdentifierDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAOhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,gDAAgD,EACrD,KAAK,4CAA4C,EACjD,KAAK,qCAAqC,EAC3C,MAAM,gEAAgE,CAAC;AACxE,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EACL,KAAK,mBAAmB,EACxB,qCAAqC,EACtC,MAAM,iEAAiE,CAAC;AAIzE,MAAM,MAAM,gDAAgD,GAAG;IAC7D,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,QAAQ,CAAC,cAAc,EAAE,CACvB,KAAK,EAAE,oCAAoC,KACxC,OAAO,CACV,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC,KAAK,CAAC,CAAC,CAAC,CAClE,CAAC;CACH,CAAC;AAEF,qBAAa,yCAA0C,SAAQ,kBAAkB,CAC/E,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,gDAAgD,EAChD,4CAA4C,CAC7C;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,qCAAqC,EACrC,oCAAoC,EACpC,oCAAoC,EACpC,gDAAgD,EAChD,4CAA4C,CAC7C;IAiQD,mBAAmB,CACjB,WAAW,EAAE,WAAW,GACvB,gDAAgD;CAuBpD;AAED,YAAY,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressIdentifierDeviceAction.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressIdentifier/EditExternalAddressIdentifierDeviceAction.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type EditExternalAddressIdentifierInput } from "../../../../api/model/EditExternalAddressIdentifier";
|
|
2
|
+
import { ContactsValidationError } from "../../../app-binder/model/contactsValidation";
|
|
3
|
+
/**
|
|
4
|
+
* Validate the caller input for Edit External Address Identifier. Returns the
|
|
5
|
+
* first `ContactsValidationError`, or `null` when valid. Non-throwing so the
|
|
6
|
+
* device action can surface it as a typed terminal error state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateEditExternalAddressIdentifierInput(input: EditExternalAddressIdentifierInput): ContactsValidationError | null;
|
|
9
|
+
//# sourceMappingURL=validateEditExternalAddressIdentifierInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEditExternalAddressIdentifierInput.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAEnG,OAAO,EAEL,uBAAuB,EAQxB,MAAM,+CAA+C,CAAC;AAKvD;;;;GAIG;AACH,wBAAgB,0CAA0C,CACxD,KAAK,EAAE,kCAAkC,GACxC,uBAAuB,GAAG,IAAI,CAoEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEditExternalAddressIdentifierInput.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressIdentifier/validateEditExternalAddressIdentifierInput.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type EditExternalAddressScopeDAError, type EditExternalAddressScopeDAInput, type EditExternalAddressScopeDAIntermediateValue, type EditExternalAddressScopeDAInternalState, type EditExternalAddressScopeDAOutput } from "../../../../api/app-binder/EditExternalAddressScopeDeviceActionTypes";
|
|
3
|
+
import { type RunningApp } from "../../../app-binder/contactsVersionGuards";
|
|
4
|
+
import { type EditScopeProof, SendEditExternalAddressScopeTask } from "../../../app-binder/task/SendEditExternalAddressScopeTask";
|
|
5
|
+
export type EditExternalAddressScopeMachineDependencies = {
|
|
6
|
+
readonly isSupported: (app: RunningApp) => boolean;
|
|
7
|
+
readonly editScope: (input: EditExternalAddressScopeDAInput) => Promise<Awaited<ReturnType<SendEditExternalAddressScopeTask["run"]>>>;
|
|
8
|
+
};
|
|
9
|
+
export declare class EditExternalAddressScopeDeviceAction extends XStateDeviceAction<EditExternalAddressScopeDAOutput, EditExternalAddressScopeDAInput, EditExternalAddressScopeDAError, EditExternalAddressScopeDAIntermediateValue, EditExternalAddressScopeDAInternalState> {
|
|
10
|
+
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<EditExternalAddressScopeDAOutput, EditExternalAddressScopeDAInput, EditExternalAddressScopeDAError, EditExternalAddressScopeDAIntermediateValue, EditExternalAddressScopeDAInternalState>;
|
|
11
|
+
extractDependencies(internalApi: InternalApi): EditExternalAddressScopeMachineDependencies;
|
|
12
|
+
}
|
|
13
|
+
export type { EditScopeProof };
|
|
14
|
+
//# sourceMappingURL=EditExternalAddressScopeDeviceAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressScopeDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAOhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2CAA2C,EAChD,KAAK,uCAAuC,EAC5C,KAAK,gCAAgC,EACtC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EACL,KAAK,cAAc,EACnB,gCAAgC,EACjC,MAAM,4DAA4D,CAAC;AAIpE,MAAM,MAAM,2CAA2C,GAAG;IACxD,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,QAAQ,CAAC,SAAS,EAAE,CAClB,KAAK,EAAE,+BAA+B,KACnC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5E,CAAC;AAEF,qBAAa,oCAAqC,SAAQ,kBAAkB,CAC1E,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2CAA2C,EAC3C,uCAAuC,CACxC;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2CAA2C,EAC3C,uCAAuC,CACxC;IA0PD,mBAAmB,CACjB,WAAW,EAAE,WAAW,GACvB,2CAA2C;CAqB/C;AAED,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditExternalAddressScopeDeviceAction.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressScope/EditExternalAddressScopeDeviceAction.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type EditExternalAddressScopeInput } from "../../../../api/model/EditExternalAddressScope";
|
|
2
|
+
import { ContactsValidationError } from "../../../app-binder/model/contactsValidation";
|
|
3
|
+
/**
|
|
4
|
+
* Validate the caller input for Edit External Address Scope. Returns the first
|
|
5
|
+
* `ContactsValidationError`, or `null` when valid. Non-throwing so the device
|
|
6
|
+
* action can surface it as a typed terminal error state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateEditExternalAddressScopeInput(input: EditExternalAddressScopeInput): ContactsValidationError | null;
|
|
9
|
+
//# sourceMappingURL=validateEditExternalAddressScopeInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEditExternalAddressScopeInput.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEzF,OAAO,EAEL,uBAAuB,EAQxB,MAAM,+CAA+C,CAAC;AAKvD;;;;GAIG;AACH,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,6BAA6B,GACnC,uBAAuB,GAAG,IAAI,CA+DhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateEditExternalAddressScopeInput.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/EditExternalAddressScope/validateEditExternalAddressScopeInput.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
2
|
import { type RegisterExternalAddressDAError, type RegisterExternalAddressDAInput, type RegisterExternalAddressDAIntermediateValue, type RegisterExternalAddressDAInternalState, type RegisterExternalAddressDAOutput } from "../../../../api/app-binder/RegisterExternalAddressDeviceActionTypes";
|
|
3
|
-
import { type RunningApp } from "../../../app-binder/
|
|
3
|
+
import { type RunningApp } from "../../../app-binder/contactsVersionGuards";
|
|
4
4
|
import { type RegisterIdentityProofs, SendRegisterIdentityTask } from "../../../app-binder/task/SendRegisterIdentityTask";
|
|
5
5
|
export type RegisterExternalAddressMachineDependencies = {
|
|
6
6
|
readonly isSupported: (app: RunningApp) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterExternalAddressDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAOhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0CAA0C,EAC/C,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACrC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"RegisterExternalAddressDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/RegisterExternalAddress/RegisterExternalAddressDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAOhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0CAA0C,EAC/C,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACrC,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EACL,KAAK,sBAAsB,EAC3B,wBAAwB,EACzB,MAAM,oDAAoD,CAAC;AAI5D,MAAM,MAAM,0CAA0C,GAAG;IACvD,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;IACnD,QAAQ,CAAC,gBAAgB,EAAE,CACzB,KAAK,EAAE,8BAA8B,KAClC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC;AAEF,qBAAa,mCAAoC,SAAQ,kBAAkB,CACzE,+BAA+B,EAC/B,8BAA8B,EAC9B,8BAA8B,EAC9B,0CAA0C,EAC1C,sCAAsC,CACvC;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,+BAA+B,EAC/B,8BAA8B,EAC9B,8BAA8B,EAC9B,0CAA0C,EAC1C,sCAAsC,CACvC;IAwPD,mBAAmB,CACjB,WAAW,EAAE,WAAW,GACvB,0CAA0C;CAkB9C;AAED,YAAY,EAAE,sBAAsB,EAAE,CAAC"}
|
package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DeviceActionStateMachine, type InternalApi, XStateDeviceAction } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type RenameContactDAError, type RenameContactDAInput, type RenameContactDAIntermediateValue, type RenameContactDAInternalState, type RenameContactDAOutput } from "../../../../api/app-binder/RenameContactDeviceActionTypes";
|
|
3
|
+
import { type RenameContactProof, SendRenameContactTask } from "../../../app-binder/task/SendRenameContactTask";
|
|
4
|
+
export type RenameContactMachineDependencies = {
|
|
5
|
+
readonly isOsSupported: () => boolean;
|
|
6
|
+
readonly renameContact: (input: RenameContactDAInput) => Promise<Awaited<ReturnType<SendRenameContactTask["run"]>>>;
|
|
7
|
+
};
|
|
8
|
+
export declare class RenameContactDeviceAction extends XStateDeviceAction<RenameContactDAOutput, RenameContactDAInput, RenameContactDAError, RenameContactDAIntermediateValue, RenameContactDAInternalState> {
|
|
9
|
+
makeStateMachine(internalApi: InternalApi): DeviceActionStateMachine<RenameContactDAOutput, RenameContactDAInput, RenameContactDAError, RenameContactDAIntermediateValue, RenameContactDAInternalState>;
|
|
10
|
+
extractDependencies(internalApi: InternalApi): RenameContactMachineDependencies;
|
|
11
|
+
}
|
|
12
|
+
export type { RenameContactProof };
|
|
13
|
+
//# sourceMappingURL=RenameContactDeviceAction.d.ts.map
|
package/lib/types/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContactDeviceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,WAAW,EAKhB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC3B,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EACL,KAAK,kBAAkB,EACvB,qBAAqB,EACtB,MAAM,iDAAiD,CAAC;AAIzD,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAC;IACtC,QAAQ,CAAC,aAAa,EAAE,CACtB,KAAK,EAAE,oBAAoB,KACxB,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACjE,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,kBAAkB,CAC/D,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,gCAAgC,EAChC,4BAA4B,CAC7B;IACC,gBAAgB,CACd,WAAW,EAAE,WAAW,GACvB,wBAAwB,CACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,gCAAgC,EAChC,4BAA4B,CAC7B;IAgMD,mBAAmB,CACjB,WAAW,EAAE,WAAW,GACvB,gCAAgC;CAepC;AAED,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenameContactDeviceAction.test.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/app-binder/device-action/RenameContact/RenameContactDeviceAction.test.ts"],"names":[],"mappings":""}
|